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 pmt = i.payments | |
10 | 10 | if ((size(pmt) == 0)) | |
11 | 11 | then throw("Payment for exchange is mandatory") | |
12 | - | else [ScriptTransfer(fK, 1000000, unit)] | |
12 | + | else { | |
13 | + | let s = size(pmt) | |
14 | + | throw(("Payment size" + toString(s))) | |
15 | + | } | |
13 | 16 | } | |
14 | 17 | ||
15 | 18 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let fK = addressFromPublicKey(fromBase58String("CXDnabHuaPwwZQRJuRzkFeDLPKoyDUc1aQnfMiUPKtHF")) | |
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func opbrBuy () = { | |
8 | 8 | let buyerAddr = toBase58String(i.caller.bytes) | |
9 | 9 | let pmt = i.payments | |
10 | 10 | if ((size(pmt) == 0)) | |
11 | 11 | then throw("Payment for exchange is mandatory") | |
12 | - | else [ScriptTransfer(fK, 1000000, unit)] | |
12 | + | else { | |
13 | + | let s = size(pmt) | |
14 | + | throw(("Payment size" + toString(s))) | |
15 | + | } | |
13 | 16 | } | |
14 | 17 | ||
15 | 18 | ||
16 | 19 | ||
17 | 20 | @Callable(i) | |
18 | 21 | func tokenList (tokenId,ticker) = { | |
19 | 22 | let Addr = toBase58String(i.caller.bytes) | |
20 | 23 | if ((Addr != toString(this))) | |
21 | 24 | then throw("The address is not authorized to list tokens") | |
22 | 25 | else [StringEntry(tokenId, ticker), ScriptTransfer(fK, 1000000, unit)] | |
23 | 26 | } | |
24 | 27 | ||
25 | 28 | ||
26 | 29 | ||
27 | 30 | @Callable(i) | |
28 | 31 | func tokenDelist (tokenId) = { | |
29 | 32 | let Addr = toBase58String(i.caller.bytes) | |
30 | 33 | if ((Addr != toString(this))) | |
31 | 34 | then throw("The address is not authorized to delist tokens") | |
32 | 35 | else [DeleteEntry(tokenId), ScriptTransfer(fK, 10000000, unit)] | |
33 | 36 | } | |
34 | 37 | ||
35 | 38 | ||
36 | 39 | @Verifier(tx) | |
37 | 40 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
38 | 41 |
github/deemru/w8io/169f3d6 26.87 ms ◑