tx · GLJ9YGvdJQD767gvR2fHEnpSyoijtGZcPKN4GgYw29WQ 3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx: -0.00100000 Waves 2024.11.05 04:20 [3357498] smart account 3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx > SELF 0.00000000 Waves
{ "type": 13, "id": "GLJ9YGvdJQD767gvR2fHEnpSyoijtGZcPKN4GgYw29WQ", "fee": 100000, "feeAssetId": null, "timestamp": 1730769633934, "version": 1, "sender": "3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx", "senderPublicKey": "HpeKQu8xawfaxbbTSPNMNqVvWM9xhebUcemDK5REzG2j", "proofs": [ "fMDNuKN5BSvvRQdW98VHFGaBazxeP4oFP1RvcYfCpxNyxbkqw5EKs9QRzjb1NGqJ3bPqjjXo63TsVTS1qfzehFe" ], "script": "base64:BgEECnN1YndhckwyXzEBIPnve9vJbZJ1LEAgQcAsTAcIR1XOI936qPP0Z/ugUr84BApzdWJ3YXJMMl8yASCYCefEqnQ+Xisjopf0iDd6xxXcvk3eeKqrqpB+xm2pNQQLdGFyZ2V0RGFwcDEJAQV2YWx1ZQEJAKYIAQIjM01zeDRBcTY5eldVS3k0ZDF3eUtuUTRvZnpFREFmdjVOZ2YEC3RhcmdldERhcHAyCQEFdmFsdWUBCQCmCAECIzNQSlZtN3hMUGFibVlvaGJudmRnR0RZSE13blp4RjJ4MThtBApmdW5jdGlvbnMxAjhleHRlbmRNYWluQ2hhaW4sYXBwZW5kQmxvY2ssc3RhcnRBbHRDaGFpbixleHRlbmRBbHRDaGFpbgQKZnVuY3Rpb25zMgIHY2xhaW1MUAQHc2lnbmVkMQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCnN1YndhckwyXzEAAQAABAdzaWduZWQyAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUKc3Vid2FyTDJfMgABAAAEEGlzTXVsdGlTaWduVmFsaWQJAAACCQBkAgUHc2lnbmVkMQUHc2lnbmVkMgACBAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQBdAUHJG1hdGNoMAQPYnlwYXNzQ29uZGl0aW9uAwkAAAIIBQF0BGRBcHAFC3RhcmdldERhcHAxCQECIT0CCQCzCQIFCmZ1bmN0aW9uczEIBQF0CGZ1bmN0aW9uBQR1bml0AwkAAAIIBQF0BGRBcHAFC3RhcmdldERhcHAyCQECIT0CCQCzCQIFCmZ1bmN0aW9uczIIBQF0CGZ1bmN0aW9uBQR1bml0BwMFEGlzTXVsdGlTaWduVmFsaWQGBQ9ieXBhc3NDb25kaXRpb24FEGlzTXVsdGlTaWduVmFsaWQ/Sj70", "chainId": 84, "height": 3357498, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7XdWt92jCQsGPAXnUbKPwLao47XT4YfuDyXbfW9sHFc7 Next: 91hXfRGKtqax9L4N3wt53wBBoBDavvpkxTiednvz2eBr 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 targetDapp1 = value(addressFromString("3Msx4Aq69zWUKy4d1wyKnQ4ofzEDAfv5Ngf")) | |
6 | + | let targetDapp2 = value(addressFromString("3PJVm7xLPabmYohbnvdgGDYHMwnZxF2x18m")) | |
7 | + | let functions1 = "extendMainChain,appendBlock,startAltChain,extendAltChain" | |
8 | + | let functions2 = "claimLP" | |
9 | + | let signed1 = if (sigVerify(tx.bodyBytes, tx.proofs[0], subwarL2_1)) | |
10 | + | then 1 | |
11 | + | else 0 | |
12 | + | let signed2 = if (sigVerify(tx.bodyBytes, tx.proofs[1], subwarL2_2)) | |
13 | + | then 1 | |
14 | + | else 0 | |
15 | + | let isMultiSignValid = ((signed1 + signed2) == 2) | |
16 | + | match tx { | |
17 | + | case t: InvokeScriptTransaction => | |
18 | + | let bypassCondition = if ((t.dApp == targetDapp1)) | |
19 | + | then (indexOf(functions1, t.function) != unit) | |
20 | + | else if ((t.dApp == targetDapp2)) | |
21 | + | then (indexOf(functions2, t.function) != unit) | |
22 | + | else false | |
23 | + | if (isMultiSignValid) | |
24 | + | then true | |
25 | + | else bypassCondition | |
26 | + | case _ => | |
27 | + | isMultiSignValid | |
28 | + | } |
github/deemru/w8io/169f3d6 14.14 ms ◑