tx · 8wnNfyWgEjUXudmM9K9VEj88qAxZPYUwKVJqyD6oTiZr
3N13FbTEbf75JgCvA4xLHJaf17eieVshJpY: -0.01000000 Waves
2023.07.05 11:44 [2652388] smart account 3N13FbTEbf75JgCvA4xLHJaf17eieVshJpY > SELF 0.00000000 Waves
{
"type": 13,
"id": "8wnNfyWgEjUXudmM9K9VEj88qAxZPYUwKVJqyD6oTiZr",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1688546689347,
"version": 2,
"chainId": 84,
"sender": "3N13FbTEbf75JgCvA4xLHJaf17eieVshJpY",
"senderPublicKey": "GDDsczxCkweNBUuptUZa7snEYfdGLGqHFWneG2sCMM3M",
"proofs": [
"8fjNP2PsJdguJakxYd5v1uJHAHgw3Ds3LeRKehP6VM4L6mrQciJ1jQXiaJadgwEZWVzSnMVXUWkasWYf1fTTPGV"
],
"script": "base64:BgIMCAISAwoBCBIDCgEIAgAFdGVhbXMBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+AAVXQVZFUwEAAgFpAQ1hc2ltaVRyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBXRlYW1zCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMJAQdBZGRyZXNzAQUHcmVjaXZlcgUGYW1vdW50BQV0ZWFtcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyBQNuaWwFA25pbAFpAQ13YXZlc1RyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAMJAAACCAkAkQMCCAUBaQhwYXltZW50cwAAB2Fzc2V0SWQFBHVuaXQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBBQdyZWNpdmVyBQZhbW91bnQFBHVuaXQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICCV90cmFuc2ZlcgUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgkA2AQBBQZjYWxsZXICDF90cmFuc2Zlcl90bwUNcmVjZXBpZW50QWRkcgUDbmlsBQNuaWwAvh5XOg==",
"height": 2652388,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: AR6pWg9iiu1RRTSyRQ7WMQKhx5JZrDZ8GuYqd86PrkCZ
Next: DC1GCiuNcevzFnwChp34Jcz36ynrG5ajUDStVjDS8w43
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | | - | |
---|
6 | | - | let ASIMI = base58'EbLVSrAi6vS3AkLwBinzZCvAXP2yYiFJEzj1MBVHcwZ5' |
---|
7 | 5 | | |
---|
8 | 6 | | let WAVES = base58'' |
---|
9 | 7 | | |
---|
|
12 | 10 | | let caller = i.caller.bytes |
---|
13 | 11 | | let reciver = fromBase58String(recepientAddr) |
---|
14 | 12 | | let amount = i.payments[0].amount |
---|
15 | | - | if ((i.payments[0].assetId == ASIMI)) |
---|
| 13 | + | if ((i.payments[0].assetId == teams)) |
---|
16 | 14 | | then [ScriptTransfer(Address(reciver), amount, teams), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
17 | 15 | | else nil |
---|
18 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | | - | |
---|
6 | | - | let ASIMI = base58'EbLVSrAi6vS3AkLwBinzZCvAXP2yYiFJEzj1MBVHcwZ5' |
---|
7 | 5 | | |
---|
8 | 6 | | let WAVES = base58'' |
---|
9 | 7 | | |
---|
10 | 8 | | @Callable(i) |
---|
11 | 9 | | func asimiTransfer (recepientAddr) = { |
---|
12 | 10 | | let caller = i.caller.bytes |
---|
13 | 11 | | let reciver = fromBase58String(recepientAddr) |
---|
14 | 12 | | let amount = i.payments[0].amount |
---|
15 | | - | if ((i.payments[0].assetId == ASIMI)) |
---|
| 13 | + | if ((i.payments[0].assetId == teams)) |
---|
16 | 14 | | then [ScriptTransfer(Address(reciver), amount, teams), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
17 | 15 | | else nil |
---|
18 | 16 | | } |
---|
19 | 17 | | |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|
22 | 20 | | @Callable(i) |
---|
23 | 21 | | func wavesTransfer (recepientAddr) = { |
---|
24 | 22 | | let caller = i.caller.bytes |
---|
25 | 23 | | let reciver = fromBase58String(recepientAddr) |
---|
26 | 24 | | let amount = i.payments[0].amount |
---|
27 | 25 | | if ((i.payments[0].assetId == unit)) |
---|
28 | 26 | | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
29 | 27 | | else nil |
---|
30 | 28 | | } |
---|
31 | 29 | | |
---|
32 | 30 | | |
---|