tx · 35nEB9DERw9yLRU4yCqTuYyxB7X73LVSpSJyxRdpemcv
3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe: -0.01400000 Waves
2020.11.01 12:28 [1246074] smart account 3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe > SELF 0.00000000 Waves
{
"type": 13,
"id": "35nEB9DERw9yLRU4yCqTuYyxB7X73LVSpSJyxRdpemcv",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1604222961471,
"version": 2,
"chainId": 84,
"sender": "3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe",
"senderPublicKey": "9GE2xN4fms9YNDxR1hGg52RynqDd8125TA42g4X29ZV7",
"proofs": [
"5H1b5fLprK4K1LnxjBhsQrKkiWGWhberibh4hkUL9ztNdHvCCjC4mopHLbv2FdV5byhYjRJAHT9VaW2c9wrh9FYn"
],
"script": "base64:AAIEAAAAAAAAAA8IAhIAEgQKAggIEgMKAQgAAAABAAAAAAJmSwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAlkAAAABAgAAACxDWERuYWJIdWFQd3daUVJKdVJ6a0ZlRExQS295RFVjMWFRbmZNaVVQS3RIRgAAAAMAAAABaQEAAAAHb3BickJ1eQAAAAAEAAAACWJ1eWVyQWRkcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQIBQAAAAFpAAAACHBheW1lbnRzAwkAAAAAAAACCQABkAAAAAEFAAAAA3BtdAAAAAAAAAAAAAkAAAIAAAABAgAAACFQYXltZW50IGZvciBleGNoYW5nZSBpcyBtYW5kYXRvcnkEAAAAAXMJAAGQAAAAAQUAAAADcG10CQAAAgAAAAEJAAEsAAAAAgIAAAAMUGF5bWVudCBzaXplCQABpAAAAAEFAAAAAXMAAAABaQEAAAAJdG9rZW5MaXN0AAAAAgAAAAd0b2tlbklkAAAABnRpY2tlcgQAAAAEQWRkcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAAAiE9AAAAAgUAAAAEQWRkcgkABCUAAAABBQAAAAR0aGlzCQAAAgAAAAECAAAALFRoZSBhZGRyZXNzIGlzIG5vdCBhdXRob3JpemVkIHRvIGxpc3QgdG9rZW5zCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAAB3Rva2VuSWQFAAAABnRpY2tlcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAJmSwAAAAAAAA9CQAUAAAAEdW5pdAUAAAADbmlsAAAAAWkBAAAAC3Rva2VuRGVsaXN0AAAAAQAAAAd0b2tlbklkBAAAAARBZGRyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAARBZGRyCQAEJQAAAAEFAAAABHRoaXMJAAACAAAAAQIAAAAuVGhlIGFkZHJlc3MgaXMgbm90IGF1dGhvcml6ZWQgdG8gZGVsaXN0IHRva2VucwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAd0b2tlbklkCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAAmZLAAAAAAAAmJaABQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQUY9Kc=",
"height": 1246074,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HkexnTdzdbuKeut16ByzeLxm9xPGo11zNUo2D9Bhwspp
Next: HipwySyD4HNWB5AadhBRxfcsy1YJtCVAF2x9nYzjjZ6E
Diff:
Old | New | | Differences |
---|
9 | 9 | | let d = b.payments |
---|
10 | 10 | | if ((size(d) == 0)) |
---|
11 | 11 | | then throw("Payment for exchange is mandatory") |
---|
12 | | - | else [ScriptTransfer(a, 1000000, unit)] |
---|
| 12 | + | else { |
---|
| 13 | + | let e = size(d) |
---|
| 14 | + | throw(("Payment size" + toString(e))) |
---|
| 15 | + | } |
---|
13 | 16 | | } |
---|
14 | 17 | | |
---|
15 | 18 | | |
---|
16 | 19 | | |
---|
17 | 20 | | @Callable(b) |
---|
18 | | - | func tokenList (e,f) = { |
---|
19 | | - | let g = toBase58String(b.caller.bytes) |
---|
20 | | - | if ((g != toString(this))) |
---|
| 21 | + | func tokenList (f,g) = { |
---|
| 22 | + | let h = toBase58String(b.caller.bytes) |
---|
| 23 | + | if ((h != toString(this))) |
---|
21 | 24 | | then throw("The address is not authorized to list tokens") |
---|
22 | | - | else [StringEntry(e, f), ScriptTransfer(a, 1000000, unit)] |
---|
| 25 | + | else [StringEntry(f, g), ScriptTransfer(a, 1000000, unit)] |
---|
23 | 26 | | } |
---|
24 | 27 | | |
---|
25 | 28 | | |
---|
26 | 29 | | |
---|
27 | 30 | | @Callable(b) |
---|
28 | | - | func tokenDelist (e) = { |
---|
29 | | - | let g = toBase58String(b.caller.bytes) |
---|
30 | | - | if ((g != toString(this))) |
---|
| 31 | + | func tokenDelist (f) = { |
---|
| 32 | + | let h = toBase58String(b.caller.bytes) |
---|
| 33 | + | if ((h != toString(this))) |
---|
31 | 34 | | then throw("The address is not authorized to delist tokens") |
---|
32 | | - | else [DeleteEntry(e), ScriptTransfer(a, 10000000, unit)] |
---|
| 35 | + | else [DeleteEntry(f), ScriptTransfer(a, 10000000, unit)] |
---|
33 | 36 | | } |
---|
34 | 37 | | |
---|
35 | 38 | | |
---|
36 | | - | @Verifier(h) |
---|
37 | | - | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
| 39 | + | @Verifier(i) |
---|
| 40 | + | func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
38 | 41 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = addressFromPublicKey(fromBase58String("CXDnabHuaPwwZQRJuRzkFeDLPKoyDUc1aQnfMiUPKtHF")) |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(b) |
---|
7 | 7 | | func opbrBuy () = { |
---|
8 | 8 | | let c = toBase58String(b.caller.bytes) |
---|
9 | 9 | | let d = b.payments |
---|
10 | 10 | | if ((size(d) == 0)) |
---|
11 | 11 | | then throw("Payment for exchange is mandatory") |
---|
12 | | - | else [ScriptTransfer(a, 1000000, unit)] |
---|
| 12 | + | else { |
---|
| 13 | + | let e = size(d) |
---|
| 14 | + | throw(("Payment size" + toString(e))) |
---|
| 15 | + | } |
---|
13 | 16 | | } |
---|
14 | 17 | | |
---|
15 | 18 | | |
---|
16 | 19 | | |
---|
17 | 20 | | @Callable(b) |
---|
18 | | - | func tokenList (e,f) = { |
---|
19 | | - | let g = toBase58String(b.caller.bytes) |
---|
20 | | - | if ((g != toString(this))) |
---|
| 21 | + | func tokenList (f,g) = { |
---|
| 22 | + | let h = toBase58String(b.caller.bytes) |
---|
| 23 | + | if ((h != toString(this))) |
---|
21 | 24 | | then throw("The address is not authorized to list tokens") |
---|
22 | | - | else [StringEntry(e, f), ScriptTransfer(a, 1000000, unit)] |
---|
| 25 | + | else [StringEntry(f, g), ScriptTransfer(a, 1000000, unit)] |
---|
23 | 26 | | } |
---|
24 | 27 | | |
---|
25 | 28 | | |
---|
26 | 29 | | |
---|
27 | 30 | | @Callable(b) |
---|
28 | | - | func tokenDelist (e) = { |
---|
29 | | - | let g = toBase58String(b.caller.bytes) |
---|
30 | | - | if ((g != toString(this))) |
---|
| 31 | + | func tokenDelist (f) = { |
---|
| 32 | + | let h = toBase58String(b.caller.bytes) |
---|
| 33 | + | if ((h != toString(this))) |
---|
31 | 34 | | then throw("The address is not authorized to delist tokens") |
---|
32 | | - | else [DeleteEntry(e), ScriptTransfer(a, 10000000, unit)] |
---|
| 35 | + | else [DeleteEntry(f), ScriptTransfer(a, 10000000, unit)] |
---|
33 | 36 | | } |
---|
34 | 37 | | |
---|
35 | 38 | | |
---|
36 | | - | @Verifier(h) |
---|
37 | | - | func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey) |
---|
| 39 | + | @Verifier(i) |
---|
| 40 | + | func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
38 | 41 | | |
---|