tx · EKhMD3zQe3xYvdwpKbRdK5RremykGsep748vNBbEhquS
3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16: -0.04000000 Waves
2020.09.24 19:05 [1191603] smart account 3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16 > SELF 0.00000000 Waves
{
"type": 13,
"id": "EKhMD3zQe3xYvdwpKbRdK5RremykGsep748vNBbEhquS",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1600963548000,
"version": 2,
"chainId": 84,
"sender": "3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16",
"senderPublicKey": "5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u",
"proofs": [
"2Gpq9iMxCij9FurzmucrsfirqJB4oMqZ4iUn6SXdURpAMMmoXtj4oqK8HnGyQQpoX1KTpDAhs8tDFtgbWHxEAcXu"
],
"script": "base64:AAIEAAAAAAAAAAoIAhIECgIBARIAAAAAAgAAAAALbXlwdWJsaWNrZXkBAAAAIEKXKZcWm8ZroWw2Cu6o7ASQ+/gPHWPgTLEAY1sJ+g0wAQAAABlnZXRBYndhc3Nlck1lbmdlSHlkcmF1bGlrAAAAAQAAAAlQdWJsaWNLZXkEAAAABFdlcnQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAJUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAGAAAAAgAAAAFpAQAAAAhkaXZpc2lvbgAAAAIAAAABYQAAAAFiBAAAAAFjCQAAZAAAAAIFAAAAAWEJAABpAAAAAgUAAAABYgAAAAAAAAAB9AQAAAAGcmVzdWx0CQABpAAAAAEFAAAAAWMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAKZnJhY3Rpb24gOgUAAAAGcmVzdWx0BQAAAANuaWwAAAABaQEAAAAMZ2V0TXlNZXNzYWdlAAAAAAQAAAAKY3VycmVudEtleQkAASwAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQIAAAAFX3Rlc3QEAAAAA21zZwQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAApjdXJyZW50S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAByRtYXRjaDAFAAAAA21zZwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAF0BQAAAAckbWF0Y2gwCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACW15TWVzc2FnZQkAASwAAAACAgAAAA1yZWZlcmVuY2UgaXMgBQAAAAF0BQAAAANuaWwJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAJbXlNZXNzYWdlCQABLAAAAAICAAAABW5vbmUgCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAtteXB1YmxpY2tlefz6YHE=",
"height": 1191603,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EWSoU1PVr3sRAUCiCm5GHJPAoNCPMpwC62NHmQAdaNt3
Next: C5voM3C8hiED2p9cWkJCwDXKVL7wyc2RW6pfFM7r4RwM
Diff:
Old | New | | Differences |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func division (a,b) = { |
---|
19 | | - | let c = (a + b) |
---|
| 19 | + | let c = (a + (b / 500)) |
---|
20 | 20 | | let result = toString(c) |
---|
21 | | - | [StringEntry("ma addition :", result)] |
---|
| 21 | + | [StringEntry("fraction :", result)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let mypublickey = base58'5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u' |
---|
5 | 5 | | |
---|
6 | 6 | | func getAbwasserMengeHydraulik (PublicKey) = { |
---|
7 | 7 | | let Wert = match getString(this, PublicKey) { |
---|
8 | 8 | | case a: String => |
---|
9 | 9 | | a |
---|
10 | 10 | | case _ => |
---|
11 | 11 | | 0 |
---|
12 | 12 | | } |
---|
13 | 13 | | true |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func division (a,b) = { |
---|
19 | | - | let c = (a + b) |
---|
| 19 | + | let c = (a + (b / 500)) |
---|
20 | 20 | | let result = toString(c) |
---|
21 | | - | [StringEntry("ma addition :", result)] |
---|
| 21 | + | [StringEntry("fraction :", result)] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | @Callable(i) |
---|
27 | 27 | | func getMyMessage () = { |
---|
28 | 28 | | let currentKey = (toBase58String(i.callerPublicKey) + "_test") |
---|
29 | 29 | | let msg = match getString(this, currentKey) { |
---|
30 | 30 | | case a: String => |
---|
31 | 31 | | a |
---|
32 | 32 | | case _ => |
---|
33 | 33 | | 0 |
---|
34 | 34 | | } |
---|
35 | 35 | | match msg { |
---|
36 | 36 | | case t: String => |
---|
37 | 37 | | [StringEntry("myMessage", ("reference is " + t))] |
---|
38 | 38 | | case _ => |
---|
39 | 39 | | [StringEntry("myMessage", ("none " + toBase58String(i.callerPublicKey)))] |
---|
40 | 40 | | } |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
44 | 44 | | @Verifier(tx) |
---|
45 | 45 | | func verify () = match tx { |
---|
46 | 46 | | case tx: SetScriptTransaction => |
---|
47 | 47 | | true |
---|
48 | 48 | | case _ => |
---|
49 | 49 | | sigVerify(tx.bodyBytes, tx.proofs[0], mypublickey) |
---|
50 | 50 | | } |
---|
51 | 51 | | |
---|