tx · 9L2pMki1nWhTwMZAm6A8HqqkNU25mBYmFiK3BLik9f8q

3N553U1mNiC2qXswrmCtng9NG9LisEfb8UZ:  -0.01000000 Waves

2019.07.19 12:54 [592606] smart account 3N553U1mNiC2qXswrmCtng9NG9LisEfb8UZ > SELF 0.00000000 Waves

{ "type": 13, "id": "9L2pMki1nWhTwMZAm6A8HqqkNU25mBYmFiK3BLik9f8q", "fee": 1000000, "feeAssetId": null, "timestamp": 1563530160909, "version": 1, "sender": "3N553U1mNiC2qXswrmCtng9NG9LisEfb8UZ", "senderPublicKey": "CnPHTxcJrxEvmRTkfL7RWG9aWwxcvHLUDe1vfK9CFMzD", "proofs": [ "5xHXu9U3FeuEq1xotioTMwMdjr3rZevKTdDShCJWjF4KiN2rKjeE7R6WmVYyMSK2As41h2P1sMNVR7L7yHjjfHRG" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAgAAAAFpAQAAAAdkZXBvc2l0AAAAAQAAAAZwbGF5ZXIEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFjYW4gaG9sZCB3YXZlcyBvbmx5IGF0IHRoZSBtb21lbnQEAAAACmFkZHJlc3NLZXkJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAJYW1vdW50S2V5CQABLAAAAAIFAAAACmFkZHJlc3NLZXkCAAAABy5hbW91bnQEAAAACXBsYXllcktleQkAASwAAAACBQAAAAphZGRyZXNzS2V5AgAAAAcucGxheWVyBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACWFtb3VudEtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAAluZXdBbW91bnQJAAB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m9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnNoPPw", "chainId": 84, "height": 592606, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(a)
7+func deposit (b) = {
8+ let c = extract(a.payment)
9+ if (isDefined(c.assetId))
10+ then throw("can hold waves only at the moment")
11+ else {
12+ let d = toBase58String(a.caller.bytes)
13+ let e = (d + ".amount")
14+ let f = (d + ".player")
15+ let g = {
16+ let h = getInteger(this, e)
17+ if ($isInstanceOf(h, "Int"))
18+ then {
19+ let i = h
20+ i
21+ }
22+ else 0
23+ }
24+ let j = (g + c.amount)
25+ WriteSet([DataEntry(e, j), DataEntry(f, b)])
26+ }
27+ }
28+
29+
30+
31+@Callable(a)
32+func withdraw (k) = {
33+ let l = toBase58String(a.caller.bytes)
34+ let g = {
35+ let h = getInteger(this, l)
36+ if ($isInstanceOf(h, "Int"))
37+ then {
38+ let i = h
39+ i
40+ }
41+ else 0
42+ }
43+ let j = (g - k)
44+ if ((0 > k))
45+ then throw("Can't withdraw negative amount")
46+ else if ((0 > j))
47+ then throw("Not enough balance")
48+ else ScriptResult(WriteSet([DataEntry(l, j)]), TransferSet([ScriptTransfer(a.caller, k, unit)]))
49+ }
50+
51+
52+@Verifier(m)
53+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
54+

github/deemru/w8io/169f3d6 
21.14 ms