tx · BFJYTtJ2F4P8YDtLYMcZ64LNz63kXEVsZYYPqKDBLaeW 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves 2019.02.28 10:49 [515007] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 eeee
{ "type": 15, "id": "BFJYTtJ2F4P8YDtLYMcZ64LNz63kXEVsZYYPqKDBLaeW", "fee": 100000000, "feeAssetId": null, "timestamp": 1551340150653, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "3sb4swuJn5AFhhiTeKPY8cFCdm9syYftrSr2h4tQfSrSy63LBbe7TiPybPPj6myY8SoM1im5FbBa4xihQJaGRFXy" ], "assetId": "4HWP4oJha8gEsV4V6HvAW96pnnbgK99vwLhACGNo6PPg", "script": "base64:AQQAAAAPbWluaW11bVRyYW5zZmVyAAAAAAAF9eEABAAAAAxtaW5pbXVtUHJpY2UAAAAAAAX14QAEAAAAB0FTaWduZWQCAAAAK1dIRlpMMnNlRHpjNGNnSEV5NWpUN0xTdHQ1eHBxenRWZkI1OFZ4aGhpOFQEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAF0AAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxBAAAABN0cmFuc2FjdGlvbkJ5SXNzdWVyCQAAAAAAAAIIBQAAAAF0AAAAD3NlbmRlclB1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c2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAElJlaXNzdWVUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHCQAAAgAAAAECAAAAKlRyYW5zYWN0aW9uIGlzIG5vdCBhbGxvd2VkIGJ5IHRva2VuLXNjcmlwdAlvjKY=", "chainId": 84, "height": 515007, "spentComplexity": 0 } View: original | compacted Prev: Fjm8DkNvPreTTT35E3pmStTKSJ4pdcr9v6JwpZTBSxpu Next: AqUmuAJpvESYzKzoamZDXM61r3TrTCpx7bDGX8dKMrRa Diff:
Old | New | Differences | |
---|---|---|---|
29 | 29 | else if ((t.amount >= minimumTransfer)) | |
30 | 30 | then if ((t.price > minimumPrice)) | |
31 | 31 | then true | |
32 | - | else throw(" | |
32 | + | else throw("does not match the minimum sell price") | |
33 | 33 | else throw("Minimum order amount is 1 eee") | |
34 | 34 | } | |
35 | 35 | case t: SetAssetScriptTransaction => | |
36 | + | true | |
37 | + | case t: BurnTransaction => | |
36 | 38 | true | |
37 | 39 | case t: ReissueTransaction => | |
38 | 40 | true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let minimumTransfer = 100000000 | |
4 | 4 | let minimumPrice = 100000000 | |
5 | 5 | let ASigned = "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T" | |
6 | 6 | match tx { | |
7 | 7 | case t: TransferTransaction => | |
8 | 8 | let transaction = transactionById(extract(t.assetId)) | |
9 | 9 | match transaction { | |
10 | 10 | case issueTx: IssueTransaction => | |
11 | 11 | let transactionByIssuer = (t.senderPublicKey == issueTx.senderPublicKey) | |
12 | 12 | if (transactionByIssuer) | |
13 | 13 | then if ((toBase58String(t.senderPublicKey) == ASigned)) | |
14 | 14 | then true | |
15 | 15 | else if ((minimumTransfer >= t.amount)) | |
16 | 16 | then throw("Minimum transaction amount is 1 eee") | |
17 | 17 | else true | |
18 | 18 | else false | |
19 | 19 | case _ => | |
20 | 20 | throw("Not issue tx") | |
21 | 21 | } | |
22 | 22 | case t: ExchangeTransaction => | |
23 | 23 | if ((toBase58String(t.sellOrder.senderPublicKey) == ASigned)) | |
24 | 24 | then true | |
25 | 25 | else { | |
26 | 26 | let buy = sigVerify(t.buyOrder.bodyBytes, t.buyOrder.proofs[0], t.buyOrder.senderPublicKey) | |
27 | 27 | if (buy) | |
28 | 28 | then true | |
29 | 29 | else if ((t.amount >= minimumTransfer)) | |
30 | 30 | then if ((t.price > minimumPrice)) | |
31 | 31 | then true | |
32 | - | else throw(" | |
32 | + | else throw("does not match the minimum sell price") | |
33 | 33 | else throw("Minimum order amount is 1 eee") | |
34 | 34 | } | |
35 | 35 | case t: SetAssetScriptTransaction => | |
36 | + | true | |
37 | + | case t: BurnTransaction => | |
36 | 38 | true | |
37 | 39 | case t: ReissueTransaction => | |
38 | 40 | true | |
39 | 41 | case t: MassTransferTransaction => | |
40 | 42 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
41 | 43 | then true | |
42 | 44 | else false | |
43 | 45 | case _ => | |
44 | 46 | throw("Transaction is not allowed by token-script") | |
45 | 47 | } |
github/deemru/w8io/026f985 39.84 ms ◑