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