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