tx · DKcu7BzHKrs3JtWuFfRXUP46nxCdSZaAQvRZdSouNGrF

3MzzEb4efYF2f3zKmwezJJx2VTK5WZw1GU2:  -0.01000000 Waves

2019.06.29 16:37 [563484] smart account 3MzzEb4efYF2f3zKmwezJJx2VTK5WZw1GU2 > SELF 0.00000000 Waves

{ "type": 13, "id": "DKcu7BzHKrs3JtWuFfRXUP46nxCdSZaAQvRZdSouNGrF", "fee": 1000000, "feeAssetId": null, "timestamp": 1561815546684, "version": 1, "sender": "3MzzEb4efYF2f3zKmwezJJx2VTK5WZw1GU2", "senderPublicKey": "GzBa567pVnLWcVXEP3nA8p7SUTA8VYCArN5ErCUzdps7", "proofs": [ "LmNJzxMEyQTya5maQDLZL9c6Ad7EPxHxTaNCd7gG1zTwaTmev2uLKz42EgZu3g3NfYRCRAefMKjv2nTW8VX9VbC" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAd0b2tlbklkAgAAACxDTFVTUUNGa0V0V0hBZTFjS0JIZGNNSEsxY1pXdDR2VkRicTNGTmpNbTh2TAAAAAMAAAABaQEAAAAJZmxpcFRva2VuAAAAAAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAATY2FuIGhvbGQgVG9rZW4gT25seQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAA1jdXJyZW50QW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAAJbmV3QW1vdW50CQAAZAAAAAIFAAAADWN1cnJlbnRBbW91bnQIBQAAAANwbXQAAAAGYW1vdW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AAAAABQAAAAZhbW91bnQJAAACAAAAAQIAAAAeQ2FuJ3Qgd2l0aGRyYXcgbmVnYXRpdmUgYW1vdW50AwkAAGYAAAACAAAAAAAAAAAABQAAAAluZXdBbW91bnQJAAACAAAAAQIAAAASTm90IGVub3VnaCBiYWxhbmNlCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKY3VycmVudEtleQUAAAAJbmV3QW1vdW50BQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5gr+FWg==", "chainId": 84, "height": 563484, "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+let a = "CLUSQCFkEtWHAe1cKBHdcMHK1cZWt4vVDbq3FNjMm8vL"
5+
6+@Callable(b)
7+func flipToken () = {
8+ let c = extract(b.payment)
9+ if (!(isDefined(c.assetId)))
10+ then throw("can hold Token Only")
11+ else {
12+ let d = toBase58String(b.caller.bytes)
13+ let e = {
14+ let f = getInteger(this, d)
15+ if ($isInstanceOf(f, "Int"))
16+ then {
17+ let g = f
18+ g
19+ }
20+ else 0
21+ }
22+ let h = (e + c.amount)
23+ WriteSet([DataEntry(d, h)])
24+ }
25+ }
26+
27+
28+
29+@Callable(b)
30+func deposit () = {
31+ let c = extract(b.payment)
32+ if (isDefined(c.assetId))
33+ then throw("can hold waves only at the moment")
34+ else {
35+ let d = toBase58String(b.caller.bytes)
36+ let e = {
37+ let f = getInteger(this, d)
38+ if ($isInstanceOf(f, "Int"))
39+ then {
40+ let g = f
41+ g
42+ }
43+ else 0
44+ }
45+ let h = (e + c.amount)
46+ WriteSet([DataEntry(d, h)])
47+ }
48+ }
49+
50+
51+
52+@Callable(b)
53+func withdraw (i) = {
54+ let d = toBase58String(b.caller.bytes)
55+ let e = {
56+ let f = getInteger(this, d)
57+ if ($isInstanceOf(f, "Int"))
58+ then {
59+ let g = f
60+ g
61+ }
62+ else 0
63+ }
64+ let h = (e - i)
65+ if ((0 > i))
66+ then throw("Can't withdraw negative amount")
67+ else if ((0 > h))
68+ then throw("Not enough balance")
69+ else ScriptResult(WriteSet([DataEntry(d, h)]), TransferSet([ScriptTransfer(b.caller, i, unit)]))
70+ }
71+
72+
73+@Verifier(j)
74+func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
75+

github/deemru/w8io/026f985 
16.58 ms