@orca-so/whirlpools-automation 0.1.3 → 0.2.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,9 +1,9 @@
1
- var En = Object.defineProperty;
2
- var Nn = (e, t, n) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var ae = (e, t, n) => Nn(e, typeof t != "symbol" ? t + "" : t, n);
4
- var Tn = 1, Sn = 2, In = 3, fn = 4, mn = 5, gn = 6, Cn = 7, vn = 8, Ln = 9, hn = 10, Dn = -32700, pn = -32603, bn = -32602, Pn = -32601, Un = -32600, Mn = -32016, kn = -32015, wn = -32014, yn = -32013, xn = -32012, Bn = -32011, Gn = -32010, Vn = -32009, Fn = -32008, zn = -32007, Wn = -32006, Hn = -32005, $n = -32004, Xn = -32003, Yn = -32002, Kn = -32001, pe = 28e5, be = 2800001, jn = 2800002, Jn = 2800003, Zn = 2800004, qn = 2800005, Qn = 2800006, er = 2800007, tr = 2800008, nr = 2800009, rr = 2800010, or = 2800011, Pe = 323e4, Ue = 32300001, Me = 3230002, ar = 3230003, ir = 3230004, _r = 361e4, sr = 3610001, cr = 3610002, Rr = 3610003, ur = 3610004, Ar = 3610005, Or = 3610006, lr = 3610007, dr = 3611e3, Er = 3704e3, Nr = 3704001, Tr = 3704002, Sr = 3704003, Ir = 3704004, ke = 4128e3, fr = 4128001, mr = 4128002, gr = 4615e3, Cr = 4615001, vr = 4615002, Lr = 4615003, hr = 4615004, Dr = 4615005, pr = 4615006, br = 4615007, Pr = 4615008, Ur = 4615009, Mr = 4615010, kr = 4615011, wr = 4615012, yr = 4615013, xr = 4615014, Br = 4615015, Gr = 4615016, Vr = 4615017, Fr = 4615018, zr = 4615019, Wr = 4615020, Hr = 4615021, $r = 4615022, Xr = 4615023, Yr = 4615024, Kr = 4615025, we = 4615026, jr = 4615027, Jr = 4615028, Zr = 4615029, qr = 4615030, Qr = 4615031, eo = 4615032, to = 4615033, no = 4615034, ro = 4615035, oo = 4615036, ao = 4615037, io = 4615038, _o = 4615039, so = 4615040, co = 4615041, Ro = 4615042, uo = 4615043, Ao = 4615044, Oo = 4615045, lo = 4615046, Eo = 4615047, No = 4615048, To = 4615049, So = 4615050, Io = 4615051, fo = 4615052, mo = 4615053, go = 4615054, Co = 5508e3, vo = 5508001, Lo = 5508002, ho = 5508003, Do = 5508004, po = 5508005, bo = 5508006, Po = 5508007, Uo = 5508008, Mo = 5508009, ko = 5508010, wo = 5508011, yo = 5663e3, xo = 5663001, Bo = 5663002, Go = 5663003, Vo = 5663004, Fo = 5663005, zo = 5663006, Wo = 5663007, Ho = 5663008, $o = 5663009, Xo = 5663010, Yo = 5663011, Ko = 5663012, jo = 5663013, Jo = 5663014, Zo = 5663015, qo = 5663016, Qo = 5663017, ea = 5663018, ta = 5663019, na = 5663020, ra = 705e4, oa = 7050001, aa = 7050002, ia = 7050003, _a = 7050004, sa = 7050005, ca = 7050006, Ra = 7050007, ua = 7050008, Aa = 7050009, Oa = 7050010, la = 7050011, da = 7050012, Ea = 7050013, Na = 7050014, Ta = 7050015, Sa = 7050016, Ia = 7050017, fa = 7050018, ma = 7050019, ga = 7050020, Ca = 7050021, va = 7050022, La = 7050023, ha = 7050024, Da = 7050025, pa = 7050026, ba = 7050027, Pa = 7050028, Ua = 7050029, Ma = 7050030, ka = 7050031, wa = 7050032, ya = 7050033, xa = 7050034, Ba = 7050035, Ga = 7050036, ye = 8078e3, xe = 8078001, Be = 8078002, Va = 8078003, Ge = 8078004, Ve = 8078005, Fe = 8078006, ze = 8078007, We = 8078008, He = 8078009, $e = 8078010, Xe = 8078011, ee = 8078012, Fa = 8078013, za = 8078014, Wa = 8078015, Ha = 8078016, Ye = 8078017, Ke = 8078018, $a = 8078019, Xa = 8078020, Ya = 8078021, de = 8078022, Ka = 81e5, ja = 8100001, Ja = 8100002, Za = 8100003, qa = 819e4, Qa = 8190001, ei = 8190002, ti = 8190003, ni = 8190004, ri = 99e5, oi = 9900001, ai = 9900002, ii = 9900003, _i = 9900004;
5
- function je(e) {
6
- return Array.isArray(e) ? "%5B" + e.map(je).join(
1
+ var Pn = Object.defineProperty;
2
+ var Un = (e, t, n) => t in e ? Pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var se = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
4
+ var wn = 1, Mn = 2, kn = 3, yn = 4, xn = 5, Bn = 6, Gn = 7, Vn = 8, Fn = 9, zn = 10, Wn = -32700, Hn = -32603, $n = -32602, Xn = -32601, Yn = -32600, Kn = -32016, jn = -32015, Jn = -32014, Zn = -32013, qn = -32012, Qn = -32011, er = -32010, tr = -32009, nr = -32008, rr = -32007, or = -32006, ar = -32005, ir = -32004, _r = -32003, sr = -32002, cr = -32001, xe = 28e5, Be = 2800001, Rr = 2800002, ur = 2800003, Ar = 2800004, lr = 2800005, Ge = 2800006, Ve = 2800007, Te = 2800008, Fe = 2800009, Or = 2800010, dr = 2800011, ze = 323e4, We = 32300001, He = 3230002, Er = 3230003, Nr = 3230004, $e = 361e4, Xe = 3610001, Tr = 3610002, Sr = 3610003, Ir = 3610004, fr = 3610005, mr = 3610006, gr = 3610007, Cr = 3611e3, vr = 3704e3, Lr = 3704001, hr = 3704002, pr = 3704003, Dr = 3704004, Ye = 4128e3, br = 4128001, Pr = 4128002, Ur = 4615e3, wr = 4615001, Mr = 4615002, kr = 4615003, yr = 4615004, xr = 4615005, Br = 4615006, Gr = 4615007, Vr = 4615008, Fr = 4615009, zr = 4615010, Wr = 4615011, Hr = 4615012, $r = 4615013, Xr = 4615014, Yr = 4615015, Kr = 4615016, jr = 4615017, Jr = 4615018, Zr = 4615019, qr = 4615020, Qr = 4615021, eo = 4615022, to = 4615023, no = 4615024, ro = 4615025, Ke = 4615026, oo = 4615027, ao = 4615028, io = 4615029, _o = 4615030, so = 4615031, co = 4615032, Ro = 4615033, uo = 4615034, Ao = 4615035, lo = 4615036, Oo = 4615037, Eo = 4615038, No = 4615039, To = 4615040, So = 4615041, Io = 4615042, fo = 4615043, mo = 4615044, go = 4615045, Co = 4615046, vo = 4615047, Lo = 4615048, ho = 4615049, po = 4615050, Do = 4615051, bo = 4615052, Po = 4615053, Uo = 4615054, wo = 5508e3, Mo = 5508001, ko = 5508002, yo = 5508003, xo = 5508004, Bo = 5508005, Go = 5508006, Vo = 5508007, Fo = 5508008, zo = 5508009, Wo = 5508010, Ho = 5508011, $o = 5663e3, Xo = 5663001, Yo = 5663002, Ko = 5663003, jo = 5663004, Jo = 5663005, Zo = 5663006, qo = 5663007, Qo = 5663008, ea = 5663009, ta = 5663010, na = 5663011, ra = 5663012, oa = 5663013, aa = 5663014, ia = 5663015, _a = 5663016, sa = 5663017, ca = 5663018, Ra = 5663019, ua = 5663020, Aa = 705e4, la = 7050001, Oa = 7050002, da = 7050003, Ea = 7050004, Na = 7050005, Ta = 7050006, Sa = 7050007, Ia = 7050008, fa = 7050009, ma = 7050010, ga = 7050011, Ca = 7050012, va = 7050013, La = 7050014, ha = 7050015, pa = 7050016, Da = 7050017, ba = 7050018, Pa = 7050019, Ua = 7050020, wa = 7050021, Ma = 7050022, ka = 7050023, ya = 7050024, xa = 7050025, Ba = 7050026, Ga = 7050027, Va = 7050028, Fa = 7050029, za = 7050030, Wa = 7050031, Ha = 7050032, $a = 7050033, Xa = 7050034, Ya = 7050035, Ka = 7050036, je = 8078e3, Je = 8078001, Ze = 8078002, ja = 8078003, qe = 8078004, Qe = 8078005, et = 8078006, tt = 8078007, nt = 8078008, rt = 8078009, ot = 8078010, at = 8078011, oe = 8078012, Ja = 8078013, Za = 8078014, qa = 8078015, Qa = 8078016, it = 8078017, _t = 8078018, ei = 8078019, ti = 8078020, ni = 8078021, Se = 8078022, ri = 81e5, oi = 8100001, ai = 8100002, ii = 8100003, _i = 819e4, si = 8190001, ci = 8190002, Ri = 8190003, ui = 8190004, Ai = 99e5, li = 9900001, Oi = 9900002, di = 9900003, Ei = 9900004;
5
+ function st(e) {
6
+ return Array.isArray(e) ? "%5B" + e.map(st).join(
7
7
  "%2C%20"
8
8
  /* ", " */
9
9
  ) + /* "]" */
@@ -17,304 +17,304 @@ function je(e) {
17
17
  )
18
18
  );
19
19
  }
20
- function si([e, t]) {
21
- return `${e}=${je(t)}`;
20
+ function Ni([e, t]) {
21
+ return `${e}=${st(t)}`;
22
22
  }
23
- function ci(e) {
24
- const t = Object.entries(e).map(si).join("&");
23
+ function Ti(e) {
24
+ const t = Object.entries(e).map(Ni).join("&");
25
25
  return btoa(t);
26
26
  }
27
- var Ri = {
28
- [Pe]: "Account not found at address: $address",
29
- [ir]: "Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",
30
- [ar]: "Expected decoded account at address: $address",
31
- [Me]: "Failed to decode account data at address: $address",
32
- [Ue]: "Accounts not found at addresses: $addresses",
33
- [nr]: "Unable to find a viable program address bump seed.",
34
- [jn]: "$putativeAddress is not a base58-encoded address.",
35
- [pe]: "Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",
36
- [Jn]: "The `CryptoKey` must be an `Ed25519` public key.",
37
- [or]: "$putativeOffCurveAddress is not a base58-encoded off-curve address.",
38
- [tr]: "Invalid seeds; point must fall off the Ed25519 curve.",
39
- [Zn]: "Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",
40
- [Qn]: "A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",
41
- [er]: "The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",
42
- [qn]: "Expected program derived address bump to be in the range [0, 255], got: $bump.",
43
- [rr]: "Program address cannot end with PDA marker.",
44
- [be]: "Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",
45
- [fn]: "Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",
46
- [Tn]: "The network has progressed past the last block for which this transaction could have been committed.",
47
- [ye]: "Codec [$codecDescription] cannot decode empty byte arrays.",
48
- [de]: "Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",
49
- [Xa]: "Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",
50
- [Ve]: "Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",
51
- [Fe]: "Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",
52
- [Ge]: "Encoder and decoder must either both be fixed-size or variable-size.",
53
- [We]: "Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",
54
- [Be]: "Expected a fixed-size codec, got a variable-size one.",
55
- [Fa]: "Codec [$codecDescription] expected a positive byte length, got $bytesLength.",
56
- [Va]: "Expected a variable-size codec, got a fixed-size one.",
57
- [$a]: "Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",
58
- [xe]: "Codec [$codecDescription] expected $expected bytes, got $bytesLength.",
59
- [Ke]: "Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",
60
- [He]: "Invalid discriminated union variant. Expected one of [$variants], got $value.",
61
- [$e]: "Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",
62
- [Wa]: "Invalid literal union variant. Expected one of [$variants], got $value.",
63
- [ze]: "Expected [$codecDescription] to have $expected items, got $actual.",
64
- [ee]: "Invalid value $value for base $base with alphabet $alphabet.",
65
- [Ha]: "Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",
66
- [Xe]: "Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",
67
- [za]: "Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",
68
- [Ya]: "Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",
69
- [Ye]: "Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",
70
- [dr]: "No random values implementation could be found.",
71
- [Ur]: "instruction requires an uninitialized account",
72
- [Xr]: "instruction tries to borrow reference for an account which is already borrowed",
73
- [Yr]: "instruction left account with an outstanding borrowed reference",
74
- [Hr]: "program other than the account's owner changed the size of the account data",
75
- [Dr]: "account data too small for instruction",
76
- [$r]: "instruction expected an executable account",
77
- [lo]: "An account does not have enough lamports to be rent-exempt",
78
- [No]: "Program arithmetic overflowed",
79
- [Oo]: "Failed to serialize or deserialize account data: $encodedData",
80
- [go]: "Builtin programs must consume compute units",
81
- [eo]: "Cross-program invocation call depth too deep",
82
- [io]: "Computational budget exceeded",
83
- [we]: "custom program error: #$code",
84
- [Vr]: "instruction contains duplicate accounts",
85
- [Kr]: "instruction modifications of multiply-passed account differ",
86
- [qr]: "executable accounts must be rent exempt",
87
- [Jr]: "instruction changed executable accounts data",
88
- [Zr]: "instruction changed the balance of an executable account",
89
- [Fr]: "instruction changed executable bit of an account",
90
- [xr]: "instruction modified data of an account it does not own",
91
- [yr]: "instruction spent from the balance of an account it does not own",
92
- [Cr]: "generic instruction error",
93
- [So]: "Provided owner is not allowed",
94
- [uo]: "Account is immutable",
95
- [Ao]: "Incorrect authority provided",
96
- [br]: "incorrect program id for instruction",
97
- [pr]: "insufficient funds for instruction",
98
- [hr]: "invalid account data for instruction",
99
- [Eo]: "Invalid account owner",
100
- [vr]: "invalid program argument",
101
- [jr]: "program returned invalid error code",
102
- [Lr]: "invalid instruction data",
103
- [ao]: "Failed to reallocate account data",
104
- [oo]: "Provided seeds do not result in a valid address",
105
- [Io]: "Accounts data allocations exceeded the maximum allowed per transaction",
106
- [fo]: "Max accounts exceeded",
107
- [mo]: "Max instruction trace length exceeded",
108
- [ro]: "Length of the seed is too long for address generation",
109
- [to]: "An account required by the instruction is missing",
110
- [Pr]: "missing required signature for instruction",
111
- [wr]: "instruction illegally modified the program id of an account",
112
- [Wr]: "insufficient account keys for instruction",
113
- [_o]: "Cross-program invocation with unauthorized signer or writable account",
114
- [so]: "Failed to create program execution environment",
115
- [Ro]: "Program failed to compile",
116
- [co]: "Program failed to complete",
117
- [Gr]: "instruction modified data of a read-only account",
118
- [Br]: "instruction changed the balance of a read-only account",
119
- [no]: "Cross-program invocation reentrancy not allowed for this instruction",
120
- [zr]: "instruction modified rent epoch of an account",
121
- [kr]: "sum of account balances before and after instruction do not match",
122
- [Mr]: "instruction requires an initialized account",
123
- [gr]: "",
124
- [Qr]: "Unsupported program id",
125
- [To]: "Unsupported sysvar",
126
- [ke]: "The instruction does not have any accounts.",
127
- [fr]: "The instruction does not have any data.",
128
- [mr]: "Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",
129
- [mn]: "Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",
130
- [Sn]: "The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",
131
- [ai]: "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",
132
- [_i]: "Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",
133
- [oi]: "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",
134
- [ri]: "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",
135
- [ii]: "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",
136
- [pn]: "JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",
137
- [bn]: "JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",
138
- [Un]: "JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",
139
- [Pn]: "JSON-RPC error: The method does not exist / is not available ($__serverMessage)",
140
- [Dn]: "JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",
141
- [xn]: "$__serverMessage",
142
- [Kn]: "$__serverMessage",
143
- [$n]: "$__serverMessage",
144
- [wn]: "$__serverMessage",
145
- [Gn]: "$__serverMessage",
146
- [Vn]: "$__serverMessage",
147
- [Mn]: "Minimum context slot has not been reached",
148
- [Hn]: "Node is unhealthy; behind by $numSlotsBehind slots",
149
- [Fn]: "No snapshot",
150
- [Yn]: "Transaction simulation failed",
151
- [zn]: "$__serverMessage",
152
- [Bn]: "Transaction history is not available from this node",
153
- [Wn]: "$__serverMessage",
154
- [yn]: "Transaction signature length mismatch",
155
- [Xn]: "Transaction signature verification failure",
156
- [kn]: "$__serverMessage",
157
- [Er]: "Key pair bytes must be of length 64, got $byteLength.",
158
- [Nr]: "Expected private key bytes with length 32. Actual length: $actualLength.",
159
- [Tr]: "Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",
160
- [Ir]: "The provided private key does not match the provided public key.",
161
- [Sr]: "Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",
162
- [gn]: "Lamports value must be in the range [0, 2e64-1]",
163
- [Cn]: "`$value` cannot be parsed as a `BigInt`",
164
- [hn]: "$message",
165
- [vn]: "`$value` cannot be parsed as a `Number`",
166
- [In]: "No nonce account could be found at address `$nonceAccountAddress`",
167
- [qa]: "The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",
168
- [ei]: "WebSocket was closed before payload could be added to the send buffer",
169
- [ti]: "WebSocket connection closed",
170
- [ni]: "WebSocket failed to connect",
171
- [Qa]: "Failed to obtain a subscription id from the server",
172
- [Za]: "Could not find an API plan for RPC method: `$method`",
173
- [Ka]: "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`.",
174
- [Ja]: "HTTP error ($statusCode): $message",
175
- [ja]: "HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",
176
- [Co]: "Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",
177
- [vo]: "The provided value does not implement the `KeyPairSigner` interface",
178
- [ho]: "The provided value does not implement the `MessageModifyingSigner` interface",
179
- [Do]: "The provided value does not implement the `MessagePartialSigner` interface",
180
- [Lo]: "The provided value does not implement any of the `MessageSigner` interfaces",
181
- [bo]: "The provided value does not implement the `TransactionModifyingSigner` interface",
182
- [Po]: "The provided value does not implement the `TransactionPartialSigner` interface",
183
- [Uo]: "The provided value does not implement the `TransactionSendingSigner` interface",
184
- [po]: "The provided value does not implement any of the `TransactionSigner` interfaces",
185
- [Mo]: "More than one `TransactionSendingSigner` was identified.",
186
- [ko]: "No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",
187
- [wo]: "Wallet account signers do not support signing multiple messages/transactions in a single operation",
188
- [lr]: "Cannot export a non-extractable key.",
189
- [sr]: "No digest implementation could be found.",
190
- [_r]: "Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",
191
- [cr]: `This runtime does not support the generation of Ed25519 key pairs.
27
+ var Si = {
28
+ [ze]: "Account not found at address: $address",
29
+ [Nr]: "Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",
30
+ [Er]: "Expected decoded account at address: $address",
31
+ [He]: "Failed to decode account data at address: $address",
32
+ [We]: "Accounts not found at addresses: $addresses",
33
+ [Fe]: "Unable to find a viable program address bump seed.",
34
+ [Rr]: "$putativeAddress is not a base58-encoded address.",
35
+ [xe]: "Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",
36
+ [ur]: "The `CryptoKey` must be an `Ed25519` public key.",
37
+ [dr]: "$putativeOffCurveAddress is not a base58-encoded off-curve address.",
38
+ [Te]: "Invalid seeds; point must fall off the Ed25519 curve.",
39
+ [Ar]: "Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",
40
+ [Ge]: "A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",
41
+ [Ve]: "The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",
42
+ [lr]: "Expected program derived address bump to be in the range [0, 255], got: $bump.",
43
+ [Or]: "Program address cannot end with PDA marker.",
44
+ [Be]: "Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",
45
+ [yn]: "Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",
46
+ [wn]: "The network has progressed past the last block for which this transaction could have been committed.",
47
+ [je]: "Codec [$codecDescription] cannot decode empty byte arrays.",
48
+ [Se]: "Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",
49
+ [ti]: "Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",
50
+ [Qe]: "Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",
51
+ [et]: "Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",
52
+ [qe]: "Encoder and decoder must either both be fixed-size or variable-size.",
53
+ [nt]: "Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",
54
+ [Ze]: "Expected a fixed-size codec, got a variable-size one.",
55
+ [Ja]: "Codec [$codecDescription] expected a positive byte length, got $bytesLength.",
56
+ [ja]: "Expected a variable-size codec, got a fixed-size one.",
57
+ [ei]: "Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",
58
+ [Je]: "Codec [$codecDescription] expected $expected bytes, got $bytesLength.",
59
+ [_t]: "Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",
60
+ [rt]: "Invalid discriminated union variant. Expected one of [$variants], got $value.",
61
+ [ot]: "Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",
62
+ [qa]: "Invalid literal union variant. Expected one of [$variants], got $value.",
63
+ [tt]: "Expected [$codecDescription] to have $expected items, got $actual.",
64
+ [oe]: "Invalid value $value for base $base with alphabet $alphabet.",
65
+ [Qa]: "Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",
66
+ [at]: "Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",
67
+ [Za]: "Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",
68
+ [ni]: "Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",
69
+ [it]: "Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",
70
+ [Cr]: "No random values implementation could be found.",
71
+ [Fr]: "instruction requires an uninitialized account",
72
+ [to]: "instruction tries to borrow reference for an account which is already borrowed",
73
+ [no]: "instruction left account with an outstanding borrowed reference",
74
+ [Qr]: "program other than the account's owner changed the size of the account data",
75
+ [xr]: "account data too small for instruction",
76
+ [eo]: "instruction expected an executable account",
77
+ [Co]: "An account does not have enough lamports to be rent-exempt",
78
+ [Lo]: "Program arithmetic overflowed",
79
+ [go]: "Failed to serialize or deserialize account data: $encodedData",
80
+ [Uo]: "Builtin programs must consume compute units",
81
+ [co]: "Cross-program invocation call depth too deep",
82
+ [Eo]: "Computational budget exceeded",
83
+ [Ke]: "custom program error: #$code",
84
+ [jr]: "instruction contains duplicate accounts",
85
+ [ro]: "instruction modifications of multiply-passed account differ",
86
+ [_o]: "executable accounts must be rent exempt",
87
+ [ao]: "instruction changed executable accounts data",
88
+ [io]: "instruction changed the balance of an executable account",
89
+ [Jr]: "instruction changed executable bit of an account",
90
+ [Xr]: "instruction modified data of an account it does not own",
91
+ [$r]: "instruction spent from the balance of an account it does not own",
92
+ [wr]: "generic instruction error",
93
+ [po]: "Provided owner is not allowed",
94
+ [fo]: "Account is immutable",
95
+ [mo]: "Incorrect authority provided",
96
+ [Gr]: "incorrect program id for instruction",
97
+ [Br]: "insufficient funds for instruction",
98
+ [yr]: "invalid account data for instruction",
99
+ [vo]: "Invalid account owner",
100
+ [Mr]: "invalid program argument",
101
+ [oo]: "program returned invalid error code",
102
+ [kr]: "invalid instruction data",
103
+ [Oo]: "Failed to reallocate account data",
104
+ [lo]: "Provided seeds do not result in a valid address",
105
+ [Do]: "Accounts data allocations exceeded the maximum allowed per transaction",
106
+ [bo]: "Max accounts exceeded",
107
+ [Po]: "Max instruction trace length exceeded",
108
+ [Ao]: "Length of the seed is too long for address generation",
109
+ [Ro]: "An account required by the instruction is missing",
110
+ [Vr]: "missing required signature for instruction",
111
+ [Hr]: "instruction illegally modified the program id of an account",
112
+ [qr]: "insufficient account keys for instruction",
113
+ [No]: "Cross-program invocation with unauthorized signer or writable account",
114
+ [To]: "Failed to create program execution environment",
115
+ [Io]: "Program failed to compile",
116
+ [So]: "Program failed to complete",
117
+ [Kr]: "instruction modified data of a read-only account",
118
+ [Yr]: "instruction changed the balance of a read-only account",
119
+ [uo]: "Cross-program invocation reentrancy not allowed for this instruction",
120
+ [Zr]: "instruction modified rent epoch of an account",
121
+ [Wr]: "sum of account balances before and after instruction do not match",
122
+ [zr]: "instruction requires an initialized account",
123
+ [Ur]: "",
124
+ [so]: "Unsupported program id",
125
+ [ho]: "Unsupported sysvar",
126
+ [Ye]: "The instruction does not have any accounts.",
127
+ [br]: "The instruction does not have any data.",
128
+ [Pr]: "Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",
129
+ [xn]: "Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",
130
+ [Mn]: "The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",
131
+ [Oi]: "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",
132
+ [Ei]: "Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",
133
+ [li]: "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",
134
+ [Ai]: "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",
135
+ [di]: "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",
136
+ [Hn]: "JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",
137
+ [$n]: "JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",
138
+ [Yn]: "JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",
139
+ [Xn]: "JSON-RPC error: The method does not exist / is not available ($__serverMessage)",
140
+ [Wn]: "JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",
141
+ [qn]: "$__serverMessage",
142
+ [cr]: "$__serverMessage",
143
+ [ir]: "$__serverMessage",
144
+ [Jn]: "$__serverMessage",
145
+ [er]: "$__serverMessage",
146
+ [tr]: "$__serverMessage",
147
+ [Kn]: "Minimum context slot has not been reached",
148
+ [ar]: "Node is unhealthy; behind by $numSlotsBehind slots",
149
+ [nr]: "No snapshot",
150
+ [sr]: "Transaction simulation failed",
151
+ [rr]: "$__serverMessage",
152
+ [Qn]: "Transaction history is not available from this node",
153
+ [or]: "$__serverMessage",
154
+ [Zn]: "Transaction signature length mismatch",
155
+ [_r]: "Transaction signature verification failure",
156
+ [jn]: "$__serverMessage",
157
+ [vr]: "Key pair bytes must be of length 64, got $byteLength.",
158
+ [Lr]: "Expected private key bytes with length 32. Actual length: $actualLength.",
159
+ [hr]: "Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",
160
+ [Dr]: "The provided private key does not match the provided public key.",
161
+ [pr]: "Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",
162
+ [Bn]: "Lamports value must be in the range [0, 2e64-1]",
163
+ [Gn]: "`$value` cannot be parsed as a `BigInt`",
164
+ [zn]: "$message",
165
+ [Vn]: "`$value` cannot be parsed as a `Number`",
166
+ [kn]: "No nonce account could be found at address `$nonceAccountAddress`",
167
+ [_i]: "The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",
168
+ [ci]: "WebSocket was closed before payload could be added to the send buffer",
169
+ [Ri]: "WebSocket connection closed",
170
+ [ui]: "WebSocket failed to connect",
171
+ [si]: "Failed to obtain a subscription id from the server",
172
+ [ii]: "Could not find an API plan for RPC method: `$method`",
173
+ [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`.",
174
+ [ai]: "HTTP error ($statusCode): $message",
175
+ [oi]: "HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",
176
+ [wo]: "Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",
177
+ [Mo]: "The provided value does not implement the `KeyPairSigner` interface",
178
+ [yo]: "The provided value does not implement the `MessageModifyingSigner` interface",
179
+ [xo]: "The provided value does not implement the `MessagePartialSigner` interface",
180
+ [ko]: "The provided value does not implement any of the `MessageSigner` interfaces",
181
+ [Go]: "The provided value does not implement the `TransactionModifyingSigner` interface",
182
+ [Vo]: "The provided value does not implement the `TransactionPartialSigner` interface",
183
+ [Fo]: "The provided value does not implement the `TransactionSendingSigner` interface",
184
+ [Bo]: "The provided value does not implement any of the `TransactionSigner` interfaces",
185
+ [zo]: "More than one `TransactionSendingSigner` was identified.",
186
+ [Wo]: "No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",
187
+ [Ho]: "Wallet account signers do not support signing multiple messages/transactions in a single operation",
188
+ [gr]: "Cannot export a non-extractable key.",
189
+ [Xe]: "No digest implementation could be found.",
190
+ [$e]: "Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",
191
+ [Tr]: `This runtime does not support the generation of Ed25519 key pairs.
192
192
 
193
193
  Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
194
194
 
195
195
  For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,
196
- [Rr]: "No signature verification implementation could be found.",
197
- [ur]: "No key generation implementation could be found.",
198
- [Ar]: "No signing implementation could be found.",
199
- [Or]: "No key export implementation could be found.",
200
- [Ln]: "Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",
201
- [Sa]: "Transaction processing left an account with an outstanding borrowed reference",
202
- [oa]: "Account in use",
203
- [aa]: "Account loaded twice",
204
- [ia]: "Attempt to debit an account but found no record of a prior credit.",
205
- [La]: "Transaction loads an address table account that doesn't exist",
206
- [Ra]: "This transaction has already been processed",
207
- [ua]: "Blockhash not found",
208
- [Aa]: "Loader call chain is too deep",
209
- [Ta]: "Transactions are currently disabled due to cluster maintenance",
210
- [Ma]: "Transaction contains a duplicate instruction ($index) that is not allowed",
211
- [sa]: "Insufficient funds for fee",
212
- [ka]: "Transaction results in an account ($accountIndex) with insufficient funds for rent",
213
- [ca]: "This account may not be used to pay transaction fees",
214
- [la]: "Transaction contains an invalid account reference",
215
- [Da]: "Transaction loads an address table account with invalid data",
216
- [pa]: "Transaction address table lookup uses an invalid index",
217
- [ha]: "Transaction loads an address table account with an invalid owner",
218
- [ya]: "LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",
219
- [Ea]: "This program may not be used for executing instructions",
220
- [ba]: "Transaction leaves an account with a lower balance than rent-exempt minimum",
221
- [ma]: "Transaction loads a writable account that cannot be written",
222
- [wa]: "Transaction exceeded max loaded accounts data size cap",
223
- [Oa]: "Transaction requires a fee but has no signature present",
224
- [_a]: "Attempt to load a program that does not exist",
225
- [Ba]: "Execution of the program referenced by account at index $accountIndex is temporarily restricted.",
226
- [xa]: "ResanitizationNeeded",
227
- [Na]: "Transaction failed to sanitize accounts offsets correctly",
228
- [da]: "Transaction did not pass signature verification",
229
- [va]: "Transaction locked too many accounts",
230
- [Ga]: "Sum of account balances before and after transaction do not match",
231
- [ra]: "The transaction failed with the error `$errorName`",
232
- [fa]: "Transaction version is unsupported",
233
- [Ca]: "Transaction would exceed account data limit within the block",
234
- [Ua]: "Transaction would exceed total account data limit",
235
- [ga]: "Transaction would exceed max account limit within the block",
236
- [Ia]: "Transaction would exceed max Block Cost Limit",
237
- [Pa]: "Transaction would exceed max Vote Cost Limit",
238
- [Zo]: "Attempted to sign a transaction with an address that is not a signer for it",
239
- [Xo]: "Transaction is missing an address at index: $index.",
240
- [qo]: "Transaction has no expected signers therefore it cannot be encoded",
241
- [na]: "Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",
242
- [Bo]: "Transaction does not have a blockhash lifetime",
243
- [Go]: "Transaction is not a durable nonce transaction",
244
- [Fo]: "Contents of these address lookup tables unknown: $lookupTableAddresses",
245
- [zo]: "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",
246
- [Ho]: "No fee payer set in CompiledTransaction",
247
- [Wo]: "Could not find program address at index $index",
248
- [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",
249
- [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",
250
- [Yo]: "Transaction is missing a fee payer.",
251
- [Ko]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",
252
- [Jo]: "Transaction first instruction is not advance nonce account instruction.",
253
- [jo]: "Transaction with no instructions cannot be durable nonce transaction.",
254
- [yo]: "This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",
255
- [xo]: "This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",
256
- [Qo]: "The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",
257
- [$o]: "Transaction is missing signatures for addresses: $addresses.",
258
- [Vo]: "Transaction version must be in the range [0, 127]. `$actualVersion` given"
259
- }, k = "i", b = "t";
260
- function ui(e, t = {}) {
261
- const n = Ri[e];
196
+ [Sr]: "No signature verification implementation could be found.",
197
+ [Ir]: "No key generation implementation could be found.",
198
+ [fr]: "No signing implementation could be found.",
199
+ [mr]: "No key export implementation could be found.",
200
+ [Fn]: "Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",
201
+ [pa]: "Transaction processing left an account with an outstanding borrowed reference",
202
+ [la]: "Account in use",
203
+ [Oa]: "Account loaded twice",
204
+ [da]: "Attempt to debit an account but found no record of a prior credit.",
205
+ [ka]: "Transaction loads an address table account that doesn't exist",
206
+ [Sa]: "This transaction has already been processed",
207
+ [Ia]: "Blockhash not found",
208
+ [fa]: "Loader call chain is too deep",
209
+ [ha]: "Transactions are currently disabled due to cluster maintenance",
210
+ [za]: "Transaction contains a duplicate instruction ($index) that is not allowed",
211
+ [Na]: "Insufficient funds for fee",
212
+ [Wa]: "Transaction results in an account ($accountIndex) with insufficient funds for rent",
213
+ [Ta]: "This account may not be used to pay transaction fees",
214
+ [ga]: "Transaction contains an invalid account reference",
215
+ [xa]: "Transaction loads an address table account with invalid data",
216
+ [Ba]: "Transaction address table lookup uses an invalid index",
217
+ [ya]: "Transaction loads an address table account with an invalid owner",
218
+ [$a]: "LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",
219
+ [va]: "This program may not be used for executing instructions",
220
+ [Ga]: "Transaction leaves an account with a lower balance than rent-exempt minimum",
221
+ [Pa]: "Transaction loads a writable account that cannot be written",
222
+ [Ha]: "Transaction exceeded max loaded accounts data size cap",
223
+ [ma]: "Transaction requires a fee but has no signature present",
224
+ [Ea]: "Attempt to load a program that does not exist",
225
+ [Ya]: "Execution of the program referenced by account at index $accountIndex is temporarily restricted.",
226
+ [Xa]: "ResanitizationNeeded",
227
+ [La]: "Transaction failed to sanitize accounts offsets correctly",
228
+ [Ca]: "Transaction did not pass signature verification",
229
+ [Ma]: "Transaction locked too many accounts",
230
+ [Ka]: "Sum of account balances before and after transaction do not match",
231
+ [Aa]: "The transaction failed with the error `$errorName`",
232
+ [ba]: "Transaction version is unsupported",
233
+ [wa]: "Transaction would exceed account data limit within the block",
234
+ [Fa]: "Transaction would exceed total account data limit",
235
+ [Ua]: "Transaction would exceed max account limit within the block",
236
+ [Da]: "Transaction would exceed max Block Cost Limit",
237
+ [Va]: "Transaction would exceed max Vote Cost Limit",
238
+ [ia]: "Attempted to sign a transaction with an address that is not a signer for it",
239
+ [ta]: "Transaction is missing an address at index: $index.",
240
+ [_a]: "Transaction has no expected signers therefore it cannot be encoded",
241
+ [ua]: "Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",
242
+ [Yo]: "Transaction does not have a blockhash lifetime",
243
+ [Ko]: "Transaction is not a durable nonce transaction",
244
+ [Jo]: "Contents of these address lookup tables unknown: $lookupTableAddresses",
245
+ [Zo]: "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",
246
+ [Qo]: "No fee payer set in CompiledTransaction",
247
+ [qo]: "Could not find program address at index $index",
248
+ [ca]: "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",
249
+ [Ra]: "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",
250
+ [na]: "Transaction is missing a fee payer.",
251
+ [ra]: "Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",
252
+ [aa]: "Transaction first instruction is not advance nonce account instruction.",
253
+ [oa]: "Transaction with no instructions cannot be durable nonce transaction.",
254
+ [$o]: "This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",
255
+ [Xo]: "This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",
256
+ [sa]: "The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",
257
+ [ea]: "Transaction is missing signatures for addresses: $addresses.",
258
+ [jo]: "Transaction version must be in the range [0, 127]. `$actualVersion` given"
259
+ }, V = "i", k = "t";
260
+ function Ii(e, t = {}) {
261
+ const n = Si[e];
262
262
  if (n.length === 0)
263
263
  return "";
264
264
  let o;
265
265
  function r(i) {
266
- if (o[b] === 2) {
267
- const _ = n.slice(o[k] + 1, i);
266
+ if (o[k] === 2) {
267
+ const _ = n.slice(o[V] + 1, i);
268
268
  a.push(
269
269
  _ in t ? (
270
270
  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
271
271
  `${t[_]}`
272
272
  ) : `$${_}`
273
273
  );
274
- } else o[b] === 1 && a.push(n.slice(o[k], i));
274
+ } else o[k] === 1 && a.push(n.slice(o[V], i));
275
275
  }
276
276
  const a = [];
277
277
  return n.split("").forEach((i, _) => {
278
278
  if (_ === 0) {
279
279
  o = {
280
- [k]: 0,
281
- [b]: n[0] === "\\" ? 0 : n[0] === "$" ? 2 : 1
280
+ [V]: 0,
281
+ [k]: n[0] === "\\" ? 0 : n[0] === "$" ? 2 : 1
282
282
  /* Text */
283
283
  };
284
284
  return;
285
285
  }
286
286
  let s;
287
- switch (o[b]) {
287
+ switch (o[k]) {
288
288
  case 0:
289
289
  s = {
290
- [k]: _,
291
- [b]: 1
290
+ [V]: _,
291
+ [k]: 1
292
292
  /* Text */
293
293
  };
294
294
  break;
295
295
  case 1:
296
296
  i === "\\" ? s = {
297
- [k]: _,
298
- [b]: 0
297
+ [V]: _,
298
+ [k]: 0
299
299
  /* EscapeSequence */
300
300
  } : i === "$" && (s = {
301
- [k]: _,
302
- [b]: 2
301
+ [V]: _,
302
+ [k]: 2
303
303
  /* Variable */
304
304
  });
305
305
  break;
306
306
  case 2:
307
307
  i === "\\" ? s = {
308
- [k]: _,
309
- [b]: 0
308
+ [V]: _,
309
+ [k]: 0
310
310
  /* EscapeSequence */
311
311
  } : i === "$" ? s = {
312
- [k]: _,
313
- [b]: 2
312
+ [V]: _,
313
+ [k]: 2
314
314
  /* Variable */
315
315
  } : i.match(/\w/) || (s = {
316
- [k]: _,
317
- [b]: 1
316
+ [V]: _,
317
+ [k]: 1
318
318
  /* Text */
319
319
  });
320
320
  break;
@@ -322,25 +322,25 @@ function ui(e, t = {}) {
322
322
  s && (o !== s && r(_), o = s);
323
323
  }), r(), a.join("");
324
324
  }
325
- function Ai(e, t = {}) {
325
+ function fi(e, t = {}) {
326
326
  if (process.env.NODE_ENV !== "production")
327
- return ui(e, t);
327
+ return Ii(e, t);
328
328
  {
329
329
  let n = `Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;
330
- return Object.keys(t).length && (n += ` '${ci(t)}'`), `${n}\``;
330
+ return Object.keys(t).length && (n += ` '${Ti(t)}'`), `${n}\``;
331
331
  }
332
332
  }
333
- function Oi(e, t) {
334
- return e instanceof Error && e.name === "SolanaError" ? e.context.__code === t : !1;
333
+ function ct(e, t) {
334
+ return e instanceof Error && e.name === "SolanaError" ? t !== void 0 ? e.context.__code === t : !0 : !1;
335
335
  }
336
- var N = class extends Error {
336
+ var E = class extends Error {
337
337
  constructor(...[t, n]) {
338
338
  let o, r;
339
339
  if (n) {
340
340
  const { cause: i, ..._ } = n;
341
341
  i && (r = { cause: i }), Object.keys(_).length > 0 && (o = _);
342
342
  }
343
- const a = Ai(t, o);
343
+ const a = fi(t, o);
344
344
  super(a, r);
345
345
  /**
346
346
  * Indicates the root cause of this {@link SolanaError}, if any.
@@ -348,63 +348,63 @@ var N = class extends Error {
348
348
  * For example, a transaction error might have an instruction error as its root cause. In this
349
349
  * case, you will be able to access the instruction error on the transaction error as `cause`.
350
350
  */
351
- ae(this, "cause", this.cause);
351
+ se(this, "cause", this.cause);
352
352
  /**
353
353
  * Contains context that can assist in understanding or recovering from a {@link SolanaError}.
354
354
  */
355
- ae(this, "context");
355
+ se(this, "context");
356
356
  this.context = {
357
357
  __code: t,
358
358
  ...o
359
359
  }, this.name = "SolanaError";
360
360
  }
361
- }, li = (e, t) => {
361
+ }, mi = (e, t) => {
362
362
  if (e.length >= t) return e;
363
363
  const n = new Uint8Array(t).fill(0);
364
364
  return n.set(e), n;
365
- }, di = (e, t) => li(e.length <= t ? e : e.slice(0, t), t);
366
- function P(e, t, n) {
365
+ }, gi = (e, t) => mi(e.length <= t ? e : e.slice(0, t), t);
366
+ function x(e, t, n) {
367
367
  const o = n === 0 && e.length === t.length ? e : e.slice(n, n + t.length);
368
368
  return o.length !== t.length ? !1 : t.every((r, a) => r === o[a]);
369
369
  }
370
- function H(e, t) {
370
+ function K(e, t) {
371
371
  return "fixedSize" in t ? t.fixedSize : t.getSizeFromValue(e);
372
372
  }
373
- function v(e) {
373
+ function p(e) {
374
374
  return Object.freeze({
375
375
  ...e,
376
376
  encode: (t) => {
377
- const n = new Uint8Array(H(t, e));
377
+ const n = new Uint8Array(K(t, e));
378
378
  return e.write(t, n, 0), n;
379
379
  }
380
380
  });
381
381
  }
382
- function L(e) {
382
+ function D(e) {
383
383
  return Object.freeze({
384
384
  ...e,
385
385
  decode: (t, n = 0) => e.read(t, n)[0]
386
386
  });
387
387
  }
388
- function C(e) {
388
+ function h(e) {
389
389
  return "fixedSize" in e && typeof e.fixedSize == "number";
390
390
  }
391
- function Je(e) {
392
- if (!C(e))
393
- throw new N(Be);
391
+ function Rt(e) {
392
+ if (!h(e))
393
+ throw new E(Ze);
394
394
  }
395
- function Ei(e) {
396
- return !C(e);
395
+ function Ci(e) {
396
+ return !h(e);
397
397
  }
398
- function E(e, t) {
399
- if (C(e) !== C(t))
400
- throw new N(Ge);
401
- if (C(e) && C(t) && e.fixedSize !== t.fixedSize)
402
- throw new N(Ve, {
398
+ function N(e, t) {
399
+ if (h(e) !== h(t))
400
+ throw new E(qe);
401
+ if (h(e) && h(t) && e.fixedSize !== t.fixedSize)
402
+ throw new E(Qe, {
403
403
  decoderFixedSize: t.fixedSize,
404
404
  encoderFixedSize: e.fixedSize
405
405
  });
406
- if (!C(e) && !C(t) && e.maxSize !== t.maxSize)
407
- throw new N(Fe, {
406
+ if (!h(e) && !h(t) && e.maxSize !== t.maxSize)
407
+ throw new E(et, {
408
408
  decoderMaxSize: t.maxSize,
409
409
  encoderMaxSize: e.maxSize
410
410
  });
@@ -417,23 +417,23 @@ function E(e, t) {
417
417
  write: e.write
418
418
  };
419
419
  }
420
- function Ni(e, t, n = 0) {
420
+ function vi(e, t, n = 0) {
421
421
  if (t.length - n <= 0)
422
- throw new N(ye, {
422
+ throw new E(je, {
423
423
  codecDescription: e
424
424
  });
425
425
  }
426
- function Ze(e, t, n, o = 0) {
426
+ function ut(e, t, n, o = 0) {
427
427
  const r = n.length - o;
428
428
  if (r < t)
429
- throw new N(xe, {
429
+ throw new E(Je, {
430
430
  bytesLength: r,
431
431
  codecDescription: e,
432
432
  expected: t
433
433
  });
434
434
  }
435
- function S(e, t) {
436
- return v({
435
+ function I(e, t) {
436
+ return p({
437
437
  fixedSize: t,
438
438
  write: (n, o, r) => {
439
439
  const a = e.encode(n), i = a.length > t ? a.slice(0, t) : a;
@@ -441,24 +441,24 @@ function S(e, t) {
441
441
  }
442
442
  });
443
443
  }
444
- function I(e, t) {
445
- return L({
444
+ function f(e, t) {
445
+ return D({
446
446
  fixedSize: t,
447
447
  read: (n, o) => {
448
- Ze("fixCodecSize", t, n, o), (o > 0 || n.length > t) && (n = n.slice(o, o + t)), C(e) && (n = di(n, e.fixedSize));
448
+ ut("fixCodecSize", t, n, o), (o > 0 || n.length > t) && (n = n.slice(o, o + t)), h(e) && (n = gi(n, e.fixedSize));
449
449
  const [r] = e.read(n, 0);
450
450
  return [r, o + t];
451
451
  }
452
452
  });
453
453
  }
454
- function g(e, t) {
455
- return v({
456
- ...Ei(e) ? { ...e, getSizeFromValue: (n) => e.getSizeFromValue(t(n)) } : e,
454
+ function v(e, t) {
455
+ return p({
456
+ ...Ci(e) ? { ...e, getSizeFromValue: (n) => e.getSizeFromValue(t(n)) } : e,
457
457
  write: (n, o, r) => e.write(t(n), o, r)
458
458
  });
459
459
  }
460
- function W(e, t) {
461
- return L({
460
+ function Y(e, t) {
461
+ return D({
462
462
  ...e,
463
463
  read: (n, o) => {
464
464
  const [r, a] = e.read(n, o);
@@ -466,34 +466,34 @@ function W(e, t) {
466
466
  }
467
467
  });
468
468
  }
469
- function Ti(e, t, n = t) {
469
+ function Li(e, t, n = t) {
470
470
  if (!t.match(new RegExp(`^[${e}]*$`)))
471
- throw new N(ee, {
471
+ throw new E(oe, {
472
472
  alphabet: e,
473
473
  base: e.length,
474
474
  value: n
475
475
  });
476
476
  }
477
- var Si = (e) => v({
477
+ var hi = (e) => p({
478
478
  getSizeFromValue: (t) => {
479
- const [n, o] = ge(t, e[0]);
479
+ const [n, o] = pe(t, e[0]);
480
480
  if (!o) return t.length;
481
- const r = Ce(o, e);
481
+ const r = De(o, e);
482
482
  return n.length + Math.ceil(r.toString(16).length / 2);
483
483
  },
484
484
  write(t, n, o) {
485
- if (Ti(e, t), t === "") return o;
486
- const [r, a] = ge(t, e[0]);
485
+ if (Li(e, t), t === "") return o;
486
+ const [r, a] = pe(t, e[0]);
487
487
  if (!a)
488
488
  return n.set(new Uint8Array(r.length).fill(0), o), o + r.length;
489
- let i = Ce(a, e);
489
+ let i = De(a, e);
490
490
  const _ = [];
491
491
  for (; i > 0n; )
492
492
  _.unshift(Number(i % 256n)), i /= 256n;
493
493
  const s = [...Array(r.length).fill(0), ..._];
494
494
  return n.set(s, o), o + s.length;
495
495
  }
496
- }), Ii = (e) => L({
496
+ }), pi = (e) => D({
497
497
  read(t, n) {
498
498
  const o = n === 0 ? t : t.slice(n);
499
499
  if (o.length === 0) return ["", 0];
@@ -501,34 +501,34 @@ var Si = (e) => v({
501
501
  r = r === -1 ? o.length : r;
502
502
  const a = e[0].repeat(r);
503
503
  if (r === o.length) return [a, t.length];
504
- const i = o.slice(r).reduce((s, h) => s * 256n + BigInt(h), 0n), _ = fi(i, e);
504
+ const i = o.slice(r).reduce((s, S) => s * 256n + BigInt(S), 0n), _ = Di(i, e);
505
505
  return [a + _, t.length];
506
506
  }
507
507
  });
508
- function ge(e, t) {
508
+ function pe(e, t) {
509
509
  const [n, o] = e.split(new RegExp(`((?!${t}).*)`));
510
510
  return [n, o];
511
511
  }
512
- function Ce(e, t) {
512
+ function De(e, t) {
513
513
  const n = BigInt(t.length);
514
514
  let o = 0n;
515
515
  for (const r of e)
516
516
  o *= n, o += BigInt(t.indexOf(r));
517
517
  return o;
518
518
  }
519
- function fi(e, t) {
519
+ function Di(e, t) {
520
520
  const n = BigInt(t.length), o = [];
521
521
  for (; e > 0n; )
522
522
  o.unshift(t[Number(e % n)]), e /= n;
523
523
  return o.join("");
524
524
  }
525
- var qe = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", mi = () => Si(qe), gi = () => Ii(qe), ve = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ci = () => v({
525
+ var At = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", bi = () => hi(At), Pi = () => pi(At), be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Ui = () => p({
526
526
  getSizeFromValue: (e) => {
527
527
  try {
528
528
  return atob(e).length;
529
529
  } catch {
530
- throw new N(ee, {
531
- alphabet: ve,
530
+ throw new E(oe, {
531
+ alphabet: be,
532
532
  base: 64,
533
533
  value: e
534
534
  });
@@ -539,29 +539,29 @@ var qe = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", mi = () =
539
539
  const o = atob(e).split("").map((r) => r.charCodeAt(0));
540
540
  return t.set(o, n), o.length + n;
541
541
  } catch {
542
- throw new N(ee, {
543
- alphabet: ve,
542
+ throw new E(oe, {
543
+ alphabet: be,
544
544
  base: 64,
545
545
  value: e
546
546
  });
547
547
  }
548
548
  }
549
549
  });
550
- function Qe(e, t) {
550
+ function lt(e, t) {
551
551
  try {
552
552
  return "exists" in e && !e.exists ? e : Object.freeze({ ...e, data: t.decode(e.data) });
553
553
  } catch {
554
- throw new N(Me, {
554
+ throw new E(He, {
555
555
  address: e.address
556
556
  });
557
557
  }
558
558
  }
559
- function et(e, t) {
559
+ function Ot(e, t) {
560
560
  if (!t) return Object.freeze({ address: e, exists: !1 });
561
- const n = Ci().encode(t.data[0]);
562
- return Object.freeze({ ...vi(t), address: e, data: n, exists: !0 });
561
+ const n = Ui().encode(t.data[0]);
562
+ return Object.freeze({ ...wi(t), address: e, data: n, exists: !0 });
563
563
  }
564
- function vi(e) {
564
+ function wi(e) {
565
565
  return Object.freeze({
566
566
  executable: e.executable,
567
567
  lamports: e.lamports,
@@ -569,118 +569,239 @@ function vi(e) {
569
569
  space: e.space
570
570
  });
571
571
  }
572
- async function tt(e, t, n = {}) {
572
+ async function dt(e, t, n = {}) {
573
573
  const { abortSignal: o, ...r } = n, a = await e.getAccountInfo(t, { ...r, encoding: "base64" }).send({ abortSignal: o });
574
- return et(t, a.value);
574
+ return Ot(t, a.value);
575
575
  }
576
- async function nt(e, t, n = {}) {
576
+ async function Et(e, t, n = {}) {
577
577
  const { abortSignal: o, ...r } = n;
578
- return (await e.getMultipleAccounts(t, { ...r, encoding: "base64" }).send({ abortSignal: o })).value.map((i, _) => et(t[_], i));
578
+ return (await e.getMultipleAccounts(t, { ...r, encoding: "base64" }).send({ abortSignal: o })).value.map((i, _) => Ot(t[_], i));
579
579
  }
580
- function rt(e) {
580
+ function Nt(e) {
581
581
  if (!e.exists)
582
- throw new N(Pe, { address: e.address });
582
+ throw new E(ze, { address: e.address });
583
583
  }
584
- function ot(e) {
584
+ function Tt(e) {
585
585
  const t = e.filter((n) => !n.exists);
586
586
  if (t.length > 0) {
587
587
  const n = t.map((o) => o.address);
588
- throw new N(Ue, { addresses: n });
588
+ throw new E(We, { addresses: n });
589
589
  }
590
590
  }
591
- var ie, _e;
592
- function at() {
593
- return ie || (ie = mi()), ie;
591
+ function Mi() {
592
+ if (!globalThis.isSecureContext)
593
+ throw new E($e);
594
+ }
595
+ function ki() {
596
+ var e;
597
+ if (Mi(), typeof globalThis.crypto > "u" || typeof ((e = globalThis.crypto.subtle) == null ? void 0 : e.digest) != "function")
598
+ throw new E(Xe);
599
+ }
600
+ var ce, Re;
601
+ function St() {
602
+ return ce || (ce = bi()), ce;
594
603
  }
595
- function Li() {
596
- return _e || (_e = gi()), _e;
604
+ function yi() {
605
+ return Re || (Re = Pi()), Re;
597
606
  }
598
- function hi(e) {
607
+ function xi(e) {
599
608
  if (
600
609
  // Lowest address (32 bytes of zeroes)
601
610
  e.length < 32 || // Highest address (32 bytes of 255)
602
611
  e.length > 44
603
612
  )
604
- throw new N(be, {
613
+ throw new E(Be, {
605
614
  actualLength: e.length
606
615
  });
607
- const o = at().encode(e).byteLength;
616
+ const o = St().encode(e).byteLength;
608
617
  if (o !== 32)
609
- throw new N(pe, {
618
+ throw new E(xe, {
610
619
  actualLength: o
611
620
  });
612
621
  }
613
- function Di(e) {
614
- return hi(e), e;
622
+ function Bi(e) {
623
+ return xi(e), e;
615
624
  }
616
- function R() {
617
- return g(
618
- S(at(), 32),
619
- (e) => Di(e)
625
+ function c() {
626
+ return v(
627
+ I(St(), 32),
628
+ (e) => Bi(e)
620
629
  );
621
630
  }
622
- function u() {
623
- return I(Li(), 32);
631
+ function R() {
632
+ return f(yi(), 32);
633
+ }
634
+ function Gi() {
635
+ return N(c(), R());
636
+ }
637
+ var Vi = 37095705934669439343138083508754565189542113879843219016388785533085940283555n, C = 57896044618658097711785492504343953926634992332820282019728792003956564819949n, Pe = 19681161376707505956807079304988542015446066515923890162744021073123829784752n;
638
+ function P(e) {
639
+ const t = e % C;
640
+ return t >= 0n ? t : C + t;
641
+ }
642
+ function y(e, t) {
643
+ let n = e;
644
+ for (; t-- > 0n; )
645
+ n *= n, n %= C;
646
+ return n;
647
+ }
648
+ function Fi(e) {
649
+ const n = e * e % C * e % C, o = y(n, 2n) * n % C, r = y(o, 1n) * e % C, a = y(r, 5n) * r % C, i = y(a, 10n) * a % C, _ = y(i, 20n) * i % C, s = y(_, 40n) * _ % C, S = y(s, 80n) * s % C, L = y(S, 80n) * s % C, b = y(L, 10n) * a % C;
650
+ return y(b, 2n) * e % C;
651
+ }
652
+ function zi(e, t) {
653
+ const n = P(t * t * t), o = P(n * n * t), r = Fi(e * o);
654
+ let a = P(e * n * r);
655
+ const i = P(t * a * a), _ = a, s = P(a * Pe), S = i === e, L = i === P(-e), b = i === P(-e * Pe);
656
+ return S && (a = _), (L || b) && (a = s), (P(a) & 1n) === 1n && (a = P(-a)), !S && !L ? null : a;
657
+ }
658
+ function Wi(e, t) {
659
+ const n = P(e * e), o = P(n - 1n), r = P(Vi * n + 1n), a = zi(o, r);
660
+ if (a === null)
661
+ return !1;
662
+ const i = (t & 128) !== 0;
663
+ return !(a === 0n && i);
664
+ }
665
+ function Hi(e) {
666
+ const t = e.toString(16);
667
+ return t.length === 1 ? `0${t}` : t;
668
+ }
669
+ function $i(e) {
670
+ const n = `0x${e.reduce((o, r, a) => `${Hi(a === 31 ? r & -129 : r)}${o}`, "")}`;
671
+ return BigInt(n);
672
+ }
673
+ function Xi(e) {
674
+ if (e.byteLength !== 32)
675
+ return !1;
676
+ const t = $i(e);
677
+ return Wi(t, e[31]);
678
+ }
679
+ var Ue = 32, we = 16, Yi = [
680
+ // The string 'ProgramDerivedAddress'
681
+ 80,
682
+ 114,
683
+ 111,
684
+ 103,
685
+ 114,
686
+ 97,
687
+ 109,
688
+ 68,
689
+ 101,
690
+ 114,
691
+ 105,
692
+ 118,
693
+ 101,
694
+ 100,
695
+ 65,
696
+ 100,
697
+ 100,
698
+ 114,
699
+ 101,
700
+ 115,
701
+ 115
702
+ ];
703
+ async function Ki({ programAddress: e, seeds: t }) {
704
+ if (ki(), t.length > we)
705
+ throw new E(Ge, {
706
+ actual: t.length,
707
+ maxSeeds: we
708
+ });
709
+ let n;
710
+ const o = t.reduce((s, S, L) => {
711
+ const b = typeof S == "string" ? (n || (n = new TextEncoder())).encode(S) : S;
712
+ if (b.byteLength > Ue)
713
+ throw new E(Ve, {
714
+ actual: b.byteLength,
715
+ index: L,
716
+ maxSeedLength: Ue
717
+ });
718
+ return s.push(...b), s;
719
+ }, []), r = Gi(), a = r.encode(e), i = await crypto.subtle.digest(
720
+ "SHA-256",
721
+ new Uint8Array([...o, ...a, ...Yi])
722
+ ), _ = new Uint8Array(i);
723
+ if (Xi(_))
724
+ throw new E(Te);
725
+ return r.decode(_);
726
+ }
727
+ async function Ie({
728
+ programAddress: e,
729
+ seeds: t
730
+ }) {
731
+ let n = 255;
732
+ for (; n > 0; )
733
+ try {
734
+ return [await Ki({
735
+ programAddress: e,
736
+ seeds: [...t, new Uint8Array([n])]
737
+ }), n];
738
+ } catch (o) {
739
+ if (ct(o, Te))
740
+ n--;
741
+ else
742
+ throw o;
743
+ }
744
+ throw new E(Fe);
624
745
  }
625
- function pi(e, t, n, o) {
746
+ function ji(e, t, n, o) {
626
747
  if (o < t || o > n)
627
- throw new N(Xe, {
748
+ throw new E(at, {
628
749
  codecDescription: e,
629
750
  max: n,
630
751
  min: t,
631
752
  value: o
632
753
  });
633
754
  }
634
- function it(e) {
755
+ function It(e) {
635
756
  return (e == null ? void 0 : e.endian) !== 1;
636
757
  }
637
- function G(e) {
638
- return v({
758
+ function H(e) {
759
+ return p({
639
760
  fixedSize: e.size,
640
761
  write(t, n, o) {
641
- e.range && pi(e.name, e.range[0], e.range[1], t);
762
+ e.range && ji(e.name, e.range[0], e.range[1], t);
642
763
  const r = new ArrayBuffer(e.size);
643
- return e.set(new DataView(r), t, it(e.config)), n.set(new Uint8Array(r), o), o + e.size;
764
+ return e.set(new DataView(r), t, It(e.config)), n.set(new Uint8Array(r), o), o + e.size;
644
765
  }
645
766
  });
646
767
  }
647
- function V(e) {
648
- return L({
768
+ function $(e) {
769
+ return D({
649
770
  fixedSize: e.size,
650
771
  read(t, n = 0) {
651
- Ni(e.name, t, n), Ze(e.name, e.size, t, n);
652
- const o = new DataView(bi(t, n, e.size));
653
- return [e.get(o, it(e.config)), n + e.size];
772
+ vi(e.name, t, n), ut(e.name, e.size, t, n);
773
+ const o = new DataView(Ji(t, n, e.size));
774
+ return [e.get(o, It(e.config)), n + e.size];
654
775
  }
655
776
  });
656
777
  }
657
- function bi(e, t, n) {
778
+ function Ji(e, t, n) {
658
779
  const o = e.byteOffset + (t ?? 0), r = n ?? e.byteLength;
659
780
  return e.buffer.slice(o, o + r);
660
781
  }
661
- var Re = (e = {}) => G({
782
+ var le = (e = {}) => H({
662
783
  config: e,
663
784
  name: "i32",
664
785
  range: [-+"0x7fffffff" - 1, +"0x7fffffff"],
665
786
  set: (t, n, o) => t.setInt32(0, Number(n), o),
666
787
  size: 4
667
- }), ue = (e = {}) => V({
788
+ }), Oe = (e = {}) => $({
668
789
  config: e,
669
790
  get: (t, n) => t.getInt32(0, n),
670
791
  name: "i32",
671
792
  size: 4
672
- }), Pi = (e = {}) => G({
793
+ }), Zi = (e = {}) => H({
673
794
  config: e,
674
795
  name: "i64",
675
796
  range: [-BigInt("0x7fffffffffffffff") - 1n, BigInt("0x7fffffffffffffff")],
676
797
  set: (t, n, o) => t.setBigInt64(0, BigInt(n), o),
677
798
  size: 8
678
- }), Ui = (e = {}) => V({
799
+ }), qi = (e = {}) => $({
679
800
  config: e,
680
801
  get: (t, n) => t.getBigInt64(0, n),
681
802
  name: "i64",
682
803
  size: 8
683
- }), D = (e = {}) => G({
804
+ }), U = (e = {}) => H({
684
805
  config: e,
685
806
  name: "u128",
686
807
  range: [0n, BigInt("0xffffffffffffffffffffffffffffffff")],
@@ -689,7 +810,7 @@ var Re = (e = {}) => G({
689
810
  t.setBigUint64(r, BigInt(n) >> 64n, o), t.setBigUint64(a, BigInt(n) & i, o);
690
811
  },
691
812
  size: 16
692
- }), p = (e = {}) => V({
813
+ }), w = (e = {}) => $({
693
814
  config: e,
694
815
  get: (t, n) => {
695
816
  const o = n ? 8 : 0, r = n ? 0 : 8, a = t.getBigUint64(o, n), i = t.getBigUint64(r, n);
@@ -697,87 +818,87 @@ var Re = (e = {}) => G({
697
818
  },
698
819
  name: "u128",
699
820
  size: 16
700
- }), se = (e = {}) => G({
821
+ }), ue = (e = {}) => H({
701
822
  config: e,
702
823
  name: "u16",
703
824
  range: [0, +"0xffff"],
704
825
  set: (t, n, o) => t.setUint16(0, Number(n), o),
705
826
  size: 2
706
- }), ce = (e = {}) => V({
827
+ }), Ae = (e = {}) => $({
707
828
  config: e,
708
829
  get: (t, n) => t.getUint16(0, n),
709
830
  name: "u16",
710
831
  size: 2
711
- }), U = (e = {}) => G({
832
+ }), B = (e = {}) => H({
712
833
  config: e,
713
834
  name: "u32",
714
835
  range: [0, +"0xffffffff"],
715
836
  set: (t, n, o) => t.setUint32(0, Number(n), o),
716
837
  size: 4
717
- }), M = (e = {}) => V({
838
+ }), G = (e = {}) => $({
718
839
  config: e,
719
840
  get: (t, n) => t.getUint32(0, n),
720
841
  name: "u32",
721
842
  size: 4
722
- }), A = (e = {}) => G({
843
+ }), A = (e = {}) => H({
723
844
  config: e,
724
845
  name: "u64",
725
846
  range: [0n, BigInt("0xffffffffffffffff")],
726
847
  set: (t, n, o) => t.setBigUint64(0, BigInt(n), o),
727
848
  size: 8
728
- }), O = (e = {}) => V({
849
+ }), l = (e = {}) => $({
729
850
  config: e,
730
851
  get: (t, n) => t.getBigUint64(0, n),
731
852
  name: "u64",
732
853
  size: 8
733
- }), c = () => G({
854
+ }), u = () => H({
734
855
  name: "u8",
735
856
  range: [0, +"0xff"],
736
857
  set: (e, t) => e.setUint8(0, Number(t)),
737
858
  size: 1
738
- }), T = () => V({
859
+ }), T = () => $({
739
860
  get: (e) => e.getUint8(0),
740
861
  name: "u8",
741
862
  size: 1
742
863
  });
743
- function _t(e, t, n) {
864
+ function ft(e, t, n) {
744
865
  if (t !== n)
745
- throw new N(ze, {
866
+ throw new E(tt, {
746
867
  actual: n,
747
868
  codecDescription: e,
748
869
  expected: t
749
870
  });
750
871
  }
751
- function Mi(e) {
872
+ function Qi(e) {
752
873
  return e.reduce(
753
874
  (t, n) => t === null || n === null ? null : Math.max(t, n),
754
875
  0
755
876
  );
756
877
  }
757
- function x(e) {
878
+ function z(e) {
758
879
  return e.reduce((t, n) => t === null || n === null ? null : t + n, 0);
759
880
  }
760
- function $(e) {
761
- return C(e) ? e.fixedSize : null;
881
+ function j(e) {
882
+ return h(e) ? e.fixedSize : null;
762
883
  }
763
- function F(e) {
764
- return C(e) ? e.fixedSize : e.maxSize ?? null;
884
+ function X(e) {
885
+ return h(e) ? e.fixedSize : e.maxSize ?? null;
765
886
  }
766
- function ne(e, t = {}) {
767
- const n = t.size ?? U(), o = te(n, $(e)), r = te(n, F(e)) ?? void 0;
768
- return v({
887
+ function ie(e, t = {}) {
888
+ const n = t.size ?? B(), o = ae(n, j(e)), r = ae(n, X(e)) ?? void 0;
889
+ return p({
769
890
  ...o !== null ? { fixedSize: o } : {
770
- getSizeFromValue: (a) => (typeof n == "object" ? H(a.length, n) : 0) + [...a].reduce((_, s) => _ + H(s, e), 0),
891
+ getSizeFromValue: (a) => (typeof n == "object" ? K(a.length, n) : 0) + [...a].reduce((_, s) => _ + K(s, e), 0),
771
892
  maxSize: r
772
893
  },
773
- write: (a, i, _) => (typeof n == "number" && _t("array", n, a.length), typeof n == "object" && (_ = n.write(a.length, i, _)), a.forEach((s) => {
894
+ write: (a, i, _) => (typeof n == "number" && ft("array", n, a.length), typeof n == "object" && (_ = n.write(a.length, i, _)), a.forEach((s) => {
774
895
  _ = e.write(s, i, _);
775
896
  }), _)
776
897
  });
777
898
  }
778
- function re(e, t = {}) {
779
- const n = t.size ?? M(), o = $(e), r = te(n, o), a = te(n, F(e)) ?? void 0;
780
- return L({
899
+ function _e(e, t = {}) {
900
+ const n = t.size ?? G(), o = j(e), r = ae(n, o), a = ae(n, X(e)) ?? void 0;
901
+ return D({
781
902
  ...r !== null ? { fixedSize: r } : { maxSize: a },
782
903
  read: (i, _) => {
783
904
  const s = [];
@@ -785,62 +906,62 @@ function re(e, t = {}) {
785
906
  return [s, _];
786
907
  if (n === "remainder") {
787
908
  for (; _ < i.length; ) {
788
- const [J, oe] = e.read(i, _);
789
- _ = oe, s.push(J);
909
+ const [b, ee] = e.read(i, _);
910
+ _ = ee, s.push(b);
790
911
  }
791
912
  return [s, _];
792
913
  }
793
- const [h, z] = typeof n == "number" ? [n, _] : n.read(i, _);
794
- _ = z;
795
- for (let J = 0; J < h; J += 1) {
796
- const [oe, dn] = e.read(i, _);
797
- _ = dn, s.push(oe);
914
+ const [S, L] = typeof n == "number" ? [n, _] : n.read(i, _);
915
+ _ = L;
916
+ for (let b = 0; b < S; b += 1) {
917
+ const [ee, bn] = e.read(i, _);
918
+ _ = bn, s.push(ee);
798
919
  }
799
920
  return [s, _];
800
921
  }
801
922
  });
802
923
  }
803
- function te(e, t) {
924
+ function ae(e, t) {
804
925
  return typeof e != "number" ? null : e === 0 ? 0 : t === null ? null : t * e;
805
926
  }
806
- function st(e = {}) {
807
- return g(e.size ?? c(), (t) => t ? 1 : 0);
927
+ function mt(e = {}) {
928
+ return v(e.size ?? u(), (t) => t ? 1 : 0);
808
929
  }
809
- function ct(e = {}) {
810
- return W(e.size ?? T(), (t) => Number(t) === 1);
930
+ function gt(e = {}) {
931
+ return Y(e.size ?? T(), (t) => Number(t) === 1);
811
932
  }
812
- function f() {
813
- return v({
933
+ function m() {
934
+ return p({
814
935
  getSizeFromValue: (e) => e.length,
815
936
  write: (e, t, n) => (t.set(e, n), n + e.length)
816
937
  });
817
938
  }
818
- function m() {
819
- return L({
939
+ function g() {
940
+ return D({
820
941
  read: (e, t) => {
821
942
  const n = e.slice(t);
822
943
  return [n, t + n.length];
823
944
  }
824
945
  });
825
946
  }
826
- var ki = () => L({
947
+ var e_ = () => D({
827
948
  read(e, t) {
828
949
  return [e.slice(t).reduce((o, r) => o + r.toString(16).padStart(2, "0"), ""), e.length];
829
950
  }
830
951
  });
831
- function wi(e) {
832
- return v({
952
+ function t_(e) {
953
+ return p({
833
954
  fixedSize: e.length,
834
955
  write: (t, n, o) => (n.set(e, o), o + e.length)
835
956
  });
836
957
  }
837
- function yi(e) {
838
- return L({
958
+ function n_(e) {
959
+ return D({
839
960
  fixedSize: e.length,
840
961
  read: (t, n) => {
841
- const o = ki();
842
- if (!P(t, e, n))
843
- throw new N(Ke, {
962
+ const o = e_();
963
+ if (!x(t, e, n))
964
+ throw new E(_t, {
844
965
  constant: e,
845
966
  data: t,
846
967
  hexConstant: o.decode(e),
@@ -851,21 +972,21 @@ function yi(e) {
851
972
  }
852
973
  });
853
974
  }
854
- function Ae(e) {
855
- const t = x(e.map($)), n = x(e.map(F)) ?? void 0;
856
- return v({
975
+ function de(e) {
976
+ const t = z(e.map(j)), n = z(e.map(X)) ?? void 0;
977
+ return p({
857
978
  ...t === null ? {
858
- getSizeFromValue: (o) => e.map((r, a) => H(o[a], r)).reduce((r, a) => r + a, 0),
979
+ getSizeFromValue: (o) => e.map((r, a) => K(o[a], r)).reduce((r, a) => r + a, 0),
859
980
  maxSize: n
860
981
  } : { fixedSize: t },
861
- write: (o, r, a) => (_t("tuple", e.length, o.length), e.forEach((i, _) => {
982
+ write: (o, r, a) => (ft("tuple", e.length, o.length), e.forEach((i, _) => {
862
983
  a = i.write(o[_], r, a);
863
984
  }), a)
864
985
  });
865
986
  }
866
- function Oe(e) {
867
- const t = x(e.map($)), n = x(e.map(F)) ?? void 0;
868
- return L({
987
+ function Ee(e) {
988
+ const t = z(e.map(j)), n = z(e.map(X)) ?? void 0;
989
+ return D({
869
990
  ...t === null ? { maxSize: n } : { fixedSize: t },
870
991
  read: (o, r) => {
871
992
  const a = [];
@@ -876,64 +997,64 @@ function Oe(e) {
876
997
  }
877
998
  });
878
999
  }
879
- function Rt(e, t) {
880
- const n = At(e), o = (a, i, _) => {
1000
+ function Ct(e, t) {
1001
+ const n = Lt(e), o = (a, i, _) => {
881
1002
  const s = t(a);
882
- return le(e, s), e[s].write(a, i, _);
1003
+ return Ne(e, s), e[s].write(a, i, _);
883
1004
  };
884
1005
  if (n !== null)
885
- return v({ fixedSize: n, write: o });
886
- const r = Ot(e);
887
- return v({
1006
+ return p({ fixedSize: n, write: o });
1007
+ const r = ht(e);
1008
+ return p({
888
1009
  ...r !== null ? { maxSize: r } : {},
889
1010
  getSizeFromValue: (a) => {
890
1011
  const i = t(a);
891
- return le(e, i), H(a, e[i]);
1012
+ return Ne(e, i), K(a, e[i]);
892
1013
  },
893
1014
  write: o
894
1015
  });
895
1016
  }
896
- function ut(e, t) {
897
- const n = At(e), o = (a, i) => {
1017
+ function vt(e, t) {
1018
+ const n = Lt(e), o = (a, i) => {
898
1019
  const _ = t(a, i);
899
- return le(e, _), e[_].read(a, i);
1020
+ return Ne(e, _), e[_].read(a, i);
900
1021
  };
901
1022
  if (n !== null)
902
- return L({ fixedSize: n, read: o });
903
- const r = Ot(e);
904
- return L({ ...r !== null ? { maxSize: r } : {}, read: o });
1023
+ return D({ fixedSize: n, read: o });
1024
+ const r = ht(e);
1025
+ return D({ ...r !== null ? { maxSize: r } : {}, read: o });
905
1026
  }
906
- function le(e, t) {
1027
+ function Ne(e, t) {
907
1028
  if (typeof e[t] > "u")
908
- throw new N(Ye, {
1029
+ throw new E(it, {
909
1030
  maxRange: e.length - 1,
910
1031
  minRange: 0,
911
1032
  variant: t
912
1033
  });
913
1034
  }
914
- function At(e) {
1035
+ function Lt(e) {
915
1036
  if (e.length === 0) return 0;
916
- if (!C(e[0])) return null;
1037
+ if (!h(e[0])) return null;
917
1038
  const t = e[0].fixedSize;
918
- return e.every((o) => C(o) && o.fixedSize === t) ? t : null;
1039
+ return e.every((o) => h(o) && o.fixedSize === t) ? t : null;
919
1040
  }
920
- function Ot(e) {
921
- return Mi(e.map((t) => F(t)));
1041
+ function ht(e) {
1042
+ return Qi(e.map((t) => X(t)));
922
1043
  }
923
- function X(e, t = {}) {
924
- const n = t.discriminator ?? "__kind", o = t.size ?? c();
925
- return Rt(
1044
+ function J(e, t = {}) {
1045
+ const n = t.discriminator ?? "__kind", o = t.size ?? u();
1046
+ return Ct(
926
1047
  e.map(
927
- ([, r], a) => g(Ae([o, r]), (i) => [a, i])
1048
+ ([, r], a) => v(de([o, r]), (i) => [a, i])
928
1049
  ),
929
- (r) => xi(e, r[n])
1050
+ (r) => r_(e, r[n])
930
1051
  );
931
1052
  }
932
- function Y(e, t = {}) {
1053
+ function Z(e, t = {}) {
933
1054
  const n = t.discriminator ?? "__kind", o = t.size ?? T();
934
- return ut(
1055
+ return vt(
935
1056
  e.map(
936
- ([r, a]) => W(Oe([o, a]), ([, i]) => ({
1057
+ ([r, a]) => Y(Ee([o, a]), ([, i]) => ({
937
1058
  [n]: r,
938
1059
  ...i
939
1060
  }))
@@ -941,44 +1062,44 @@ function Y(e, t = {}) {
941
1062
  (r, a) => Number(o.read(r, a)[0])
942
1063
  );
943
1064
  }
944
- function xi(e, t) {
1065
+ function r_(e, t) {
945
1066
  const n = e.findIndex(([o]) => t === o);
946
1067
  if (n < 0)
947
- throw new N(He, {
1068
+ throw new E(rt, {
948
1069
  value: t,
949
1070
  variants: e.map(([o]) => o)
950
1071
  });
951
1072
  return n;
952
1073
  }
953
- function lt(e) {
1074
+ function pt(e) {
954
1075
  const t = [...new Set(Object.values(e).filter((i) => typeof i == "number"))].sort(), n = Object.fromEntries(Object.entries(e).slice(t.length)), o = Object.keys(n), r = Object.values(n), a = [
955
1076
  .../* @__PURE__ */ new Set([...o, ...r.filter((i) => typeof i == "string")])
956
1077
  ];
957
1078
  return { enumKeys: o, enumRecord: n, enumValues: r, numericalValues: t, stringValues: a };
958
1079
  }
959
- function Bi({
1080
+ function o_({
960
1081
  enumKeys: e,
961
1082
  enumValues: t,
962
1083
  variant: n
963
1084
  }) {
964
- const o = dt(t, (r) => r === n);
1085
+ const o = Dt(t, (r) => r === n);
965
1086
  return o >= 0 ? o : e.findIndex((r) => r === n);
966
1087
  }
967
- function Gi({
1088
+ function a_({
968
1089
  discriminator: e,
969
1090
  enumKeys: t,
970
1091
  enumValues: n,
971
1092
  useValuesAsDiscriminators: o
972
1093
  }) {
973
- return o ? dt(n, (r) => r === e) : e >= 0 && e < t.length ? e : -1;
1094
+ return o ? Dt(n, (r) => r === e) : e >= 0 && e < t.length ? e : -1;
974
1095
  }
975
- function dt(e, t) {
1096
+ function Dt(e, t) {
976
1097
  let n = e.length;
977
1098
  for (; n--; )
978
1099
  if (t(e[n], n, e)) return n;
979
1100
  return -1;
980
1101
  }
981
- function Et(e) {
1102
+ function bt(e) {
982
1103
  if (e.length === 0) return "";
983
1104
  let t = [e[0], e[0]];
984
1105
  const n = [];
@@ -988,65 +1109,65 @@ function Et(e) {
988
1109
  }
989
1110
  return n.push(t[0] === t[1] ? `${t[0]}` : `${t[0]}-${t[1]}`), n.join(", ");
990
1111
  }
991
- function K(e, t = {}) {
992
- const n = t.size ?? c(), o = t.useValuesAsDiscriminators ?? !1, { enumKeys: r, enumValues: a, numericalValues: i, stringValues: _ } = lt(e);
1112
+ function q(e, t = {}) {
1113
+ const n = t.size ?? u(), o = t.useValuesAsDiscriminators ?? !1, { enumKeys: r, enumValues: a, numericalValues: i, stringValues: _ } = pt(e);
993
1114
  if (o && a.some((s) => typeof s == "string"))
994
- throw new N(de, {
1115
+ throw new E(Se, {
995
1116
  stringValues: a.filter((s) => typeof s == "string")
996
1117
  });
997
- return g(n, (s) => {
998
- const h = Bi({ enumKeys: r, enumValues: a, variant: s });
999
- if (h < 0)
1000
- throw new N($e, {
1001
- formattedNumericalValues: Et(i),
1118
+ return v(n, (s) => {
1119
+ const S = o_({ enumKeys: r, enumValues: a, variant: s });
1120
+ if (S < 0)
1121
+ throw new E(ot, {
1122
+ formattedNumericalValues: bt(i),
1002
1123
  numericalValues: i,
1003
1124
  stringValues: _,
1004
1125
  variant: s
1005
1126
  });
1006
- return o ? a[h] : h;
1127
+ return o ? a[S] : S;
1007
1128
  });
1008
1129
  }
1009
- function j(e, t = {}) {
1010
- const n = t.size ?? T(), o = t.useValuesAsDiscriminators ?? !1, { enumKeys: r, enumValues: a, numericalValues: i } = lt(e);
1130
+ function Q(e, t = {}) {
1131
+ const n = t.size ?? T(), o = t.useValuesAsDiscriminators ?? !1, { enumKeys: r, enumValues: a, numericalValues: i } = pt(e);
1011
1132
  if (o && a.some((_) => typeof _ == "string"))
1012
- throw new N(de, {
1133
+ throw new E(Se, {
1013
1134
  stringValues: a.filter((_) => typeof _ == "string")
1014
1135
  });
1015
- return W(n, (_) => {
1016
- const s = Number(_), h = Gi({
1136
+ return Y(n, (_) => {
1137
+ const s = Number(_), S = a_({
1017
1138
  discriminator: s,
1018
1139
  enumKeys: r,
1019
1140
  enumValues: a,
1020
1141
  useValuesAsDiscriminators: o
1021
1142
  });
1022
- if (h < 0) {
1023
- const z = o ? i : [...Array(r.length).keys()];
1024
- throw new N(We, {
1143
+ if (S < 0) {
1144
+ const L = o ? i : [...Array(r.length).keys()];
1145
+ throw new E(nt, {
1025
1146
  discriminator: s,
1026
- formattedValidDiscriminators: Et(z),
1027
- validDiscriminators: z
1147
+ formattedValidDiscriminators: bt(L),
1148
+ validDiscriminators: L
1028
1149
  });
1029
1150
  }
1030
- return a[h];
1151
+ return a[S];
1031
1152
  });
1032
1153
  }
1033
- function Z() {
1034
- return v({
1154
+ function te() {
1155
+ return p({
1035
1156
  fixedSize: 0,
1036
1157
  write: (e, t, n) => n
1037
1158
  });
1038
1159
  }
1039
- function q() {
1040
- return L({
1160
+ function ne() {
1161
+ return D({
1041
1162
  fixedSize: 0,
1042
1163
  read: (e, t) => [void 0, t]
1043
1164
  });
1044
1165
  }
1045
- function l(e) {
1046
- const t = e.map(([, r]) => r), n = x(t.map($)), o = x(t.map(F)) ?? void 0;
1047
- return v({
1166
+ function O(e) {
1167
+ const t = e.map(([, r]) => r), n = z(t.map(j)), o = z(t.map(X)) ?? void 0;
1168
+ return p({
1048
1169
  ...n === null ? {
1049
- getSizeFromValue: (r) => e.map(([a, i]) => H(r[a], i)).reduce((a, i) => a + i, 0),
1170
+ getSizeFromValue: (r) => e.map(([a, i]) => K(r[a], i)).reduce((a, i) => a + i, 0),
1050
1171
  maxSize: o
1051
1172
  } : { fixedSize: n },
1052
1173
  write: (r, a, i) => (e.forEach(([_, s]) => {
@@ -1055,205 +1176,205 @@ function l(e) {
1055
1176
  });
1056
1177
  }
1057
1178
  function d(e) {
1058
- const t = e.map(([, r]) => r), n = x(t.map($)), o = x(t.map(F)) ?? void 0;
1059
- return L({
1179
+ const t = e.map(([, r]) => r), n = z(t.map(j)), o = z(t.map(X)) ?? void 0;
1180
+ return D({
1060
1181
  ...n === null ? { maxSize: o } : { fixedSize: n },
1061
1182
  read: (r, a) => {
1062
1183
  const i = {};
1063
1184
  return e.forEach(([_, s]) => {
1064
- const [h, z] = s.read(r, a);
1065
- a = z, i[_] = h;
1185
+ const [S, L] = s.read(r, a);
1186
+ a = L, i[_] = S;
1066
1187
  }), [i, a];
1067
1188
  }
1068
1189
  });
1069
1190
  }
1070
- var Nt = (e) => ({ __option: "Some", value: e }), Tt = () => ({ __option: "None" }), Le = (e) => !!(e && typeof e == "object" && "__option" in e && (e.__option === "Some" && "value" in e || e.__option === "None")), he = (e) => e.__option === "Some", Vi = (e) => e !== null ? Nt(e) : Tt();
1071
- function Fi(e, t = {}) {
1072
- const n = t.prefix === null ? g(Z(), (r) => {
1073
- }) : st({ size: t.prefix ?? c() }), o = t.noneValue === "zeroes" ? (Je(e), S(Z(), e.fixedSize)) : t.noneValue ? wi(t.noneValue) : Z();
1074
- return Rt(
1191
+ var Pt = (e) => ({ __option: "Some", value: e }), Ut = () => ({ __option: "None" }), Me = (e) => !!(e && typeof e == "object" && "__option" in e && (e.__option === "Some" && "value" in e || e.__option === "None")), ke = (e) => e.__option === "Some", i_ = (e) => e !== null ? Pt(e) : Ut();
1192
+ function __(e, t = {}) {
1193
+ const n = t.prefix === null ? v(te(), (r) => {
1194
+ }) : mt({ size: t.prefix ?? u() }), o = t.noneValue === "zeroes" ? (Rt(e), I(te(), e.fixedSize)) : t.noneValue ? t_(t.noneValue) : te();
1195
+ return Ct(
1075
1196
  [
1076
- g(Ae([n, o]), (r) => [
1197
+ v(de([n, o]), (r) => [
1077
1198
  !1,
1078
1199
  void 0
1079
1200
  ]),
1080
- g(Ae([n, e]), (r) => [
1201
+ v(de([n, e]), (r) => [
1081
1202
  !0,
1082
- Le(r) && he(r) ? r.value : r
1203
+ Me(r) && ke(r) ? r.value : r
1083
1204
  ])
1084
1205
  ],
1085
1206
  (r) => {
1086
- const a = Le(r) ? r : Vi(r);
1087
- return Number(he(a));
1207
+ const a = Me(r) ? r : i_(r);
1208
+ return Number(ke(a));
1088
1209
  }
1089
1210
  );
1090
1211
  }
1091
- function zi(e, t = {}) {
1092
- const n = t.prefix === null ? W(q(), () => !1) : ct({ size: t.prefix ?? T() }), o = t.noneValue === "zeroes" ? (Je(e), I(q(), e.fixedSize)) : t.noneValue ? yi(t.noneValue) : q();
1093
- return ut(
1212
+ function s_(e, t = {}) {
1213
+ const n = t.prefix === null ? Y(ne(), () => !1) : gt({ size: t.prefix ?? T() }), o = t.noneValue === "zeroes" ? (Rt(e), f(ne(), e.fixedSize)) : t.noneValue ? n_(t.noneValue) : ne();
1214
+ return vt(
1094
1215
  [
1095
- W(Oe([n, o]), () => Tt()),
1096
- W(Oe([n, e]), ([, r]) => Nt(r))
1216
+ Y(Ee([n, o]), () => Ut()),
1217
+ Y(Ee([n, e]), ([, r]) => Pt(r))
1097
1218
  ],
1098
1219
  (r, a) => {
1099
1220
  if (t.prefix === null && !t.noneValue)
1100
1221
  return +(a < r.length);
1101
1222
  if (t.prefix === null && t.noneValue != null) {
1102
1223
  const i = t.noneValue === "zeroes" ? new Uint8Array(o.fixedSize).fill(0) : t.noneValue;
1103
- return P(r, i, a) ? 0 : 1;
1224
+ return x(r, i, a) ? 0 : 1;
1104
1225
  }
1105
1226
  return Number(n.read(r, a)[0]);
1106
1227
  }
1107
1228
  );
1108
1229
  }
1109
- function y(e) {
1230
+ function F(e) {
1110
1231
  if (e.accounts === void 0)
1111
- throw new N(ke, {
1232
+ throw new E(Ye, {
1112
1233
  data: e.data,
1113
1234
  programAddress: e.programAddress
1114
1235
  });
1115
1236
  }
1116
- var Q = /* @__PURE__ */ ((e) => (e[e.WRITABLE_SIGNER = /* 3 */
1237
+ var re = /* @__PURE__ */ ((e) => (e[e.WRITABLE_SIGNER = /* 3 */
1117
1238
  3] = "WRITABLE_SIGNER", e[e.READONLY_SIGNER = /* 2 */
1118
1239
  2] = "READONLY_SIGNER", e[e.WRITABLE = /* 1 */
1119
1240
  1] = "WRITABLE", e[e.READONLY = /* 0 */
1120
- 0] = "READONLY", e))(Q || {}), Wi = 2;
1121
- function Hi(e) {
1122
- return e | Wi;
1241
+ 0] = "READONLY", e))(re || {}), c_ = 2;
1242
+ function R_(e) {
1243
+ return e | c_;
1123
1244
  }
1124
- function $i(e, t, n, o) {
1245
+ function u_(e, t, n, o) {
1125
1246
  var a;
1126
- if (!Oi(e, we))
1247
+ if (!ct(e, Ke))
1127
1248
  return !1;
1128
1249
  const r = (a = t.instructions[e.context.index]) == null ? void 0 : a.programAddress;
1129
1250
  return !r || r !== n ? !1 : typeof o > "u" || e.context.code === o;
1130
1251
  }
1131
- function Xi(e) {
1252
+ function A_(e) {
1132
1253
  return "modifyAndSignTransactions" in e && typeof e.modifyAndSignTransactions == "function";
1133
1254
  }
1134
- function Yi(e) {
1255
+ function l_(e) {
1135
1256
  return "signTransactions" in e && typeof e.signTransactions == "function";
1136
1257
  }
1137
- function Ki(e) {
1258
+ function O_(e) {
1138
1259
  return "signAndSendTransactions" in e && typeof e.signAndSendTransactions == "function";
1139
1260
  }
1140
- function ji(e) {
1141
- return Yi(e) || Xi(e) || Ki(e);
1261
+ function d_(e) {
1262
+ return l_(e) || A_(e) || O_(e);
1142
1263
  }
1143
- const Ji = U, Zi = M;
1144
- var Ee = /* @__PURE__ */ ((e) => (e[e.Uninitialized = 0] = "Uninitialized", e[e.Closed = 1] = "Closed", e[e.GlobalConfig = 2] = "GlobalConfig", e[e.Automation = 3] = "Automation", e))(Ee || {});
1145
- function Ne() {
1146
- return K(Ee);
1264
+ const E_ = B, N_ = G;
1265
+ var fe = /* @__PURE__ */ ((e) => (e[e.Uninitialized = 0] = "Uninitialized", e[e.Closed = 1] = "Closed", e[e.GlobalConfig = 2] = "GlobalConfig", e[e.Automation = 3] = "Automation", e))(fe || {});
1266
+ function me() {
1267
+ return q(fe);
1147
1268
  }
1148
- function Te() {
1149
- return j(Ee);
1269
+ function ge() {
1270
+ return Q(fe);
1150
1271
  }
1151
- function cs() {
1152
- return E(Ne(), Te());
1272
+ function Ds() {
1273
+ return N(me(), ge());
1153
1274
  }
1154
- var Se = /* @__PURE__ */ ((e) => (e[e.Uninitialized = 0] = "Uninitialized", e[e.HarvestAndReinvest = 1] = "HarvestAndReinvest", e[e.HarvestSwapAndReinvest = 2] = "HarvestSwapAndReinvest", e))(Se || {});
1155
- function St() {
1156
- return K(Se);
1275
+ var Ce = /* @__PURE__ */ ((e) => (e[e.Uninitialized = 0] = "Uninitialized", e[e.HarvestAndReinvest = 1] = "HarvestAndReinvest", e[e.HarvestSwapAndReinvest = 2] = "HarvestSwapAndReinvest", e))(Ce || {});
1276
+ function wt() {
1277
+ return q(Ce);
1157
1278
  }
1158
- function It() {
1159
- return j(Se);
1279
+ function Mt() {
1280
+ return Q(Ce);
1160
1281
  }
1161
- function Rs() {
1162
- return E(St(), It());
1282
+ function bs() {
1283
+ return N(wt(), Mt());
1163
1284
  }
1164
- function ft() {
1165
- return X([
1166
- ["None", Z()],
1285
+ function kt() {
1286
+ return J([
1287
+ ["None", te()],
1167
1288
  [
1168
1289
  "NextValidExecutionTimestamp",
1169
- l([
1170
- ["nextValidExecutionTimestamp", Pi()],
1171
- ["minIntervalSeconds", Fi(Ji())]
1290
+ O([
1291
+ ["nextValidExecutionTimestamp", Zi()],
1292
+ ["minIntervalSeconds", __(E_())]
1172
1293
  ])
1173
1294
  ],
1174
- ["MinFeesOwedA", l([["minFeesOwedA", A()]])],
1175
- ["MinFeesOwedB", l([["minFeesOwedB", A()]])]
1295
+ ["MinFeesOwedA", O([["minFeesOwedA", A()]])],
1296
+ ["MinFeesOwedB", O([["minFeesOwedB", A()]])]
1176
1297
  ]);
1177
1298
  }
1178
- function mt() {
1179
- return Y([
1180
- ["None", q()],
1299
+ function yt() {
1300
+ return Z([
1301
+ ["None", ne()],
1181
1302
  [
1182
1303
  "NextValidExecutionTimestamp",
1183
1304
  d([
1184
- ["nextValidExecutionTimestamp", Ui()],
1185
- ["minIntervalSeconds", zi(Zi())]
1305
+ ["nextValidExecutionTimestamp", qi()],
1306
+ ["minIntervalSeconds", s_(N_())]
1186
1307
  ])
1187
1308
  ],
1188
- ["MinFeesOwedA", d([["minFeesOwedA", O()]])],
1189
- ["MinFeesOwedB", d([["minFeesOwedB", O()]])]
1309
+ ["MinFeesOwedA", d([["minFeesOwedA", l()]])],
1310
+ ["MinFeesOwedB", d([["minFeesOwedB", l()]])]
1190
1311
  ]);
1191
1312
  }
1192
- function us() {
1193
- return E(ft(), mt());
1313
+ function Ps() {
1314
+ return N(kt(), yt());
1194
1315
  }
1195
- function As(e, t) {
1316
+ function Us(e, t) {
1196
1317
  return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...t ?? {} };
1197
1318
  }
1198
- function Os(e, t) {
1319
+ function ws(e, t) {
1199
1320
  return t.__kind === e;
1200
1321
  }
1201
- function qi() {
1202
- return X([
1322
+ function T_() {
1323
+ return J([
1203
1324
  [
1204
1325
  "CrankRewardDefaultUpdated",
1205
- l([
1326
+ O([
1206
1327
  ["newCrankRewardDefault", A()],
1207
1328
  ["prevCrankRewardDefault", A()],
1208
- ["updatedBy", R()]
1329
+ ["updatedBy", c()]
1209
1330
  ])
1210
1331
  ],
1211
1332
  [
1212
1333
  "GlobalConfigAuthorityUpdated",
1213
- l([
1214
- ["newGlobalConfigAuthority", R()],
1215
- ["prevGlobalConfigAuthority", R()]
1334
+ O([
1335
+ ["newGlobalConfigAuthority", c()],
1336
+ ["prevGlobalConfigAuthority", c()]
1216
1337
  ])
1217
1338
  ],
1218
1339
  [
1219
1340
  "AutomationCreated",
1220
- l([
1221
- ["automation", R()],
1222
- ["positionTokenAccount", R()],
1223
- ["actionData", S(f(), 64)],
1224
- ["automationIndex", c()],
1225
- ["conditionsData", S(f(), 192)],
1341
+ O([
1342
+ ["automation", c()],
1343
+ ["positionTokenAccount", c()],
1344
+ ["actionData", I(m(), 64)],
1345
+ ["automationIndex", u()],
1346
+ ["conditionsData", I(m(), 192)],
1226
1347
  ["crankReward", A()]
1227
1348
  ])
1228
1349
  ],
1229
1350
  [
1230
1351
  "AutomationRemoved",
1231
- l([
1232
- ["automation", R()],
1233
- ["positionTokenAccount", R()],
1234
- ["actionData", S(f(), 64)],
1235
- ["automationIndex", c()],
1236
- ["conditionsData", S(f(), 192)],
1352
+ O([
1353
+ ["automation", c()],
1354
+ ["positionTokenAccount", c()],
1355
+ ["actionData", I(m(), 64)],
1356
+ ["automationIndex", u()],
1357
+ ["conditionsData", I(m(), 192)],
1237
1358
  ["crankReward", A()]
1238
1359
  ])
1239
1360
  ],
1240
1361
  [
1241
1362
  "AutomationFunded",
1242
- l([
1243
- ["automation", R()],
1244
- ["payer", R()],
1363
+ O([
1364
+ ["automation", c()],
1365
+ ["payer", c()],
1245
1366
  ["amountFunded", A()],
1246
- ["method", gt()],
1247
- ["value", U()]
1367
+ ["method", xt()],
1368
+ ["value", B()]
1248
1369
  ])
1249
1370
  ],
1250
1371
  [
1251
1372
  "HarvestedAndReinvested",
1252
- l([
1253
- ["automation", R()],
1254
- ["positionTokenAccount", R()],
1255
- ["automationIndex", c()],
1256
- ["conditionsData", S(f(), 192)],
1373
+ O([
1374
+ ["automation", c()],
1375
+ ["positionTokenAccount", c()],
1376
+ ["automationIndex", u()],
1377
+ ["conditionsData", I(m(), 192)],
1257
1378
  ["feesCollectedA", A()],
1258
1379
  ["feesCollectedB", A()],
1259
1380
  ["liquidityIncreasedA", A()],
@@ -1263,20 +1384,20 @@ function qi() {
1263
1384
  ],
1264
1385
  [
1265
1386
  "HarvestSwapAndReinvestPre",
1266
- l([
1267
- ["automation", R()],
1268
- ["positionTokenAccount", R()],
1269
- ["automationIndex", c()],
1270
- ["conditionsData", S(f(), 192)],
1387
+ O([
1388
+ ["automation", c()],
1389
+ ["positionTokenAccount", c()],
1390
+ ["automationIndex", u()],
1391
+ ["conditionsData", I(m(), 192)],
1271
1392
  ["feesCollectedA", A()],
1272
1393
  ["feesCollectedB", A()]
1273
1394
  ])
1274
1395
  ],
1275
1396
  [
1276
1397
  "HarvestSwapAndReinvestPost",
1277
- l([
1278
- ["automation", R()],
1279
- ["positionTokenAccount", R()],
1398
+ O([
1399
+ ["automation", c()],
1400
+ ["positionTokenAccount", c()],
1280
1401
  ["postSwapAmountA", A()],
1281
1402
  ["postSwapAmountB", A()],
1282
1403
  ["liquidityIncreasedA", A()],
@@ -1288,579 +1409,579 @@ function qi() {
1288
1409
  ]
1289
1410
  ]);
1290
1411
  }
1291
- function Qi() {
1292
- return Y([
1412
+ function S_() {
1413
+ return Z([
1293
1414
  [
1294
1415
  "CrankRewardDefaultUpdated",
1295
1416
  d([
1296
- ["newCrankRewardDefault", O()],
1297
- ["prevCrankRewardDefault", O()],
1298
- ["updatedBy", u()]
1417
+ ["newCrankRewardDefault", l()],
1418
+ ["prevCrankRewardDefault", l()],
1419
+ ["updatedBy", R()]
1299
1420
  ])
1300
1421
  ],
1301
1422
  [
1302
1423
  "GlobalConfigAuthorityUpdated",
1303
1424
  d([
1304
- ["newGlobalConfigAuthority", u()],
1305
- ["prevGlobalConfigAuthority", u()]
1425
+ ["newGlobalConfigAuthority", R()],
1426
+ ["prevGlobalConfigAuthority", R()]
1306
1427
  ])
1307
1428
  ],
1308
1429
  [
1309
1430
  "AutomationCreated",
1310
1431
  d([
1311
- ["automation", u()],
1312
- ["positionTokenAccount", u()],
1313
- ["actionData", I(m(), 64)],
1432
+ ["automation", R()],
1433
+ ["positionTokenAccount", R()],
1434
+ ["actionData", f(g(), 64)],
1314
1435
  ["automationIndex", T()],
1315
- ["conditionsData", I(m(), 192)],
1316
- ["crankReward", O()]
1436
+ ["conditionsData", f(g(), 192)],
1437
+ ["crankReward", l()]
1317
1438
  ])
1318
1439
  ],
1319
1440
  [
1320
1441
  "AutomationRemoved",
1321
1442
  d([
1322
- ["automation", u()],
1323
- ["positionTokenAccount", u()],
1324
- ["actionData", I(m(), 64)],
1443
+ ["automation", R()],
1444
+ ["positionTokenAccount", R()],
1445
+ ["actionData", f(g(), 64)],
1325
1446
  ["automationIndex", T()],
1326
- ["conditionsData", I(m(), 192)],
1327
- ["crankReward", O()]
1447
+ ["conditionsData", f(g(), 192)],
1448
+ ["crankReward", l()]
1328
1449
  ])
1329
1450
  ],
1330
1451
  [
1331
1452
  "AutomationFunded",
1332
1453
  d([
1333
- ["automation", u()],
1334
- ["payer", u()],
1335
- ["amountFunded", O()],
1336
- ["method", Ct()],
1337
- ["value", M()]
1454
+ ["automation", R()],
1455
+ ["payer", R()],
1456
+ ["amountFunded", l()],
1457
+ ["method", Bt()],
1458
+ ["value", G()]
1338
1459
  ])
1339
1460
  ],
1340
1461
  [
1341
1462
  "HarvestedAndReinvested",
1342
1463
  d([
1343
- ["automation", u()],
1344
- ["positionTokenAccount", u()],
1464
+ ["automation", R()],
1465
+ ["positionTokenAccount", R()],
1345
1466
  ["automationIndex", T()],
1346
- ["conditionsData", I(m(), 192)],
1347
- ["feesCollectedA", O()],
1348
- ["feesCollectedB", O()],
1349
- ["liquidityIncreasedA", O()],
1350
- ["liquidityIncreasedB", O()],
1351
- ["crankReward", O()]
1467
+ ["conditionsData", f(g(), 192)],
1468
+ ["feesCollectedA", l()],
1469
+ ["feesCollectedB", l()],
1470
+ ["liquidityIncreasedA", l()],
1471
+ ["liquidityIncreasedB", l()],
1472
+ ["crankReward", l()]
1352
1473
  ])
1353
1474
  ],
1354
1475
  [
1355
1476
  "HarvestSwapAndReinvestPre",
1356
1477
  d([
1357
- ["automation", u()],
1358
- ["positionTokenAccount", u()],
1478
+ ["automation", R()],
1479
+ ["positionTokenAccount", R()],
1359
1480
  ["automationIndex", T()],
1360
- ["conditionsData", I(m(), 192)],
1361
- ["feesCollectedA", O()],
1362
- ["feesCollectedB", O()]
1481
+ ["conditionsData", f(g(), 192)],
1482
+ ["feesCollectedA", l()],
1483
+ ["feesCollectedB", l()]
1363
1484
  ])
1364
1485
  ],
1365
1486
  [
1366
1487
  "HarvestSwapAndReinvestPost",
1367
1488
  d([
1368
- ["automation", u()],
1369
- ["positionTokenAccount", u()],
1370
- ["postSwapAmountA", O()],
1371
- ["postSwapAmountB", O()],
1372
- ["liquidityIncreasedA", O()],
1373
- ["liquidityIncreasedB", O()],
1374
- ["crankReward", O()],
1375
- ["amountToTransferToUserA", O()],
1376
- ["amountToTransferToUserB", O()]
1489
+ ["automation", R()],
1490
+ ["positionTokenAccount", R()],
1491
+ ["postSwapAmountA", l()],
1492
+ ["postSwapAmountB", l()],
1493
+ ["liquidityIncreasedA", l()],
1494
+ ["liquidityIncreasedB", l()],
1495
+ ["crankReward", l()],
1496
+ ["amountToTransferToUserA", l()],
1497
+ ["amountToTransferToUserB", l()]
1377
1498
  ])
1378
1499
  ]
1379
1500
  ]);
1380
1501
  }
1381
- function ls() {
1382
- return E(qi(), Qi());
1502
+ function Ms() {
1503
+ return N(T_(), S_());
1383
1504
  }
1384
- function ds(e, t) {
1505
+ function ks(e, t) {
1385
1506
  return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...t ?? {} };
1386
1507
  }
1387
- function Es(e, t) {
1508
+ function ys(e, t) {
1388
1509
  return t.__kind === e;
1389
1510
  }
1390
- var Ie = /* @__PURE__ */ ((e) => (e[e.FundByCount = 0] = "FundByCount", e[e.FundByDuration = 1] = "FundByDuration", e))(Ie || {});
1391
- function gt() {
1392
- return K(Ie);
1511
+ var ve = /* @__PURE__ */ ((e) => (e[e.FundByCount = 0] = "FundByCount", e[e.FundByDuration = 1] = "FundByDuration", e))(ve || {});
1512
+ function xt() {
1513
+ return q(ve);
1393
1514
  }
1394
- function Ct() {
1395
- return j(Ie);
1515
+ function Bt() {
1516
+ return Q(ve);
1396
1517
  }
1397
- function Ns() {
1398
- return E(gt(), Ct());
1518
+ function xs() {
1519
+ return N(xt(), Bt());
1399
1520
  }
1400
- function vt() {
1401
- return X([
1402
- ["FundByCount", l([["count", U()]])],
1403
- ["FundByDuration", l([["durationSeconds", U()]])]
1521
+ function Gt() {
1522
+ return J([
1523
+ ["FundByCount", O([["count", B()]])],
1524
+ ["FundByDuration", O([["durationSeconds", B()]])]
1404
1525
  ]);
1405
1526
  }
1406
- function Lt() {
1407
- return Y([
1408
- ["FundByCount", d([["count", M()]])],
1409
- ["FundByDuration", d([["durationSeconds", M()]])]
1527
+ function Vt() {
1528
+ return Z([
1529
+ ["FundByCount", d([["count", G()]])],
1530
+ ["FundByDuration", d([["durationSeconds", G()]])]
1410
1531
  ]);
1411
1532
  }
1412
- function Ts() {
1413
- return E(vt(), Lt());
1533
+ function Bs() {
1534
+ return N(Gt(), Vt());
1414
1535
  }
1415
- function Ss(e, t) {
1536
+ function Gs(e, t) {
1416
1537
  return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...t ?? {} };
1417
1538
  }
1418
- function Is(e, t) {
1539
+ function Vs(e, t) {
1419
1540
  return t.__kind === e;
1420
1541
  }
1421
- var fe = /* @__PURE__ */ ((e) => (e[e.TransferHookA = 0] = "TransferHookA", e[e.TransferHookB = 1] = "TransferHookB", e[e.TransferHookReward = 2] = "TransferHookReward", e[e.TransferHookInput = 3] = "TransferHookInput", e[e.TransferHookIntermediate = 4] = "TransferHookIntermediate", e[e.TransferHookOutput = 5] = "TransferHookOutput", e[e.SupplementalTickArrays = 6] = "SupplementalTickArrays", e[e.SupplementalTickArraysOne = 7] = "SupplementalTickArraysOne", e[e.SupplementalTickArraysTwo = 8] = "SupplementalTickArraysTwo", e))(fe || {});
1422
- function ht() {
1423
- return K(fe);
1542
+ var Le = /* @__PURE__ */ ((e) => (e[e.TransferHookA = 0] = "TransferHookA", e[e.TransferHookB = 1] = "TransferHookB", e[e.TransferHookReward = 2] = "TransferHookReward", e[e.TransferHookInput = 3] = "TransferHookInput", e[e.TransferHookIntermediate = 4] = "TransferHookIntermediate", e[e.TransferHookOutput = 5] = "TransferHookOutput", e[e.SupplementalTickArrays = 6] = "SupplementalTickArrays", e[e.SupplementalTickArraysOne = 7] = "SupplementalTickArraysOne", e[e.SupplementalTickArraysTwo = 8] = "SupplementalTickArraysTwo", e))(Le || {});
1543
+ function Ft() {
1544
+ return q(Le);
1424
1545
  }
1425
- function Dt() {
1426
- return j(fe);
1546
+ function zt() {
1547
+ return Q(Le);
1427
1548
  }
1428
- function fs() {
1429
- return E(
1430
- ht(),
1431
- Dt()
1549
+ function Fs() {
1550
+ return N(
1551
+ Ft(),
1552
+ zt()
1432
1553
  );
1433
1554
  }
1434
- function e_() {
1435
- return l([
1436
- ["slices", ne(pt())]
1555
+ function I_() {
1556
+ return O([
1557
+ ["slices", ie(Wt())]
1437
1558
  ]);
1438
1559
  }
1439
- function t_() {
1560
+ function f_() {
1440
1561
  return d([
1441
- ["slices", re(bt())]
1562
+ ["slices", _e(Ht())]
1442
1563
  ]);
1443
1564
  }
1444
- function ms() {
1445
- return E(
1446
- e_(),
1447
- t_()
1565
+ function zs() {
1566
+ return N(
1567
+ I_(),
1568
+ f_()
1448
1569
  );
1449
1570
  }
1450
- function pt() {
1451
- return l([
1452
- ["accountsType", ht()],
1453
- ["length", c()]
1571
+ function Wt() {
1572
+ return O([
1573
+ ["accountsType", Ft()],
1574
+ ["length", u()]
1454
1575
  ]);
1455
1576
  }
1456
- function bt() {
1577
+ function Ht() {
1457
1578
  return d([
1458
- ["accountsType", Dt()],
1579
+ ["accountsType", zt()],
1459
1580
  ["length", T()]
1460
1581
  ]);
1461
1582
  }
1462
- function gs() {
1463
- return E(
1464
- pt(),
1465
- bt()
1583
+ function Ws() {
1584
+ return N(
1585
+ Wt(),
1586
+ Ht()
1466
1587
  );
1467
1588
  }
1468
- function n_() {
1469
- return X([
1589
+ function m_() {
1590
+ return J([
1470
1591
  [
1471
1592
  "ByTokenAmounts",
1472
- l([
1593
+ O([
1473
1594
  ["tokenMaxA", A()],
1474
1595
  ["tokenMaxB", A()],
1475
- ["minSqrtPrice", D()],
1476
- ["maxSqrtPrice", D()]
1596
+ ["minSqrtPrice", U()],
1597
+ ["maxSqrtPrice", U()]
1477
1598
  ])
1478
1599
  ]
1479
1600
  ]);
1480
1601
  }
1481
- function r_() {
1482
- return Y([
1602
+ function g_() {
1603
+ return Z([
1483
1604
  [
1484
1605
  "ByTokenAmounts",
1485
1606
  d([
1486
- ["tokenMaxA", O()],
1487
- ["tokenMaxB", O()],
1488
- ["minSqrtPrice", p()],
1489
- ["maxSqrtPrice", p()]
1607
+ ["tokenMaxA", l()],
1608
+ ["tokenMaxB", l()],
1609
+ ["minSqrtPrice", w()],
1610
+ ["maxSqrtPrice", w()]
1490
1611
  ])
1491
1612
  ]
1492
1613
  ]);
1493
1614
  }
1494
- function Cs() {
1495
- return E(n_(), r_());
1615
+ function Hs() {
1616
+ return N(m_(), g_());
1496
1617
  }
1497
- function vs(e, t) {
1618
+ function $s(e, t) {
1498
1619
  return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...t ?? {} };
1499
1620
  }
1500
- function Ls(e, t) {
1621
+ function Xs(e, t) {
1501
1622
  return t.__kind === e;
1502
1623
  }
1503
- function o_() {
1504
- return l([
1505
- ["discriminator", S(f(), 8)],
1506
- ["whirlpool", R()],
1507
- ["positionMint", R()],
1508
- ["liquidity", D()],
1509
- ["tickLowerIndex", Re()],
1510
- ["tickUpperIndex", Re()],
1511
- ["feeGrowthCheckpointA", D()],
1624
+ function C_() {
1625
+ return O([
1626
+ ["discriminator", I(m(), 8)],
1627
+ ["whirlpool", c()],
1628
+ ["positionMint", c()],
1629
+ ["liquidity", U()],
1630
+ ["tickLowerIndex", le()],
1631
+ ["tickUpperIndex", le()],
1632
+ ["feeGrowthCheckpointA", U()],
1512
1633
  ["feeOwedA", A()],
1513
- ["feeGrowthCheckpointB", D()],
1634
+ ["feeGrowthCheckpointB", U()],
1514
1635
  ["feeOwedB", A()],
1515
- ["rewardInfos", ne(Pt(), { size: 3 })]
1636
+ ["rewardInfos", ie($t(), { size: 3 })]
1516
1637
  ]);
1517
1638
  }
1518
- function a_() {
1639
+ function v_() {
1519
1640
  return d([
1520
- ["discriminator", I(m(), 8)],
1521
- ["whirlpool", u()],
1522
- ["positionMint", u()],
1523
- ["liquidity", p()],
1524
- ["tickLowerIndex", ue()],
1525
- ["tickUpperIndex", ue()],
1526
- ["feeGrowthCheckpointA", p()],
1527
- ["feeOwedA", O()],
1528
- ["feeGrowthCheckpointB", p()],
1529
- ["feeOwedB", O()],
1530
- ["rewardInfos", re(Ut(), { size: 3 })]
1641
+ ["discriminator", f(g(), 8)],
1642
+ ["whirlpool", R()],
1643
+ ["positionMint", R()],
1644
+ ["liquidity", w()],
1645
+ ["tickLowerIndex", Oe()],
1646
+ ["tickUpperIndex", Oe()],
1647
+ ["feeGrowthCheckpointA", w()],
1648
+ ["feeOwedA", l()],
1649
+ ["feeGrowthCheckpointB", w()],
1650
+ ["feeOwedB", l()],
1651
+ ["rewardInfos", _e(Xt(), { size: 3 })]
1531
1652
  ]);
1532
1653
  }
1533
- function hs() {
1534
- return E(o_(), a_());
1654
+ function Ys() {
1655
+ return N(C_(), v_());
1535
1656
  }
1536
- function Pt() {
1537
- return l([
1538
- ["growthInsideCheckpoint", D()],
1657
+ function $t() {
1658
+ return O([
1659
+ ["growthInsideCheckpoint", U()],
1539
1660
  ["amountOwed", A()]
1540
1661
  ]);
1541
1662
  }
1542
- function Ut() {
1663
+ function Xt() {
1543
1664
  return d([
1544
- ["growthInsideCheckpoint", p()],
1545
- ["amountOwed", O()]
1665
+ ["growthInsideCheckpoint", w()],
1666
+ ["amountOwed", l()]
1546
1667
  ]);
1547
1668
  }
1548
- function Ds() {
1549
- return E(Pt(), Ut());
1669
+ function Ks() {
1670
+ return N($t(), Xt());
1550
1671
  }
1551
- function i_() {
1552
- return l([
1553
- ["mint", R()],
1554
- ["owner", R()],
1672
+ function L_() {
1673
+ return O([
1674
+ ["mint", c()],
1675
+ ["owner", c()],
1555
1676
  ["amount", A()],
1556
- ["delegateFlag", U()],
1557
- ["delegate", R()],
1558
- ["state", Mt()],
1559
- ["isNativeFlag", U()],
1677
+ ["delegateFlag", B()],
1678
+ ["delegate", c()],
1679
+ ["state", Yt()],
1680
+ ["isNativeFlag", B()],
1560
1681
  ["nativeAmount", A()],
1561
1682
  ["delegateAmount", A()],
1562
- ["closeAuthorityFlag", U()],
1563
- ["closeAuthority", R()]
1683
+ ["closeAuthorityFlag", B()],
1684
+ ["closeAuthority", c()]
1564
1685
  ]);
1565
1686
  }
1566
- function __() {
1687
+ function h_() {
1567
1688
  return d([
1568
- ["mint", u()],
1569
- ["owner", u()],
1570
- ["amount", O()],
1571
- ["delegateFlag", M()],
1572
- ["delegate", u()],
1573
- ["state", kt()],
1574
- ["isNativeFlag", M()],
1575
- ["nativeAmount", O()],
1576
- ["delegateAmount", O()],
1577
- ["closeAuthorityFlag", M()],
1578
- ["closeAuthority", u()]
1689
+ ["mint", R()],
1690
+ ["owner", R()],
1691
+ ["amount", l()],
1692
+ ["delegateFlag", G()],
1693
+ ["delegate", R()],
1694
+ ["state", Kt()],
1695
+ ["isNativeFlag", G()],
1696
+ ["nativeAmount", l()],
1697
+ ["delegateAmount", l()],
1698
+ ["closeAuthorityFlag", G()],
1699
+ ["closeAuthority", R()]
1579
1700
  ]);
1580
1701
  }
1581
- function ps() {
1582
- return E(i_(), __());
1702
+ function js() {
1703
+ return N(L_(), h_());
1583
1704
  }
1584
- var me = /* @__PURE__ */ ((e) => (e[e.Uninitialized = 0] = "Uninitialized", e[e.Initialized = 1] = "Initialized", e[e.Frozen = 2] = "Frozen", e))(me || {});
1585
- function Mt() {
1586
- return K(me);
1705
+ var he = /* @__PURE__ */ ((e) => (e[e.Uninitialized = 0] = "Uninitialized", e[e.Initialized = 1] = "Initialized", e[e.Frozen = 2] = "Frozen", e))(he || {});
1706
+ function Yt() {
1707
+ return q(he);
1587
1708
  }
1588
- function kt() {
1589
- return j(me);
1709
+ function Kt() {
1710
+ return Q(he);
1590
1711
  }
1591
- function bs() {
1592
- return E(Mt(), kt());
1712
+ function Js() {
1713
+ return N(Yt(), Kt());
1593
1714
  }
1594
- function s_() {
1595
- return l([
1596
- ["mintAuthorityFlag", U()],
1597
- ["mintAuthority", R()],
1715
+ function p_() {
1716
+ return O([
1717
+ ["mintAuthorityFlag", B()],
1718
+ ["mintAuthority", c()],
1598
1719
  ["supply", A()],
1599
- ["decimals", c()],
1600
- ["isInitialized", st()],
1601
- ["freezeAuthorityFlag", U()],
1602
- ["freezeAuthority", R()]
1720
+ ["decimals", u()],
1721
+ ["isInitialized", mt()],
1722
+ ["freezeAuthorityFlag", B()],
1723
+ ["freezeAuthority", c()]
1603
1724
  ]);
1604
1725
  }
1605
- function c_() {
1726
+ function D_() {
1606
1727
  return d([
1607
- ["mintAuthorityFlag", M()],
1608
- ["mintAuthority", u()],
1609
- ["supply", O()],
1728
+ ["mintAuthorityFlag", G()],
1729
+ ["mintAuthority", R()],
1730
+ ["supply", l()],
1610
1731
  ["decimals", T()],
1611
- ["isInitialized", ct()],
1612
- ["freezeAuthorityFlag", M()],
1613
- ["freezeAuthority", u()]
1732
+ ["isInitialized", gt()],
1733
+ ["freezeAuthorityFlag", G()],
1734
+ ["freezeAuthority", R()]
1614
1735
  ]);
1615
1736
  }
1616
- function Ps() {
1617
- return E(s_(), c_());
1737
+ function Zs() {
1738
+ return N(p_(), D_());
1618
1739
  }
1619
- function wt() {
1620
- return X([
1621
- ["UpdateCrankRewardDefault", l([["newCrankRewardDefault", A()]])],
1622
- ["UpdateGlobalConfigAuthority", l([["newAuthority", R()]])]
1740
+ function jt() {
1741
+ return J([
1742
+ ["UpdateCrankRewardDefault", O([["newCrankRewardDefault", A()]])],
1743
+ ["UpdateGlobalConfigAuthority", O([["newAuthority", c()]])]
1623
1744
  ]);
1624
1745
  }
1625
- function yt() {
1626
- return Y([
1627
- ["UpdateCrankRewardDefault", d([["newCrankRewardDefault", O()]])],
1628
- ["UpdateGlobalConfigAuthority", d([["newAuthority", u()]])]
1746
+ function Jt() {
1747
+ return Z([
1748
+ ["UpdateCrankRewardDefault", d([["newCrankRewardDefault", l()]])],
1749
+ ["UpdateGlobalConfigAuthority", d([["newAuthority", R()]])]
1629
1750
  ]);
1630
1751
  }
1631
- function Us() {
1632
- return E(wt(), yt());
1752
+ function qs() {
1753
+ return N(jt(), Jt());
1633
1754
  }
1634
- function Ms(e, t) {
1755
+ function Qs(e, t) {
1635
1756
  return Array.isArray(t) ? { __kind: e, fields: t } : { __kind: e, ...t ?? {} };
1636
1757
  }
1637
- function ks(e, t) {
1758
+ function ec(e, t) {
1638
1759
  return t.__kind === e;
1639
1760
  }
1640
- function R_() {
1641
- return l([
1642
- ["discriminator", S(f(), 8)],
1643
- ["whirlpoolsConfig", R()],
1644
- ["whirlpoolBump", S(f(), 1)],
1645
- ["tickSpacing", se()],
1646
- ["feeTierIndexSeed", S(f(), 2)],
1647
- ["feeRate", se()],
1648
- ["protocolFeeRate", se()],
1649
- ["liquidity", D()],
1650
- ["sqrtPrice", D()],
1651
- ["tickCurrentIndex", Re()],
1761
+ function b_() {
1762
+ return O([
1763
+ ["discriminator", I(m(), 8)],
1764
+ ["whirlpoolsConfig", c()],
1765
+ ["whirlpoolBump", I(m(), 1)],
1766
+ ["tickSpacing", ue()],
1767
+ ["feeTierIndexSeed", I(m(), 2)],
1768
+ ["feeRate", ue()],
1769
+ ["protocolFeeRate", ue()],
1770
+ ["liquidity", U()],
1771
+ ["sqrtPrice", U()],
1772
+ ["tickCurrentIndex", le()],
1652
1773
  ["protocolFeeOwedA", A()],
1653
1774
  ["protocolFeeOwedB", A()],
1654
- ["tokenMintA", R()],
1655
- ["tokenVaultA", R()],
1656
- ["feeGrowthGlobalA", D()],
1657
- ["tokenMintB", R()],
1658
- ["tokenVaultB", R()],
1659
- ["feeGrowthGlobalB", D()],
1775
+ ["tokenMintA", c()],
1776
+ ["tokenVaultA", c()],
1777
+ ["feeGrowthGlobalA", U()],
1778
+ ["tokenMintB", c()],
1779
+ ["tokenVaultB", c()],
1780
+ ["feeGrowthGlobalB", U()],
1660
1781
  ["rewardLastUpdatedTimestamp", A()],
1661
- ["rewardInfos", ne(xt(), { size: 3 })]
1782
+ ["rewardInfos", ie(Zt(), { size: 3 })]
1662
1783
  ]);
1663
1784
  }
1664
- function u_() {
1785
+ function P_() {
1665
1786
  return d([
1666
- ["discriminator", I(m(), 8)],
1667
- ["whirlpoolsConfig", u()],
1668
- ["whirlpoolBump", I(m(), 1)],
1669
- ["tickSpacing", ce()],
1670
- ["feeTierIndexSeed", I(m(), 2)],
1671
- ["feeRate", ce()],
1672
- ["protocolFeeRate", ce()],
1673
- ["liquidity", p()],
1674
- ["sqrtPrice", p()],
1675
- ["tickCurrentIndex", ue()],
1676
- ["protocolFeeOwedA", O()],
1677
- ["protocolFeeOwedB", O()],
1678
- ["tokenMintA", u()],
1679
- ["tokenVaultA", u()],
1680
- ["feeGrowthGlobalA", p()],
1681
- ["tokenMintB", u()],
1682
- ["tokenVaultB", u()],
1683
- ["feeGrowthGlobalB", p()],
1684
- ["rewardLastUpdatedTimestamp", O()],
1685
- ["rewardInfos", re(Bt(), { size: 3 })]
1787
+ ["discriminator", f(g(), 8)],
1788
+ ["whirlpoolsConfig", R()],
1789
+ ["whirlpoolBump", f(g(), 1)],
1790
+ ["tickSpacing", Ae()],
1791
+ ["feeTierIndexSeed", f(g(), 2)],
1792
+ ["feeRate", Ae()],
1793
+ ["protocolFeeRate", Ae()],
1794
+ ["liquidity", w()],
1795
+ ["sqrtPrice", w()],
1796
+ ["tickCurrentIndex", Oe()],
1797
+ ["protocolFeeOwedA", l()],
1798
+ ["protocolFeeOwedB", l()],
1799
+ ["tokenMintA", R()],
1800
+ ["tokenVaultA", R()],
1801
+ ["feeGrowthGlobalA", w()],
1802
+ ["tokenMintB", R()],
1803
+ ["tokenVaultB", R()],
1804
+ ["feeGrowthGlobalB", w()],
1805
+ ["rewardLastUpdatedTimestamp", l()],
1806
+ ["rewardInfos", _e(qt(), { size: 3 })]
1686
1807
  ]);
1687
1808
  }
1688
- function ws() {
1689
- return E(R_(), u_());
1809
+ function tc() {
1810
+ return N(b_(), P_());
1690
1811
  }
1691
- function xt() {
1692
- return l([
1693
- ["mint", R()],
1694
- ["vault", R()],
1695
- ["extension", S(f(), 32)],
1696
- ["emissionsPerSecondX64", D()],
1697
- ["growthGlobalX64", D()]
1812
+ function Zt() {
1813
+ return O([
1814
+ ["mint", c()],
1815
+ ["vault", c()],
1816
+ ["extension", I(m(), 32)],
1817
+ ["emissionsPerSecondX64", U()],
1818
+ ["growthGlobalX64", U()]
1698
1819
  ]);
1699
1820
  }
1700
- function Bt() {
1821
+ function qt() {
1701
1822
  return d([
1702
- ["mint", u()],
1703
- ["vault", u()],
1704
- ["extension", I(m(), 32)],
1705
- ["emissionsPerSecondX64", p()],
1706
- ["growthGlobalX64", p()]
1823
+ ["mint", R()],
1824
+ ["vault", R()],
1825
+ ["extension", f(g(), 32)],
1826
+ ["emissionsPerSecondX64", w()],
1827
+ ["growthGlobalX64", w()]
1707
1828
  ]);
1708
1829
  }
1709
- function ys() {
1710
- return E(xt(), Bt());
1830
+ function nc() {
1831
+ return N(Zt(), qt());
1711
1832
  }
1712
- function A_() {
1713
- return l([
1714
- ["discriminator", Ne()],
1715
- ["positionTokenAccount", R()],
1716
- ["actionData", S(f(), 64)],
1717
- ["automationIndex", c()],
1718
- ["conditionsData", S(f(), 192)],
1719
- ["bump", c()],
1720
- ["authorityBump", c()],
1721
- ["padding", S(f(), 4)],
1833
+ function U_() {
1834
+ return O([
1835
+ ["discriminator", me()],
1836
+ ["positionTokenAccount", c()],
1837
+ ["actionData", I(m(), 64)],
1838
+ ["automationIndex", u()],
1839
+ ["conditionsData", I(m(), 192)],
1840
+ ["bump", u()],
1841
+ ["authorityBump", u()],
1842
+ ["padding", I(m(), 4)],
1722
1843
  ["crankReward", A()],
1723
- ["automationTokenAccountA", R()],
1724
- ["automationTokenAccountB", R()],
1725
- ["tokenMintA", R()],
1726
- ["tokenMintB", R()],
1727
- ["reserved", S(f(), 80)]
1844
+ ["automationTokenAccountA", c()],
1845
+ ["automationTokenAccountB", c()],
1846
+ ["tokenMintA", c()],
1847
+ ["tokenMintB", c()],
1848
+ ["reserved", I(m(), 80)]
1728
1849
  ]);
1729
1850
  }
1730
- function Gt() {
1851
+ function Qt() {
1731
1852
  return d([
1732
- ["discriminator", Te()],
1733
- ["positionTokenAccount", u()],
1734
- ["actionData", I(m(), 64)],
1853
+ ["discriminator", ge()],
1854
+ ["positionTokenAccount", R()],
1855
+ ["actionData", f(g(), 64)],
1735
1856
  ["automationIndex", T()],
1736
- ["conditionsData", I(m(), 192)],
1857
+ ["conditionsData", f(g(), 192)],
1737
1858
  ["bump", T()],
1738
1859
  ["authorityBump", T()],
1739
- ["padding", I(m(), 4)],
1740
- ["crankReward", O()],
1741
- ["automationTokenAccountA", u()],
1742
- ["automationTokenAccountB", u()],
1743
- ["tokenMintA", u()],
1744
- ["tokenMintB", u()],
1745
- ["reserved", I(m(), 80)]
1860
+ ["padding", f(g(), 4)],
1861
+ ["crankReward", l()],
1862
+ ["automationTokenAccountA", R()],
1863
+ ["automationTokenAccountB", R()],
1864
+ ["tokenMintA", R()],
1865
+ ["tokenMintB", R()],
1866
+ ["reserved", f(g(), 80)]
1746
1867
  ]);
1747
1868
  }
1748
- function xs() {
1749
- return E(A_(), Gt());
1869
+ function rc() {
1870
+ return N(U_(), Qt());
1750
1871
  }
1751
- function Vt(e) {
1752
- return Qe(e, Gt());
1872
+ function en(e) {
1873
+ return lt(e, Qt());
1753
1874
  }
1754
- async function Bs(e, t, n) {
1755
- const o = await O_(e, t, n);
1756
- return rt(o), o;
1875
+ async function oc(e, t, n) {
1876
+ const o = await w_(e, t, n);
1877
+ return Nt(o), o;
1757
1878
  }
1758
- async function O_(e, t, n) {
1759
- const o = await tt(e, t, n);
1760
- return Vt(o);
1879
+ async function w_(e, t, n) {
1880
+ const o = await dt(e, t, n);
1881
+ return en(o);
1761
1882
  }
1762
- async function Gs(e, t, n) {
1763
- const o = await l_(e, t, n);
1764
- return ot(o), o;
1883
+ async function ac(e, t, n) {
1884
+ const o = await M_(e, t, n);
1885
+ return Tt(o), o;
1765
1886
  }
1766
- async function l_(e, t, n) {
1767
- return (await nt(e, t, n)).map((r) => Vt(r));
1887
+ async function M_(e, t, n) {
1888
+ return (await Et(e, t, n)).map((r) => en(r));
1768
1889
  }
1769
- function d_() {
1770
- return l([
1771
- ["discriminator", Ne()],
1772
- ["bump", c()],
1773
- ["padding", S(f(), 6)],
1774
- ["globalConfigAuthority", R()],
1890
+ function k_() {
1891
+ return O([
1892
+ ["discriminator", me()],
1893
+ ["bump", u()],
1894
+ ["padding", I(m(), 6)],
1895
+ ["globalConfigAuthority", c()],
1775
1896
  ["crankRewardDefault", A()],
1776
- ["reserved", S(f(), 976)]
1897
+ ["reserved", I(m(), 976)]
1777
1898
  ]);
1778
1899
  }
1779
- function Ft() {
1900
+ function tn() {
1780
1901
  return d([
1781
- ["discriminator", Te()],
1902
+ ["discriminator", ge()],
1782
1903
  ["bump", T()],
1783
- ["padding", I(m(), 6)],
1784
- ["globalConfigAuthority", u()],
1785
- ["crankRewardDefault", O()],
1786
- ["reserved", I(m(), 976)]
1904
+ ["padding", f(g(), 6)],
1905
+ ["globalConfigAuthority", R()],
1906
+ ["crankRewardDefault", l()],
1907
+ ["reserved", f(g(), 976)]
1787
1908
  ]);
1788
1909
  }
1789
- function Vs() {
1790
- return E(d_(), Ft());
1910
+ function ic() {
1911
+ return N(k_(), tn());
1791
1912
  }
1792
- function zt(e) {
1793
- return Qe(e, Ft());
1913
+ function nn(e) {
1914
+ return lt(e, tn());
1794
1915
  }
1795
- async function Fs(e, t, n) {
1796
- const o = await E_(e, t, n);
1797
- return rt(o), o;
1916
+ async function _c(e, t, n) {
1917
+ const o = await y_(e, t, n);
1918
+ return Nt(o), o;
1798
1919
  }
1799
- async function E_(e, t, n) {
1800
- const o = await tt(e, t, n);
1801
- return zt(o);
1920
+ async function y_(e, t, n) {
1921
+ const o = await dt(e, t, n);
1922
+ return nn(o);
1802
1923
  }
1803
- async function zs(e, t, n) {
1804
- const o = await N_(e, t, n);
1805
- return ot(o), o;
1924
+ async function sc(e, t, n) {
1925
+ const o = await x_(e, t, n);
1926
+ return Tt(o), o;
1806
1927
  }
1807
- async function N_(e, t, n) {
1808
- return (await nt(e, t, n)).map((r) => zt(r));
1928
+ async function x_(e, t, n) {
1929
+ return (await Et(e, t, n)).map((r) => nn(r));
1809
1930
  }
1810
- function T_(e) {
1931
+ function B_(e) {
1811
1932
  if (!e)
1812
1933
  throw new Error("Expected a Address.");
1813
1934
  return typeof e == "object" && "address" in e ? e.address : Array.isArray(e) ? e[0] : e;
1814
1935
  }
1815
- function B(e, t) {
1936
+ function W(e, t) {
1816
1937
  return (n) => {
1817
1938
  if (!n.value)
1818
1939
  return Object.freeze({
1819
1940
  address: e,
1820
- role: Q.READONLY
1941
+ role: re.READONLY
1821
1942
  });
1822
- const o = n.isWritable ? Q.WRITABLE : Q.READONLY;
1943
+ const o = n.isWritable ? re.WRITABLE : re.READONLY;
1823
1944
  return Object.freeze({
1824
- address: T_(n.value),
1825
- role: De(n.value) ? Hi(o) : o,
1826
- ...De(n.value) ? { signer: n.value } : {}
1945
+ address: B_(n.value),
1946
+ role: ye(n.value) ? R_(o) : o,
1947
+ ...ye(n.value) ? { signer: n.value } : {}
1827
1948
  });
1828
1949
  };
1829
1950
  }
1830
- function De(e) {
1831
- return !!e && typeof e == "object" && "address" in e && ji(e);
1951
+ function ye(e) {
1952
+ return !!e && typeof e == "object" && "address" in e && d_(e);
1832
1953
  }
1833
- const Wt = 2;
1834
- function Ws() {
1835
- return c().encode(Wt);
1954
+ const rn = 2;
1955
+ function cc() {
1956
+ return u().encode(rn);
1836
1957
  }
1837
- function Ht() {
1838
- return g(
1839
- l([
1840
- ["discriminator", c()],
1841
- ["action", St()],
1842
- ["automationIndex", c()],
1843
- ["conditions", ne(ft(), { size: 3 })]
1958
+ function on() {
1959
+ return v(
1960
+ O([
1961
+ ["discriminator", u()],
1962
+ ["action", wt()],
1963
+ ["automationIndex", u()],
1964
+ ["conditions", ie(kt(), { size: 3 })]
1844
1965
  ]),
1845
- (e) => ({ ...e, discriminator: Wt })
1966
+ (e) => ({ ...e, discriminator: rn })
1846
1967
  );
1847
1968
  }
1848
- function $t() {
1969
+ function an() {
1849
1970
  return d([
1850
1971
  ["discriminator", T()],
1851
- ["action", It()],
1972
+ ["action", Mt()],
1852
1973
  ["automationIndex", T()],
1853
- ["conditions", re(mt(), { size: 3 })]
1974
+ ["conditions", _e(yt(), { size: 3 })]
1854
1975
  ]);
1855
1976
  }
1856
- function Hs() {
1857
- return E(
1858
- Ht(),
1859
- $t()
1977
+ function Rc() {
1978
+ return N(
1979
+ on(),
1980
+ an()
1860
1981
  );
1861
1982
  }
1862
- function $s(e, t) {
1863
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
1983
+ function uc(e, t) {
1984
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
1864
1985
  positionOwner: { value: e.positionOwner ?? null, isWritable: !0 },
1865
1986
  automation: { value: e.automation ?? null, isWritable: !0 },
1866
1987
  automationTokenAccountA: {
@@ -1886,7 +2007,7 @@ function $s(e, t) {
1886
2007
  ataProgram: { value: e.ataProgram ?? null, isWritable: !1 }
1887
2008
  }, a = { ...e };
1888
2009
  r.systemProgram.value || (r.systemProgram.value = "11111111111111111111111111111111"), r.ataProgram.value || (r.ataProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
1889
- const i = B(n);
2010
+ const i = W(n);
1890
2011
  return Object.freeze({
1891
2012
  accounts: [
1892
2013
  i(r.positionOwner),
@@ -1904,13 +2025,13 @@ function $s(e, t) {
1904
2025
  i(r.systemProgram),
1905
2026
  i(r.ataProgram)
1906
2027
  ],
1907
- data: Ht().encode(
2028
+ data: on().encode(
1908
2029
  a
1909
2030
  ),
1910
2031
  programAddress: n
1911
2032
  });
1912
2033
  }
1913
- function S_(e) {
2034
+ function G_(e) {
1914
2035
  if (e.accounts.length < 14)
1915
2036
  throw new Error("Not enough accounts");
1916
2037
  let t = 0;
@@ -1936,55 +2057,55 @@ function S_(e) {
1936
2057
  systemProgram: n(),
1937
2058
  ataProgram: n()
1938
2059
  },
1939
- data: $t().decode(e.data)
2060
+ data: an().decode(e.data)
1940
2061
  };
1941
2062
  }
1942
- const Xt = 4;
1943
- function Xs() {
1944
- return c().encode(Xt);
2063
+ const _n = 4;
2064
+ function Ac() {
2065
+ return u().encode(_n);
1945
2066
  }
1946
- function Yt() {
1947
- return g(
1948
- l([
1949
- ["discriminator", c()],
1950
- ["instructionData", vt()]
2067
+ function sn() {
2068
+ return v(
2069
+ O([
2070
+ ["discriminator", u()],
2071
+ ["instructionData", Gt()]
1951
2072
  ]),
1952
- (e) => ({ ...e, discriminator: Xt })
2073
+ (e) => ({ ...e, discriminator: _n })
1953
2074
  );
1954
2075
  }
1955
- function Kt() {
2076
+ function cn() {
1956
2077
  return d([
1957
2078
  ["discriminator", T()],
1958
- ["instructionData", Lt()]
2079
+ ["instructionData", Vt()]
1959
2080
  ]);
1960
2081
  }
1961
- function Ys() {
1962
- return E(
1963
- Yt(),
1964
- Kt()
2082
+ function lc() {
2083
+ return N(
2084
+ sn(),
2085
+ cn()
1965
2086
  );
1966
2087
  }
1967
- function Ks(e, t) {
1968
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2088
+ function Oc(e, t) {
2089
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
1969
2090
  payer: { value: e.payer ?? null, isWritable: !0 },
1970
2091
  automation: { value: e.automation ?? null, isWritable: !0 },
1971
2092
  systemProgram: { value: e.systemProgram ?? null, isWritable: !1 }
1972
2093
  }, a = { ...e };
1973
2094
  r.systemProgram.value || (r.systemProgram.value = "11111111111111111111111111111111");
1974
- const i = B(n);
2095
+ const i = W(n);
1975
2096
  return Object.freeze({
1976
2097
  accounts: [
1977
2098
  i(r.payer),
1978
2099
  i(r.automation),
1979
2100
  i(r.systemProgram)
1980
2101
  ],
1981
- data: Yt().encode(
2102
+ data: sn().encode(
1982
2103
  a
1983
2104
  ),
1984
2105
  programAddress: n
1985
2106
  });
1986
2107
  }
1987
- function I_(e) {
2108
+ function V_(e) {
1988
2109
  if (e.accounts.length < 3)
1989
2110
  throw new Error("Not enough accounts");
1990
2111
  let t = 0;
@@ -1999,30 +2120,30 @@ function I_(e) {
1999
2120
  automation: n(),
2000
2121
  systemProgram: n()
2001
2122
  },
2002
- data: Kt().decode(e.data)
2123
+ data: cn().decode(e.data)
2003
2124
  };
2004
2125
  }
2005
- const jt = 5;
2006
- function js() {
2007
- return c().encode(jt);
2126
+ const Rn = 5;
2127
+ function dc() {
2128
+ return u().encode(Rn);
2008
2129
  }
2009
- function Jt() {
2010
- return g(l([["discriminator", c()]]), (e) => ({
2130
+ function un() {
2131
+ return v(O([["discriminator", u()]]), (e) => ({
2011
2132
  ...e,
2012
- discriminator: jt
2133
+ discriminator: Rn
2013
2134
  }));
2014
2135
  }
2015
- function Zt() {
2136
+ function An() {
2016
2137
  return d([["discriminator", T()]]);
2017
2138
  }
2018
- function Js() {
2019
- return E(
2020
- Jt(),
2021
- Zt()
2139
+ function Ec() {
2140
+ return N(
2141
+ un(),
2142
+ An()
2022
2143
  );
2023
2144
  }
2024
- function Zs(e, t) {
2025
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2145
+ function Nc(e, t) {
2146
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
2026
2147
  crankOperator: { value: e.crankOperator ?? null, isWritable: !0 },
2027
2148
  automation: { value: e.automation ?? null, isWritable: !0 },
2028
2149
  automationTokenAccountA: {
@@ -2069,7 +2190,7 @@ function Zs(e, t) {
2069
2190
  ataProgram: { value: e.ataProgram ?? null, isWritable: !1 }
2070
2191
  };
2071
2192
  r.systemProgram.value || (r.systemProgram.value = "11111111111111111111111111111111"), r.ataProgram.value || (r.ataProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
2072
- const a = B(n);
2193
+ const a = W(n);
2073
2194
  return Object.freeze({
2074
2195
  accounts: [
2075
2196
  a(r.crankOperator),
@@ -2096,11 +2217,11 @@ function Zs(e, t) {
2096
2217
  a(r.whirlpoolProgram),
2097
2218
  a(r.ataProgram)
2098
2219
  ],
2099
- data: Jt().encode({}),
2220
+ data: un().encode({}),
2100
2221
  programAddress: n
2101
2222
  });
2102
2223
  }
2103
- function f_(e) {
2224
+ function F_(e) {
2104
2225
  if (e.accounts.length < 23)
2105
2226
  throw new Error("Not enough accounts");
2106
2227
  let t = 0;
@@ -2135,30 +2256,30 @@ function f_(e) {
2135
2256
  whirlpoolProgram: n(),
2136
2257
  ataProgram: n()
2137
2258
  },
2138
- data: Zt().decode(e.data)
2259
+ data: An().decode(e.data)
2139
2260
  };
2140
2261
  }
2141
- const qt = 7;
2142
- function qs() {
2143
- return c().encode(qt);
2262
+ const ln = 7;
2263
+ function Tc() {
2264
+ return u().encode(ln);
2144
2265
  }
2145
- function Qt() {
2146
- return g(l([["discriminator", c()]]), (e) => ({
2266
+ function On() {
2267
+ return v(O([["discriminator", u()]]), (e) => ({
2147
2268
  ...e,
2148
- discriminator: qt
2269
+ discriminator: ln
2149
2270
  }));
2150
2271
  }
2151
- function en() {
2272
+ function dn() {
2152
2273
  return d([["discriminator", T()]]);
2153
2274
  }
2154
- function Qs() {
2155
- return E(
2156
- Qt(),
2157
- en()
2275
+ function Sc() {
2276
+ return N(
2277
+ On(),
2278
+ dn()
2158
2279
  );
2159
2280
  }
2160
- function ec(e, t) {
2161
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2281
+ function Ic(e, t) {
2282
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
2162
2283
  crankOperator: { value: e.crankOperator ?? null, isWritable: !0 },
2163
2284
  crankOperatorTokenAccountA: {
2164
2285
  value: e.crankOperatorTokenAccountA ?? null,
@@ -2207,7 +2328,7 @@ function ec(e, t) {
2207
2328
  }
2208
2329
  };
2209
2330
  r.instructionsSysvar.value || (r.instructionsSysvar.value = "Sysvar1nstructions1111111111111111111111111");
2210
- const a = B(n);
2331
+ const a = W(n);
2211
2332
  return Object.freeze({
2212
2333
  accounts: [
2213
2334
  a(r.crankOperator),
@@ -2233,11 +2354,11 @@ function ec(e, t) {
2233
2354
  a(r.whirlpoolProgram),
2234
2355
  a(r.instructionsSysvar)
2235
2356
  ],
2236
- data: Qt().encode({}),
2357
+ data: On().encode({}),
2237
2358
  programAddress: n
2238
2359
  });
2239
2360
  }
2240
- function m_(e) {
2361
+ function z_(e) {
2241
2362
  if (e.accounts.length < 22)
2242
2363
  throw new Error("Not enough accounts");
2243
2364
  let t = 0;
@@ -2271,30 +2392,30 @@ function m_(e) {
2271
2392
  whirlpoolProgram: n(),
2272
2393
  instructionsSysvar: n()
2273
2394
  },
2274
- data: en().decode(e.data)
2395
+ data: dn().decode(e.data)
2275
2396
  };
2276
2397
  }
2277
- const tn = 6;
2278
- function tc() {
2279
- return c().encode(tn);
2398
+ const En = 6;
2399
+ function fc() {
2400
+ return u().encode(En);
2280
2401
  }
2281
- function nn() {
2282
- return g(l([["discriminator", c()]]), (e) => ({
2402
+ function Nn() {
2403
+ return v(O([["discriminator", u()]]), (e) => ({
2283
2404
  ...e,
2284
- discriminator: tn
2405
+ discriminator: En
2285
2406
  }));
2286
2407
  }
2287
- function rn() {
2408
+ function Tn() {
2288
2409
  return d([["discriminator", T()]]);
2289
2410
  }
2290
- function nc() {
2291
- return E(
2292
- nn(),
2293
- rn()
2411
+ function mc() {
2412
+ return N(
2413
+ Nn(),
2414
+ Tn()
2294
2415
  );
2295
2416
  }
2296
- function rc(e, t) {
2297
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2417
+ function gc(e, t) {
2418
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
2298
2419
  crankOperator: { value: e.crankOperator ?? null, isWritable: !0 },
2299
2420
  crankOperatorTokenAccountA: {
2300
2421
  value: e.crankOperatorTokenAccountA ?? null,
@@ -2336,7 +2457,7 @@ function rc(e, t) {
2336
2457
  ataProgram: { value: e.ataProgram ?? null, isWritable: !1 }
2337
2458
  };
2338
2459
  r.instructionsSysvar.value || (r.instructionsSysvar.value = "Sysvar1nstructions1111111111111111111111111"), r.systemProgram.value || (r.systemProgram.value = "11111111111111111111111111111111"), r.ataProgram.value || (r.ataProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
2339
- const a = B(n);
2460
+ const a = W(n);
2340
2461
  return Object.freeze({
2341
2462
  accounts: [
2342
2463
  a(r.crankOperator),
@@ -2361,11 +2482,11 @@ function rc(e, t) {
2361
2482
  a(r.systemProgram),
2362
2483
  a(r.ataProgram)
2363
2484
  ],
2364
- data: nn().encode({}),
2485
+ data: Nn().encode({}),
2365
2486
  programAddress: n
2366
2487
  });
2367
2488
  }
2368
- function g_(e) {
2489
+ function W_(e) {
2369
2490
  if (e.accounts.length < 21)
2370
2491
  throw new Error("Not enough accounts");
2371
2492
  let t = 0;
@@ -2398,60 +2519,60 @@ function g_(e) {
2398
2519
  systemProgram: n(),
2399
2520
  ataProgram: n()
2400
2521
  },
2401
- data: rn().decode(e.data)
2522
+ data: Tn().decode(e.data)
2402
2523
  };
2403
2524
  }
2404
- const on = 0;
2405
- function oc() {
2406
- return c().encode(on);
2525
+ const Sn = 0;
2526
+ function Cc() {
2527
+ return u().encode(Sn);
2407
2528
  }
2408
- function an() {
2409
- return g(
2410
- l([
2411
- ["discriminator", c()],
2412
- ["globalConfigAuthority", R()],
2529
+ function In() {
2530
+ return v(
2531
+ O([
2532
+ ["discriminator", u()],
2533
+ ["globalConfigAuthority", c()],
2413
2534
  ["crankRewardDefault", A()]
2414
2535
  ]),
2415
2536
  (e) => ({
2416
2537
  ...e,
2417
- discriminator: on
2538
+ discriminator: Sn
2418
2539
  })
2419
2540
  );
2420
2541
  }
2421
- function _n() {
2542
+ function fn() {
2422
2543
  return d([
2423
2544
  ["discriminator", T()],
2424
- ["globalConfigAuthority", u()],
2425
- ["crankRewardDefault", O()]
2545
+ ["globalConfigAuthority", R()],
2546
+ ["crankRewardDefault", l()]
2426
2547
  ]);
2427
2548
  }
2428
- function ac() {
2429
- return E(
2430
- an(),
2431
- _n()
2549
+ function vc() {
2550
+ return N(
2551
+ In(),
2552
+ fn()
2432
2553
  );
2433
2554
  }
2434
- function ic(e, t) {
2435
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2555
+ function Lc(e, t) {
2556
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
2436
2557
  deployer: { value: e.deployer ?? null, isWritable: !0 },
2437
2558
  globalConfig: { value: e.globalConfig ?? null, isWritable: !0 },
2438
2559
  systemProgram: { value: e.systemProgram ?? null, isWritable: !1 }
2439
2560
  }, a = { ...e };
2440
2561
  r.systemProgram.value || (r.systemProgram.value = "11111111111111111111111111111111");
2441
- const i = B(n);
2562
+ const i = W(n);
2442
2563
  return Object.freeze({
2443
2564
  accounts: [
2444
2565
  i(r.deployer),
2445
2566
  i(r.globalConfig),
2446
2567
  i(r.systemProgram)
2447
2568
  ],
2448
- data: an().encode(
2569
+ data: In().encode(
2449
2570
  a
2450
2571
  ),
2451
2572
  programAddress: n
2452
2573
  });
2453
2574
  }
2454
- function C_(e) {
2575
+ function H_(e) {
2455
2576
  if (e.accounts.length < 3)
2456
2577
  throw new Error("Not enough accounts");
2457
2578
  let t = 0;
@@ -2466,30 +2587,30 @@ function C_(e) {
2466
2587
  globalConfig: n(),
2467
2588
  systemProgram: n()
2468
2589
  },
2469
- data: _n().decode(e.data)
2590
+ data: fn().decode(e.data)
2470
2591
  };
2471
2592
  }
2472
- const sn = 3;
2473
- function _c() {
2474
- return c().encode(sn);
2593
+ const mn = 3;
2594
+ function hc() {
2595
+ return u().encode(mn);
2475
2596
  }
2476
- function cn() {
2477
- return g(l([["discriminator", c()]]), (e) => ({
2597
+ function gn() {
2598
+ return v(O([["discriminator", u()]]), (e) => ({
2478
2599
  ...e,
2479
- discriminator: sn
2600
+ discriminator: mn
2480
2601
  }));
2481
2602
  }
2482
- function Rn() {
2603
+ function Cn() {
2483
2604
  return d([["discriminator", T()]]);
2484
2605
  }
2485
- function sc() {
2486
- return E(
2487
- cn(),
2488
- Rn()
2606
+ function pc() {
2607
+ return N(
2608
+ gn(),
2609
+ Cn()
2489
2610
  );
2490
2611
  }
2491
- function cc(e, t) {
2492
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2612
+ function Dc(e, t) {
2613
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
2493
2614
  positionOwner: { value: e.positionOwner ?? null, isWritable: !0 },
2494
2615
  positionOwnerTokenAccountA: {
2495
2616
  value: e.positionOwnerTokenAccountA ?? null,
@@ -2511,7 +2632,7 @@ function cc(e, t) {
2511
2632
  ataProgram: { value: e.ataProgram ?? null, isWritable: !1 }
2512
2633
  };
2513
2634
  r.systemProgram.value || (r.systemProgram.value = "11111111111111111111111111111111"), r.ataProgram.value || (r.ataProgram.value = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
2514
- const a = B(n);
2635
+ const a = W(n);
2515
2636
  return Object.freeze({
2516
2637
  accounts: [
2517
2638
  a(r.positionOwner),
@@ -2525,11 +2646,11 @@ function cc(e, t) {
2525
2646
  a(r.systemProgram),
2526
2647
  a(r.ataProgram)
2527
2648
  ],
2528
- data: cn().encode({}),
2649
+ data: gn().encode({}),
2529
2650
  programAddress: n
2530
2651
  });
2531
2652
  }
2532
- function v_(e) {
2653
+ function $_(e) {
2533
2654
  if (e.accounts.length < 10)
2534
2655
  throw new Error("Not enough accounts");
2535
2656
  let t = 0;
@@ -2551,57 +2672,57 @@ function v_(e) {
2551
2672
  systemProgram: n(),
2552
2673
  ataProgram: n()
2553
2674
  },
2554
- data: Rn().decode(e.data)
2675
+ data: Cn().decode(e.data)
2555
2676
  };
2556
2677
  }
2557
- const un = 1;
2558
- function Rc() {
2559
- return c().encode(un);
2678
+ const vn = 1;
2679
+ function bc() {
2680
+ return u().encode(vn);
2560
2681
  }
2561
- function An() {
2562
- return g(
2563
- l([
2564
- ["discriminator", c()],
2565
- ["instructionData", wt()]
2682
+ function Ln() {
2683
+ return v(
2684
+ O([
2685
+ ["discriminator", u()],
2686
+ ["instructionData", jt()]
2566
2687
  ]),
2567
2688
  (e) => ({
2568
2689
  ...e,
2569
- discriminator: un
2690
+ discriminator: vn
2570
2691
  })
2571
2692
  );
2572
2693
  }
2573
- function On() {
2694
+ function hn() {
2574
2695
  return d([
2575
2696
  ["discriminator", T()],
2576
- ["instructionData", yt()]
2697
+ ["instructionData", Jt()]
2577
2698
  ]);
2578
2699
  }
2579
- function uc() {
2580
- return E(
2581
- An(),
2582
- On()
2700
+ function Pc() {
2701
+ return N(
2702
+ Ln(),
2703
+ hn()
2583
2704
  );
2584
2705
  }
2585
- function Ac(e, t) {
2586
- const n = (t == null ? void 0 : t.programAddress) ?? w, r = {
2706
+ function Uc(e, t) {
2707
+ const n = (t == null ? void 0 : t.programAddress) ?? M, r = {
2587
2708
  globalConfigAuthority: {
2588
2709
  value: e.globalConfigAuthority ?? null,
2589
2710
  isWritable: !1
2590
2711
  },
2591
2712
  globalConfig: { value: e.globalConfig ?? null, isWritable: !0 }
2592
- }, a = { ...e }, i = B(n);
2713
+ }, a = { ...e }, i = W(n);
2593
2714
  return Object.freeze({
2594
2715
  accounts: [
2595
2716
  i(r.globalConfigAuthority),
2596
2717
  i(r.globalConfig)
2597
2718
  ],
2598
- data: An().encode(
2719
+ data: Ln().encode(
2599
2720
  a
2600
2721
  ),
2601
2722
  programAddress: n
2602
2723
  });
2603
2724
  }
2604
- function L_(e) {
2725
+ function X_(e) {
2605
2726
  if (e.accounts.length < 2)
2606
2727
  throw new Error("Not enough accounts");
2607
2728
  let t = 0;
@@ -2615,313 +2736,343 @@ function L_(e) {
2615
2736
  globalConfigAuthority: n(),
2616
2737
  globalConfig: n()
2617
2738
  },
2618
- data: On().decode(e.data)
2739
+ data: hn().decode(e.data)
2619
2740
  };
2620
2741
  }
2621
- const w = "wpAutoU2kNC95CB9SzvSRmhC52ncPabVY225e3pfQA8";
2622
- var h_ = /* @__PURE__ */ ((e) => (e[e.Automation = 0] = "Automation", e[e.GlobalConfig = 1] = "GlobalConfig", e))(h_ || {}), D_ = /* @__PURE__ */ ((e) => (e[e.InitializeGlobalConfig = 0] = "InitializeGlobalConfig", e[e.UpdateGlobalConfig = 1] = "UpdateGlobalConfig", e[e.CreateAutomation = 2] = "CreateAutomation", e[e.RemoveAutomations = 3] = "RemoveAutomations", e[e.FundAutomation = 4] = "FundAutomation", e[e.HarvestAndReinvest = 5] = "HarvestAndReinvest", e[e.HarvestSwapAndReinvestPre = 6] = "HarvestSwapAndReinvestPre", e[e.HarvestSwapAndReinvestPost = 7] = "HarvestSwapAndReinvestPost", e))(D_ || {});
2623
- function p_(e) {
2742
+ const M = "wpAutoU2kNC95CB9SzvSRmhC52ncPabVY225e3pfQA8";
2743
+ var Y_ = /* @__PURE__ */ ((e) => (e[e.Automation = 0] = "Automation", e[e.GlobalConfig = 1] = "GlobalConfig", e))(Y_ || {}), K_ = /* @__PURE__ */ ((e) => (e[e.InitializeGlobalConfig = 0] = "InitializeGlobalConfig", e[e.UpdateGlobalConfig = 1] = "UpdateGlobalConfig", e[e.CreateAutomation = 2] = "CreateAutomation", e[e.RemoveAutomations = 3] = "RemoveAutomations", e[e.FundAutomation = 4] = "FundAutomation", e[e.HarvestAndReinvest = 5] = "HarvestAndReinvest", e[e.HarvestSwapAndReinvestPre = 6] = "HarvestSwapAndReinvestPre", e[e.HarvestSwapAndReinvestPost = 7] = "HarvestSwapAndReinvestPost", e))(K_ || {});
2744
+ function j_(e) {
2624
2745
  const t = "data" in e ? e.data : e;
2625
- if (P(t, c().encode(0), 0))
2746
+ if (x(t, u().encode(0), 0))
2626
2747
  return 0;
2627
- if (P(t, c().encode(1), 0))
2748
+ if (x(t, u().encode(1), 0))
2628
2749
  return 1;
2629
- if (P(t, c().encode(2), 0))
2750
+ if (x(t, u().encode(2), 0))
2630
2751
  return 2;
2631
- if (P(t, c().encode(3), 0))
2752
+ if (x(t, u().encode(3), 0))
2632
2753
  return 3;
2633
- if (P(t, c().encode(4), 0))
2754
+ if (x(t, u().encode(4), 0))
2634
2755
  return 4;
2635
- if (P(t, c().encode(5), 0))
2756
+ if (x(t, u().encode(5), 0))
2636
2757
  return 5;
2637
- if (P(t, c().encode(6), 0))
2758
+ if (x(t, u().encode(6), 0))
2638
2759
  return 6;
2639
- if (P(t, c().encode(7), 0))
2760
+ if (x(t, u().encode(7), 0))
2640
2761
  return 7;
2641
2762
  throw new Error(
2642
2763
  "The provided instruction could not be identified as a whirlpoolsAutomationProgram instruction."
2643
2764
  );
2644
2765
  }
2645
- function Oc(e) {
2646
- const t = p_(e);
2766
+ function wc(e) {
2767
+ const t = j_(e);
2647
2768
  switch (t) {
2648
2769
  case 0:
2649
- return y(e), {
2770
+ return F(e), {
2650
2771
  instructionType: 0,
2651
- ...C_(e)
2772
+ ...H_(e)
2652
2773
  };
2653
2774
  case 1:
2654
- return y(e), {
2775
+ return F(e), {
2655
2776
  instructionType: 1,
2656
- ...L_(e)
2777
+ ...X_(e)
2657
2778
  };
2658
2779
  case 2:
2659
- return y(e), {
2780
+ return F(e), {
2660
2781
  instructionType: 2,
2661
- ...S_(e)
2782
+ ...G_(e)
2662
2783
  };
2663
2784
  case 3:
2664
- return y(e), {
2785
+ return F(e), {
2665
2786
  instructionType: 3,
2666
- ...v_(e)
2787
+ ...$_(e)
2667
2788
  };
2668
2789
  case 4:
2669
- return y(e), {
2790
+ return F(e), {
2670
2791
  instructionType: 4,
2671
- ...I_(e)
2792
+ ...V_(e)
2672
2793
  };
2673
2794
  case 5:
2674
- return y(e), {
2795
+ return F(e), {
2675
2796
  instructionType: 5,
2676
- ...f_(e)
2797
+ ...F_(e)
2677
2798
  };
2678
2799
  case 6:
2679
- return y(e), {
2800
+ return F(e), {
2680
2801
  instructionType: 6,
2681
- ...g_(e)
2802
+ ...W_(e)
2682
2803
  };
2683
2804
  case 7:
2684
- return y(e), {
2805
+ return F(e), {
2685
2806
  instructionType: 7,
2686
- ...m_(e)
2807
+ ...z_(e)
2687
2808
  };
2688
2809
  default:
2689
2810
  throw new Error(`Unrecognized instruction type: ${t}`);
2690
2811
  }
2691
2812
  }
2692
- const b_ = 6e3, P_ = 6001, U_ = 6002, M_ = 6003, k_ = 6004, w_ = 6005, y_ = 6006, x_ = 6007, B_ = 6008, G_ = 6009, V_ = 6010, F_ = 6011, z_ = 6012, W_ = 6013, H_ = 6014, $_ = 6015, X_ = 6016, Y_ = 6017, K_ = 6018, j_ = 6019, J_ = 6020, Z_ = 6021, q_ = 6022, Q_ = 6023, es = 6024, ts = 6025, ns = 6026, rs = 6027, os = 6028, as = 6029, is = 6030, _s = 6031;
2693
- let ln;
2694
- process.env.NODE_ENV !== "production" && (ln = {
2695
- [G_]: "Account already initialized",
2696
- [V_]: "Account not initialized",
2697
- [K_]: "Arithmetic error",
2698
- [Z_]: "Condition violation",
2699
- [B_]: "Emit event error",
2700
- [y_]: "Invalid account address",
2701
- [k_]: "Incorrect owner",
2702
- [P_]: "Incorrect program id",
2703
- [ns]: "Insufficient funds to pay crank reward",
2704
- [os]: "Insufficient instruction count after this instruction",
2705
- [rs]: "Insufficient instruction count before this instruction",
2706
- [as]: "Invalid accompanying instruction",
2707
- [x_]: "Invalid account data",
2708
- [M_]: "Invalid account role",
2709
- [z_]: "Invalid action",
2710
- [$_]: "Invalid action data length",
2711
- [J_]: "Invalid amount to fund automation",
2712
- [Y_]: "Invalid automation action",
2713
- [H_]: "Invalid automation_index",
2714
- [W_]: "Invalid condition",
2715
- [X_]: "Invalid condition data length",
2716
- [q_]: "Invalid accounts for CPI",
2717
- [Q_]: "Invalid instruction data for CPI",
2718
- [es]: "Invalid crank reward",
2719
- [is]: "Invalid intermediate swap",
2720
- [j_]: "Invalid next valid exection timestamp condition",
2721
- [F_]: "Position token amount must be 1",
2722
- [_s]: "Invalid remaining accounts length",
2723
- [w_]: "Invalid seeds",
2724
- [U_]: "Not enough account keys",
2725
- [ts]: "Redundant global config update",
2726
- [b_]: "Unknown instruction discriminator"
2813
+ const J_ = 6e3, Z_ = 6001, q_ = 6002, Q_ = 6003, es = 6004, ts = 6005, ns = 6006, rs = 6007, os = 6008, as = 6009, is = 6010, _s = 6011, ss = 6012, cs = 6013, Rs = 6014, us = 6015, As = 6016, ls = 6017, Os = 6018, ds = 6019, Es = 6020, Ns = 6021, Ts = 6022, Ss = 6023, Is = 6024, fs = 6025, ms = 6026, gs = 6027, Cs = 6028, vs = 6029, Ls = 6030, hs = 6031;
2814
+ let pn;
2815
+ process.env.NODE_ENV !== "production" && (pn = {
2816
+ [as]: "Account already initialized",
2817
+ [is]: "Account not initialized",
2818
+ [Os]: "Arithmetic error",
2819
+ [Ns]: "Condition violation",
2820
+ [os]: "Emit event error",
2821
+ [ns]: "Invalid account address",
2822
+ [es]: "Incorrect owner",
2823
+ [Z_]: "Incorrect program id",
2824
+ [ms]: "Insufficient funds to pay crank reward",
2825
+ [Cs]: "Insufficient instruction count after this instruction",
2826
+ [gs]: "Insufficient instruction count before this instruction",
2827
+ [vs]: "Invalid accompanying instruction",
2828
+ [rs]: "Invalid account data",
2829
+ [Q_]: "Invalid account role",
2830
+ [ss]: "Invalid action",
2831
+ [us]: "Invalid action data length",
2832
+ [Es]: "Invalid amount to fund automation",
2833
+ [ls]: "Invalid automation action",
2834
+ [Rs]: "Invalid automation_index",
2835
+ [cs]: "Invalid condition",
2836
+ [As]: "Invalid condition data length",
2837
+ [Ts]: "Invalid accounts for CPI",
2838
+ [Ss]: "Invalid instruction data for CPI",
2839
+ [Is]: "Invalid crank reward",
2840
+ [Ls]: "Invalid intermediate swap",
2841
+ [ds]: "Invalid next valid exection timestamp condition",
2842
+ [_s]: "Position token amount must be 1",
2843
+ [hs]: "Invalid remaining accounts length",
2844
+ [ts]: "Invalid seeds",
2845
+ [q_]: "Not enough account keys",
2846
+ [fs]: "Redundant global config update",
2847
+ [J_]: "Unknown instruction discriminator"
2727
2848
  });
2728
- function lc(e) {
2729
- return process.env.NODE_ENV !== "production" ? ln[e] : "Error message not available in production bundles.";
2849
+ function Mc(e) {
2850
+ return process.env.NODE_ENV !== "production" ? pn[e] : "Error message not available in production bundles.";
2730
2851
  }
2731
- function dc(e, t, n) {
2732
- return $i(
2852
+ function kc(e, t, n) {
2853
+ return u_(
2733
2854
  e,
2734
2855
  t,
2735
- w,
2856
+ M,
2736
2857
  n
2737
2858
  );
2738
2859
  }
2739
- const Ec = 64;
2860
+ const yc = 64, Dn = c();
2861
+ async function xc() {
2862
+ return Ie({
2863
+ programAddress: M,
2864
+ seeds: [new TextEncoder().encode("global_config")]
2865
+ });
2866
+ }
2867
+ async function Bc(e, t) {
2868
+ return Ie({
2869
+ programAddress: M,
2870
+ seeds: [
2871
+ new TextEncoder().encode("automation"),
2872
+ Dn.encode(e),
2873
+ new Uint8Array([t])
2874
+ ]
2875
+ });
2876
+ }
2877
+ async function Gc(e) {
2878
+ return Ie({
2879
+ programAddress: M,
2880
+ seeds: [
2881
+ new TextEncoder().encode("automation-authority"),
2882
+ Dn.encode(e)
2883
+ ]
2884
+ });
2885
+ }
2886
+ const Vc = "J5YZi2SoRbaAFcMJWcvkQRUgpB3YdMHJ4AEKhEV6ED7x";
2740
2887
  export {
2741
- Ee as AccountDiscriminator,
2742
- Se as Action,
2743
- Wt as CREATE_AUTOMATION_DISCRIMINATOR,
2744
- Xt as FUND_AUTOMATION_DISCRIMINATOR,
2745
- Ie as FundAutomationMethod,
2746
- jt as HARVEST_AND_REINVEST_DISCRIMINATOR,
2747
- qt as HARVEST_SWAP_AND_REINVEST_POST_DISCRIMINATOR,
2748
- tn as HARVEST_SWAP_AND_REINVEST_PRE_DISCRIMINATOR,
2749
- on as INITIALIZE_GLOBAL_CONFIG_DISCRIMINATOR,
2750
- fe as IncreaseLiquidityByTokenAmountsAccountsType,
2751
- Ec as MAX_AUTOMATION_INDEX,
2752
- sn as REMOVE_AUTOMATIONS_DISCRIMINATOR,
2753
- me as TokenAccountState,
2754
- un as UPDATE_GLOBAL_CONFIG_DISCRIMINATOR,
2755
- G_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ACCOUNT_ALREADY_INITIALIZED,
2756
- V_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ACCOUNT_NOT_INITIALIZED,
2757
- K_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ARITHMETIC_ERROR,
2758
- Z_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__CONDITION_VIOLATION,
2759
- B_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__EMIT_EVENT_ERROR,
2760
- y_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_ACCOUNT_ADDRESS,
2761
- k_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_OWNER,
2762
- P_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_PROGRAM_ID,
2763
- ns as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_FUNDS_TO_PAY_CRANK_REWARD,
2764
- os as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_INSTRUCTION_COUNT_AFTER,
2765
- rs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_INSTRUCTION_COUNT_BEFORE,
2766
- as as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOMPANYING_INSTRUCTION,
2767
- x_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOUNT_DATA,
2768
- M_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOUNT_ROLE,
2769
- z_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACTION,
2770
- $_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACTION_DATA_LENGTH,
2771
- J_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AMOUNT_TO_FUND_AUTOMATION,
2772
- Y_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AUTOMATION_ACTION,
2773
- H_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AUTOMATION_INDEX,
2774
- W_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CONDITION,
2775
- X_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CONDITION_DATA_LENGTH,
2776
- es as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CRANK_REWARD,
2777
- q_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_C_P_I_ACCOUNTS,
2778
- Q_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_C_P_I_INSTRUCTION_DATA,
2779
- is as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_INTERMEDIATE_SWAP,
2780
- j_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_NEXT_VALID_EXECUTION_TIMESTAMP_CONDITION,
2781
- F_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_POSITION_TOKEN_AMOUNT,
2782
- _s as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH,
2783
- w_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_SEEDS,
2784
- U_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__NOT_ENOUGH_ACCOUNT_KEYS,
2785
- ts as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__REDUNDANT_GLOBAL_CONFIG_UPDATE,
2786
- b_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__UNKNOWN_INSTRUCTION_DISCRIMINATOR,
2787
- w as WHIRLPOOLS_AUTOMATION_PROGRAM_PROGRAM_ADDRESS,
2788
- h_ as WhirlpoolsAutomationProgramAccount,
2789
- D_ as WhirlpoolsAutomationProgramInstruction,
2790
- Di as address,
2791
- As as condition,
2792
- Vt as decodeAutomation,
2793
- zt as decodeGlobalConfig,
2794
- ds as event,
2795
- Gs as fetchAllAutomation,
2796
- zs as fetchAllGlobalConfig,
2797
- l_ as fetchAllMaybeAutomation,
2798
- N_ as fetchAllMaybeGlobalConfig,
2799
- Bs as fetchAutomation,
2800
- Fs as fetchGlobalConfig,
2801
- O_ as fetchMaybeAutomation,
2802
- E_ as fetchMaybeGlobalConfig,
2803
- Ss as fundAutomationVariant,
2804
- cs as getAccountDiscriminatorCodec,
2805
- Te as getAccountDiscriminatorDecoder,
2806
- Ne as getAccountDiscriminatorEncoder,
2807
- Rs as getActionCodec,
2808
- It as getActionDecoder,
2809
- St as getActionEncoder,
2810
- u as getAddressDecoder,
2811
- R as getAddressEncoder,
2812
- xs as getAutomationCodec,
2813
- Gt as getAutomationDecoder,
2814
- A_ as getAutomationEncoder,
2815
- us as getConditionCodec,
2816
- mt as getConditionDecoder,
2817
- ft as getConditionEncoder,
2818
- Ws as getCreateAutomationDiscriminatorBytes,
2819
- $s as getCreateAutomationInstruction,
2820
- Hs as getCreateAutomationInstructionDataCodec,
2821
- $t as getCreateAutomationInstructionDataDecoder,
2822
- Ht as getCreateAutomationInstructionDataEncoder,
2823
- ls as getEventCodec,
2824
- Qi as getEventDecoder,
2825
- qi as getEventEncoder,
2826
- Xs as getFundAutomationDiscriminatorBytes,
2827
- Ks as getFundAutomationInstruction,
2828
- Ys as getFundAutomationInstructionDataCodec,
2829
- Kt as getFundAutomationInstructionDataDecoder,
2830
- Yt as getFundAutomationInstructionDataEncoder,
2831
- Ns as getFundAutomationMethodCodec,
2832
- Ct as getFundAutomationMethodDecoder,
2833
- gt as getFundAutomationMethodEncoder,
2834
- Ts as getFundAutomationVariantCodec,
2835
- Lt as getFundAutomationVariantDecoder,
2836
- vt as getFundAutomationVariantEncoder,
2837
- Vs as getGlobalConfigCodec,
2838
- Ft as getGlobalConfigDecoder,
2839
- d_ as getGlobalConfigEncoder,
2840
- js as getHarvestAndReinvestDiscriminatorBytes,
2841
- Zs as getHarvestAndReinvestInstruction,
2842
- Js as getHarvestAndReinvestInstructionDataCodec,
2843
- Zt as getHarvestAndReinvestInstructionDataDecoder,
2844
- Jt as getHarvestAndReinvestInstructionDataEncoder,
2845
- qs as getHarvestSwapAndReinvestPostDiscriminatorBytes,
2846
- ec as getHarvestSwapAndReinvestPostInstruction,
2847
- Qs as getHarvestSwapAndReinvestPostInstructionDataCodec,
2848
- en as getHarvestSwapAndReinvestPostInstructionDataDecoder,
2849
- Qt as getHarvestSwapAndReinvestPostInstructionDataEncoder,
2850
- tc as getHarvestSwapAndReinvestPreDiscriminatorBytes,
2851
- rc as getHarvestSwapAndReinvestPreInstruction,
2852
- nc as getHarvestSwapAndReinvestPreInstructionDataCodec,
2853
- rn as getHarvestSwapAndReinvestPreInstructionDataDecoder,
2854
- nn as getHarvestSwapAndReinvestPreInstructionDataEncoder,
2855
- fs as getIncreaseLiquidityByTokenAmountsAccountsTypeCodec,
2856
- Dt as getIncreaseLiquidityByTokenAmountsAccountsTypeDecoder,
2857
- ht as getIncreaseLiquidityByTokenAmountsAccountsTypeEncoder,
2858
- ms as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoCodec,
2859
- t_ as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoDecoder,
2860
- e_ as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoEncoder,
2861
- gs as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceCodec,
2862
- bt as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceDecoder,
2863
- pt as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceEncoder,
2864
- Cs as getIncreaseLiquidityMethodCodec,
2865
- r_ as getIncreaseLiquidityMethodDecoder,
2866
- n_ as getIncreaseLiquidityMethodEncoder,
2867
- oc as getInitializeGlobalConfigDiscriminatorBytes,
2868
- ic as getInitializeGlobalConfigInstruction,
2869
- ac as getInitializeGlobalConfigInstructionDataCodec,
2870
- _n as getInitializeGlobalConfigInstructionDataDecoder,
2871
- an as getInitializeGlobalConfigInstructionDataEncoder,
2872
- Zi as getNonZeroU32Decoder,
2873
- Ji as getNonZeroU32Encoder,
2874
- hs as getPositionCodec,
2875
- a_ as getPositionDecoder,
2876
- o_ as getPositionEncoder,
2877
- Ds as getPositionRewardInfoCodec,
2878
- Ut as getPositionRewardInfoDecoder,
2879
- Pt as getPositionRewardInfoEncoder,
2880
- _c as getRemoveAutomationsDiscriminatorBytes,
2881
- cc as getRemoveAutomationsInstruction,
2882
- sc as getRemoveAutomationsInstructionDataCodec,
2883
- Rn as getRemoveAutomationsInstructionDataDecoder,
2884
- cn as getRemoveAutomationsInstructionDataEncoder,
2885
- ps as getTokenAccountCodec,
2886
- __ as getTokenAccountDecoder,
2887
- i_ as getTokenAccountEncoder,
2888
- bs as getTokenAccountStateCodec,
2889
- kt as getTokenAccountStateDecoder,
2890
- Mt as getTokenAccountStateEncoder,
2891
- Ps as getTokenMintCodec,
2892
- c_ as getTokenMintDecoder,
2893
- s_ as getTokenMintEncoder,
2894
- Rc as getUpdateGlobalConfigDiscriminatorBytes,
2895
- Ac as getUpdateGlobalConfigInstruction,
2896
- uc as getUpdateGlobalConfigInstructionDataCodec,
2897
- On as getUpdateGlobalConfigInstructionDataDecoder,
2898
- An as getUpdateGlobalConfigInstructionDataEncoder,
2899
- Us as getUpdateGlobalConfigVariantCodec,
2900
- yt as getUpdateGlobalConfigVariantDecoder,
2901
- wt as getUpdateGlobalConfigVariantEncoder,
2902
- ws as getWhirlpoolCodec,
2903
- u_ as getWhirlpoolDecoder,
2904
- R_ as getWhirlpoolEncoder,
2905
- ys as getWhirlpoolRewardInfoCodec,
2906
- Bt as getWhirlpoolRewardInfoDecoder,
2907
- xt as getWhirlpoolRewardInfoEncoder,
2908
- lc as getWhirlpoolsAutomationProgramErrorMessage,
2909
- p_ as identifyWhirlpoolsAutomationProgramInstruction,
2910
- vs as increaseLiquidityMethod,
2911
- Os as isCondition,
2912
- Es as isEvent,
2913
- Is as isFundAutomationVariant,
2914
- Ls as isIncreaseLiquidityMethod,
2915
- ks as isUpdateGlobalConfigVariant,
2916
- dc as isWhirlpoolsAutomationProgramError,
2917
- S_ as parseCreateAutomationInstruction,
2918
- I_ as parseFundAutomationInstruction,
2919
- f_ as parseHarvestAndReinvestInstruction,
2920
- m_ as parseHarvestSwapAndReinvestPostInstruction,
2921
- g_ as parseHarvestSwapAndReinvestPreInstruction,
2922
- C_ as parseInitializeGlobalConfigInstruction,
2923
- v_ as parseRemoveAutomationsInstruction,
2924
- L_ as parseUpdateGlobalConfigInstruction,
2925
- Oc as parseWhirlpoolsAutomationProgramInstruction,
2926
- Ms as updateGlobalConfigVariant
2888
+ fe as AccountDiscriminator,
2889
+ Ce as Action,
2890
+ rn as CREATE_AUTOMATION_DISCRIMINATOR,
2891
+ _n as FUND_AUTOMATION_DISCRIMINATOR,
2892
+ ve as FundAutomationMethod,
2893
+ Rn as HARVEST_AND_REINVEST_DISCRIMINATOR,
2894
+ ln as HARVEST_SWAP_AND_REINVEST_POST_DISCRIMINATOR,
2895
+ En as HARVEST_SWAP_AND_REINVEST_PRE_DISCRIMINATOR,
2896
+ Sn as INITIALIZE_GLOBAL_CONFIG_DISCRIMINATOR,
2897
+ Le as IncreaseLiquidityByTokenAmountsAccountsType,
2898
+ yc as MAX_AUTOMATION_INDEX,
2899
+ mn as REMOVE_AUTOMATIONS_DISCRIMINATOR,
2900
+ he as TokenAccountState,
2901
+ vn as UPDATE_GLOBAL_CONFIG_DISCRIMINATOR,
2902
+ as as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ACCOUNT_ALREADY_INITIALIZED,
2903
+ is as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ACCOUNT_NOT_INITIALIZED,
2904
+ Os as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__ARITHMETIC_ERROR,
2905
+ Ns as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__CONDITION_VIOLATION,
2906
+ os as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__EMIT_EVENT_ERROR,
2907
+ ns as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_ACCOUNT_ADDRESS,
2908
+ es as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_OWNER,
2909
+ Z_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INCORRECT_PROGRAM_ID,
2910
+ ms as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_FUNDS_TO_PAY_CRANK_REWARD,
2911
+ Cs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_INSTRUCTION_COUNT_AFTER,
2912
+ gs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INSUFFICIENT_INSTRUCTION_COUNT_BEFORE,
2913
+ vs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOMPANYING_INSTRUCTION,
2914
+ rs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOUNT_DATA,
2915
+ Q_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACCOUNT_ROLE,
2916
+ ss as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACTION,
2917
+ us as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_ACTION_DATA_LENGTH,
2918
+ Es as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AMOUNT_TO_FUND_AUTOMATION,
2919
+ ls as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AUTOMATION_ACTION,
2920
+ Rs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_AUTOMATION_INDEX,
2921
+ cs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CONDITION,
2922
+ As as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CONDITION_DATA_LENGTH,
2923
+ Is as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_CRANK_REWARD,
2924
+ Ts as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_C_P_I_ACCOUNTS,
2925
+ Ss as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_C_P_I_INSTRUCTION_DATA,
2926
+ Ls as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_INTERMEDIATE_SWAP,
2927
+ ds as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_NEXT_VALID_EXECUTION_TIMESTAMP_CONDITION,
2928
+ _s as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_POSITION_TOKEN_AMOUNT,
2929
+ hs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_REMAINING_ACCOUNTS_LENGTH,
2930
+ ts as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__INVALID_SEEDS,
2931
+ q_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__NOT_ENOUGH_ACCOUNT_KEYS,
2932
+ fs as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__REDUNDANT_GLOBAL_CONFIG_UPDATE,
2933
+ J_ as WHIRLPOOLS_AUTOMATION_PROGRAM_ERROR__UNKNOWN_INSTRUCTION_DISCRIMINATOR,
2934
+ M as WHIRLPOOLS_AUTOMATION_PROGRAM_PROGRAM_ADDRESS,
2935
+ Vc as WHIRLPOOLS_AUTOMATION_PROGRAM_STAGING_ADDRESS,
2936
+ Y_ as WhirlpoolsAutomationProgramAccount,
2937
+ K_ as WhirlpoolsAutomationProgramInstruction,
2938
+ Bi as address,
2939
+ Us as condition,
2940
+ en as decodeAutomation,
2941
+ nn as decodeGlobalConfig,
2942
+ ks as event,
2943
+ ac as fetchAllAutomation,
2944
+ sc as fetchAllGlobalConfig,
2945
+ M_ as fetchAllMaybeAutomation,
2946
+ x_ as fetchAllMaybeGlobalConfig,
2947
+ oc as fetchAutomation,
2948
+ _c as fetchGlobalConfig,
2949
+ w_ as fetchMaybeAutomation,
2950
+ y_ as fetchMaybeGlobalConfig,
2951
+ Bc as findAutomationAddress,
2952
+ Gc as findAutomationAuthorityAddress,
2953
+ xc as findGlobalConfigAddress,
2954
+ Gs as fundAutomationVariant,
2955
+ Ds as getAccountDiscriminatorCodec,
2956
+ ge as getAccountDiscriminatorDecoder,
2957
+ me as getAccountDiscriminatorEncoder,
2958
+ bs as getActionCodec,
2959
+ Mt as getActionDecoder,
2960
+ wt as getActionEncoder,
2961
+ R as getAddressDecoder,
2962
+ c as getAddressEncoder,
2963
+ rc as getAutomationCodec,
2964
+ Qt as getAutomationDecoder,
2965
+ U_ as getAutomationEncoder,
2966
+ Ps as getConditionCodec,
2967
+ yt as getConditionDecoder,
2968
+ kt as getConditionEncoder,
2969
+ cc as getCreateAutomationDiscriminatorBytes,
2970
+ uc as getCreateAutomationInstruction,
2971
+ Rc as getCreateAutomationInstructionDataCodec,
2972
+ an as getCreateAutomationInstructionDataDecoder,
2973
+ on as getCreateAutomationInstructionDataEncoder,
2974
+ Ms as getEventCodec,
2975
+ S_ as getEventDecoder,
2976
+ T_ as getEventEncoder,
2977
+ Ac as getFundAutomationDiscriminatorBytes,
2978
+ Oc as getFundAutomationInstruction,
2979
+ lc as getFundAutomationInstructionDataCodec,
2980
+ cn as getFundAutomationInstructionDataDecoder,
2981
+ sn as getFundAutomationInstructionDataEncoder,
2982
+ xs as getFundAutomationMethodCodec,
2983
+ Bt as getFundAutomationMethodDecoder,
2984
+ xt as getFundAutomationMethodEncoder,
2985
+ Bs as getFundAutomationVariantCodec,
2986
+ Vt as getFundAutomationVariantDecoder,
2987
+ Gt as getFundAutomationVariantEncoder,
2988
+ ic as getGlobalConfigCodec,
2989
+ tn as getGlobalConfigDecoder,
2990
+ k_ as getGlobalConfigEncoder,
2991
+ dc as getHarvestAndReinvestDiscriminatorBytes,
2992
+ Nc as getHarvestAndReinvestInstruction,
2993
+ Ec as getHarvestAndReinvestInstructionDataCodec,
2994
+ An as getHarvestAndReinvestInstructionDataDecoder,
2995
+ un as getHarvestAndReinvestInstructionDataEncoder,
2996
+ Tc as getHarvestSwapAndReinvestPostDiscriminatorBytes,
2997
+ Ic as getHarvestSwapAndReinvestPostInstruction,
2998
+ Sc as getHarvestSwapAndReinvestPostInstructionDataCodec,
2999
+ dn as getHarvestSwapAndReinvestPostInstructionDataDecoder,
3000
+ On as getHarvestSwapAndReinvestPostInstructionDataEncoder,
3001
+ fc as getHarvestSwapAndReinvestPreDiscriminatorBytes,
3002
+ gc as getHarvestSwapAndReinvestPreInstruction,
3003
+ mc as getHarvestSwapAndReinvestPreInstructionDataCodec,
3004
+ Tn as getHarvestSwapAndReinvestPreInstructionDataDecoder,
3005
+ Nn as getHarvestSwapAndReinvestPreInstructionDataEncoder,
3006
+ Fs as getIncreaseLiquidityByTokenAmountsAccountsTypeCodec,
3007
+ zt as getIncreaseLiquidityByTokenAmountsAccountsTypeDecoder,
3008
+ Ft as getIncreaseLiquidityByTokenAmountsAccountsTypeEncoder,
3009
+ zs as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoCodec,
3010
+ f_ as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoDecoder,
3011
+ I_ as getIncreaseLiquidityByTokenAmountsRemainingAccountsInfoEncoder,
3012
+ Ws as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceCodec,
3013
+ Ht as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceDecoder,
3014
+ Wt as getIncreaseLiquidityByTokenAmountsRemainingAccountsSliceEncoder,
3015
+ Hs as getIncreaseLiquidityMethodCodec,
3016
+ g_ as getIncreaseLiquidityMethodDecoder,
3017
+ m_ as getIncreaseLiquidityMethodEncoder,
3018
+ Cc as getInitializeGlobalConfigDiscriminatorBytes,
3019
+ Lc as getInitializeGlobalConfigInstruction,
3020
+ vc as getInitializeGlobalConfigInstructionDataCodec,
3021
+ fn as getInitializeGlobalConfigInstructionDataDecoder,
3022
+ In as getInitializeGlobalConfigInstructionDataEncoder,
3023
+ N_ as getNonZeroU32Decoder,
3024
+ E_ as getNonZeroU32Encoder,
3025
+ Ys as getPositionCodec,
3026
+ v_ as getPositionDecoder,
3027
+ C_ as getPositionEncoder,
3028
+ Ks as getPositionRewardInfoCodec,
3029
+ Xt as getPositionRewardInfoDecoder,
3030
+ $t as getPositionRewardInfoEncoder,
3031
+ hc as getRemoveAutomationsDiscriminatorBytes,
3032
+ Dc as getRemoveAutomationsInstruction,
3033
+ pc as getRemoveAutomationsInstructionDataCodec,
3034
+ Cn as getRemoveAutomationsInstructionDataDecoder,
3035
+ gn as getRemoveAutomationsInstructionDataEncoder,
3036
+ js as getTokenAccountCodec,
3037
+ h_ as getTokenAccountDecoder,
3038
+ L_ as getTokenAccountEncoder,
3039
+ Js as getTokenAccountStateCodec,
3040
+ Kt as getTokenAccountStateDecoder,
3041
+ Yt as getTokenAccountStateEncoder,
3042
+ Zs as getTokenMintCodec,
3043
+ D_ as getTokenMintDecoder,
3044
+ p_ as getTokenMintEncoder,
3045
+ bc as getUpdateGlobalConfigDiscriminatorBytes,
3046
+ Uc as getUpdateGlobalConfigInstruction,
3047
+ Pc as getUpdateGlobalConfigInstructionDataCodec,
3048
+ hn as getUpdateGlobalConfigInstructionDataDecoder,
3049
+ Ln as getUpdateGlobalConfigInstructionDataEncoder,
3050
+ qs as getUpdateGlobalConfigVariantCodec,
3051
+ Jt as getUpdateGlobalConfigVariantDecoder,
3052
+ jt as getUpdateGlobalConfigVariantEncoder,
3053
+ tc as getWhirlpoolCodec,
3054
+ P_ as getWhirlpoolDecoder,
3055
+ b_ as getWhirlpoolEncoder,
3056
+ nc as getWhirlpoolRewardInfoCodec,
3057
+ qt as getWhirlpoolRewardInfoDecoder,
3058
+ Zt as getWhirlpoolRewardInfoEncoder,
3059
+ Mc as getWhirlpoolsAutomationProgramErrorMessage,
3060
+ j_ as identifyWhirlpoolsAutomationProgramInstruction,
3061
+ $s as increaseLiquidityMethod,
3062
+ ws as isCondition,
3063
+ ys as isEvent,
3064
+ Vs as isFundAutomationVariant,
3065
+ Xs as isIncreaseLiquidityMethod,
3066
+ ec as isUpdateGlobalConfigVariant,
3067
+ kc as isWhirlpoolsAutomationProgramError,
3068
+ G_ as parseCreateAutomationInstruction,
3069
+ V_ as parseFundAutomationInstruction,
3070
+ F_ as parseHarvestAndReinvestInstruction,
3071
+ z_ as parseHarvestSwapAndReinvestPostInstruction,
3072
+ W_ as parseHarvestSwapAndReinvestPreInstruction,
3073
+ H_ as parseInitializeGlobalConfigInstruction,
3074
+ $_ as parseRemoveAutomationsInstruction,
3075
+ X_ as parseUpdateGlobalConfigInstruction,
3076
+ wc as parseWhirlpoolsAutomationProgramInstruction,
3077
+ Qs as updateGlobalConfigVariant
2927
3078
  };