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