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