tx · J8YiM7uP4QZEBY9BP2Li2YAAHhicj9AHC3nBiJVkHRHu 3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU: -0.01000000 Waves 2024.06.14 18:45 [3150615] smart account 3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU > SELF 0.00000000 Waves
{ "type": 13, "id": "J8YiM7uP4QZEBY9BP2Li2YAAHhicj9AHC3nBiJVkHRHu", "fee": 1000000, "feeAssetId": null, "timestamp": 1718379970416, "version": 2, "chainId": 84, "sender": "3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU", "senderPublicKey": "B1qMTynh8kEm5LTPR5dmuG8ZHgVgLbUc9Qdo2TQa91Fg", "proofs": [ "2AmkWF4KiqbzpWiVfW5tyX3R87Qhy1pyBefEoGux3X4epLCVRntSpr5WJKG2e5hfNkeH6TmhV7YVNhrh6mmJc3n3" ], "script": "base64:BwIVCAISBQoDCAgIEgUKAwgIGBIDCgEIJAAJU0VQQVJBVE9SAgJfXwAPQkFUQ0hfU0VQQVJBVE9SAgI6OgAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAUS0VZX1NFUVVFTkNFUl9DQUxMRVICEFNFUVVFTkNFUl9DQUxMRVIAFEtFWV9HQVRFV0FZX0NPTlRSQUNUAhBHQVRFV0FZX0NPTlRSQUNUABFLRVlfU1BPVF9DT05UUkFDVAINU1BPVF9DT05UUkFDVAATS0VZX0xBU1RfQkFUQ0hfSEFTSAIPTEFTVF9CQVRDSF9IQVNIAA1GVU5DX1dJVEhEUkFXAgh3aXRoZHJhdwAKRlVOQ19UUkFERQIFdHJhZGUAEUZVTkNfQ0xBSU1fUkVXQVJEAgtjbGFpbVJld2FyZAAQR0FURVdBWV9XSVRIRFJBVwIQR0FURVdBWV9XSVRIRFJBVwAKU1BPVF9UUkFERQIKU1BPVF9UUkFERQARU1BPVF9DTEFJTV9SRVdBUkQCEVNQ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kTkCAJFdcPCdJASh28CT8Sq4Xn5c1PEXA7vP Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 7 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "__" | |
5 | + | ||
6 | + | let b = "::" | |
7 | + | ||
8 | + | let c = "MULTISIG" | |
9 | + | ||
10 | + | let d = "STATUS" | |
11 | + | ||
12 | + | let e = "INIT" | |
13 | + | ||
14 | + | let f = "SEQUENCER_CALLER" | |
15 | + | ||
16 | + | let g = "GATEWAY_CONTRACT" | |
17 | + | ||
18 | + | let h = "SPOT_CONTRACT" | |
19 | + | ||
20 | + | let i = "LAST_BATCH_HASH" | |
21 | + | ||
22 | + | let j = "withdraw" | |
23 | + | ||
24 | + | let k = "trade" | |
25 | + | ||
26 | + | let l = "claimReward" | |
27 | + | ||
28 | + | let m = "GATEWAY_WITHDRAW" | |
29 | + | ||
30 | + | let n = "SPOT_TRADE" | |
31 | + | ||
32 | + | let o = "SPOT_CLAIM_REWARD" | |
33 | + | ||
34 | + | let p = 9223372036854775807 | |
35 | + | ||
36 | + | func q (r,s) = { | |
37 | + | let t = addressFromString(r) | |
38 | + | if ($isInstanceOf(t, "Address")) | |
39 | + | then { | |
40 | + | let u = t | |
41 | + | true | |
42 | + | } | |
43 | + | else throw(s) | |
44 | + | } | |
45 | + | ||
46 | + | ||
47 | + | func v (w,x,y,s) = if (if ((x > w)) | |
48 | + | then true | |
49 | + | else (w > y)) | |
50 | + | then throw(s) | |
51 | + | else true | |
52 | + | ||
53 | + | ||
54 | + | func z () = { | |
55 | + | let t = getBoolean(e) | |
56 | + | if ($isInstanceOf(t, "Boolean")) | |
57 | + | then { | |
58 | + | let u = t | |
59 | + | u | |
60 | + | } | |
61 | + | else false | |
62 | + | } | |
63 | + | ||
64 | + | ||
65 | + | func A (B) = [BooleanEntry(e, B)] | |
66 | + | ||
67 | + | ||
68 | + | func C () = { | |
69 | + | let t = getString(c) | |
70 | + | if ($isInstanceOf(t, "String")) | |
71 | + | then { | |
72 | + | let u = t | |
73 | + | addressFromStringValue(u) | |
74 | + | } | |
75 | + | else Address(base58'') | |
76 | + | } | |
77 | + | ||
78 | + | ||
79 | + | func D (E) = [StringEntry(c, toString(E))] | |
80 | + | ||
81 | + | ||
82 | + | func F () = { | |
83 | + | let t = getString(f) | |
84 | + | if ($isInstanceOf(t, "String")) | |
85 | + | then { | |
86 | + | let u = t | |
87 | + | addressFromStringValue(u) | |
88 | + | } | |
89 | + | else Address(base58'') | |
90 | + | } | |
91 | + | ||
92 | + | ||
93 | + | func G (H) = [StringEntry(f, toString(H))] | |
94 | + | ||
95 | + | ||
96 | + | func I () = { | |
97 | + | let t = getString(g) | |
98 | + | if ($isInstanceOf(t, "String")) | |
99 | + | then { | |
100 | + | let u = t | |
101 | + | addressFromStringValue(u) | |
102 | + | } | |
103 | + | else Address(base58'') | |
104 | + | } | |
105 | + | ||
106 | + | ||
107 | + | func J (K) = [StringEntry(g, toString(K))] | |
108 | + | ||
109 | + | ||
110 | + | func L () = { | |
111 | + | let t = getString(h) | |
112 | + | if ($isInstanceOf(t, "String")) | |
113 | + | then { | |
114 | + | let u = t | |
115 | + | addressFromStringValue(u) | |
116 | + | } | |
117 | + | else Address(base58'') | |
118 | + | } | |
119 | + | ||
120 | + | ||
121 | + | func M (N) = [StringEntry(h, toString(N))] | |
122 | + | ||
123 | + | ||
124 | + | func O () = { | |
125 | + | let t = getString(i) | |
126 | + | if ($isInstanceOf(t, "String")) | |
127 | + | then { | |
128 | + | let u = t | |
129 | + | u | |
130 | + | } | |
131 | + | else "GENESIS" | |
132 | + | } | |
133 | + | ||
134 | + | ||
135 | + | func P (Q) = [StringEntry(i, Q)] | |
136 | + | ||
137 | + | ||
138 | + | func R (S) = if ((S != this)) | |
139 | + | then throw("_onlyThisContract: revert") | |
140 | + | else true | |
141 | + | ||
142 | + | ||
143 | + | func T () = if ((C() == Address(base58''))) | |
144 | + | then throw("_whenMultisigSet: revert") | |
145 | + | else true | |
146 | + | ||
147 | + | ||
148 | + | func U () = if (z()) | |
149 | + | then throw("_whenNotInitialized: revert") | |
150 | + | else true | |
151 | + | ||
152 | + | ||
153 | + | func V () = if (!(z())) | |
154 | + | then throw("_whenInitialized: revert") | |
155 | + | else true | |
156 | + | ||
157 | + | ||
158 | + | func W (X,s) = if ((F() != X)) | |
159 | + | then throw(s) | |
160 | + | else true | |
161 | + | ||
162 | + | ||
163 | + | func Y (Q,s) = if ((O() != Q)) | |
164 | + | then throw(s) | |
165 | + | else true | |
166 | + | ||
167 | + | ||
168 | + | @Callable(Z) | |
169 | + | func init (H,K,N) = { | |
170 | + | let aa = if (if (if (if (if (R(Z.caller)) | |
171 | + | then U() | |
172 | + | else false) | |
173 | + | then T() | |
174 | + | else false) | |
175 | + | then q(H, "init: invalid sequencerCaller") | |
176 | + | else false) | |
177 | + | then q(K, "init: invalid gatewayContract") | |
178 | + | else false) | |
179 | + | then q(N, "init: invalid spotContract") | |
180 | + | else false | |
181 | + | if ((aa == aa)) | |
182 | + | then $Tuple2((((A(true) ++ G(addressFromStringValue(H))) ++ J(addressFromStringValue(K))) ++ M(addressFromStringValue(N))), unit) | |
183 | + | else throw("Strict value is not equal to itself.") | |
184 | + | } | |
185 | + | ||
186 | + | ||
187 | + | ||
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 | + | else false) | |
193 | + | then Y(Q, "processBatch: invalid lastBatchHash") | |
194 | + | else false) | |
195 | + | then v(size(ac), 1, 10, "processBatch: invalid batch size") | |
196 | + | else false | |
197 | + | if ((aa == aa)) | |
198 | + | 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)) | |
205 | + | 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 | |
217 | + | else throw("Strict value is not equal to itself.") | |
218 | + | } | |
219 | + | else throw("Strict value is not equal to itself.") | |
220 | + | } | |
221 | + | ||
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]) | |
229 | + | ||
230 | + | func au (as,at) = if ((at >= ap)) | |
231 | + | then as | |
232 | + | else throw("List size exceeds 10") | |
233 | + | ||
234 | + | au(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(aq, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
235 | + | } | |
236 | + | if ((an == an)) | |
237 | + | then $Tuple2(P(ab), unit) | |
238 | + | else throw("Strict value is not equal to itself.") | |
239 | + | } | |
240 | + | else throw("Strict value is not equal to itself.") | |
241 | + | } | |
242 | + | ||
243 | + | ||
244 | + | ||
245 | + | @Callable(Z) | |
246 | + | func setMultisig (E) = { | |
247 | + | let aa = if (R(Z.caller)) | |
248 | + | then q(E, "setMultisig: invalid multisig") | |
249 | + | else false | |
250 | + | if ((aa == aa)) | |
251 | + | then $Tuple2(D(addressFromStringValue(E)), unit) | |
252 | + | else throw("Strict value is not equal to itself.") | |
253 | + | } | |
254 | + | ||
255 | + | ||
256 | + | @Verifier(av) | |
257 | + | func aw () = { | |
258 | + | let t = getString(c) | |
259 | + | if ($isInstanceOf(t, "String")) | |
260 | + | then { | |
261 | + | let ax = t | |
262 | + | valueOrElse(getBoolean(addressFromStringValue(ax), makeString([d, toString(this), toBase58String(av.id)], a)), false) | |
263 | + | } | |
264 | + | else sigVerify(av.bodyBytes, av.proofs[0], av.senderPublicKey) | |
265 | + | } | |
266 | + |
github/deemru/w8io/169f3d6 22.64 ms ◑