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