tx · HkexnTdzdbuKeut16ByzeLxm9xPGo11zNUo2D9Bhwspp

3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe:  -0.01400000 Waves

2020.11.01 12:25 [1246070] smart account 3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe > SELF 0.00000000 Waves

{ "type": 13, "id": "HkexnTdzdbuKeut16ByzeLxm9xPGo11zNUo2D9Bhwspp", "fee": 1400000, "feeAssetId": null, "timestamp": 1604222788559, "version": 2, "chainId": 84, "sender": "3MpKvUfNxrgF7QotPjFwi8thMagSveNScKe", "senderPublicKey": "9GE2xN4fms9YNDxR1hGg52RynqDd8125TA42g4X29ZV7", "proofs": [ "4JJGspNmB1XEG1YMMEKVjV13zwCEtMmm713eLP6uQPuGZvSmAsjVdA368BusYEu1d3EMQSiNgKNUzwtg2m4vKRmo" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgQKAggIEgMKAQgAAAABAAAAAAJmSwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAlkAAAABAgAAACxDWERuYWJIdWFQd3daUVJKdVJ6a0ZlRExQS295RFVjMWFRbmZNaVVQS3RIRgAAAAMAAAABaQEAAAAHb3BickJ1eQAAAAAEAAAACWJ1eWVyQWRkcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAANwbXQIBQAAAAFpAAAACHBheW1lbnRzAwkAAAAAAAACCQABkAAAAAEFAAAAA3BtdAAAAAAAAAAAAAkAAAIAAAABAgAAACFQYXltZW50IGZvciBleGNoYW5nZSBpcyBtYW5kYXRvcnkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAACZksAAAAAAAAPQkAFAAAABHVuaXQFAAAAA25pbAAAAAFpAQAAAAl0b2tlbkxpc3QAAAACAAAAB3Rva2VuSWQAAAAGdGlja2VyBAAAAARBZGRyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMDCQEAAAACIT0AAAACBQAAAARBZGRyCQAEJQAAAAEFAAAABHRoaXMJAAACAAAAAQIAAAAsVGhlIGFkZHJlc3MgaXMgbm90IGF1dGhvcml6ZWQgdG8gbGlzdCB0b2tlbnMJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAHdG9rZW5JZAUAAAAGdGlja2VyCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAAmZLAAAAAAAAD0JABQAAAAR1bml0BQAAAANuaWwAAAABaQEAAAALdG9rZW5EZWxpc3QAAAABAAAAB3Rva2VuSWQEAAAABEFkZHIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAAIhPQAAAAIFAAAABEFkZHIJAAQlAAAAAQUAAAAEdGhpcwkAAAIAAAABAgAAAC5UaGUgYWRkcmVzcyBpcyBub3QgYXV0aG9yaXplZCB0byBkZWxpc3QgdG9rZW5zCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAAB3Rva2VuSWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAACZksAAAAAAACYloAFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5DK8tLQ==", "height": 1246070, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 457i7xw1p2w1NBhZgPzEBY7aGkf6JgEToT79HnKJZrwF Next: 35nEB9DERw9yLRU4yCqTuYyxB7X73LVSpSJyxRdpemcv Diff:
OldNewDifferences
44 let a = addressFromPublicKey(fromBase58String("CXDnabHuaPwwZQRJuRzkFeDLPKoyDUc1aQnfMiUPKtHF"))
55
66 @Callable(b)
7-func tokenList (c,d) = {
8- let e = toBase58String(b.caller.bytes)
9- if ((e != toString(this)))
10- then throw("The address is not authorized to insert tokens")
11- else [StringEntry(c, d), ScriptTransfer(a, 1000000, unit)]
7+func opbrBuy () = {
8+ let c = toBase58String(b.caller.bytes)
9+ let d = b.payments
10+ if ((size(d) == 0))
11+ then throw("Payment for exchange is mandatory")
12+ else [ScriptTransfer(a, 1000000, unit)]
1213 }
1314
1415
1516
1617 @Callable(b)
17-func tokenDelist (c) = {
18- let e = toBase58String(b.caller.bytes)
19- if ((e != toString(this)))
20- then throw("The address is not authorized to delete tokens")
21- else [DeleteEntry(c), ScriptTransfer(a, 10000000, unit)]
18+func tokenList (e,f) = {
19+ let g = toBase58String(b.caller.bytes)
20+ if ((g != toString(this)))
21+ then throw("The address is not authorized to list tokens")
22+ else [StringEntry(e, f), ScriptTransfer(a, 1000000, unit)]
2223 }
2324
2425
25-@Verifier(f)
26-func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey)
26+
27+@Callable(b)
28+func tokenDelist (e) = {
29+ let g = toBase58String(b.caller.bytes)
30+ if ((g != toString(this)))
31+ then throw("The address is not authorized to delist tokens")
32+ else [DeleteEntry(e), ScriptTransfer(a, 10000000, unit)]
33+ }
34+
35+
36+@Verifier(h)
37+func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey)
2738
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = addressFromPublicKey(fromBase58String("CXDnabHuaPwwZQRJuRzkFeDLPKoyDUc1aQnfMiUPKtHF"))
55
66 @Callable(b)
7-func tokenList (c,d) = {
8- let e = toBase58String(b.caller.bytes)
9- if ((e != toString(this)))
10- then throw("The address is not authorized to insert tokens")
11- else [StringEntry(c, d), ScriptTransfer(a, 1000000, unit)]
7+func opbrBuy () = {
8+ let c = toBase58String(b.caller.bytes)
9+ let d = b.payments
10+ if ((size(d) == 0))
11+ then throw("Payment for exchange is mandatory")
12+ else [ScriptTransfer(a, 1000000, unit)]
1213 }
1314
1415
1516
1617 @Callable(b)
17-func tokenDelist (c) = {
18- let e = toBase58String(b.caller.bytes)
19- if ((e != toString(this)))
20- then throw("The address is not authorized to delete tokens")
21- else [DeleteEntry(c), ScriptTransfer(a, 10000000, unit)]
18+func tokenList (e,f) = {
19+ let g = toBase58String(b.caller.bytes)
20+ if ((g != toString(this)))
21+ then throw("The address is not authorized to list tokens")
22+ else [StringEntry(e, f), ScriptTransfer(a, 1000000, unit)]
2223 }
2324
2425
25-@Verifier(f)
26-func g () = sigVerify(f.bodyBytes, f.proofs[0], f.senderPublicKey)
26+
27+@Callable(b)
28+func tokenDelist (e) = {
29+ let g = toBase58String(b.caller.bytes)
30+ if ((g != toString(this)))
31+ then throw("The address is not authorized to delist tokens")
32+ else [DeleteEntry(e), ScriptTransfer(a, 10000000, unit)]
33+ }
34+
35+
36+@Verifier(h)
37+func i () = sigVerify(h.bodyBytes, h.proofs[0], h.senderPublicKey)
2738

github/deemru/w8io/169f3d6 
24.59 ms