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