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