tx · 4KN29U3TUbr4dtnoZ7yziYhudxhDXnGLhsgDJ6WLSqe8
3MwUT9eqXHZVH4mipVZDRcLhqsjNnpPJKLV: -0.01400000 Waves
2019.06.22 12:02 [553017] smart account 3MwUT9eqXHZVH4mipVZDRcLhqsjNnpPJKLV > SELF 0.00000000 Waves
{
"type": 13,
"id": "4KN29U3TUbr4dtnoZ7yziYhudxhDXnGLhsgDJ6WLSqe8",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1561194194059,
"version": 1,
"sender": "3MwUT9eqXHZVH4mipVZDRcLhqsjNnpPJKLV",
"senderPublicKey": "Bk1amW8KVtdKMKnrFQuduBaMWYBxgVAMdiULbDR861hs",
"proofs": [
"57Zz24rPq2GkD7tzZbP5AQLuMbBc3T7yFVt1D3RGPbFUVmJG4mHrgsme36n7HKJi12xT6CwPpwfbBVLJEyTit8SU"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAR3RXVyAQAAACClhqGo076a8zyBwOfLl6EVCDPW+Yx0ufxPXDElCmQCzAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAB3BheW1lbnQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAIhPQAAAAIIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQFAAAABHdFdXIJAAACAAAAAQIAAAAeT25seSB3RXVyIGRlcG9zaXRzIGFyZSBhbGxvd2VkBAAAAAdhZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAD3ByZXZpb3VzQmFsYW5jZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAAdhZGRyZXNzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACm5ld0JhbGFuY2UJAABkAAAAAgUAAAAPcHJldmlvdXNCYWxhbmNlCAUAAAAHcGF5bWVudAAAAAZhbW91bnQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAB2FkZHJlc3MFAAAACm5ld0JhbGFuY2UFAAAAA25pbAAAAABMTlsg",
"chainId": 84,
"height": 553017,
"spentComplexity": 0
}
View: original | compacted
Prev: 8S1hKmtkqGiNMLhRmY3bGxQHqJej1RoxGVHcfZVLqpTQ
Next: F7XecAJQRWdzatVhr6pKJiPPL9KqbAU1YRocH2YTn44a
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let wEur = base58'' |
---|
| 4 | + | let wEur = base58'C99Lf3hGnc9UFgYduxxxveKS8ECWCZfxXfFpnpUgRCc3' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func deposit () = { |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let wEur = base58'' |
---|
| 4 | + | let wEur = base58'C99Lf3hGnc9UFgYduxxxveKS8ECWCZfxXfFpnpUgRCc3' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let payment = extract(i.payment) |
---|
9 | 9 | | if ((payment.assetId != wEur)) |
---|
10 | 10 | | then throw("Only wEur deposits are allowed") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let address = toBase58String(i.caller.bytes) |
---|
13 | 13 | | let previousBalance = match getInteger(this, address) { |
---|
14 | 14 | | case a: Int => |
---|
15 | 15 | | a |
---|
16 | 16 | | case _ => |
---|
17 | 17 | | 0 |
---|
18 | 18 | | } |
---|
19 | 19 | | let newBalance = (previousBalance + payment.amount) |
---|
20 | 20 | | WriteSet([DataEntry(address, newBalance)]) |
---|
21 | 21 | | } |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|