tx · 6ngobHYAkTkCAJFdcPCdJASh28CT8Sq4Xn5c1PEXA7vP

3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU:  -0.01000000 Waves

2024.11.21 12:42 [3381045] smart account 3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU > SELF 0.00000000 Waves

{ "type": 13, "id": "6ngobHYAkTkCAJFdcPCdJASh28CT8Sq4Xn5c1PEXA7vP", "fee": 1000000, "feeAssetId": null, "timestamp": 1732182114400, "version": 2, "chainId": 84, "sender": "3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU", "senderPublicKey": "B1qMTynh8kEm5LTPR5dmuG8ZHgVgLbUc9Qdo2TQa91Fg", "proofs": [ "2Q6iedwiyXPb7x8ERaAEdiZ3pgf2A6LZt6SESMD2s3dK1M4nRvJxHGL5jd3AYZpLqRZbxgTryQ9Z3C3AAWrvc9pW" ], "script": "base64:BwIVCAISBQoDCAgIEgUKAwgIGBIDCgEIJgAJU0VQQVJBVE9SAgJfXwAPQkFUQ0hfU0VQQVJBVE9SAgI6OgAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAUS0VZX1NFUVVFTkNFUl9DQUxMRVICEFNFUVVFTkNFUl9DQUxMRVIAFEtFWV9HQVRFV0FZX0NPTlRSQUNUAhBHQVRFV0FZX0NPTlRSQUNUABFLRVlfU1BPVF9DT05UUkFDVAINU1BPVF9DT05UUkFDVAATS0VZX0xBU1RfQkFUQ0hfSEFTSAIPTEFTVF9CQVRDSF9IQVNIAA1GVU5DX1dJVEhEUkFXAgh3aXRoZHJhdwAKRlVOQ19UUkFERQIFdHJhZGUAEUZVTkNfQ0xBSU1fUkVXQVJEAgtjbGFpbVJld2FyZAAWRlVOQ19SRUpFQ1RfV0lUSERSQVdBTAIQcmVqZWN0V2l0aGRyYXdhbAAQR0FURVdBWV9XSVRIRFJBVwIQR0FURVdBWV9XSVRIRF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ZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleUcApz8=", "height": 3381045, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J8YiM7uP4QZEBY9BP2Li2YAAHhicj9AHC3nBiJVkHRHu Next: none Diff:
OldNewDifferences
2525
2626 let l = "claimReward"
2727
28-let m = "GATEWAY_WITHDRAW"
28+let m = "rejectWithdrawal"
2929
30-let n = "SPOT_TRADE"
30+let n = "GATEWAY_WITHDRAW"
3131
32-let o = "SPOT_CLAIM_REWARD"
32+let o = "GATEWAY_REJECT_WD"
3333
34-let p = 9223372036854775807
34+let p = "SPOT_TRADE"
3535
36-func q (r,s) = {
37- let t = addressFromString(r)
38- if ($isInstanceOf(t, "Address"))
36+let q = "SPOT_CLAIM_REWARD"
37+
38+let r = 9223372036854775807
39+
40+func s (t,u) = {
41+ let v = addressFromString(t)
42+ if ($isInstanceOf(v, "Address"))
3943 then {
40- let u = t
44+ let w = v
4145 true
4246 }
43- else throw(s)
47+ else throw(u)
4448 }
4549
4650
47-func v (w,x,y,s) = if (if ((x > w))
51+func x (y,z,A,u) = if (if ((z > y))
4852 then true
49- else (w > y))
50- then throw(s)
53+ else (y > A))
54+ then throw(u)
5155 else true
5256
5357
54-func z () = {
55- let t = getBoolean(e)
56- if ($isInstanceOf(t, "Boolean"))
58+func B () = {
59+ let v = getBoolean(e)
60+ if ($isInstanceOf(v, "Boolean"))
5761 then {
58- let u = t
59- u
62+ let w = v
63+ w
6064 }
6165 else false
6266 }
6367
6468
65-func A (B) = [BooleanEntry(e, B)]
69+func C (D) = [BooleanEntry(e, D)]
6670
6771
68-func C () = {
69- let t = getString(c)
70- if ($isInstanceOf(t, "String"))
72+func E () = {
73+ let v = getString(c)
74+ if ($isInstanceOf(v, "String"))
7175 then {
72- let u = t
73- addressFromStringValue(u)
76+ let w = v
77+ addressFromStringValue(w)
7478 }
7579 else Address(base58'')
7680 }
7781
7882
79-func D (E) = [StringEntry(c, toString(E))]
83+func F (G) = [StringEntry(c, toString(G))]
8084
8185
82-func F () = {
83- let t = getString(f)
84- if ($isInstanceOf(t, "String"))
86+func H () = {
87+ let v = getString(f)
88+ if ($isInstanceOf(v, "String"))
8589 then {
86- let u = t
87- addressFromStringValue(u)
90+ let w = v
91+ addressFromStringValue(w)
8892 }
8993 else Address(base58'')
9094 }
9195
9296
93-func G (H) = [StringEntry(f, toString(H))]
97+func I (J) = [StringEntry(f, toString(J))]
9498
9599
96-func I () = {
97- let t = getString(g)
98- if ($isInstanceOf(t, "String"))
100+func K () = {
101+ let v = getString(g)
102+ if ($isInstanceOf(v, "String"))
99103 then {
100- let u = t
101- addressFromStringValue(u)
104+ let w = v
105+ addressFromStringValue(w)
102106 }
103107 else Address(base58'')
104108 }
105109
106110
107-func J (K) = [StringEntry(g, toString(K))]
111+func L (M) = [StringEntry(g, toString(M))]
108112
109113
110-func L () = {
111- let t = getString(h)
112- if ($isInstanceOf(t, "String"))
114+func N () = {
115+ let v = getString(h)
116+ if ($isInstanceOf(v, "String"))
113117 then {
114- let u = t
115- addressFromStringValue(u)
118+ let w = v
119+ addressFromStringValue(w)
116120 }
117121 else Address(base58'')
118122 }
119123
120124
121-func M (N) = [StringEntry(h, toString(N))]
125+func O (P) = [StringEntry(h, toString(P))]
122126
123127
124-func O () = {
125- let t = getString(i)
126- if ($isInstanceOf(t, "String"))
128+func Q () = {
129+ let v = getString(i)
130+ if ($isInstanceOf(v, "String"))
127131 then {
128- let u = t
129- u
132+ let w = v
133+ w
130134 }
131135 else "GENESIS"
132136 }
133137
134138
135-func P (Q) = [StringEntry(i, Q)]
139+func R (S) = [StringEntry(i, S)]
136140
137141
138-func R (S) = if ((S != this))
142+func T (U) = if ((U != this))
139143 then throw("_onlyThisContract: revert")
140144 else true
141145
142146
143-func T () = if ((C() == Address(base58'')))
147+func V () = if ((E() == Address(base58'')))
144148 then throw("_whenMultisigSet: revert")
145149 else true
146150
147151
148-func U () = if (z())
152+func W () = if (B())
149153 then throw("_whenNotInitialized: revert")
150154 else true
151155
152156
153-func V () = if (!(z()))
157+func X () = if (!(B()))
154158 then throw("_whenInitialized: revert")
155159 else true
156160
157161
158-func W (X,s) = if ((F() != X))
159- then throw(s)
162+func Y (Z,u) = if ((H() != Z))
163+ then throw(u)
160164 else true
161165
162166
163-func Y (Q,s) = if ((O() != Q))
164- then throw(s)
167+func aa (S,u) = if ((Q() != S))
168+ then throw(u)
165169 else true
166170
167171
168-@Callable(Z)
169-func init (H,K,N) = {
170- let aa = if (if (if (if (if (R(Z.caller))
171- then U()
172+@Callable(ab)
173+func init (J,M,P) = {
174+ let ac = if (if (if (if (if (T(ab.caller))
175+ then W()
172176 else false)
173- then T()
177+ then V()
174178 else false)
175- then q(H, "init: invalid sequencerCaller")
179+ then s(J, "init: invalid sequencerCaller")
176180 else false)
177- then q(K, "init: invalid gatewayContract")
181+ then s(M, "init: invalid gatewayContract")
178182 else false)
179- then q(N, "init: invalid spotContract")
183+ then s(P, "init: invalid spotContract")
180184 else false
181- if ((aa == aa))
182- then $Tuple2((((A(true) ++ G(addressFromStringValue(H))) ++ J(addressFromStringValue(K))) ++ M(addressFromStringValue(N))), unit)
185+ if ((ac == ac))
186+ then $Tuple2((((C(true) ++ I(addressFromStringValue(J))) ++ L(addressFromStringValue(M))) ++ O(addressFromStringValue(P))), unit)
183187 else throw("Strict value is not equal to itself.")
184188 }
185189
186190
187191
188-@Callable(Z)
189-func processBatch (ab,Q,ac) = {
190- let aa = if (if (if (W(Z.caller, "processBatch: invalid sequencer caller"))
191- then v(size(ab), 1, p, "processBatch: invalid currentBatchHash")
192+@Callable(ab)
193+func processBatch (ad,S,ae) = {
194+ let ac = if (if (if (Y(ab.caller, "processBatch: invalid sequencer caller"))
195+ then x(size(ad), 1, r, "processBatch: invalid currentBatchHash")
192196 else false)
193- then Y(Q, "processBatch: invalid lastBatchHash")
197+ then aa(S, "processBatch: invalid lastBatchHash")
194198 else false)
195- then v(size(ac), 1, 10, "processBatch: invalid batch size")
199+ then x(size(ae), 1, 10, "processBatch: invalid batch size")
196200 else false
197- if ((aa == aa))
201+ if ((ac == ac))
198202 then {
199- let ad = L()
200- let ae = I()
201- func af (ag,ah) = {
202- let ai = split_4C(ah, b)
203- let aj = v(size(ai), 1, 23, "processBatch: invalid elem size")
204- if ((aj == aj))
203+ let af = N()
204+ let ag = K()
205+ func ah (ai,aj) = {
206+ let ak = split_4C(aj, b)
207+ let al = x(size(ak), 1, 23, "processBatch: invalid elem size")
208+ if ((al == al))
205209 then {
206- let ak = ai[0]
207- let al = removeByIndex(ai, 0)
208- let am = if ((ak == n))
209- then invoke(ad, k, al, nil)
210- else if ((ak == o))
211- then invoke(ad, l, al, nil)
212- else if ((ak == m))
213- then invoke(ae, j, al, nil)
214- else throw("processBatch: invalid operation")
215- if ((am == am))
216- then ag
210+ let am = ak[0]
211+ let an = removeByIndex(ak, 0)
212+ let ao = if ((am == p))
213+ then invoke(af, k, an, nil)
214+ else if ((am == q))
215+ then invoke(af, l, an, nil)
216+ else if ((am == n))
217+ then invoke(ag, j, an, nil)
218+ else if ((am == o))
219+ then invoke(ag, m, an, nil)
220+ else throw("processBatch: invalid operation")
221+ if ((ao == ao))
222+ then ai
217223 else throw("Strict value is not equal to itself.")
218224 }
219225 else throw("Strict value is not equal to itself.")
220226 }
221227
222- let an = {
223- let ao = ac
224- let ap = size(ao)
225- let aq = true
226- func ar (as,at) = if ((at >= ap))
227- then as
228- else af(as, ao[at])
228+ let ap = {
229+ let aq = ae
230+ let ar = size(aq)
231+ let as = true
232+ func at (au,av) = if ((av >= ar))
233+ then au
234+ else ah(au, aq[av])
229235
230- func au (as,at) = if ((at >= ap))
231- then as
236+ func aw (au,av) = if ((av >= ar))
237+ then au
232238 else throw("List size exceeds 10")
233239
234- au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
240+ aw(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
235241 }
236- if ((an == an))
237- then $Tuple2(P(ab), unit)
242+ if ((ap == ap))
243+ then $Tuple2(R(ad), unit)
238244 else throw("Strict value is not equal to itself.")
239245 }
240246 else throw("Strict value is not equal to itself.")
242248
243249
244250
245-@Callable(Z)
246-func setMultisig (E) = {
247- let aa = if (R(Z.caller))
248- then q(E, "setMultisig: invalid multisig")
251+@Callable(ab)
252+func setMultisig (G) = {
253+ let ac = if (T(ab.caller))
254+ then s(G, "setMultisig: invalid multisig")
249255 else false
250- if ((aa == aa))
251- then $Tuple2(D(addressFromStringValue(E)), unit)
256+ if ((ac == ac))
257+ then $Tuple2(F(addressFromStringValue(G)), unit)
252258 else throw("Strict value is not equal to itself.")
253259 }
254260
255261
256-@Verifier(av)
257-func aw () = {
258- let t = getString(c)
259- if ($isInstanceOf(t, "String"))
262+@Verifier(ax)
263+func ay () = {
264+ let v = getString(c)
265+ if ($isInstanceOf(v, "String"))
260266 then {
261- let ax = t
262- valueOrElse(getBoolean(addressFromStringValue(ax), makeString([d, toString(this), toBase58String(av.id)], a)), false)
267+ let az = v
268+ valueOrElse(getBoolean(addressFromStringValue(az), makeString([d, toString(this), toBase58String(ax.id)], a)), false)
263269 }
264- else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey)
270+ else sigVerify(ax.bodyBytes, ax.proofs[0], ax.senderPublicKey)
265271 }
266272
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = "::"
77
88 let c = "MULTISIG"
99
1010 let d = "STATUS"
1111
1212 let e = "INIT"
1313
1414 let f = "SEQUENCER_CALLER"
1515
1616 let g = "GATEWAY_CONTRACT"
1717
1818 let h = "SPOT_CONTRACT"
1919
2020 let i = "LAST_BATCH_HASH"
2121
2222 let j = "withdraw"
2323
2424 let k = "trade"
2525
2626 let l = "claimReward"
2727
28-let m = "GATEWAY_WITHDRAW"
28+let m = "rejectWithdrawal"
2929
30-let n = "SPOT_TRADE"
30+let n = "GATEWAY_WITHDRAW"
3131
32-let o = "SPOT_CLAIM_REWARD"
32+let o = "GATEWAY_REJECT_WD"
3333
34-let p = 9223372036854775807
34+let p = "SPOT_TRADE"
3535
36-func q (r,s) = {
37- let t = addressFromString(r)
38- if ($isInstanceOf(t, "Address"))
36+let q = "SPOT_CLAIM_REWARD"
37+
38+let r = 9223372036854775807
39+
40+func s (t,u) = {
41+ let v = addressFromString(t)
42+ if ($isInstanceOf(v, "Address"))
3943 then {
40- let u = t
44+ let w = v
4145 true
4246 }
43- else throw(s)
47+ else throw(u)
4448 }
4549
4650
47-func v (w,x,y,s) = if (if ((x > w))
51+func x (y,z,A,u) = if (if ((z > y))
4852 then true
49- else (w > y))
50- then throw(s)
53+ else (y > A))
54+ then throw(u)
5155 else true
5256
5357
54-func z () = {
55- let t = getBoolean(e)
56- if ($isInstanceOf(t, "Boolean"))
58+func B () = {
59+ let v = getBoolean(e)
60+ if ($isInstanceOf(v, "Boolean"))
5761 then {
58- let u = t
59- u
62+ let w = v
63+ w
6064 }
6165 else false
6266 }
6367
6468
65-func A (B) = [BooleanEntry(e, B)]
69+func C (D) = [BooleanEntry(e, D)]
6670
6771
68-func C () = {
69- let t = getString(c)
70- if ($isInstanceOf(t, "String"))
72+func E () = {
73+ let v = getString(c)
74+ if ($isInstanceOf(v, "String"))
7175 then {
72- let u = t
73- addressFromStringValue(u)
76+ let w = v
77+ addressFromStringValue(w)
7478 }
7579 else Address(base58'')
7680 }
7781
7882
79-func D (E) = [StringEntry(c, toString(E))]
83+func F (G) = [StringEntry(c, toString(G))]
8084
8185
82-func F () = {
83- let t = getString(f)
84- if ($isInstanceOf(t, "String"))
86+func H () = {
87+ let v = getString(f)
88+ if ($isInstanceOf(v, "String"))
8589 then {
86- let u = t
87- addressFromStringValue(u)
90+ let w = v
91+ addressFromStringValue(w)
8892 }
8993 else Address(base58'')
9094 }
9195
9296
93-func G (H) = [StringEntry(f, toString(H))]
97+func I (J) = [StringEntry(f, toString(J))]
9498
9599
96-func I () = {
97- let t = getString(g)
98- if ($isInstanceOf(t, "String"))
100+func K () = {
101+ let v = getString(g)
102+ if ($isInstanceOf(v, "String"))
99103 then {
100- let u = t
101- addressFromStringValue(u)
104+ let w = v
105+ addressFromStringValue(w)
102106 }
103107 else Address(base58'')
104108 }
105109
106110
107-func J (K) = [StringEntry(g, toString(K))]
111+func L (M) = [StringEntry(g, toString(M))]
108112
109113
110-func L () = {
111- let t = getString(h)
112- if ($isInstanceOf(t, "String"))
114+func N () = {
115+ let v = getString(h)
116+ if ($isInstanceOf(v, "String"))
113117 then {
114- let u = t
115- addressFromStringValue(u)
118+ let w = v
119+ addressFromStringValue(w)
116120 }
117121 else Address(base58'')
118122 }
119123
120124
121-func M (N) = [StringEntry(h, toString(N))]
125+func O (P) = [StringEntry(h, toString(P))]
122126
123127
124-func O () = {
125- let t = getString(i)
126- if ($isInstanceOf(t, "String"))
128+func Q () = {
129+ let v = getString(i)
130+ if ($isInstanceOf(v, "String"))
127131 then {
128- let u = t
129- u
132+ let w = v
133+ w
130134 }
131135 else "GENESIS"
132136 }
133137
134138
135-func P (Q) = [StringEntry(i, Q)]
139+func R (S) = [StringEntry(i, S)]
136140
137141
138-func R (S) = if ((S != this))
142+func T (U) = if ((U != this))
139143 then throw("_onlyThisContract: revert")
140144 else true
141145
142146
143-func T () = if ((C() == Address(base58'')))
147+func V () = if ((E() == Address(base58'')))
144148 then throw("_whenMultisigSet: revert")
145149 else true
146150
147151
148-func U () = if (z())
152+func W () = if (B())
149153 then throw("_whenNotInitialized: revert")
150154 else true
151155
152156
153-func V () = if (!(z()))
157+func X () = if (!(B()))
154158 then throw("_whenInitialized: revert")
155159 else true
156160
157161
158-func W (X,s) = if ((F() != X))
159- then throw(s)
162+func Y (Z,u) = if ((H() != Z))
163+ then throw(u)
160164 else true
161165
162166
163-func Y (Q,s) = if ((O() != Q))
164- then throw(s)
167+func aa (S,u) = if ((Q() != S))
168+ then throw(u)
165169 else true
166170
167171
168-@Callable(Z)
169-func init (H,K,N) = {
170- let aa = if (if (if (if (if (R(Z.caller))
171- then U()
172+@Callable(ab)
173+func init (J,M,P) = {
174+ let ac = if (if (if (if (if (T(ab.caller))
175+ then W()
172176 else false)
173- then T()
177+ then V()
174178 else false)
175- then q(H, "init: invalid sequencerCaller")
179+ then s(J, "init: invalid sequencerCaller")
176180 else false)
177- then q(K, "init: invalid gatewayContract")
181+ then s(M, "init: invalid gatewayContract")
178182 else false)
179- then q(N, "init: invalid spotContract")
183+ then s(P, "init: invalid spotContract")
180184 else false
181- if ((aa == aa))
182- then $Tuple2((((A(true) ++ G(addressFromStringValue(H))) ++ J(addressFromStringValue(K))) ++ M(addressFromStringValue(N))), unit)
185+ if ((ac == ac))
186+ then $Tuple2((((C(true) ++ I(addressFromStringValue(J))) ++ L(addressFromStringValue(M))) ++ O(addressFromStringValue(P))), unit)
183187 else throw("Strict value is not equal to itself.")
184188 }
185189
186190
187191
188-@Callable(Z)
189-func processBatch (ab,Q,ac) = {
190- let aa = if (if (if (W(Z.caller, "processBatch: invalid sequencer caller"))
191- then v(size(ab), 1, p, "processBatch: invalid currentBatchHash")
192+@Callable(ab)
193+func processBatch (ad,S,ae) = {
194+ let ac = if (if (if (Y(ab.caller, "processBatch: invalid sequencer caller"))
195+ then x(size(ad), 1, r, "processBatch: invalid currentBatchHash")
192196 else false)
193- then Y(Q, "processBatch: invalid lastBatchHash")
197+ then aa(S, "processBatch: invalid lastBatchHash")
194198 else false)
195- then v(size(ac), 1, 10, "processBatch: invalid batch size")
199+ then x(size(ae), 1, 10, "processBatch: invalid batch size")
196200 else false
197- if ((aa == aa))
201+ if ((ac == ac))
198202 then {
199- let ad = L()
200- let ae = I()
201- func af (ag,ah) = {
202- let ai = split_4C(ah, b)
203- let aj = v(size(ai), 1, 23, "processBatch: invalid elem size")
204- if ((aj == aj))
203+ let af = N()
204+ let ag = K()
205+ func ah (ai,aj) = {
206+ let ak = split_4C(aj, b)
207+ let al = x(size(ak), 1, 23, "processBatch: invalid elem size")
208+ if ((al == al))
205209 then {
206- let ak = ai[0]
207- let al = removeByIndex(ai, 0)
208- let am = if ((ak == n))
209- then invoke(ad, k, al, nil)
210- else if ((ak == o))
211- then invoke(ad, l, al, nil)
212- else if ((ak == m))
213- then invoke(ae, j, al, nil)
214- else throw("processBatch: invalid operation")
215- if ((am == am))
216- then ag
210+ let am = ak[0]
211+ let an = removeByIndex(ak, 0)
212+ let ao = if ((am == p))
213+ then invoke(af, k, an, nil)
214+ else if ((am == q))
215+ then invoke(af, l, an, nil)
216+ else if ((am == n))
217+ then invoke(ag, j, an, nil)
218+ else if ((am == o))
219+ then invoke(ag, m, an, nil)
220+ else throw("processBatch: invalid operation")
221+ if ((ao == ao))
222+ then ai
217223 else throw("Strict value is not equal to itself.")
218224 }
219225 else throw("Strict value is not equal to itself.")
220226 }
221227
222- let an = {
223- let ao = ac
224- let ap = size(ao)
225- let aq = true
226- func ar (as,at) = if ((at >= ap))
227- then as
228- else af(as, ao[at])
228+ let ap = {
229+ let aq = ae
230+ let ar = size(aq)
231+ let as = true
232+ func at (au,av) = if ((av >= ar))
233+ then au
234+ else ah(au, aq[av])
229235
230- func au (as,at) = if ((at >= ap))
231- then as
236+ func aw (au,av) = if ((av >= ar))
237+ then au
232238 else throw("List size exceeds 10")
233239
234- au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
240+ aw(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
235241 }
236- if ((an == an))
237- then $Tuple2(P(ab), unit)
242+ if ((ap == ap))
243+ then $Tuple2(R(ad), unit)
238244 else throw("Strict value is not equal to itself.")
239245 }
240246 else throw("Strict value is not equal to itself.")
241247 }
242248
243249
244250
245-@Callable(Z)
246-func setMultisig (E) = {
247- let aa = if (R(Z.caller))
248- then q(E, "setMultisig: invalid multisig")
251+@Callable(ab)
252+func setMultisig (G) = {
253+ let ac = if (T(ab.caller))
254+ then s(G, "setMultisig: invalid multisig")
249255 else false
250- if ((aa == aa))
251- then $Tuple2(D(addressFromStringValue(E)), unit)
256+ if ((ac == ac))
257+ then $Tuple2(F(addressFromStringValue(G)), unit)
252258 else throw("Strict value is not equal to itself.")
253259 }
254260
255261
256-@Verifier(av)
257-func aw () = {
258- let t = getString(c)
259- if ($isInstanceOf(t, "String"))
262+@Verifier(ax)
263+func ay () = {
264+ let v = getString(c)
265+ if ($isInstanceOf(v, "String"))
260266 then {
261- let ax = t
262- valueOrElse(getBoolean(addressFromStringValue(ax), makeString([d, toString(this), toBase58String(av.id)], a)), false)
267+ let az = v
268+ valueOrElse(getBoolean(addressFromStringValue(az), makeString([d, toString(this), toBase58String(ax.id)], a)), false)
263269 }
264- else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey)
270+ else sigVerify(ax.bodyBytes, ax.proofs[0], ax.senderPublicKey)
265271 }
266272

github/deemru/w8io/169f3d6 
65.71 ms