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