tx · Ffe4EsshJ73Zv75BkcYFc9D2Jrrj1Lmubts9MTFEfpHW

3MssRJsCtoAhkL5kNjxowQupbXVkfsK2d1J:  -0.01000000 Waves

2020.10.06 11:33 [1208470] smart account 3MssRJsCtoAhkL5kNjxowQupbXVkfsK2d1J > SELF 0.00000000 Waves

{ "type": 13, "id": "Ffe4EsshJ73Zv75BkcYFc9D2Jrrj1Lmubts9MTFEfpHW", "fee": 1000000, "feeAssetId": null, "timestamp": 1601973188868, "version": 1, "sender": "3MssRJsCtoAhkL5kNjxowQupbXVkfsK2d1J", "senderPublicKey": "6ykraGjmEJoiMGV9H8exLDGexkih6SbTzGnZi7CFSd3D", "proofs": [ "3MZJchDr7oHLF5qhxPPm13K1EZ4zdyD4wdS4V3Bz9rZpwsG4cKqKd9YUEaNB4mqx9XeYo1mRREzxZCsf4bLqt3nx" ], "script": "base64:AAIEAAAAAAAAAAkIAhIDCgEIEgAAAAADAAAAAAZOU0JUaWQJAAJZAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAABk5TQlRpZAIAAAAgTlNCVGlkIGlzIG5vdCBzcGVjaWZpZWQgaW4gc3RhdGUAAAAACWhlaWdodEVuZAkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAABHRoaXMCAAAACmhlaWdodF9lbmQCAAAAJGhlaWdodF9lbmQgaXMgbm90IHNwZWNpZmllZCBpbiBzdGF0ZQEAAAAOa2V5VXNlckJhbGFuY2UAAAABAAAACHVzZXJBZGRyCQAEuQAAAAIJAARMAAAAAgIAAAAHYmFsYW5jZQkABEwAAAACCQAEJQAAAAEFAAAACHVzZXJBZGRyBQAAAANuaWwCAAAAAV8AAAACAAAACmNvbnRleHRPYmoBAAAACGNhc3RWb3RlAAAAAQAAAAR2b3RlBAAAAAh2b2l0ZUtleQkABLkAAAACCQAETAAAAAICAAAABHZvdGUJAARMAAAAAgUAAAA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AAA5rZXlVc2VyQmFsYW5jZQAAAAEIBQAAAApjb250ZXh0T2JqAAAABmNhbGxlcgMJAABmAAAAAgUAAAAJaGVpZ2h0RW5kBQAAAAZoZWlnaHQJAAACAAAAAQIAAAAPdm90ZSBpbiBwcm9jZXNzBAAAAA1jYWxsZXJCYWxhbmNlCQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAADnVzZXJCYWxhbmNlS2V5AAAAAAAAAAAAAwkAAGcAAAACAAAAAAAAAAAABQAAAA1jYWxsZXJCYWxhbmNlCQAAAgAAAAECAAAAEGJhbGFuY2UgaXMgZW1wdHkJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyBQAAAA1jYWxsZXJCYWxhbmNlBQAAAAZOU0JUaWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIFAAAADnVzZXJCYWxhbmNlS2V5AAAAAAAAAAAABQAAAANuaWwAAAAAe0uENA==", "chainId": 84, "height": 1208470, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: Gb1D7zUb68USY97WKFr9dxeTMMFq2q6HjMtznbkhYudt Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = fromBase58String(valueOrErrorMessage(getString(this, "NSBTid"), "NSBTid is not specified in state"))
5+
6+let b = valueOrErrorMessage(getInteger(this, "height_end"), "height_end is not specified in state")
7+
8+func c (d) = makeString(["balance", toString(d)], "_")
9+
10+
11+@Callable(e)
12+func castVote (f) = {
13+ let g = makeString(["vote", f], "_")
14+ let h = c(e.caller)
15+ let i = value(e.payments[0])
16+ let j = i.assetId
17+ let k = i.amount
18+ let l = valueOrElse(getInteger(this, g), 0)
19+ let m = valueOrElse(getInteger(this, h), 0)
20+ if ((j != a))
21+ then throw("incorrect assets")
22+ else if ((height >= b))
23+ then throw("vote finished")
24+ else [IntegerEntry(g, (l + k)), IntegerEntry(h, (m + k))]
25+ }
26+
27+
28+
29+@Callable(e)
30+func withdraw () = {
31+ let h = c(e.caller)
32+ if ((b > height))
33+ then throw("vote in process")
34+ else {
35+ let n = valueOrElse(getInteger(this, h), 0)
36+ if ((0 >= n))
37+ then throw("balance is empty")
38+ else [ScriptTransfer(e.caller, n, a), IntegerEntry(h, 0)]
39+ }
40+ }
41+
42+

github/deemru/w8io/026f985 
20.98 ms