tx · 9emsfUh27naRtrYYvZ34XcAk96GGkqw1VWMKmgkQMvu6 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP: -0.05000000 Waves 2021.09.28 00:49 [1721917] smart account 3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP > SELF 0.00000000 Waves
{ "type": 13, "id": "9emsfUh27naRtrYYvZ34XcAk96GGkqw1VWMKmgkQMvu6", "fee": 5000000, "feeAssetId": null, "timestamp": 1632779516090, "version": 2, "chainId": 84, "sender": "3N22BYqtPzVTSgJBrhE8yYUSZPRCmkXmtcP", "senderPublicKey": "2uZLPvTfcSdSqd6m8q85ZpiWEmxSkGWzb5ocbziqSzCj", "proofs": [ "2HjpGRHVZnvLWW4MpBVfhfMKVARA4HcUZq1KBXZERkP5rK8Gbt1T8Y7T3c4ZDudw9tFAo8c4ZGwqveapXEXkzycX" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgMKAQgSBwoFCAQCARgSCgoICAQCARgRFBIAAAABAQAAABFrZXlBY2N1bXVsYXRlZEZlZQAAAAACAAAAEiVzX19hY2N1bXVsYXRlZEZlZQAAAAQAAAABaQEAAAAHb3JkaW5hbAAAAAAEAAAABXBhcnRBCQAAbAAAAAYAAAAAAlQL5AAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAEAAAAAAAAAAAAFAAAABERPV04EAAAABXBhcnRCCQAAbAAAAAYAAAAARdlkuAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAEAAAAAAAAAAAAFAAAABERPV04EAAAAC3BhcnRBQmlnSW50CQAAdgAAAAYJAAE2AAAAAQAAI4byb8EAAAAAAAAAAAAAAAkAATYAAAABAAAAAAAAAAAFAAAAAAAAAAABAAAAAAAAAAAABQAAAARET1dOBAAAAAtwYXJ0QkJpZ0ludAkAAHYAAAAGCQABNgAAAAEAAGqU109DAAAAAAAAAAAAAAAJAAE2AAAAAQAAAAAAAAAABQAAAAAAAAAAAQAAAAAAAAAAAAUAAAA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AAICAAAADWxpc3RJbnRQYXJhbTIJAAGRAAAAAgUAAAAHYXJnc0ludAAAAAAAAAAAAQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAObGlzdEJvb2xQYXJhbTEJAAGRAAAAAgUAAAAIYXJnc0Jvb2wAAAAAAAAAAAAJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAADmxpc3RCb29sUGFyYW0yCQABkQAAAAIFAAAACGFyZ3NCb29sAAAAAAAAAAABCQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAEGxpc3RCaW5hcnlQYXJhbTMJAAGRAAAAAgUAAAAKYXJnc0JpbmFyeQAAAAAAAAAAAAkABEwAAAACCQEAAAALQmluYXJ5RW50cnkAAAACAgAAABBsaXN0QmluYXJ5UGFyYW0zCQABkQAAAAIFAAAACmFyZ3NCaW5hcnkAAAAAAAAAAAEFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5Wu8eBg==", "height": 1721917, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EevvGhJDZRVT9wS9oATjHWcopesVJYhprABws4LMjJou Next: FxmZefeBNyLXoYUXSR7uDzn8bqnRf9fZtJNmEWBBB9oF Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func keyAccumulatedFee () = "%s__accumulatedFee" | |
4 | 5 | ||
5 | 6 | ||
6 | 7 | @Callable(i) | |
7 | - | func call () = { | |
8 | - | let inv = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "lockNeutrino", nil, [AttachedPayment(fromBase58String("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), 100000)]) | |
9 | - | if ((inv == inv)) | |
10 | - | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "")] | |
11 | - | else throw("Strict value is not equal to itself.") | |
8 | + | func ordinal () = { | |
9 | + | let partA = pow(10000000000, 0, 5, 1, 0, DOWN) | |
10 | + | let partB = pow(300000000000, 0, 5, 1, 0, DOWN) | |
11 | + | let partABigInt = pow(toBigInt(10000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
12 | + | let partBBigInt = pow(toBigInt(30000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
13 | + | let res2 = (partABigInt * partBBigInt) | |
14 | + | let result2 = (res2 / toBigInt(1000000)) | |
15 | + | [IntegerEntry("ordinal", (partA * partB)), IntegerEntry("bigInt", toInt(result2))] | |
12 | 16 | } | |
13 | 17 | ||
14 | 18 | ||
15 | 19 | ||
16 | 20 | @Callable(i) | |
17 | - | func callUnlock () = { | |
18 | - | let inv = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "unlockNeutrino", [100000, "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"], nil) | |
19 | - | if ((inv == inv)) | |
20 | - | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "")] | |
21 | - | else throw("Strict value is not equal to itself.") | |
21 | + | func callMeDapp (stringParam1) = { | |
22 | + | let caller = i.caller | |
23 | + | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", false)] | |
22 | 24 | } | |
23 | 25 | ||
24 | 26 | ||
25 | 27 | ||
26 | 28 | @Callable(i) | |
27 | - | func checkBalancest () = { | |
28 | - | let payment = value(i.payments[0]) | |
29 | - | let availableWaves = wavesBalance(this).available | |
30 | - | let availablePlusPayment = (availableWaves + payment.amount) | |
31 | - | let txId = toBase58String(i.transactionId) | |
32 | - | [IntegerEntry(("payment " + txId), payment.amount), IntegerEntry(("before " + txId), availableWaves), IntegerEntry(("after " + txId), availablePlusPayment)] | |
29 | + | func callMe (stringParam1,boolParam2,binaryParam3,intParam4,argsStr) = { | |
30 | + | let caller = i.caller | |
31 | + | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1])] | |
32 | + | } | |
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | @Callable(i) | |
37 | + | func callMe2 (stringParam1,boolParam2,binaryParam3,intParam4,argsStr,argsInt,argsBool,argsBinary) = { | |
38 | + | let caller = i.caller | |
39 | + | [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])] | |
33 | 40 | } | |
34 | 41 | ||
35 | 42 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func keyAccumulatedFee () = "%s__accumulatedFee" | |
4 | 5 | ||
5 | 6 | ||
6 | 7 | @Callable(i) | |
7 | - | func call () = { | |
8 | - | let inv = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "lockNeutrino", nil, [AttachedPayment(fromBase58String("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), 100000)]) | |
9 | - | if ((inv == inv)) | |
10 | - | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "")] | |
11 | - | else throw("Strict value is not equal to itself.") | |
8 | + | func ordinal () = { | |
9 | + | let partA = pow(10000000000, 0, 5, 1, 0, DOWN) | |
10 | + | let partB = pow(300000000000, 0, 5, 1, 0, DOWN) | |
11 | + | let partABigInt = pow(toBigInt(10000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
12 | + | let partBBigInt = pow(toBigInt(30000000000000000), 0, toBigInt(5), 1, 0, DOWN) | |
13 | + | let res2 = (partABigInt * partBBigInt) | |
14 | + | let result2 = (res2 / toBigInt(1000000)) | |
15 | + | [IntegerEntry("ordinal", (partA * partB)), IntegerEntry("bigInt", toInt(result2))] | |
12 | 16 | } | |
13 | 17 | ||
14 | 18 | ||
15 | 19 | ||
16 | 20 | @Callable(i) | |
17 | - | func callUnlock () = { | |
18 | - | let inv = invoke(addressFromStringValue("3MsNbupKQ1Zf5yVo952AkFiKu2rh4oevWeC"), "unlockNeutrino", [100000, "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"], nil) | |
19 | - | if ((inv == inv)) | |
20 | - | then [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", "")] | |
21 | - | else throw("Strict value is not equal to itself.") | |
21 | + | func callMeDapp (stringParam1) = { | |
22 | + | let caller = i.caller | |
23 | + | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", false)] | |
22 | 24 | } | |
23 | 25 | ||
24 | 26 | ||
25 | 27 | ||
26 | 28 | @Callable(i) | |
27 | - | func checkBalancest () = { | |
28 | - | let payment = value(i.payments[0]) | |
29 | - | let availableWaves = wavesBalance(this).available | |
30 | - | let availablePlusPayment = (availableWaves + payment.amount) | |
31 | - | let txId = toBase58String(i.transactionId) | |
32 | - | [IntegerEntry(("payment " + txId), payment.amount), IntegerEntry(("before " + txId), availableWaves), IntegerEntry(("after " + txId), availablePlusPayment)] | |
29 | + | func callMe (stringParam1,boolParam2,binaryParam3,intParam4,argsStr) = { | |
30 | + | let caller = i.caller | |
31 | + | [StringEntry("stringParam1", stringParam1), BooleanEntry("boolParam2", boolParam2), BinaryEntry("binaryParam3", binaryParam3), IntegerEntry("intParam4", intParam4), StringEntry("listStringParam1", argsStr[0]), StringEntry("listStringParam2", argsStr[1])] | |
32 | + | } | |
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | @Callable(i) | |
37 | + | func callMe2 (stringParam1,boolParam2,binaryParam3,intParam4,argsStr,argsInt,argsBool,argsBinary) = { | |
38 | + | let caller = i.caller | |
39 | + | [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])] | |
33 | 40 | } | |
34 | 41 | ||
35 | 42 | ||
36 | 43 | @Verifier(tx) | |
37 | 44 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
38 | 45 |
github/deemru/w8io/169f3d6 21.01 ms ◑