tx · 3rAEijjdx1iREfz8Yr6fTQAVm8bvMmsGNvqpZFBekA4E 3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E: -0.00100000 Waves 2024.11.11 15:06 [3366761] smart account 3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E > SELF 0.00000000 Waves
{ "type": 13, "id": "3rAEijjdx1iREfz8Yr6fTQAVm8bvMmsGNvqpZFBekA4E", "fee": 100000, "feeAssetId": null, "timestamp": 1731326817766, "version": 1, "sender": "3NAfrN5xp6G6o34pzEhDwKDjz37NUaEpi8E", "senderPublicKey": "4Hyg7NjV4cswejcnGeMvk6x68P2RLt9Y1ontHkWtTcEQ", "proofs": [ "4pWANSLdipysiJS9QZix1nacuP2dJqawJrE4tj6T5Mqo8GnzNpirZwTw4X799isxCE44BNnfenfhqbCGzecozh7W" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAXcmVtb3ZlTWFpbkFjY291bnRTY3JpcHQAAAAABAAAAAttYWluQWNjb3VudAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVJnHRa0MNakjWxYHmerVuNSAs18HY6dCFQMJAAAAAAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAttYWluQWNjb3VudAkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAAYYXBwcm92ZWRGb3JTY3JpcHRSZW1vdmFsBgUAAAADbmlsCQAAAgAAAAECAAAALE9ubHkgdGhlIG1haW4gYWNjb3VudCBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uAAAAACJnUUU=", "chainId": 84, "height": 3366761, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5VR7ZhXcRsRLRxHatt56ecGC6w28hfxz3YRdzTanExY9 Next: tiWaXWaY3T6Htac7kbo7eb79yt3evFS3552kDEHPHhx Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let targetPublicKey = base58'HpeKQu8xawfaxbbTSPNMNqVvWM9xhebUcemDK5REzG2j' | |
5 | 4 | ||
6 | - | let targetAddress = base58'3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx' | |
7 | 5 | ||
8 | 6 | @Callable(i) | |
9 | - | func executeSetScriptNull () = { | |
10 | - | let tx = [IntegerEntry("type", 13), IntegerEntry("version", 1), IntegerEntry("chainId", 84), IntegerEntry("fee", 100000), IntegerEntry("timestamp", lastBlock.timestamp), BinaryEntry("senderPublicKey", targetPublicKey), BinaryEntry("script", base58''), BinaryEntry("address", targetAddress)] | |
11 | - | $Tuple2(tx, unit) | |
7 | + | func removeMainAccountScript () = { | |
8 | + | let mainAccount = Address(base58'3N3wBswhGGLLvVmd6KAA7hH8tZsu2iSY5Yx') | |
9 | + | if ((i.caller == mainAccount)) | |
10 | + | then [BooleanEntry("approvedForScriptRemoval", true)] | |
11 | + | else throw("Only the main account can call this function") | |
12 | 12 | } | |
13 | 13 | ||
14 | - | ||
15 | - | @Verifier(tx) | |
16 | - | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
17 | 14 |
github/deemru/w8io/169f3d6 32.91 ms ◑