tx · 2hMHu8oBKBMQEQhsZoBMEN8MuAv4nieLz5Tof7o3DDgB

3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E:  -0.00100000 Waves

2024.11.11 14:31 [3366724] smart account 3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E > SELF 0.00000000 Waves

{ "type": 13, "id": "2hMHu8oBKBMQEQhsZoBMEN8MuAv4nieLz5Tof7o3DDgB", "fee": 100000, "feeAssetId": null, "timestamp": 1731324690726, "version": 1, "sender": "3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E", "senderPublicKey": "4Hyg7NjV4cswejcnGeMvk6x68P2RLt9Y1ontHkWtTcEQ", "proofs": [ "5PTJYygha78Po3MophjvGXRXdBsNSUo3FMmbeya6gfPWcyBYQ6kvoHiWGY5G7ReFefZTUBdFvRe3zTvsZfKYEuCA" ], "script": "base64:BgIECAISAAQADXRhcmdldEFjY291bnQBGgFUmcdFrQw1qSNbFgeZ6tW41ICzXwdjp0IVAA5hbGxvd2VkQ2FsbGVyMQEg+e9728ltknUsQCBBwCxMBwhHVc4j3fqo8/Rn+6BSvzgADmFsbG93ZWRDYWxsZXIyASCYCefEqnQ+Xisjopf0iDd6xxXcvk3eeKqrqpB+xm2pNQEPaXNDYWxsZXJBbGxvd2VkAQ9jYWxsZXJQdWJsaWNLZXkDCQAAAgUPY2FsbGVyUHVibGljS2V5BQ5hbGxvd2VkQ2FsbGVyMQYJAAACBQ9jYWxsZXJQdWJsaWNLZXkFDmFsbG93ZWRDYWxsZXIyAQFpARRleGVjdXRlU2V0U2NyaXB0TnVsbAADCQEBIQEJAQ9pc0NhbGxlckFsbG93ZWQBCAUBaQ9jYWxsZXJQdWJsaWNLZXkJAAIBAihVbmF1dGhvcml6ZWQ6IGNhbGxlciBub3QgaW4gYWxsb3dlZCBsaXN0BAtzZXRTY3JpcHRUeAkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQ10YXJnZXRBY2NvdW50AAAFBHVuaXQJAMwIAgULc2V0U2NyaXB0VHgFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnQAVP0", "chainId": 84, "height": 3366724, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 416MRowN5PnPmFZftVBWWgMcsXsqNoKBwxWsH6nDek6w Next: EcCMTiN7TcpxeDAkjWKcFS4AAitmxk21RyfiVMnHnoka Full:
OldNewDifferences
1-{-# STDLIB_VERSION 8 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let targetAccount = base58'3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx'
5+
6+let allowedCaller1 = base58'HpeKQu8xawfaxbbTSPNMNqVvWM9xhebUcemDK5REzG2j'
7+
8+let allowedCaller2 = base58'BEVjN4AXKQ2Yw7KS1wiL5DMGg5V9cDniNH7dK2v5d7Ek'
9+
10+func isCallerAllowed (callerPublicKey) = if ((callerPublicKey == allowedCaller1))
11+ then true
12+ else (callerPublicKey == allowedCaller2)
413
514
615 @Callable(i)
7-func invokeSetScript () = {
8- let targetAddress = Address(base58'3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx')
9- let newScript = ""
10- let tx = invoke(targetAddress, "setScript", [newScript], nil)
11- if ((tx == tx))
12- then nil
13- else throw("Strict value is not equal to itself.")
14- }
16+func executeSetScriptNull () = if (!(isCallerAllowed(i.callerPublicKey)))
17+ then throw("Unauthorized: caller not in allowed list")
18+ else {
19+ let setScriptTx = ScriptTransfer(Address(targetAccount), 0, unit)
20+[setScriptTx]
21+ }
1522
23+
24+@Verifier(tx)
25+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1626

github/deemru/w8io/026f985 
12.27 ms