tx · BPpsuZXBUvJesgRb2hy8PRtHjn6QvW4m6vnCqWAu3wpc

3MvbEM1UBE4gWS9jUyn4r1eajhzufY4TbWL:  -0.01000000 Waves

2021.04.21 13:14 [1492078] smart account 3MvbEM1UBE4gWS9jUyn4r1eajhzufY4TbWL > SELF 0.00000000 Waves

{ "type": 13, "id": "BPpsuZXBUvJesgRb2hy8PRtHjn6QvW4m6vnCqWAu3wpc", "fee": 1000000, "feeAssetId": null, "timestamp": 1619000053481, "version": 2, "chainId": 84, "sender": "3MvbEM1UBE4gWS9jUyn4r1eajhzufY4TbWL", "senderPublicKey": "4Qfz7tpS7rGYzRpgcvFhi8n6BHqe3t8xt2kCwgVHwKuC", "proofs": [ "4ictvcLjk5PdYa8qVFNBeAVZViUgvNAfBQwNbQNeEtU37aMDNhPsrAS97qjSn5CBQim1bgy9ZzU8XRodY78xuMFS" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAAkAAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAAA1rZXlDb21taXNzaW9uAgAAAApjb21taXNzaW9uAAAAABtrZXlDb21taXNzaW9uU2NhbGVEZWxpbWl0ZXICAAAAGmNvbW1pc3Npb25fc2NhbGVfZGVsaW1pdGVyAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADmtleUNhbmNlbENhdXNlAgAAAA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ETAAAAAIFAAAADGFkbWluUHViS2V5MwkABEwAAAACBQAAABRhZG1pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAAlrZXlBY3RpdmUGCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACGtleUNhdXNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACUY/BQA==", "height": 1492078, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let a = "1.0.0"
5+
6+let b = "version"
7+
8+let c = "active"
9+
10+let d = "number_voting"
11+
12+let e = "_height"
13+
14+let f = "_no"
15+
16+let g = "_yes"
17+
18+let h = "_status"
19+
20+let i = "amount_voting"
21+
22+let j = "commission"
23+
24+let k = "commission_scale_delimiter"
25+
26+let l = "shutdown_cause"
27+
28+let m = "_cancel_cause"
29+
30+let n = "_SWOP_amount"
31+
32+let o = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
33+
34+let p = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
35+
36+let q = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
37+
38+let r = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
39+
40+let s = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
41+
42+let t = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS')
43+
44+let u = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
45+
46+let v = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
47+
48+let w = getBooleanValue(this, c)
49+
50+let x = getIntegerValue(this, d)
51+
52+let y = getIntegerValue(this, i)
53+
54+let z = 1000000000
55+
56+let A = 1000
57+
58+let B = 100000000
59+
60+let C = 1000
61+
62+let D = 8
63+
64+let E = 5
65+
66+let F = (1440 * 5)
67+
68+func G (H) = if ((H == "WAVES"))
69+ then unit
70+ else fromBase58String(H)
71+
72+
73+func I (J) = if ((valueOrElse(getInteger(t, (toString(J) + n)), 0) > 0))
74+ then true
75+ else false
76+
77+
78+func K (L) = [BooleanEntry(c, false), StringEntry(l, L)]
79+
80+
81+func M (N,O) = throw(((((("Insufficient DApp balance to pay " + toString(N)) + " ") + O) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport"))
82+
83+
84+@Callable(P)
85+func init () = {
86+ let Q = 0
87+ let R = 0
88+ let S = true
89+[StringEntry(b, a), BooleanEntry(c, S), IntegerEntry(d, Q), IntegerEntry(i, R)]
90+ }
91+
92+
93+
94+@Callable(P)
95+func initVotingForNewPool (T,U) = {
96+ let V = $Tuple2(G(T), G(U))
97+ let W = V._1
98+ let X = V._2
99+ if (!(w))
100+ then throw("DApp is inactive at this moment")
101+ else if ((W == X))
102+ then throw("Assets must be different")
103+ else if ((x > E))
104+ then throw(("Too many votes. Maximum quantity -" + toString(E)))
105+ else [IntegerEntry(((((T + "_") + U) + "_") + toString(y)), y), IntegerEntry((toString(y) + e), (height + F)), BooleanEntry((toString(y) + h), true), IntegerEntry(i, (y + 1)), IntegerEntry(d, (x + 1))]
106+ }
107+
108+
109+
110+@Callable(P)
111+func voteForPool (Y,Z,aa) = {
112+ let ab = height
113+ let ac = valueOrErrorMessage(getIntegerValue(this, (toString(Y) + e)), ("Voting " + toString(Y)))
114+ if (Z)
115+ then {
116+ let ad = (getIntegerValue(this, (toString(Y) + g)) + aa)
117+[IntegerEntry((toString(Y) + g), ad), IntegerEntry((((toString(P.caller) + "_") + toString(Y)) + g), aa)]
118+ }
119+ else {
120+ let ad = (getIntegerValue(this, (toString(Y) + f)) + aa)
121+[IntegerEntry((toString(Y) + f), ad), IntegerEntry((((toString(P.caller) + "_") + toString(Y)) + f), aa)]
122+ }
123+ }
124+
125+
126+
127+@Callable(P)
128+func cancellationVoting (Y,L) = [IntegerEntry(d, (x - 1)), BooleanEntry((toString(Y) + h), false), StringEntry((toString(Y) + m), L)]
129+
130+
131+
132+@Callable(P)
133+func shutdown () = if (!(w))
134+ then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, l), "the cause wasn't specified")))
135+ else if (!(containsElement([o, p, q, r], P.callerPublicKey)))
136+ then throw("Only admin can call this function")
137+ else K("Paused by admin")
138+
139+
140+
141+@Callable(P)
142+func activate () = if (w)
143+ then throw("DApp is already active")
144+ else if (!(containsElement([o, p, q, r], P.callerPublicKey)))
145+ then throw("Only admin can call this function")
146+ else [BooleanEntry(c, true), DeleteEntry(l)]
147+
148+
149+@Verifier(ae)
150+func af () = {
151+ let ag = if (sigVerify(ae.bodyBytes, ae.proofs[0], o))
152+ then 1
153+ else 0
154+ let ah = if (sigVerify(ae.bodyBytes, ae.proofs[1], p))
155+ then 1
156+ else 0
157+ let ai = if (sigVerify(ae.bodyBytes, ae.proofs[2], q))
158+ then 1
159+ else 0
160+ (((ag + ah) + ai) >= 2)
161+ }
162+

github/deemru/w8io/169f3d6 
24.49 ms