tx · 2u2zDK8w5zCNtu8GN59DZR7Bqc1cPVKsbwCuMVQufpgW 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx: -0.01000000 Waves 2023.06.14 13:26 [2622213] smart account 3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx > SELF 0.00000000 Waves
{ "type": 13, "id": "2u2zDK8w5zCNtu8GN59DZR7Bqc1cPVKsbwCuMVQufpgW", "fee": 1000000, "feeAssetId": null, "timestamp": 1686738486619, "version": 2, "chainId": 84, "sender": "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx", "senderPublicKey": "EKZmHJ5bK3qKKgRdq8rAamt9qrDbVMLARzRqXoQW258v", "proofs": [ "39WCaAgJa1HH6vUBkZq8T2jEvGGpxqQqXrS47QZyWZCDuNVoRuDKBmHjqPiqcMrN24kWdbRKwgvwcAhbxXiGmLsT" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAgAFQVNJTUkBIMnztyitZ0EXTTIGNXQsZIRs74jipJsnxxTqqR/QjZ9UAAVXQVZFUwEAAgFpAQ1hc2ltaVRyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBUFTSU1JCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQVBU0lNSQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyBQNuaWwFA25pbAFpAQ13YXZlc1RyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBVdBVkVTCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQR1bml0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAglfdHJhbnNmZXIFBmFtb3VudAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAgxfdHJhbnNmZXJfdG8FDXJlY2VwaWVudEFkZHIFA25pbAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJANgEAQUGY2FsbGVyAgVoZWxsbwUNcmVjZXBpZW50QWRkcgUDbmlsABefkyA=", "height": 2622213, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5mc4Jr9wZgobSxYK6DQdugY1nC4v8wo8tst5nN3UxBMT Next: Es7TBXy1gdDB6R5xu29R3GvvHZYQz7yd1Cj9jKF9wTHG 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, | |
27 | - | else | |
26 | + | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] | |
27 | + | else [StringEntry((toBase58String(caller) + "hello"), recepientAddr)] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 |
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, | |
27 | - | else | |
26 | + | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] | |
27 | + | else [StringEntry((toBase58String(caller) + "hello"), recepientAddr)] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 |
github/deemru/w8io/169f3d6 40.53 ms ◑