tx · EEWTmXY3ZxFTMEeCGqDXkpWtnt3tSqAbF6dbrPray7y8
3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW: -0.00100000 Waves
2022.06.18 02:37 [2101039] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves
{
"type": 13,
"id": "EEWTmXY3ZxFTMEeCGqDXkpWtnt3tSqAbF6dbrPray7y8",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1655509150303,
"version": 2,
"chainId": 84,
"sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW",
"senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c",
"proofs": [
"5uQyG4uHFeD6rDHJVGabvidCWg4p5HrwBRNr1gfRT27wABT7DCgULgx7e4pfBXYLc3JrTTdMQUSXCyHi21dT8hCu"
],
"script": "base64:BgIHCAISAwoBAQEABGRhcHABGgFU61C/dqMfxvABbM6dnx1tiGfoEC0nPfYlAQFpAQlmcmVlV2F2ZXMBBmFtb3VudAMJAGYCBQZhbW91bnQAgISvXwkAAgECGXRoZSBtYXggYW1vdW50IGlzIDIgd2F2ZXMEBnNlbmRlcggFAWkGY2FsbGVyBAxnZXRPbGRBbW91bnQJAJoIAgUEdGhpcwIFV0FWRVMECW9sZEFtb3VudAQHJG1hdGNoMAUMZ2V0T2xkQW1vdW50AwkAAQIFByRtYXRjaDACA0ludAQCaW4FByRtYXRjaDAJAGQCBQJpbgAAAwkAAQIFByRtYXRjaDACBFVuaXQEAnVuBQckbWF0Y2gwAAAAAAMJAGYCBQlvbGRBbW91bnQAgJTr3AMJAAIBAiZ0aGUgbWF4IGFtb3VudCB0byB3aXRoZHJhdyBpcyAxMCB3YXZlcwQJbmV3QW1vdW50CQBkAgUJb2xkQW1vdW50BQZhbW91bnQEBHNhdmUJAMwIAgkBDEludGVnZXJFbnRyeQICBVdBVkVTBQluZXdBbW91bnQFA25pbAQIdHJhbnNmZXIJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQZhbW91bnQFBHVuaXQFA25pbAUIdHJhbnNmZXIANj+peA==",
"height": 2101039,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BFp67nwSWNq8mgUP61SXjK9dUZUDGuAWFM7wYCQADqB8
Next: 5Hvn5EcK459XJM7xBx8X6bqUB33y6vTDcz8JiMo5pCcM
Diff:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 4 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let dapp = base58'3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW' |
---|
|
22 | 22 | | else { |
---|
23 | 23 | | let newAmount = (oldAmount + amount) |
---|
24 | 24 | | let save = [IntegerEntry("WAVES", newAmount)] |
---|
25 | | - | let transfer = [ScriptTransfer(i.caller, amount, base58'WAVES')] |
---|
26 | | - | save |
---|
| 25 | + | let transfer = [ScriptTransfer(i.caller, amount, unit)] |
---|
| 26 | + | transfer |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 4 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let dapp = base58'3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func freeWaves (amount) = if ((amount > 200000000)) |
---|
8 | 8 | | then throw("the max amount is 2 waves") |
---|
9 | 9 | | else { |
---|
10 | 10 | | let sender = i.caller |
---|
11 | 11 | | let getOldAmount = getInteger(this, "WAVES") |
---|
12 | 12 | | let oldAmount = match getOldAmount { |
---|
13 | 13 | | case in: Int => |
---|
14 | 14 | | (in + 0) |
---|
15 | 15 | | case un: Unit => |
---|
16 | 16 | | 0 |
---|
17 | 17 | | case _ => |
---|
18 | 18 | | 0 |
---|
19 | 19 | | } |
---|
20 | 20 | | if ((oldAmount > 1000000000)) |
---|
21 | 21 | | then throw("the max amount to withdraw is 10 waves") |
---|
22 | 22 | | else { |
---|
23 | 23 | | let newAmount = (oldAmount + amount) |
---|
24 | 24 | | let save = [IntegerEntry("WAVES", newAmount)] |
---|
25 | | - | let transfer = [ScriptTransfer(i.caller, amount, base58'WAVES')] |
---|
26 | | - | save |
---|
| 25 | + | let transfer = [ScriptTransfer(i.caller, amount, unit)] |
---|
| 26 | + | transfer |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|