tx · 3zzL9fNZPFsQntJj8Nf6oM35dh46uM15BBVqZs9VoKYB 3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY: -0.01000000 Waves 2020.10.06 17:41 [1208832] smart account 3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY > SELF 0.00000000 Waves
{ "type": 13, "id": "3zzL9fNZPFsQntJj8Nf6oM35dh46uM15BBVqZs9VoKYB", "fee": 1000000, "feeAssetId": null, "timestamp": 1601995263026, "version": 2, "chainId": 84, "sender": "3N8XBzcbxt5snTdkqVSobDjtDGbTns27DdY", "senderPublicKey": "HhWoKsFPjXVx9nYfPydpV9BwLmuUdJyJ8ydtyVJVxg9Z", "proofs": [ "Gnua3D2Gfze3BeRqbYcoRxWNg4sdUsvqJeAXbcr4SX84RsDUBtNcT2vdYasV4oWc2rKs84P2FUSsjMNigxW72Vj" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAANsYmgIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9kbCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmN1cnJlbnRLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAKZnJvc3RCbG9jawAAAAAAAAAACgMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAGkAAAAAQkAAGgAAAACCQAAaQAAAAIIBQAAAANwbXQAAAAGYW1vdW50AAAAAAAAAABkAAAAAAAAAAB4AgAAAAFfCQABpAAAAAEFAAAAA2xiaAIAAAABXwkAAaQAAAABBQAAAApmcm9zdEJsb2NrAgAAAAJfMAUAAAADbmlsBAAAAAdvbGREYXRhCQAEtQAAAAIEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAAKY3VycmVudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAFAAAAA3N0cgkAAAIAAAABAgAAABFkYXRhIHN0cmluZyBlcnJvcgIAAAABXwQAAAANY3VycmVudEFtb3VudAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABkQAAAAIFAAAAB29sZERhdGEAAAAAAAAAAAADCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQkAAAIAAAABAgAAAA5kYXRhIGludCBlcnJvcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABCQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQJAABoAAAAAgkAAGkAAAACCAUAAAADcG10AAAABmFtb3VudAAAAAAAAAAAZAAAAAAAAAAAeAIAAAABXwkAAaQAAAABBQAAAANsYmgCAAAAAV8JAAGkAAAAAQUAAAAKZnJvc3RCbG9jawIAAAABXwkAAZEAAAACBQAAAAdvbGREYXRhAAAAAAAAAAADBQAAAANuaWwAAAAALYQ8sw==", "height": 1208832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HEKmTsovM76haxHb26fKjzFn3xPSDRcaREXT4Tz5UUTf Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(a) | |
7 | + | func deposit () = { | |
8 | + | let b = extract(a.payment) | |
9 | + | let c = lastBlock.height | |
10 | + | if (isDefined(b.assetId)) | |
11 | + | then throw("can hodl waves only at the moment") | |
12 | + | else { | |
13 | + | let d = toBase58String(a.caller.bytes) | |
14 | + | let e = 10 | |
15 | + | if (!(isDefined(getString(this, d)))) | |
16 | + | then WriteSet([DataEntry(d, (((((toString(((b.amount / 100) * 120)) + "_") + toString(c)) + "_") + toString(e)) + "_0"))]) | |
17 | + | else { | |
18 | + | let f = split({ | |
19 | + | let g = getString(this, d) | |
20 | + | if ($isInstanceOf(g, "String")) | |
21 | + | then { | |
22 | + | let h = g | |
23 | + | h | |
24 | + | } | |
25 | + | else throw("data string error") | |
26 | + | }, "_") | |
27 | + | let i = { | |
28 | + | let g = getInteger(this, f[0]) | |
29 | + | if ($isInstanceOf(g, "Int")) | |
30 | + | then { | |
31 | + | let j = g | |
32 | + | j | |
33 | + | } | |
34 | + | else throw("data int error") | |
35 | + | } | |
36 | + | WriteSet([DataEntry(d, ((((((toString((i + ((b.amount / 100) * 120))) + "_") + toString(c)) + "_") + toString(e)) + "_") + f[3]))]) | |
37 | + | } | |
38 | + | } | |
39 | + | } | |
40 | + | ||
41 | + |
github/deemru/w8io/169f3d6 17.18 ms ◑