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