tx · 7e3sqZjbczdDbEPm3dstXH6m7epHs9EVCbzfGRQUQxqr 3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx: -0.00100000 Waves 2024.11.02 23:57 [3354405] smart account 3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx > SELF 0.00000000 Waves
{ "type": 13, "id": "7e3sqZjbczdDbEPm3dstXH6m7epHs9EVCbzfGRQUQxqr", "fee": 100000, "feeAssetId": null, "timestamp": 1730581052271, "version": 1, "sender": "3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx", "senderPublicKey": "HpeKQu8xawfaxbbTSPNMNqVvWM9xhebUcemDK5REzG2j", "proofs": [ "4zMDiA1h6W4iusg43BchLeRXxRMuFYq9gJxULBapyeTumph3CthApFdVZ9cPxgRqwp25erjfugd6f5Nsx5BBU5Dj" ], "script": "base64:BgEECnN1YndhckwyXzEBIPnve9vJbZJ1LEAgQcAsTAcIR1XOI936qPP0Z/ugUr84BApzdWJ3YXJMMl8yASCYCefEqnQ+Xisjopf0iDd6xxXcvk3eeKqrqpB+xm2pNQQKdGFyZ2V0RGFwcAkBBXZhbHVlAQkApggBAiMzTXN4NEFxNjl6V1VLeTRkMXd5S25RNG9mekVEQWZ2NU5nZgQPYnlwYXNzRnVuY3Rpb25zCQDMCAICD2V4dGVuZE1haW5DaGFpbgkAzAgCAgthcHBlbmRCbG9jawkAzAgCAg1zdGFydEFsdENoYWluCQDMCAICDmV4dGVuZEFsdENoYWluBQNuaWwEB3NpZ25lZDEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQpzdWJ3YXJMMl8xAAEAAAQHc2lnbmVkMgMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFCnN1YndhckwyXzIAAQAABBBpc011bHRpU2lnblZhbGlkCQAAAgkAZAIFB3NpZ25lZDEFB3NpZ25lZDIAAgQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAXQFByRtYXRjaDAEEGlzQnlwYXNzRnVuY3Rpb24JAQIhPQIJAM8IAgUPYnlwYXNzRnVuY3Rpb25zCAUBdAhmdW5jdGlvbgD///////////8BBAxpc1RhcmdldERhcHAJAAACCAUBdARkQXBwBQp0YXJnZXREYXBwAwUQaXNNdWx0aVNpZ25WYWxpZAYDBQxpc1RhcmdldERhcHAFEGlzQnlwYXNzRnVuY3Rpb24HBRBpc011bHRpU2lnblZhbGlkyjaBZw==", "chainId": 84, "height": 3354405, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 88rbTba1Guv36w72ya7MGGfAuQoseFCFS3kmVY1ZQu7E Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | let subwarL2_1 = base58'HpeKQu8xawfaxbbTSPNMNqVvWM9xhebUcemDK5REzG2j' | |
4 | + | let subwarL2_2 = base58'BEVjN4AXKQ2Yw7KS1wiL5DMGg5V9cDniNH7dK2v5d7Ek' | |
5 | + | let targetDapp = value(addressFromString("3Msx4Aq69zWUKy4d1wyKnQ4ofzEDAfv5Ngf")) | |
6 | + | let bypassFunctions = ["extendMainChain", "appendBlock", "startAltChain", "extendAltChain"] | |
7 | + | let signed1 = if (sigVerify(tx.bodyBytes, tx.proofs[0], subwarL2_1)) | |
8 | + | then 1 | |
9 | + | else 0 | |
10 | + | let signed2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], subwarL2_2)) | |
11 | + | then 1 | |
12 | + | else 0 | |
13 | + | let isMultiSignValid = ((signed1 + signed2) == 2) | |
14 | + | match tx { | |
15 | + | case t: InvokeScriptTransaction => | |
16 | + | let isBypassFunction = (indexOf(bypassFunctions, t.function) != -1) | |
17 | + | let isTargetDapp = (t.dApp == targetDapp) | |
18 | + | if (isMultiSignValid) | |
19 | + | then true | |
20 | + | else if (isTargetDapp) | |
21 | + | then isBypassFunction | |
22 | + | else false | |
23 | + | case _ => | |
24 | + | isMultiSignValid | |
25 | + | } |
github/deemru/w8io/026f985 10.72 ms ◑