tx · 9WhpGzBNDBMxs2srGwoQoYT63an6VKg9rkphFTbUiHAY 3N9SKEjhzhHCh5DFst9yRtN7tGJZmBSKYEt: -0.01000000 Waves 2019.11.20 13:21 [773365] smart account 3N9SKEjhzhHCh5DFst9yRtN7tGJZmBSKYEt > SELF 0.00000000 Waves
{ "type": 13, "id": "9WhpGzBNDBMxs2srGwoQoYT63an6VKg9rkphFTbUiHAY", "fee": 1000000, "feeAssetId": null, "timestamp": 1574245219288, "version": 1, "sender": "3N9SKEjhzhHCh5DFst9yRtN7tGJZmBSKYEt", "senderPublicKey": "2Rhf81SQr8Zv3QPai79maGXRVuBygN2ZGcYp2Gew25bW", "proofs": [ "5gF8WCdFzLkMUR9CNZfQMSnF8ttMoRuudL89E2dRHDrVjeqkfVx9gnn49k4DmsLoFqE3rHm99GBFgJ9cV5PydwRf" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAADa2V5CAkAAZEAAAACCAUAAAABdAAAAARkYXRhAAAAAAAAAAAAAAAAA2tleQQAAAARc3RyaW5nRW50cnlFeGlzdHMDCQEAAAAJaXNEZWZpbmVkAAAAAQkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkGBwQAAAASaW50ZWdlckVudHJ5RXhpc3RzAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5BgcEAAAAEmJvb2xlYW5FbnRyeUV4aXN0cwMJAQAAAAlpc0RlZmluZWQAAAABCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQYHBAAAABFiaW5hcnlFbnRyeUV4aXN0cwMJAQAAAAlpc0RlZmluZWQAAAABCQAEHAAAAAIFAAAABHRoaXMFAAAAA2tleQYHAwMDAwkAAAAAAAACBQAAABFzdHJpbmdFbnRyeUV4aXN0cwcJAAAAAAAAAgUAAAARYmluYXJ5RW50cnlFeGlzdHMHBwkAAAAAAAACBQAAABJpbnRlZ2VyRW50cnlFeGlzdHMHBwkAAAAAAAACBQAAABJib29sZWFuRW50cnlFeGlzdHMHBwYJAAACAAAAAQIAAAAQa2V5IGFscmVhZHkgc2V0IQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzBmsO3w==", "chainId": 84, "height": 773365, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | @Verifier(tx) | |
8 | + | func verify () = match tx { | |
9 | + | case t: DataTransaction => | |
10 | + | let key = t.data[0].key | |
11 | + | let stringEntryExists = if (isDefined(getString(this, key))) | |
12 | + | then true | |
13 | + | else false | |
14 | + | let integerEntryExists = if (isDefined(getInteger(this, key))) | |
15 | + | then true | |
16 | + | else false | |
17 | + | let booleanEntryExists = if (isDefined(getBoolean(this, key))) | |
18 | + | then true | |
19 | + | else false | |
20 | + | let binaryEntryExists = if (isDefined(getBinary(this, key))) | |
21 | + | then true | |
22 | + | else false | |
23 | + | if (if (if (if ((stringEntryExists == false)) | |
24 | + | then (binaryEntryExists == false) | |
25 | + | else false) | |
26 | + | then (integerEntryExists == false) | |
27 | + | else false) | |
28 | + | then (booleanEntryExists == false) | |
29 | + | else false) | |
30 | + | then true | |
31 | + | else throw("key already set!") | |
32 | + | case _ => | |
33 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.sender.bytes) | |
34 | + | } | |
35 | + |
github/deemru/w8io/169f3d6 18.41 ms ◑