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