tx · 6KETwe31cNPg9Lv8xDokw6vXA7ikJX2j2ueYmbMwHKP7 3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ: -1.00400000 Waves 2019.08.29 19:31 [652755] smart asset 3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ > SELF 0.00000000 account2
{ "type": 15, "id": "6KETwe31cNPg9Lv8xDokw6vXA7ikJX2j2ueYmbMwHKP7", "fee": 100400000, "feeAssetId": null, "timestamp": 1567096300673, "version": 1, "sender": "3N5fU7EcRcUgewh4E7y5XyaGWHCYp9LmUpJ", "senderPublicKey": "Gmc2mU67saGu7XexbQkJ3gWn7xp1TkuUsR3Cd6iVXKsJ", "proofs": [ "5vEY9j5ezRrnUebpppQBK2MwawYiK11cK4eQFoC92rfr4kBYC6qNetHodBu86moJhNN9hVNQ3uKb619roZtZHYDD" ], "assetId": "5fKfiTswyAVob2DvFVwnqznqG4cz1PLNayBip9WUu8eh", "script": "base64:AwQAAAARYWNjb3VudFRoYXRBbGxvd3MJAQAAAAdBZGRyZXNzAAAAAQEAAAAIA33Z7xXepOcEAAAACXBBZGRyZXNzMQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM05DVkRhVDFBU2JSZDQyaEJTdzRFRzZvakdWUkd0dk1pejEEAAAACXBBZGRyZXNzMgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM01zMmtUQXhkcmNYRHh3ZWRmYk5qU2k2ZXdHQ1VxdDNoZVoEAAAACXBBZGRyZXNzMwkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM042b2dubTd4blFTRmlvd25TMURmMUxhY0pVUVh2ZkRGTGUEAAAACXBBZGRyZXNzNAkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM010VkNtTjlNWmJXZjlxeGlNRm9FUEJyZGMyZkxwM1N2dUMEAAAACXBBZGRyZXNzNQkBAAAAEWFkZHJlc3NGcm9tU3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ZAUAAAALcEtleTRTaWduZWQFAAAAC3BLZXk1U2lnbmVkAAAAAAAAAAADAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAABZyZWNpcGllbnRBZGRyZXNzRnJvbVR4CQACWAAAAAEICQAEJAAAAAEIBQAAAAF0AAAACXJlY2lwaWVudAAAAAVieXRlcwQAAAAOaXNBY2NvdW50QWxsb3cEAAAAByRtYXRjaDEJAAQaAAAAAgUAAAARYWNjb3VudFRoYXRBbGxvd3MFAAAAFnJlY2lwaWVudEFkZHJlc3NGcm9tVHgDCQAAAQAAAAIFAAAAByRtYXRjaDECAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMQUAAAABYQD/////////AQMJAABnAAAAAgUAAAAOaXNBY2NvdW50QWxsb3cA//////////8GBwcFFBRR", "chainId": 84, "height": 652755, "spentComplexity": 0 } View: original | compacted Prev: FjqHftH6FxFPxC2qKK3GAwBuwVYJnDXQdabfJpxoViPv Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | let accountThatAllows = Address(base58' | |
3 | + | let accountThatAllows = Address(base58'asdded2222') | |
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'asdded2222') | |
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/03bedc9 26.23 ms ◑![]()