tx · 5eZn7cBWSyBjtPyUJXgSCTCuu1BmbRJLkL8hyuWwuBKz
3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx: -0.01000000 Waves
2023.05.24 13:17 [2591935] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves
{
"type": 13,
"id": "5eZn7cBWSyBjtPyUJXgSCTCuu1BmbRJLkL8hyuWwuBKz",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684923646371,
"version": 2,
"chainId": 84,
"sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx",
"senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx",
"proofs": [
"25cWjt8KSLfvugZRE2XtAfqCW8SUmLQmo1dKU1MbJTuoah74d975SsGd8MGfYmJbZRXAo3KFhw46WxrKeMFBfKb2"
],
"script": "base64:BgIHCAISAwoBCAIABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgAFV0FWRVMBAAEBaQEMd2F2ZVRyYW5zZmVyAQ1yZWNlcGllbnRBZGRyBAZjYWxsZXIICAUBaQZjYWxsZXIFYnl0ZXMEB3JlY2l2ZXIJANkEAQUNcmVjZXBpZW50QWRkcgQGYW1vdW50CAkAkQMCCAUBaQhwYXltZW50cwAABmFtb3VudAQNc2VuZGVyQmFsYW5jZQkA8AcCCAUBaQZjYWxsZXIBIIVjlaPziI6w3gwXjghOv5o/krsm2zrodo4W3BQiKkh+AwkAAAIICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAUEdW5pdAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEFB3JlY2l2ZXIFBmFtb3VudAUEdW5pdAkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIJX3RyYW5zZmVyBQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICCQDYBAEFBmNhbGxlcgIMX3RyYW5zZmVyX3RvBQ1yZWNlcGllbnRBZGRyBQNuaWwFA25pbACtAwtD",
"height": 2591935,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: ToazMKzqkAYLFkehrACHYoFpYjLyKCv4HNiWkiSTAHL
Next: 73dNQYWr4FdDufzhReFYEAM7fvJqkoLMhXjLXT4Laavk
Diff:
Old | New | | Differences |
---|
11 | 11 | | let reciver = fromBase58String(recepientAddr) |
---|
12 | 12 | | let amount = i.payments[0].amount |
---|
13 | 13 | | let senderBalance = assetBalance(i.caller, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq') |
---|
14 | | - | if ((amount > senderBalance)) |
---|
15 | | - | then throw("Buyer does not have enough funds to complete the purchase.") |
---|
16 | | - | else if ((i.payments[0].assetId == unit)) |
---|
17 | | - | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
18 | | - | else nil |
---|
| 14 | + | if ((i.payments[0].assetId == unit)) |
---|
| 15 | + | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
| 16 | + | else nil |
---|
19 | 17 | | } |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|
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 | 5 | | |
---|
6 | 6 | | let WAVES = base58'' |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func waveTransfer (recepientAddr) = { |
---|
10 | 10 | | let caller = i.caller.bytes |
---|
11 | 11 | | let reciver = fromBase58String(recepientAddr) |
---|
12 | 12 | | let amount = i.payments[0].amount |
---|
13 | 13 | | let senderBalance = assetBalance(i.caller, base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq') |
---|
14 | | - | if ((amount > senderBalance)) |
---|
15 | | - | then throw("Buyer does not have enough funds to complete the purchase.") |
---|
16 | | - | else if ((i.payments[0].assetId == unit)) |
---|
17 | | - | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
18 | | - | else nil |
---|
| 14 | + | if ((i.payments[0].assetId == unit)) |
---|
| 15 | + | then [ScriptTransfer(Address(reciver), amount, unit), IntegerEntry((toBase58String(caller) + "_transfer"), amount), StringEntry((toBase58String(caller) + "_transfer_to"), recepientAddr)] |
---|
| 16 | + | else nil |
---|
19 | 17 | | } |
---|
20 | 18 | | |
---|
21 | 19 | | |
---|