tx · GpEAwrJx6LjvhyMNYNyD5TeCHdwuZeFrfg8KTKJVjXhL
3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW: -0.00100000 Waves
2022.06.17 23:05 [2100826] smart account 3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW > SELF 0.00000000 Waves
{
"type": 13,
"id": "GpEAwrJx6LjvhyMNYNyD5TeCHdwuZeFrfg8KTKJVjXhL",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1655496315452,
"version": 2,
"chainId": 84,
"sender": "3NBNKJTqCGbPCDw1A86tAH3oLjFfhAmUYKW",
"senderPublicKey": "5KgB1ZojKX7qznjw2mAXoU9asTrLAHv5nEvk36suSN3c",
"proofs": [
"2Pz8TywTxefrBQ548ifERuSmDqcK1gnysSiaXsiRgnnfP7yCRTSxaSpSsYBVoCiMcMh11DwDu58e3S2EgkKBtB3K"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAQAAAAAEZGFwcAEAAAAaAVTrUL92ox/G8AFszp2fHW2IZ+gQLSc99iUAAAABAAAAAWkBAAAACWZyZWVXYXZlcwAAAAEAAAAGYW1vdW50AwkAAGYAAAACBQAAAAZhbW91bnQAAAAAAAvrwgAJAAACAAAAAQIAAAAZdGhlIG1heCBhbW91bnQgaXMgMiB3YXZlcwQAAAAGc2VuZGVyCAUAAAABaQAAAAZjYWxsZXIEAAAADGdldE9sZEFtb3VudAkABBoAAAACBQAAAAR0aGlzAgAAAAVXQVZFUwQAAAAJb2xkQW1vdW50BAAAAAckbWF0Y2gwBQAAAAxnZXRPbGRBbW91bnQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAACaW4FAAAAByRtYXRjaDAJAABkAAAAAgUAAAACaW4AAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQEAAAAAnVuBQAAAAckbWF0Y2gwAAAAAAAAAAAAAAAAAAAAAAAAAwkAAGYAAAACBQAAAAlvbGRBbW91bnQAAAAAADuaygAJAAACAAAAAQIAAAAmdGhlIG1heCBhbW91bnQgdG8gd2l0aGRyYXcgaXMgMTAgd2F2ZXMEAAAACW5ld0Ftb3VudAkAAGQAAAACBQAAAAlvbGRBbW91bnQFAAAABmFtb3VudAQAAAAEc2F2ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFV0FWRVMFAAAACW5ld0Ftb3VudAUAAAADbmlsBQAAAARzYXZlAAAAAHujRVE=",
"height": 2100826,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: D9BAfHRMzHQwGysFHCk4XU6tfuFrvRYPXujwnWEm7Xx2
Next: C9SHWysp3sGXXYQbGz3T4JS4tqyPuyKvDcM6b4WiVPCW
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
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 | | - | let getOldAmount = getInteger(sender, "WAVES") |
---|
| 11 | + | let getOldAmount = getInteger(this, "WAVES") |
---|
12 | 12 | | let oldAmount = match getOldAmount { |
---|
13 | 13 | | case in: Int => |
---|
14 | 14 | | (in + 0) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
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 | | - | let getOldAmount = getInteger(sender, "WAVES") |
---|
| 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 | 25 | | save |
---|
26 | 26 | | } |
---|
27 | 27 | | } |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|