tx · Dt7R2vA4tRJZgxdRVAbBGqtDqWup4ZgH3beHmvV4esfH 3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ: -1.00400000 Waves 2019.08.29 18:51 [652710] smart asset 3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ > SELF 0.00000000 account2
{ "type": 15, "id": "Dt7R2vA4tRJZgxdRVAbBGqtDqWup4ZgH3beHmvV4esfH", "fee": 100400000, "feeAssetId": null, "timestamp": 1567093868332, "version": 1, "sender": "3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ", "senderPublicKey": "Gmc2mU67saGu7XexbQkJ3gWn7xp1TkuUsR3Cd6iVXKsJ", "proofs": [ "21qoya9gqq2QM6UQWc5sLj2DQ6nZrGHW32euqLMQMGvRaiyy7pcZLDwnfUPDgrucRKUX4SPTsi7JFrRCgZF4oxKT" ], "assetId": "5fKfiTswyAVob2DvFVwnqznqG4cz1PLNayBip9WUu8eh", "script": "base64:AwQAAAARYWNjb3VudFRoYXRBbGxvd3MJAQAAAAdBZGRyZXNzAAAAAQEAAAADAb0cBAAAAAlwQWRkcmVzczEJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNOQ1ZEYVQxQVNiUmQ0MmhCU3c0RUc2b2pHVlJHdHZNaXoxBAAAAAlwQWRkcmVzczIJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNczJrVEF4ZHJjWER4d2VkZmJOalNpNmV3R0NVcXQzaGVaBAAAAAlwQWRkcmVzczMJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNONm9nbm03eG5RU0Zpb3duUzFEZjFMYWNKVVFYdmZERkxlBAAAAAlwQWRkcmVzczQJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNdFZDbU45TVpiV2Y5cXhpTUZvRVBCcmRjMmZMcDNTdnVDBAAAAAlwQWRkcmVzczUJAQAAABFhZGRyZXNzRnJvbVN0cmluZw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WQFAAAAC3BLZXk0U2lnbmVkBQAAAAtwS2V5NVNpZ25lZAAAAAAAAAAAAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAWcmVjaXBpZW50QWRkcmVzc0Zyb21UeAkAAlgAAAABCAkABCQAAAABCAUAAAABdAAAAAlyZWNpcGllbnQAAAAFYnl0ZXMEAAAADmlzQWNjb3VudEFsbG93BAAAAAckbWF0Y2gxCQAEGgAAAAIFAAAAEWFjY291bnRUaGF0QWxsb3dzBQAAABZyZWNpcGllbnRBZGRyZXNzRnJvbVR4AwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDEFAAAAAWEA/////////wEDCQAAZwAAAAIFAAAADmlzQWNjb3VudEFsbG93AP//////////BgcHZyIh+g==", "chainId": 84, "height": 652710, "spentComplexity": 0 } View: original | compacted Prev: none Next: FjqHftH6FxFPxC2qKK3GAwBuwVYJnDXQdabfJpxoViPv Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let accountThatAllows = Address(base58'asd') | |
4 | + | let pAddress1 = addressFromString("3NCVDaT1ASbRd42hBSw4EG6ojGVRGtvMiz1") | |
5 | + | let pAddress2 = addressFromString("3Ms2kTAxdrcXDxwedfbNjSi6ewGCUqt3heZ") | |
6 | + | let pAddress3 = addressFromString("3N6ognm7xnQSFiownS1Df1LacJUQXvfDFLe") | |
7 | + | let pAddress4 = addressFromString("3MtVCmN9MZbWf9qxiMFoEPBrdc2fLp3SvuC") | |
8 | + | let pAddress5 = addressFromString("3MuWG8gsTK4RQBsm97sMCuUXW99JvRxwYSg") | |
9 | + | match tx { | |
10 | + | case tx: SetAssetScriptTransaction => | |
11 | + | let pKey1Signed = if (isDefined(getInteger(extract(pAddress1), toBase58String(tx.id)))) | |
12 | + | then 1 | |
13 | + | else 0 | |
14 | + | let pKey2Signed = if (isDefined(getInteger(extract(pAddress2), toBase58String(tx.id)))) | |
15 | + | then 1 | |
16 | + | else 0 | |
17 | + | let pKey3Signed = if (isDefined(getInteger(extract(pAddress3), toBase58String(tx.id)))) | |
18 | + | then 1 | |
19 | + | else 0 | |
20 | + | let pKey4Signed = if (isDefined(getInteger(extract(pAddress4), toBase58String(tx.id)))) | |
21 | + | then 1 | |
22 | + | else 0 | |
23 | + | let pKey5Signed = if (isDefined(getInteger(extract(pAddress5), toBase58String(tx.id)))) | |
24 | + | then 1 | |
25 | + | else 0 | |
26 | + | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) | |
27 | + | case t: TransferTransaction => | |
28 | + | let recipientAddressFromTx = toBase58String(addressFromRecipient(t.recipient).bytes) | |
29 | + | let isAccountAllow = match getInteger(accountThatAllows, recipientAddressFromTx) { | |
30 | + | case a: Int => | |
31 | + | a | |
32 | + | case _ => | |
33 | + | -255 | |
34 | + | } | |
35 | + | if ((isAccountAllow >= -1)) | |
36 | + | then true | |
37 | + | else false | |
38 | + | case _ => | |
39 | + | false | |
40 | + | } |
github/deemru/w8io/03bedc9 14.34 ms ◑![]()