tx · Cj37SRgLmpc3Cd4gxDwYJUpmsweug62ivKf3bDJWwUL8
3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16: -0.04000000 Waves
2020.09.24 19:09 [1191607] smart account 3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16 > SELF 0.00000000 Waves
{
"type": 13,
"id": "Cj37SRgLmpc3Cd4gxDwYJUpmsweug62ivKf3bDJWwUL8",
"fee": 4000000,
"feeAssetId": null,
"timestamp": 1600963902891,
"version": 2,
"chainId": 84,
"sender": "3N9fd5Eo9BngWyUCzYRuBNhQvYTeqKzEH16",
"senderPublicKey": "5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u",
"proofs": [
"5A6cD3ruxxJKhc3Ud5MoaMoVwUvuehgX6DKCncDhwTVxEnJKtyMdDQxyZCwMhVU43SuBrb7DmCHJTKW4sEerPWPJ"
],
"script": "base64:AAIEAAAAAAAAAAoIAhIECgIBARIAAAAAAgAAAAALbXlwdWJsaWNrZXkBAAAAIEKXKZcWm8ZroWw2Cu6o7ASQ+/gPHWPgTLEAY1sJ+g0wAQAAABlnZXRBYndhc3Nlck1lbmdlSHlkcmF1bGlrAAAAAQAAAAlQdWJsaWNLZXkEAAAABFdlcnQEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAJUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAGAAAAAgAAAAFpAQAAAAhkaXZpc2lvbgAAAAIAAAABYQAAAAFiBAAAAAFjCQAAawAAAAMFAAAAAWEFAAAAAWIAAAAAAAAAAfQEAAAABnJlc3VsdAkAAaQAAAABBQAAAAFjCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACmZyYWN0aW9uIDoFAAAABnJlc3VsdAUAAAADbmlsAAAAAWkBAAAADGdldE15TWVzc2FnZQAAAAAEAAAACmN1cnJlbnRLZXkJAAEsAAAAAgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkCAAAABV90ZXN0BAAAAANtc2cEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAckbWF0Y2gwBQAAAANtc2cDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABdAUAAAAHJG1hdGNoMAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAlteU1lc3NhZ2UJAAEsAAAAAgIAAAANcmVmZXJlbmNlIGlzIAUAAAABdAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAACW15TWVzc2FnZQkAASwAAAACAgAAAAVub25lIAkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALbXlwdWJsaWNrZXmqL3k9",
"height": 1191607,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: C5voM3C8hiED2p9cWkJCwDXKVL7wyc2RW6pfFM7r4RwM
Next: BDpSiMNHDrRiRLy5WSFQ4988LHK8MPT7gCNLPugQC41n
Diff:
Old | New | | Differences |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(g) |
---|
21 | 21 | | func division (f,h) = { |
---|
22 | | - | let i = ((f * h) / 500) |
---|
| 22 | + | let i = fraction(f, h, 500) |
---|
23 | 23 | | let j = toString(i) |
---|
24 | 24 | | [StringEntry("fraction :", j)] |
---|
25 | 25 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'5UwbcyHURH1J3EKpAxtCDuQMcEEhFqe6Hm5DXV5UMu7u' |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c) = { |
---|
7 | 7 | | let d = { |
---|
8 | 8 | | let e = getString(this, c) |
---|
9 | 9 | | if ($isInstanceOf(e, "String")) |
---|
10 | 10 | | then { |
---|
11 | 11 | | let f = e |
---|
12 | 12 | | f |
---|
13 | 13 | | } |
---|
14 | 14 | | else 0 |
---|
15 | 15 | | } |
---|
16 | 16 | | true |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(g) |
---|
21 | 21 | | func division (f,h) = { |
---|
22 | | - | let i = ((f * h) / 500) |
---|
| 22 | + | let i = fraction(f, h, 500) |
---|
23 | 23 | | let j = toString(i) |
---|
24 | 24 | | [StringEntry("fraction :", j)] |
---|
25 | 25 | | } |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | @Callable(g) |
---|
30 | 30 | | func getMyMessage () = { |
---|
31 | 31 | | let k = (toBase58String(g.callerPublicKey) + "_test") |
---|
32 | 32 | | let l = { |
---|
33 | 33 | | let e = getString(this, k) |
---|
34 | 34 | | if ($isInstanceOf(e, "String")) |
---|
35 | 35 | | then { |
---|
36 | 36 | | let f = e |
---|
37 | 37 | | f |
---|
38 | 38 | | } |
---|
39 | 39 | | else 0 |
---|
40 | 40 | | } |
---|
41 | 41 | | let e = l |
---|
42 | 42 | | if ($isInstanceOf(e, "String")) |
---|
43 | 43 | | then { |
---|
44 | 44 | | let m = e |
---|
45 | 45 | | [StringEntry("myMessage", ("reference is " + m))] |
---|
46 | 46 | | } |
---|
47 | 47 | | else [StringEntry("myMessage", ("none " + toBase58String(g.callerPublicKey)))] |
---|
48 | 48 | | } |
---|
49 | 49 | | |
---|
50 | 50 | | |
---|
51 | 51 | | @Verifier(n) |
---|
52 | 52 | | func o () = { |
---|
53 | 53 | | let e = n |
---|
54 | 54 | | if ($isInstanceOf(e, "SetScriptTransaction")) |
---|
55 | 55 | | then { |
---|
56 | 56 | | let n = e |
---|
57 | 57 | | true |
---|
58 | 58 | | } |
---|
59 | 59 | | else sigVerify(n.bodyBytes, n.proofs[0], a) |
---|
60 | 60 | | } |
---|
61 | 61 | | |
---|