@orca-so/whirlpools-automation 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.node.js
CHANGED
|
@@ -1,234 +1,234 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
function
|
|
1
|
+
var Vn = 1,
|
|
2
|
+
Fn = 2,
|
|
3
|
+
zn = 3,
|
|
4
|
+
Hn = 4,
|
|
5
|
+
Wn = 5,
|
|
6
|
+
$n = 6,
|
|
7
|
+
Xn = 7,
|
|
8
|
+
Yn = 8,
|
|
9
|
+
Kn = 9,
|
|
10
|
+
jn = 10,
|
|
11
|
+
Jn = -32700,
|
|
12
|
+
qn = -32603,
|
|
13
|
+
Zn = -32602,
|
|
14
|
+
Qn = -32601,
|
|
15
|
+
er = -32600,
|
|
16
|
+
tr = -32016,
|
|
17
|
+
nr = -32015,
|
|
18
|
+
rr = -32014,
|
|
19
|
+
or = -32013,
|
|
20
|
+
ar = -32012,
|
|
21
|
+
ir = -32011,
|
|
22
|
+
sr = -32010,
|
|
23
|
+
_r = -32009,
|
|
24
|
+
cr = -32008,
|
|
25
|
+
Rr = -32007,
|
|
26
|
+
ur = -32006,
|
|
27
|
+
Ar = -32005,
|
|
28
|
+
dr = -32004,
|
|
29
|
+
Or = -32003,
|
|
30
|
+
lr = -32002,
|
|
31
|
+
Er = -32001,
|
|
32
|
+
Je = 28e5,
|
|
33
|
+
qe = 2800001,
|
|
34
|
+
Nr = 2800002,
|
|
35
|
+
Tr = 2800003,
|
|
36
|
+
Sr = 2800004,
|
|
37
|
+
fr = 2800005,
|
|
38
|
+
Ze = 2800006,
|
|
39
|
+
Qe = 2800007,
|
|
40
|
+
Le = 2800008,
|
|
41
|
+
et = 2800009,
|
|
42
|
+
Ir = 2800010,
|
|
43
|
+
gr = 2800011,
|
|
44
|
+
tt = 323e4,
|
|
45
|
+
nt = 32300001,
|
|
46
|
+
rt = 3230002,
|
|
47
|
+
mr = 3230003,
|
|
48
|
+
Cr = 3230004,
|
|
49
|
+
hr = 361e4,
|
|
50
|
+
ot = 3610001,
|
|
51
|
+
Lr = 3610002,
|
|
52
|
+
vr = 3610003,
|
|
53
|
+
pr = 3610004,
|
|
54
|
+
Dr = 3610005,
|
|
55
|
+
br = 3610006,
|
|
56
|
+
Ur = 3610007,
|
|
57
|
+
Pr = 3611e3,
|
|
58
|
+
wr = 3704e3,
|
|
59
|
+
xr = 3704001,
|
|
60
|
+
Mr = 3704002,
|
|
61
|
+
yr = 3704003,
|
|
62
|
+
kr = 3704004,
|
|
63
|
+
at = 4128e3,
|
|
64
|
+
Br = 4128001,
|
|
65
|
+
Gr = 4128002,
|
|
66
|
+
Vr = 4615e3,
|
|
67
|
+
Fr = 4615001,
|
|
68
|
+
zr = 4615002,
|
|
69
|
+
Hr = 4615003,
|
|
70
|
+
Wr = 4615004,
|
|
71
|
+
$r = 4615005,
|
|
72
|
+
Xr = 4615006,
|
|
73
|
+
Yr = 4615007,
|
|
74
|
+
Kr = 4615008,
|
|
75
|
+
jr = 4615009,
|
|
76
|
+
Jr = 4615010,
|
|
77
|
+
qr = 4615011,
|
|
78
|
+
Zr = 4615012,
|
|
79
|
+
Qr = 4615013,
|
|
80
|
+
eo = 4615014,
|
|
81
|
+
to = 4615015,
|
|
82
|
+
no = 4615016,
|
|
83
|
+
ro = 4615017,
|
|
84
|
+
oo = 4615018,
|
|
85
|
+
ao = 4615019,
|
|
86
|
+
io = 4615020,
|
|
87
|
+
so = 4615021,
|
|
88
|
+
_o = 4615022,
|
|
89
|
+
co = 4615023,
|
|
90
|
+
Ro = 4615024,
|
|
91
|
+
uo = 4615025,
|
|
92
|
+
it = 4615026,
|
|
93
|
+
Ao = 4615027,
|
|
94
|
+
Oo = 4615028,
|
|
95
|
+
lo = 4615029,
|
|
96
|
+
Eo = 4615030,
|
|
97
|
+
No = 4615031,
|
|
98
|
+
To = 4615032,
|
|
99
|
+
So = 4615033,
|
|
100
|
+
fo = 4615034,
|
|
101
|
+
Io = 4615035,
|
|
102
|
+
go = 4615036,
|
|
103
|
+
mo = 4615037,
|
|
104
|
+
Co = 4615038,
|
|
105
|
+
ho = 4615039,
|
|
106
|
+
Lo = 4615040,
|
|
107
|
+
vo = 4615041,
|
|
108
|
+
po = 4615042,
|
|
109
|
+
Do = 4615043,
|
|
110
|
+
bo = 4615044,
|
|
111
|
+
Uo = 4615045,
|
|
112
|
+
Po = 4615046,
|
|
113
|
+
wo = 4615047,
|
|
114
|
+
xo = 4615048,
|
|
115
|
+
Mo = 4615049,
|
|
116
|
+
yo = 4615050,
|
|
117
|
+
ko = 4615051,
|
|
118
|
+
Bo = 4615052,
|
|
119
|
+
Go = 4615053,
|
|
120
|
+
Vo = 4615054,
|
|
121
|
+
Fo = 5508e3,
|
|
122
|
+
zo = 5508001,
|
|
123
|
+
Ho = 5508002,
|
|
124
|
+
Wo = 5508003,
|
|
125
|
+
$o = 5508004,
|
|
126
|
+
Xo = 5508005,
|
|
127
|
+
Yo = 5508006,
|
|
128
|
+
Ko = 5508007,
|
|
129
|
+
jo = 5508008,
|
|
130
|
+
Jo = 5508009,
|
|
131
|
+
qo = 5508010,
|
|
132
|
+
Zo = 5508011,
|
|
133
|
+
Qo = 5663e3,
|
|
134
|
+
ea = 5663001,
|
|
135
|
+
ta = 5663002,
|
|
136
|
+
na = 5663003,
|
|
137
|
+
ra = 5663004,
|
|
138
|
+
oa = 5663005,
|
|
139
|
+
aa = 5663006,
|
|
140
|
+
ia = 5663007,
|
|
141
|
+
sa = 5663008,
|
|
142
|
+
_a = 5663009,
|
|
143
|
+
ca = 5663010,
|
|
144
|
+
Ra = 5663011,
|
|
145
|
+
ua = 5663012,
|
|
146
|
+
Aa = 5663013,
|
|
147
|
+
da = 5663014,
|
|
148
|
+
Oa = 5663015,
|
|
149
|
+
la = 5663016,
|
|
150
|
+
Ea = 5663017,
|
|
151
|
+
Na = 5663018,
|
|
152
|
+
Ta = 5663019,
|
|
153
|
+
Sa = 5663020,
|
|
154
|
+
fa = 705e4,
|
|
155
|
+
Ia = 7050001,
|
|
156
|
+
ga = 7050002,
|
|
157
|
+
ma = 7050003,
|
|
158
|
+
Ca = 7050004,
|
|
159
|
+
ha = 7050005,
|
|
160
|
+
La = 7050006,
|
|
161
|
+
va = 7050007,
|
|
162
|
+
pa = 7050008,
|
|
163
|
+
Da = 7050009,
|
|
164
|
+
ba = 7050010,
|
|
165
|
+
Ua = 7050011,
|
|
166
|
+
Pa = 7050012,
|
|
167
|
+
wa = 7050013,
|
|
168
|
+
xa = 7050014,
|
|
169
|
+
Ma = 7050015,
|
|
170
|
+
ya = 7050016,
|
|
171
|
+
ka = 7050017,
|
|
172
|
+
Ba = 7050018,
|
|
173
|
+
Ga = 7050019,
|
|
174
|
+
Va = 7050020,
|
|
175
|
+
Fa = 7050021,
|
|
176
|
+
za = 7050022,
|
|
177
|
+
Ha = 7050023,
|
|
178
|
+
Wa = 7050024,
|
|
179
|
+
$a = 7050025,
|
|
180
|
+
Xa = 7050026,
|
|
181
|
+
Ya = 7050027,
|
|
182
|
+
Ka = 7050028,
|
|
183
|
+
ja = 7050029,
|
|
184
|
+
Ja = 7050030,
|
|
185
|
+
qa = 7050031,
|
|
186
|
+
Za = 7050032,
|
|
187
|
+
Qa = 7050033,
|
|
188
|
+
ei = 7050034,
|
|
189
|
+
ti = 7050035,
|
|
190
|
+
ni = 7050036,
|
|
191
|
+
st = 8078e3,
|
|
192
|
+
_t = 8078001,
|
|
193
|
+
ct = 8078002,
|
|
194
|
+
ri = 8078003,
|
|
195
|
+
Rt = 8078004,
|
|
196
|
+
ut = 8078005,
|
|
197
|
+
At = 8078006,
|
|
198
|
+
dt = 8078007,
|
|
199
|
+
Ot = 8078008,
|
|
200
|
+
lt = 8078009,
|
|
201
|
+
Et = 8078010,
|
|
202
|
+
Nt = 8078011,
|
|
203
|
+
Re = 8078012,
|
|
204
|
+
oi = 8078013,
|
|
205
|
+
ai = 8078014,
|
|
206
|
+
ii = 8078015,
|
|
207
|
+
si = 8078016,
|
|
208
|
+
Tt = 8078017,
|
|
209
|
+
St = 8078018,
|
|
210
|
+
_i = 8078019,
|
|
211
|
+
ci = 8078020,
|
|
212
|
+
Ri = 8078021,
|
|
213
|
+
ve = 8078022,
|
|
214
|
+
ui = 81e5,
|
|
215
|
+
Ai = 8100001,
|
|
216
|
+
di = 8100002,
|
|
217
|
+
Oi = 8100003,
|
|
218
|
+
li = 819e4,
|
|
219
|
+
Ei = 8190001,
|
|
220
|
+
Ni = 8190002,
|
|
221
|
+
Ti = 8190003,
|
|
222
|
+
Si = 8190004,
|
|
223
|
+
fi = 99e5,
|
|
224
|
+
Ii = 9900001,
|
|
225
|
+
gi = 9900002,
|
|
226
|
+
mi = 9900003,
|
|
227
|
+
Ci = 9900004;
|
|
228
|
+
function ft(e) {
|
|
229
229
|
return Array.isArray(e)
|
|
230
230
|
? '%5B' +
|
|
231
|
-
e.map(
|
|
231
|
+
e.map(ft).join(
|
|
232
232
|
'%2C%20'
|
|
233
233
|
/* ", " */
|
|
234
234
|
) /* "]" */ +
|
|
@@ -245,314 +245,314 @@ function St(e) {
|
|
|
245
245
|
)
|
|
246
246
|
);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
return `${e}=${
|
|
248
|
+
function hi([e, t]) {
|
|
249
|
+
return `${e}=${ft(t)}`;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const t = Object.entries(e).map(
|
|
251
|
+
function Li(e) {
|
|
252
|
+
const t = Object.entries(e).map(hi).join('&');
|
|
253
253
|
return btoa(t);
|
|
254
254
|
}
|
|
255
|
-
var
|
|
256
|
-
[
|
|
257
|
-
[
|
|
258
|
-
[
|
|
259
|
-
[
|
|
260
|
-
[
|
|
261
|
-
[
|
|
262
|
-
[
|
|
263
|
-
[
|
|
264
|
-
[
|
|
265
|
-
[
|
|
266
|
-
[
|
|
267
|
-
[
|
|
268
|
-
[
|
|
269
|
-
[
|
|
270
|
-
[
|
|
271
|
-
[
|
|
272
|
-
[
|
|
273
|
-
[
|
|
274
|
-
[
|
|
275
|
-
[
|
|
276
|
-
[
|
|
277
|
-
[
|
|
278
|
-
[
|
|
279
|
-
[
|
|
280
|
-
[
|
|
281
|
-
[
|
|
282
|
-
[
|
|
283
|
-
[
|
|
284
|
-
[
|
|
285
|
-
[
|
|
286
|
-
[
|
|
287
|
-
[
|
|
288
|
-
[
|
|
289
|
-
[
|
|
290
|
-
[
|
|
291
|
-
[
|
|
292
|
-
[
|
|
293
|
-
[
|
|
294
|
-
[
|
|
295
|
-
[
|
|
296
|
-
[
|
|
297
|
-
[
|
|
298
|
-
[
|
|
299
|
-
[
|
|
300
|
-
[
|
|
301
|
-
[
|
|
302
|
-
[
|
|
303
|
-
[
|
|
304
|
-
[
|
|
305
|
-
[
|
|
306
|
-
[
|
|
307
|
-
[
|
|
308
|
-
[
|
|
309
|
-
[
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
314
|
-
[
|
|
315
|
-
[
|
|
316
|
-
[
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
[
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
323
|
-
[
|
|
324
|
-
[
|
|
325
|
-
[
|
|
326
|
-
[
|
|
327
|
-
[
|
|
328
|
-
[
|
|
329
|
-
[
|
|
330
|
-
[
|
|
331
|
-
[
|
|
332
|
-
[
|
|
333
|
-
[
|
|
334
|
-
[
|
|
335
|
-
[
|
|
336
|
-
[
|
|
337
|
-
[
|
|
338
|
-
[
|
|
339
|
-
[
|
|
340
|
-
[
|
|
341
|
-
[
|
|
342
|
-
[
|
|
343
|
-
[
|
|
344
|
-
[
|
|
345
|
-
[
|
|
346
|
-
[
|
|
347
|
-
[
|
|
348
|
-
[
|
|
349
|
-
[
|
|
350
|
-
[
|
|
351
|
-
[
|
|
352
|
-
[
|
|
353
|
-
[
|
|
354
|
-
[
|
|
355
|
-
[
|
|
356
|
-
[
|
|
357
|
-
[
|
|
358
|
-
[
|
|
359
|
-
[
|
|
360
|
-
[
|
|
361
|
-
[
|
|
362
|
-
[
|
|
363
|
-
[
|
|
364
|
-
[
|
|
365
|
-
[
|
|
366
|
-
[
|
|
367
|
-
[
|
|
368
|
-
[
|
|
369
|
-
[
|
|
370
|
-
[
|
|
371
|
-
[
|
|
372
|
-
[
|
|
373
|
-
[ir]: '$__serverMessage',
|
|
255
|
+
var vi = {
|
|
256
|
+
[tt]: 'Account not found at address: $address',
|
|
257
|
+
[Cr]: 'Not all accounts were decoded. Encoded accounts found at addresses: $addresses.',
|
|
258
|
+
[mr]: 'Expected decoded account at address: $address',
|
|
259
|
+
[rt]: 'Failed to decode account data at address: $address',
|
|
260
|
+
[nt]: 'Accounts not found at addresses: $addresses',
|
|
261
|
+
[et]: 'Unable to find a viable program address bump seed.',
|
|
262
|
+
[Nr]: '$putativeAddress is not a base58-encoded address.',
|
|
263
|
+
[Je]: 'Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.',
|
|
264
|
+
[Tr]: 'The `CryptoKey` must be an `Ed25519` public key.',
|
|
265
|
+
[gr]: '$putativeOffCurveAddress is not a base58-encoded off-curve address.',
|
|
266
|
+
[Le]: 'Invalid seeds; point must fall off the Ed25519 curve.',
|
|
267
|
+
[Sr]: 'Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].',
|
|
268
|
+
[Ze]: 'A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.',
|
|
269
|
+
[Qe]: 'The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.',
|
|
270
|
+
[fr]: 'Expected program derived address bump to be in the range [0, 255], got: $bump.',
|
|
271
|
+
[Ir]: 'Program address cannot end with PDA marker.',
|
|
272
|
+
[qe]: 'Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.',
|
|
273
|
+
[Hn]: 'Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.',
|
|
274
|
+
[Vn]: 'The network has progressed past the last block for which this transaction could have been committed.',
|
|
275
|
+
[st]: 'Codec [$codecDescription] cannot decode empty byte arrays.',
|
|
276
|
+
[ve]: 'Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.',
|
|
277
|
+
[ci]: 'Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].',
|
|
278
|
+
[ut]: 'Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].',
|
|
279
|
+
[At]: 'Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].',
|
|
280
|
+
[Rt]: 'Encoder and decoder must either both be fixed-size or variable-size.',
|
|
281
|
+
[Ot]: 'Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.',
|
|
282
|
+
[ct]: 'Expected a fixed-size codec, got a variable-size one.',
|
|
283
|
+
[oi]: 'Codec [$codecDescription] expected a positive byte length, got $bytesLength.',
|
|
284
|
+
[ri]: 'Expected a variable-size codec, got a fixed-size one.',
|
|
285
|
+
[_i]: 'Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].',
|
|
286
|
+
[_t]: 'Codec [$codecDescription] expected $expected bytes, got $bytesLength.',
|
|
287
|
+
[St]: 'Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].',
|
|
288
|
+
[lt]: 'Invalid discriminated union variant. Expected one of [$variants], got $value.',
|
|
289
|
+
[Et]: 'Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.',
|
|
290
|
+
[ii]: 'Invalid literal union variant. Expected one of [$variants], got $value.',
|
|
291
|
+
[dt]: 'Expected [$codecDescription] to have $expected items, got $actual.',
|
|
292
|
+
[Re]: 'Invalid value $value for base $base with alphabet $alphabet.',
|
|
293
|
+
[si]: 'Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.',
|
|
294
|
+
[Nt]: 'Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.',
|
|
295
|
+
[ai]: 'Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.',
|
|
296
|
+
[Ri]: 'Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].',
|
|
297
|
+
[Tt]: 'Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.',
|
|
298
|
+
[Pr]: 'No random values implementation could be found.',
|
|
299
|
+
[jr]: 'instruction requires an uninitialized account',
|
|
300
|
+
[co]: 'instruction tries to borrow reference for an account which is already borrowed',
|
|
301
|
+
[Ro]: 'instruction left account with an outstanding borrowed reference',
|
|
302
|
+
[so]: "program other than the account's owner changed the size of the account data",
|
|
303
|
+
[$r]: 'account data too small for instruction',
|
|
304
|
+
[_o]: 'instruction expected an executable account',
|
|
305
|
+
[Po]: 'An account does not have enough lamports to be rent-exempt',
|
|
306
|
+
[xo]: 'Program arithmetic overflowed',
|
|
307
|
+
[Uo]: 'Failed to serialize or deserialize account data: $encodedData',
|
|
308
|
+
[Vo]: 'Builtin programs must consume compute units',
|
|
309
|
+
[To]: 'Cross-program invocation call depth too deep',
|
|
310
|
+
[Co]: 'Computational budget exceeded',
|
|
311
|
+
[it]: 'custom program error: #$code',
|
|
312
|
+
[ro]: 'instruction contains duplicate accounts',
|
|
313
|
+
[uo]: 'instruction modifications of multiply-passed account differ',
|
|
314
|
+
[Eo]: 'executable accounts must be rent exempt',
|
|
315
|
+
[Oo]: 'instruction changed executable accounts data',
|
|
316
|
+
[lo]: 'instruction changed the balance of an executable account',
|
|
317
|
+
[oo]: 'instruction changed executable bit of an account',
|
|
318
|
+
[eo]: 'instruction modified data of an account it does not own',
|
|
319
|
+
[Qr]: 'instruction spent from the balance of an account it does not own',
|
|
320
|
+
[Fr]: 'generic instruction error',
|
|
321
|
+
[yo]: 'Provided owner is not allowed',
|
|
322
|
+
[Do]: 'Account is immutable',
|
|
323
|
+
[bo]: 'Incorrect authority provided',
|
|
324
|
+
[Yr]: 'incorrect program id for instruction',
|
|
325
|
+
[Xr]: 'insufficient funds for instruction',
|
|
326
|
+
[Wr]: 'invalid account data for instruction',
|
|
327
|
+
[wo]: 'Invalid account owner',
|
|
328
|
+
[zr]: 'invalid program argument',
|
|
329
|
+
[Ao]: 'program returned invalid error code',
|
|
330
|
+
[Hr]: 'invalid instruction data',
|
|
331
|
+
[mo]: 'Failed to reallocate account data',
|
|
332
|
+
[go]: 'Provided seeds do not result in a valid address',
|
|
333
|
+
[ko]: 'Accounts data allocations exceeded the maximum allowed per transaction',
|
|
334
|
+
[Bo]: 'Max accounts exceeded',
|
|
335
|
+
[Go]: 'Max instruction trace length exceeded',
|
|
336
|
+
[Io]: 'Length of the seed is too long for address generation',
|
|
337
|
+
[So]: 'An account required by the instruction is missing',
|
|
338
|
+
[Kr]: 'missing required signature for instruction',
|
|
339
|
+
[Zr]: 'instruction illegally modified the program id of an account',
|
|
340
|
+
[io]: 'insufficient account keys for instruction',
|
|
341
|
+
[ho]: 'Cross-program invocation with unauthorized signer or writable account',
|
|
342
|
+
[Lo]: 'Failed to create program execution environment',
|
|
343
|
+
[po]: 'Program failed to compile',
|
|
344
|
+
[vo]: 'Program failed to complete',
|
|
345
|
+
[no]: 'instruction modified data of a read-only account',
|
|
346
|
+
[to]: 'instruction changed the balance of a read-only account',
|
|
347
|
+
[fo]: 'Cross-program invocation reentrancy not allowed for this instruction',
|
|
348
|
+
[ao]: 'instruction modified rent epoch of an account',
|
|
349
|
+
[qr]: 'sum of account balances before and after instruction do not match',
|
|
350
|
+
[Jr]: 'instruction requires an initialized account',
|
|
351
|
+
[Vr]: '',
|
|
352
|
+
[No]: 'Unsupported program id',
|
|
353
|
+
[Mo]: 'Unsupported sysvar',
|
|
354
|
+
[at]: 'The instruction does not have any accounts.',
|
|
355
|
+
[Br]: 'The instruction does not have any data.',
|
|
356
|
+
[Gr]: 'Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.',
|
|
357
|
+
[Wn]: 'Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.',
|
|
358
|
+
[Fn]: 'The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`',
|
|
359
|
+
[gi]: 'Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant',
|
|
360
|
+
[Ci]: 'Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.',
|
|
361
|
+
[Ii]: 'Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant',
|
|
362
|
+
[fi]: 'Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant',
|
|
363
|
+
[mi]: 'Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant',
|
|
364
|
+
[qn]: 'JSON-RPC error: Internal JSON-RPC error ($__serverMessage)',
|
|
365
|
+
[Zn]: 'JSON-RPC error: Invalid method parameter(s) ($__serverMessage)',
|
|
366
|
+
[er]: 'JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)',
|
|
367
|
+
[Qn]: 'JSON-RPC error: The method does not exist / is not available ($__serverMessage)',
|
|
368
|
+
[Jn]: 'JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)',
|
|
369
|
+
[ar]: '$__serverMessage',
|
|
370
|
+
[Er]: '$__serverMessage',
|
|
371
|
+
[dr]: '$__serverMessage',
|
|
372
|
+
[rr]: '$__serverMessage',
|
|
374
373
|
[sr]: '$__serverMessage',
|
|
375
|
-
[
|
|
376
|
-
[
|
|
377
|
-
[
|
|
378
|
-
[
|
|
379
|
-
[
|
|
380
|
-
[ar]: 'Transaction history is not available from this node',
|
|
374
|
+
[_r]: '$__serverMessage',
|
|
375
|
+
[tr]: 'Minimum context slot has not been reached',
|
|
376
|
+
[Ar]: 'Node is unhealthy; behind by $numSlotsBehind slots',
|
|
377
|
+
[cr]: 'No snapshot',
|
|
378
|
+
[lr]: 'Transaction simulation failed',
|
|
381
379
|
[Rr]: '$__serverMessage',
|
|
382
|
-
[
|
|
383
|
-
[
|
|
384
|
-
[
|
|
385
|
-
[
|
|
386
|
-
[
|
|
387
|
-
[
|
|
388
|
-
[
|
|
389
|
-
[Mr]: 'Expected base58-encoded signature
|
|
390
|
-
[
|
|
391
|
-
[
|
|
392
|
-
[
|
|
393
|
-
[Xn]: '`$value` cannot be parsed as a `
|
|
394
|
-
[
|
|
395
|
-
[
|
|
396
|
-
[
|
|
397
|
-
[
|
|
398
|
-
[
|
|
399
|
-
[
|
|
400
|
-
[
|
|
401
|
-
[
|
|
402
|
-
[
|
|
403
|
-
[ui]: '
|
|
404
|
-
[
|
|
405
|
-
[
|
|
406
|
-
[
|
|
407
|
-
[
|
|
408
|
-
[
|
|
409
|
-
[
|
|
410
|
-
[
|
|
411
|
-
[
|
|
412
|
-
[
|
|
413
|
-
[jo]: '
|
|
414
|
-
[
|
|
415
|
-
[
|
|
416
|
-
[
|
|
417
|
-
[
|
|
418
|
-
[
|
|
419
|
-
[
|
|
380
|
+
[ir]: 'Transaction history is not available from this node',
|
|
381
|
+
[ur]: '$__serverMessage',
|
|
382
|
+
[or]: 'Transaction signature length mismatch',
|
|
383
|
+
[Or]: 'Transaction signature verification failure',
|
|
384
|
+
[nr]: '$__serverMessage',
|
|
385
|
+
[wr]: 'Key pair bytes must be of length 64, got $byteLength.',
|
|
386
|
+
[xr]: 'Expected private key bytes with length 32. Actual length: $actualLength.',
|
|
387
|
+
[Mr]: 'Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.',
|
|
388
|
+
[kr]: 'The provided private key does not match the provided public key.',
|
|
389
|
+
[yr]: 'Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.',
|
|
390
|
+
[$n]: 'Lamports value must be in the range [0, 2e64-1]',
|
|
391
|
+
[Xn]: '`$value` cannot be parsed as a `BigInt`',
|
|
392
|
+
[jn]: '$message',
|
|
393
|
+
[Yn]: '`$value` cannot be parsed as a `Number`',
|
|
394
|
+
[zn]: 'No nonce account could be found at address `$nonceAccountAddress`',
|
|
395
|
+
[li]: "The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",
|
|
396
|
+
[Ni]: 'WebSocket was closed before payload could be added to the send buffer',
|
|
397
|
+
[Ti]: 'WebSocket connection closed',
|
|
398
|
+
[Si]: 'WebSocket failed to connect',
|
|
399
|
+
[Ei]: 'Failed to obtain a subscription id from the server',
|
|
400
|
+
[Oi]: 'Could not find an API plan for RPC method: `$method`',
|
|
401
|
+
[ui]: 'The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.',
|
|
402
|
+
[di]: 'HTTP error ($statusCode): $message',
|
|
403
|
+
[Ai]: 'HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.',
|
|
404
|
+
[Fo]: 'Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.',
|
|
405
|
+
[zo]: 'The provided value does not implement the `KeyPairSigner` interface',
|
|
406
|
+
[Wo]: 'The provided value does not implement the `MessageModifyingSigner` interface',
|
|
407
|
+
[$o]: 'The provided value does not implement the `MessagePartialSigner` interface',
|
|
408
|
+
[Ho]: 'The provided value does not implement any of the `MessageSigner` interfaces',
|
|
409
|
+
[Yo]: 'The provided value does not implement the `TransactionModifyingSigner` interface',
|
|
410
|
+
[Ko]: 'The provided value does not implement the `TransactionPartialSigner` interface',
|
|
411
|
+
[jo]: 'The provided value does not implement the `TransactionSendingSigner` interface',
|
|
412
|
+
[Xo]: 'The provided value does not implement any of the `TransactionSigner` interfaces',
|
|
413
|
+
[Jo]: 'More than one `TransactionSendingSigner` was identified.',
|
|
414
|
+
[qo]: 'No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.',
|
|
415
|
+
[Zo]: 'Wallet account signers do not support signing multiple messages/transactions in a single operation',
|
|
416
|
+
[Ur]: 'Cannot export a non-extractable key.',
|
|
417
|
+
[ot]: 'No digest implementation could be found.',
|
|
418
|
+
[hr]: 'Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.',
|
|
419
|
+
[Lr]: `This runtime does not support the generation of Ed25519 key pairs.
|
|
420
420
|
|
|
421
421
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
422
422
|
|
|
423
423
|
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,
|
|
424
|
-
[
|
|
425
|
-
[
|
|
426
|
-
[
|
|
427
|
-
[
|
|
428
|
-
[
|
|
429
|
-
[
|
|
430
|
-
[
|
|
431
|
-
[
|
|
432
|
-
[
|
|
433
|
-
[
|
|
434
|
-
[
|
|
435
|
-
[
|
|
436
|
-
[
|
|
437
|
-
[
|
|
438
|
-
[
|
|
439
|
-
[
|
|
440
|
-
[
|
|
441
|
-
[
|
|
442
|
-
[
|
|
443
|
-
[
|
|
444
|
-
[
|
|
445
|
-
[
|
|
446
|
-
[
|
|
447
|
-
[
|
|
448
|
-
[
|
|
449
|
-
[
|
|
450
|
-
[
|
|
451
|
-
[
|
|
452
|
-
[
|
|
453
|
-
[
|
|
454
|
-
[
|
|
455
|
-
[
|
|
456
|
-
[
|
|
457
|
-
[
|
|
458
|
-
[
|
|
459
|
-
[
|
|
460
|
-
[
|
|
461
|
-
[
|
|
462
|
-
[
|
|
463
|
-
[
|
|
464
|
-
[
|
|
465
|
-
[
|
|
466
|
-
[
|
|
467
|
-
[
|
|
468
|
-
[
|
|
469
|
-
[
|
|
470
|
-
[
|
|
471
|
-
[
|
|
472
|
-
[
|
|
473
|
-
[
|
|
474
|
-
[
|
|
475
|
-
[
|
|
476
|
-
[
|
|
477
|
-
[
|
|
478
|
-
[
|
|
479
|
-
[
|
|
480
|
-
[
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
[
|
|
484
|
-
[
|
|
485
|
-
[
|
|
486
|
-
[
|
|
424
|
+
[vr]: 'No signature verification implementation could be found.',
|
|
425
|
+
[pr]: 'No key generation implementation could be found.',
|
|
426
|
+
[Dr]: 'No signing implementation could be found.',
|
|
427
|
+
[br]: 'No key export implementation could be found.',
|
|
428
|
+
[Kn]: 'Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given',
|
|
429
|
+
[ya]: 'Transaction processing left an account with an outstanding borrowed reference',
|
|
430
|
+
[Ia]: 'Account in use',
|
|
431
|
+
[ga]: 'Account loaded twice',
|
|
432
|
+
[ma]: 'Attempt to debit an account but found no record of a prior credit.',
|
|
433
|
+
[Ha]: "Transaction loads an address table account that doesn't exist",
|
|
434
|
+
[va]: 'This transaction has already been processed',
|
|
435
|
+
[pa]: 'Blockhash not found',
|
|
436
|
+
[Da]: 'Loader call chain is too deep',
|
|
437
|
+
[Ma]: 'Transactions are currently disabled due to cluster maintenance',
|
|
438
|
+
[Ja]: 'Transaction contains a duplicate instruction ($index) that is not allowed',
|
|
439
|
+
[ha]: 'Insufficient funds for fee',
|
|
440
|
+
[qa]: 'Transaction results in an account ($accountIndex) with insufficient funds for rent',
|
|
441
|
+
[La]: 'This account may not be used to pay transaction fees',
|
|
442
|
+
[Ua]: 'Transaction contains an invalid account reference',
|
|
443
|
+
[$a]: 'Transaction loads an address table account with invalid data',
|
|
444
|
+
[Xa]: 'Transaction address table lookup uses an invalid index',
|
|
445
|
+
[Wa]: 'Transaction loads an address table account with an invalid owner',
|
|
446
|
+
[Qa]: 'LoadedAccountsDataSizeLimit set for transaction must be greater than 0.',
|
|
447
|
+
[wa]: 'This program may not be used for executing instructions',
|
|
448
|
+
[Ya]: 'Transaction leaves an account with a lower balance than rent-exempt minimum',
|
|
449
|
+
[Ga]: 'Transaction loads a writable account that cannot be written',
|
|
450
|
+
[Za]: 'Transaction exceeded max loaded accounts data size cap',
|
|
451
|
+
[ba]: 'Transaction requires a fee but has no signature present',
|
|
452
|
+
[Ca]: 'Attempt to load a program that does not exist',
|
|
453
|
+
[ti]: 'Execution of the program referenced by account at index $accountIndex is temporarily restricted.',
|
|
454
|
+
[ei]: 'ResanitizationNeeded',
|
|
455
|
+
[xa]: 'Transaction failed to sanitize accounts offsets correctly',
|
|
456
|
+
[Pa]: 'Transaction did not pass signature verification',
|
|
457
|
+
[za]: 'Transaction locked too many accounts',
|
|
458
|
+
[ni]: 'Sum of account balances before and after transaction do not match',
|
|
459
|
+
[fa]: 'The transaction failed with the error `$errorName`',
|
|
460
|
+
[Ba]: 'Transaction version is unsupported',
|
|
461
|
+
[Fa]: 'Transaction would exceed account data limit within the block',
|
|
462
|
+
[ja]: 'Transaction would exceed total account data limit',
|
|
463
|
+
[Va]: 'Transaction would exceed max account limit within the block',
|
|
464
|
+
[ka]: 'Transaction would exceed max Block Cost Limit',
|
|
465
|
+
[Ka]: 'Transaction would exceed max Vote Cost Limit',
|
|
466
|
+
[Oa]: 'Attempted to sign a transaction with an address that is not a signer for it',
|
|
467
|
+
[ca]: 'Transaction is missing an address at index: $index.',
|
|
468
|
+
[la]: 'Transaction has no expected signers therefore it cannot be encoded',
|
|
469
|
+
[Sa]: 'Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes',
|
|
470
|
+
[ta]: 'Transaction does not have a blockhash lifetime',
|
|
471
|
+
[na]: 'Transaction is not a durable nonce transaction',
|
|
472
|
+
[oa]: 'Contents of these address lookup tables unknown: $lookupTableAddresses',
|
|
473
|
+
[aa]: 'Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved',
|
|
474
|
+
[sa]: 'No fee payer set in CompiledTransaction',
|
|
475
|
+
[ia]: 'Could not find program address at index $index',
|
|
476
|
+
[Na]: 'Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more',
|
|
477
|
+
[Ta]: 'Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more',
|
|
478
|
+
[Ra]: 'Transaction is missing a fee payer.',
|
|
479
|
+
[ua]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",
|
|
480
|
+
[da]: 'Transaction first instruction is not advance nonce account instruction.',
|
|
481
|
+
[Aa]: 'Transaction with no instructions cannot be durable nonce transaction.',
|
|
482
|
+
[Qo]: 'This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees',
|
|
483
|
+
[ea]: 'This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable',
|
|
484
|
+
[Ea]: 'The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.',
|
|
485
|
+
[_a]: 'Transaction is missing signatures for addresses: $addresses.',
|
|
486
|
+
[ra]: 'Transaction version must be in the range [0, 127]. `$actualVersion` given',
|
|
487
487
|
},
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
function
|
|
491
|
-
const n =
|
|
488
|
+
V = 'i',
|
|
489
|
+
M = 't';
|
|
490
|
+
function pi(e, t = {}) {
|
|
491
|
+
const n = vi[e];
|
|
492
492
|
if (n.length === 0) return '';
|
|
493
493
|
let o;
|
|
494
494
|
function r(i) {
|
|
495
|
-
if (o[
|
|
496
|
-
const s = n.slice(o[
|
|
495
|
+
if (o[M] === 2) {
|
|
496
|
+
const s = n.slice(o[V] + 1, i);
|
|
497
497
|
a.push(
|
|
498
498
|
s in t
|
|
499
499
|
? // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
500
500
|
`${t[s]}`
|
|
501
501
|
: `$${s}`
|
|
502
502
|
);
|
|
503
|
-
} else o[
|
|
503
|
+
} else o[M] === 1 && a.push(n.slice(o[V], i));
|
|
504
504
|
}
|
|
505
505
|
const a = [];
|
|
506
506
|
return (
|
|
507
507
|
n.split('').forEach((i, s) => {
|
|
508
508
|
if (s === 0) {
|
|
509
509
|
o = {
|
|
510
|
-
[
|
|
511
|
-
[
|
|
510
|
+
[V]: 0,
|
|
511
|
+
[M]: n[0] === '\\' ? 0 : n[0] === '$' ? 2 : 1,
|
|
512
512
|
/* Text */
|
|
513
513
|
};
|
|
514
514
|
return;
|
|
515
515
|
}
|
|
516
516
|
let _;
|
|
517
|
-
switch (o[
|
|
517
|
+
switch (o[M]) {
|
|
518
518
|
case 0:
|
|
519
519
|
_ = {
|
|
520
|
-
[
|
|
521
|
-
[
|
|
520
|
+
[V]: s,
|
|
521
|
+
[M]: 1,
|
|
522
522
|
/* Text */
|
|
523
523
|
};
|
|
524
524
|
break;
|
|
525
525
|
case 1:
|
|
526
526
|
i === '\\'
|
|
527
527
|
? (_ = {
|
|
528
|
-
[
|
|
529
|
-
[
|
|
528
|
+
[V]: s,
|
|
529
|
+
[M]: 0,
|
|
530
530
|
/* EscapeSequence */
|
|
531
531
|
})
|
|
532
532
|
: i === '$' &&
|
|
533
533
|
(_ = {
|
|
534
|
-
[
|
|
535
|
-
[
|
|
534
|
+
[V]: s,
|
|
535
|
+
[M]: 2,
|
|
536
536
|
/* Variable */
|
|
537
537
|
});
|
|
538
538
|
break;
|
|
539
539
|
case 2:
|
|
540
540
|
i === '\\'
|
|
541
541
|
? (_ = {
|
|
542
|
-
[
|
|
543
|
-
[
|
|
542
|
+
[V]: s,
|
|
543
|
+
[M]: 0,
|
|
544
544
|
/* EscapeSequence */
|
|
545
545
|
})
|
|
546
546
|
: i === '$'
|
|
547
547
|
? (_ = {
|
|
548
|
-
[
|
|
549
|
-
[
|
|
548
|
+
[V]: s,
|
|
549
|
+
[M]: 2,
|
|
550
550
|
/* Variable */
|
|
551
551
|
})
|
|
552
552
|
: i.match(/\w/) ||
|
|
553
553
|
(_ = {
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[V]: s,
|
|
555
|
+
[M]: 1,
|
|
556
556
|
/* Text */
|
|
557
557
|
});
|
|
558
558
|
break;
|
|
@@ -563,14 +563,14 @@ function vi(e, t = {}) {
|
|
|
563
563
|
a.join('')
|
|
564
564
|
);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
if (process.env.NODE_ENV !== 'production') return
|
|
566
|
+
function Di(e, t = {}) {
|
|
567
|
+
if (process.env.NODE_ENV !== 'production') return pi(e, t);
|
|
568
568
|
{
|
|
569
569
|
let n = `Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;
|
|
570
|
-
return (Object.keys(t).length && (n += ` '${
|
|
570
|
+
return (Object.keys(t).length && (n += ` '${Li(t)}'`), `${n}\``);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function It(e, t) {
|
|
574
574
|
return e instanceof Error && e.name === 'SolanaError'
|
|
575
575
|
? t !== void 0
|
|
576
576
|
? e.context.__code === t
|
|
@@ -595,7 +595,7 @@ var T = class extends Error {
|
|
|
595
595
|
const { cause: a, ...i } = t;
|
|
596
596
|
(a && (o = { cause: a }), Object.keys(i).length > 0 && (n = i));
|
|
597
597
|
}
|
|
598
|
-
const r =
|
|
598
|
+
const r = Di(e, n);
|
|
599
599
|
(super(r, o),
|
|
600
600
|
(this.context = {
|
|
601
601
|
__code: e,
|
|
@@ -604,20 +604,20 @@ var T = class extends Error {
|
|
|
604
604
|
(this.name = 'SolanaError'));
|
|
605
605
|
}
|
|
606
606
|
},
|
|
607
|
-
|
|
607
|
+
bi = (e, t) => {
|
|
608
608
|
if (e.length >= t) return e;
|
|
609
609
|
const n = new Uint8Array(t).fill(0);
|
|
610
610
|
return (n.set(e), n);
|
|
611
611
|
},
|
|
612
|
-
|
|
613
|
-
function
|
|
612
|
+
Ui = (e, t) => bi(e.length <= t ? e : e.slice(0, t), t);
|
|
613
|
+
function F(e, t, n) {
|
|
614
614
|
const o = n === 0 && e.length === t.length ? e : e.slice(n, n + t.length);
|
|
615
615
|
return o.length !== t.length ? !1 : t.every((r, a) => r === o[a]);
|
|
616
616
|
}
|
|
617
617
|
function Q(e, t) {
|
|
618
618
|
return 'fixedSize' in t ? t.fixedSize : t.getSizeFromValue(e);
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function U(e) {
|
|
621
621
|
return Object.freeze({
|
|
622
622
|
...e,
|
|
623
623
|
encode: (t) => {
|
|
@@ -626,30 +626,30 @@ function P(e) {
|
|
|
626
626
|
},
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function P(e) {
|
|
630
630
|
return Object.freeze({
|
|
631
631
|
...e,
|
|
632
632
|
decode: (t, n = 0) => e.read(t, n)[0],
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function b(e) {
|
|
636
636
|
return 'fixedSize' in e && typeof e.fixedSize == 'number';
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
if (!
|
|
638
|
+
function gt(e) {
|
|
639
|
+
if (!b(e)) throw new T(ct);
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return !
|
|
641
|
+
function Pi(e) {
|
|
642
|
+
return !b(e);
|
|
643
643
|
}
|
|
644
644
|
function S(e, t) {
|
|
645
|
-
if (
|
|
646
|
-
if (
|
|
647
|
-
throw new T(
|
|
645
|
+
if (b(e) !== b(t)) throw new T(Rt);
|
|
646
|
+
if (b(e) && b(t) && e.fixedSize !== t.fixedSize)
|
|
647
|
+
throw new T(ut, {
|
|
648
648
|
decoderFixedSize: t.fixedSize,
|
|
649
649
|
encoderFixedSize: e.fixedSize,
|
|
650
650
|
});
|
|
651
|
-
if (!
|
|
652
|
-
throw new T(
|
|
651
|
+
if (!b(e) && !b(t) && e.maxSize !== t.maxSize)
|
|
652
|
+
throw new T(At, {
|
|
653
653
|
decoderMaxSize: t.maxSize,
|
|
654
654
|
encoderMaxSize: e.maxSize,
|
|
655
655
|
});
|
|
@@ -662,23 +662,23 @@ function S(e, t) {
|
|
|
662
662
|
write: e.write,
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function wi(e, t, n = 0) {
|
|
666
666
|
if (t.length - n <= 0)
|
|
667
|
-
throw new T(
|
|
667
|
+
throw new T(st, {
|
|
668
668
|
codecDescription: e,
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function mt(e, t, n, o = 0) {
|
|
672
672
|
const r = n.length - o;
|
|
673
673
|
if (r < t)
|
|
674
|
-
throw new T(
|
|
674
|
+
throw new T(_t, {
|
|
675
675
|
bytesLength: r,
|
|
676
676
|
codecDescription: e,
|
|
677
677
|
expected: t,
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
function g(e, t) {
|
|
681
|
-
return
|
|
681
|
+
return U({
|
|
682
682
|
fixedSize: t,
|
|
683
683
|
write: (n, o, r) => {
|
|
684
684
|
const a = e.encode(n),
|
|
@@ -688,25 +688,25 @@ function g(e, t) {
|
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
690
|
function m(e, t) {
|
|
691
|
-
return
|
|
691
|
+
return P({
|
|
692
692
|
fixedSize: t,
|
|
693
693
|
read: (n, o) => {
|
|
694
|
-
(
|
|
694
|
+
(mt('fixCodecSize', t, n, o),
|
|
695
695
|
(o > 0 || n.length > t) && (n = n.slice(o, o + t)),
|
|
696
|
-
|
|
696
|
+
b(e) && (n = Ui(n, e.fixedSize)));
|
|
697
697
|
const [r] = e.read(n, 0);
|
|
698
698
|
return [r, o + t];
|
|
699
699
|
},
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
702
|
function D(e, t) {
|
|
703
|
-
return
|
|
704
|
-
...(
|
|
703
|
+
return U({
|
|
704
|
+
...(Pi(e) ? { ...e, getSizeFromValue: (n) => e.getSizeFromValue(t(n)) } : e),
|
|
705
705
|
write: (n, o, r) => e.write(t(n), o, r),
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
function Z(e, t) {
|
|
709
|
-
return
|
|
709
|
+
return P({
|
|
710
710
|
...e,
|
|
711
711
|
read: (n, o) => {
|
|
712
712
|
const [r, a] = e.read(n, o);
|
|
@@ -714,35 +714,35 @@ function Z(e, t) {
|
|
|
714
714
|
},
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function xi(e, t, n = t) {
|
|
718
718
|
if (!t.match(new RegExp(`^[${e}]*$`)))
|
|
719
|
-
throw new T(
|
|
719
|
+
throw new T(Re, {
|
|
720
720
|
alphabet: e,
|
|
721
721
|
base: e.length,
|
|
722
722
|
value: n,
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
var
|
|
726
|
-
|
|
725
|
+
var Mi = (e) =>
|
|
726
|
+
U({
|
|
727
727
|
getSizeFromValue: (t) => {
|
|
728
|
-
const [n, o] =
|
|
728
|
+
const [n, o] = Ge(t, e[0]);
|
|
729
729
|
if (!o) return t.length;
|
|
730
|
-
const r =
|
|
730
|
+
const r = Ve(o, e);
|
|
731
731
|
return n.length + Math.ceil(r.toString(16).length / 2);
|
|
732
732
|
},
|
|
733
733
|
write(t, n, o) {
|
|
734
|
-
if ((
|
|
735
|
-
const [r, a] =
|
|
734
|
+
if ((xi(e, t), t === '')) return o;
|
|
735
|
+
const [r, a] = Ge(t, e[0]);
|
|
736
736
|
if (!a) return (n.set(new Uint8Array(r.length).fill(0), o), o + r.length);
|
|
737
|
-
let i =
|
|
737
|
+
let i = Ve(a, e);
|
|
738
738
|
const s = [];
|
|
739
739
|
for (; i > 0n; ) (s.unshift(Number(i % 256n)), (i /= 256n));
|
|
740
740
|
const _ = [...Array(r.length).fill(0), ...s];
|
|
741
741
|
return (n.set(_, o), o + _.length);
|
|
742
742
|
},
|
|
743
743
|
}),
|
|
744
|
-
|
|
745
|
-
|
|
744
|
+
yi = (e) =>
|
|
745
|
+
P({
|
|
746
746
|
read(t, n) {
|
|
747
747
|
const o = n === 0 ? t : t.slice(n);
|
|
748
748
|
if (o.length === 0) return ['', 0];
|
|
@@ -751,38 +751,38 @@ var xi = (e) =>
|
|
|
751
751
|
const a = e[0].repeat(r);
|
|
752
752
|
if (r === o.length) return [a, t.length];
|
|
753
753
|
const i = o.slice(r).reduce((_, N) => _ * 256n + BigInt(N), 0n),
|
|
754
|
-
s =
|
|
754
|
+
s = ki(i, e);
|
|
755
755
|
return [a + s, t.length];
|
|
756
756
|
},
|
|
757
757
|
});
|
|
758
|
-
function
|
|
758
|
+
function Ge(e, t) {
|
|
759
759
|
const [n, o] = e.split(new RegExp(`((?!${t}).*)`));
|
|
760
760
|
return [n, o];
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Ve(e, t) {
|
|
763
763
|
const n = BigInt(t.length);
|
|
764
764
|
let o = 0n;
|
|
765
765
|
for (const r of e) ((o *= n), (o += BigInt(t.indexOf(r))));
|
|
766
766
|
return o;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function ki(e, t) {
|
|
769
769
|
const n = BigInt(t.length),
|
|
770
770
|
o = [];
|
|
771
771
|
for (; e > 0n; ) (o.unshift(t[Number(e % n)]), (e /= n));
|
|
772
772
|
return o.join('');
|
|
773
773
|
}
|
|
774
|
-
var
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
774
|
+
var Ct = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',
|
|
775
|
+
Bi = () => Mi(Ct),
|
|
776
|
+
Gi = () => yi(Ct),
|
|
777
|
+
Fe = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
778
|
+
Vi = () =>
|
|
779
|
+
U({
|
|
780
780
|
getSizeFromValue: (e) => {
|
|
781
781
|
try {
|
|
782
782
|
return atob(e).length;
|
|
783
783
|
} catch {
|
|
784
|
-
throw new T(
|
|
785
|
-
alphabet:
|
|
784
|
+
throw new T(Re, {
|
|
785
|
+
alphabet: Fe,
|
|
786
786
|
base: 64,
|
|
787
787
|
value: e,
|
|
788
788
|
});
|
|
@@ -795,29 +795,29 @@ var mt = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz',
|
|
|
795
795
|
.map((r) => r.charCodeAt(0));
|
|
796
796
|
return (t.set(o, n), o.length + n);
|
|
797
797
|
} catch {
|
|
798
|
-
throw new T(
|
|
799
|
-
alphabet:
|
|
798
|
+
throw new T(Re, {
|
|
799
|
+
alphabet: Fe,
|
|
800
800
|
base: 64,
|
|
801
801
|
value: e,
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
804
|
},
|
|
805
805
|
});
|
|
806
|
-
function
|
|
806
|
+
function ht(e, t) {
|
|
807
807
|
try {
|
|
808
808
|
return 'exists' in e && !e.exists ? e : Object.freeze({ ...e, data: t.decode(e.data) });
|
|
809
809
|
} catch {
|
|
810
|
-
throw new T(
|
|
810
|
+
throw new T(rt, {
|
|
811
811
|
address: e.address,
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function Lt(e, t) {
|
|
816
816
|
if (!t) return Object.freeze({ address: e, exists: !1 });
|
|
817
|
-
const n =
|
|
818
|
-
return Object.freeze({ ...
|
|
817
|
+
const n = Vi().encode(t.data[0]);
|
|
818
|
+
return Object.freeze({ ...Fi(t), address: e, data: n, exists: !0 });
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Fi(e) {
|
|
821
821
|
return Object.freeze({
|
|
822
822
|
executable: e.executable,
|
|
823
823
|
lamports: e.lamports,
|
|
@@ -825,220 +825,220 @@ function Vi(e) {
|
|
|
825
825
|
space: e.space,
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
|
-
async function
|
|
828
|
+
async function vt(e, t, n = {}) {
|
|
829
829
|
const { abortSignal: o, ...r } = n,
|
|
830
830
|
a = await e.getAccountInfo(t, { ...r, encoding: 'base64' }).send({ abortSignal: o });
|
|
831
|
-
return
|
|
831
|
+
return Lt(t, a.value);
|
|
832
832
|
}
|
|
833
|
-
async function
|
|
833
|
+
async function pt(e, t, n = {}) {
|
|
834
834
|
const { abortSignal: o, ...r } = n;
|
|
835
835
|
return (
|
|
836
836
|
await e.getMultipleAccounts(t, { ...r, encoding: 'base64' }).send({ abortSignal: o })
|
|
837
|
-
).value.map((i, s) =>
|
|
838
|
-
}
|
|
839
|
-
function pt(e) {
|
|
840
|
-
if (!e.exists) throw new T(et, { address: e.address });
|
|
837
|
+
).value.map((i, s) => Lt(t[s], i));
|
|
841
838
|
}
|
|
842
839
|
function Dt(e) {
|
|
840
|
+
if (!e.exists) throw new T(tt, { address: e.address });
|
|
841
|
+
}
|
|
842
|
+
function bt(e) {
|
|
843
843
|
const t = e.filter((n) => !n.exists);
|
|
844
844
|
if (t.length > 0) {
|
|
845
845
|
const n = t.map((o) => o.address);
|
|
846
|
-
throw new T(
|
|
846
|
+
throw new T(nt, { addresses: n });
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function zi() {
|
|
850
850
|
if (typeof globalThis.crypto > 'u' || typeof globalThis.crypto.subtle?.digest != 'function')
|
|
851
|
-
throw new T(
|
|
852
|
-
}
|
|
853
|
-
var Oe, le;
|
|
854
|
-
function bt() {
|
|
855
|
-
return (Oe || (Oe = ki()), Oe);
|
|
851
|
+
throw new T(ot);
|
|
856
852
|
}
|
|
857
|
-
|
|
853
|
+
var le, Ee;
|
|
854
|
+
function Ut() {
|
|
858
855
|
return (le || (le = Bi()), le);
|
|
859
856
|
}
|
|
860
|
-
function Hi(
|
|
857
|
+
function Hi() {
|
|
858
|
+
return (Ee || (Ee = Gi()), Ee);
|
|
859
|
+
}
|
|
860
|
+
function Wi(e) {
|
|
861
861
|
if (
|
|
862
862
|
// Lowest address (32 bytes of zeroes)
|
|
863
863
|
e.length < 32 || // Highest address (32 bytes of 255)
|
|
864
864
|
e.length > 44
|
|
865
865
|
)
|
|
866
|
-
throw new T(
|
|
866
|
+
throw new T(qe, {
|
|
867
867
|
actualLength: e.length,
|
|
868
868
|
});
|
|
869
|
-
const o =
|
|
869
|
+
const o = Ut().encode(e).byteLength;
|
|
870
870
|
if (o !== 32)
|
|
871
|
-
throw new T(
|
|
871
|
+
throw new T(Je, {
|
|
872
872
|
actualLength: o,
|
|
873
873
|
});
|
|
874
874
|
}
|
|
875
|
-
function
|
|
876
|
-
return (
|
|
875
|
+
function $i(e) {
|
|
876
|
+
return (Wi(e), e);
|
|
877
877
|
}
|
|
878
878
|
function c() {
|
|
879
|
-
return D(g(
|
|
879
|
+
return D(g(Ut(), 32), (e) => $i(e));
|
|
880
880
|
}
|
|
881
881
|
function R() {
|
|
882
|
-
return m(
|
|
882
|
+
return m(Hi(), 32);
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function pe() {
|
|
885
885
|
return S(c(), R());
|
|
886
886
|
}
|
|
887
|
-
var
|
|
887
|
+
var Xi = 37095705934669439343138083508754565189542113879843219016388785533085940283555n,
|
|
888
888
|
L = 57896044618658097711785492504343953926634992332820282019728792003956564819949n,
|
|
889
|
-
|
|
890
|
-
function
|
|
889
|
+
ze = 19681161376707505956807079304988542015446066515923890162744021073123829784752n;
|
|
890
|
+
function w(e) {
|
|
891
891
|
const t = e % L;
|
|
892
892
|
return t >= 0n ? t : L + t;
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function y(e, t) {
|
|
895
895
|
let n = e;
|
|
896
896
|
for (; t-- > 0n; ) ((n *= n), (n %= L));
|
|
897
897
|
return n;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Yi(e) {
|
|
900
900
|
const n = (((e * e) % L) * e) % L,
|
|
901
|
-
o = (
|
|
902
|
-
r = (
|
|
903
|
-
a = (
|
|
904
|
-
i = (
|
|
905
|
-
s = (
|
|
906
|
-
_ = (
|
|
907
|
-
N = (
|
|
908
|
-
f = (
|
|
909
|
-
d = (
|
|
910
|
-
return (
|
|
911
|
-
}
|
|
912
|
-
function
|
|
913
|
-
const n =
|
|
914
|
-
o =
|
|
915
|
-
r =
|
|
916
|
-
let a =
|
|
917
|
-
const i =
|
|
901
|
+
o = (y(n, 2n) * n) % L,
|
|
902
|
+
r = (y(o, 1n) * e) % L,
|
|
903
|
+
a = (y(r, 5n) * r) % L,
|
|
904
|
+
i = (y(a, 10n) * a) % L,
|
|
905
|
+
s = (y(i, 20n) * i) % L,
|
|
906
|
+
_ = (y(s, 40n) * s) % L,
|
|
907
|
+
N = (y(_, 80n) * _) % L,
|
|
908
|
+
f = (y(N, 80n) * _) % L,
|
|
909
|
+
d = (y(f, 10n) * a) % L;
|
|
910
|
+
return (y(d, 2n) * e) % L;
|
|
911
|
+
}
|
|
912
|
+
function Ki(e, t) {
|
|
913
|
+
const n = w(t * t * t),
|
|
914
|
+
o = w(n * n * t),
|
|
915
|
+
r = Yi(e * o);
|
|
916
|
+
let a = w(e * n * r);
|
|
917
|
+
const i = w(t * a * a),
|
|
918
918
|
s = a,
|
|
919
|
-
_ =
|
|
919
|
+
_ = w(a * ze),
|
|
920
920
|
N = i === e,
|
|
921
|
-
f = i ===
|
|
922
|
-
d = i ===
|
|
921
|
+
f = i === w(-e),
|
|
922
|
+
d = i === w(-e * ze);
|
|
923
923
|
return (
|
|
924
924
|
N && (a = s),
|
|
925
925
|
(f || d) && (a = _),
|
|
926
|
-
(
|
|
926
|
+
(w(a) & 1n) === 1n && (a = w(-a)),
|
|
927
927
|
!N && !f ? null : a
|
|
928
928
|
);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
931
|
-
const n =
|
|
932
|
-
o =
|
|
933
|
-
r =
|
|
934
|
-
a =
|
|
930
|
+
function ji(e, t) {
|
|
931
|
+
const n = w(e * e),
|
|
932
|
+
o = w(n - 1n),
|
|
933
|
+
r = w(Xi * n + 1n),
|
|
934
|
+
a = Ki(o, r);
|
|
935
935
|
if (a === null) return !1;
|
|
936
936
|
const i = (t & 128) !== 0;
|
|
937
937
|
return !(a === 0n && i);
|
|
938
938
|
}
|
|
939
|
-
function
|
|
939
|
+
function Ji(e) {
|
|
940
940
|
const t = e.toString(16);
|
|
941
941
|
return t.length === 1 ? `0${t}` : t;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
const n = `0x${e.reduce((o, r, a) => `${
|
|
943
|
+
function qi(e) {
|
|
944
|
+
const n = `0x${e.reduce((o, r, a) => `${Ji(a === 31 ? r & -129 : r)}${o}`, '')}`;
|
|
945
945
|
return BigInt(n);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function Pt(e) {
|
|
948
948
|
if (e.byteLength !== 32) return !1;
|
|
949
|
-
const t =
|
|
950
|
-
return
|
|
949
|
+
const t = qi(e);
|
|
950
|
+
return ji(t, e[31]);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
const t =
|
|
954
|
-
return
|
|
952
|
+
function Zi(e) {
|
|
953
|
+
const t = pe().encode(e);
|
|
954
|
+
return Pt(t) === !1;
|
|
955
955
|
}
|
|
956
|
-
var
|
|
957
|
-
|
|
958
|
-
|
|
956
|
+
var He = 32,
|
|
957
|
+
We = 16,
|
|
958
|
+
Qi = [
|
|
959
959
|
// The string 'ProgramDerivedAddress'
|
|
960
960
|
80, 114, 111, 103, 114, 97, 109, 68, 101, 114, 105, 118, 101, 100, 65, 100, 100, 114, 101, 115,
|
|
961
961
|
115,
|
|
962
962
|
];
|
|
963
|
-
async function
|
|
964
|
-
if ((
|
|
965
|
-
throw new T(
|
|
963
|
+
async function es({ programAddress: e, seeds: t }) {
|
|
964
|
+
if ((zi(), t.length > We))
|
|
965
|
+
throw new T(Ze, {
|
|
966
966
|
actual: t.length,
|
|
967
|
-
maxSeeds:
|
|
967
|
+
maxSeeds: We,
|
|
968
968
|
});
|
|
969
969
|
let n;
|
|
970
970
|
const o = t.reduce((_, N, f) => {
|
|
971
971
|
const d = typeof N == 'string' ? (n ||= new TextEncoder()).encode(N) : N;
|
|
972
|
-
if (d.byteLength >
|
|
973
|
-
throw new T(
|
|
972
|
+
if (d.byteLength > He)
|
|
973
|
+
throw new T(Qe, {
|
|
974
974
|
actual: d.byteLength,
|
|
975
975
|
index: f,
|
|
976
|
-
maxSeedLength:
|
|
976
|
+
maxSeedLength: He,
|
|
977
977
|
});
|
|
978
978
|
return (_.push(...d), _);
|
|
979
979
|
}, []),
|
|
980
|
-
r =
|
|
980
|
+
r = pe(),
|
|
981
981
|
a = r.encode(e),
|
|
982
|
-
i = await crypto.subtle.digest('SHA-256', new Uint8Array([...o, ...a, ...
|
|
982
|
+
i = await crypto.subtle.digest('SHA-256', new Uint8Array([...o, ...a, ...Qi])),
|
|
983
983
|
s = new Uint8Array(i);
|
|
984
|
-
if (
|
|
984
|
+
if (Pt(s)) throw new T(Le);
|
|
985
985
|
return r.decode(s);
|
|
986
986
|
}
|
|
987
|
-
async function
|
|
987
|
+
async function De({ programAddress: e, seeds: t }) {
|
|
988
988
|
let n = 255;
|
|
989
989
|
for (; n > 0; )
|
|
990
990
|
try {
|
|
991
991
|
return [
|
|
992
|
-
await
|
|
992
|
+
await es({
|
|
993
993
|
programAddress: e,
|
|
994
994
|
seeds: [...t, new Uint8Array([n])],
|
|
995
995
|
}),
|
|
996
996
|
n,
|
|
997
997
|
];
|
|
998
998
|
} catch (o) {
|
|
999
|
-
if (
|
|
999
|
+
if (It(o, Le)) n--;
|
|
1000
1000
|
else throw o;
|
|
1001
1001
|
}
|
|
1002
|
-
throw new T(
|
|
1002
|
+
throw new T(et);
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function ts(e, t, n, o) {
|
|
1005
1005
|
if (o < t || o > n)
|
|
1006
|
-
throw new T(
|
|
1006
|
+
throw new T(Nt, {
|
|
1007
1007
|
codecDescription: e,
|
|
1008
1008
|
max: n,
|
|
1009
1009
|
min: t,
|
|
1010
1010
|
value: o,
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function wt(e) {
|
|
1014
1014
|
return e?.endian !== 1;
|
|
1015
1015
|
}
|
|
1016
1016
|
function K(e) {
|
|
1017
|
-
return
|
|
1017
|
+
return U({
|
|
1018
1018
|
fixedSize: e.size,
|
|
1019
1019
|
write(t, n, o) {
|
|
1020
|
-
e.range &&
|
|
1020
|
+
e.range && ts(e.name, e.range[0], e.range[1], t);
|
|
1021
1021
|
const r = new ArrayBuffer(e.size);
|
|
1022
|
-
return (e.set(new DataView(r), t,
|
|
1022
|
+
return (e.set(new DataView(r), t, wt(e.config)), n.set(new Uint8Array(r), o), o + e.size);
|
|
1023
1023
|
},
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
function j(e) {
|
|
1027
|
-
return
|
|
1027
|
+
return P({
|
|
1028
1028
|
fixedSize: e.size,
|
|
1029
1029
|
read(t, n = 0) {
|
|
1030
|
-
(
|
|
1031
|
-
const o = new DataView(
|
|
1032
|
-
return [e.get(o,
|
|
1030
|
+
(wi(e.name, t, n), mt(e.name, e.size, t, n));
|
|
1031
|
+
const o = new DataView(ns(t, n, e.size));
|
|
1032
|
+
return [e.get(o, wt(e.config)), n + e.size];
|
|
1033
1033
|
},
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function ns(e, t, n) {
|
|
1037
1037
|
const o = e.byteOffset + (t ?? 0),
|
|
1038
1038
|
r = n ?? e.byteLength;
|
|
1039
1039
|
return e.buffer.slice(o, o + r);
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1041
|
+
var fe = (e = {}) =>
|
|
1042
1042
|
K({
|
|
1043
1043
|
config: e,
|
|
1044
1044
|
name: 'i32',
|
|
@@ -1046,14 +1046,14 @@ var Se = (e = {}) =>
|
|
|
1046
1046
|
set: (t, n, o) => t.setInt32(0, Number(n), o),
|
|
1047
1047
|
size: 4,
|
|
1048
1048
|
}),
|
|
1049
|
-
|
|
1049
|
+
Ie = (e = {}) =>
|
|
1050
1050
|
j({
|
|
1051
1051
|
config: e,
|
|
1052
1052
|
get: (t, n) => t.getInt32(0, n),
|
|
1053
1053
|
name: 'i32',
|
|
1054
1054
|
size: 4,
|
|
1055
1055
|
}),
|
|
1056
|
-
|
|
1056
|
+
rs = (e = {}) =>
|
|
1057
1057
|
K({
|
|
1058
1058
|
config: e,
|
|
1059
1059
|
name: 'i64',
|
|
@@ -1061,7 +1061,7 @@ var Se = (e = {}) =>
|
|
|
1061
1061
|
set: (t, n, o) => t.setBigInt64(0, BigInt(n), o),
|
|
1062
1062
|
size: 8,
|
|
1063
1063
|
}),
|
|
1064
|
-
|
|
1064
|
+
os = (e = {}) =>
|
|
1065
1065
|
j({
|
|
1066
1066
|
config: e,
|
|
1067
1067
|
get: (t, n) => t.getBigInt64(0, n),
|
|
@@ -1094,7 +1094,7 @@ var Se = (e = {}) =>
|
|
|
1094
1094
|
name: 'u128',
|
|
1095
1095
|
size: 16,
|
|
1096
1096
|
}),
|
|
1097
|
-
|
|
1097
|
+
Ne = (e = {}) =>
|
|
1098
1098
|
K({
|
|
1099
1099
|
config: e,
|
|
1100
1100
|
name: 'u16',
|
|
@@ -1102,14 +1102,14 @@ var Se = (e = {}) =>
|
|
|
1102
1102
|
set: (t, n, o) => t.setUint16(0, Number(n), o),
|
|
1103
1103
|
size: 2,
|
|
1104
1104
|
}),
|
|
1105
|
-
|
|
1105
|
+
Te = (e = {}) =>
|
|
1106
1106
|
j({
|
|
1107
1107
|
config: e,
|
|
1108
1108
|
get: (t, n) => t.getUint16(0, n),
|
|
1109
1109
|
name: 'u16',
|
|
1110
1110
|
size: 2,
|
|
1111
1111
|
}),
|
|
1112
|
-
|
|
1112
|
+
B = (e = {}) =>
|
|
1113
1113
|
K({
|
|
1114
1114
|
config: e,
|
|
1115
1115
|
name: 'u32',
|
|
@@ -1117,7 +1117,7 @@ var Se = (e = {}) =>
|
|
|
1117
1117
|
set: (t, n, o) => t.setUint32(0, Number(n), o),
|
|
1118
1118
|
size: 4,
|
|
1119
1119
|
}),
|
|
1120
|
-
|
|
1120
|
+
G = (e = {}) =>
|
|
1121
1121
|
j({
|
|
1122
1122
|
config: e,
|
|
1123
1123
|
get: (t, n) => t.getUint32(0, n),
|
|
@@ -1152,31 +1152,31 @@ var Se = (e = {}) =>
|
|
|
1152
1152
|
name: 'u8',
|
|
1153
1153
|
size: 1,
|
|
1154
1154
|
});
|
|
1155
|
-
function
|
|
1155
|
+
function xt(e, t, n) {
|
|
1156
1156
|
if (t !== n)
|
|
1157
|
-
throw new T(
|
|
1157
|
+
throw new T(dt, {
|
|
1158
1158
|
actual: n,
|
|
1159
1159
|
codecDescription: e,
|
|
1160
1160
|
expected: t,
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function as(e) {
|
|
1164
1164
|
return e.reduce((t, n) => (t === null || n === null ? null : Math.max(t, n)), 0);
|
|
1165
1165
|
}
|
|
1166
1166
|
function X(e) {
|
|
1167
1167
|
return e.reduce((t, n) => (t === null || n === null ? null : t + n), 0);
|
|
1168
1168
|
}
|
|
1169
1169
|
function te(e) {
|
|
1170
|
-
return
|
|
1170
|
+
return b(e) ? e.fixedSize : null;
|
|
1171
1171
|
}
|
|
1172
1172
|
function J(e) {
|
|
1173
|
-
return
|
|
1173
|
+
return b(e) ? e.fixedSize : (e.maxSize ?? null);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
const n = t.size ??
|
|
1177
|
-
o =
|
|
1178
|
-
r =
|
|
1179
|
-
return
|
|
1175
|
+
function Ae(e, t = {}) {
|
|
1176
|
+
const n = t.size ?? B(),
|
|
1177
|
+
o = ue(n, te(e)),
|
|
1178
|
+
r = ue(n, J(e)) ?? void 0;
|
|
1179
|
+
return U({
|
|
1180
1180
|
...(o !== null
|
|
1181
1181
|
? { fixedSize: o }
|
|
1182
1182
|
: {
|
|
@@ -1185,7 +1185,7 @@ function ue(e, t = {}) {
|
|
|
1185
1185
|
maxSize: r,
|
|
1186
1186
|
}),
|
|
1187
1187
|
write: (a, i, s) => (
|
|
1188
|
-
typeof n == 'number' &&
|
|
1188
|
+
typeof n == 'number' && xt('array', n, a.length),
|
|
1189
1189
|
typeof n == 'object' && (s = n.write(a.length, i, s)),
|
|
1190
1190
|
a.forEach((_) => {
|
|
1191
1191
|
s = e.write(_, i, s);
|
|
@@ -1194,75 +1194,75 @@ function ue(e, t = {}) {
|
|
|
1194
1194
|
),
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
const n = t.size ??
|
|
1197
|
+
function de(e, t = {}) {
|
|
1198
|
+
const n = t.size ?? G(),
|
|
1199
1199
|
o = te(e),
|
|
1200
|
-
r =
|
|
1201
|
-
a =
|
|
1202
|
-
return
|
|
1200
|
+
r = ue(n, o),
|
|
1201
|
+
a = ue(n, J(e)) ?? void 0;
|
|
1202
|
+
return P({
|
|
1203
1203
|
...(r !== null ? { fixedSize: r } : { maxSize: a }),
|
|
1204
1204
|
read: (i, s) => {
|
|
1205
1205
|
const _ = [];
|
|
1206
1206
|
if (typeof n == 'object' && i.slice(s).length === 0) return [_, s];
|
|
1207
1207
|
if (n === 'remainder') {
|
|
1208
1208
|
for (; s < i.length; ) {
|
|
1209
|
-
const [d,
|
|
1210
|
-
((s =
|
|
1209
|
+
const [d, x] = e.read(i, s);
|
|
1210
|
+
((s = x), _.push(d));
|
|
1211
1211
|
}
|
|
1212
1212
|
return [_, s];
|
|
1213
1213
|
}
|
|
1214
1214
|
const [N, f] = typeof n == 'number' ? [n, s] : n.read(i, s);
|
|
1215
1215
|
s = f;
|
|
1216
1216
|
for (let d = 0; d < N; d += 1) {
|
|
1217
|
-
const [
|
|
1218
|
-
((s = H), _.push(
|
|
1217
|
+
const [x, H] = e.read(i, s);
|
|
1218
|
+
((s = H), _.push(x));
|
|
1219
1219
|
}
|
|
1220
1220
|
return [_, s];
|
|
1221
1221
|
},
|
|
1222
1222
|
});
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function ue(e, t) {
|
|
1225
1225
|
return typeof e != 'number' ? null : e === 0 ? 0 : t === null ? null : t * e;
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Mt(e = {}) {
|
|
1228
1228
|
return D(e.size ?? O(), (t) => (t ? 1 : 0));
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function yt(e = {}) {
|
|
1231
1231
|
return Z(e.size ?? I(), (t) => Number(t) === 1);
|
|
1232
1232
|
}
|
|
1233
1233
|
function C() {
|
|
1234
|
-
return
|
|
1234
|
+
return U({
|
|
1235
1235
|
getSizeFromValue: (e) => e.length,
|
|
1236
1236
|
write: (e, t, n) => (t.set(e, n), n + e.length),
|
|
1237
1237
|
});
|
|
1238
1238
|
}
|
|
1239
1239
|
function h() {
|
|
1240
|
-
return
|
|
1240
|
+
return P({
|
|
1241
1241
|
read: (e, t) => {
|
|
1242
1242
|
const n = e.slice(t);
|
|
1243
1243
|
return [n, t + n.length];
|
|
1244
1244
|
},
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
|
-
var
|
|
1248
|
-
|
|
1247
|
+
var is = () =>
|
|
1248
|
+
P({
|
|
1249
1249
|
read(e, t) {
|
|
1250
1250
|
return [e.slice(t).reduce((o, r) => o + r.toString(16).padStart(2, '0'), ''), e.length];
|
|
1251
1251
|
},
|
|
1252
1252
|
});
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1253
|
+
function ss(e) {
|
|
1254
|
+
return U({
|
|
1255
1255
|
fixedSize: e.length,
|
|
1256
1256
|
write: (t, n, o) => (n.set(e, o), o + e.length),
|
|
1257
1257
|
});
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1259
|
+
function _s(e) {
|
|
1260
|
+
return P({
|
|
1261
1261
|
fixedSize: e.length,
|
|
1262
1262
|
read: (t, n) => {
|
|
1263
|
-
const o =
|
|
1264
|
-
if (!
|
|
1265
|
-
throw new T(
|
|
1263
|
+
const o = is();
|
|
1264
|
+
if (!F(t, e, n))
|
|
1265
|
+
throw new T(St, {
|
|
1266
1266
|
constant: e,
|
|
1267
1267
|
data: t,
|
|
1268
1268
|
hexConstant: o.decode(e),
|
|
@@ -1273,10 +1273,10 @@ function ss(e) {
|
|
|
1273
1273
|
},
|
|
1274
1274
|
});
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function ge(e) {
|
|
1277
1277
|
const t = X(e.map(te)),
|
|
1278
1278
|
n = X(e.map(J)) ?? void 0;
|
|
1279
|
-
return
|
|
1279
|
+
return U({
|
|
1280
1280
|
...(t === null
|
|
1281
1281
|
? {
|
|
1282
1282
|
getSizeFromValue: (o) => e.map((r, a) => Q(o[a], r)).reduce((r, a) => r + a, 0),
|
|
@@ -1284,7 +1284,7 @@ function Ie(e) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
: { fixedSize: t }),
|
|
1286
1286
|
write: (o, r, a) => (
|
|
1287
|
-
|
|
1287
|
+
xt('tuple', e.length, o.length),
|
|
1288
1288
|
e.forEach((i, s) => {
|
|
1289
1289
|
a = i.write(o[s], r, a);
|
|
1290
1290
|
}),
|
|
@@ -1292,10 +1292,10 @@ function Ie(e) {
|
|
|
1292
1292
|
),
|
|
1293
1293
|
});
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function me(e) {
|
|
1296
1296
|
const t = X(e.map(te)),
|
|
1297
1297
|
n = X(e.map(J)) ?? void 0;
|
|
1298
|
-
return
|
|
1298
|
+
return P({
|
|
1299
1299
|
...(t === null ? { maxSize: n } : { fixedSize: t }),
|
|
1300
1300
|
read: (o, r) => {
|
|
1301
1301
|
const a = [];
|
|
@@ -1309,64 +1309,64 @@ function ge(e) {
|
|
|
1309
1309
|
},
|
|
1310
1310
|
});
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1313
|
-
const n =
|
|
1312
|
+
function kt(e, t) {
|
|
1313
|
+
const n = Gt(e),
|
|
1314
1314
|
o = (a, i, s) => {
|
|
1315
1315
|
const _ = t(a);
|
|
1316
|
-
return (
|
|
1316
|
+
return (Ce(e, _), e[_].write(a, i, s));
|
|
1317
1317
|
};
|
|
1318
|
-
if (n !== null) return
|
|
1319
|
-
const r =
|
|
1320
|
-
return
|
|
1318
|
+
if (n !== null) return U({ fixedSize: n, write: o });
|
|
1319
|
+
const r = Vt(e);
|
|
1320
|
+
return U({
|
|
1321
1321
|
...(r !== null ? { maxSize: r } : {}),
|
|
1322
1322
|
getSizeFromValue: (a) => {
|
|
1323
1323
|
const i = t(a);
|
|
1324
|
-
return (
|
|
1324
|
+
return (Ce(e, i), Q(a, e[i]));
|
|
1325
1325
|
},
|
|
1326
1326
|
write: o,
|
|
1327
1327
|
});
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1330
|
-
const n =
|
|
1329
|
+
function Bt(e, t) {
|
|
1330
|
+
const n = Gt(e),
|
|
1331
1331
|
o = (a, i) => {
|
|
1332
1332
|
const s = t(a, i);
|
|
1333
|
-
return (
|
|
1333
|
+
return (Ce(e, s), e[s].read(a, i));
|
|
1334
1334
|
};
|
|
1335
|
-
if (n !== null) return
|
|
1336
|
-
const r =
|
|
1337
|
-
return
|
|
1335
|
+
if (n !== null) return P({ fixedSize: n, read: o });
|
|
1336
|
+
const r = Vt(e);
|
|
1337
|
+
return P({ ...(r !== null ? { maxSize: r } : {}), read: o });
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function Ce(e, t) {
|
|
1340
1340
|
if (typeof e[t] > 'u')
|
|
1341
|
-
throw new T(
|
|
1341
|
+
throw new T(Tt, {
|
|
1342
1342
|
maxRange: e.length - 1,
|
|
1343
1343
|
minRange: 0,
|
|
1344
1344
|
variant: t,
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Gt(e) {
|
|
1348
1348
|
if (e.length === 0) return 0;
|
|
1349
|
-
if (!
|
|
1349
|
+
if (!b(e[0])) return null;
|
|
1350
1350
|
const t = e[0].fixedSize;
|
|
1351
|
-
return e.every((o) =>
|
|
1351
|
+
return e.every((o) => b(o) && o.fixedSize === t) ? t : null;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return
|
|
1353
|
+
function Vt(e) {
|
|
1354
|
+
return as(e.map((t) => J(t)));
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function re(e, t = {}) {
|
|
1357
1357
|
const n = t.discriminator ?? '__kind',
|
|
1358
1358
|
o = t.size ?? O();
|
|
1359
|
-
return
|
|
1360
|
-
e.map(([, r], a) => D(
|
|
1361
|
-
(r) =>
|
|
1359
|
+
return kt(
|
|
1360
|
+
e.map(([, r], a) => D(ge([o, r]), (i) => [a, i])),
|
|
1361
|
+
(r) => cs(e, r[n])
|
|
1362
1362
|
);
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function oe(e, t = {}) {
|
|
1365
1365
|
const n = t.discriminator ?? '__kind',
|
|
1366
1366
|
o = t.size ?? I();
|
|
1367
|
-
return
|
|
1367
|
+
return Bt(
|
|
1368
1368
|
e.map(([r, a]) =>
|
|
1369
|
-
Z(
|
|
1369
|
+
Z(me([o, a]), ([, i]) => ({
|
|
1370
1370
|
[n]: r,
|
|
1371
1371
|
...i,
|
|
1372
1372
|
}))
|
|
@@ -1374,16 +1374,16 @@ function re(e, t = {}) {
|
|
|
1374
1374
|
(r, a) => Number(o.read(r, a)[0])
|
|
1375
1375
|
);
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function cs(e, t) {
|
|
1378
1378
|
const n = e.findIndex(([o]) => t === o);
|
|
1379
1379
|
if (n < 0)
|
|
1380
|
-
throw new T(
|
|
1380
|
+
throw new T(lt, {
|
|
1381
1381
|
value: t,
|
|
1382
1382
|
variants: e.map(([o]) => o),
|
|
1383
1383
|
});
|
|
1384
1384
|
return n;
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function Ft(e) {
|
|
1387
1387
|
const t = [...new Set(Object.values(e).filter((i) => typeof i == 'number'))].sort(),
|
|
1388
1388
|
n = Object.fromEntries(Object.entries(e).slice(t.length)),
|
|
1389
1389
|
o = Object.keys(n),
|
|
@@ -1391,19 +1391,19 @@ function Vt(e) {
|
|
|
1391
1391
|
a = [.../* @__PURE__ */ new Set([...o, ...r.filter((i) => typeof i == 'string')])];
|
|
1392
1392
|
return { enumKeys: o, enumRecord: n, enumValues: r, numericalValues: t, stringValues: a };
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1395
|
-
const o =
|
|
1394
|
+
function Rs({ enumKeys: e, enumValues: t, variant: n }) {
|
|
1395
|
+
const o = zt(t, (r) => r === n);
|
|
1396
1396
|
return o >= 0 ? o : e.findIndex((r) => r === n);
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
return o ?
|
|
1398
|
+
function us({ discriminator: e, enumKeys: t, enumValues: n, useValuesAsDiscriminators: o }) {
|
|
1399
|
+
return o ? zt(n, (r) => r === e) : e >= 0 && e < t.length ? e : -1;
|
|
1400
1400
|
}
|
|
1401
|
-
function
|
|
1401
|
+
function zt(e, t) {
|
|
1402
1402
|
let n = e.length;
|
|
1403
1403
|
for (; n--; ) if (t(e[n], n, e)) return n;
|
|
1404
1404
|
return -1;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function Ht(e) {
|
|
1407
1407
|
if (e.length === 0) return '';
|
|
1408
1408
|
let t = [e[0], e[0]];
|
|
1409
1409
|
const n = [];
|
|
@@ -1415,19 +1415,19 @@ function zt(e) {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
return (n.push(t[0] === t[1] ? `${t[0]}` : `${t[0]}-${t[1]}`), n.join(', '));
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function ae(e, t = {}) {
|
|
1419
1419
|
const n = t.size ?? O(),
|
|
1420
1420
|
o = t.useValuesAsDiscriminators ?? !1,
|
|
1421
|
-
{ enumKeys: r, enumValues: a, numericalValues: i, stringValues: s } =
|
|
1421
|
+
{ enumKeys: r, enumValues: a, numericalValues: i, stringValues: s } = Ft(e);
|
|
1422
1422
|
if (o && a.some((_) => typeof _ == 'string'))
|
|
1423
|
-
throw new T(
|
|
1423
|
+
throw new T(ve, {
|
|
1424
1424
|
stringValues: a.filter((_) => typeof _ == 'string'),
|
|
1425
1425
|
});
|
|
1426
1426
|
return D(n, (_) => {
|
|
1427
|
-
const N =
|
|
1427
|
+
const N = Rs({ enumKeys: r, enumValues: a, variant: _ });
|
|
1428
1428
|
if (N < 0)
|
|
1429
|
-
throw new T(
|
|
1430
|
-
formattedNumericalValues:
|
|
1429
|
+
throw new T(Et, {
|
|
1430
|
+
formattedNumericalValues: Ht(i),
|
|
1431
1431
|
numericalValues: i,
|
|
1432
1432
|
stringValues: s,
|
|
1433
1433
|
variant: _,
|
|
@@ -1435,17 +1435,17 @@ function oe(e, t = {}) {
|
|
|
1435
1435
|
return o ? a[N] : N;
|
|
1436
1436
|
});
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function ie(e, t = {}) {
|
|
1439
1439
|
const n = t.size ?? I(),
|
|
1440
1440
|
o = t.useValuesAsDiscriminators ?? !1,
|
|
1441
|
-
{ enumKeys: r, enumValues: a, numericalValues: i } =
|
|
1441
|
+
{ enumKeys: r, enumValues: a, numericalValues: i } = Ft(e);
|
|
1442
1442
|
if (o && a.some((s) => typeof s == 'string'))
|
|
1443
|
-
throw new T(
|
|
1443
|
+
throw new T(ve, {
|
|
1444
1444
|
stringValues: a.filter((s) => typeof s == 'string'),
|
|
1445
1445
|
});
|
|
1446
1446
|
return Z(n, (s) => {
|
|
1447
1447
|
const _ = Number(s),
|
|
1448
|
-
N =
|
|
1448
|
+
N = us({
|
|
1449
1449
|
discriminator: _,
|
|
1450
1450
|
enumKeys: r,
|
|
1451
1451
|
enumValues: a,
|
|
@@ -1453,23 +1453,23 @@ function ae(e, t = {}) {
|
|
|
1453
1453
|
});
|
|
1454
1454
|
if (N < 0) {
|
|
1455
1455
|
const f = o ? i : [...Array(r.length).keys()];
|
|
1456
|
-
throw new T(
|
|
1456
|
+
throw new T(Ot, {
|
|
1457
1457
|
discriminator: _,
|
|
1458
|
-
formattedValidDiscriminators:
|
|
1458
|
+
formattedValidDiscriminators: Ht(f),
|
|
1459
1459
|
validDiscriminators: f,
|
|
1460
1460
|
});
|
|
1461
1461
|
}
|
|
1462
1462
|
return a[N];
|
|
1463
1463
|
});
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1466
|
-
return
|
|
1465
|
+
function se() {
|
|
1466
|
+
return U({
|
|
1467
1467
|
fixedSize: 0,
|
|
1468
1468
|
write: (e, t, n) => n,
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1472
|
-
return
|
|
1471
|
+
function _e() {
|
|
1472
|
+
return P({
|
|
1473
1473
|
fixedSize: 0,
|
|
1474
1474
|
read: (e, t) => [void 0, t],
|
|
1475
1475
|
});
|
|
@@ -1478,7 +1478,7 @@ function l(e) {
|
|
|
1478
1478
|
const t = e.map(([, r]) => r),
|
|
1479
1479
|
n = X(t.map(te)),
|
|
1480
1480
|
o = X(t.map(J)) ?? void 0;
|
|
1481
|
-
return
|
|
1481
|
+
return U({
|
|
1482
1482
|
...(n === null
|
|
1483
1483
|
? {
|
|
1484
1484
|
getSizeFromValue: (r) => e.map(([a, i]) => Q(r[a], i)).reduce((a, i) => a + i, 0),
|
|
@@ -1497,7 +1497,7 @@ function E(e) {
|
|
|
1497
1497
|
const t = e.map(([, r]) => r),
|
|
1498
1498
|
n = X(t.map(te)),
|
|
1499
1499
|
o = X(t.map(J)) ?? void 0;
|
|
1500
|
-
return
|
|
1500
|
+
return P({
|
|
1501
1501
|
...(n === null ? { maxSize: o } : { fixedSize: n }),
|
|
1502
1502
|
read: (r, a) => {
|
|
1503
1503
|
const i = {};
|
|
@@ -1511,156 +1511,156 @@ function E(e) {
|
|
|
1511
1511
|
},
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1515
|
-
|
|
1516
|
-
|
|
1514
|
+
var Wt = (e) => ({ __option: 'Some', value: e }),
|
|
1515
|
+
$t = () => ({ __option: 'None' }),
|
|
1516
|
+
$e = (e) =>
|
|
1517
1517
|
!!(
|
|
1518
1518
|
e &&
|
|
1519
1519
|
typeof e == 'object' &&
|
|
1520
1520
|
'__option' in e &&
|
|
1521
1521
|
((e.__option === 'Some' && 'value' in e) || e.__option === 'None')
|
|
1522
1522
|
),
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
function
|
|
1526
|
-
const n = t.prefix === null ? D(
|
|
1523
|
+
Xe = (e) => e.__option === 'Some',
|
|
1524
|
+
As = (e) => (e !== null ? Wt(e) : $t());
|
|
1525
|
+
function ds(e, t = {}) {
|
|
1526
|
+
const n = t.prefix === null ? D(se(), (r) => {}) : Mt({ size: t.prefix ?? O() }),
|
|
1527
1527
|
o =
|
|
1528
1528
|
t.noneValue === 'zeroes'
|
|
1529
|
-
? (
|
|
1529
|
+
? (gt(e), g(se(), e.fixedSize))
|
|
1530
1530
|
: t.noneValue
|
|
1531
|
-
?
|
|
1532
|
-
:
|
|
1533
|
-
return
|
|
1534
|
-
[D(
|
|
1531
|
+
? ss(t.noneValue)
|
|
1532
|
+
: se();
|
|
1533
|
+
return kt(
|
|
1534
|
+
[D(ge([n, o]), (r) => [!1, void 0]), D(ge([n, e]), (r) => [!0, $e(r) && Xe(r) ? r.value : r])],
|
|
1535
1535
|
(r) => {
|
|
1536
|
-
const a =
|
|
1537
|
-
return Number(
|
|
1536
|
+
const a = $e(r) ? r : As(r);
|
|
1537
|
+
return Number(Xe(a));
|
|
1538
1538
|
}
|
|
1539
1539
|
);
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1542
|
-
const n = t.prefix === null ? Z(
|
|
1541
|
+
function Os(e, t = {}) {
|
|
1542
|
+
const n = t.prefix === null ? Z(_e(), () => !1) : yt({ size: t.prefix ?? I() }),
|
|
1543
1543
|
o =
|
|
1544
1544
|
t.noneValue === 'zeroes'
|
|
1545
|
-
? (
|
|
1545
|
+
? (gt(e), m(_e(), e.fixedSize))
|
|
1546
1546
|
: t.noneValue
|
|
1547
|
-
?
|
|
1548
|
-
:
|
|
1549
|
-
return
|
|
1547
|
+
? _s(t.noneValue)
|
|
1548
|
+
: _e();
|
|
1549
|
+
return Bt([Z(me([n, o]), () => $t()), Z(me([n, e]), ([, r]) => Wt(r))], (r, a) => {
|
|
1550
1550
|
if (t.prefix === null && !t.noneValue) return +(a < r.length);
|
|
1551
1551
|
if (t.prefix === null && t.noneValue != null) {
|
|
1552
1552
|
const i = t.noneValue === 'zeroes' ? new Uint8Array(o.fixedSize).fill(0) : t.noneValue;
|
|
1553
|
-
return
|
|
1553
|
+
return F(r, i, a) ? 0 : 1;
|
|
1554
1554
|
}
|
|
1555
1555
|
return Number(n.read(r, a)[0]);
|
|
1556
1556
|
});
|
|
1557
1557
|
}
|
|
1558
1558
|
function Y(e) {
|
|
1559
1559
|
if (e.accounts === void 0)
|
|
1560
|
-
throw new T(
|
|
1560
|
+
throw new T(at, {
|
|
1561
1561
|
data: e.data,
|
|
1562
1562
|
programAddress: e.programAddress,
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
|
-
var
|
|
1565
|
+
var ce = /* @__PURE__ */ ((e) => (
|
|
1566
1566
|
(e[(e.WRITABLE_SIGNER = /* 3 */ 3)] = 'WRITABLE_SIGNER'),
|
|
1567
1567
|
(e[(e.READONLY_SIGNER = /* 2 */ 2)] = 'READONLY_SIGNER'),
|
|
1568
1568
|
(e[(e.WRITABLE = /* 1 */ 1)] = 'WRITABLE'),
|
|
1569
1569
|
(e[(e.READONLY = /* 0 */ 0)] = 'READONLY'),
|
|
1570
1570
|
e
|
|
1571
|
-
))(
|
|
1572
|
-
|
|
1573
|
-
function
|
|
1574
|
-
return e |
|
|
1571
|
+
))(ce || {}),
|
|
1572
|
+
ls = 2;
|
|
1573
|
+
function Es(e) {
|
|
1574
|
+
return e | ls;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1577
|
-
if (!
|
|
1576
|
+
function Ns(e, t, n, o) {
|
|
1577
|
+
if (!It(e, it)) return !1;
|
|
1578
1578
|
const r = t.instructions[e.context.index]?.programAddress;
|
|
1579
1579
|
return !r || r !== n ? !1 : typeof o > 'u' || e.context.code === o;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Ts(e) {
|
|
1582
1582
|
return 'modifyAndSignTransactions' in e && typeof e.modifyAndSignTransactions == 'function';
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Ss(e) {
|
|
1585
1585
|
return 'signTransactions' in e && typeof e.signTransactions == 'function';
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function fs(e) {
|
|
1588
1588
|
return 'signAndSendTransactions' in e && typeof e.signAndSendTransactions == 'function';
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1591
|
-
return
|
|
1590
|
+
function Is(e) {
|
|
1591
|
+
return Ss(e) || Ts(e) || fs(e);
|
|
1592
1592
|
}
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1593
|
+
const gs = B,
|
|
1594
|
+
ms = G;
|
|
1595
|
+
var be = /* @__PURE__ */ ((e) => (
|
|
1596
1596
|
(e[(e.Uninitialized = 0)] = 'Uninitialized'),
|
|
1597
1597
|
(e[(e.Closed = 1)] = 'Closed'),
|
|
1598
1598
|
(e[(e.GlobalConfig = 2)] = 'GlobalConfig'),
|
|
1599
1599
|
(e[(e.Automation = 3)] = 'Automation'),
|
|
1600
1600
|
e
|
|
1601
|
-
))(
|
|
1602
|
-
function be() {
|
|
1603
|
-
return oe(De);
|
|
1604
|
-
}
|
|
1601
|
+
))(be || {});
|
|
1605
1602
|
function Ue() {
|
|
1606
|
-
return ae(
|
|
1603
|
+
return ae(be);
|
|
1604
|
+
}
|
|
1605
|
+
function Pe() {
|
|
1606
|
+
return ie(be);
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1609
|
-
return S(
|
|
1608
|
+
function $_() {
|
|
1609
|
+
return S(Ue(), Pe());
|
|
1610
1610
|
}
|
|
1611
|
-
var
|
|
1611
|
+
var we = /* @__PURE__ */ ((e) => (
|
|
1612
1612
|
(e[(e.Uninitialized = 0)] = 'Uninitialized'),
|
|
1613
1613
|
(e[(e.HarvestSwapAndReinvest = 1)] = 'HarvestSwapAndReinvest'),
|
|
1614
1614
|
e
|
|
1615
|
-
))(
|
|
1616
|
-
function $t() {
|
|
1617
|
-
return oe(Pe);
|
|
1618
|
-
}
|
|
1615
|
+
))(we || {});
|
|
1619
1616
|
function Xt() {
|
|
1620
|
-
return ae(
|
|
1621
|
-
}
|
|
1622
|
-
function $_() {
|
|
1623
|
-
return S($t(), Xt());
|
|
1617
|
+
return ae(we);
|
|
1624
1618
|
}
|
|
1625
1619
|
function Yt() {
|
|
1626
|
-
return
|
|
1627
|
-
|
|
1620
|
+
return ie(we);
|
|
1621
|
+
}
|
|
1622
|
+
function X_() {
|
|
1623
|
+
return S(Xt(), Yt());
|
|
1624
|
+
}
|
|
1625
|
+
function Kt() {
|
|
1626
|
+
return re([
|
|
1627
|
+
['None', se()],
|
|
1628
1628
|
[
|
|
1629
1629
|
'NextValidExecutionTimestamp',
|
|
1630
1630
|
l([
|
|
1631
|
-
['nextValidExecutionTimestamp',
|
|
1632
|
-
['minIntervalSeconds',
|
|
1631
|
+
['nextValidExecutionTimestamp', rs()],
|
|
1632
|
+
['minIntervalSeconds', ds(gs())],
|
|
1633
1633
|
]),
|
|
1634
1634
|
],
|
|
1635
1635
|
['MinFeesOwedA', l([['minFeesOwedA', u()]])],
|
|
1636
1636
|
['MinFeesOwedB', l([['minFeesOwedB', u()]])],
|
|
1637
1637
|
]);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1641
|
-
['None',
|
|
1639
|
+
function jt() {
|
|
1640
|
+
return oe([
|
|
1641
|
+
['None', _e()],
|
|
1642
1642
|
[
|
|
1643
1643
|
'NextValidExecutionTimestamp',
|
|
1644
1644
|
E([
|
|
1645
|
-
['nextValidExecutionTimestamp',
|
|
1646
|
-
['minIntervalSeconds',
|
|
1645
|
+
['nextValidExecutionTimestamp', os()],
|
|
1646
|
+
['minIntervalSeconds', Os(ms())],
|
|
1647
1647
|
]),
|
|
1648
1648
|
],
|
|
1649
1649
|
['MinFeesOwedA', E([['minFeesOwedA', A()]])],
|
|
1650
1650
|
['MinFeesOwedB', E([['minFeesOwedB', A()]])],
|
|
1651
1651
|
]);
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return S(
|
|
1653
|
+
function Y_() {
|
|
1654
|
+
return S(Kt(), jt());
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function K_(e, t) {
|
|
1657
1657
|
return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...(t ?? {}) };
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function j_(e, t) {
|
|
1660
1660
|
return t.__kind === e;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
return
|
|
1662
|
+
function Cs() {
|
|
1663
|
+
return re([
|
|
1664
1664
|
[
|
|
1665
1665
|
'CrankRewardDefaultUpdated',
|
|
1666
1666
|
l([
|
|
@@ -1706,8 +1706,8 @@ function ms() {
|
|
|
1706
1706
|
['automation', c()],
|
|
1707
1707
|
['payer', c()],
|
|
1708
1708
|
['amountFunded', u()],
|
|
1709
|
-
['method',
|
|
1710
|
-
['value',
|
|
1709
|
+
['method', Jt()],
|
|
1710
|
+
['value', B()],
|
|
1711
1711
|
]),
|
|
1712
1712
|
],
|
|
1713
1713
|
[
|
|
@@ -1758,8 +1758,8 @@ function ms() {
|
|
|
1758
1758
|
],
|
|
1759
1759
|
]);
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1761
|
+
function hs() {
|
|
1762
|
+
return oe([
|
|
1763
1763
|
[
|
|
1764
1764
|
'CrankRewardDefaultUpdated',
|
|
1765
1765
|
E([
|
|
@@ -1805,8 +1805,8 @@ function Cs() {
|
|
|
1805
1805
|
['automation', R()],
|
|
1806
1806
|
['payer', R()],
|
|
1807
1807
|
['amountFunded', A()],
|
|
1808
|
-
['method',
|
|
1809
|
-
['value',
|
|
1808
|
+
['method', qt()],
|
|
1809
|
+
['value', G()],
|
|
1810
1810
|
]),
|
|
1811
1811
|
],
|
|
1812
1812
|
[
|
|
@@ -1857,51 +1857,51 @@ function Cs() {
|
|
|
1857
1857
|
],
|
|
1858
1858
|
]);
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1861
|
-
return S(
|
|
1860
|
+
function J_() {
|
|
1861
|
+
return S(Cs(), hs());
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function q_(e, t) {
|
|
1864
1864
|
return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...(t ?? {}) };
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Z_(e, t) {
|
|
1867
1867
|
return t.__kind === e;
|
|
1868
1868
|
}
|
|
1869
|
-
var
|
|
1869
|
+
var xe = /* @__PURE__ */ ((e) => (
|
|
1870
1870
|
(e[(e.FundByCount = 0)] = 'FundByCount'),
|
|
1871
1871
|
(e[(e.FundByDuration = 1)] = 'FundByDuration'),
|
|
1872
1872
|
e
|
|
1873
|
-
))(
|
|
1874
|
-
function jt() {
|
|
1875
|
-
return oe(we);
|
|
1876
|
-
}
|
|
1873
|
+
))(xe || {});
|
|
1877
1874
|
function Jt() {
|
|
1878
|
-
return ae(
|
|
1879
|
-
}
|
|
1880
|
-
function Z_() {
|
|
1881
|
-
return S(jt(), Jt());
|
|
1875
|
+
return ae(xe);
|
|
1882
1876
|
}
|
|
1883
1877
|
function qt() {
|
|
1884
|
-
return
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1878
|
+
return ie(xe);
|
|
1879
|
+
}
|
|
1880
|
+
function Q_() {
|
|
1881
|
+
return S(Jt(), qt());
|
|
1888
1882
|
}
|
|
1889
1883
|
function Zt() {
|
|
1890
1884
|
return re([
|
|
1891
|
-
['FundByCount',
|
|
1892
|
-
['FundByDuration',
|
|
1885
|
+
['FundByCount', l([['count', B()]])],
|
|
1886
|
+
['FundByDuration', l([['durationSeconds', B()]])],
|
|
1893
1887
|
]);
|
|
1894
1888
|
}
|
|
1895
|
-
function
|
|
1896
|
-
return
|
|
1889
|
+
function Qt() {
|
|
1890
|
+
return oe([
|
|
1891
|
+
['FundByCount', E([['count', G()]])],
|
|
1892
|
+
['FundByDuration', E([['durationSeconds', G()]])],
|
|
1893
|
+
]);
|
|
1897
1894
|
}
|
|
1898
|
-
function ec(
|
|
1899
|
-
return
|
|
1895
|
+
function ec() {
|
|
1896
|
+
return S(Zt(), Qt());
|
|
1900
1897
|
}
|
|
1901
1898
|
function tc(e, t) {
|
|
1899
|
+
return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...(t ?? {}) };
|
|
1900
|
+
}
|
|
1901
|
+
function nc(e, t) {
|
|
1902
1902
|
return t.__kind === e;
|
|
1903
1903
|
}
|
|
1904
|
-
var
|
|
1904
|
+
var Me = /* @__PURE__ */ ((e) => (
|
|
1905
1905
|
(e[(e.TransferHookA = 0)] = 'TransferHookA'),
|
|
1906
1906
|
(e[(e.TransferHookB = 1)] = 'TransferHookB'),
|
|
1907
1907
|
(e[(e.TransferHookReward = 2)] = 'TransferHookReward'),
|
|
@@ -1912,42 +1912,42 @@ var xe = /* @__PURE__ */ ((e) => (
|
|
|
1912
1912
|
(e[(e.SupplementalTickArraysOne = 7)] = 'SupplementalTickArraysOne'),
|
|
1913
1913
|
(e[(e.SupplementalTickArraysTwo = 8)] = 'SupplementalTickArraysTwo'),
|
|
1914
1914
|
e
|
|
1915
|
-
))(
|
|
1916
|
-
function Qt() {
|
|
1917
|
-
return oe(xe);
|
|
1918
|
-
}
|
|
1915
|
+
))(Me || {});
|
|
1919
1916
|
function en() {
|
|
1920
|
-
return ae(
|
|
1917
|
+
return ae(Me);
|
|
1921
1918
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1919
|
+
function tn() {
|
|
1920
|
+
return ie(Me);
|
|
1924
1921
|
}
|
|
1925
|
-
function
|
|
1926
|
-
return
|
|
1922
|
+
function rc() {
|
|
1923
|
+
return S(en(), tn());
|
|
1927
1924
|
}
|
|
1928
1925
|
function Ls() {
|
|
1929
|
-
return
|
|
1926
|
+
return l([['slices', Ae(nn())]]);
|
|
1930
1927
|
}
|
|
1931
|
-
function
|
|
1932
|
-
return
|
|
1928
|
+
function vs() {
|
|
1929
|
+
return E([['slices', de(rn())]]);
|
|
1933
1930
|
}
|
|
1934
|
-
function
|
|
1931
|
+
function oc() {
|
|
1932
|
+
return S(Ls(), vs());
|
|
1933
|
+
}
|
|
1934
|
+
function nn() {
|
|
1935
1935
|
return l([
|
|
1936
|
-
['accountsType',
|
|
1936
|
+
['accountsType', en()],
|
|
1937
1937
|
['length', O()],
|
|
1938
1938
|
]);
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1940
|
+
function rn() {
|
|
1941
1941
|
return E([
|
|
1942
|
-
['accountsType',
|
|
1942
|
+
['accountsType', tn()],
|
|
1943
1943
|
['length', I()],
|
|
1944
1944
|
]);
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1947
|
-
return S(
|
|
1946
|
+
function ac() {
|
|
1947
|
+
return S(nn(), rn());
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1950
|
-
return
|
|
1949
|
+
function ps() {
|
|
1950
|
+
return re([
|
|
1951
1951
|
[
|
|
1952
1952
|
'ByTokenAmounts',
|
|
1953
1953
|
l([
|
|
@@ -1959,8 +1959,8 @@ function vs() {
|
|
|
1959
1959
|
],
|
|
1960
1960
|
]);
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1963
|
-
return
|
|
1962
|
+
function Ds() {
|
|
1963
|
+
return oe([
|
|
1964
1964
|
[
|
|
1965
1965
|
'ByTokenAmounts',
|
|
1966
1966
|
E([
|
|
@@ -1972,169 +1972,169 @@ function ps() {
|
|
|
1972
1972
|
],
|
|
1973
1973
|
]);
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1976
|
-
return S(
|
|
1975
|
+
function ic() {
|
|
1976
|
+
return S(ps(), Ds());
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function sc(e, t) {
|
|
1979
1979
|
return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...(t ?? {}) };
|
|
1980
1980
|
}
|
|
1981
|
-
function
|
|
1981
|
+
function _c(e, t) {
|
|
1982
1982
|
return t.__kind === e;
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function bs() {
|
|
1985
1985
|
return l([
|
|
1986
1986
|
['discriminator', g(C(), 8)],
|
|
1987
1987
|
['whirlpool', c()],
|
|
1988
1988
|
['positionMint', c()],
|
|
1989
1989
|
['liquidity', v()],
|
|
1990
|
-
['tickLowerIndex',
|
|
1991
|
-
['tickUpperIndex',
|
|
1990
|
+
['tickLowerIndex', fe()],
|
|
1991
|
+
['tickUpperIndex', fe()],
|
|
1992
1992
|
['feeGrowthCheckpointA', v()],
|
|
1993
1993
|
['feeOwedA', u()],
|
|
1994
1994
|
['feeGrowthCheckpointB', v()],
|
|
1995
1995
|
['feeOwedB', u()],
|
|
1996
|
-
['rewardInfos',
|
|
1996
|
+
['rewardInfos', Ae(on(), { size: 3 })],
|
|
1997
1997
|
]);
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function Us() {
|
|
2000
2000
|
return E([
|
|
2001
2001
|
['discriminator', m(h(), 8)],
|
|
2002
2002
|
['whirlpool', R()],
|
|
2003
2003
|
['positionMint', R()],
|
|
2004
2004
|
['liquidity', p()],
|
|
2005
|
-
['tickLowerIndex',
|
|
2006
|
-
['tickUpperIndex',
|
|
2005
|
+
['tickLowerIndex', Ie()],
|
|
2006
|
+
['tickUpperIndex', Ie()],
|
|
2007
2007
|
['feeGrowthCheckpointA', p()],
|
|
2008
2008
|
['feeOwedA', A()],
|
|
2009
2009
|
['feeGrowthCheckpointB', p()],
|
|
2010
2010
|
['feeOwedB', A()],
|
|
2011
|
-
['rewardInfos',
|
|
2011
|
+
['rewardInfos', de(an(), { size: 3 })],
|
|
2012
2012
|
]);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2015
|
-
return S(
|
|
2014
|
+
function cc() {
|
|
2015
|
+
return S(bs(), Us());
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function on() {
|
|
2018
2018
|
return l([
|
|
2019
2019
|
['growthInsideCheckpoint', v()],
|
|
2020
2020
|
['amountOwed', u()],
|
|
2021
2021
|
]);
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function an() {
|
|
2024
2024
|
return E([
|
|
2025
2025
|
['growthInsideCheckpoint', p()],
|
|
2026
2026
|
['amountOwed', A()],
|
|
2027
2027
|
]);
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2030
|
-
return S(
|
|
2029
|
+
function Rc() {
|
|
2030
|
+
return S(on(), an());
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function Ps() {
|
|
2033
2033
|
return l([
|
|
2034
2034
|
['mint', c()],
|
|
2035
2035
|
['owner', c()],
|
|
2036
2036
|
['amount', u()],
|
|
2037
|
-
['delegateFlag',
|
|
2037
|
+
['delegateFlag', B()],
|
|
2038
2038
|
['delegate', c()],
|
|
2039
|
-
['state',
|
|
2040
|
-
['isNativeFlag',
|
|
2039
|
+
['state', sn()],
|
|
2040
|
+
['isNativeFlag', B()],
|
|
2041
2041
|
['nativeAmount', u()],
|
|
2042
2042
|
['delegateAmount', u()],
|
|
2043
|
-
['closeAuthorityFlag',
|
|
2043
|
+
['closeAuthorityFlag', B()],
|
|
2044
2044
|
['closeAuthority', c()],
|
|
2045
2045
|
]);
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function ws() {
|
|
2048
2048
|
return E([
|
|
2049
2049
|
['mint', R()],
|
|
2050
2050
|
['owner', R()],
|
|
2051
2051
|
['amount', A()],
|
|
2052
|
-
['delegateFlag',
|
|
2052
|
+
['delegateFlag', G()],
|
|
2053
2053
|
['delegate', R()],
|
|
2054
|
-
['state',
|
|
2055
|
-
['isNativeFlag',
|
|
2054
|
+
['state', _n()],
|
|
2055
|
+
['isNativeFlag', G()],
|
|
2056
2056
|
['nativeAmount', A()],
|
|
2057
2057
|
['delegateAmount', A()],
|
|
2058
|
-
['closeAuthorityFlag',
|
|
2058
|
+
['closeAuthorityFlag', G()],
|
|
2059
2059
|
['closeAuthority', R()],
|
|
2060
2060
|
]);
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2063
|
-
return S(
|
|
2062
|
+
function uc() {
|
|
2063
|
+
return S(Ps(), ws());
|
|
2064
2064
|
}
|
|
2065
|
-
var
|
|
2065
|
+
var ye = /* @__PURE__ */ ((e) => (
|
|
2066
2066
|
(e[(e.Uninitialized = 0)] = 'Uninitialized'),
|
|
2067
2067
|
(e[(e.Initialized = 1)] = 'Initialized'),
|
|
2068
2068
|
(e[(e.Frozen = 2)] = 'Frozen'),
|
|
2069
2069
|
e
|
|
2070
|
-
))(
|
|
2071
|
-
function an() {
|
|
2072
|
-
return oe(Me);
|
|
2073
|
-
}
|
|
2070
|
+
))(ye || {});
|
|
2074
2071
|
function sn() {
|
|
2075
|
-
return ae(
|
|
2072
|
+
return ae(ye);
|
|
2076
2073
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return
|
|
2074
|
+
function _n() {
|
|
2075
|
+
return ie(ye);
|
|
2079
2076
|
}
|
|
2080
|
-
function
|
|
2077
|
+
function Ac() {
|
|
2078
|
+
return S(sn(), _n());
|
|
2079
|
+
}
|
|
2080
|
+
function xs() {
|
|
2081
2081
|
return l([
|
|
2082
|
-
['mintAuthorityFlag',
|
|
2082
|
+
['mintAuthorityFlag', B()],
|
|
2083
2083
|
['mintAuthority', c()],
|
|
2084
2084
|
['supply', u()],
|
|
2085
2085
|
['decimals', O()],
|
|
2086
|
-
['isInitialized',
|
|
2087
|
-
['freezeAuthorityFlag',
|
|
2086
|
+
['isInitialized', Mt()],
|
|
2087
|
+
['freezeAuthorityFlag', B()],
|
|
2088
2088
|
['freezeAuthority', c()],
|
|
2089
2089
|
]);
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function Ms() {
|
|
2092
2092
|
return E([
|
|
2093
|
-
['mintAuthorityFlag',
|
|
2093
|
+
['mintAuthorityFlag', G()],
|
|
2094
2094
|
['mintAuthority', R()],
|
|
2095
2095
|
['supply', A()],
|
|
2096
2096
|
['decimals', I()],
|
|
2097
|
-
['isInitialized',
|
|
2098
|
-
['freezeAuthorityFlag',
|
|
2097
|
+
['isInitialized', yt()],
|
|
2098
|
+
['freezeAuthorityFlag', G()],
|
|
2099
2099
|
['freezeAuthority', R()],
|
|
2100
2100
|
]);
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2103
|
-
return S(
|
|
2102
|
+
function dc() {
|
|
2103
|
+
return S(xs(), Ms());
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2106
|
-
return
|
|
2105
|
+
function cn() {
|
|
2106
|
+
return re([
|
|
2107
2107
|
['UpdateCrankRewardDefault', l([['newCrankRewardDefault', u()]])],
|
|
2108
2108
|
['UpdateGlobalConfigAuthority', l([['newAuthority', c()]])],
|
|
2109
2109
|
]);
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
return
|
|
2111
|
+
function Rn() {
|
|
2112
|
+
return oe([
|
|
2113
2113
|
['UpdateCrankRewardDefault', E([['newCrankRewardDefault', A()]])],
|
|
2114
2114
|
['UpdateGlobalConfigAuthority', E([['newAuthority', R()]])],
|
|
2115
2115
|
]);
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2118
|
-
return S(
|
|
2117
|
+
function Oc() {
|
|
2118
|
+
return S(cn(), Rn());
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2120
|
+
function lc(e, t) {
|
|
2121
2121
|
return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...(t ?? {}) };
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Ec(e, t) {
|
|
2124
2124
|
return t.__kind === e;
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function ys() {
|
|
2127
2127
|
return l([
|
|
2128
2128
|
['discriminator', g(C(), 8)],
|
|
2129
2129
|
['whirlpoolsConfig', c()],
|
|
2130
2130
|
['whirlpoolBump', g(C(), 1)],
|
|
2131
|
-
['tickSpacing',
|
|
2131
|
+
['tickSpacing', Ne()],
|
|
2132
2132
|
['feeTierIndexSeed', g(C(), 2)],
|
|
2133
|
-
['feeRate',
|
|
2134
|
-
['protocolFeeRate',
|
|
2133
|
+
['feeRate', Ne()],
|
|
2134
|
+
['protocolFeeRate', Ne()],
|
|
2135
2135
|
['liquidity', v()],
|
|
2136
2136
|
['sqrtPrice', v()],
|
|
2137
|
-
['tickCurrentIndex',
|
|
2137
|
+
['tickCurrentIndex', fe()],
|
|
2138
2138
|
['protocolFeeOwedA', u()],
|
|
2139
2139
|
['protocolFeeOwedB', u()],
|
|
2140
2140
|
['tokenMintA', c()],
|
|
@@ -2144,21 +2144,21 @@ function Ms() {
|
|
|
2144
2144
|
['tokenVaultB', c()],
|
|
2145
2145
|
['feeGrowthGlobalB', v()],
|
|
2146
2146
|
['rewardLastUpdatedTimestamp', u()],
|
|
2147
|
-
['rewardInfos',
|
|
2147
|
+
['rewardInfos', Ae(un(), { size: 3 })],
|
|
2148
2148
|
]);
|
|
2149
2149
|
}
|
|
2150
|
-
function
|
|
2150
|
+
function ks() {
|
|
2151
2151
|
return E([
|
|
2152
2152
|
['discriminator', m(h(), 8)],
|
|
2153
2153
|
['whirlpoolsConfig', R()],
|
|
2154
2154
|
['whirlpoolBump', m(h(), 1)],
|
|
2155
|
-
['tickSpacing',
|
|
2155
|
+
['tickSpacing', Te()],
|
|
2156
2156
|
['feeTierIndexSeed', m(h(), 2)],
|
|
2157
|
-
['feeRate',
|
|
2158
|
-
['protocolFeeRate',
|
|
2157
|
+
['feeRate', Te()],
|
|
2158
|
+
['protocolFeeRate', Te()],
|
|
2159
2159
|
['liquidity', p()],
|
|
2160
2160
|
['sqrtPrice', p()],
|
|
2161
|
-
['tickCurrentIndex',
|
|
2161
|
+
['tickCurrentIndex', Ie()],
|
|
2162
2162
|
['protocolFeeOwedA', A()],
|
|
2163
2163
|
['protocolFeeOwedB', A()],
|
|
2164
2164
|
['tokenMintA', R()],
|
|
@@ -2168,13 +2168,13 @@ function ys() {
|
|
|
2168
2168
|
['tokenVaultB', R()],
|
|
2169
2169
|
['feeGrowthGlobalB', p()],
|
|
2170
2170
|
['rewardLastUpdatedTimestamp', A()],
|
|
2171
|
-
['rewardInfos',
|
|
2171
|
+
['rewardInfos', de(An(), { size: 3 })],
|
|
2172
2172
|
]);
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2175
|
-
return S(
|
|
2174
|
+
function Nc() {
|
|
2175
|
+
return S(ys(), ks());
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2177
|
+
function un() {
|
|
2178
2178
|
return l([
|
|
2179
2179
|
['mint', c()],
|
|
2180
2180
|
['vault', c()],
|
|
@@ -2183,7 +2183,7 @@ function Rn() {
|
|
|
2183
2183
|
['growthGlobalX64', v()],
|
|
2184
2184
|
]);
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function An() {
|
|
2187
2187
|
return E([
|
|
2188
2188
|
['mint', R()],
|
|
2189
2189
|
['vault', R()],
|
|
@@ -2192,12 +2192,12 @@ function un() {
|
|
|
2192
2192
|
['growthGlobalX64', p()],
|
|
2193
2193
|
]);
|
|
2194
2194
|
}
|
|
2195
|
-
function
|
|
2196
|
-
return S(
|
|
2195
|
+
function Tc() {
|
|
2196
|
+
return S(un(), An());
|
|
2197
2197
|
}
|
|
2198
|
-
function
|
|
2198
|
+
function Bs() {
|
|
2199
2199
|
return l([
|
|
2200
|
-
['discriminator',
|
|
2200
|
+
['discriminator', Ue()],
|
|
2201
2201
|
['positionTokenAccount', c()],
|
|
2202
2202
|
['actionData', g(C(), 64)],
|
|
2203
2203
|
['automationIndex', O()],
|
|
@@ -2215,9 +2215,9 @@ function ks() {
|
|
|
2215
2215
|
['reserved', g(C(), 272)],
|
|
2216
2216
|
]);
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function dn() {
|
|
2219
2219
|
return E([
|
|
2220
|
-
['discriminator',
|
|
2220
|
+
['discriminator', Pe()],
|
|
2221
2221
|
['positionTokenAccount', R()],
|
|
2222
2222
|
['actionData', m(h(), 64)],
|
|
2223
2223
|
['automationIndex', I()],
|
|
@@ -2235,30 +2235,30 @@ function An() {
|
|
|
2235
2235
|
['reserved', m(h(), 272)],
|
|
2236
2236
|
]);
|
|
2237
2237
|
}
|
|
2238
|
-
function
|
|
2239
|
-
return S(
|
|
2238
|
+
function Sc() {
|
|
2239
|
+
return S(Bs(), dn());
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2242
|
-
return
|
|
2243
|
-
}
|
|
2244
|
-
async function Sc(e, t, n) {
|
|
2245
|
-
const o = await Bs(e, t, n);
|
|
2246
|
-
return (pt(o), o);
|
|
2247
|
-
}
|
|
2248
|
-
async function Bs(e, t, n) {
|
|
2249
|
-
const o = await Lt(e, t, n);
|
|
2250
|
-
return dn(o);
|
|
2241
|
+
function On(e) {
|
|
2242
|
+
return ht(e, dn());
|
|
2251
2243
|
}
|
|
2252
2244
|
async function fc(e, t, n) {
|
|
2253
2245
|
const o = await Gs(e, t, n);
|
|
2254
2246
|
return (Dt(o), o);
|
|
2255
2247
|
}
|
|
2256
2248
|
async function Gs(e, t, n) {
|
|
2257
|
-
|
|
2249
|
+
const o = await vt(e, t, n);
|
|
2250
|
+
return On(o);
|
|
2251
|
+
}
|
|
2252
|
+
async function Ic(e, t, n) {
|
|
2253
|
+
const o = await Vs(e, t, n);
|
|
2254
|
+
return (bt(o), o);
|
|
2258
2255
|
}
|
|
2259
|
-
function Vs() {
|
|
2256
|
+
async function Vs(e, t, n) {
|
|
2257
|
+
return (await pt(e, t, n)).map((r) => On(r));
|
|
2258
|
+
}
|
|
2259
|
+
function Fs() {
|
|
2260
2260
|
return l([
|
|
2261
|
-
['discriminator',
|
|
2261
|
+
['discriminator', Ue()],
|
|
2262
2262
|
['bump', O()],
|
|
2263
2263
|
['padding', g(C(), 6)],
|
|
2264
2264
|
['globalConfigAuthority', c()],
|
|
@@ -2266,9 +2266,9 @@ function Vs() {
|
|
|
2266
2266
|
['reserved', g(C(), 976)],
|
|
2267
2267
|
]);
|
|
2268
2268
|
}
|
|
2269
|
-
function
|
|
2269
|
+
function ln() {
|
|
2270
2270
|
return E([
|
|
2271
|
-
['discriminator',
|
|
2271
|
+
['discriminator', Pe()],
|
|
2272
2272
|
['bump', I()],
|
|
2273
2273
|
['padding', m(h(), 6)],
|
|
2274
2274
|
['globalConfigAuthority', R()],
|
|
@@ -2276,28 +2276,28 @@ function On() {
|
|
|
2276
2276
|
['reserved', m(h(), 976)],
|
|
2277
2277
|
]);
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2280
|
-
return S(
|
|
2281
|
-
}
|
|
2282
|
-
function ln(e) {
|
|
2283
|
-
return Ct(e, On());
|
|
2284
|
-
}
|
|
2285
|
-
async function gc(e, t, n) {
|
|
2286
|
-
const o = await Fs(e, t, n);
|
|
2287
|
-
return (pt(o), o);
|
|
2279
|
+
function gc() {
|
|
2280
|
+
return S(Fs(), ln());
|
|
2288
2281
|
}
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
return ln(o);
|
|
2282
|
+
function En(e) {
|
|
2283
|
+
return ht(e, ln());
|
|
2292
2284
|
}
|
|
2293
2285
|
async function mc(e, t, n) {
|
|
2294
2286
|
const o = await zs(e, t, n);
|
|
2295
2287
|
return (Dt(o), o);
|
|
2296
2288
|
}
|
|
2297
2289
|
async function zs(e, t, n) {
|
|
2298
|
-
|
|
2290
|
+
const o = await vt(e, t, n);
|
|
2291
|
+
return En(o);
|
|
2299
2292
|
}
|
|
2300
|
-
function
|
|
2293
|
+
async function Cc(e, t, n) {
|
|
2294
|
+
const o = await Hs(e, t, n);
|
|
2295
|
+
return (bt(o), o);
|
|
2296
|
+
}
|
|
2297
|
+
async function Hs(e, t, n) {
|
|
2298
|
+
return (await pt(e, t, n)).map((r) => En(r));
|
|
2299
|
+
}
|
|
2300
|
+
function Ws(e) {
|
|
2301
2301
|
if (!e) throw new Error('Expected a Address.');
|
|
2302
2302
|
return typeof e == 'object' && 'address' in e ? e.address : Array.isArray(e) ? e[0] : e;
|
|
2303
2303
|
}
|
|
@@ -2306,47 +2306,47 @@ function q(e, t) {
|
|
|
2306
2306
|
if (!n.value)
|
|
2307
2307
|
return Object.freeze({
|
|
2308
2308
|
address: e,
|
|
2309
|
-
role:
|
|
2309
|
+
role: ce.READONLY,
|
|
2310
2310
|
});
|
|
2311
|
-
const o = n.isWritable ?
|
|
2311
|
+
const o = n.isWritable ? ce.WRITABLE : ce.READONLY;
|
|
2312
2312
|
return Object.freeze({
|
|
2313
|
-
address:
|
|
2314
|
-
role:
|
|
2315
|
-
...(
|
|
2313
|
+
address: Ws(n.value),
|
|
2314
|
+
role: Ye(n.value) ? Es(o) : o,
|
|
2315
|
+
...(Ye(n.value) ? { signer: n.value } : {}),
|
|
2316
2316
|
});
|
|
2317
2317
|
};
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2320
|
-
return !!e && typeof e == 'object' && 'address' in e &&
|
|
2319
|
+
function Ye(e) {
|
|
2320
|
+
return !!e && typeof e == 'object' && 'address' in e && Is(e);
|
|
2321
2321
|
}
|
|
2322
|
-
const
|
|
2323
|
-
function
|
|
2324
|
-
return O().encode(
|
|
2322
|
+
const Nn = 2;
|
|
2323
|
+
function hc() {
|
|
2324
|
+
return O().encode(Nn);
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function Tn() {
|
|
2327
2327
|
return D(
|
|
2328
2328
|
l([
|
|
2329
2329
|
['discriminator', O()],
|
|
2330
|
-
['action',
|
|
2330
|
+
['action', Xt()],
|
|
2331
2331
|
['automationIndex', O()],
|
|
2332
|
-
['conditions',
|
|
2332
|
+
['conditions', Ae(Kt(), { size: 3 })],
|
|
2333
2333
|
]),
|
|
2334
|
-
(e) => ({ ...e, discriminator:
|
|
2334
|
+
(e) => ({ ...e, discriminator: Nn })
|
|
2335
2335
|
);
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Sn() {
|
|
2338
2338
|
return E([
|
|
2339
2339
|
['discriminator', I()],
|
|
2340
|
-
['action',
|
|
2340
|
+
['action', Yt()],
|
|
2341
2341
|
['automationIndex', I()],
|
|
2342
|
-
['conditions',
|
|
2342
|
+
['conditions', de(jt(), { size: 3 })],
|
|
2343
2343
|
]);
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2346
|
-
return S(
|
|
2345
|
+
function Lc() {
|
|
2346
|
+
return S(Tn(), Sn());
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2349
|
-
const n = t?.programAddress ??
|
|
2348
|
+
function vc(e, t) {
|
|
2349
|
+
const n = t?.programAddress ?? z,
|
|
2350
2350
|
r = {
|
|
2351
2351
|
positionOwner: { value: e.positionOwner ?? null, isWritable: !0 },
|
|
2352
2352
|
automation: { value: e.automation ?? null, isWritable: !0 },
|
|
@@ -2393,11 +2393,11 @@ function Lc(e, t) {
|
|
|
2393
2393
|
i(r.systemProgram),
|
|
2394
2394
|
i(r.ataProgram),
|
|
2395
2395
|
],
|
|
2396
|
-
data:
|
|
2396
|
+
data: Tn().encode(a),
|
|
2397
2397
|
programAddress: n,
|
|
2398
2398
|
});
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function $s(e) {
|
|
2401
2401
|
if (e.accounts.length < 14) throw new Error('Not enough accounts');
|
|
2402
2402
|
let t = 0;
|
|
2403
2403
|
const n = () => {
|
|
@@ -2422,33 +2422,33 @@ function Ws(e) {
|
|
|
2422
2422
|
systemProgram: n(),
|
|
2423
2423
|
ataProgram: n(),
|
|
2424
2424
|
},
|
|
2425
|
-
data:
|
|
2425
|
+
data: Sn().decode(e.data),
|
|
2426
2426
|
};
|
|
2427
2427
|
}
|
|
2428
|
-
const
|
|
2429
|
-
function
|
|
2430
|
-
return O().encode(
|
|
2428
|
+
const fn = 4;
|
|
2429
|
+
function pc() {
|
|
2430
|
+
return O().encode(fn);
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function In() {
|
|
2433
2433
|
return D(
|
|
2434
2434
|
l([
|
|
2435
2435
|
['discriminator', O()],
|
|
2436
|
-
['instructionData',
|
|
2436
|
+
['instructionData', Zt()],
|
|
2437
2437
|
]),
|
|
2438
|
-
(e) => ({ ...e, discriminator:
|
|
2438
|
+
(e) => ({ ...e, discriminator: fn })
|
|
2439
2439
|
);
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function gn() {
|
|
2442
2442
|
return E([
|
|
2443
2443
|
['discriminator', I()],
|
|
2444
|
-
['instructionData',
|
|
2444
|
+
['instructionData', Qt()],
|
|
2445
2445
|
]);
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2448
|
-
return S(
|
|
2447
|
+
function Dc() {
|
|
2448
|
+
return S(In(), gn());
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2451
|
-
const n = t?.programAddress ??
|
|
2450
|
+
function bc(e, t) {
|
|
2451
|
+
const n = t?.programAddress ?? z,
|
|
2452
2452
|
r = {
|
|
2453
2453
|
payer: { value: e.payer ?? null, isWritable: !0 },
|
|
2454
2454
|
automation: { value: e.automation ?? null, isWritable: !0 },
|
|
@@ -2459,11 +2459,11 @@ function Dc(e, t) {
|
|
|
2459
2459
|
const i = q(n);
|
|
2460
2460
|
return Object.freeze({
|
|
2461
2461
|
accounts: [i(r.payer), i(r.automation), i(r.systemProgram)],
|
|
2462
|
-
data:
|
|
2462
|
+
data: In().encode(a),
|
|
2463
2463
|
programAddress: n,
|
|
2464
2464
|
});
|
|
2465
2465
|
}
|
|
2466
|
-
function
|
|
2466
|
+
function Xs(e) {
|
|
2467
2467
|
if (e.accounts.length < 3) throw new Error('Not enough accounts');
|
|
2468
2468
|
let t = 0;
|
|
2469
2469
|
const n = () => {
|
|
@@ -2477,14 +2477,14 @@ function $s(e) {
|
|
|
2477
2477
|
automation: n(),
|
|
2478
2478
|
systemProgram: n(),
|
|
2479
2479
|
},
|
|
2480
|
-
data:
|
|
2480
|
+
data: gn().decode(e.data),
|
|
2481
2481
|
};
|
|
2482
2482
|
}
|
|
2483
|
-
const
|
|
2484
|
-
function
|
|
2485
|
-
return O().encode(
|
|
2483
|
+
const mn = 6;
|
|
2484
|
+
function Uc() {
|
|
2485
|
+
return O().encode(mn);
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function Cn() {
|
|
2488
2488
|
return D(
|
|
2489
2489
|
l([
|
|
2490
2490
|
['discriminator', O()],
|
|
@@ -2493,22 +2493,22 @@ function mn() {
|
|
|
2493
2493
|
]),
|
|
2494
2494
|
(e) => ({
|
|
2495
2495
|
...e,
|
|
2496
|
-
discriminator:
|
|
2496
|
+
discriminator: mn,
|
|
2497
2497
|
})
|
|
2498
2498
|
);
|
|
2499
2499
|
}
|
|
2500
|
-
function
|
|
2500
|
+
function hn() {
|
|
2501
2501
|
return E([
|
|
2502
2502
|
['discriminator', I()],
|
|
2503
2503
|
['minSqrtPrice', p()],
|
|
2504
2504
|
['maxSqrtPrice', p()],
|
|
2505
2505
|
]);
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2508
|
-
return S(
|
|
2507
|
+
function Pc() {
|
|
2508
|
+
return S(Cn(), hn());
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
const n = t?.programAddress ??
|
|
2510
|
+
function wc(e, t) {
|
|
2511
|
+
const n = t?.programAddress ?? z,
|
|
2512
2512
|
r = {
|
|
2513
2513
|
crankOperator: { value: e.crankOperator ?? null, isWritable: !0 },
|
|
2514
2514
|
crankOperatorTokenAccountA: {
|
|
@@ -2586,11 +2586,11 @@ function Pc(e, t) {
|
|
|
2586
2586
|
i(r.whirlpoolProgram),
|
|
2587
2587
|
i(r.instructionsSysvar),
|
|
2588
2588
|
],
|
|
2589
|
-
data:
|
|
2589
|
+
data: Cn().encode(a),
|
|
2590
2590
|
programAddress: n,
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
function
|
|
2593
|
+
function Ys(e) {
|
|
2594
2594
|
if (e.accounts.length < 22) throw new Error('Not enough accounts');
|
|
2595
2595
|
let t = 0;
|
|
2596
2596
|
const n = () => {
|
|
@@ -2623,27 +2623,27 @@ function Xs(e) {
|
|
|
2623
2623
|
whirlpoolProgram: n(),
|
|
2624
2624
|
instructionsSysvar: n(),
|
|
2625
2625
|
},
|
|
2626
|
-
data:
|
|
2626
|
+
data: hn().decode(e.data),
|
|
2627
2627
|
};
|
|
2628
2628
|
}
|
|
2629
|
-
const
|
|
2630
|
-
function
|
|
2631
|
-
return O().encode(
|
|
2629
|
+
const Ln = 5;
|
|
2630
|
+
function xc() {
|
|
2631
|
+
return O().encode(Ln);
|
|
2632
2632
|
}
|
|
2633
|
-
function
|
|
2633
|
+
function vn() {
|
|
2634
2634
|
return D(l([['discriminator', O()]]), (e) => ({
|
|
2635
2635
|
...e,
|
|
2636
|
-
discriminator:
|
|
2636
|
+
discriminator: Ln,
|
|
2637
2637
|
}));
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function pn() {
|
|
2640
2640
|
return E([['discriminator', I()]]);
|
|
2641
2641
|
}
|
|
2642
|
-
function
|
|
2643
|
-
return S(
|
|
2642
|
+
function Mc() {
|
|
2643
|
+
return S(vn(), pn());
|
|
2644
2644
|
}
|
|
2645
|
-
function
|
|
2646
|
-
const n = t?.programAddress ??
|
|
2645
|
+
function yc(e, t) {
|
|
2646
|
+
const n = t?.programAddress ?? z,
|
|
2647
2647
|
r = {
|
|
2648
2648
|
crankOperator: { value: e.crankOperator ?? null, isWritable: !0 },
|
|
2649
2649
|
crankOperatorTokenAccountA: {
|
|
@@ -2714,11 +2714,11 @@ function Mc(e, t) {
|
|
|
2714
2714
|
a(r.systemProgram),
|
|
2715
2715
|
a(r.ataProgram),
|
|
2716
2716
|
],
|
|
2717
|
-
data:
|
|
2717
|
+
data: vn().encode({}),
|
|
2718
2718
|
programAddress: n,
|
|
2719
2719
|
});
|
|
2720
2720
|
}
|
|
2721
|
-
function
|
|
2721
|
+
function Ks(e) {
|
|
2722
2722
|
if (e.accounts.length < 21) throw new Error('Not enough accounts');
|
|
2723
2723
|
let t = 0;
|
|
2724
2724
|
const n = () => {
|
|
@@ -2750,14 +2750,14 @@ function Ys(e) {
|
|
|
2750
2750
|
systemProgram: n(),
|
|
2751
2751
|
ataProgram: n(),
|
|
2752
2752
|
},
|
|
2753
|
-
data:
|
|
2753
|
+
data: pn().decode(e.data),
|
|
2754
2754
|
};
|
|
2755
2755
|
}
|
|
2756
|
-
const
|
|
2757
|
-
function
|
|
2758
|
-
return O().encode(
|
|
2756
|
+
const Dn = 0;
|
|
2757
|
+
function kc() {
|
|
2758
|
+
return O().encode(Dn);
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function bn() {
|
|
2761
2761
|
return D(
|
|
2762
2762
|
l([
|
|
2763
2763
|
['discriminator', O()],
|
|
@@ -2766,22 +2766,22 @@ function Dn() {
|
|
|
2766
2766
|
]),
|
|
2767
2767
|
(e) => ({
|
|
2768
2768
|
...e,
|
|
2769
|
-
discriminator:
|
|
2769
|
+
discriminator: Dn,
|
|
2770
2770
|
})
|
|
2771
2771
|
);
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function Un() {
|
|
2774
2774
|
return E([
|
|
2775
2775
|
['discriminator', I()],
|
|
2776
2776
|
['globalConfigAuthority', R()],
|
|
2777
2777
|
['crankRewardDefault', A()],
|
|
2778
2778
|
]);
|
|
2779
2779
|
}
|
|
2780
|
-
function
|
|
2781
|
-
return S(
|
|
2780
|
+
function Bc() {
|
|
2781
|
+
return S(bn(), Un());
|
|
2782
2782
|
}
|
|
2783
|
-
function
|
|
2784
|
-
const n = t?.programAddress ??
|
|
2783
|
+
function Gc(e, t) {
|
|
2784
|
+
const n = t?.programAddress ?? z,
|
|
2785
2785
|
r = {
|
|
2786
2786
|
deployer: { value: e.deployer ?? null, isWritable: !0 },
|
|
2787
2787
|
globalConfig: { value: e.globalConfig ?? null, isWritable: !0 },
|
|
@@ -2792,11 +2792,11 @@ function Bc(e, t) {
|
|
|
2792
2792
|
const i = q(n);
|
|
2793
2793
|
return Object.freeze({
|
|
2794
2794
|
accounts: [i(r.deployer), i(r.globalConfig), i(r.systemProgram)],
|
|
2795
|
-
data:
|
|
2795
|
+
data: bn().encode(a),
|
|
2796
2796
|
programAddress: n,
|
|
2797
2797
|
});
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2799
|
+
function js(e) {
|
|
2800
2800
|
if (e.accounts.length < 3) throw new Error('Not enough accounts');
|
|
2801
2801
|
let t = 0;
|
|
2802
2802
|
const n = () => {
|
|
@@ -2810,24 +2810,24 @@ function Ks(e) {
|
|
|
2810
2810
|
globalConfig: n(),
|
|
2811
2811
|
systemProgram: n(),
|
|
2812
2812
|
},
|
|
2813
|
-
data:
|
|
2813
|
+
data: Un().decode(e.data),
|
|
2814
2814
|
};
|
|
2815
2815
|
}
|
|
2816
|
-
const
|
|
2817
|
-
function
|
|
2818
|
-
return O().encode(
|
|
2819
|
-
}
|
|
2820
|
-
function Pn() {
|
|
2821
|
-
return D(l([['discriminator', O()]]), (e) => ({ ...e, discriminator: Un }));
|
|
2816
|
+
const Pn = 3;
|
|
2817
|
+
function Vc() {
|
|
2818
|
+
return O().encode(Pn);
|
|
2822
2819
|
}
|
|
2823
2820
|
function wn() {
|
|
2821
|
+
return D(l([['discriminator', O()]]), (e) => ({ ...e, discriminator: Pn }));
|
|
2822
|
+
}
|
|
2823
|
+
function xn() {
|
|
2824
2824
|
return E([['discriminator', I()]]);
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2827
|
-
return S(
|
|
2826
|
+
function Fc() {
|
|
2827
|
+
return S(wn(), xn());
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2830
|
-
const n = t?.programAddress ??
|
|
2829
|
+
function zc(e, t) {
|
|
2830
|
+
const n = t?.programAddress ?? z,
|
|
2831
2831
|
r = {
|
|
2832
2832
|
positionOwner: { value: e.positionOwner ?? null, isWritable: !0 },
|
|
2833
2833
|
positionOwnerTokenAccountA: {
|
|
@@ -2865,11 +2865,11 @@ function Fc(e, t) {
|
|
|
2865
2865
|
a(r.systemProgram),
|
|
2866
2866
|
a(r.ataProgram),
|
|
2867
2867
|
],
|
|
2868
|
-
data:
|
|
2868
|
+
data: wn().encode({}),
|
|
2869
2869
|
programAddress: n,
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
2872
|
-
function
|
|
2872
|
+
function Js(e) {
|
|
2873
2873
|
if (e.accounts.length < 10) throw new Error('Not enough accounts');
|
|
2874
2874
|
let t = 0;
|
|
2875
2875
|
const n = () => {
|
|
@@ -2890,36 +2890,36 @@ function js(e) {
|
|
|
2890
2890
|
systemProgram: n(),
|
|
2891
2891
|
ataProgram: n(),
|
|
2892
2892
|
},
|
|
2893
|
-
data:
|
|
2893
|
+
data: xn().decode(e.data),
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
|
-
const
|
|
2897
|
-
function
|
|
2898
|
-
return O().encode(
|
|
2896
|
+
const Mn = 1;
|
|
2897
|
+
function Hc() {
|
|
2898
|
+
return O().encode(Mn);
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function yn() {
|
|
2901
2901
|
return D(
|
|
2902
2902
|
l([
|
|
2903
2903
|
['discriminator', O()],
|
|
2904
|
-
['instructionData',
|
|
2904
|
+
['instructionData', cn()],
|
|
2905
2905
|
]),
|
|
2906
2906
|
(e) => ({
|
|
2907
2907
|
...e,
|
|
2908
|
-
discriminator:
|
|
2908
|
+
discriminator: Mn,
|
|
2909
2909
|
})
|
|
2910
2910
|
);
|
|
2911
2911
|
}
|
|
2912
|
-
function
|
|
2912
|
+
function kn() {
|
|
2913
2913
|
return E([
|
|
2914
2914
|
['discriminator', I()],
|
|
2915
|
-
['instructionData',
|
|
2915
|
+
['instructionData', Rn()],
|
|
2916
2916
|
]);
|
|
2917
2917
|
}
|
|
2918
|
-
function
|
|
2919
|
-
return S(
|
|
2918
|
+
function Wc() {
|
|
2919
|
+
return S(yn(), kn());
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2922
|
-
const n = t?.programAddress ??
|
|
2921
|
+
function $c(e, t) {
|
|
2922
|
+
const n = t?.programAddress ?? z,
|
|
2923
2923
|
r = {
|
|
2924
2924
|
globalConfigAuthority: {
|
|
2925
2925
|
value: e.globalConfigAuthority ?? null,
|
|
@@ -2931,11 +2931,11 @@ function Wc(e, t) {
|
|
|
2931
2931
|
i = q(n);
|
|
2932
2932
|
return Object.freeze({
|
|
2933
2933
|
accounts: [i(r.globalConfigAuthority), i(r.globalConfig)],
|
|
2934
|
-
data:
|
|
2934
|
+
data: yn().encode(a),
|
|
2935
2935
|
programAddress: n,
|
|
2936
2936
|
});
|
|
2937
2937
|
}
|
|
2938
|
-
function
|
|
2938
|
+
function qs(e) {
|
|
2939
2939
|
if (e.accounts.length < 2) throw new Error('Not enough accounts');
|
|
2940
2940
|
let t = 0;
|
|
2941
2941
|
const n = () => {
|
|
@@ -2948,16 +2948,16 @@ function Js(e) {
|
|
|
2948
2948
|
globalConfigAuthority: n(),
|
|
2949
2949
|
globalConfig: n(),
|
|
2950
2950
|
},
|
|
2951
|
-
data:
|
|
2951
|
+
data: kn().decode(e.data),
|
|
2952
2952
|
};
|
|
2953
2953
|
}
|
|
2954
|
-
const
|
|
2955
|
-
var
|
|
2954
|
+
const z = 'J5YZi2SoRbaAFcMJWcvkQRUgpB3YdMHJ4AEKhEV6ED7x';
|
|
2955
|
+
var Zs = /* @__PURE__ */ ((e) => (
|
|
2956
2956
|
(e[(e.Automation = 0)] = 'Automation'),
|
|
2957
2957
|
(e[(e.GlobalConfig = 1)] = 'GlobalConfig'),
|
|
2958
2958
|
e
|
|
2959
|
-
))(
|
|
2960
|
-
|
|
2959
|
+
))(Zs || {}),
|
|
2960
|
+
Qs = /* @__PURE__ */ ((e) => (
|
|
2961
2961
|
(e[(e.InitializeGlobalConfig = 0)] = 'InitializeGlobalConfig'),
|
|
2962
2962
|
(e[(e.UpdateGlobalConfig = 1)] = 'UpdateGlobalConfig'),
|
|
2963
2963
|
(e[(e.CreateAutomation = 2)] = 'CreateAutomation'),
|
|
@@ -2966,29 +2966,29 @@ var qs = /* @__PURE__ */ ((e) => (
|
|
|
2966
2966
|
(e[(e.HarvestSwapAndReinvestPre = 5)] = 'HarvestSwapAndReinvestPre'),
|
|
2967
2967
|
(e[(e.HarvestSwapAndReinvestPost = 6)] = 'HarvestSwapAndReinvestPost'),
|
|
2968
2968
|
e
|
|
2969
|
-
))(
|
|
2970
|
-
function
|
|
2969
|
+
))(Qs || {});
|
|
2970
|
+
function e_(e) {
|
|
2971
2971
|
const t = 'data' in e ? e.data : e;
|
|
2972
|
-
if (
|
|
2973
|
-
if (
|
|
2974
|
-
if (
|
|
2975
|
-
if (
|
|
2976
|
-
if (
|
|
2977
|
-
if (
|
|
2978
|
-
if (
|
|
2972
|
+
if (F(t, O().encode(0), 0)) return 0;
|
|
2973
|
+
if (F(t, O().encode(1), 0)) return 1;
|
|
2974
|
+
if (F(t, O().encode(2), 0)) return 2;
|
|
2975
|
+
if (F(t, O().encode(3), 0)) return 3;
|
|
2976
|
+
if (F(t, O().encode(4), 0)) return 4;
|
|
2977
|
+
if (F(t, O().encode(5), 0)) return 5;
|
|
2978
|
+
if (F(t, O().encode(6), 0)) return 6;
|
|
2979
2979
|
throw new Error(
|
|
2980
2980
|
'The provided instruction could not be identified as a whirlpoolsAutomationProgram instruction.'
|
|
2981
2981
|
);
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2984
|
-
const t =
|
|
2983
|
+
function Xc(e) {
|
|
2984
|
+
const t = e_(e);
|
|
2985
2985
|
switch (t) {
|
|
2986
2986
|
case 0:
|
|
2987
2987
|
return (
|
|
2988
2988
|
Y(e),
|
|
2989
2989
|
{
|
|
2990
2990
|
instructionType: 0,
|
|
2991
|
-
...
|
|
2991
|
+
...js(e),
|
|
2992
2992
|
}
|
|
2993
2993
|
);
|
|
2994
2994
|
case 1:
|
|
@@ -2996,7 +2996,7 @@ function $c(e) {
|
|
|
2996
2996
|
Y(e),
|
|
2997
2997
|
{
|
|
2998
2998
|
instructionType: 1,
|
|
2999
|
-
...
|
|
2999
|
+
...qs(e),
|
|
3000
3000
|
}
|
|
3001
3001
|
);
|
|
3002
3002
|
case 2:
|
|
@@ -3004,7 +3004,7 @@ function $c(e) {
|
|
|
3004
3004
|
Y(e),
|
|
3005
3005
|
{
|
|
3006
3006
|
instructionType: 2,
|
|
3007
|
-
|
|
3007
|
+
...$s(e),
|
|
3008
3008
|
}
|
|
3009
3009
|
);
|
|
3010
3010
|
case 3:
|
|
@@ -3012,7 +3012,7 @@ function $c(e) {
|
|
|
3012
3012
|
Y(e),
|
|
3013
3013
|
{
|
|
3014
3014
|
instructionType: 3,
|
|
3015
|
-
...
|
|
3015
|
+
...Js(e),
|
|
3016
3016
|
}
|
|
3017
3017
|
);
|
|
3018
3018
|
case 4:
|
|
@@ -3020,7 +3020,7 @@ function $c(e) {
|
|
|
3020
3020
|
Y(e),
|
|
3021
3021
|
{
|
|
3022
3022
|
instructionType: 4,
|
|
3023
|
-
|
|
3023
|
+
...Xs(e),
|
|
3024
3024
|
}
|
|
3025
3025
|
);
|
|
3026
3026
|
case 5:
|
|
@@ -3028,7 +3028,7 @@ function $c(e) {
|
|
|
3028
3028
|
Y(e),
|
|
3029
3029
|
{
|
|
3030
3030
|
instructionType: 5,
|
|
3031
|
-
...
|
|
3031
|
+
...Ks(e),
|
|
3032
3032
|
}
|
|
3033
3033
|
);
|
|
3034
3034
|
case 6:
|
|
@@ -3036,96 +3036,96 @@ function $c(e) {
|
|
|
3036
3036
|
Y(e),
|
|
3037
3037
|
{
|
|
3038
3038
|
instructionType: 6,
|
|
3039
|
-
...
|
|
3039
|
+
...Ys(e),
|
|
3040
3040
|
}
|
|
3041
3041
|
);
|
|
3042
3042
|
default:
|
|
3043
3043
|
throw new Error(`Unrecognized instruction type: ${t}`);
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
3046
|
-
const
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
let
|
|
3046
|
+
const t_ = 6e3,
|
|
3047
|
+
n_ = 6001,
|
|
3048
|
+
r_ = 6002,
|
|
3049
|
+
o_ = 6003,
|
|
3050
|
+
a_ = 6004,
|
|
3051
|
+
i_ = 6005,
|
|
3052
|
+
s_ = 6006,
|
|
3053
|
+
__ = 6007,
|
|
3054
|
+
c_ = 6008,
|
|
3055
|
+
R_ = 6009,
|
|
3056
|
+
u_ = 6010,
|
|
3057
|
+
A_ = 6011,
|
|
3058
|
+
d_ = 6012,
|
|
3059
|
+
O_ = 6013,
|
|
3060
|
+
l_ = 6014,
|
|
3061
|
+
E_ = 6015,
|
|
3062
|
+
N_ = 6016,
|
|
3063
|
+
T_ = 6017,
|
|
3064
|
+
S_ = 6018,
|
|
3065
|
+
f_ = 6019,
|
|
3066
|
+
I_ = 6020,
|
|
3067
|
+
g_ = 6021,
|
|
3068
|
+
m_ = 6022,
|
|
3069
|
+
C_ = 6023,
|
|
3070
|
+
h_ = 6024,
|
|
3071
|
+
L_ = 6025,
|
|
3072
|
+
v_ = 6026,
|
|
3073
|
+
p_ = 6027,
|
|
3074
|
+
D_ = 6028,
|
|
3075
|
+
b_ = 6029,
|
|
3076
|
+
U_ = 6030,
|
|
3077
|
+
P_ = 6031;
|
|
3078
|
+
let Bn;
|
|
3079
3079
|
process.env.NODE_ENV !== 'production' &&
|
|
3080
|
-
(
|
|
3081
|
-
[
|
|
3082
|
-
[
|
|
3083
|
-
[
|
|
3084
|
-
[
|
|
3085
|
-
[
|
|
3086
|
-
[
|
|
3087
|
-
[
|
|
3088
|
-
[
|
|
3089
|
-
[
|
|
3090
|
-
[
|
|
3091
|
-
[
|
|
3092
|
-
[
|
|
3093
|
-
[
|
|
3094
|
-
[
|
|
3095
|
-
[
|
|
3096
|
-
[
|
|
3097
|
-
[
|
|
3098
|
-
[
|
|
3099
|
-
[
|
|
3100
|
-
[
|
|
3101
|
-
[
|
|
3102
|
-
[
|
|
3103
|
-
[
|
|
3104
|
-
[
|
|
3105
|
-
[
|
|
3106
|
-
[
|
|
3107
|
-
[
|
|
3108
|
-
[
|
|
3109
|
-
[
|
|
3110
|
-
[
|
|
3111
|
-
[
|
|
3112
|
-
[
|
|
3080
|
+
(Bn = {
|
|
3081
|
+
[R_]: 'Account already initialized',
|
|
3082
|
+
[u_]: 'Account not initialized',
|
|
3083
|
+
[S_]: 'Arithmetic error',
|
|
3084
|
+
[g_]: 'Condition violation',
|
|
3085
|
+
[c_]: 'Emit event error',
|
|
3086
|
+
[s_]: 'Invalid account address',
|
|
3087
|
+
[a_]: 'Incorrect owner',
|
|
3088
|
+
[n_]: 'Incorrect program id',
|
|
3089
|
+
[v_]: 'Insufficient funds to pay crank reward',
|
|
3090
|
+
[D_]: 'Insufficient instruction count after this instruction',
|
|
3091
|
+
[p_]: 'Insufficient instruction count before this instruction',
|
|
3092
|
+
[b_]: 'Invalid accompanying instruction',
|
|
3093
|
+
[__]: 'Invalid account data',
|
|
3094
|
+
[o_]: 'Invalid account role',
|
|
3095
|
+
[d_]: 'Invalid action',
|
|
3096
|
+
[E_]: 'Invalid action data length',
|
|
3097
|
+
[I_]: 'Invalid amount to fund automation',
|
|
3098
|
+
[T_]: 'Invalid automation action',
|
|
3099
|
+
[l_]: 'Invalid automation_index',
|
|
3100
|
+
[O_]: 'Invalid condition',
|
|
3101
|
+
[N_]: 'Invalid condition data length',
|
|
3102
|
+
[m_]: 'Invalid accounts for CPI',
|
|
3103
|
+
[C_]: 'Invalid instruction data for CPI',
|
|
3104
|
+
[h_]: 'Invalid crank reward',
|
|
3105
|
+
[f_]: 'Invalid next valid exection timestamp condition',
|
|
3106
|
+
[A_]: 'Position token amount must be 1',
|
|
3107
|
+
[U_]: 'Invalid remaining accounts length',
|
|
3108
|
+
[i_]: 'Invalid seeds',
|
|
3109
|
+
[r_]: 'Not enough account keys',
|
|
3110
|
+
[L_]: 'Redundant global config update',
|
|
3111
|
+
[t_]: 'Unknown instruction discriminator',
|
|
3112
|
+
[P_]: 'Unsupported token extension',
|
|
3113
3113
|
});
|
|
3114
|
-
function
|
|
3114
|
+
function Yc(e) {
|
|
3115
3115
|
return process.env.NODE_ENV !== 'production'
|
|
3116
|
-
?
|
|
3116
|
+
? Bn[e]
|
|
3117
3117
|
: 'Error message not available in production bundles.';
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3120
|
-
return
|
|
3119
|
+
function Kc(e, t, n, o) {
|
|
3120
|
+
return Ns(e, t, o?.programAddress ?? z, n);
|
|
3121
3121
|
}
|
|
3122
|
-
const
|
|
3122
|
+
const jc = 64;
|
|
3123
3123
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3124
|
-
function
|
|
3124
|
+
function w_(e) {
|
|
3125
3125
|
return e instanceof Uint8Array || (ArrayBuffer.isView(e) && e.constructor.name === 'Uint8Array');
|
|
3126
3126
|
}
|
|
3127
|
-
function
|
|
3128
|
-
const o =
|
|
3127
|
+
function Gn(e, t, n = '') {
|
|
3128
|
+
const o = w_(e),
|
|
3129
3129
|
r = e?.length;
|
|
3130
3130
|
if (!o || t !== void 0) {
|
|
3131
3131
|
const i = n && `"${n}" `,
|
|
@@ -3135,25 +3135,25 @@ function Bn(e, t, n = '') {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
return e;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function Ke(e, t = !0) {
|
|
3139
3139
|
if (e.destroyed) throw new Error('Hash instance has been destroyed');
|
|
3140
3140
|
if (t && e.finished) throw new Error('Hash#digest() has already been called');
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3143
|
-
|
|
3142
|
+
function x_(e, t) {
|
|
3143
|
+
Gn(e, void 0, 'digestInto() output');
|
|
3144
3144
|
const n = t.outputLen;
|
|
3145
3145
|
if (e.length < n) throw new Error('"digestInto() output" expected to be of length >=' + n);
|
|
3146
3146
|
}
|
|
3147
|
-
function
|
|
3147
|
+
function he(...e) {
|
|
3148
3148
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function Se(e) {
|
|
3151
3151
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function k(e, t) {
|
|
3154
3154
|
return (e << (32 - t)) | (e >>> t);
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function M_(e, t = {}) {
|
|
3157
3157
|
const n = (r, a) => e(a).update(r).digest(),
|
|
3158
3158
|
o = e(void 0);
|
|
3159
3159
|
return (
|
|
@@ -3164,16 +3164,16 @@ function x_(e, t = {}) {
|
|
|
3164
3164
|
Object.freeze(n)
|
|
3165
3165
|
);
|
|
3166
3166
|
}
|
|
3167
|
-
const
|
|
3167
|
+
const y_ = (e) => ({
|
|
3168
3168
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]),
|
|
3169
3169
|
});
|
|
3170
|
-
function
|
|
3170
|
+
function k_(e, t, n) {
|
|
3171
3171
|
return (e & t) ^ (~e & n);
|
|
3172
3172
|
}
|
|
3173
|
-
function
|
|
3173
|
+
function B_(e, t, n) {
|
|
3174
3174
|
return (e & t) ^ (e & n) ^ (t & n);
|
|
3175
3175
|
}
|
|
3176
|
-
class
|
|
3176
|
+
class G_ {
|
|
3177
3177
|
blockLen;
|
|
3178
3178
|
outputLen;
|
|
3179
3179
|
padOffset;
|
|
@@ -3191,16 +3191,16 @@ class B_ {
|
|
|
3191
3191
|
(this.padOffset = o),
|
|
3192
3192
|
(this.isLE = r),
|
|
3193
3193
|
(this.buffer = new Uint8Array(t)),
|
|
3194
|
-
(this.view =
|
|
3194
|
+
(this.view = Se(this.buffer)));
|
|
3195
3195
|
}
|
|
3196
3196
|
update(t) {
|
|
3197
|
-
(
|
|
3197
|
+
(Ke(this), Gn(t));
|
|
3198
3198
|
const { view: n, buffer: o, blockLen: r } = this,
|
|
3199
3199
|
a = t.length;
|
|
3200
3200
|
for (let i = 0; i < a; ) {
|
|
3201
3201
|
const s = Math.min(r - this.pos, a - i);
|
|
3202
3202
|
if (s === r) {
|
|
3203
|
-
const _ =
|
|
3203
|
+
const _ = Se(t);
|
|
3204
3204
|
for (; r <= a - i; i += r) this.process(_, i);
|
|
3205
3205
|
continue;
|
|
3206
3206
|
}
|
|
@@ -3212,15 +3212,15 @@ class B_ {
|
|
|
3212
3212
|
return ((this.length += t.length), this.roundClean(), this);
|
|
3213
3213
|
}
|
|
3214
3214
|
digestInto(t) {
|
|
3215
|
-
(
|
|
3215
|
+
(Ke(this), x_(t, this), (this.finished = !0));
|
|
3216
3216
|
const { buffer: n, view: o, blockLen: r, isLE: a } = this;
|
|
3217
3217
|
let { pos: i } = this;
|
|
3218
3218
|
((n[i++] = 128),
|
|
3219
|
-
|
|
3219
|
+
he(this.buffer.subarray(i)),
|
|
3220
3220
|
this.padOffset > r - i && (this.process(o, 0), (i = 0)));
|
|
3221
3221
|
for (let d = i; d < r; d++) n[d] = 0;
|
|
3222
3222
|
(o.setBigUint64(r - 8, BigInt(this.length * 8), a), this.process(o, 0));
|
|
3223
|
-
const s =
|
|
3223
|
+
const s = Se(t),
|
|
3224
3224
|
_ = this.outputLen;
|
|
3225
3225
|
if (_ % 4) throw new Error('_sha2: outputLen must be aligned to 32bit');
|
|
3226
3226
|
const N = _ / 4,
|
|
@@ -3253,7 +3253,7 @@ class B_ {
|
|
|
3253
3253
|
const W = /* @__PURE__ */ Uint32Array.from([
|
|
3254
3254
|
1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225,
|
|
3255
3255
|
]),
|
|
3256
|
-
|
|
3256
|
+
V_ = /* @__PURE__ */ Uint32Array.from([
|
|
3257
3257
|
1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221,
|
|
3258
3258
|
3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580,
|
|
3259
3259
|
3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986,
|
|
@@ -3264,7 +3264,7 @@ const W = /* @__PURE__ */ Uint32Array.from([
|
|
|
3264
3264
|
1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298,
|
|
3265
3265
|
]),
|
|
3266
3266
|
$ = /* @__PURE__ */ new Uint32Array(64);
|
|
3267
|
-
class
|
|
3267
|
+
class F_ extends G_ {
|
|
3268
3268
|
constructor(t) {
|
|
3269
3269
|
super(64, t, 8, !1);
|
|
3270
3270
|
}
|
|
@@ -3279,18 +3279,18 @@ class V_ extends B_ {
|
|
|
3279
3279
|
process(t, n) {
|
|
3280
3280
|
for (let d = 0; d < 16; d++, n += 4) $[d] = t.getUint32(n, !1);
|
|
3281
3281
|
for (let d = 16; d < 64; d++) {
|
|
3282
|
-
const
|
|
3282
|
+
const x = $[d - 15],
|
|
3283
3283
|
H = $[d - 2],
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
$[d] = (
|
|
3284
|
+
Be = k(x, 7) ^ k(x, 18) ^ (x >>> 3),
|
|
3285
|
+
Oe = k(H, 17) ^ k(H, 19) ^ (H >>> 10);
|
|
3286
|
+
$[d] = (Oe + $[d - 7] + Be + $[d - 16]) | 0;
|
|
3287
3287
|
}
|
|
3288
3288
|
let { A: o, B: r, C: a, D: i, E: s, F: _, G: N, H: f } = this;
|
|
3289
3289
|
for (let d = 0; d < 64; d++) {
|
|
3290
|
-
const
|
|
3291
|
-
H = (f +
|
|
3292
|
-
|
|
3293
|
-
((f = N), (N = _), (_ = s), (s = (i + H) | 0), (i = a), (a = r), (r = o), (o = (H +
|
|
3290
|
+
const x = k(s, 6) ^ k(s, 11) ^ k(s, 25),
|
|
3291
|
+
H = (f + x + k_(s, _, N) + V_[d] + $[d]) | 0,
|
|
3292
|
+
Oe = ((k(o, 2) ^ k(o, 13) ^ k(o, 22)) + B_(o, r, a)) | 0;
|
|
3293
|
+
((f = N), (N = _), (_ = s), (s = (i + H) | 0), (i = a), (a = r), (r = o), (o = (H + Oe) | 0));
|
|
3294
3294
|
}
|
|
3295
3295
|
((o = (o + this.A) | 0),
|
|
3296
3296
|
(r = (r + this.B) | 0),
|
|
@@ -3303,13 +3303,13 @@ class V_ extends B_ {
|
|
|
3303
3303
|
this.set(o, r, a, i, s, _, N, f));
|
|
3304
3304
|
}
|
|
3305
3305
|
roundClean() {
|
|
3306
|
-
|
|
3306
|
+
he($);
|
|
3307
3307
|
}
|
|
3308
3308
|
destroy() {
|
|
3309
|
-
(this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
3309
|
+
(this.set(0, 0, 0, 0, 0, 0, 0, 0), he(this.buffer));
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
|
-
class
|
|
3312
|
+
class z_ extends F_ {
|
|
3313
3313
|
// We cannot use array here since array allows indexing by variable
|
|
3314
3314
|
// which means optimizer/compiler cannot use registers.
|
|
3315
3315
|
A = W[0] | 0;
|
|
@@ -3324,31 +3324,36 @@ class F_ extends V_ {
|
|
|
3324
3324
|
super(32);
|
|
3325
3325
|
}
|
|
3326
3326
|
}
|
|
3327
|
-
const
|
|
3327
|
+
const H_ = /* @__PURE__ */ M_(() => new z_(), /* @__PURE__ */ y_(1)),
|
|
3328
|
+
ne = {
|
|
3329
|
+
programAddress: z,
|
|
3330
|
+
},
|
|
3328
3331
|
ee = c(),
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
function
|
|
3332
|
-
const n =
|
|
3332
|
+
je = pe(),
|
|
3333
|
+
W_ = new TextEncoder().encode('ProgramDerivedAddress');
|
|
3334
|
+
function ke(e, t) {
|
|
3335
|
+
const n = je.encode(e);
|
|
3333
3336
|
for (let o = 255; o > 0; o--) {
|
|
3334
3337
|
const r = [];
|
|
3335
3338
|
for (const s of t) r.push(...s);
|
|
3336
|
-
(r.push(o), r.push(...n), r.push(...
|
|
3337
|
-
const a =
|
|
3338
|
-
i =
|
|
3339
|
-
if (
|
|
3339
|
+
(r.push(o), r.push(...n), r.push(...W_));
|
|
3340
|
+
const a = H_(new Uint8Array(r)),
|
|
3341
|
+
i = je.decode(a);
|
|
3342
|
+
if (Zi(i)) return [i, o];
|
|
3340
3343
|
}
|
|
3341
3344
|
throw new Error('Failed to find viable PDA bump seed');
|
|
3342
3345
|
}
|
|
3343
|
-
async function
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
+
async function Jc(e) {
|
|
3347
|
+
const { programAddress: t } = { ...ne, ...e };
|
|
3348
|
+
return De({
|
|
3349
|
+
programAddress: t,
|
|
3346
3350
|
seeds: [new TextEncoder().encode('global_config')],
|
|
3347
3351
|
});
|
|
3348
3352
|
}
|
|
3349
|
-
async function
|
|
3350
|
-
|
|
3351
|
-
|
|
3353
|
+
async function qc(e, t, n, o) {
|
|
3354
|
+
const { programAddress: r } = { ...ne, ...o };
|
|
3355
|
+
return De({
|
|
3356
|
+
programAddress: r,
|
|
3352
3357
|
seeds: [
|
|
3353
3358
|
new TextEncoder().encode('automation'),
|
|
3354
3359
|
ee.encode(e),
|
|
@@ -3357,212 +3362,216 @@ async function Jc(e, t, n) {
|
|
|
3357
3362
|
],
|
|
3358
3363
|
});
|
|
3359
3364
|
}
|
|
3360
|
-
async function
|
|
3361
|
-
|
|
3362
|
-
|
|
3365
|
+
async function Zc(e, t) {
|
|
3366
|
+
const { programAddress: n } = { ...ne, ...t };
|
|
3367
|
+
return De({
|
|
3368
|
+
programAddress: n,
|
|
3363
3369
|
seeds: [new TextEncoder().encode('automation-authority'), ee.encode(e)],
|
|
3364
3370
|
});
|
|
3365
3371
|
}
|
|
3366
|
-
function
|
|
3367
|
-
|
|
3372
|
+
function Qc(e) {
|
|
3373
|
+
const { programAddress: t } = { ...ne, ...e };
|
|
3374
|
+
return ke(t, [new TextEncoder().encode('global_config')]);
|
|
3368
3375
|
}
|
|
3369
|
-
function
|
|
3370
|
-
|
|
3376
|
+
function eR(e, t, n, o) {
|
|
3377
|
+
const { programAddress: r } = { ...ne, ...o };
|
|
3378
|
+
return ke(r, [
|
|
3371
3379
|
new TextEncoder().encode('automation'),
|
|
3372
3380
|
ee.encode(e),
|
|
3373
3381
|
ee.encode(t),
|
|
3374
3382
|
new Uint8Array([n]),
|
|
3375
3383
|
]);
|
|
3376
3384
|
}
|
|
3377
|
-
function
|
|
3378
|
-
|
|
3385
|
+
function tR(e, t) {
|
|
3386
|
+
const { programAddress: n } = { ...ne, ...t };
|
|
3387
|
+
return ke(n, [new TextEncoder().encode('automation-authority'), ee.encode(e)]);
|
|
3379
3388
|
}
|
|
3380
|
-
const
|
|
3389
|
+
const nR = 'J5YZi2SoRbaAFcMJWcvkQRUgpB3YdMHJ4AEKhEV6ED7x';
|
|
3381
3390
|
export {
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3391
|
+
be as AccountDiscriminator,
|
|
3392
|
+
we as Action,
|
|
3393
|
+
Nn as CREATE_AUTOMATION_DISCRIMINATOR,
|
|
3394
|
+
fn as FUND_AUTOMATION_DISCRIMINATOR,
|
|
3395
|
+
xe as FundAutomationMethod,
|
|
3396
|
+
mn as HARVEST_SWAP_AND_REINVEST_POST_DISCRIMINATOR,
|
|
3397
|
+
Ln as HARVEST_SWAP_AND_REINVEST_PRE_DISCRIMINATOR,
|
|
3398
|
+
Dn as INITIALIZE_GLOBAL_CONFIG_DISCRIMINATOR,
|
|
3399
|
+
Me as IncreaseLiquidityByTokenAmountsAccountsType,
|
|
3400
|
+
jc as MAX_AUTOMATION_INDEX,
|
|
3401
|
+
Pn as REMOVE_AUTOMATIONS_DISCRIMINATOR,
|
|
3402
|
+
ye as TokenAccountState,
|
|
3403
|
+
Mn as UPDATE_GLOBAL_CONFIG_DISCRIMINATOR,
|
|
3404
|
+
R_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ACCOUNT_ALREADY_INITIALIZED,
|
|
3405
|
+
u_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ACCOUNT_NOT_INITIALIZED,
|
|
3406
|
+
S_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ARITHMETIC_ERROR,
|
|
3407
|
+
g_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__CONDITION_VIOLATION,
|
|
3408
|
+
c_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__EMIT_EVENT_ERROR,
|
|
3409
|
+
s_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_ACCOUNT_ADDRESS,
|
|
3410
|
+
a_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_OWNER,
|
|
3411
|
+
n_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_PROGRAM_ID,
|
|
3412
|
+
v_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_FUNDS_TO_PAY_CRANK_REWARD,
|
|
3413
|
+
D_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_INSTRUCTION_COUNT_AFTER,
|
|
3414
|
+
p_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_INSTRUCTION_COUNT_BEFORE,
|
|
3415
|
+
b_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOMPANYING_INSTRUCTION,
|
|
3416
|
+
__ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOUNT_DATA,
|
|
3417
|
+
o_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOUNT_ROLE,
|
|
3418
|
+
d_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACTION,
|
|
3419
|
+
E_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACTION_DATA_LENGTH,
|
|
3420
|
+
I_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AMOUNT_TO_FUND_AUTOMATION,
|
|
3421
|
+
T_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AUTOMATION_ACTION,
|
|
3422
|
+
l_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AUTOMATION_INDEX,
|
|
3423
|
+
O_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CONDITION,
|
|
3424
|
+
N_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CONDITION_DATA_LENGTH,
|
|
3425
|
+
h_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CRANK_REWARD,
|
|
3426
|
+
m_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_C_P_I_ACCOUNTS,
|
|
3427
|
+
C_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_C_P_I_INSTRUCTION_DATA,
|
|
3428
|
+
f_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_NEXT_VALID_EXECUTION_TIMESTAMP_CONDITION,
|
|
3429
|
+
A_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_POSITION_TOKEN_AMOUNT,
|
|
3430
|
+
U_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH,
|
|
3431
|
+
i_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_SEEDS,
|
|
3432
|
+
r_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__NOT_ENOUGH_ACCOUNT_KEYS,
|
|
3433
|
+
L_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__REDUNDANT_GLOBAL_CONFIG_UPDATE,
|
|
3434
|
+
t_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__UNKNOWN_INSTRUCTION_DISCRIMINATOR,
|
|
3435
|
+
P_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__UNSUPPORTED_TOKEN_EXTENSION,
|
|
3436
|
+
z as WHIRLPOOLS_AUTOMATION_PROGRAM_PROGRAM_ADDRESS,
|
|
3437
|
+
nR as WHIRLPOOLS_AUTOMATION_PROGRAM_STAGING_ADDRESS,
|
|
3438
|
+
Zs as WhirlpoolsAutomationProgramAccount,
|
|
3439
|
+
Qs as WhirlpoolsAutomationProgramInstruction,
|
|
3440
|
+
$i as address,
|
|
3441
|
+
K_ as condition,
|
|
3442
|
+
On as decodeAutomation,
|
|
3443
|
+
En as decodeGlobalConfig,
|
|
3444
|
+
q_ as event,
|
|
3445
|
+
Ic as fetchAllAutomation,
|
|
3446
|
+
Cc as fetchAllGlobalConfig,
|
|
3447
|
+
Vs as fetchAllMaybeAutomation,
|
|
3448
|
+
Hs as fetchAllMaybeGlobalConfig,
|
|
3449
|
+
fc as fetchAutomation,
|
|
3450
|
+
mc as fetchGlobalConfig,
|
|
3451
|
+
Gs as fetchMaybeAutomation,
|
|
3452
|
+
zs as fetchMaybeGlobalConfig,
|
|
3453
|
+
qc as findAutomationAddress,
|
|
3454
|
+
eR as findAutomationAddressSync,
|
|
3455
|
+
Zc as findAutomationAuthorityAddress,
|
|
3456
|
+
tR as findAutomationAuthorityAddressSync,
|
|
3457
|
+
Jc as findGlobalConfigAddress,
|
|
3458
|
+
Qc as findGlobalConfigAddressSync,
|
|
3459
|
+
tc as fundAutomationVariant,
|
|
3460
|
+
$_ as getAccountDiscriminatorCodec,
|
|
3461
|
+
Pe as getAccountDiscriminatorDecoder,
|
|
3462
|
+
Ue as getAccountDiscriminatorEncoder,
|
|
3463
|
+
X_ as getActionCodec,
|
|
3464
|
+
Yt as getActionDecoder,
|
|
3465
|
+
Xt as getActionEncoder,
|
|
3457
3466
|
R as getAddressDecoder,
|
|
3458
3467
|
c as getAddressEncoder,
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3468
|
+
Sc as getAutomationCodec,
|
|
3469
|
+
dn as getAutomationDecoder,
|
|
3470
|
+
Bs as getAutomationEncoder,
|
|
3471
|
+
Y_ as getConditionCodec,
|
|
3472
|
+
jt as getConditionDecoder,
|
|
3473
|
+
Kt as getConditionEncoder,
|
|
3474
|
+
hc as getCreateAutomationDiscriminatorBytes,
|
|
3475
|
+
vc as getCreateAutomationInstruction,
|
|
3476
|
+
Lc as getCreateAutomationInstructionDataCodec,
|
|
3477
|
+
Sn as getCreateAutomationInstructionDataDecoder,
|
|
3478
|
+
Tn as getCreateAutomationInstructionDataEncoder,
|
|
3479
|
+
J_ as getEventCodec,
|
|
3480
|
+
hs as getEventDecoder,
|
|
3481
|
+
Cs as getEventEncoder,
|
|
3482
|
+
pc as getFundAutomationDiscriminatorBytes,
|
|
3483
|
+
bc as getFundAutomationInstruction,
|
|
3484
|
+
Dc as getFundAutomationInstructionDataCodec,
|
|
3485
|
+
gn as getFundAutomationInstructionDataDecoder,
|
|
3486
|
+
In as getFundAutomationInstructionDataEncoder,
|
|
3487
|
+
Q_ as getFundAutomationMethodCodec,
|
|
3488
|
+
qt as getFundAutomationMethodDecoder,
|
|
3489
|
+
Jt as getFundAutomationMethodEncoder,
|
|
3490
|
+
ec as getFundAutomationVariantCodec,
|
|
3491
|
+
Qt as getFundAutomationVariantDecoder,
|
|
3492
|
+
Zt as getFundAutomationVariantEncoder,
|
|
3493
|
+
gc as getGlobalConfigCodec,
|
|
3494
|
+
ln as getGlobalConfigDecoder,
|
|
3495
|
+
Fs as getGlobalConfigEncoder,
|
|
3496
|
+
Uc as getHarvestSwapAndReinvestPostDiscriminatorBytes,
|
|
3497
|
+
wc as getHarvestSwapAndReinvestPostInstruction,
|
|
3498
|
+
Pc as getHarvestSwapAndReinvestPostInstructionDataCodec,
|
|
3499
|
+
hn as getHarvestSwapAndReinvestPostInstructionDataDecoder,
|
|
3500
|
+
Cn as getHarvestSwapAndReinvestPostInstructionDataEncoder,
|
|
3501
|
+
xc as getHarvestSwapAndReinvestPreDiscriminatorBytes,
|
|
3502
|
+
yc as getHarvestSwapAndReinvestPreInstruction,
|
|
3503
|
+
Mc as getHarvestSwapAndReinvestPreInstructionDataCodec,
|
|
3504
|
+
pn as getHarvestSwapAndReinvestPreInstructionDataDecoder,
|
|
3505
|
+
vn as getHarvestSwapAndReinvestPreInstructionDataEncoder,
|
|
3506
|
+
rc as getIncreaseLiquidityByTokenAmountsAccountsTypeCodec,
|
|
3507
|
+
tn as getIncreaseLiquidityByTokenAmountsAccountsTypeDecoder,
|
|
3508
|
+
en as getIncreaseLiquidityByTokenAmountsAccountsTypeEncoder,
|
|
3509
|
+
oc as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoCodec,
|
|
3510
|
+
vs as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoDecoder,
|
|
3511
|
+
Ls as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoEncoder,
|
|
3512
|
+
ac as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceCodec,
|
|
3513
|
+
rn as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceDecoder,
|
|
3514
|
+
nn as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceEncoder,
|
|
3515
|
+
ic as getIncreaseLiquidityMethodCodec,
|
|
3516
|
+
Ds as getIncreaseLiquidityMethodDecoder,
|
|
3517
|
+
ps as getIncreaseLiquidityMethodEncoder,
|
|
3518
|
+
kc as getInitializeGlobalConfigDiscriminatorBytes,
|
|
3519
|
+
Gc as getInitializeGlobalConfigInstruction,
|
|
3520
|
+
Bc as getInitializeGlobalConfigInstructionDataCodec,
|
|
3521
|
+
Un as getInitializeGlobalConfigInstructionDataDecoder,
|
|
3522
|
+
bn as getInitializeGlobalConfigInstructionDataEncoder,
|
|
3523
|
+
ms as getNonZeroU32Decoder,
|
|
3524
|
+
gs as getNonZeroU32Encoder,
|
|
3525
|
+
cc as getPositionCodec,
|
|
3526
|
+
Us as getPositionDecoder,
|
|
3527
|
+
bs as getPositionEncoder,
|
|
3528
|
+
Rc as getPositionRewardInfoCodec,
|
|
3529
|
+
an as getPositionRewardInfoDecoder,
|
|
3530
|
+
on as getPositionRewardInfoEncoder,
|
|
3531
|
+
Vc as getRemoveAutomationsDiscriminatorBytes,
|
|
3532
|
+
zc as getRemoveAutomationsInstruction,
|
|
3533
|
+
Fc as getRemoveAutomationsInstructionDataCodec,
|
|
3534
|
+
xn as getRemoveAutomationsInstructionDataDecoder,
|
|
3535
|
+
wn as getRemoveAutomationsInstructionDataEncoder,
|
|
3536
|
+
uc as getTokenAccountCodec,
|
|
3537
|
+
ws as getTokenAccountDecoder,
|
|
3538
|
+
Ps as getTokenAccountEncoder,
|
|
3539
|
+
Ac as getTokenAccountStateCodec,
|
|
3540
|
+
_n as getTokenAccountStateDecoder,
|
|
3541
|
+
sn as getTokenAccountStateEncoder,
|
|
3542
|
+
dc as getTokenMintCodec,
|
|
3543
|
+
Ms as getTokenMintDecoder,
|
|
3544
|
+
xs as getTokenMintEncoder,
|
|
3545
|
+
Hc as getUpdateGlobalConfigDiscriminatorBytes,
|
|
3546
|
+
$c as getUpdateGlobalConfigInstruction,
|
|
3547
|
+
Wc as getUpdateGlobalConfigInstructionDataCodec,
|
|
3548
|
+
kn as getUpdateGlobalConfigInstructionDataDecoder,
|
|
3549
|
+
yn as getUpdateGlobalConfigInstructionDataEncoder,
|
|
3550
|
+
Oc as getUpdateGlobalConfigVariantCodec,
|
|
3551
|
+
Rn as getUpdateGlobalConfigVariantDecoder,
|
|
3552
|
+
cn as getUpdateGlobalConfigVariantEncoder,
|
|
3553
|
+
Nc as getWhirlpoolCodec,
|
|
3554
|
+
ks as getWhirlpoolDecoder,
|
|
3555
|
+
ys as getWhirlpoolEncoder,
|
|
3556
|
+
Tc as getWhirlpoolRewardInfoCodec,
|
|
3557
|
+
An as getWhirlpoolRewardInfoDecoder,
|
|
3558
|
+
un as getWhirlpoolRewardInfoEncoder,
|
|
3559
|
+
Yc as getWhirlpoolsAutomationProgramErrorMessage,
|
|
3560
|
+
e_ as identifyWhirlpoolsAutomationProgramInstruction,
|
|
3561
|
+
sc as increaseLiquidityMethod,
|
|
3562
|
+
j_ as isCondition,
|
|
3563
|
+
Z_ as isEvent,
|
|
3564
|
+
nc as isFundAutomationVariant,
|
|
3565
|
+
_c as isIncreaseLiquidityMethod,
|
|
3566
|
+
Ec as isUpdateGlobalConfigVariant,
|
|
3567
|
+
Kc as isWhirlpoolsAutomationProgramError,
|
|
3568
|
+
$s as parseCreateAutomationInstruction,
|
|
3569
|
+
Xs as parseFundAutomationInstruction,
|
|
3570
|
+
Ys as parseHarvestSwapAndReinvestPostInstruction,
|
|
3571
|
+
Ks as parseHarvestSwapAndReinvestPreInstruction,
|
|
3572
|
+
js as parseInitializeGlobalConfigInstruction,
|
|
3573
|
+
Js as parseRemoveAutomationsInstruction,
|
|
3574
|
+
qs as parseUpdateGlobalConfigInstruction,
|
|
3575
|
+
Xc as parseWhirlpoolsAutomationProgramInstruction,
|
|
3576
|
+
lc as updateGlobalConfigVariant,
|
|
3568
3577
|
};
|