@orca-so/whirlpools-automation 0.1.3 → 0.2.0

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