tx · H1paLHD1ecUPKcB9Q5SHdx9Nq7VcYG6qDMpD1gyLzQ3R 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA: -1.00000000 Waves 2019.03.22 15:39 [547531] smart asset 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA > SELF 0 AAA111
{ "type": 15, "id": "H1paLHD1ecUPKcB9Q5SHdx9Nq7VcYG6qDMpD1gyLzQ3R", "fee": 100000000, "feeAssetId": null, "timestamp": 1553258387525, "version": 1, "sender": "3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA", "senderPublicKey": "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob", "proofs": [ "5C4UMGJVs1hnrhEKsbQYznPykkmWBKnRbyVgwiCMEBLHdZitpB2Uid1jHAxKjat2SJBpfQo7UN2MuMy8CjiL3oeD" ], "assetId": "2wBefKLN3DBkGtrW6WMN1mgMinYXEFuGhxM6vTQGLDwK", "script": "base64:AgQAAAAGc3lzdGVtAgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAADYWR2AgAAACxEaDdzdmtSUGVzaXAyRVBVNGdMaWtqQ3JqS1FRNFJxRHA2eXVoNlVhbko4TAQAAAAHYXNzZXRJZAIAAAAsMndCZWZLTE4zREJrR3RyVzZXTU4xbWdNaW5ZWEVGdUdoeE02dlRRR0xEd0sEAAAADG1pbmltdW1QcmljZQAAAAAABfXhAAQAAAALc3RhcnRIZWlnaHQAAAAAAAAWFIEEAAAAA2V4cAkAAGgAAAACCQAAaAAAAAIAAAAAAAAAABgAAAAAAAAAADwAAAAAAAAAADwEAAAACGludGVydmFsCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAGAAAAAAAAAAAPAAAAAAAAAAAPAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRj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WQJAAACAAAAAQkAAaQAAAABBQAAAAhiYWxhbmNlMQkAAAIAAAABAgAAABZQcm9oaWJpdGVkIGJ5IGNvbnRyYWN0uFjTNw==", "chainId": 84, "height": 547531, "spentComplexity": 0 } View: original | compacted Prev: RYvM2rzxhjCVZYvR7ScaxuLAWhBNuAdFZ6F3dBsA7RB Next: ALuRGD5rKLfyKze5sW3oyJreF7XDmczCmVY26Q86wNGj Diff:
Old | New | Differences | |
---|---|---|---|
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" | |
4 | 4 | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" | |
5 | - | let assetId = | |
5 | + | let assetId = "2wBefKLN3DBkGtrW6WMN1mgMinYXEFuGhxM6vTQGLDwK" | |
6 | 6 | let minimumPrice = 100000000 | |
7 | 7 | let startHeight = 1447041 | |
8 | 8 | let exp = ((24 * 60) * 60) | |
33 | 33 | then true | |
34 | 34 | else false | |
35 | 35 | case e: ExchangeTransaction => | |
36 | - | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), assetId) | |
36 | + | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) | |
37 | 37 | throw(toString(balance1)) | |
38 | 38 | case _ => | |
39 | 39 | throw("Prohibited by contract") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" | |
4 | 4 | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" | |
5 | - | let assetId = | |
5 | + | let assetId = "2wBefKLN3DBkGtrW6WMN1mgMinYXEFuGhxM6vTQGLDwK" | |
6 | 6 | let minimumPrice = 100000000 | |
7 | 7 | let startHeight = 1447041 | |
8 | 8 | let exp = ((24 * 60) * 60) | |
9 | 9 | let interval = ((24 * 60) * 60) | |
10 | 10 | match tx { | |
11 | 11 | case e: TransferTransaction => | |
12 | 12 | if (if ((toBase58String(e.senderPublicKey) == system)) | |
13 | 13 | then true | |
14 | 14 | else (toBase58String(e.senderPublicKey) == adv)) | |
15 | 15 | then true | |
16 | 16 | else false | |
17 | 17 | case e: ReissueTransaction => | |
18 | 18 | if ((toBase58String(e.senderPublicKey) == system)) | |
19 | 19 | then true | |
20 | 20 | else false | |
21 | 21 | case e: BurnTransaction => | |
22 | 22 | if ((toBase58String(e.senderPublicKey) == system)) | |
23 | 23 | then true | |
24 | 24 | else false | |
25 | 25 | case e: MassTransferTransaction => | |
26 | 26 | if (if ((toBase58String(e.senderPublicKey) == system)) | |
27 | 27 | then true | |
28 | 28 | else (toBase58String(e.senderPublicKey) == adv)) | |
29 | 29 | then true | |
30 | 30 | else false | |
31 | 31 | case e: SetAssetScriptTransaction => | |
32 | 32 | if ((toBase58String(e.senderPublicKey) == system)) | |
33 | 33 | then true | |
34 | 34 | else false | |
35 | 35 | case e: ExchangeTransaction => | |
36 | - | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), assetId) | |
36 | + | let balance1 = assetBalance(addressFromPublicKey(e.senderPublicKey), fromBase58String(assetId)) | |
37 | 37 | throw(toString(balance1)) | |
38 | 38 | case _ => | |
39 | 39 | throw("Prohibited by contract") | |
40 | 40 | } |
github/deemru/w8io/169f3d6 36.60 ms ◑