tx · 8rEmQeouSYbjJ44mZBLT36Vfwzz3Yrun3NndQvudgWon 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP: -0.05000000 Waves 2021.09.28 01:21 [1721949] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves
{ "type": 13, "id": "8rEmQeouSYbjJ44mZBLT36Vfwzz3Yrun3NndQvudgWon", "fee": 5000000, "feeAssetId": null, "timestamp": 1632781351355, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "3nrTK4GMNQitCKkdfj2dZKy8fLk9LY7S9NtdrgmVmFpdT8zkvC3JmgpbJbX9uwSc2xJLuCnCtu7aWFv8kijZsvre" ], "script": "base64:AAIFAAAAAAAAACAIAhIAEgASAwoBCBIHCgUIBAIBGBIKCggIBAIBGBEUEgAAAAQBAAAAEWtleUFjY3VtdWxhdGVkRmVlAAAAAAIAAAASJXNfX2FjY3VtdWxhdGVkRmVlAAAAAAZzY2FsZTgAAAAAAAX14QAAAAAACEJVRlNDQUxFCQABNgAAAAEADeC2s6dkAAABAAAAHWNvbnZlcnRQcmljZUFzc2V0SW50b0lkb0Fzc2V0AAAABQAAABBwcmljZUFzc2V0QW1vdW50AAAADnByaWNlQXNzZXRNVUxUAAAABXByaWNlAAAACXByaWNlTVVMVAAAAAxpZG9Bc3NldE1VTFQEAAAACmJQcmljZU1VTFQJAAE2AAAAAQUAAAAOcHJpY2VBc3NldE1VTFQEAAAADmJQcmljZUFzc2V0QlVGCQABPAAAAAMJAAE2AAAAAQUAAAAQcHJpY2VBc3NldEFtb3VudAUAAAAIQlVGU0NBTEUFAAAACmJQcmljZU1VTFQEAAAAD2JBbW91bnRBc3NldEJVRgkAATwAAAADBQAAAA5iUHJpY2VBc3NldEJVRgUAAAAKYlByaWNlTVVMVAkAATYAAA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0Jvb2wAAAAAAAAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAADmxpc3RCb29sUGFyYW0yCQABkQAAAAIFAAAACGFyZ3NCb29sAAAAAAAAAAABCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAEGxpc3RCaW5hcnlQYXJhbTMJAAGRAAAAAgUAAAAKYXJnc0JpbmFyeQAAAAAAAAAAAAkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAABBsaXN0QmluYXJ5UGFyYW0zCQABkQAAAAIFAAAACmFyZ3NCaW5hcnkAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5rZqTsg==", "height": 1721949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GZEjeJwgszDe4pCv5UL6qi6aZb6gYSknPMrhqtPAQTzs Next: HMnEQZCZ9DyuF4EzMDsFjJy5tbXed9cCB5xVGa6gQpXz Diff:
Old | New | Differences | |
---|---|---|---|
22 | 22 | let o = 30000000000 | |
23 | 23 | let l = fraction(toBigInt(n), c, toBigInt(b)) | |
24 | 24 | let k = fraction(toBigInt(o), c, toBigInt(b)) | |
25 | - | let p = pow(toBigInt(1000000000), 0, toBigInt(5), 1, 0, DOWN) | |
26 | - | let q = pow(toBigInt(30000000000), 0, toBigInt(5), 1, 0, DOWN) | |
27 | - | let r = (p * q) | |
28 | - | let s = pow(l, 0, toBigInt(5), 1, 0, DOWN) | |
29 | - | let t = pow(k, 0, toBigInt(5), 1, 0, DOWN) | |
30 | - | let u = (s * t) | |
31 | - | let v = fraction(u, toBigInt(b), c) | |
32 | - | [IntegerEntry("ordinal", toInt(r)), IntegerEntry("bigInt", toInt(v))] | |
25 | + | let p = pow((l * k), 0, toBigInt(5), 1, 0, DOWN) | |
26 | + | let q = fraction(p, toBigInt(b), c) | |
27 | + | [IntegerEntry("bigInt", toInt(q))] | |
33 | 28 | } | |
34 | 29 | ||
35 | 30 | ||
36 | 31 | ||
37 | 32 | @Callable(m) | |
38 | - | func callMeDapp (w) = { | |
39 | - | let x = m.caller | |
40 | - | [StringEntry("stringParam1", w), BooleanEntry("boolParam2", false)] | |
33 | + | func ordinal2 () = { | |
34 | + | let n = 1000000000 | |
35 | + | let o = 30000000000 | |
36 | + | let r = pow(n, 0, 5, 1, 0, DOWN) | |
37 | + | let s = pow(o, 0, 5, 1, 0, DOWN) | |
38 | + | let t = (r * s) | |
39 | + | [IntegerEntry("ordinal", t)] | |
41 | 40 | } | |
42 | 41 | ||
43 | 42 | ||
44 | 43 | ||
45 | 44 | @Callable(m) | |
46 | - | func | |
47 | - | let | |
48 | - | [StringEntry("stringParam1", | |
45 | + | func callMeDapp (u) = { | |
46 | + | let v = m.caller | |
47 | + | [StringEntry("stringParam1", u), BooleanEntry("boolParam2", false)] | |
49 | 48 | } | |
50 | 49 | ||
51 | 50 | ||
52 | 51 | ||
53 | 52 | @Callable(m) | |
54 | - | func | |
55 | - | let | |
56 | - | [StringEntry("stringParam1", | |
53 | + | func callMe (u,w,x,y,z) = { | |
54 | + | let v = m.caller | |
55 | + | [StringEntry("stringParam1", u), BooleanEntry("boolParam2", w), BinaryEntry("binaryParam3", x), IntegerEntry("intParam4", y), StringEntry("listStringParam1", z[0]), StringEntry("listStringParam2", z[1])] | |
57 | 56 | } | |
58 | 57 | ||
59 | 58 | ||
60 | - | @Verifier(F) | |
61 | - | func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey) | |
59 | + | ||
60 | + | @Callable(m) | |
61 | + | func callMe2 (u,w,x,y,z,A,B,C) = { | |
62 | + | let v = m.caller | |
63 | + | [StringEntry("stringParam1", u), BooleanEntry("boolParam2", w), BinaryEntry("binaryParam3", x), IntegerEntry("intParam4", y), StringEntry("listStringParam1", z[0]), StringEntry("listStringParam2", z[1]), IntegerEntry("listIntParam1", A[0]), IntegerEntry("listIntParam2", A[1]), BooleanEntry("listBoolParam1", B[0]), BooleanEntry("listBoolParam2", B[1]), BinaryEntry("listBinaryParam3", C[0]), BinaryEntry("listBinaryParam3", C[1])] | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | @Verifier(D) | |
68 | + | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
62 | 69 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | let b = 100000000 | |
8 | 8 | ||
9 | 9 | let c = toBigInt(1000000000000000000) | |
10 | 10 | ||
11 | 11 | func d (e,f,g,h,i) = { | |
12 | 12 | let j = toBigInt(f) | |
13 | 13 | let k = fraction(toBigInt(e), c, j) | |
14 | 14 | let l = fraction(k, j, toBigInt(g)) | |
15 | 15 | toInt(fraction(l, toBigInt(i), c)) | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(m) | |
20 | 20 | func ordinal () = { | |
21 | 21 | let n = 1000000000 | |
22 | 22 | let o = 30000000000 | |
23 | 23 | let l = fraction(toBigInt(n), c, toBigInt(b)) | |
24 | 24 | let k = fraction(toBigInt(o), c, toBigInt(b)) | |
25 | - | let p = pow(toBigInt(1000000000), 0, toBigInt(5), 1, 0, DOWN) | |
26 | - | let q = pow(toBigInt(30000000000), 0, toBigInt(5), 1, 0, DOWN) | |
27 | - | let r = (p * q) | |
28 | - | let s = pow(l, 0, toBigInt(5), 1, 0, DOWN) | |
29 | - | let t = pow(k, 0, toBigInt(5), 1, 0, DOWN) | |
30 | - | let u = (s * t) | |
31 | - | let v = fraction(u, toBigInt(b), c) | |
32 | - | [IntegerEntry("ordinal", toInt(r)), IntegerEntry("bigInt", toInt(v))] | |
25 | + | let p = pow((l * k), 0, toBigInt(5), 1, 0, DOWN) | |
26 | + | let q = fraction(p, toBigInt(b), c) | |
27 | + | [IntegerEntry("bigInt", toInt(q))] | |
33 | 28 | } | |
34 | 29 | ||
35 | 30 | ||
36 | 31 | ||
37 | 32 | @Callable(m) | |
38 | - | func callMeDapp (w) = { | |
39 | - | let x = m.caller | |
40 | - | [StringEntry("stringParam1", w), BooleanEntry("boolParam2", false)] | |
33 | + | func ordinal2 () = { | |
34 | + | let n = 1000000000 | |
35 | + | let o = 30000000000 | |
36 | + | let r = pow(n, 0, 5, 1, 0, DOWN) | |
37 | + | let s = pow(o, 0, 5, 1, 0, DOWN) | |
38 | + | let t = (r * s) | |
39 | + | [IntegerEntry("ordinal", t)] | |
41 | 40 | } | |
42 | 41 | ||
43 | 42 | ||
44 | 43 | ||
45 | 44 | @Callable(m) | |
46 | - | func | |
47 | - | let | |
48 | - | [StringEntry("stringParam1", | |
45 | + | func callMeDapp (u) = { | |
46 | + | let v = m.caller | |
47 | + | [StringEntry("stringParam1", u), BooleanEntry("boolParam2", false)] | |
49 | 48 | } | |
50 | 49 | ||
51 | 50 | ||
52 | 51 | ||
53 | 52 | @Callable(m) | |
54 | - | func | |
55 | - | let | |
56 | - | [StringEntry("stringParam1", | |
53 | + | func callMe (u,w,x,y,z) = { | |
54 | + | let v = m.caller | |
55 | + | [StringEntry("stringParam1", u), BooleanEntry("boolParam2", w), BinaryEntry("binaryParam3", x), IntegerEntry("intParam4", y), StringEntry("listStringParam1", z[0]), StringEntry("listStringParam2", z[1])] | |
57 | 56 | } | |
58 | 57 | ||
59 | 58 | ||
60 | - | @Verifier(F) | |
61 | - | func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey) | |
59 | + | ||
60 | + | @Callable(m) | |
61 | + | func callMe2 (u,w,x,y,z,A,B,C) = { | |
62 | + | let v = m.caller | |
63 | + | [StringEntry("stringParam1", u), BooleanEntry("boolParam2", w), BinaryEntry("binaryParam3", x), IntegerEntry("intParam4", y), StringEntry("listStringParam1", z[0]), StringEntry("listStringParam2", z[1]), IntegerEntry("listIntParam1", A[0]), IntegerEntry("listIntParam2", A[1]), BooleanEntry("listBoolParam1", B[0]), BooleanEntry("listBoolParam2", B[1]), BinaryEntry("listBinaryParam3", C[0]), BinaryEntry("listBinaryParam3", C[1])] | |
64 | + | } | |
65 | + | ||
66 | + | ||
67 | + | @Verifier(D) | |
68 | + | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
62 | 69 |
github/deemru/w8io/169f3d6 212.30 ms ◑