tx · 5mc4Jr9wZgobSxYK6DQdugY1nC4v8wo8tst5nN3UxBMT 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx: -0.01000000 Waves 2023.06.14 13:19 [2622207] smart account 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx > SELF 0.00000000 Waves
{ "type": 13, "id": "5mc4Jr9wZgobSxYK6DQdugY1nC4v8wo8tst5nN3UxBMT", "fee": 1000000, "feeAssetId": null, "timestamp": 1686738164561, "version": 2, "chainId": 84, "sender": "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx", "senderPublicKey": "EKZmHJ5bK3qKKgRdq8rAamt9qrDbVMLARzRqXoQW258v", "proofs": [ "28YZ3Fr9RMd6n11LqAHmpPUEk7yU7pEtLPvwGTGEsBf4wgQ4yM4beFJQLAcgfut7XuBb1SgWJ3nv1jWDpQn6BQJy" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAgAFQVNJTUkBIMnztyitZ0EXTTIGNXQsZIRs74jipJsnxxTqqR/QjZ9UAAVXQVZFUwEAAgFpAQ1hc2ltaVRyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBUFTSU1JCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQVBU0lNSQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyBQNuaWwFA25pbAFpAQ13YXZlc1RyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBVdBVkVTCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQVXQVZFUwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyBQNuaWwFA25pbADg98sW", "height": 2622207, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2UBynLnVYvKB8b7L7LBsVuNudUMv3oZY3yrYheQuC5xM Next: 2u2zDK8w5zCNtu8GN59DZR7Bqc1cPVKsbwCuMVQufpgW Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | let reciver = fromBase58String(recepientAddr) | |
24 | 24 | let amount = i.payments[0].amount | |
25 | 25 | if ((i.payments[0].assetId == WAVES)) | |
26 | - | then [ScriptTransfer(Address(reciver), amount, | |
26 | + | then [ScriptTransfer(Address(reciver), amount, WAVES), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] | |
27 | 27 | else nil | |
28 | 28 | } | |
29 | 29 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let ASIMI = base58'EbLVSrAi6vS3AkLwBinzZCvAXP2yYiFJEzj1MBVHcwZ5' | |
5 | 5 | ||
6 | 6 | let WAVES = base58'' | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func asimiTransfer (recepientAddr) = { | |
10 | 10 | let caller = i.caller.bytes | |
11 | 11 | let reciver = fromBase58String(recepientAddr) | |
12 | 12 | let amount = i.payments[0].amount | |
13 | 13 | if ((i.payments[0].assetId == ASIMI)) | |
14 | 14 | then [ScriptTransfer(Address(reciver), amount, ASIMI), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] | |
15 | 15 | else nil | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | 20 | @Callable(i) | |
21 | 21 | func wavesTransfer (recepientAddr) = { | |
22 | 22 | let caller = i.caller.bytes | |
23 | 23 | let reciver = fromBase58String(recepientAddr) | |
24 | 24 | let amount = i.payments[0].amount | |
25 | 25 | if ((i.payments[0].assetId == WAVES)) | |
26 | - | then [ScriptTransfer(Address(reciver), amount, | |
26 | + | then [ScriptTransfer(Address(reciver), amount, WAVES), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] | |
27 | 27 | else nil | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 |
github/deemru/w8io/169f3d6 27.40 ms ◑