@orca-so/whirlpools-automation 0.5.0 → 0.6.0

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