tx · AqUmuAJpvESYzKzoamZDXM61r3TrTCpx7bDGX8dKMrRa 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc: -1.00000000 Waves 2019.02.28 10:56 [515013] smart asset 3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc > SELF 0.00000000 eeee
{ "type": 15, "id": "AqUmuAJpvESYzKzoamZDXM61r3TrTCpx7bDGX8dKMrRa", "fee": 100000000, "feeAssetId": null, "timestamp": 1551340602860, "version": 1, "sender": "3MsxAJrS5TnsHQMaFdAzfKsq3bcEZVDs1sc", "senderPublicKey": "WHFZL2seDzc4cgHEy5jT7LStt5xpqztVfB58Vxhhi8T", "proofs": [ "36FURHAatkBjKw1YXHiUqjzyTo29HTTREfhUjoCGKLdz1fK6HafhD8CzdjwyAm9DWKVhwAn2rMf7f6Suotzfp1Nj" ], "assetId": "4HWP4oJha8gEsV4V6HvAW96pnnbgK99vwLhACGNo6PPg", "script": "base64:AQQAAAAPbWluaW11bVRyYW5zZmVyAAAAAAAF9eEABAAAAAxtaW5pbXVtUHJpY2UAAAAAAAX14QAEAAAAB0FTaWduZWQCAAAAK1dIRlpMMnNlRHpjNGNnSEV5NWpUN0xTdHQ1eHBxenRWZkI1OFZ4aGhpOFQEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAAt0cmFuc2FjdGlvbgkAA+gAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAF0AAAAB2Fzc2V0SWQEAAAAByRtYXRjaDEFAAAAC3RyYW5zYWN0aW9uAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAdpc3N1ZVR4BQAAAAckbWF0Y2gxBAAAABN0cmFuc2FjdGlvbkJ5SXNzdWVyCQAAAAAAAAIIBQAAAAF0AAAAD3NlbmRlclB1Ymxp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aWNLZXkFAAAAB0FTaWduZWQGBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPQnVyblRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwAwkAAAAAAAACCQACWAAAAAEIBQAAAAF0AAAAD3NlbmRlclB1YmxpY0tleQUAAAAHQVNpZ25lZAYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAAAAAAAAAgkAAlgAAAABCAUAAAABdAAAAA9zZW5kZXJQdWJsaWNLZXkFAAAAB0FTaWduZWQGBwkAAAIAAAABAgAAACpUcmFuc2FjdGlvbiBpcyBub3QgYWxsb3dlZCBieSB0b2tlbi1zY3JpcHQj2Q0f", "chainId": 84, "height": 515013, "spentComplexity": 0 } View: original | compacted Prev: BFJYTtJ2F4P8YDtLYMcZ64LNz63kXEVsZYYPqKDBLaeW Next: 3GNhkShq3sDSFsyqSStmNZBbx2uP1aQ2GbxoBg61D8GW Diff:
Old | New | Differences | |
---|---|---|---|
33 | 33 | else throw("Minimum order amount is 1 eee") | |
34 | 34 | } | |
35 | 35 | case t: SetAssetScriptTransaction => | |
36 | - | true | |
36 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
37 | + | then true | |
38 | + | else false | |
37 | 39 | case t: BurnTransaction => | |
38 | 40 | true | |
39 | 41 | case t: ReissueTransaction => | |
40 | - | true | |
42 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
43 | + | then true | |
44 | + | else false | |
41 | 45 | case t: MassTransferTransaction => | |
42 | 46 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
43 | 47 | then 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 | 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 | |
36 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
37 | + | then true | |
38 | + | else false | |
37 | 39 | case t: BurnTransaction => | |
38 | 40 | true | |
39 | 41 | case t: ReissueTransaction => | |
40 | - | true | |
42 | + | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
43 | + | then true | |
44 | + | else false | |
41 | 45 | case t: MassTransferTransaction => | |
42 | 46 | if ((toBase58String(t.senderPublicKey) == ASigned)) | |
43 | 47 | then true | |
44 | 48 | else false | |
45 | 49 | case _ => | |
46 | 50 | throw("Transaction is not allowed by token-script") | |
47 | 51 | } |
github/deemru/w8io/026f985 19.88 ms ◑