tx · 7AHSD4a9wtAKPXwSq3rJuBPGHmau2mGAQUKossM2X2N2
3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY: -0.01400000 Waves
2020.10.06 17:47 [1208837] smart account 3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY > SELF 0.00000000 Waves
{
"type": 13,
"id": "7AHSD4a9wtAKPXwSq3rJuBPGHmau2mGAQUKossM2X2N2",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1601995624399,
"version": 2,
"chainId": 84,
"sender": "3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY",
"senderPublicKey": "HhWoKsFPjXVx9nYfPydpV9BwLmuUdJyJ8ydtyVJVxg9Z",
"proofs": [
"58Z11FHx532EkY3QeuNUm7VCJim8EPCRjeC2WNDBMoXGfvZAbTFFnFZJ37jT1QJn3oq2Ttyx3aA3tdUA5HdD8quc"
],
"script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAKZnJvc3RCbG9jawAAAAAAAAAACgMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AgAAAAFfCQABpAAAAAEFAAAAA2xiaAIAAAABXwkAAaQAAAABBQAAAApmcm9zdEJsb2NrAgAAAAJfMAUAAAADbmlsBAAAAAdvbGREYXRhCQAEtQAAAAIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAFAAAAA3N0cgkAAAIAAAABAgAAABFkYXRhIHN0cmluZyBlcnJvcgIAAAABXwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABkQAAAAIFAAAAB29sZERhdGEAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQkAAAIAAAABAgAAAA5kYXRhIGludCBlcnJvcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABCQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAIAAAABXwkAAaQAAAABBQAAAANsYmgCAAAAAV8JAAGkAAAAAQUAAAAKZnJvc3RCbG9jawIAAAABXwkAAZEAAAACBQAAAAdvbGREYXRhAAAAAAAAAAADBQAAAANuaWwAAAAALYQ8sw==",
"height": 1208837,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HEKmTsovM76haxHb26fKjzFn3xPSDRcaREXT4Tz5UUTf
Next: 586ZcYRTo8HF8KuQDaAj4hmdQyrSPizsY49SMgH43BNn
Diff:
Old | New | | Differences |
---|
11 | 11 | | then throw("can hodl waves only at the moment") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
| 14 | + | let frostBlock = 10 |
---|
14 | 15 | | if (!(isDefined(getString(this, currentKey)))) |
---|
15 | | - | then WriteSet([DataEntry(currentKey, (((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_0"))]) |
---|
| 16 | + | then WriteSet([DataEntry(currentKey, (((((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_0"))]) |
---|
16 | 17 | | else { |
---|
17 | 18 | | let oldData = split( match getString(this, currentKey) { |
---|
18 | 19 | | case str: String => |
---|
|
26 | 27 | | case _ => |
---|
27 | 28 | | throw("data int error") |
---|
28 | 29 | | } |
---|
29 | | - | WriteSet([DataEntry(currentKey, ((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + oldData[3]))]) |
---|
| 30 | + | WriteSet([DataEntry(currentKey, ((((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_") + oldData[3]))]) |
---|
30 | 31 | | } |
---|
31 | 32 | | } |
---|
32 | 33 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func deposit () = { |
---|
8 | 8 | | let pmt = extract(i.payment) |
---|
9 | 9 | | let lbh = lastBlock.height |
---|
10 | 10 | | if (isDefined(pmt.assetId)) |
---|
11 | 11 | | then throw("can hodl waves only at the moment") |
---|
12 | 12 | | else { |
---|
13 | 13 | | let currentKey = toBase58String(i.caller.bytes) |
---|
| 14 | + | let frostBlock = 10 |
---|
14 | 15 | | if (!(isDefined(getString(this, currentKey)))) |
---|
15 | | - | then WriteSet([DataEntry(currentKey, (((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_0"))]) |
---|
| 16 | + | then WriteSet([DataEntry(currentKey, (((((toString(((pmt.amount / 100) * 120)) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_0"))]) |
---|
16 | 17 | | else { |
---|
17 | 18 | | let oldData = split( match getString(this, currentKey) { |
---|
18 | 19 | | case str: String => |
---|
19 | 20 | | str |
---|
20 | 21 | | case _ => |
---|
21 | 22 | | throw("data string error") |
---|
22 | 23 | | }, "_") |
---|
23 | 24 | | let currentAmount = match getInteger(this, oldData[0]) { |
---|
24 | 25 | | case a: Int => |
---|
25 | 26 | | a |
---|
26 | 27 | | case _ => |
---|
27 | 28 | | throw("data int error") |
---|
28 | 29 | | } |
---|
29 | | - | WriteSet([DataEntry(currentKey, ((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + oldData[3]))]) |
---|
| 30 | + | WriteSet([DataEntry(currentKey, ((((((toString((currentAmount + ((pmt.amount / 100) * 120))) + "_") + toString(lbh)) + "_") + toString(frostBlock)) + "_") + oldData[3]))]) |
---|
30 | 31 | | } |
---|
31 | 32 | | } |
---|
32 | 33 | | } |
---|
33 | 34 | | |
---|
34 | 35 | | |
---|