tx · 6SKupGaHpjE8bW2c4RxvzoEGEDepM8P3HAeqVzobFDkP 3MsGaPwSZGbRkHeU5kYsEFJCX4PPujd5SJ7: -0.01000000 Waves 2021.09.23 23:39 [1716194] smart account 3MsGaPwSZGbRkHeU5kYsEFJCX4PPujd5SJ7 > SELF 0.00000000 Waves
{ "type": 13, "id": "6SKupGaHpjE8bW2c4RxvzoEGEDepM8P3HAeqVzobFDkP", "fee": 1000000, "feeAssetId": null, "timestamp": 1632429460135, "version": 1, "sender": "3MsGaPwSZGbRkHeU5kYsEFJCX4PPujd5SJ7", "senderPublicKey": "8bucJnjo1rN155Zycpsunmsw9y98tqwuFbimJV4onPSe", "proofs": [ "42vf7tcdauJm9JwNo8cZuHxQ2Cb9eG5u6b4cmKfoh9Ku8EDZygm9k4DvG3aHKWRVhvJrniAP3LUQ17tF6AVEzxFe" ], "script": "base64:AAIFAAAAAAAAABUIAhIECgIBCBIECgIIARIFCgMIAQgAAAAAAAAAAwAAAAFpAQAAAAhkYXRhYmFzZQAAAAIAAAAFdmFsdWUAAAAEc29tZQQAAAAEYmFzZQkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBAAAAANrZXkJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARiYXNlBQAAAARiYXNlBQAAAARiYXNlBQAAAARiYXNlBQAAAARiYXNlCQABLwAAAAIFAAAABGJhc2UAAAAAAAAAACAEAAAABGNhbGwJAAP8AAAABAUAAAAEdGhpcwIAAAAJa2V5dmFsdWUxCQAETAAAAAIFAAAAA2tleQkABEwAAAACCQAAZQAAAAIFAAAABXZhbHVlAAAAAAAAAAABBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAAEY2FsbAUAAAAEY2FsbAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAFpAQAAAAlrZXl2YWx1ZTEAAAACAAAAA2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tZQUAAAADbmlsAAAAABYo+MQ=", "chainId": 84, "height": 1716194, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ArEjJzvENZWvL8n3xw7ew5BdSEforpRqU8fKmcJHur3A Next: 9HGkuZAiLpTM1hnEke6tkFXbcwKUdGCKXLHi9bTu1Syx Diff:
Old | New | Differences | |
---|---|---|---|
6 | 6 | @Callable(i) | |
7 | 7 | func database (value,some) = { | |
8 | 8 | let base = toBase58String(i.transactionId) | |
9 | - | let key = | |
10 | - | let call = invoke(this, " | |
9 | + | let key = (((((base + base) + base) + base) + base) + take(base, 32)) | |
10 | + | let call = invoke(this, "keyvalue1", [key, (value - 1)], nil) | |
11 | 11 | if ((call == call)) | |
12 | 12 | then nil | |
13 | 13 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func database (value,some) = { | |
8 | 8 | let base = toBase58String(i.transactionId) | |
9 | - | let key = | |
10 | - | let call = invoke(this, " | |
9 | + | let key = (((((base + base) + base) + base) + base) + take(base, 32)) | |
10 | + | let call = invoke(this, "keyvalue1", [key, (value - 1)], nil) | |
11 | 11 | if ((call == call)) | |
12 | 12 | then nil | |
13 | 13 | else throw("Strict value is not equal to itself.") | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | ||
18 | 18 | @Callable(i) | |
19 | 19 | func keyvalue1 (key,value) = if ((value > 0)) | |
20 | 20 | then { | |
21 | 21 | let rn = invoke(this, "keyvalue1", [key, (value - 1)], nil) | |
22 | 22 | if ((rn == rn)) | |
23 | 23 | then [BooleanEntry((toString((100 + value)) + key), true)] | |
24 | 24 | else throw("Strict value is not equal to itself.") | |
25 | 25 | } | |
26 | 26 | else [BooleanEntry((toString(100) + key), true)] | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Callable(i) | |
31 | 31 | func keyvalue2 (key,value,some) = if ((value > 0)) | |
32 | 32 | then { | |
33 | 33 | let rn = invoke(this, "keyvalue2", [key, (value - 1), some], nil) | |
34 | 34 | if ((rn == rn)) | |
35 | 35 | then [StringEntry((toString((100 + value)) + key), some)] | |
36 | 36 | else throw("Strict value is not equal to itself.") | |
37 | 37 | } | |
38 | 38 | else [StringEntry((toString(100) + key), some)] | |
39 | 39 | ||
40 | 40 |
github/deemru/w8io/169f3d6 26.06 ms ◑