@orca-so/whirlpools-automation 0.2.0 → 0.3.0

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