tx · Du6JpR7vpKTcQhTBhSDeTaXkJHm2Mv84oGWjQcsrcjsS 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP: -0.05000000 Waves 2021.09.28 01:01 [1721929] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves
{ "type": 13, "id": "Du6JpR7vpKTcQhTBhSDeTaXkJHm2Mv84oGWjQcsrcjsS", "fee": 5000000, "feeAssetId": null, "timestamp": 1632780167572, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "65QT74n9KVWbDCkFcY4ZutqcMXviZnevPoX3KkdxKV71wdQsLRUBiQw26rVUGw35rqe6AYMPj7p7a7P2XJvu218f" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgMKAQgSBwoFCAQCARgSCgoICAQCARgRFBIAAAABAQAAABFrZXlBY2N1bXVsYXRlZEZlZQAAAAACAAAAEiVzX19hY2N1bXVsYXRlZEZlZQAAAAQAAAABaQEAAAAHb3JkaW5hbAAAAAAEAAAABXBhcnRBCQAAdgAAAAYJAAE2AAAAAQAAAAAAO5rKAAAAAAAAAAAAAAkAATYAAAABAAAAAAAAAAAFAAAAAAAAAAABAAAAAAAAAAAABQAAAARET1dOBAAAAAVwYXJ0QgkAAHYAAAAGCQABNgAAAAEAAAAABvwjrAAAAAAAAAAAAAAJAAE2AAAAAQAAAAAAAAAABQAAAAAAAAAAAQAAAAAAAAAAAAUAAAAERE9XTgQAAAAGcmVzdWx0CQABOQAAAAIFAAAABXBhcnRBBQAAAAVwYXJ0QgQAAAALcGFydEFCaWdJbnQJAAB2AAAABgkAATYAAAABAAFjRXhdigAAAAAAAAAAAAAACQABNgAAAAEAAAAAAAAAAAUAAAAAAAAAAAEAAAAAAAAAAAAFAAAABERPV04EAAAAC3BhcnRCQmlnSW50CQAAdg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bTEJAAGRAAAAAgUAAAAHYXJnc0ludAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAANbGlzdEludFBhcmFtMgkAAZEAAAACBQAAAAdhcmdzSW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAA5saXN0Qm9vbFBhcmFtMQkAAZEAAAACBQAAAAhhcmdzQm9vbAAAAAAAAAAAAAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAObGlzdEJvb2xQYXJhbTIJAAGRAAAAAgUAAAAIYXJnc0Jvb2wAAAAAAAAAAAEJAARMAAAAAgkBAAAAC0JpbmFyeUVudHJ5AAAAAgIAAAAQbGlzdEJpbmFyeVBhcmFtMwkAAZEAAAACBQAAAAphcmdzQmluYXJ5AAAAAAAAAAAACQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAEGxpc3RCaW5hcnlQYXJhbTMJAAGRAAAAAgUAAAAKYXJnc0JpbmFyeQAAAAAAAAAAAQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkOhFtt", "height": 1721929, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 61ELNqukukBWaTzBjNscpn7KP72VZTWUV8ZpDAbCcd5G Next: GZEjeJwgszDe4pCv5UL6qi6aZb6gYSknPMrhqtPAQTzs Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | ||
7 | 7 | @Callable(i) | |
8 | 8 | func ordinal () = { | |
9 | - | let partA = pow(1000000000, 0, 5, 1, 0, DOWN) | |
10 | - | let partB = pow(30000000000, 0, 5, 1, 0, DOWN) | |
9 | + | let partA = pow(toBigInt(1000000000), 0, toBigInt(5), 1, 0, DOWN) | |
10 | + | let partB = pow(toBigInt(30000000000), 0, toBigInt(5), 1, 0, DOWN) | |
11 | + | let result = (partA * partB) | |
11 | 12 | let partABigInt = pow(toBigInt(100000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
12 | 13 | let partBBigInt = pow(toBigInt(3000000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
13 | 14 | let res2 = (partABigInt * partBBigInt) | |
14 | 15 | let result2 = (res2 / toBigInt(100000000)) | |
15 | - | [IntegerEntry("ordinal", ( | |
16 | + | [IntegerEntry("ordinal", toInt(result)), IntegerEntry("bigInt", toInt(result2))] | |
16 | 17 | } | |
17 | 18 | ||
18 | 19 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func keyAccumulatedFee () = "%s__accumulatedFee" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | @Callable(i) | |
8 | 8 | func ordinal () = { | |
9 | - | let partA = pow(1000000000, 0, 5, 1, 0, DOWN) | |
10 | - | let partB = pow(30000000000, 0, 5, 1, 0, DOWN) | |
9 | + | let partA = pow(toBigInt(1000000000), 0, toBigInt(5), 1, 0, DOWN) | |
10 | + | let partB = pow(toBigInt(30000000000), 0, toBigInt(5), 1, 0, DOWN) | |
11 | + | let result = (partA * partB) | |
11 | 12 | let partABigInt = pow(toBigInt(100000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
12 | 13 | let partBBigInt = pow(toBigInt(3000000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
13 | 14 | let res2 = (partABigInt * partBBigInt) | |
14 | 15 | let result2 = (res2 / toBigInt(100000000)) | |
15 | - | [IntegerEntry("ordinal", ( | |
16 | + | [IntegerEntry("ordinal", toInt(result)), IntegerEntry("bigInt", toInt(result2))] | |
16 | 17 | } | |
17 | 18 | ||
18 | 19 | ||
19 | 20 | ||
20 | 21 | @Callable(i) | |
21 | 22 | func callMeDapp (stringParam1) = { | |
22 | 23 | let caller = i.caller | |
23 | 24 | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", false)] | |
24 | 25 | } | |
25 | 26 | ||
26 | 27 | ||
27 | 28 | ||
28 | 29 | @Callable(i) | |
29 | 30 | func callMe (stringParam1,boolParam2,binaryParam3,intParam4,argsStr) = { | |
30 | 31 | let caller = i.caller | |
31 | 32 | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1])] | |
32 | 33 | } | |
33 | 34 | ||
34 | 35 | ||
35 | 36 | ||
36 | 37 | @Callable(i) | |
37 | 38 | func callMe2 (stringParam1,boolParam2,binaryParam3,intParam4,argsStr,argsInt,argsBool,argsBinary) = { | |
38 | 39 | let caller = i.caller | |
39 | 40 | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1]), IntegerEntry("listIntParam1", argsInt[0]), IntegerEntry("listIntParam2", argsInt[1]), BooleanEntry("listBoolParam1", argsBool[0]), BooleanEntry("listBoolParam2", argsBool[1]), BinaryEntry("listBinaryParam3", argsBinary[0]), BinaryEntry("listBinaryParam3", argsBinary[1])] | |
40 | 41 | } | |
41 | 42 | ||
42 | 43 | ||
43 | 44 | @Verifier(tx) | |
44 | 45 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
45 | 46 |
github/deemru/w8io/169f3d6 28.28 ms ◑