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