@useaccord/sdk 0.1.0 → 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/LICENSE +21 -0
- package/dist/adapter.d.ts.map +1 -1
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/evidence/base64.d.ts +12 -0
- package/dist/evidence/base64.d.ts.map +1 -0
- package/dist/evidence/delivery-key.d.ts +82 -0
- package/dist/evidence/delivery-key.d.ts.map +1 -0
- package/dist/evidence/ecies.d.ts +5 -5
- package/dist/evidence/ecies.d.ts.map +1 -1
- package/dist/evidence/fetch.d.ts +34 -10
- package/dist/evidence/fetch.d.ts.map +1 -1
- package/dist/evidence/index.d.ts +1 -0
- package/dist/evidence/index.d.ts.map +1 -1
- package/dist/evidence/index.js +171 -14
- package/dist/evidence/index.js.map +1 -1
- package/dist/evidence/keys.d.ts.map +1 -1
- package/dist/evidence/parse.d.ts +3 -0
- package/dist/evidence/parse.d.ts.map +1 -1
- package/dist/evidence/publish.d.ts.map +1 -1
- package/dist/generated/accounts/appealBond.d.ts +16 -0
- package/dist/generated/accounts/appealBond.d.ts.map +1 -1
- package/dist/generated/accounts/dispute.d.ts +34 -8
- package/dist/generated/accounts/dispute.d.ts.map +1 -1
- package/dist/generated/accounts/jurorStake.d.ts +24 -0
- package/dist/generated/accounts/jurorStake.d.ts.map +1 -1
- package/dist/generated/errors/accord.d.ts +3 -1
- package/dist/generated/errors/accord.d.ts.map +1 -1
- package/dist/generated/instructions/claimFilingBounty.d.ts +82 -0
- package/dist/generated/instructions/claimFilingBounty.d.ts.map +1 -0
- package/dist/generated/instructions/index.d.ts +1 -0
- package/dist/generated/instructions/index.d.ts.map +1 -1
- package/dist/generated/instructions/settleRound.d.ts +1 -1
- package/dist/generated/programs/accord.d.ts +31 -27
- package/dist/generated/programs/accord.d.ts.map +1 -1
- package/dist/index.js +1021 -770
- package/dist/index.js.map +1 -1
- package/dist/methods/appeal.d.ts +9 -5
- package/dist/methods/appeal.d.ts.map +1 -1
- package/dist/methods/dispute.d.ts +6 -5
- package/dist/methods/dispute.d.ts.map +1 -1
- package/dist/methods/settlement.d.ts +24 -1
- package/dist/methods/settlement.d.ts.map +1 -1
- package/dist/methods/staking.d.ts +23 -5
- package/dist/methods/staking.d.ts.map +1 -1
- package/dist/methods/voting.d.ts +6 -7
- package/dist/methods/voting.d.ts.map +1 -1
- package/dist/methods/vrf.d.ts.map +1 -1
- package/dist/methods.d.ts +3 -2
- package/dist/methods.d.ts.map +1 -1
- package/package.json +17 -8
package/dist/index.js
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
assertIsInstructionWithAccounts,
|
|
13
13
|
containsBytes,
|
|
14
14
|
extendClient,
|
|
15
|
-
fixEncoderSize as
|
|
16
|
-
getBytesEncoder as
|
|
15
|
+
fixEncoderSize as fixEncoderSize40,
|
|
16
|
+
getBytesEncoder as getBytesEncoder47,
|
|
17
17
|
SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,
|
|
18
18
|
SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,
|
|
19
19
|
SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,
|
|
20
|
-
SolanaError as
|
|
20
|
+
SolanaError as SolanaError31
|
|
21
21
|
} from "@solana/kit";
|
|
22
22
|
import {
|
|
23
23
|
addSelfFetchFunctions,
|
|
@@ -151,8 +151,9 @@ function getAppealBondEncoder() {
|
|
|
151
151
|
["appellant", getAddressEncoder2()],
|
|
152
152
|
["amount", getU64Encoder2()],
|
|
153
153
|
["priorResult", getU64Encoder2()],
|
|
154
|
+
["reward", getU64Encoder2()],
|
|
154
155
|
["bump", getU8Encoder2()],
|
|
155
|
-
["padding", fixEncoderSize2(getBytesEncoder2(),
|
|
156
|
+
["padding", fixEncoderSize2(getBytesEncoder2(), 56)]
|
|
156
157
|
]),
|
|
157
158
|
(value) => ({ ...value, discriminator: APPEAL_BOND_DISCRIMINATOR })
|
|
158
159
|
);
|
|
@@ -166,8 +167,9 @@ function getAppealBondDecoder() {
|
|
|
166
167
|
["appellant", getAddressDecoder2()],
|
|
167
168
|
["amount", getU64Decoder2()],
|
|
168
169
|
["priorResult", getU64Decoder2()],
|
|
170
|
+
["reward", getU64Decoder2()],
|
|
169
171
|
["bump", getU8Decoder2()],
|
|
170
|
-
["padding", fixDecoderSize2(getBytesDecoder2(),
|
|
172
|
+
["padding", fixDecoderSize2(getBytesDecoder2(), 56)]
|
|
171
173
|
]);
|
|
172
174
|
}
|
|
173
175
|
__name(getAppealBondDecoder, "getAppealBondDecoder");
|
|
@@ -581,7 +583,8 @@ function getDisputeEncoder() {
|
|
|
581
583
|
["filedAt", getI64Encoder()],
|
|
582
584
|
["bump", getU8Encoder5()],
|
|
583
585
|
["drawnSeats", getU32Encoder3()],
|
|
584
|
-
["
|
|
586
|
+
["bountyPool", getU64Encoder7()],
|
|
587
|
+
["padding", fixEncoderSize4(getBytesEncoder4(), 52)]
|
|
585
588
|
]),
|
|
586
589
|
(value) => ({ ...value, discriminator: DISPUTE_DISCRIMINATOR })
|
|
587
590
|
);
|
|
@@ -614,7 +617,8 @@ function getDisputeDecoder() {
|
|
|
614
617
|
["filedAt", getI64Decoder()],
|
|
615
618
|
["bump", getU8Decoder5()],
|
|
616
619
|
["drawnSeats", getU32Decoder3()],
|
|
617
|
-
["
|
|
620
|
+
["bountyPool", getU64Decoder7()],
|
|
621
|
+
["padding", fixDecoderSize4(getBytesDecoder4(), 52)]
|
|
618
622
|
]);
|
|
619
623
|
}
|
|
620
624
|
__name(getDisputeDecoder, "getDisputeDecoder");
|
|
@@ -693,7 +697,8 @@ function getJurorStakeEncoder() {
|
|
|
693
697
|
["pendingWithdrawal", getU64Encoder8()],
|
|
694
698
|
["feesEarned", getU64Encoder8()],
|
|
695
699
|
["nextFree", getU32Encoder4()],
|
|
696
|
-
["
|
|
700
|
+
["prevFree", getU32Encoder4()],
|
|
701
|
+
["padding", fixEncoderSize5(getBytesEncoder5(), 60)]
|
|
697
702
|
]),
|
|
698
703
|
(value) => ({ ...value, discriminator: JUROR_STAKE_DISCRIMINATOR })
|
|
699
704
|
);
|
|
@@ -714,7 +719,8 @@ function getJurorStakeDecoder() {
|
|
|
714
719
|
["pendingWithdrawal", getU64Decoder8()],
|
|
715
720
|
["feesEarned", getU64Decoder8()],
|
|
716
721
|
["nextFree", getU32Decoder4()],
|
|
717
|
-
["
|
|
722
|
+
["prevFree", getU32Decoder4()],
|
|
723
|
+
["padding", fixDecoderSize5(getBytesDecoder5(), 60)]
|
|
718
724
|
]);
|
|
719
725
|
}
|
|
720
726
|
__name(getJurorStakeDecoder, "getJurorStakeDecoder");
|
|
@@ -1978,13 +1984,15 @@ function parseClaimAppealRefundInstruction(instruction) {
|
|
|
1978
1984
|
}
|
|
1979
1985
|
__name(parseClaimAppealRefundInstruction, "parseClaimAppealRefundInstruction");
|
|
1980
1986
|
|
|
1981
|
-
// src/generated/instructions/
|
|
1987
|
+
// src/generated/instructions/claimFilingBounty.ts
|
|
1982
1988
|
import {
|
|
1983
1989
|
combineCodec as combineCodec18,
|
|
1984
1990
|
fixDecoderSize as fixDecoderSize12,
|
|
1985
1991
|
fixEncoderSize as fixEncoderSize13,
|
|
1992
|
+
getAddressEncoder as getAddressEncoder19,
|
|
1986
1993
|
getBytesDecoder as getBytesDecoder12,
|
|
1987
1994
|
getBytesEncoder as getBytesEncoder20,
|
|
1995
|
+
getProgramDerivedAddress as getProgramDerivedAddress12,
|
|
1988
1996
|
getStructDecoder as getStructDecoder15,
|
|
1989
1997
|
getStructEncoder as getStructEncoder15,
|
|
1990
1998
|
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS4,
|
|
@@ -1992,7 +2000,193 @@ import {
|
|
|
1992
2000
|
transformEncoder as transformEncoder11
|
|
1993
2001
|
} from "@solana/kit";
|
|
1994
2002
|
import {
|
|
1995
|
-
getAccountMetaFactory as getAccountMetaFactory4
|
|
2003
|
+
getAccountMetaFactory as getAccountMetaFactory4,
|
|
2004
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount4
|
|
2005
|
+
} from "@solana/kit/program-client-core";
|
|
2006
|
+
var CLAIM_FILING_BOUNTY_DISCRIMINATOR = new Uint8Array([0, 179, 28, 122, 171, 246, 12, 132]);
|
|
2007
|
+
function getClaimFilingBountyInstructionDataEncoder() {
|
|
2008
|
+
return transformEncoder11(
|
|
2009
|
+
getStructEncoder15([["discriminator", fixEncoderSize13(getBytesEncoder20(), 8)]]),
|
|
2010
|
+
(value) => ({ ...value, discriminator: CLAIM_FILING_BOUNTY_DISCRIMINATOR })
|
|
2011
|
+
);
|
|
2012
|
+
}
|
|
2013
|
+
__name(getClaimFilingBountyInstructionDataEncoder, "getClaimFilingBountyInstructionDataEncoder");
|
|
2014
|
+
function getClaimFilingBountyInstructionDataDecoder() {
|
|
2015
|
+
return getStructDecoder15([
|
|
2016
|
+
["discriminator", fixDecoderSize12(getBytesDecoder12(), 8)]
|
|
2017
|
+
]);
|
|
2018
|
+
}
|
|
2019
|
+
__name(getClaimFilingBountyInstructionDataDecoder, "getClaimFilingBountyInstructionDataDecoder");
|
|
2020
|
+
async function getClaimFilingBountyInstructionAsync(input, config) {
|
|
2021
|
+
const programAddress = config?.programAddress ?? ACCORD_PROGRAM_ADDRESS;
|
|
2022
|
+
const originalAccounts = {
|
|
2023
|
+
caller: { value: input.caller ?? null, isWritable: false },
|
|
2024
|
+
subaccord: { value: input.subaccord ?? null, isWritable: true },
|
|
2025
|
+
dispute: { value: input.dispute ?? null, isWritable: true },
|
|
2026
|
+
feeToken: { value: input.feeToken ?? null, isWritable: false },
|
|
2027
|
+
filerTokenAccount: {
|
|
2028
|
+
value: input.filerTokenAccount ?? null,
|
|
2029
|
+
isWritable: true
|
|
2030
|
+
},
|
|
2031
|
+
feeVault: { value: input.feeVault ?? null, isWritable: true },
|
|
2032
|
+
tokenProgram: { value: input.tokenProgram ?? null, isWritable: false }
|
|
2033
|
+
};
|
|
2034
|
+
const accounts = originalAccounts;
|
|
2035
|
+
if (!accounts.feeVault.value) {
|
|
2036
|
+
accounts.feeVault.value = await getProgramDerivedAddress12({
|
|
2037
|
+
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
2038
|
+
seeds: [
|
|
2039
|
+
getAddressEncoder19().encode(
|
|
2040
|
+
getAddressFromResolvedInstructionAccount4(
|
|
2041
|
+
"subaccord",
|
|
2042
|
+
accounts.subaccord.value
|
|
2043
|
+
)
|
|
2044
|
+
),
|
|
2045
|
+
getBytesEncoder20().encode(
|
|
2046
|
+
new Uint8Array([
|
|
2047
|
+
6,
|
|
2048
|
+
221,
|
|
2049
|
+
246,
|
|
2050
|
+
225,
|
|
2051
|
+
215,
|
|
2052
|
+
101,
|
|
2053
|
+
161,
|
|
2054
|
+
147,
|
|
2055
|
+
217,
|
|
2056
|
+
203,
|
|
2057
|
+
225,
|
|
2058
|
+
70,
|
|
2059
|
+
206,
|
|
2060
|
+
235,
|
|
2061
|
+
121,
|
|
2062
|
+
172,
|
|
2063
|
+
28,
|
|
2064
|
+
180,
|
|
2065
|
+
133,
|
|
2066
|
+
237,
|
|
2067
|
+
95,
|
|
2068
|
+
91,
|
|
2069
|
+
55,
|
|
2070
|
+
145,
|
|
2071
|
+
58,
|
|
2072
|
+
140,
|
|
2073
|
+
245,
|
|
2074
|
+
133,
|
|
2075
|
+
126,
|
|
2076
|
+
255,
|
|
2077
|
+
0,
|
|
2078
|
+
169
|
|
2079
|
+
])
|
|
2080
|
+
),
|
|
2081
|
+
getAddressEncoder19().encode(
|
|
2082
|
+
getAddressFromResolvedInstructionAccount4(
|
|
2083
|
+
"feeToken",
|
|
2084
|
+
accounts.feeToken.value
|
|
2085
|
+
)
|
|
2086
|
+
)
|
|
2087
|
+
]
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
if (!accounts.tokenProgram.value) {
|
|
2091
|
+
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
2092
|
+
}
|
|
2093
|
+
const getAccountMeta = getAccountMetaFactory4(programAddress, "programId");
|
|
2094
|
+
return Object.freeze({
|
|
2095
|
+
accounts: [
|
|
2096
|
+
getAccountMeta("caller", accounts.caller),
|
|
2097
|
+
getAccountMeta("subaccord", accounts.subaccord),
|
|
2098
|
+
getAccountMeta("dispute", accounts.dispute),
|
|
2099
|
+
getAccountMeta("feeToken", accounts.feeToken),
|
|
2100
|
+
getAccountMeta("filerTokenAccount", accounts.filerTokenAccount),
|
|
2101
|
+
getAccountMeta("feeVault", accounts.feeVault),
|
|
2102
|
+
getAccountMeta("tokenProgram", accounts.tokenProgram)
|
|
2103
|
+
],
|
|
2104
|
+
data: getClaimFilingBountyInstructionDataEncoder().encode({}),
|
|
2105
|
+
programAddress
|
|
2106
|
+
});
|
|
2107
|
+
}
|
|
2108
|
+
__name(getClaimFilingBountyInstructionAsync, "getClaimFilingBountyInstructionAsync");
|
|
2109
|
+
function getClaimFilingBountyInstruction(input, config) {
|
|
2110
|
+
const programAddress = config?.programAddress ?? ACCORD_PROGRAM_ADDRESS;
|
|
2111
|
+
const originalAccounts = {
|
|
2112
|
+
caller: { value: input.caller ?? null, isWritable: false },
|
|
2113
|
+
subaccord: { value: input.subaccord ?? null, isWritable: true },
|
|
2114
|
+
dispute: { value: input.dispute ?? null, isWritable: true },
|
|
2115
|
+
feeToken: { value: input.feeToken ?? null, isWritable: false },
|
|
2116
|
+
filerTokenAccount: {
|
|
2117
|
+
value: input.filerTokenAccount ?? null,
|
|
2118
|
+
isWritable: true
|
|
2119
|
+
},
|
|
2120
|
+
feeVault: { value: input.feeVault ?? null, isWritable: true },
|
|
2121
|
+
tokenProgram: { value: input.tokenProgram ?? null, isWritable: false }
|
|
2122
|
+
};
|
|
2123
|
+
const accounts = originalAccounts;
|
|
2124
|
+
if (!accounts.tokenProgram.value) {
|
|
2125
|
+
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
2126
|
+
}
|
|
2127
|
+
const getAccountMeta = getAccountMetaFactory4(programAddress, "programId");
|
|
2128
|
+
return Object.freeze({
|
|
2129
|
+
accounts: [
|
|
2130
|
+
getAccountMeta("caller", accounts.caller),
|
|
2131
|
+
getAccountMeta("subaccord", accounts.subaccord),
|
|
2132
|
+
getAccountMeta("dispute", accounts.dispute),
|
|
2133
|
+
getAccountMeta("feeToken", accounts.feeToken),
|
|
2134
|
+
getAccountMeta("filerTokenAccount", accounts.filerTokenAccount),
|
|
2135
|
+
getAccountMeta("feeVault", accounts.feeVault),
|
|
2136
|
+
getAccountMeta("tokenProgram", accounts.tokenProgram)
|
|
2137
|
+
],
|
|
2138
|
+
data: getClaimFilingBountyInstructionDataEncoder().encode({}),
|
|
2139
|
+
programAddress
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2142
|
+
__name(getClaimFilingBountyInstruction, "getClaimFilingBountyInstruction");
|
|
2143
|
+
function parseClaimFilingBountyInstruction(instruction) {
|
|
2144
|
+
if (instruction.accounts.length < 7) {
|
|
2145
|
+
throw new SolanaError4(
|
|
2146
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS4,
|
|
2147
|
+
{
|
|
2148
|
+
actualAccountMetas: instruction.accounts.length,
|
|
2149
|
+
expectedAccountMetas: 7
|
|
2150
|
+
}
|
|
2151
|
+
);
|
|
2152
|
+
}
|
|
2153
|
+
let accountIndex = 0;
|
|
2154
|
+
const getNextAccount = /* @__PURE__ */ __name(() => {
|
|
2155
|
+
const accountMeta = instruction.accounts[accountIndex];
|
|
2156
|
+
accountIndex += 1;
|
|
2157
|
+
return accountMeta;
|
|
2158
|
+
}, "getNextAccount");
|
|
2159
|
+
return {
|
|
2160
|
+
programAddress: instruction.programAddress,
|
|
2161
|
+
accounts: {
|
|
2162
|
+
caller: getNextAccount(),
|
|
2163
|
+
subaccord: getNextAccount(),
|
|
2164
|
+
dispute: getNextAccount(),
|
|
2165
|
+
feeToken: getNextAccount(),
|
|
2166
|
+
filerTokenAccount: getNextAccount(),
|
|
2167
|
+
feeVault: getNextAccount(),
|
|
2168
|
+
tokenProgram: getNextAccount()
|
|
2169
|
+
},
|
|
2170
|
+
data: getClaimFilingBountyInstructionDataDecoder().decode(instruction.data)
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
__name(parseClaimFilingBountyInstruction, "parseClaimFilingBountyInstruction");
|
|
2174
|
+
|
|
2175
|
+
// src/generated/instructions/commit.ts
|
|
2176
|
+
import {
|
|
2177
|
+
combineCodec as combineCodec19,
|
|
2178
|
+
fixDecoderSize as fixDecoderSize13,
|
|
2179
|
+
fixEncoderSize as fixEncoderSize14,
|
|
2180
|
+
getBytesDecoder as getBytesDecoder13,
|
|
2181
|
+
getBytesEncoder as getBytesEncoder21,
|
|
2182
|
+
getStructDecoder as getStructDecoder16,
|
|
2183
|
+
getStructEncoder as getStructEncoder16,
|
|
2184
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS5,
|
|
2185
|
+
SolanaError as SolanaError5,
|
|
2186
|
+
transformEncoder as transformEncoder12
|
|
2187
|
+
} from "@solana/kit";
|
|
2188
|
+
import {
|
|
2189
|
+
getAccountMetaFactory as getAccountMetaFactory5
|
|
1996
2190
|
} from "@solana/kit/program-client-core";
|
|
1997
2191
|
var COMMIT_DISCRIMINATOR = new Uint8Array([
|
|
1998
2192
|
223,
|
|
@@ -2005,19 +2199,19 @@ var COMMIT_DISCRIMINATOR = new Uint8Array([
|
|
|
2005
2199
|
74
|
|
2006
2200
|
]);
|
|
2007
2201
|
function getCommitInstructionDataEncoder() {
|
|
2008
|
-
return
|
|
2009
|
-
|
|
2010
|
-
["discriminator",
|
|
2011
|
-
["commitment",
|
|
2202
|
+
return transformEncoder12(
|
|
2203
|
+
getStructEncoder16([
|
|
2204
|
+
["discriminator", fixEncoderSize14(getBytesEncoder21(), 8)],
|
|
2205
|
+
["commitment", fixEncoderSize14(getBytesEncoder21(), 32)]
|
|
2012
2206
|
]),
|
|
2013
2207
|
(value) => ({ ...value, discriminator: COMMIT_DISCRIMINATOR })
|
|
2014
2208
|
);
|
|
2015
2209
|
}
|
|
2016
2210
|
__name(getCommitInstructionDataEncoder, "getCommitInstructionDataEncoder");
|
|
2017
2211
|
function getCommitInstructionDataDecoder() {
|
|
2018
|
-
return
|
|
2019
|
-
["discriminator",
|
|
2020
|
-
["commitment",
|
|
2212
|
+
return getStructDecoder16([
|
|
2213
|
+
["discriminator", fixDecoderSize13(getBytesDecoder13(), 8)],
|
|
2214
|
+
["commitment", fixDecoderSize13(getBytesDecoder13(), 32)]
|
|
2021
2215
|
]);
|
|
2022
2216
|
}
|
|
2023
2217
|
__name(getCommitInstructionDataDecoder, "getCommitInstructionDataDecoder");
|
|
@@ -2031,7 +2225,7 @@ function getCommitInstruction(input, config) {
|
|
|
2031
2225
|
};
|
|
2032
2226
|
const accounts = originalAccounts;
|
|
2033
2227
|
const args = { ...input };
|
|
2034
|
-
const getAccountMeta =
|
|
2228
|
+
const getAccountMeta = getAccountMetaFactory5(programAddress, "programId");
|
|
2035
2229
|
return Object.freeze({
|
|
2036
2230
|
accounts: [
|
|
2037
2231
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -2048,8 +2242,8 @@ function getCommitInstruction(input, config) {
|
|
|
2048
2242
|
__name(getCommitInstruction, "getCommitInstruction");
|
|
2049
2243
|
function parseCommitInstruction(instruction) {
|
|
2050
2244
|
if (instruction.accounts.length < 4) {
|
|
2051
|
-
throw new
|
|
2052
|
-
|
|
2245
|
+
throw new SolanaError5(
|
|
2246
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS5,
|
|
2053
2247
|
{
|
|
2054
2248
|
actualAccountMetas: instruction.accounts.length,
|
|
2055
2249
|
expectedAccountMetas: 4
|
|
@@ -2077,35 +2271,35 @@ __name(parseCommitInstruction, "parseCommitInstruction");
|
|
|
2077
2271
|
|
|
2078
2272
|
// src/generated/instructions/commitVrfCallback.ts
|
|
2079
2273
|
import {
|
|
2080
|
-
combineCodec as
|
|
2081
|
-
fixDecoderSize as
|
|
2082
|
-
fixEncoderSize as
|
|
2083
|
-
getBytesDecoder as
|
|
2084
|
-
getBytesEncoder as
|
|
2085
|
-
getStructDecoder as
|
|
2086
|
-
getStructEncoder as
|
|
2087
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2088
|
-
SolanaError as
|
|
2089
|
-
transformEncoder as
|
|
2274
|
+
combineCodec as combineCodec20,
|
|
2275
|
+
fixDecoderSize as fixDecoderSize14,
|
|
2276
|
+
fixEncoderSize as fixEncoderSize15,
|
|
2277
|
+
getBytesDecoder as getBytesDecoder14,
|
|
2278
|
+
getBytesEncoder as getBytesEncoder22,
|
|
2279
|
+
getStructDecoder as getStructDecoder17,
|
|
2280
|
+
getStructEncoder as getStructEncoder17,
|
|
2281
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS6,
|
|
2282
|
+
SolanaError as SolanaError6,
|
|
2283
|
+
transformEncoder as transformEncoder13
|
|
2090
2284
|
} from "@solana/kit";
|
|
2091
2285
|
import {
|
|
2092
|
-
getAccountMetaFactory as
|
|
2286
|
+
getAccountMetaFactory as getAccountMetaFactory6
|
|
2093
2287
|
} from "@solana/kit/program-client-core";
|
|
2094
2288
|
var COMMIT_VRF_CALLBACK_DISCRIMINATOR = new Uint8Array([51, 127, 131, 85, 83, 117, 121, 59]);
|
|
2095
2289
|
function getCommitVrfCallbackInstructionDataEncoder() {
|
|
2096
|
-
return
|
|
2097
|
-
|
|
2098
|
-
["discriminator",
|
|
2099
|
-
["randomness",
|
|
2290
|
+
return transformEncoder13(
|
|
2291
|
+
getStructEncoder17([
|
|
2292
|
+
["discriminator", fixEncoderSize15(getBytesEncoder22(), 8)],
|
|
2293
|
+
["randomness", fixEncoderSize15(getBytesEncoder22(), 32)]
|
|
2100
2294
|
]),
|
|
2101
2295
|
(value) => ({ ...value, discriminator: COMMIT_VRF_CALLBACK_DISCRIMINATOR })
|
|
2102
2296
|
);
|
|
2103
2297
|
}
|
|
2104
2298
|
__name(getCommitVrfCallbackInstructionDataEncoder, "getCommitVrfCallbackInstructionDataEncoder");
|
|
2105
2299
|
function getCommitVrfCallbackInstructionDataDecoder() {
|
|
2106
|
-
return
|
|
2107
|
-
["discriminator",
|
|
2108
|
-
["randomness",
|
|
2300
|
+
return getStructDecoder17([
|
|
2301
|
+
["discriminator", fixDecoderSize14(getBytesDecoder14(), 8)],
|
|
2302
|
+
["randomness", fixDecoderSize14(getBytesDecoder14(), 32)]
|
|
2109
2303
|
]);
|
|
2110
2304
|
}
|
|
2111
2305
|
__name(getCommitVrfCallbackInstructionDataDecoder, "getCommitVrfCallbackInstructionDataDecoder");
|
|
@@ -2121,7 +2315,7 @@ function getCommitVrfCallbackInstruction(input, config) {
|
|
|
2121
2315
|
};
|
|
2122
2316
|
const accounts = originalAccounts;
|
|
2123
2317
|
const args = { ...input };
|
|
2124
|
-
const getAccountMeta =
|
|
2318
|
+
const getAccountMeta = getAccountMetaFactory6(programAddress, "programId");
|
|
2125
2319
|
return Object.freeze({
|
|
2126
2320
|
accounts: [
|
|
2127
2321
|
getAccountMeta("vrfProgramIdentity", accounts.vrfProgramIdentity),
|
|
@@ -2137,8 +2331,8 @@ function getCommitVrfCallbackInstruction(input, config) {
|
|
|
2137
2331
|
__name(getCommitVrfCallbackInstruction, "getCommitVrfCallbackInstruction");
|
|
2138
2332
|
function parseCommitVrfCallbackInstruction(instruction) {
|
|
2139
2333
|
if (instruction.accounts.length < 3) {
|
|
2140
|
-
throw new
|
|
2141
|
-
|
|
2334
|
+
throw new SolanaError6(
|
|
2335
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS6,
|
|
2142
2336
|
{
|
|
2143
2337
|
actualAccountMetas: instruction.accounts.length,
|
|
2144
2338
|
expectedAccountMetas: 3
|
|
@@ -2165,26 +2359,26 @@ __name(parseCommitVrfCallbackInstruction, "parseCommitVrfCallbackInstruction");
|
|
|
2165
2359
|
|
|
2166
2360
|
// src/generated/instructions/createDispute.ts
|
|
2167
2361
|
import {
|
|
2168
|
-
combineCodec as
|
|
2169
|
-
fixDecoderSize as
|
|
2170
|
-
fixEncoderSize as
|
|
2171
|
-
getAddressEncoder as
|
|
2362
|
+
combineCodec as combineCodec21,
|
|
2363
|
+
fixDecoderSize as fixDecoderSize15,
|
|
2364
|
+
fixEncoderSize as fixEncoderSize16,
|
|
2365
|
+
getAddressEncoder as getAddressEncoder20,
|
|
2172
2366
|
getArrayDecoder as getArrayDecoder3,
|
|
2173
2367
|
getArrayEncoder as getArrayEncoder3,
|
|
2174
|
-
getBytesDecoder as
|
|
2175
|
-
getBytesEncoder as
|
|
2176
|
-
getProgramDerivedAddress as
|
|
2177
|
-
getStructDecoder as
|
|
2178
|
-
getStructEncoder as
|
|
2368
|
+
getBytesDecoder as getBytesDecoder15,
|
|
2369
|
+
getBytesEncoder as getBytesEncoder23,
|
|
2370
|
+
getProgramDerivedAddress as getProgramDerivedAddress13,
|
|
2371
|
+
getStructDecoder as getStructDecoder18,
|
|
2372
|
+
getStructEncoder as getStructEncoder18,
|
|
2179
2373
|
getU64Decoder as getU64Decoder12,
|
|
2180
2374
|
getU64Encoder as getU64Encoder14,
|
|
2181
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2182
|
-
SolanaError as
|
|
2183
|
-
transformEncoder as
|
|
2375
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS7,
|
|
2376
|
+
SolanaError as SolanaError7,
|
|
2377
|
+
transformEncoder as transformEncoder14
|
|
2184
2378
|
} from "@solana/kit";
|
|
2185
2379
|
import {
|
|
2186
|
-
getAccountMetaFactory as
|
|
2187
|
-
getAddressFromResolvedInstructionAccount as
|
|
2380
|
+
getAccountMetaFactory as getAccountMetaFactory7,
|
|
2381
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount5,
|
|
2188
2382
|
getNonNullResolvedInstructionInput as getNonNullResolvedInstructionInput2
|
|
2189
2383
|
} from "@solana/kit/program-client-core";
|
|
2190
2384
|
var CREATE_DISPUTE_DISCRIMINATOR = new Uint8Array([
|
|
@@ -2198,11 +2392,11 @@ var CREATE_DISPUTE_DISCRIMINATOR = new Uint8Array([
|
|
|
2198
2392
|
105
|
|
2199
2393
|
]);
|
|
2200
2394
|
function getCreateDisputeInstructionDataEncoder() {
|
|
2201
|
-
return
|
|
2202
|
-
|
|
2203
|
-
["discriminator",
|
|
2204
|
-
["options", getArrayEncoder3(
|
|
2205
|
-
["evidenceHash",
|
|
2395
|
+
return transformEncoder14(
|
|
2396
|
+
getStructEncoder18([
|
|
2397
|
+
["discriminator", fixEncoderSize16(getBytesEncoder23(), 8)],
|
|
2398
|
+
["options", getArrayEncoder3(fixEncoderSize16(getBytesEncoder23(), 32))],
|
|
2399
|
+
["evidenceHash", fixEncoderSize16(getBytesEncoder23(), 32)],
|
|
2206
2400
|
["nonce", getU64Encoder14()],
|
|
2207
2401
|
["fee", getU64Encoder14()]
|
|
2208
2402
|
]),
|
|
@@ -2211,11 +2405,11 @@ function getCreateDisputeInstructionDataEncoder() {
|
|
|
2211
2405
|
}
|
|
2212
2406
|
__name(getCreateDisputeInstructionDataEncoder, "getCreateDisputeInstructionDataEncoder");
|
|
2213
2407
|
function getCreateDisputeInstructionDataDecoder() {
|
|
2214
|
-
return
|
|
2215
|
-
["discriminator",
|
|
2216
|
-
["options", getArrayDecoder3(
|
|
2217
|
-
["evidenceHash",
|
|
2218
|
-
["nonce", getU64Decoder12()],
|
|
2408
|
+
return getStructDecoder18([
|
|
2409
|
+
["discriminator", fixDecoderSize15(getBytesDecoder15(), 8)],
|
|
2410
|
+
["options", getArrayDecoder3(fixDecoderSize15(getBytesDecoder15(), 32))],
|
|
2411
|
+
["evidenceHash", fixDecoderSize15(getBytesDecoder15(), 32)],
|
|
2412
|
+
["nonce", getU64Decoder12()],
|
|
2219
2413
|
["fee", getU64Decoder12()]
|
|
2220
2414
|
]);
|
|
2221
2415
|
}
|
|
@@ -2248,7 +2442,7 @@ async function getCreateDisputeInstructionAsync(input, config) {
|
|
|
2248
2442
|
}
|
|
2249
2443
|
if (!accounts.dispute.value) {
|
|
2250
2444
|
accounts.dispute.value = await findDisputePda({
|
|
2251
|
-
filer:
|
|
2445
|
+
filer: getAddressFromResolvedInstructionAccount5(
|
|
2252
2446
|
"filer",
|
|
2253
2447
|
accounts.filer.value
|
|
2254
2448
|
),
|
|
@@ -2256,16 +2450,16 @@ async function getCreateDisputeInstructionAsync(input, config) {
|
|
|
2256
2450
|
});
|
|
2257
2451
|
}
|
|
2258
2452
|
if (!accounts.filerTokenAccount.value) {
|
|
2259
|
-
accounts.filerTokenAccount.value = await
|
|
2453
|
+
accounts.filerTokenAccount.value = await getProgramDerivedAddress13({
|
|
2260
2454
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
2261
2455
|
seeds: [
|
|
2262
|
-
|
|
2263
|
-
|
|
2456
|
+
getAddressEncoder20().encode(
|
|
2457
|
+
getAddressFromResolvedInstructionAccount5(
|
|
2264
2458
|
"filer",
|
|
2265
2459
|
accounts.filer.value
|
|
2266
2460
|
)
|
|
2267
2461
|
),
|
|
2268
|
-
|
|
2462
|
+
getBytesEncoder23().encode(
|
|
2269
2463
|
new Uint8Array([
|
|
2270
2464
|
6,
|
|
2271
2465
|
221,
|
|
@@ -2301,8 +2495,8 @@ async function getCreateDisputeInstructionAsync(input, config) {
|
|
|
2301
2495
|
169
|
|
2302
2496
|
])
|
|
2303
2497
|
),
|
|
2304
|
-
|
|
2305
|
-
|
|
2498
|
+
getAddressEncoder20().encode(
|
|
2499
|
+
getAddressFromResolvedInstructionAccount5(
|
|
2306
2500
|
"feeToken",
|
|
2307
2501
|
accounts.feeToken.value
|
|
2308
2502
|
)
|
|
@@ -2311,16 +2505,16 @@ async function getCreateDisputeInstructionAsync(input, config) {
|
|
|
2311
2505
|
});
|
|
2312
2506
|
}
|
|
2313
2507
|
if (!accounts.feeVault.value) {
|
|
2314
|
-
accounts.feeVault.value = await
|
|
2508
|
+
accounts.feeVault.value = await getProgramDerivedAddress13({
|
|
2315
2509
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
2316
2510
|
seeds: [
|
|
2317
|
-
|
|
2318
|
-
|
|
2511
|
+
getAddressEncoder20().encode(
|
|
2512
|
+
getAddressFromResolvedInstructionAccount5(
|
|
2319
2513
|
"subaccord",
|
|
2320
2514
|
accounts.subaccord.value
|
|
2321
2515
|
)
|
|
2322
2516
|
),
|
|
2323
|
-
|
|
2517
|
+
getBytesEncoder23().encode(
|
|
2324
2518
|
new Uint8Array([
|
|
2325
2519
|
6,
|
|
2326
2520
|
221,
|
|
@@ -2356,8 +2550,8 @@ async function getCreateDisputeInstructionAsync(input, config) {
|
|
|
2356
2550
|
169
|
|
2357
2551
|
])
|
|
2358
2552
|
),
|
|
2359
|
-
|
|
2360
|
-
|
|
2553
|
+
getAddressEncoder20().encode(
|
|
2554
|
+
getAddressFromResolvedInstructionAccount5(
|
|
2361
2555
|
"feeToken",
|
|
2362
2556
|
accounts.feeToken.value
|
|
2363
2557
|
)
|
|
@@ -2374,7 +2568,7 @@ async function getCreateDisputeInstructionAsync(input, config) {
|
|
|
2374
2568
|
if (!accounts.systemProgram.value) {
|
|
2375
2569
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
2376
2570
|
}
|
|
2377
|
-
const getAccountMeta =
|
|
2571
|
+
const getAccountMeta = getAccountMetaFactory7(programAddress, "programId");
|
|
2378
2572
|
return Object.freeze({
|
|
2379
2573
|
accounts: [
|
|
2380
2574
|
getAccountMeta("filer", accounts.filer),
|
|
@@ -2428,7 +2622,7 @@ function getCreateDisputeInstruction(input, config) {
|
|
|
2428
2622
|
if (!accounts.systemProgram.value) {
|
|
2429
2623
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
2430
2624
|
}
|
|
2431
|
-
const getAccountMeta =
|
|
2625
|
+
const getAccountMeta = getAccountMetaFactory7(programAddress, "programId");
|
|
2432
2626
|
return Object.freeze({
|
|
2433
2627
|
accounts: [
|
|
2434
2628
|
getAccountMeta("filer", accounts.filer),
|
|
@@ -2452,8 +2646,8 @@ function getCreateDisputeInstruction(input, config) {
|
|
|
2452
2646
|
__name(getCreateDisputeInstruction, "getCreateDisputeInstruction");
|
|
2453
2647
|
function parseCreateDisputeInstruction(instruction) {
|
|
2454
2648
|
if (instruction.accounts.length < 11) {
|
|
2455
|
-
throw new
|
|
2456
|
-
|
|
2649
|
+
throw new SolanaError7(
|
|
2650
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS7,
|
|
2457
2651
|
{
|
|
2458
2652
|
actualAccountMetas: instruction.accounts.length,
|
|
2459
2653
|
expectedAccountMetas: 11
|
|
@@ -2488,15 +2682,15 @@ __name(parseCreateDisputeInstruction, "parseCreateDisputeInstruction");
|
|
|
2488
2682
|
|
|
2489
2683
|
// src/generated/instructions/createSubaccord.ts
|
|
2490
2684
|
import {
|
|
2491
|
-
combineCodec as
|
|
2492
|
-
fixDecoderSize as
|
|
2493
|
-
fixEncoderSize as
|
|
2685
|
+
combineCodec as combineCodec22,
|
|
2686
|
+
fixDecoderSize as fixDecoderSize16,
|
|
2687
|
+
fixEncoderSize as fixEncoderSize17,
|
|
2494
2688
|
getAddressDecoder as getAddressDecoder10,
|
|
2495
|
-
getAddressEncoder as
|
|
2496
|
-
getBytesDecoder as
|
|
2497
|
-
getBytesEncoder as
|
|
2498
|
-
getStructDecoder as
|
|
2499
|
-
getStructEncoder as
|
|
2689
|
+
getAddressEncoder as getAddressEncoder21,
|
|
2690
|
+
getBytesDecoder as getBytesDecoder16,
|
|
2691
|
+
getBytesEncoder as getBytesEncoder24,
|
|
2692
|
+
getStructDecoder as getStructDecoder19,
|
|
2693
|
+
getStructEncoder as getStructEncoder19,
|
|
2500
2694
|
getU16Decoder as getU16Decoder4,
|
|
2501
2695
|
getU16Encoder as getU16Encoder4,
|
|
2502
2696
|
getU32Decoder as getU32Decoder8,
|
|
@@ -2505,22 +2699,22 @@ import {
|
|
|
2505
2699
|
getU64Encoder as getU64Encoder15,
|
|
2506
2700
|
getU8Decoder as getU8Decoder10,
|
|
2507
2701
|
getU8Encoder as getU8Encoder10,
|
|
2508
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2509
|
-
SolanaError as
|
|
2510
|
-
transformEncoder as
|
|
2702
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS8,
|
|
2703
|
+
SolanaError as SolanaError8,
|
|
2704
|
+
transformEncoder as transformEncoder15
|
|
2511
2705
|
} from "@solana/kit";
|
|
2512
2706
|
import {
|
|
2513
|
-
getAccountMetaFactory as
|
|
2514
|
-
getAddressFromResolvedInstructionAccount as
|
|
2707
|
+
getAccountMetaFactory as getAccountMetaFactory8,
|
|
2708
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount6,
|
|
2515
2709
|
getNonNullResolvedInstructionInput as getNonNullResolvedInstructionInput3
|
|
2516
2710
|
} from "@solana/kit/program-client-core";
|
|
2517
2711
|
var CREATE_SUBACCORD_DISCRIMINATOR = new Uint8Array([135, 240, 91, 50, 192, 161, 177, 22]);
|
|
2518
2712
|
function getCreateSubaccordInstructionDataEncoder() {
|
|
2519
|
-
return
|
|
2520
|
-
|
|
2521
|
-
["discriminator",
|
|
2522
|
-
["domainRef",
|
|
2523
|
-
["evidenceSpec",
|
|
2713
|
+
return transformEncoder15(
|
|
2714
|
+
getStructEncoder19([
|
|
2715
|
+
["discriminator", fixEncoderSize17(getBytesEncoder24(), 8)],
|
|
2716
|
+
["domainRef", fixEncoderSize17(getBytesEncoder24(), 32)],
|
|
2717
|
+
["evidenceSpec", fixEncoderSize17(getBytesEncoder24(), 32)],
|
|
2524
2718
|
["minStake", getU64Encoder15()],
|
|
2525
2719
|
["alphaBps", getU16Encoder4()],
|
|
2526
2720
|
["reviewWindow", getU64Encoder15()],
|
|
@@ -2535,21 +2729,21 @@ function getCreateSubaccordInstructionDataEncoder() {
|
|
|
2535
2729
|
["shortfallPolicy", getShortfallPolicyEncoder()],
|
|
2536
2730
|
["maxDrawAttempts", getU8Encoder10()],
|
|
2537
2731
|
["coherenceTolBps", getU16Encoder4()],
|
|
2538
|
-
["authority",
|
|
2539
|
-
["evidenceOperator",
|
|
2732
|
+
["authority", getAddressEncoder21()],
|
|
2733
|
+
["evidenceOperator", getAddressEncoder21()],
|
|
2540
2734
|
["depth", getU8Encoder10()],
|
|
2541
|
-
["jurorCredential",
|
|
2542
|
-
["jurorSchema",
|
|
2735
|
+
["jurorCredential", getAddressEncoder21()],
|
|
2736
|
+
["jurorSchema", getAddressEncoder21()]
|
|
2543
2737
|
]),
|
|
2544
2738
|
(value) => ({ ...value, discriminator: CREATE_SUBACCORD_DISCRIMINATOR })
|
|
2545
2739
|
);
|
|
2546
2740
|
}
|
|
2547
2741
|
__name(getCreateSubaccordInstructionDataEncoder, "getCreateSubaccordInstructionDataEncoder");
|
|
2548
2742
|
function getCreateSubaccordInstructionDataDecoder() {
|
|
2549
|
-
return
|
|
2550
|
-
["discriminator",
|
|
2551
|
-
["domainRef",
|
|
2552
|
-
["evidenceSpec",
|
|
2743
|
+
return getStructDecoder19([
|
|
2744
|
+
["discriminator", fixDecoderSize16(getBytesDecoder16(), 8)],
|
|
2745
|
+
["domainRef", fixDecoderSize16(getBytesDecoder16(), 32)],
|
|
2746
|
+
["evidenceSpec", fixDecoderSize16(getBytesDecoder16(), 32)],
|
|
2553
2747
|
["minStake", getU64Decoder13()],
|
|
2554
2748
|
["alphaBps", getU16Decoder4()],
|
|
2555
2749
|
["reviewWindow", getU64Decoder13()],
|
|
@@ -2585,7 +2779,7 @@ async function getCreateSubaccordInstructionAsync(input, config) {
|
|
|
2585
2779
|
const args = { ...input };
|
|
2586
2780
|
if (!accounts.subaccord.value) {
|
|
2587
2781
|
accounts.subaccord.value = await findSubaccordPda({
|
|
2588
|
-
creator:
|
|
2782
|
+
creator: getAddressFromResolvedInstructionAccount6(
|
|
2589
2783
|
"creator",
|
|
2590
2784
|
accounts.creator.value
|
|
2591
2785
|
),
|
|
@@ -2598,7 +2792,7 @@ async function getCreateSubaccordInstructionAsync(input, config) {
|
|
|
2598
2792
|
if (!accounts.systemProgram.value) {
|
|
2599
2793
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
2600
2794
|
}
|
|
2601
|
-
const getAccountMeta =
|
|
2795
|
+
const getAccountMeta = getAccountMetaFactory8(programAddress, "programId");
|
|
2602
2796
|
return Object.freeze({
|
|
2603
2797
|
accounts: [
|
|
2604
2798
|
getAccountMeta("creator", accounts.creator),
|
|
@@ -2628,7 +2822,7 @@ function getCreateSubaccordInstruction(input, config) {
|
|
|
2628
2822
|
if (!accounts.systemProgram.value) {
|
|
2629
2823
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
2630
2824
|
}
|
|
2631
|
-
const getAccountMeta =
|
|
2825
|
+
const getAccountMeta = getAccountMetaFactory8(programAddress, "programId");
|
|
2632
2826
|
return Object.freeze({
|
|
2633
2827
|
accounts: [
|
|
2634
2828
|
getAccountMeta("creator", accounts.creator),
|
|
@@ -2646,8 +2840,8 @@ function getCreateSubaccordInstruction(input, config) {
|
|
|
2646
2840
|
__name(getCreateSubaccordInstruction, "getCreateSubaccordInstruction");
|
|
2647
2841
|
function parseCreateSubaccordInstruction(instruction) {
|
|
2648
2842
|
if (instruction.accounts.length < 5) {
|
|
2649
|
-
throw new
|
|
2650
|
-
|
|
2843
|
+
throw new SolanaError8(
|
|
2844
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS8,
|
|
2651
2845
|
{
|
|
2652
2846
|
actualAccountMetas: instruction.accounts.length,
|
|
2653
2847
|
expectedAccountMetas: 5
|
|
@@ -2676,23 +2870,23 @@ __name(parseCreateSubaccordInstruction, "parseCreateSubaccordInstruction");
|
|
|
2676
2870
|
|
|
2677
2871
|
// src/generated/instructions/drawSeat.ts
|
|
2678
2872
|
import {
|
|
2679
|
-
combineCodec as
|
|
2680
|
-
fixDecoderSize as
|
|
2681
|
-
fixEncoderSize as
|
|
2873
|
+
combineCodec as combineCodec23,
|
|
2874
|
+
fixDecoderSize as fixDecoderSize17,
|
|
2875
|
+
fixEncoderSize as fixEncoderSize18,
|
|
2682
2876
|
getArrayDecoder as getArrayDecoder4,
|
|
2683
2877
|
getArrayEncoder as getArrayEncoder4,
|
|
2684
|
-
getBytesDecoder as
|
|
2685
|
-
getBytesEncoder as
|
|
2686
|
-
getStructDecoder as
|
|
2687
|
-
getStructEncoder as
|
|
2878
|
+
getBytesDecoder as getBytesDecoder17,
|
|
2879
|
+
getBytesEncoder as getBytesEncoder25,
|
|
2880
|
+
getStructDecoder as getStructDecoder20,
|
|
2881
|
+
getStructEncoder as getStructEncoder20,
|
|
2688
2882
|
getU32Decoder as getU32Decoder9,
|
|
2689
2883
|
getU32Encoder as getU32Encoder11,
|
|
2690
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2691
|
-
SolanaError as
|
|
2692
|
-
transformEncoder as
|
|
2884
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS9,
|
|
2885
|
+
SolanaError as SolanaError9,
|
|
2886
|
+
transformEncoder as transformEncoder16
|
|
2693
2887
|
} from "@solana/kit";
|
|
2694
2888
|
import {
|
|
2695
|
-
getAccountMetaFactory as
|
|
2889
|
+
getAccountMetaFactory as getAccountMetaFactory9
|
|
2696
2890
|
} from "@solana/kit/program-client-core";
|
|
2697
2891
|
var DRAW_SEAT_DISCRIMINATOR = new Uint8Array([
|
|
2698
2892
|
52,
|
|
@@ -2705,9 +2899,9 @@ var DRAW_SEAT_DISCRIMINATOR = new Uint8Array([
|
|
|
2705
2899
|
236
|
|
2706
2900
|
]);
|
|
2707
2901
|
function getDrawSeatInstructionDataEncoder() {
|
|
2708
|
-
return
|
|
2709
|
-
|
|
2710
|
-
["discriminator",
|
|
2902
|
+
return transformEncoder16(
|
|
2903
|
+
getStructEncoder20([
|
|
2904
|
+
["discriminator", fixEncoderSize18(getBytesEncoder25(), 8)],
|
|
2711
2905
|
["seat", getU32Encoder11()],
|
|
2712
2906
|
["retries", getU32Encoder11()],
|
|
2713
2907
|
["leaf", getLeafClaimEncoder()],
|
|
@@ -2719,8 +2913,8 @@ function getDrawSeatInstructionDataEncoder() {
|
|
|
2719
2913
|
}
|
|
2720
2914
|
__name(getDrawSeatInstructionDataEncoder, "getDrawSeatInstructionDataEncoder");
|
|
2721
2915
|
function getDrawSeatInstructionDataDecoder() {
|
|
2722
|
-
return
|
|
2723
|
-
["discriminator",
|
|
2916
|
+
return getStructDecoder20([
|
|
2917
|
+
["discriminator", fixDecoderSize17(getBytesDecoder17(), 8)],
|
|
2724
2918
|
["seat", getU32Decoder9()],
|
|
2725
2919
|
["retries", getU32Decoder9()],
|
|
2726
2920
|
["leaf", getLeafClaimDecoder()],
|
|
@@ -2743,7 +2937,7 @@ function getDrawSeatInstruction(input, config) {
|
|
|
2743
2937
|
if (!accounts.systemProgram.value) {
|
|
2744
2938
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
2745
2939
|
}
|
|
2746
|
-
const getAccountMeta =
|
|
2940
|
+
const getAccountMeta = getAccountMetaFactory9(programAddress, "programId");
|
|
2747
2941
|
return Object.freeze({
|
|
2748
2942
|
accounts: [
|
|
2749
2943
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -2761,8 +2955,8 @@ function getDrawSeatInstruction(input, config) {
|
|
|
2761
2955
|
__name(getDrawSeatInstruction, "getDrawSeatInstruction");
|
|
2762
2956
|
function parseDrawSeatInstruction(instruction) {
|
|
2763
2957
|
if (instruction.accounts.length < 5) {
|
|
2764
|
-
throw new
|
|
2765
|
-
|
|
2958
|
+
throw new SolanaError9(
|
|
2959
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS9,
|
|
2766
2960
|
{
|
|
2767
2961
|
actualAccountMetas: instruction.accounts.length,
|
|
2768
2962
|
expectedAccountMetas: 5
|
|
@@ -2791,24 +2985,24 @@ __name(parseDrawSeatInstruction, "parseDrawSeatInstruction");
|
|
|
2791
2985
|
|
|
2792
2986
|
// src/generated/instructions/executeSubaccordUpdate.ts
|
|
2793
2987
|
import {
|
|
2794
|
-
combineCodec as
|
|
2795
|
-
fixDecoderSize as
|
|
2796
|
-
fixEncoderSize as
|
|
2797
|
-
getBytesDecoder as
|
|
2798
|
-
getBytesEncoder as
|
|
2799
|
-
getStructDecoder as
|
|
2800
|
-
getStructEncoder as
|
|
2801
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2802
|
-
SolanaError as
|
|
2803
|
-
transformEncoder as
|
|
2988
|
+
combineCodec as combineCodec24,
|
|
2989
|
+
fixDecoderSize as fixDecoderSize18,
|
|
2990
|
+
fixEncoderSize as fixEncoderSize19,
|
|
2991
|
+
getBytesDecoder as getBytesDecoder18,
|
|
2992
|
+
getBytesEncoder as getBytesEncoder26,
|
|
2993
|
+
getStructDecoder as getStructDecoder21,
|
|
2994
|
+
getStructEncoder as getStructEncoder21,
|
|
2995
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS10,
|
|
2996
|
+
SolanaError as SolanaError10,
|
|
2997
|
+
transformEncoder as transformEncoder17
|
|
2804
2998
|
} from "@solana/kit";
|
|
2805
2999
|
import {
|
|
2806
|
-
getAccountMetaFactory as
|
|
3000
|
+
getAccountMetaFactory as getAccountMetaFactory10
|
|
2807
3001
|
} from "@solana/kit/program-client-core";
|
|
2808
3002
|
var EXECUTE_SUBACCORD_UPDATE_DISCRIMINATOR = new Uint8Array([145, 99, 105, 27, 63, 159, 254, 203]);
|
|
2809
3003
|
function getExecuteSubaccordUpdateInstructionDataEncoder() {
|
|
2810
|
-
return
|
|
2811
|
-
|
|
3004
|
+
return transformEncoder17(
|
|
3005
|
+
getStructEncoder21([["discriminator", fixEncoderSize19(getBytesEncoder26(), 8)]]),
|
|
2812
3006
|
(value) => ({
|
|
2813
3007
|
...value,
|
|
2814
3008
|
discriminator: EXECUTE_SUBACCORD_UPDATE_DISCRIMINATOR
|
|
@@ -2817,8 +3011,8 @@ function getExecuteSubaccordUpdateInstructionDataEncoder() {
|
|
|
2817
3011
|
}
|
|
2818
3012
|
__name(getExecuteSubaccordUpdateInstructionDataEncoder, "getExecuteSubaccordUpdateInstructionDataEncoder");
|
|
2819
3013
|
function getExecuteSubaccordUpdateInstructionDataDecoder() {
|
|
2820
|
-
return
|
|
2821
|
-
["discriminator",
|
|
3014
|
+
return getStructDecoder21([
|
|
3015
|
+
["discriminator", fixDecoderSize18(getBytesDecoder18(), 8)]
|
|
2822
3016
|
]);
|
|
2823
3017
|
}
|
|
2824
3018
|
__name(getExecuteSubaccordUpdateInstructionDataDecoder, "getExecuteSubaccordUpdateInstructionDataDecoder");
|
|
@@ -2830,7 +3024,7 @@ function getExecuteSubaccordUpdateInstruction(input, config) {
|
|
|
2830
3024
|
pendingUpdate: { value: input.pendingUpdate ?? null, isWritable: true }
|
|
2831
3025
|
};
|
|
2832
3026
|
const accounts = originalAccounts;
|
|
2833
|
-
const getAccountMeta =
|
|
3027
|
+
const getAccountMeta = getAccountMetaFactory10(programAddress, "programId");
|
|
2834
3028
|
return Object.freeze({
|
|
2835
3029
|
accounts: [
|
|
2836
3030
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -2844,8 +3038,8 @@ function getExecuteSubaccordUpdateInstruction(input, config) {
|
|
|
2844
3038
|
__name(getExecuteSubaccordUpdateInstruction, "getExecuteSubaccordUpdateInstruction");
|
|
2845
3039
|
function parseExecuteSubaccordUpdateInstruction(instruction) {
|
|
2846
3040
|
if (instruction.accounts.length < 3) {
|
|
2847
|
-
throw new
|
|
2848
|
-
|
|
3041
|
+
throw new SolanaError10(
|
|
3042
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS10,
|
|
2849
3043
|
{
|
|
2850
3044
|
actualAccountMetas: instruction.accounts.length,
|
|
2851
3045
|
expectedAccountMetas: 3
|
|
@@ -2874,33 +3068,33 @@ __name(parseExecuteSubaccordUpdateInstruction, "parseExecuteSubaccordUpdateInstr
|
|
|
2874
3068
|
|
|
2875
3069
|
// src/generated/instructions/executeUnpause.ts
|
|
2876
3070
|
import {
|
|
2877
|
-
combineCodec as
|
|
2878
|
-
fixDecoderSize as
|
|
2879
|
-
fixEncoderSize as
|
|
2880
|
-
getBytesDecoder as
|
|
2881
|
-
getBytesEncoder as
|
|
2882
|
-
getStructDecoder as
|
|
2883
|
-
getStructEncoder as
|
|
2884
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2885
|
-
SolanaError as
|
|
2886
|
-
transformEncoder as
|
|
3071
|
+
combineCodec as combineCodec25,
|
|
3072
|
+
fixDecoderSize as fixDecoderSize19,
|
|
3073
|
+
fixEncoderSize as fixEncoderSize20,
|
|
3074
|
+
getBytesDecoder as getBytesDecoder19,
|
|
3075
|
+
getBytesEncoder as getBytesEncoder27,
|
|
3076
|
+
getStructDecoder as getStructDecoder22,
|
|
3077
|
+
getStructEncoder as getStructEncoder22,
|
|
3078
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS11,
|
|
3079
|
+
SolanaError as SolanaError11,
|
|
3080
|
+
transformEncoder as transformEncoder18
|
|
2887
3081
|
} from "@solana/kit";
|
|
2888
3082
|
import {
|
|
2889
|
-
getAccountMetaFactory as
|
|
3083
|
+
getAccountMetaFactory as getAccountMetaFactory11
|
|
2890
3084
|
} from "@solana/kit/program-client-core";
|
|
2891
3085
|
var EXECUTE_UNPAUSE_DISCRIMINATOR = new Uint8Array(
|
|
2892
3086
|
[55, 43, 56, 5, 154, 156, 52, 232]
|
|
2893
3087
|
);
|
|
2894
3088
|
function getExecuteUnpauseInstructionDataEncoder() {
|
|
2895
|
-
return
|
|
2896
|
-
|
|
3089
|
+
return transformEncoder18(
|
|
3090
|
+
getStructEncoder22([["discriminator", fixEncoderSize20(getBytesEncoder27(), 8)]]),
|
|
2897
3091
|
(value) => ({ ...value, discriminator: EXECUTE_UNPAUSE_DISCRIMINATOR })
|
|
2898
3092
|
);
|
|
2899
3093
|
}
|
|
2900
3094
|
__name(getExecuteUnpauseInstructionDataEncoder, "getExecuteUnpauseInstructionDataEncoder");
|
|
2901
3095
|
function getExecuteUnpauseInstructionDataDecoder() {
|
|
2902
|
-
return
|
|
2903
|
-
["discriminator",
|
|
3096
|
+
return getStructDecoder22([
|
|
3097
|
+
["discriminator", fixDecoderSize19(getBytesDecoder19(), 8)]
|
|
2904
3098
|
]);
|
|
2905
3099
|
}
|
|
2906
3100
|
__name(getExecuteUnpauseInstructionDataDecoder, "getExecuteUnpauseInstructionDataDecoder");
|
|
@@ -2914,7 +3108,7 @@ async function getExecuteUnpauseInstructionAsync(input, config) {
|
|
|
2914
3108
|
if (!accounts.accordState.value) {
|
|
2915
3109
|
accounts.accordState.value = await findAccordStatePda();
|
|
2916
3110
|
}
|
|
2917
|
-
const getAccountMeta =
|
|
3111
|
+
const getAccountMeta = getAccountMetaFactory11(programAddress, "programId");
|
|
2918
3112
|
return Object.freeze({
|
|
2919
3113
|
accounts: [
|
|
2920
3114
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -2932,7 +3126,7 @@ function getExecuteUnpauseInstruction(input, config) {
|
|
|
2932
3126
|
accordState: { value: input.accordState ?? null, isWritable: true }
|
|
2933
3127
|
};
|
|
2934
3128
|
const accounts = originalAccounts;
|
|
2935
|
-
const getAccountMeta =
|
|
3129
|
+
const getAccountMeta = getAccountMetaFactory11(programAddress, "programId");
|
|
2936
3130
|
return Object.freeze({
|
|
2937
3131
|
accounts: [
|
|
2938
3132
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -2945,8 +3139,8 @@ function getExecuteUnpauseInstruction(input, config) {
|
|
|
2945
3139
|
__name(getExecuteUnpauseInstruction, "getExecuteUnpauseInstruction");
|
|
2946
3140
|
function parseExecuteUnpauseInstruction(instruction) {
|
|
2947
3141
|
if (instruction.accounts.length < 2) {
|
|
2948
|
-
throw new
|
|
2949
|
-
|
|
3142
|
+
throw new SolanaError11(
|
|
3143
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS11,
|
|
2950
3144
|
{
|
|
2951
3145
|
actualAccountMetas: instruction.accounts.length,
|
|
2952
3146
|
expectedAccountMetas: 2
|
|
@@ -2969,31 +3163,31 @@ __name(parseExecuteUnpauseInstruction, "parseExecuteUnpauseInstruction");
|
|
|
2969
3163
|
|
|
2970
3164
|
// src/generated/instructions/finalizeDispute.ts
|
|
2971
3165
|
import {
|
|
2972
|
-
combineCodec as
|
|
2973
|
-
fixDecoderSize as
|
|
2974
|
-
fixEncoderSize as
|
|
2975
|
-
getBytesDecoder as
|
|
2976
|
-
getBytesEncoder as
|
|
2977
|
-
getStructDecoder as
|
|
2978
|
-
getStructEncoder as
|
|
2979
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
2980
|
-
SolanaError as
|
|
2981
|
-
transformEncoder as
|
|
3166
|
+
combineCodec as combineCodec26,
|
|
3167
|
+
fixDecoderSize as fixDecoderSize20,
|
|
3168
|
+
fixEncoderSize as fixEncoderSize21,
|
|
3169
|
+
getBytesDecoder as getBytesDecoder20,
|
|
3170
|
+
getBytesEncoder as getBytesEncoder28,
|
|
3171
|
+
getStructDecoder as getStructDecoder23,
|
|
3172
|
+
getStructEncoder as getStructEncoder23,
|
|
3173
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS12,
|
|
3174
|
+
SolanaError as SolanaError12,
|
|
3175
|
+
transformEncoder as transformEncoder19
|
|
2982
3176
|
} from "@solana/kit";
|
|
2983
3177
|
import {
|
|
2984
|
-
getAccountMetaFactory as
|
|
3178
|
+
getAccountMetaFactory as getAccountMetaFactory12
|
|
2985
3179
|
} from "@solana/kit/program-client-core";
|
|
2986
3180
|
var FINALIZE_DISPUTE_DISCRIMINATOR = new Uint8Array([190, 211, 17, 122, 247, 157, 27, 223]);
|
|
2987
3181
|
function getFinalizeDisputeInstructionDataEncoder() {
|
|
2988
|
-
return
|
|
2989
|
-
|
|
3182
|
+
return transformEncoder19(
|
|
3183
|
+
getStructEncoder23([["discriminator", fixEncoderSize21(getBytesEncoder28(), 8)]]),
|
|
2990
3184
|
(value) => ({ ...value, discriminator: FINALIZE_DISPUTE_DISCRIMINATOR })
|
|
2991
3185
|
);
|
|
2992
3186
|
}
|
|
2993
3187
|
__name(getFinalizeDisputeInstructionDataEncoder, "getFinalizeDisputeInstructionDataEncoder");
|
|
2994
3188
|
function getFinalizeDisputeInstructionDataDecoder() {
|
|
2995
|
-
return
|
|
2996
|
-
["discriminator",
|
|
3189
|
+
return getStructDecoder23([
|
|
3190
|
+
["discriminator", fixDecoderSize20(getBytesDecoder20(), 8)]
|
|
2997
3191
|
]);
|
|
2998
3192
|
}
|
|
2999
3193
|
__name(getFinalizeDisputeInstructionDataDecoder, "getFinalizeDisputeInstructionDataDecoder");
|
|
@@ -3006,7 +3200,7 @@ function getFinalizeDisputeInstruction(input, config) {
|
|
|
3006
3200
|
round: { value: input.round ?? null, isWritable: true }
|
|
3007
3201
|
};
|
|
3008
3202
|
const accounts = originalAccounts;
|
|
3009
|
-
const getAccountMeta =
|
|
3203
|
+
const getAccountMeta = getAccountMetaFactory12(programAddress, "programId");
|
|
3010
3204
|
return Object.freeze({
|
|
3011
3205
|
accounts: [
|
|
3012
3206
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -3021,8 +3215,8 @@ function getFinalizeDisputeInstruction(input, config) {
|
|
|
3021
3215
|
__name(getFinalizeDisputeInstruction, "getFinalizeDisputeInstruction");
|
|
3022
3216
|
function parseFinalizeDisputeInstruction(instruction) {
|
|
3023
3217
|
if (instruction.accounts.length < 4) {
|
|
3024
|
-
throw new
|
|
3025
|
-
|
|
3218
|
+
throw new SolanaError12(
|
|
3219
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS12,
|
|
3026
3220
|
{
|
|
3027
3221
|
actualAccountMetas: instruction.accounts.length,
|
|
3028
3222
|
expectedAccountMetas: 4
|
|
@@ -3050,19 +3244,19 @@ __name(parseFinalizeDisputeInstruction, "parseFinalizeDisputeInstruction");
|
|
|
3050
3244
|
|
|
3051
3245
|
// src/generated/instructions/finalizeRound.ts
|
|
3052
3246
|
import {
|
|
3053
|
-
combineCodec as
|
|
3054
|
-
fixDecoderSize as
|
|
3055
|
-
fixEncoderSize as
|
|
3056
|
-
getBytesDecoder as
|
|
3057
|
-
getBytesEncoder as
|
|
3058
|
-
getStructDecoder as
|
|
3059
|
-
getStructEncoder as
|
|
3060
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3061
|
-
SolanaError as
|
|
3062
|
-
transformEncoder as
|
|
3247
|
+
combineCodec as combineCodec27,
|
|
3248
|
+
fixDecoderSize as fixDecoderSize21,
|
|
3249
|
+
fixEncoderSize as fixEncoderSize22,
|
|
3250
|
+
getBytesDecoder as getBytesDecoder21,
|
|
3251
|
+
getBytesEncoder as getBytesEncoder29,
|
|
3252
|
+
getStructDecoder as getStructDecoder24,
|
|
3253
|
+
getStructEncoder as getStructEncoder24,
|
|
3254
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS13,
|
|
3255
|
+
SolanaError as SolanaError13,
|
|
3256
|
+
transformEncoder as transformEncoder20
|
|
3063
3257
|
} from "@solana/kit";
|
|
3064
3258
|
import {
|
|
3065
|
-
getAccountMetaFactory as
|
|
3259
|
+
getAccountMetaFactory as getAccountMetaFactory13
|
|
3066
3260
|
} from "@solana/kit/program-client-core";
|
|
3067
3261
|
var FINALIZE_ROUND_DISCRIMINATOR = new Uint8Array([
|
|
3068
3262
|
239,
|
|
@@ -3075,15 +3269,15 @@ var FINALIZE_ROUND_DISCRIMINATOR = new Uint8Array([
|
|
|
3075
3269
|
148
|
|
3076
3270
|
]);
|
|
3077
3271
|
function getFinalizeRoundInstructionDataEncoder() {
|
|
3078
|
-
return
|
|
3079
|
-
|
|
3272
|
+
return transformEncoder20(
|
|
3273
|
+
getStructEncoder24([["discriminator", fixEncoderSize22(getBytesEncoder29(), 8)]]),
|
|
3080
3274
|
(value) => ({ ...value, discriminator: FINALIZE_ROUND_DISCRIMINATOR })
|
|
3081
3275
|
);
|
|
3082
3276
|
}
|
|
3083
3277
|
__name(getFinalizeRoundInstructionDataEncoder, "getFinalizeRoundInstructionDataEncoder");
|
|
3084
3278
|
function getFinalizeRoundInstructionDataDecoder() {
|
|
3085
|
-
return
|
|
3086
|
-
["discriminator",
|
|
3279
|
+
return getStructDecoder24([
|
|
3280
|
+
["discriminator", fixDecoderSize21(getBytesDecoder21(), 8)]
|
|
3087
3281
|
]);
|
|
3088
3282
|
}
|
|
3089
3283
|
__name(getFinalizeRoundInstructionDataDecoder, "getFinalizeRoundInstructionDataDecoder");
|
|
@@ -3096,7 +3290,7 @@ function getFinalizeRoundInstruction(input, config) {
|
|
|
3096
3290
|
round: { value: input.round ?? null, isWritable: true }
|
|
3097
3291
|
};
|
|
3098
3292
|
const accounts = originalAccounts;
|
|
3099
|
-
const getAccountMeta =
|
|
3293
|
+
const getAccountMeta = getAccountMetaFactory13(programAddress, "programId");
|
|
3100
3294
|
return Object.freeze({
|
|
3101
3295
|
accounts: [
|
|
3102
3296
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -3111,8 +3305,8 @@ function getFinalizeRoundInstruction(input, config) {
|
|
|
3111
3305
|
__name(getFinalizeRoundInstruction, "getFinalizeRoundInstruction");
|
|
3112
3306
|
function parseFinalizeRoundInstruction(instruction) {
|
|
3113
3307
|
if (instruction.accounts.length < 4) {
|
|
3114
|
-
throw new
|
|
3115
|
-
|
|
3308
|
+
throw new SolanaError13(
|
|
3309
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS13,
|
|
3116
3310
|
{
|
|
3117
3311
|
actualAccountMetas: instruction.accounts.length,
|
|
3118
3312
|
expectedAccountMetas: 4
|
|
@@ -3140,20 +3334,20 @@ __name(parseFinalizeRoundInstruction, "parseFinalizeRoundInstruction");
|
|
|
3140
3334
|
|
|
3141
3335
|
// src/generated/instructions/getRuling.ts
|
|
3142
3336
|
import {
|
|
3143
|
-
combineCodec as
|
|
3144
|
-
fixDecoderSize as
|
|
3145
|
-
fixEncoderSize as
|
|
3146
|
-
getBytesDecoder as
|
|
3147
|
-
getBytesEncoder as
|
|
3148
|
-
getStructDecoder as
|
|
3149
|
-
getStructEncoder as
|
|
3150
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3151
|
-
SolanaError as
|
|
3152
|
-
transformEncoder as
|
|
3153
|
-
} from "@solana/kit";
|
|
3154
|
-
import {
|
|
3155
|
-
getAccountMetaFactory as
|
|
3156
|
-
} from "@solana/kit/program-client-core";
|
|
3337
|
+
combineCodec as combineCodec28,
|
|
3338
|
+
fixDecoderSize as fixDecoderSize22,
|
|
3339
|
+
fixEncoderSize as fixEncoderSize23,
|
|
3340
|
+
getBytesDecoder as getBytesDecoder22,
|
|
3341
|
+
getBytesEncoder as getBytesEncoder30,
|
|
3342
|
+
getStructDecoder as getStructDecoder25,
|
|
3343
|
+
getStructEncoder as getStructEncoder25,
|
|
3344
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS14,
|
|
3345
|
+
SolanaError as SolanaError14,
|
|
3346
|
+
transformEncoder as transformEncoder21
|
|
3347
|
+
} from "@solana/kit";
|
|
3348
|
+
import {
|
|
3349
|
+
getAccountMetaFactory as getAccountMetaFactory14
|
|
3350
|
+
} from "@solana/kit/program-client-core";
|
|
3157
3351
|
var GET_RULING_DISCRIMINATOR = new Uint8Array([
|
|
3158
3352
|
196,
|
|
3159
3353
|
52,
|
|
@@ -3165,15 +3359,15 @@ var GET_RULING_DISCRIMINATOR = new Uint8Array([
|
|
|
3165
3359
|
16
|
|
3166
3360
|
]);
|
|
3167
3361
|
function getGetRulingInstructionDataEncoder() {
|
|
3168
|
-
return
|
|
3169
|
-
|
|
3362
|
+
return transformEncoder21(
|
|
3363
|
+
getStructEncoder25([["discriminator", fixEncoderSize23(getBytesEncoder30(), 8)]]),
|
|
3170
3364
|
(value) => ({ ...value, discriminator: GET_RULING_DISCRIMINATOR })
|
|
3171
3365
|
);
|
|
3172
3366
|
}
|
|
3173
3367
|
__name(getGetRulingInstructionDataEncoder, "getGetRulingInstructionDataEncoder");
|
|
3174
3368
|
function getGetRulingInstructionDataDecoder() {
|
|
3175
|
-
return
|
|
3176
|
-
["discriminator",
|
|
3369
|
+
return getStructDecoder25([
|
|
3370
|
+
["discriminator", fixDecoderSize22(getBytesDecoder22(), 8)]
|
|
3177
3371
|
]);
|
|
3178
3372
|
}
|
|
3179
3373
|
__name(getGetRulingInstructionDataDecoder, "getGetRulingInstructionDataDecoder");
|
|
@@ -3184,7 +3378,7 @@ function getGetRulingInstruction(input, config) {
|
|
|
3184
3378
|
dispute: { value: input.dispute ?? null, isWritable: false }
|
|
3185
3379
|
};
|
|
3186
3380
|
const accounts = originalAccounts;
|
|
3187
|
-
const getAccountMeta =
|
|
3381
|
+
const getAccountMeta = getAccountMetaFactory14(programAddress, "programId");
|
|
3188
3382
|
return Object.freeze({
|
|
3189
3383
|
accounts: [
|
|
3190
3384
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -3197,8 +3391,8 @@ function getGetRulingInstruction(input, config) {
|
|
|
3197
3391
|
__name(getGetRulingInstruction, "getGetRulingInstruction");
|
|
3198
3392
|
function parseGetRulingInstruction(instruction) {
|
|
3199
3393
|
if (instruction.accounts.length < 2) {
|
|
3200
|
-
throw new
|
|
3201
|
-
|
|
3394
|
+
throw new SolanaError14(
|
|
3395
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS14,
|
|
3202
3396
|
{
|
|
3203
3397
|
actualAccountMetas: instruction.accounts.length,
|
|
3204
3398
|
expectedAccountMetas: 2
|
|
@@ -3221,19 +3415,19 @@ __name(parseGetRulingInstruction, "parseGetRulingInstruction");
|
|
|
3221
3415
|
|
|
3222
3416
|
// src/generated/instructions/health.ts
|
|
3223
3417
|
import {
|
|
3224
|
-
combineCodec as
|
|
3225
|
-
fixDecoderSize as
|
|
3226
|
-
fixEncoderSize as
|
|
3227
|
-
getBytesDecoder as
|
|
3228
|
-
getBytesEncoder as
|
|
3229
|
-
getStructDecoder as
|
|
3230
|
-
getStructEncoder as
|
|
3231
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3232
|
-
SolanaError as
|
|
3233
|
-
transformEncoder as
|
|
3418
|
+
combineCodec as combineCodec29,
|
|
3419
|
+
fixDecoderSize as fixDecoderSize23,
|
|
3420
|
+
fixEncoderSize as fixEncoderSize24,
|
|
3421
|
+
getBytesDecoder as getBytesDecoder23,
|
|
3422
|
+
getBytesEncoder as getBytesEncoder31,
|
|
3423
|
+
getStructDecoder as getStructDecoder26,
|
|
3424
|
+
getStructEncoder as getStructEncoder26,
|
|
3425
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS15,
|
|
3426
|
+
SolanaError as SolanaError15,
|
|
3427
|
+
transformEncoder as transformEncoder22
|
|
3234
3428
|
} from "@solana/kit";
|
|
3235
3429
|
import {
|
|
3236
|
-
getAccountMetaFactory as
|
|
3430
|
+
getAccountMetaFactory as getAccountMetaFactory15
|
|
3237
3431
|
} from "@solana/kit/program-client-core";
|
|
3238
3432
|
var HEALTH_DISCRIMINATOR = new Uint8Array([
|
|
3239
3433
|
235,
|
|
@@ -3246,15 +3440,15 @@ var HEALTH_DISCRIMINATOR = new Uint8Array([
|
|
|
3246
3440
|
16
|
|
3247
3441
|
]);
|
|
3248
3442
|
function getHealthInstructionDataEncoder() {
|
|
3249
|
-
return
|
|
3250
|
-
|
|
3443
|
+
return transformEncoder22(
|
|
3444
|
+
getStructEncoder26([["discriminator", fixEncoderSize24(getBytesEncoder31(), 8)]]),
|
|
3251
3445
|
(value) => ({ ...value, discriminator: HEALTH_DISCRIMINATOR })
|
|
3252
3446
|
);
|
|
3253
3447
|
}
|
|
3254
3448
|
__name(getHealthInstructionDataEncoder, "getHealthInstructionDataEncoder");
|
|
3255
3449
|
function getHealthInstructionDataDecoder() {
|
|
3256
|
-
return
|
|
3257
|
-
["discriminator",
|
|
3450
|
+
return getStructDecoder26([
|
|
3451
|
+
["discriminator", fixDecoderSize23(getBytesDecoder23(), 8)]
|
|
3258
3452
|
]);
|
|
3259
3453
|
}
|
|
3260
3454
|
__name(getHealthInstructionDataDecoder, "getHealthInstructionDataDecoder");
|
|
@@ -3264,7 +3458,7 @@ function getHealthInstruction(input, config) {
|
|
|
3264
3458
|
caller: { value: input.caller ?? null, isWritable: false }
|
|
3265
3459
|
};
|
|
3266
3460
|
const accounts = originalAccounts;
|
|
3267
|
-
const getAccountMeta =
|
|
3461
|
+
const getAccountMeta = getAccountMetaFactory15(programAddress, "programId");
|
|
3268
3462
|
return Object.freeze({
|
|
3269
3463
|
accounts: [getAccountMeta("caller", accounts.caller)],
|
|
3270
3464
|
data: getHealthInstructionDataEncoder().encode({}),
|
|
@@ -3274,8 +3468,8 @@ function getHealthInstruction(input, config) {
|
|
|
3274
3468
|
__name(getHealthInstruction, "getHealthInstruction");
|
|
3275
3469
|
function parseHealthInstruction(instruction) {
|
|
3276
3470
|
if (instruction.accounts.length < 1) {
|
|
3277
|
-
throw new
|
|
3278
|
-
|
|
3471
|
+
throw new SolanaError15(
|
|
3472
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS15,
|
|
3279
3473
|
{
|
|
3280
3474
|
actualAccountMetas: instruction.accounts.length,
|
|
3281
3475
|
expectedAccountMetas: 1
|
|
@@ -3298,31 +3492,31 @@ __name(parseHealthInstruction, "parseHealthInstruction");
|
|
|
3298
3492
|
|
|
3299
3493
|
// src/generated/instructions/initializePause.ts
|
|
3300
3494
|
import {
|
|
3301
|
-
combineCodec as
|
|
3302
|
-
fixDecoderSize as
|
|
3303
|
-
fixEncoderSize as
|
|
3304
|
-
getBytesDecoder as
|
|
3305
|
-
getBytesEncoder as
|
|
3306
|
-
getStructDecoder as
|
|
3307
|
-
getStructEncoder as
|
|
3308
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3309
|
-
SolanaError as
|
|
3310
|
-
transformEncoder as
|
|
3495
|
+
combineCodec as combineCodec30,
|
|
3496
|
+
fixDecoderSize as fixDecoderSize24,
|
|
3497
|
+
fixEncoderSize as fixEncoderSize25,
|
|
3498
|
+
getBytesDecoder as getBytesDecoder24,
|
|
3499
|
+
getBytesEncoder as getBytesEncoder32,
|
|
3500
|
+
getStructDecoder as getStructDecoder27,
|
|
3501
|
+
getStructEncoder as getStructEncoder27,
|
|
3502
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS16,
|
|
3503
|
+
SolanaError as SolanaError16,
|
|
3504
|
+
transformEncoder as transformEncoder23
|
|
3311
3505
|
} from "@solana/kit";
|
|
3312
3506
|
import {
|
|
3313
|
-
getAccountMetaFactory as
|
|
3507
|
+
getAccountMetaFactory as getAccountMetaFactory16
|
|
3314
3508
|
} from "@solana/kit/program-client-core";
|
|
3315
3509
|
var INITIALIZE_PAUSE_DISCRIMINATOR = new Uint8Array([70, 32, 55, 248, 231, 46, 123, 153]);
|
|
3316
3510
|
function getInitializePauseInstructionDataEncoder() {
|
|
3317
|
-
return
|
|
3318
|
-
|
|
3511
|
+
return transformEncoder23(
|
|
3512
|
+
getStructEncoder27([["discriminator", fixEncoderSize25(getBytesEncoder32(), 8)]]),
|
|
3319
3513
|
(value) => ({ ...value, discriminator: INITIALIZE_PAUSE_DISCRIMINATOR })
|
|
3320
3514
|
);
|
|
3321
3515
|
}
|
|
3322
3516
|
__name(getInitializePauseInstructionDataEncoder, "getInitializePauseInstructionDataEncoder");
|
|
3323
3517
|
function getInitializePauseInstructionDataDecoder() {
|
|
3324
|
-
return
|
|
3325
|
-
["discriminator",
|
|
3518
|
+
return getStructDecoder27([
|
|
3519
|
+
["discriminator", fixDecoderSize24(getBytesDecoder24(), 8)]
|
|
3326
3520
|
]);
|
|
3327
3521
|
}
|
|
3328
3522
|
__name(getInitializePauseInstructionDataDecoder, "getInitializePauseInstructionDataDecoder");
|
|
@@ -3340,7 +3534,7 @@ async function getInitializePauseInstructionAsync(input, config) {
|
|
|
3340
3534
|
if (!accounts.systemProgram.value) {
|
|
3341
3535
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
3342
3536
|
}
|
|
3343
|
-
const getAccountMeta =
|
|
3537
|
+
const getAccountMeta = getAccountMetaFactory16(programAddress, "programId");
|
|
3344
3538
|
return Object.freeze({
|
|
3345
3539
|
accounts: [
|
|
3346
3540
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3363,7 +3557,7 @@ function getInitializePauseInstruction(input, config) {
|
|
|
3363
3557
|
if (!accounts.systemProgram.value) {
|
|
3364
3558
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
3365
3559
|
}
|
|
3366
|
-
const getAccountMeta =
|
|
3560
|
+
const getAccountMeta = getAccountMetaFactory16(programAddress, "programId");
|
|
3367
3561
|
return Object.freeze({
|
|
3368
3562
|
accounts: [
|
|
3369
3563
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3377,8 +3571,8 @@ function getInitializePauseInstruction(input, config) {
|
|
|
3377
3571
|
__name(getInitializePauseInstruction, "getInitializePauseInstruction");
|
|
3378
3572
|
function parseInitializePauseInstruction(instruction) {
|
|
3379
3573
|
if (instruction.accounts.length < 3) {
|
|
3380
|
-
throw new
|
|
3381
|
-
|
|
3574
|
+
throw new SolanaError16(
|
|
3575
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS16,
|
|
3382
3576
|
{
|
|
3383
3577
|
actualAccountMetas: instruction.accounts.length,
|
|
3384
3578
|
expectedAccountMetas: 3
|
|
@@ -3405,19 +3599,19 @@ __name(parseInitializePauseInstruction, "parseInitializePauseInstruction");
|
|
|
3405
3599
|
|
|
3406
3600
|
// src/generated/instructions/pause.ts
|
|
3407
3601
|
import {
|
|
3408
|
-
combineCodec as
|
|
3409
|
-
fixDecoderSize as
|
|
3410
|
-
fixEncoderSize as
|
|
3411
|
-
getBytesDecoder as
|
|
3412
|
-
getBytesEncoder as
|
|
3413
|
-
getStructDecoder as
|
|
3414
|
-
getStructEncoder as
|
|
3415
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3416
|
-
SolanaError as
|
|
3417
|
-
transformEncoder as
|
|
3602
|
+
combineCodec as combineCodec31,
|
|
3603
|
+
fixDecoderSize as fixDecoderSize25,
|
|
3604
|
+
fixEncoderSize as fixEncoderSize26,
|
|
3605
|
+
getBytesDecoder as getBytesDecoder25,
|
|
3606
|
+
getBytesEncoder as getBytesEncoder33,
|
|
3607
|
+
getStructDecoder as getStructDecoder28,
|
|
3608
|
+
getStructEncoder as getStructEncoder28,
|
|
3609
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS17,
|
|
3610
|
+
SolanaError as SolanaError17,
|
|
3611
|
+
transformEncoder as transformEncoder24
|
|
3418
3612
|
} from "@solana/kit";
|
|
3419
3613
|
import {
|
|
3420
|
-
getAccountMetaFactory as
|
|
3614
|
+
getAccountMetaFactory as getAccountMetaFactory17
|
|
3421
3615
|
} from "@solana/kit/program-client-core";
|
|
3422
3616
|
var PAUSE_DISCRIMINATOR = new Uint8Array([
|
|
3423
3617
|
211,
|
|
@@ -3430,15 +3624,15 @@ var PAUSE_DISCRIMINATOR = new Uint8Array([
|
|
|
3430
3624
|
47
|
|
3431
3625
|
]);
|
|
3432
3626
|
function getPauseInstructionDataEncoder() {
|
|
3433
|
-
return
|
|
3434
|
-
|
|
3627
|
+
return transformEncoder24(
|
|
3628
|
+
getStructEncoder28([["discriminator", fixEncoderSize26(getBytesEncoder33(), 8)]]),
|
|
3435
3629
|
(value) => ({ ...value, discriminator: PAUSE_DISCRIMINATOR })
|
|
3436
3630
|
);
|
|
3437
3631
|
}
|
|
3438
3632
|
__name(getPauseInstructionDataEncoder, "getPauseInstructionDataEncoder");
|
|
3439
3633
|
function getPauseInstructionDataDecoder() {
|
|
3440
|
-
return
|
|
3441
|
-
["discriminator",
|
|
3634
|
+
return getStructDecoder28([
|
|
3635
|
+
["discriminator", fixDecoderSize25(getBytesDecoder25(), 8)]
|
|
3442
3636
|
]);
|
|
3443
3637
|
}
|
|
3444
3638
|
__name(getPauseInstructionDataDecoder, "getPauseInstructionDataDecoder");
|
|
@@ -3452,7 +3646,7 @@ async function getPauseInstructionAsync(input, config) {
|
|
|
3452
3646
|
if (!accounts.accordState.value) {
|
|
3453
3647
|
accounts.accordState.value = await findAccordStatePda();
|
|
3454
3648
|
}
|
|
3455
|
-
const getAccountMeta =
|
|
3649
|
+
const getAccountMeta = getAccountMetaFactory17(programAddress, "programId");
|
|
3456
3650
|
return Object.freeze({
|
|
3457
3651
|
accounts: [
|
|
3458
3652
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3470,7 +3664,7 @@ function getPauseInstruction(input, config) {
|
|
|
3470
3664
|
accordState: { value: input.accordState ?? null, isWritable: true }
|
|
3471
3665
|
};
|
|
3472
3666
|
const accounts = originalAccounts;
|
|
3473
|
-
const getAccountMeta =
|
|
3667
|
+
const getAccountMeta = getAccountMetaFactory17(programAddress, "programId");
|
|
3474
3668
|
return Object.freeze({
|
|
3475
3669
|
accounts: [
|
|
3476
3670
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3483,8 +3677,8 @@ function getPauseInstruction(input, config) {
|
|
|
3483
3677
|
__name(getPauseInstruction, "getPauseInstruction");
|
|
3484
3678
|
function parsePauseInstruction(instruction) {
|
|
3485
3679
|
if (instruction.accounts.length < 2) {
|
|
3486
|
-
throw new
|
|
3487
|
-
|
|
3680
|
+
throw new SolanaError17(
|
|
3681
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS17,
|
|
3488
3682
|
{
|
|
3489
3683
|
actualAccountMetas: instruction.accounts.length,
|
|
3490
3684
|
expectedAccountMetas: 2
|
|
@@ -3507,29 +3701,29 @@ __name(parsePauseInstruction, "parsePauseInstruction");
|
|
|
3507
3701
|
|
|
3508
3702
|
// src/generated/instructions/proposeSubaccordUpdate.ts
|
|
3509
3703
|
import {
|
|
3510
|
-
combineCodec as
|
|
3511
|
-
fixDecoderSize as
|
|
3512
|
-
fixEncoderSize as
|
|
3513
|
-
getBytesDecoder as
|
|
3514
|
-
getBytesEncoder as
|
|
3515
|
-
getStructDecoder as
|
|
3516
|
-
getStructEncoder as
|
|
3704
|
+
combineCodec as combineCodec32,
|
|
3705
|
+
fixDecoderSize as fixDecoderSize26,
|
|
3706
|
+
fixEncoderSize as fixEncoderSize27,
|
|
3707
|
+
getBytesDecoder as getBytesDecoder26,
|
|
3708
|
+
getBytesEncoder as getBytesEncoder34,
|
|
3709
|
+
getStructDecoder as getStructDecoder29,
|
|
3710
|
+
getStructEncoder as getStructEncoder29,
|
|
3517
3711
|
getU64Decoder as getU64Decoder14,
|
|
3518
3712
|
getU64Encoder as getU64Encoder16,
|
|
3519
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3520
|
-
SolanaError as
|
|
3521
|
-
transformEncoder as
|
|
3713
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS18,
|
|
3714
|
+
SolanaError as SolanaError18,
|
|
3715
|
+
transformEncoder as transformEncoder25
|
|
3522
3716
|
} from "@solana/kit";
|
|
3523
3717
|
import {
|
|
3524
|
-
getAccountMetaFactory as
|
|
3525
|
-
getAddressFromResolvedInstructionAccount as
|
|
3718
|
+
getAccountMetaFactory as getAccountMetaFactory18,
|
|
3719
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount7,
|
|
3526
3720
|
getNonNullResolvedInstructionInput as getNonNullResolvedInstructionInput4
|
|
3527
3721
|
} from "@solana/kit/program-client-core";
|
|
3528
3722
|
var PROPOSE_SUBACCORD_UPDATE_DISCRIMINATOR = new Uint8Array([8, 224, 186, 131, 130, 76, 165, 172]);
|
|
3529
3723
|
function getProposeSubaccordUpdateInstructionDataEncoder() {
|
|
3530
|
-
return
|
|
3531
|
-
|
|
3532
|
-
["discriminator",
|
|
3724
|
+
return transformEncoder25(
|
|
3725
|
+
getStructEncoder29([
|
|
3726
|
+
["discriminator", fixEncoderSize27(getBytesEncoder34(), 8)],
|
|
3533
3727
|
["nonce", getU64Encoder16()],
|
|
3534
3728
|
["payload", getUpdatePayloadEncoder()]
|
|
3535
3729
|
]),
|
|
@@ -3541,8 +3735,8 @@ function getProposeSubaccordUpdateInstructionDataEncoder() {
|
|
|
3541
3735
|
}
|
|
3542
3736
|
__name(getProposeSubaccordUpdateInstructionDataEncoder, "getProposeSubaccordUpdateInstructionDataEncoder");
|
|
3543
3737
|
function getProposeSubaccordUpdateInstructionDataDecoder() {
|
|
3544
|
-
return
|
|
3545
|
-
["discriminator",
|
|
3738
|
+
return getStructDecoder29([
|
|
3739
|
+
["discriminator", fixDecoderSize26(getBytesDecoder26(), 8)],
|
|
3546
3740
|
["nonce", getU64Decoder14()],
|
|
3547
3741
|
["payload", getUpdatePayloadDecoder()]
|
|
3548
3742
|
]);
|
|
@@ -3561,7 +3755,7 @@ async function getProposeSubaccordUpdateInstructionAsync(input, config) {
|
|
|
3561
3755
|
const args = { ...input };
|
|
3562
3756
|
if (!accounts.pendingUpdate.value) {
|
|
3563
3757
|
accounts.pendingUpdate.value = await findPendingUpdatePda({
|
|
3564
|
-
subaccord:
|
|
3758
|
+
subaccord: getAddressFromResolvedInstructionAccount7(
|
|
3565
3759
|
"subaccord",
|
|
3566
3760
|
accounts.subaccord.value
|
|
3567
3761
|
),
|
|
@@ -3571,7 +3765,7 @@ async function getProposeSubaccordUpdateInstructionAsync(input, config) {
|
|
|
3571
3765
|
if (!accounts.systemProgram.value) {
|
|
3572
3766
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
3573
3767
|
}
|
|
3574
|
-
const getAccountMeta =
|
|
3768
|
+
const getAccountMeta = getAccountMetaFactory18(programAddress, "programId");
|
|
3575
3769
|
return Object.freeze({
|
|
3576
3770
|
accounts: [
|
|
3577
3771
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3601,7 +3795,7 @@ function getProposeSubaccordUpdateInstruction(input, config) {
|
|
|
3601
3795
|
if (!accounts.systemProgram.value) {
|
|
3602
3796
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
3603
3797
|
}
|
|
3604
|
-
const getAccountMeta =
|
|
3798
|
+
const getAccountMeta = getAccountMetaFactory18(programAddress, "programId");
|
|
3605
3799
|
return Object.freeze({
|
|
3606
3800
|
accounts: [
|
|
3607
3801
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3619,8 +3813,8 @@ function getProposeSubaccordUpdateInstruction(input, config) {
|
|
|
3619
3813
|
__name(getProposeSubaccordUpdateInstruction, "getProposeSubaccordUpdateInstruction");
|
|
3620
3814
|
function parseProposeSubaccordUpdateInstruction(instruction) {
|
|
3621
3815
|
if (instruction.accounts.length < 5) {
|
|
3622
|
-
throw new
|
|
3623
|
-
|
|
3816
|
+
throw new SolanaError18(
|
|
3817
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS18,
|
|
3624
3818
|
{
|
|
3625
3819
|
actualAccountMetas: instruction.accounts.length,
|
|
3626
3820
|
expectedAccountMetas: 5
|
|
@@ -3651,33 +3845,33 @@ __name(parseProposeSubaccordUpdateInstruction, "parseProposeSubaccordUpdateInstr
|
|
|
3651
3845
|
|
|
3652
3846
|
// src/generated/instructions/proposeUnpause.ts
|
|
3653
3847
|
import {
|
|
3654
|
-
combineCodec as
|
|
3655
|
-
fixDecoderSize as
|
|
3656
|
-
fixEncoderSize as
|
|
3657
|
-
getBytesDecoder as
|
|
3658
|
-
getBytesEncoder as
|
|
3659
|
-
getStructDecoder as
|
|
3660
|
-
getStructEncoder as
|
|
3661
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3662
|
-
SolanaError as
|
|
3663
|
-
transformEncoder as
|
|
3848
|
+
combineCodec as combineCodec33,
|
|
3849
|
+
fixDecoderSize as fixDecoderSize27,
|
|
3850
|
+
fixEncoderSize as fixEncoderSize28,
|
|
3851
|
+
getBytesDecoder as getBytesDecoder27,
|
|
3852
|
+
getBytesEncoder as getBytesEncoder35,
|
|
3853
|
+
getStructDecoder as getStructDecoder30,
|
|
3854
|
+
getStructEncoder as getStructEncoder30,
|
|
3855
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS19,
|
|
3856
|
+
SolanaError as SolanaError19,
|
|
3857
|
+
transformEncoder as transformEncoder26
|
|
3664
3858
|
} from "@solana/kit";
|
|
3665
3859
|
import {
|
|
3666
|
-
getAccountMetaFactory as
|
|
3860
|
+
getAccountMetaFactory as getAccountMetaFactory19
|
|
3667
3861
|
} from "@solana/kit/program-client-core";
|
|
3668
3862
|
var PROPOSE_UNPAUSE_DISCRIMINATOR = new Uint8Array(
|
|
3669
3863
|
[45, 136, 163, 143, 156, 57, 113, 132]
|
|
3670
3864
|
);
|
|
3671
3865
|
function getProposeUnpauseInstructionDataEncoder() {
|
|
3672
|
-
return
|
|
3673
|
-
|
|
3866
|
+
return transformEncoder26(
|
|
3867
|
+
getStructEncoder30([["discriminator", fixEncoderSize28(getBytesEncoder35(), 8)]]),
|
|
3674
3868
|
(value) => ({ ...value, discriminator: PROPOSE_UNPAUSE_DISCRIMINATOR })
|
|
3675
3869
|
);
|
|
3676
3870
|
}
|
|
3677
3871
|
__name(getProposeUnpauseInstructionDataEncoder, "getProposeUnpauseInstructionDataEncoder");
|
|
3678
3872
|
function getProposeUnpauseInstructionDataDecoder() {
|
|
3679
|
-
return
|
|
3680
|
-
["discriminator",
|
|
3873
|
+
return getStructDecoder30([
|
|
3874
|
+
["discriminator", fixDecoderSize27(getBytesDecoder27(), 8)]
|
|
3681
3875
|
]);
|
|
3682
3876
|
}
|
|
3683
3877
|
__name(getProposeUnpauseInstructionDataDecoder, "getProposeUnpauseInstructionDataDecoder");
|
|
@@ -3691,7 +3885,7 @@ async function getProposeUnpauseInstructionAsync(input, config) {
|
|
|
3691
3885
|
if (!accounts.accordState.value) {
|
|
3692
3886
|
accounts.accordState.value = await findAccordStatePda();
|
|
3693
3887
|
}
|
|
3694
|
-
const getAccountMeta =
|
|
3888
|
+
const getAccountMeta = getAccountMetaFactory19(programAddress, "programId");
|
|
3695
3889
|
return Object.freeze({
|
|
3696
3890
|
accounts: [
|
|
3697
3891
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3709,7 +3903,7 @@ function getProposeUnpauseInstruction(input, config) {
|
|
|
3709
3903
|
accordState: { value: input.accordState ?? null, isWritable: true }
|
|
3710
3904
|
};
|
|
3711
3905
|
const accounts = originalAccounts;
|
|
3712
|
-
const getAccountMeta =
|
|
3906
|
+
const getAccountMeta = getAccountMetaFactory19(programAddress, "programId");
|
|
3713
3907
|
return Object.freeze({
|
|
3714
3908
|
accounts: [
|
|
3715
3909
|
getAccountMeta("authority", accounts.authority),
|
|
@@ -3722,8 +3916,8 @@ function getProposeUnpauseInstruction(input, config) {
|
|
|
3722
3916
|
__name(getProposeUnpauseInstruction, "getProposeUnpauseInstruction");
|
|
3723
3917
|
function parseProposeUnpauseInstruction(instruction) {
|
|
3724
3918
|
if (instruction.accounts.length < 2) {
|
|
3725
|
-
throw new
|
|
3726
|
-
|
|
3919
|
+
throw new SolanaError19(
|
|
3920
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS19,
|
|
3727
3921
|
{
|
|
3728
3922
|
actualAccountMetas: instruction.accounts.length,
|
|
3729
3923
|
expectedAccountMetas: 2
|
|
@@ -3746,22 +3940,22 @@ __name(parseProposeUnpauseInstruction, "parseProposeUnpauseInstruction");
|
|
|
3746
3940
|
|
|
3747
3941
|
// src/generated/instructions/pruneJuror.ts
|
|
3748
3942
|
import {
|
|
3749
|
-
combineCodec as
|
|
3750
|
-
fixDecoderSize as
|
|
3751
|
-
fixEncoderSize as
|
|
3943
|
+
combineCodec as combineCodec34,
|
|
3944
|
+
fixDecoderSize as fixDecoderSize28,
|
|
3945
|
+
fixEncoderSize as fixEncoderSize29,
|
|
3752
3946
|
getArrayDecoder as getArrayDecoder5,
|
|
3753
3947
|
getArrayEncoder as getArrayEncoder5,
|
|
3754
|
-
getBytesDecoder as
|
|
3755
|
-
getBytesEncoder as
|
|
3756
|
-
getStructDecoder as
|
|
3757
|
-
getStructEncoder as
|
|
3758
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3759
|
-
SolanaError as
|
|
3760
|
-
transformEncoder as
|
|
3948
|
+
getBytesDecoder as getBytesDecoder28,
|
|
3949
|
+
getBytesEncoder as getBytesEncoder36,
|
|
3950
|
+
getStructDecoder as getStructDecoder31,
|
|
3951
|
+
getStructEncoder as getStructEncoder31,
|
|
3952
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS20,
|
|
3953
|
+
SolanaError as SolanaError20,
|
|
3954
|
+
transformEncoder as transformEncoder27
|
|
3761
3955
|
} from "@solana/kit";
|
|
3762
3956
|
import {
|
|
3763
|
-
getAccountMetaFactory as
|
|
3764
|
-
getAddressFromResolvedInstructionAccount as
|
|
3957
|
+
getAccountMetaFactory as getAccountMetaFactory20,
|
|
3958
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount8
|
|
3765
3959
|
} from "@solana/kit/program-client-core";
|
|
3766
3960
|
var PRUNE_JUROR_DISCRIMINATOR = new Uint8Array([
|
|
3767
3961
|
49,
|
|
@@ -3774,9 +3968,9 @@ var PRUNE_JUROR_DISCRIMINATOR = new Uint8Array([
|
|
|
3774
3968
|
167
|
|
3775
3969
|
]);
|
|
3776
3970
|
function getPruneJurorInstructionDataEncoder() {
|
|
3777
|
-
return
|
|
3778
|
-
|
|
3779
|
-
["discriminator",
|
|
3971
|
+
return transformEncoder27(
|
|
3972
|
+
getStructEncoder31([
|
|
3973
|
+
["discriminator", fixEncoderSize29(getBytesEncoder36(), 8)],
|
|
3780
3974
|
["path", getArrayEncoder5(getMSTNodeEncoder())]
|
|
3781
3975
|
]),
|
|
3782
3976
|
(value) => ({ ...value, discriminator: PRUNE_JUROR_DISCRIMINATOR })
|
|
@@ -3784,8 +3978,8 @@ function getPruneJurorInstructionDataEncoder() {
|
|
|
3784
3978
|
}
|
|
3785
3979
|
__name(getPruneJurorInstructionDataEncoder, "getPruneJurorInstructionDataEncoder");
|
|
3786
3980
|
function getPruneJurorInstructionDataDecoder() {
|
|
3787
|
-
return
|
|
3788
|
-
["discriminator",
|
|
3981
|
+
return getStructDecoder31([
|
|
3982
|
+
["discriminator", fixDecoderSize28(getBytesDecoder28(), 8)],
|
|
3789
3983
|
["path", getArrayDecoder5(getMSTNodeDecoder())]
|
|
3790
3984
|
]);
|
|
3791
3985
|
}
|
|
@@ -3803,11 +3997,11 @@ async function getPruneJurorInstructionAsync(input, config) {
|
|
|
3803
3997
|
const args = { ...input };
|
|
3804
3998
|
if (!accounts.jurorStake.value) {
|
|
3805
3999
|
accounts.jurorStake.value = await findJurorStakePda({
|
|
3806
|
-
subaccord:
|
|
4000
|
+
subaccord: getAddressFromResolvedInstructionAccount8(
|
|
3807
4001
|
"subaccord",
|
|
3808
4002
|
accounts.subaccord.value
|
|
3809
4003
|
),
|
|
3810
|
-
juror:
|
|
4004
|
+
juror: getAddressFromResolvedInstructionAccount8(
|
|
3811
4005
|
"juror",
|
|
3812
4006
|
accounts.juror.value
|
|
3813
4007
|
)
|
|
@@ -3816,7 +4010,7 @@ async function getPruneJurorInstructionAsync(input, config) {
|
|
|
3816
4010
|
if (!accounts.systemProgram.value) {
|
|
3817
4011
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
3818
4012
|
}
|
|
3819
|
-
const getAccountMeta =
|
|
4013
|
+
const getAccountMeta = getAccountMetaFactory20(programAddress, "programId");
|
|
3820
4014
|
return Object.freeze({
|
|
3821
4015
|
accounts: [
|
|
3822
4016
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -3846,7 +4040,7 @@ function getPruneJurorInstruction(input, config) {
|
|
|
3846
4040
|
if (!accounts.systemProgram.value) {
|
|
3847
4041
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
3848
4042
|
}
|
|
3849
|
-
const getAccountMeta =
|
|
4043
|
+
const getAccountMeta = getAccountMetaFactory20(programAddress, "programId");
|
|
3850
4044
|
return Object.freeze({
|
|
3851
4045
|
accounts: [
|
|
3852
4046
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -3864,8 +4058,8 @@ function getPruneJurorInstruction(input, config) {
|
|
|
3864
4058
|
__name(getPruneJurorInstruction, "getPruneJurorInstruction");
|
|
3865
4059
|
function parsePruneJurorInstruction(instruction) {
|
|
3866
4060
|
if (instruction.accounts.length < 5) {
|
|
3867
|
-
throw new
|
|
3868
|
-
|
|
4061
|
+
throw new SolanaError20(
|
|
4062
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS20,
|
|
3869
4063
|
{
|
|
3870
4064
|
actualAccountMetas: instruction.accounts.length,
|
|
3871
4065
|
expectedAccountMetas: 5
|
|
@@ -3894,21 +4088,21 @@ __name(parsePruneJurorInstruction, "parsePruneJurorInstruction");
|
|
|
3894
4088
|
|
|
3895
4089
|
// src/generated/instructions/reclaimSlot.ts
|
|
3896
4090
|
import {
|
|
3897
|
-
combineCodec as
|
|
3898
|
-
fixDecoderSize as
|
|
3899
|
-
fixEncoderSize as
|
|
4091
|
+
combineCodec as combineCodec35,
|
|
4092
|
+
fixDecoderSize as fixDecoderSize29,
|
|
4093
|
+
fixEncoderSize as fixEncoderSize30,
|
|
3900
4094
|
getArrayDecoder as getArrayDecoder6,
|
|
3901
4095
|
getArrayEncoder as getArrayEncoder6,
|
|
3902
|
-
getBytesDecoder as
|
|
3903
|
-
getBytesEncoder as
|
|
3904
|
-
getStructDecoder as
|
|
3905
|
-
getStructEncoder as
|
|
3906
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
3907
|
-
SolanaError as
|
|
3908
|
-
transformEncoder as
|
|
4096
|
+
getBytesDecoder as getBytesDecoder29,
|
|
4097
|
+
getBytesEncoder as getBytesEncoder37,
|
|
4098
|
+
getStructDecoder as getStructDecoder32,
|
|
4099
|
+
getStructEncoder as getStructEncoder32,
|
|
4100
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS21,
|
|
4101
|
+
SolanaError as SolanaError21,
|
|
4102
|
+
transformEncoder as transformEncoder28
|
|
3909
4103
|
} from "@solana/kit";
|
|
3910
4104
|
import {
|
|
3911
|
-
getAccountMetaFactory as
|
|
4105
|
+
getAccountMetaFactory as getAccountMetaFactory21
|
|
3912
4106
|
} from "@solana/kit/program-client-core";
|
|
3913
4107
|
var RECLAIM_SLOT_DISCRIMINATOR = new Uint8Array([
|
|
3914
4108
|
44,
|
|
@@ -3921,9 +4115,9 @@ var RECLAIM_SLOT_DISCRIMINATOR = new Uint8Array([
|
|
|
3921
4115
|
5
|
|
3922
4116
|
]);
|
|
3923
4117
|
function getReclaimSlotInstructionDataEncoder() {
|
|
3924
|
-
return
|
|
3925
|
-
|
|
3926
|
-
["discriminator",
|
|
4118
|
+
return transformEncoder28(
|
|
4119
|
+
getStructEncoder32([
|
|
4120
|
+
["discriminator", fixEncoderSize30(getBytesEncoder37(), 8)],
|
|
3927
4121
|
["path", getArrayEncoder6(getMSTNodeEncoder())]
|
|
3928
4122
|
]),
|
|
3929
4123
|
(value) => ({ ...value, discriminator: RECLAIM_SLOT_DISCRIMINATOR })
|
|
@@ -3931,8 +4125,8 @@ function getReclaimSlotInstructionDataEncoder() {
|
|
|
3931
4125
|
}
|
|
3932
4126
|
__name(getReclaimSlotInstructionDataEncoder, "getReclaimSlotInstructionDataEncoder");
|
|
3933
4127
|
function getReclaimSlotInstructionDataDecoder() {
|
|
3934
|
-
return
|
|
3935
|
-
["discriminator",
|
|
4128
|
+
return getStructDecoder32([
|
|
4129
|
+
["discriminator", fixDecoderSize29(getBytesDecoder29(), 8)],
|
|
3936
4130
|
["path", getArrayDecoder6(getMSTNodeDecoder())]
|
|
3937
4131
|
]);
|
|
3938
4132
|
}
|
|
@@ -3946,7 +4140,7 @@ function getReclaimSlotInstruction(input, config) {
|
|
|
3946
4140
|
};
|
|
3947
4141
|
const accounts = originalAccounts;
|
|
3948
4142
|
const args = { ...input };
|
|
3949
|
-
const getAccountMeta =
|
|
4143
|
+
const getAccountMeta = getAccountMetaFactory21(programAddress, "programId");
|
|
3950
4144
|
return Object.freeze({
|
|
3951
4145
|
accounts: [
|
|
3952
4146
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -3962,8 +4156,8 @@ function getReclaimSlotInstruction(input, config) {
|
|
|
3962
4156
|
__name(getReclaimSlotInstruction, "getReclaimSlotInstruction");
|
|
3963
4157
|
function parseReclaimSlotInstruction(instruction) {
|
|
3964
4158
|
if (instruction.accounts.length < 3) {
|
|
3965
|
-
throw new
|
|
3966
|
-
|
|
4159
|
+
throw new SolanaError21(
|
|
4160
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS21,
|
|
3967
4161
|
{
|
|
3968
4162
|
actualAccountMetas: instruction.accounts.length,
|
|
3969
4163
|
expectedAccountMetas: 3
|
|
@@ -3990,29 +4184,29 @@ __name(parseReclaimSlotInstruction, "parseReclaimSlotInstruction");
|
|
|
3990
4184
|
|
|
3991
4185
|
// src/generated/instructions/reconcileStake.ts
|
|
3992
4186
|
import {
|
|
3993
|
-
combineCodec as
|
|
3994
|
-
fixDecoderSize as
|
|
3995
|
-
fixEncoderSize as
|
|
4187
|
+
combineCodec as combineCodec36,
|
|
4188
|
+
fixDecoderSize as fixDecoderSize30,
|
|
4189
|
+
fixEncoderSize as fixEncoderSize31,
|
|
3996
4190
|
getArrayDecoder as getArrayDecoder7,
|
|
3997
4191
|
getArrayEncoder as getArrayEncoder7,
|
|
3998
|
-
getBytesDecoder as
|
|
3999
|
-
getBytesEncoder as
|
|
4000
|
-
getStructDecoder as
|
|
4001
|
-
getStructEncoder as
|
|
4002
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4003
|
-
SolanaError as
|
|
4004
|
-
transformEncoder as
|
|
4192
|
+
getBytesDecoder as getBytesDecoder30,
|
|
4193
|
+
getBytesEncoder as getBytesEncoder38,
|
|
4194
|
+
getStructDecoder as getStructDecoder33,
|
|
4195
|
+
getStructEncoder as getStructEncoder33,
|
|
4196
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS22,
|
|
4197
|
+
SolanaError as SolanaError22,
|
|
4198
|
+
transformEncoder as transformEncoder29
|
|
4005
4199
|
} from "@solana/kit";
|
|
4006
4200
|
import {
|
|
4007
|
-
getAccountMetaFactory as
|
|
4201
|
+
getAccountMetaFactory as getAccountMetaFactory22
|
|
4008
4202
|
} from "@solana/kit/program-client-core";
|
|
4009
4203
|
var RECONCILE_STAKE_DISCRIMINATOR = new Uint8Array(
|
|
4010
4204
|
[40, 103, 128, 85, 211, 11, 34, 80]
|
|
4011
4205
|
);
|
|
4012
4206
|
function getReconcileStakeInstructionDataEncoder() {
|
|
4013
|
-
return
|
|
4014
|
-
|
|
4015
|
-
["discriminator",
|
|
4207
|
+
return transformEncoder29(
|
|
4208
|
+
getStructEncoder33([
|
|
4209
|
+
["discriminator", fixEncoderSize31(getBytesEncoder38(), 8)],
|
|
4016
4210
|
["path", getArrayEncoder7(getMSTNodeEncoder())]
|
|
4017
4211
|
]),
|
|
4018
4212
|
(value) => ({ ...value, discriminator: RECONCILE_STAKE_DISCRIMINATOR })
|
|
@@ -4020,8 +4214,8 @@ function getReconcileStakeInstructionDataEncoder() {
|
|
|
4020
4214
|
}
|
|
4021
4215
|
__name(getReconcileStakeInstructionDataEncoder, "getReconcileStakeInstructionDataEncoder");
|
|
4022
4216
|
function getReconcileStakeInstructionDataDecoder() {
|
|
4023
|
-
return
|
|
4024
|
-
["discriminator",
|
|
4217
|
+
return getStructDecoder33([
|
|
4218
|
+
["discriminator", fixDecoderSize30(getBytesDecoder30(), 8)],
|
|
4025
4219
|
["path", getArrayDecoder7(getMSTNodeDecoder())]
|
|
4026
4220
|
]);
|
|
4027
4221
|
}
|
|
@@ -4035,7 +4229,7 @@ function getReconcileStakeInstruction(input, config) {
|
|
|
4035
4229
|
};
|
|
4036
4230
|
const accounts = originalAccounts;
|
|
4037
4231
|
const args = { ...input };
|
|
4038
|
-
const getAccountMeta =
|
|
4232
|
+
const getAccountMeta = getAccountMetaFactory22(programAddress, "programId");
|
|
4039
4233
|
return Object.freeze({
|
|
4040
4234
|
accounts: [
|
|
4041
4235
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4051,8 +4245,8 @@ function getReconcileStakeInstruction(input, config) {
|
|
|
4051
4245
|
__name(getReconcileStakeInstruction, "getReconcileStakeInstruction");
|
|
4052
4246
|
function parseReconcileStakeInstruction(instruction) {
|
|
4053
4247
|
if (instruction.accounts.length < 3) {
|
|
4054
|
-
throw new
|
|
4055
|
-
|
|
4248
|
+
throw new SolanaError22(
|
|
4249
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS22,
|
|
4056
4250
|
{
|
|
4057
4251
|
actualAccountMetas: instruction.accounts.length,
|
|
4058
4252
|
expectedAccountMetas: 3
|
|
@@ -4079,22 +4273,22 @@ __name(parseReconcileStakeInstruction, "parseReconcileStakeInstruction");
|
|
|
4079
4273
|
|
|
4080
4274
|
// src/generated/instructions/redraw.ts
|
|
4081
4275
|
import {
|
|
4082
|
-
combineCodec as
|
|
4083
|
-
fixDecoderSize as
|
|
4084
|
-
fixEncoderSize as
|
|
4085
|
-
getAddressEncoder as
|
|
4086
|
-
getBytesDecoder as
|
|
4087
|
-
getBytesEncoder as
|
|
4088
|
-
getProgramDerivedAddress as
|
|
4089
|
-
getStructDecoder as
|
|
4090
|
-
getStructEncoder as
|
|
4091
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4092
|
-
SolanaError as
|
|
4093
|
-
transformEncoder as
|
|
4276
|
+
combineCodec as combineCodec37,
|
|
4277
|
+
fixDecoderSize as fixDecoderSize31,
|
|
4278
|
+
fixEncoderSize as fixEncoderSize32,
|
|
4279
|
+
getAddressEncoder as getAddressEncoder22,
|
|
4280
|
+
getBytesDecoder as getBytesDecoder31,
|
|
4281
|
+
getBytesEncoder as getBytesEncoder39,
|
|
4282
|
+
getProgramDerivedAddress as getProgramDerivedAddress14,
|
|
4283
|
+
getStructDecoder as getStructDecoder34,
|
|
4284
|
+
getStructEncoder as getStructEncoder34,
|
|
4285
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS23,
|
|
4286
|
+
SolanaError as SolanaError23,
|
|
4287
|
+
transformEncoder as transformEncoder30
|
|
4094
4288
|
} from "@solana/kit";
|
|
4095
4289
|
import {
|
|
4096
|
-
getAccountMetaFactory as
|
|
4097
|
-
getAddressFromResolvedInstructionAccount as
|
|
4290
|
+
getAccountMetaFactory as getAccountMetaFactory23,
|
|
4291
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount9
|
|
4098
4292
|
} from "@solana/kit/program-client-core";
|
|
4099
4293
|
var REDRAW_DISCRIMINATOR = new Uint8Array([
|
|
4100
4294
|
86,
|
|
@@ -4107,15 +4301,15 @@ var REDRAW_DISCRIMINATOR = new Uint8Array([
|
|
|
4107
4301
|
164
|
|
4108
4302
|
]);
|
|
4109
4303
|
function getRedrawInstructionDataEncoder() {
|
|
4110
|
-
return
|
|
4111
|
-
|
|
4304
|
+
return transformEncoder30(
|
|
4305
|
+
getStructEncoder34([["discriminator", fixEncoderSize32(getBytesEncoder39(), 8)]]),
|
|
4112
4306
|
(value) => ({ ...value, discriminator: REDRAW_DISCRIMINATOR })
|
|
4113
4307
|
);
|
|
4114
4308
|
}
|
|
4115
4309
|
__name(getRedrawInstructionDataEncoder, "getRedrawInstructionDataEncoder");
|
|
4116
4310
|
function getRedrawInstructionDataDecoder() {
|
|
4117
|
-
return
|
|
4118
|
-
["discriminator",
|
|
4311
|
+
return getStructDecoder34([
|
|
4312
|
+
["discriminator", fixDecoderSize31(getBytesDecoder31(), 8)]
|
|
4119
4313
|
]);
|
|
4120
4314
|
}
|
|
4121
4315
|
__name(getRedrawInstructionDataDecoder, "getRedrawInstructionDataDecoder");
|
|
@@ -4136,16 +4330,16 @@ async function getRedrawInstructionAsync(input, config) {
|
|
|
4136
4330
|
};
|
|
4137
4331
|
const accounts = originalAccounts;
|
|
4138
4332
|
if (!accounts.feeVault.value) {
|
|
4139
|
-
accounts.feeVault.value = await
|
|
4333
|
+
accounts.feeVault.value = await getProgramDerivedAddress14({
|
|
4140
4334
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
4141
4335
|
seeds: [
|
|
4142
|
-
|
|
4143
|
-
|
|
4336
|
+
getAddressEncoder22().encode(
|
|
4337
|
+
getAddressFromResolvedInstructionAccount9(
|
|
4144
4338
|
"subaccord",
|
|
4145
4339
|
accounts.subaccord.value
|
|
4146
4340
|
)
|
|
4147
4341
|
),
|
|
4148
|
-
|
|
4342
|
+
getBytesEncoder39().encode(
|
|
4149
4343
|
new Uint8Array([
|
|
4150
4344
|
6,
|
|
4151
4345
|
221,
|
|
@@ -4181,8 +4375,8 @@ async function getRedrawInstructionAsync(input, config) {
|
|
|
4181
4375
|
169
|
|
4182
4376
|
])
|
|
4183
4377
|
),
|
|
4184
|
-
|
|
4185
|
-
|
|
4378
|
+
getAddressEncoder22().encode(
|
|
4379
|
+
getAddressFromResolvedInstructionAccount9(
|
|
4186
4380
|
"feeToken",
|
|
4187
4381
|
accounts.feeToken.value
|
|
4188
4382
|
)
|
|
@@ -4193,7 +4387,7 @@ async function getRedrawInstructionAsync(input, config) {
|
|
|
4193
4387
|
if (!accounts.tokenProgram.value) {
|
|
4194
4388
|
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
4195
4389
|
}
|
|
4196
|
-
const getAccountMeta =
|
|
4390
|
+
const getAccountMeta = getAccountMetaFactory23(programAddress, "programId");
|
|
4197
4391
|
return Object.freeze({
|
|
4198
4392
|
accounts: [
|
|
4199
4393
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4229,7 +4423,7 @@ function getRedrawInstruction(input, config) {
|
|
|
4229
4423
|
if (!accounts.tokenProgram.value) {
|
|
4230
4424
|
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
4231
4425
|
}
|
|
4232
|
-
const getAccountMeta =
|
|
4426
|
+
const getAccountMeta = getAccountMetaFactory23(programAddress, "programId");
|
|
4233
4427
|
return Object.freeze({
|
|
4234
4428
|
accounts: [
|
|
4235
4429
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4248,8 +4442,8 @@ function getRedrawInstruction(input, config) {
|
|
|
4248
4442
|
__name(getRedrawInstruction, "getRedrawInstruction");
|
|
4249
4443
|
function parseRedrawInstruction(instruction) {
|
|
4250
4444
|
if (instruction.accounts.length < 8) {
|
|
4251
|
-
throw new
|
|
4252
|
-
|
|
4445
|
+
throw new SolanaError23(
|
|
4446
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS23,
|
|
4253
4447
|
{
|
|
4254
4448
|
actualAccountMetas: instruction.accounts.length,
|
|
4255
4449
|
expectedAccountMetas: 8
|
|
@@ -4281,19 +4475,19 @@ __name(parseRedrawInstruction, "parseRedrawInstruction");
|
|
|
4281
4475
|
|
|
4282
4476
|
// src/generated/instructions/requestVrf.ts
|
|
4283
4477
|
import {
|
|
4284
|
-
combineCodec as
|
|
4285
|
-
fixDecoderSize as
|
|
4286
|
-
fixEncoderSize as
|
|
4287
|
-
getBytesDecoder as
|
|
4288
|
-
getBytesEncoder as
|
|
4289
|
-
getStructDecoder as
|
|
4290
|
-
getStructEncoder as
|
|
4291
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4292
|
-
SolanaError as
|
|
4293
|
-
transformEncoder as
|
|
4478
|
+
combineCodec as combineCodec38,
|
|
4479
|
+
fixDecoderSize as fixDecoderSize32,
|
|
4480
|
+
fixEncoderSize as fixEncoderSize33,
|
|
4481
|
+
getBytesDecoder as getBytesDecoder32,
|
|
4482
|
+
getBytesEncoder as getBytesEncoder40,
|
|
4483
|
+
getStructDecoder as getStructDecoder35,
|
|
4484
|
+
getStructEncoder as getStructEncoder35,
|
|
4485
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS24,
|
|
4486
|
+
SolanaError as SolanaError24,
|
|
4487
|
+
transformEncoder as transformEncoder31
|
|
4294
4488
|
} from "@solana/kit";
|
|
4295
4489
|
import {
|
|
4296
|
-
getAccountMetaFactory as
|
|
4490
|
+
getAccountMetaFactory as getAccountMetaFactory24
|
|
4297
4491
|
} from "@solana/kit/program-client-core";
|
|
4298
4492
|
var REQUEST_VRF_DISCRIMINATOR = new Uint8Array([
|
|
4299
4493
|
5,
|
|
@@ -4306,15 +4500,15 @@ var REQUEST_VRF_DISCRIMINATOR = new Uint8Array([
|
|
|
4306
4500
|
226
|
|
4307
4501
|
]);
|
|
4308
4502
|
function getRequestVrfInstructionDataEncoder() {
|
|
4309
|
-
return
|
|
4310
|
-
|
|
4503
|
+
return transformEncoder31(
|
|
4504
|
+
getStructEncoder35([["discriminator", fixEncoderSize33(getBytesEncoder40(), 8)]]),
|
|
4311
4505
|
(value) => ({ ...value, discriminator: REQUEST_VRF_DISCRIMINATOR })
|
|
4312
4506
|
);
|
|
4313
4507
|
}
|
|
4314
4508
|
__name(getRequestVrfInstructionDataEncoder, "getRequestVrfInstructionDataEncoder");
|
|
4315
4509
|
function getRequestVrfInstructionDataDecoder() {
|
|
4316
|
-
return
|
|
4317
|
-
["discriminator",
|
|
4510
|
+
return getStructDecoder35([
|
|
4511
|
+
["discriminator", fixDecoderSize32(getBytesDecoder32(), 8)]
|
|
4318
4512
|
]);
|
|
4319
4513
|
}
|
|
4320
4514
|
__name(getRequestVrfInstructionDataDecoder, "getRequestVrfInstructionDataDecoder");
|
|
@@ -4349,7 +4543,7 @@ async function getRequestVrfInstructionAsync(input, config) {
|
|
|
4349
4543
|
if (!accounts.systemProgram.value) {
|
|
4350
4544
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
4351
4545
|
}
|
|
4352
|
-
const getAccountMeta =
|
|
4546
|
+
const getAccountMeta = getAccountMetaFactory24(programAddress, "programId");
|
|
4353
4547
|
return Object.freeze({
|
|
4354
4548
|
accounts: [
|
|
4355
4549
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4394,7 +4588,7 @@ function getRequestVrfInstruction(input, config) {
|
|
|
4394
4588
|
if (!accounts.systemProgram.value) {
|
|
4395
4589
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
4396
4590
|
}
|
|
4397
|
-
const getAccountMeta =
|
|
4591
|
+
const getAccountMeta = getAccountMetaFactory24(programAddress, "programId");
|
|
4398
4592
|
return Object.freeze({
|
|
4399
4593
|
accounts: [
|
|
4400
4594
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4413,8 +4607,8 @@ function getRequestVrfInstruction(input, config) {
|
|
|
4413
4607
|
__name(getRequestVrfInstruction, "getRequestVrfInstruction");
|
|
4414
4608
|
function parseRequestVrfInstruction(instruction) {
|
|
4415
4609
|
if (instruction.accounts.length < 8) {
|
|
4416
|
-
throw new
|
|
4417
|
-
|
|
4610
|
+
throw new SolanaError24(
|
|
4611
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS24,
|
|
4418
4612
|
{
|
|
4419
4613
|
actualAccountMetas: instruction.accounts.length,
|
|
4420
4614
|
expectedAccountMetas: 8
|
|
@@ -4446,30 +4640,30 @@ __name(parseRequestVrfInstruction, "parseRequestVrfInstruction");
|
|
|
4446
4640
|
|
|
4447
4641
|
// src/generated/instructions/requestWithdraw.ts
|
|
4448
4642
|
import {
|
|
4449
|
-
combineCodec as
|
|
4450
|
-
fixDecoderSize as
|
|
4451
|
-
fixEncoderSize as
|
|
4643
|
+
combineCodec as combineCodec39,
|
|
4644
|
+
fixDecoderSize as fixDecoderSize33,
|
|
4645
|
+
fixEncoderSize as fixEncoderSize34,
|
|
4452
4646
|
getArrayDecoder as getArrayDecoder8,
|
|
4453
4647
|
getArrayEncoder as getArrayEncoder8,
|
|
4454
|
-
getBytesDecoder as
|
|
4455
|
-
getBytesEncoder as
|
|
4456
|
-
getStructDecoder as
|
|
4457
|
-
getStructEncoder as
|
|
4648
|
+
getBytesDecoder as getBytesDecoder33,
|
|
4649
|
+
getBytesEncoder as getBytesEncoder41,
|
|
4650
|
+
getStructDecoder as getStructDecoder36,
|
|
4651
|
+
getStructEncoder as getStructEncoder36,
|
|
4458
4652
|
getU64Decoder as getU64Decoder15,
|
|
4459
4653
|
getU64Encoder as getU64Encoder17,
|
|
4460
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4461
|
-
SolanaError as
|
|
4462
|
-
transformEncoder as
|
|
4654
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS25,
|
|
4655
|
+
SolanaError as SolanaError25,
|
|
4656
|
+
transformEncoder as transformEncoder32
|
|
4463
4657
|
} from "@solana/kit";
|
|
4464
4658
|
import {
|
|
4465
|
-
getAccountMetaFactory as
|
|
4466
|
-
getAddressFromResolvedInstructionAccount as
|
|
4659
|
+
getAccountMetaFactory as getAccountMetaFactory25,
|
|
4660
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount10
|
|
4467
4661
|
} from "@solana/kit/program-client-core";
|
|
4468
4662
|
var REQUEST_WITHDRAW_DISCRIMINATOR = new Uint8Array([137, 95, 187, 96, 250, 138, 31, 182]);
|
|
4469
4663
|
function getRequestWithdrawInstructionDataEncoder() {
|
|
4470
|
-
return
|
|
4471
|
-
|
|
4472
|
-
["discriminator",
|
|
4664
|
+
return transformEncoder32(
|
|
4665
|
+
getStructEncoder36([
|
|
4666
|
+
["discriminator", fixEncoderSize34(getBytesEncoder41(), 8)],
|
|
4473
4667
|
["amount", getU64Encoder17()],
|
|
4474
4668
|
["path", getArrayEncoder8(getMSTNodeEncoder())]
|
|
4475
4669
|
]),
|
|
@@ -4478,8 +4672,8 @@ function getRequestWithdrawInstructionDataEncoder() {
|
|
|
4478
4672
|
}
|
|
4479
4673
|
__name(getRequestWithdrawInstructionDataEncoder, "getRequestWithdrawInstructionDataEncoder");
|
|
4480
4674
|
function getRequestWithdrawInstructionDataDecoder() {
|
|
4481
|
-
return
|
|
4482
|
-
["discriminator",
|
|
4675
|
+
return getStructDecoder36([
|
|
4676
|
+
["discriminator", fixDecoderSize33(getBytesDecoder33(), 8)],
|
|
4483
4677
|
["amount", getU64Decoder15()],
|
|
4484
4678
|
["path", getArrayDecoder8(getMSTNodeDecoder())]
|
|
4485
4679
|
]);
|
|
@@ -4496,17 +4690,17 @@ async function getRequestWithdrawInstructionAsync(input, config) {
|
|
|
4496
4690
|
const args = { ...input };
|
|
4497
4691
|
if (!accounts.jurorStake.value) {
|
|
4498
4692
|
accounts.jurorStake.value = await findJurorStakePda({
|
|
4499
|
-
subaccord:
|
|
4693
|
+
subaccord: getAddressFromResolvedInstructionAccount10(
|
|
4500
4694
|
"subaccord",
|
|
4501
4695
|
accounts.subaccord.value
|
|
4502
4696
|
),
|
|
4503
|
-
juror:
|
|
4697
|
+
juror: getAddressFromResolvedInstructionAccount10(
|
|
4504
4698
|
"juror",
|
|
4505
4699
|
accounts.juror.value
|
|
4506
4700
|
)
|
|
4507
4701
|
});
|
|
4508
4702
|
}
|
|
4509
|
-
const getAccountMeta =
|
|
4703
|
+
const getAccountMeta = getAccountMetaFactory25(programAddress, "programId");
|
|
4510
4704
|
return Object.freeze({
|
|
4511
4705
|
accounts: [
|
|
4512
4706
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -4529,7 +4723,7 @@ function getRequestWithdrawInstruction(input, config) {
|
|
|
4529
4723
|
};
|
|
4530
4724
|
const accounts = originalAccounts;
|
|
4531
4725
|
const args = { ...input };
|
|
4532
|
-
const getAccountMeta =
|
|
4726
|
+
const getAccountMeta = getAccountMetaFactory25(programAddress, "programId");
|
|
4533
4727
|
return Object.freeze({
|
|
4534
4728
|
accounts: [
|
|
4535
4729
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -4545,8 +4739,8 @@ function getRequestWithdrawInstruction(input, config) {
|
|
|
4545
4739
|
__name(getRequestWithdrawInstruction, "getRequestWithdrawInstruction");
|
|
4546
4740
|
function parseRequestWithdrawInstruction(instruction) {
|
|
4547
4741
|
if (instruction.accounts.length < 3) {
|
|
4548
|
-
throw new
|
|
4549
|
-
|
|
4742
|
+
throw new SolanaError25(
|
|
4743
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS25,
|
|
4550
4744
|
{
|
|
4551
4745
|
actualAccountMetas: instruction.accounts.length,
|
|
4552
4746
|
expectedAccountMetas: 3
|
|
@@ -4573,21 +4767,21 @@ __name(parseRequestWithdrawInstruction, "parseRequestWithdrawInstruction");
|
|
|
4573
4767
|
|
|
4574
4768
|
// src/generated/instructions/reveal.ts
|
|
4575
4769
|
import {
|
|
4576
|
-
combineCodec as
|
|
4577
|
-
fixDecoderSize as
|
|
4578
|
-
fixEncoderSize as
|
|
4579
|
-
getBytesDecoder as
|
|
4580
|
-
getBytesEncoder as
|
|
4581
|
-
getStructDecoder as
|
|
4582
|
-
getStructEncoder as
|
|
4770
|
+
combineCodec as combineCodec40,
|
|
4771
|
+
fixDecoderSize as fixDecoderSize34,
|
|
4772
|
+
fixEncoderSize as fixEncoderSize35,
|
|
4773
|
+
getBytesDecoder as getBytesDecoder34,
|
|
4774
|
+
getBytesEncoder as getBytesEncoder42,
|
|
4775
|
+
getStructDecoder as getStructDecoder37,
|
|
4776
|
+
getStructEncoder as getStructEncoder37,
|
|
4583
4777
|
getU64Decoder as getU64Decoder16,
|
|
4584
4778
|
getU64Encoder as getU64Encoder18,
|
|
4585
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4586
|
-
SolanaError as
|
|
4587
|
-
transformEncoder as
|
|
4779
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS26,
|
|
4780
|
+
SolanaError as SolanaError26,
|
|
4781
|
+
transformEncoder as transformEncoder33
|
|
4588
4782
|
} from "@solana/kit";
|
|
4589
4783
|
import {
|
|
4590
|
-
getAccountMetaFactory as
|
|
4784
|
+
getAccountMetaFactory as getAccountMetaFactory26
|
|
4591
4785
|
} from "@solana/kit/program-client-core";
|
|
4592
4786
|
var REVEAL_DISCRIMINATOR = new Uint8Array([
|
|
4593
4787
|
9,
|
|
@@ -4600,21 +4794,21 @@ var REVEAL_DISCRIMINATOR = new Uint8Array([
|
|
|
4600
4794
|
115
|
|
4601
4795
|
]);
|
|
4602
4796
|
function getRevealInstructionDataEncoder() {
|
|
4603
|
-
return
|
|
4604
|
-
|
|
4605
|
-
["discriminator",
|
|
4797
|
+
return transformEncoder33(
|
|
4798
|
+
getStructEncoder37([
|
|
4799
|
+
["discriminator", fixEncoderSize35(getBytesEncoder42(), 8)],
|
|
4606
4800
|
["vote", getU64Encoder18()],
|
|
4607
|
-
["salt",
|
|
4801
|
+
["salt", fixEncoderSize35(getBytesEncoder42(), 32)]
|
|
4608
4802
|
]),
|
|
4609
4803
|
(value) => ({ ...value, discriminator: REVEAL_DISCRIMINATOR })
|
|
4610
4804
|
);
|
|
4611
4805
|
}
|
|
4612
4806
|
__name(getRevealInstructionDataEncoder, "getRevealInstructionDataEncoder");
|
|
4613
4807
|
function getRevealInstructionDataDecoder() {
|
|
4614
|
-
return
|
|
4615
|
-
["discriminator",
|
|
4808
|
+
return getStructDecoder37([
|
|
4809
|
+
["discriminator", fixDecoderSize34(getBytesDecoder34(), 8)],
|
|
4616
4810
|
["vote", getU64Decoder16()],
|
|
4617
|
-
["salt",
|
|
4811
|
+
["salt", fixDecoderSize34(getBytesDecoder34(), 32)]
|
|
4618
4812
|
]);
|
|
4619
4813
|
}
|
|
4620
4814
|
__name(getRevealInstructionDataDecoder, "getRevealInstructionDataDecoder");
|
|
@@ -4628,7 +4822,7 @@ function getRevealInstruction(input, config) {
|
|
|
4628
4822
|
};
|
|
4629
4823
|
const accounts = originalAccounts;
|
|
4630
4824
|
const args = { ...input };
|
|
4631
|
-
const getAccountMeta =
|
|
4825
|
+
const getAccountMeta = getAccountMetaFactory26(programAddress, "programId");
|
|
4632
4826
|
return Object.freeze({
|
|
4633
4827
|
accounts: [
|
|
4634
4828
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -4645,8 +4839,8 @@ function getRevealInstruction(input, config) {
|
|
|
4645
4839
|
__name(getRevealInstruction, "getRevealInstruction");
|
|
4646
4840
|
function parseRevealInstruction(instruction) {
|
|
4647
4841
|
if (instruction.accounts.length < 4) {
|
|
4648
|
-
throw new
|
|
4649
|
-
|
|
4842
|
+
throw new SolanaError26(
|
|
4843
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS26,
|
|
4650
4844
|
{
|
|
4651
4845
|
actualAccountMetas: instruction.accounts.length,
|
|
4652
4846
|
expectedAccountMetas: 4
|
|
@@ -4674,22 +4868,22 @@ __name(parseRevealInstruction, "parseRevealInstruction");
|
|
|
4674
4868
|
|
|
4675
4869
|
// src/generated/instructions/settleRound.ts
|
|
4676
4870
|
import {
|
|
4677
|
-
combineCodec as
|
|
4678
|
-
fixDecoderSize as
|
|
4679
|
-
fixEncoderSize as
|
|
4680
|
-
getBytesDecoder as
|
|
4681
|
-
getBytesEncoder as
|
|
4682
|
-
getStructDecoder as
|
|
4683
|
-
getStructEncoder as
|
|
4871
|
+
combineCodec as combineCodec41,
|
|
4872
|
+
fixDecoderSize as fixDecoderSize35,
|
|
4873
|
+
fixEncoderSize as fixEncoderSize36,
|
|
4874
|
+
getBytesDecoder as getBytesDecoder35,
|
|
4875
|
+
getBytesEncoder as getBytesEncoder43,
|
|
4876
|
+
getStructDecoder as getStructDecoder38,
|
|
4877
|
+
getStructEncoder as getStructEncoder38,
|
|
4684
4878
|
getU32Decoder as getU32Decoder10,
|
|
4685
4879
|
getU32Encoder as getU32Encoder12,
|
|
4686
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4687
|
-
SolanaError as
|
|
4688
|
-
transformEncoder as
|
|
4880
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS27,
|
|
4881
|
+
SolanaError as SolanaError27,
|
|
4882
|
+
transformEncoder as transformEncoder34
|
|
4689
4883
|
} from "@solana/kit";
|
|
4690
4884
|
import {
|
|
4691
|
-
getAccountMetaFactory as
|
|
4692
|
-
getAddressFromResolvedInstructionAccount as
|
|
4885
|
+
getAccountMetaFactory as getAccountMetaFactory27,
|
|
4886
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount11,
|
|
4693
4887
|
getNonNullResolvedInstructionInput as getNonNullResolvedInstructionInput5
|
|
4694
4888
|
} from "@solana/kit/program-client-core";
|
|
4695
4889
|
var SETTLE_ROUND_DISCRIMINATOR = new Uint8Array([
|
|
@@ -4703,9 +4897,9 @@ var SETTLE_ROUND_DISCRIMINATOR = new Uint8Array([
|
|
|
4703
4897
|
77
|
|
4704
4898
|
]);
|
|
4705
4899
|
function getSettleRoundInstructionDataEncoder() {
|
|
4706
|
-
return
|
|
4707
|
-
|
|
4708
|
-
["discriminator",
|
|
4900
|
+
return transformEncoder34(
|
|
4901
|
+
getStructEncoder38([
|
|
4902
|
+
["discriminator", fixEncoderSize36(getBytesEncoder43(), 8)],
|
|
4709
4903
|
["roundIdx", getU32Encoder12()]
|
|
4710
4904
|
]),
|
|
4711
4905
|
(value) => ({ ...value, discriminator: SETTLE_ROUND_DISCRIMINATOR })
|
|
@@ -4713,8 +4907,8 @@ function getSettleRoundInstructionDataEncoder() {
|
|
|
4713
4907
|
}
|
|
4714
4908
|
__name(getSettleRoundInstructionDataEncoder, "getSettleRoundInstructionDataEncoder");
|
|
4715
4909
|
function getSettleRoundInstructionDataDecoder() {
|
|
4716
|
-
return
|
|
4717
|
-
["discriminator",
|
|
4910
|
+
return getStructDecoder38([
|
|
4911
|
+
["discriminator", fixDecoderSize35(getBytesDecoder35(), 8)],
|
|
4718
4912
|
["roundIdx", getU32Decoder10()]
|
|
4719
4913
|
]);
|
|
4720
4914
|
}
|
|
@@ -4724,21 +4918,21 @@ async function getSettleRoundInstructionAsync(input, config) {
|
|
|
4724
4918
|
const originalAccounts = {
|
|
4725
4919
|
caller: { value: input.caller ?? null, isWritable: true },
|
|
4726
4920
|
subaccord: { value: input.subaccord ?? null, isWritable: false },
|
|
4727
|
-
dispute: { value: input.dispute ?? null, isWritable:
|
|
4921
|
+
dispute: { value: input.dispute ?? null, isWritable: true },
|
|
4728
4922
|
round: { value: input.round ?? null, isWritable: true }
|
|
4729
4923
|
};
|
|
4730
4924
|
const accounts = originalAccounts;
|
|
4731
4925
|
const args = { ...input };
|
|
4732
4926
|
if (!accounts.round.value) {
|
|
4733
4927
|
accounts.round.value = await findRoundPda({
|
|
4734
|
-
dispute:
|
|
4928
|
+
dispute: getAddressFromResolvedInstructionAccount11(
|
|
4735
4929
|
"dispute",
|
|
4736
4930
|
accounts.dispute.value
|
|
4737
4931
|
),
|
|
4738
4932
|
roundIdx: getNonNullResolvedInstructionInput5("roundIdx", args.roundIdx)
|
|
4739
4933
|
});
|
|
4740
4934
|
}
|
|
4741
|
-
const getAccountMeta =
|
|
4935
|
+
const getAccountMeta = getAccountMetaFactory27(programAddress, "programId");
|
|
4742
4936
|
return Object.freeze({
|
|
4743
4937
|
accounts: [
|
|
4744
4938
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4758,12 +4952,12 @@ function getSettleRoundInstruction(input, config) {
|
|
|
4758
4952
|
const originalAccounts = {
|
|
4759
4953
|
caller: { value: input.caller ?? null, isWritable: true },
|
|
4760
4954
|
subaccord: { value: input.subaccord ?? null, isWritable: false },
|
|
4761
|
-
dispute: { value: input.dispute ?? null, isWritable:
|
|
4955
|
+
dispute: { value: input.dispute ?? null, isWritable: true },
|
|
4762
4956
|
round: { value: input.round ?? null, isWritable: true }
|
|
4763
4957
|
};
|
|
4764
4958
|
const accounts = originalAccounts;
|
|
4765
4959
|
const args = { ...input };
|
|
4766
|
-
const getAccountMeta =
|
|
4960
|
+
const getAccountMeta = getAccountMetaFactory27(programAddress, "programId");
|
|
4767
4961
|
return Object.freeze({
|
|
4768
4962
|
accounts: [
|
|
4769
4963
|
getAccountMeta("caller", accounts.caller),
|
|
@@ -4780,8 +4974,8 @@ function getSettleRoundInstruction(input, config) {
|
|
|
4780
4974
|
__name(getSettleRoundInstruction, "getSettleRoundInstruction");
|
|
4781
4975
|
function parseSettleRoundInstruction(instruction) {
|
|
4782
4976
|
if (instruction.accounts.length < 4) {
|
|
4783
|
-
throw new
|
|
4784
|
-
|
|
4977
|
+
throw new SolanaError27(
|
|
4978
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS27,
|
|
4785
4979
|
{
|
|
4786
4980
|
actualAccountMetas: instruction.accounts.length,
|
|
4787
4981
|
expectedAccountMetas: 4
|
|
@@ -4809,26 +5003,26 @@ __name(parseSettleRoundInstruction, "parseSettleRoundInstruction");
|
|
|
4809
5003
|
|
|
4810
5004
|
// src/generated/instructions/stake.ts
|
|
4811
5005
|
import {
|
|
4812
|
-
combineCodec as
|
|
4813
|
-
fixDecoderSize as
|
|
4814
|
-
fixEncoderSize as
|
|
4815
|
-
getAddressEncoder as
|
|
5006
|
+
combineCodec as combineCodec42,
|
|
5007
|
+
fixDecoderSize as fixDecoderSize36,
|
|
5008
|
+
fixEncoderSize as fixEncoderSize37,
|
|
5009
|
+
getAddressEncoder as getAddressEncoder23,
|
|
4816
5010
|
getArrayDecoder as getArrayDecoder9,
|
|
4817
5011
|
getArrayEncoder as getArrayEncoder9,
|
|
4818
|
-
getBytesDecoder as
|
|
4819
|
-
getBytesEncoder as
|
|
4820
|
-
getProgramDerivedAddress as
|
|
4821
|
-
getStructDecoder as
|
|
4822
|
-
getStructEncoder as
|
|
5012
|
+
getBytesDecoder as getBytesDecoder36,
|
|
5013
|
+
getBytesEncoder as getBytesEncoder44,
|
|
5014
|
+
getProgramDerivedAddress as getProgramDerivedAddress15,
|
|
5015
|
+
getStructDecoder as getStructDecoder39,
|
|
5016
|
+
getStructEncoder as getStructEncoder39,
|
|
4823
5017
|
getU64Decoder as getU64Decoder17,
|
|
4824
5018
|
getU64Encoder as getU64Encoder19,
|
|
4825
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
4826
|
-
SolanaError as
|
|
4827
|
-
transformEncoder as
|
|
5019
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS28,
|
|
5020
|
+
SolanaError as SolanaError28,
|
|
5021
|
+
transformEncoder as transformEncoder35
|
|
4828
5022
|
} from "@solana/kit";
|
|
4829
5023
|
import {
|
|
4830
|
-
getAccountMetaFactory as
|
|
4831
|
-
getAddressFromResolvedInstructionAccount as
|
|
5024
|
+
getAccountMetaFactory as getAccountMetaFactory28,
|
|
5025
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount12
|
|
4832
5026
|
} from "@solana/kit/program-client-core";
|
|
4833
5027
|
var STAKE_DISCRIMINATOR = new Uint8Array([
|
|
4834
5028
|
206,
|
|
@@ -4841,9 +5035,9 @@ var STAKE_DISCRIMINATOR = new Uint8Array([
|
|
|
4841
5035
|
108
|
|
4842
5036
|
]);
|
|
4843
5037
|
function getStakeInstructionDataEncoder() {
|
|
4844
|
-
return
|
|
4845
|
-
|
|
4846
|
-
["discriminator",
|
|
5038
|
+
return transformEncoder35(
|
|
5039
|
+
getStructEncoder39([
|
|
5040
|
+
["discriminator", fixEncoderSize37(getBytesEncoder44(), 8)],
|
|
4847
5041
|
["amount", getU64Encoder19()],
|
|
4848
5042
|
["path", getArrayEncoder9(getMSTNodeEncoder())]
|
|
4849
5043
|
]),
|
|
@@ -4852,8 +5046,8 @@ function getStakeInstructionDataEncoder() {
|
|
|
4852
5046
|
}
|
|
4853
5047
|
__name(getStakeInstructionDataEncoder, "getStakeInstructionDataEncoder");
|
|
4854
5048
|
function getStakeInstructionDataDecoder() {
|
|
4855
|
-
return
|
|
4856
|
-
["discriminator",
|
|
5049
|
+
return getStructDecoder39([
|
|
5050
|
+
["discriminator", fixDecoderSize36(getBytesDecoder36(), 8)],
|
|
4857
5051
|
["amount", getU64Decoder17()],
|
|
4858
5052
|
["path", getArrayDecoder9(getMSTNodeDecoder())]
|
|
4859
5053
|
]);
|
|
@@ -4886,27 +5080,27 @@ async function getStakeInstructionAsync(input, config) {
|
|
|
4886
5080
|
}
|
|
4887
5081
|
if (!accounts.jurorStake.value) {
|
|
4888
5082
|
accounts.jurorStake.value = await findJurorStakePda({
|
|
4889
|
-
subaccord:
|
|
5083
|
+
subaccord: getAddressFromResolvedInstructionAccount12(
|
|
4890
5084
|
"subaccord",
|
|
4891
5085
|
accounts.subaccord.value
|
|
4892
5086
|
),
|
|
4893
|
-
juror:
|
|
5087
|
+
juror: getAddressFromResolvedInstructionAccount12(
|
|
4894
5088
|
"juror",
|
|
4895
5089
|
accounts.juror.value
|
|
4896
5090
|
)
|
|
4897
5091
|
});
|
|
4898
5092
|
}
|
|
4899
5093
|
if (!accounts.jurorTokenAccount.value) {
|
|
4900
|
-
accounts.jurorTokenAccount.value = await
|
|
5094
|
+
accounts.jurorTokenAccount.value = await getProgramDerivedAddress15({
|
|
4901
5095
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
4902
5096
|
seeds: [
|
|
4903
|
-
|
|
4904
|
-
|
|
5097
|
+
getAddressEncoder23().encode(
|
|
5098
|
+
getAddressFromResolvedInstructionAccount12(
|
|
4905
5099
|
"juror",
|
|
4906
5100
|
accounts.juror.value
|
|
4907
5101
|
)
|
|
4908
5102
|
),
|
|
4909
|
-
|
|
5103
|
+
getBytesEncoder44().encode(
|
|
4910
5104
|
new Uint8Array([
|
|
4911
5105
|
6,
|
|
4912
5106
|
221,
|
|
@@ -4942,8 +5136,8 @@ async function getStakeInstructionAsync(input, config) {
|
|
|
4942
5136
|
169
|
|
4943
5137
|
])
|
|
4944
5138
|
),
|
|
4945
|
-
|
|
4946
|
-
|
|
5139
|
+
getAddressEncoder23().encode(
|
|
5140
|
+
getAddressFromResolvedInstructionAccount12(
|
|
4947
5141
|
"stakingToken",
|
|
4948
5142
|
accounts.stakingToken.value
|
|
4949
5143
|
)
|
|
@@ -4952,16 +5146,16 @@ async function getStakeInstructionAsync(input, config) {
|
|
|
4952
5146
|
});
|
|
4953
5147
|
}
|
|
4954
5148
|
if (!accounts.stakeVault.value) {
|
|
4955
|
-
accounts.stakeVault.value = await
|
|
5149
|
+
accounts.stakeVault.value = await getProgramDerivedAddress15({
|
|
4956
5150
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
4957
5151
|
seeds: [
|
|
4958
|
-
|
|
4959
|
-
|
|
5152
|
+
getAddressEncoder23().encode(
|
|
5153
|
+
getAddressFromResolvedInstructionAccount12(
|
|
4960
5154
|
"subaccord",
|
|
4961
5155
|
accounts.subaccord.value
|
|
4962
5156
|
)
|
|
4963
5157
|
),
|
|
4964
|
-
|
|
5158
|
+
getBytesEncoder44().encode(
|
|
4965
5159
|
new Uint8Array([
|
|
4966
5160
|
6,
|
|
4967
5161
|
221,
|
|
@@ -4997,8 +5191,8 @@ async function getStakeInstructionAsync(input, config) {
|
|
|
4997
5191
|
169
|
|
4998
5192
|
])
|
|
4999
5193
|
),
|
|
5000
|
-
|
|
5001
|
-
|
|
5194
|
+
getAddressEncoder23().encode(
|
|
5195
|
+
getAddressFromResolvedInstructionAccount12(
|
|
5002
5196
|
"stakingToken",
|
|
5003
5197
|
accounts.stakingToken.value
|
|
5004
5198
|
)
|
|
@@ -5015,7 +5209,7 @@ async function getStakeInstructionAsync(input, config) {
|
|
|
5015
5209
|
if (!accounts.systemProgram.value) {
|
|
5016
5210
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
5017
5211
|
}
|
|
5018
|
-
const getAccountMeta =
|
|
5212
|
+
const getAccountMeta = getAccountMetaFactory28(programAddress, "programId");
|
|
5019
5213
|
return Object.freeze({
|
|
5020
5214
|
accounts: [
|
|
5021
5215
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -5067,7 +5261,7 @@ function getStakeInstruction(input, config) {
|
|
|
5067
5261
|
if (!accounts.systemProgram.value) {
|
|
5068
5262
|
accounts.systemProgram.value = "11111111111111111111111111111111";
|
|
5069
5263
|
}
|
|
5070
|
-
const getAccountMeta =
|
|
5264
|
+
const getAccountMeta = getAccountMetaFactory28(programAddress, "programId");
|
|
5071
5265
|
return Object.freeze({
|
|
5072
5266
|
accounts: [
|
|
5073
5267
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -5090,8 +5284,8 @@ function getStakeInstruction(input, config) {
|
|
|
5090
5284
|
__name(getStakeInstruction, "getStakeInstruction");
|
|
5091
5285
|
function parseStakeInstruction(instruction) {
|
|
5092
5286
|
if (instruction.accounts.length < 10) {
|
|
5093
|
-
throw new
|
|
5094
|
-
|
|
5287
|
+
throw new SolanaError28(
|
|
5288
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS28,
|
|
5095
5289
|
{
|
|
5096
5290
|
actualAccountMetas: instruction.accounts.length,
|
|
5097
5291
|
expectedAccountMetas: 10
|
|
@@ -5125,22 +5319,22 @@ __name(parseStakeInstruction, "parseStakeInstruction");
|
|
|
5125
5319
|
|
|
5126
5320
|
// src/generated/instructions/withdraw.ts
|
|
5127
5321
|
import {
|
|
5128
|
-
combineCodec as
|
|
5129
|
-
fixDecoderSize as
|
|
5130
|
-
fixEncoderSize as
|
|
5131
|
-
getAddressEncoder as
|
|
5132
|
-
getBytesDecoder as
|
|
5133
|
-
getBytesEncoder as
|
|
5134
|
-
getProgramDerivedAddress as
|
|
5135
|
-
getStructDecoder as
|
|
5136
|
-
getStructEncoder as
|
|
5137
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
5138
|
-
SolanaError as
|
|
5139
|
-
transformEncoder as
|
|
5322
|
+
combineCodec as combineCodec43,
|
|
5323
|
+
fixDecoderSize as fixDecoderSize37,
|
|
5324
|
+
fixEncoderSize as fixEncoderSize38,
|
|
5325
|
+
getAddressEncoder as getAddressEncoder24,
|
|
5326
|
+
getBytesDecoder as getBytesDecoder37,
|
|
5327
|
+
getBytesEncoder as getBytesEncoder45,
|
|
5328
|
+
getProgramDerivedAddress as getProgramDerivedAddress16,
|
|
5329
|
+
getStructDecoder as getStructDecoder40,
|
|
5330
|
+
getStructEncoder as getStructEncoder40,
|
|
5331
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS29,
|
|
5332
|
+
SolanaError as SolanaError29,
|
|
5333
|
+
transformEncoder as transformEncoder36
|
|
5140
5334
|
} from "@solana/kit";
|
|
5141
5335
|
import {
|
|
5142
|
-
getAccountMetaFactory as
|
|
5143
|
-
getAddressFromResolvedInstructionAccount as
|
|
5336
|
+
getAccountMetaFactory as getAccountMetaFactory29,
|
|
5337
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount13
|
|
5144
5338
|
} from "@solana/kit/program-client-core";
|
|
5145
5339
|
var WITHDRAW_DISCRIMINATOR = new Uint8Array([
|
|
5146
5340
|
183,
|
|
@@ -5153,15 +5347,15 @@ var WITHDRAW_DISCRIMINATOR = new Uint8Array([
|
|
|
5153
5347
|
34
|
|
5154
5348
|
]);
|
|
5155
5349
|
function getWithdrawInstructionDataEncoder() {
|
|
5156
|
-
return
|
|
5157
|
-
|
|
5350
|
+
return transformEncoder36(
|
|
5351
|
+
getStructEncoder40([["discriminator", fixEncoderSize38(getBytesEncoder45(), 8)]]),
|
|
5158
5352
|
(value) => ({ ...value, discriminator: WITHDRAW_DISCRIMINATOR })
|
|
5159
5353
|
);
|
|
5160
5354
|
}
|
|
5161
5355
|
__name(getWithdrawInstructionDataEncoder, "getWithdrawInstructionDataEncoder");
|
|
5162
5356
|
function getWithdrawInstructionDataDecoder() {
|
|
5163
|
-
return
|
|
5164
|
-
["discriminator",
|
|
5357
|
+
return getStructDecoder40([
|
|
5358
|
+
["discriminator", fixDecoderSize37(getBytesDecoder37(), 8)]
|
|
5165
5359
|
]);
|
|
5166
5360
|
}
|
|
5167
5361
|
__name(getWithdrawInstructionDataDecoder, "getWithdrawInstructionDataDecoder");
|
|
@@ -5182,27 +5376,27 @@ async function getWithdrawInstructionAsync(input, config) {
|
|
|
5182
5376
|
const accounts = originalAccounts;
|
|
5183
5377
|
if (!accounts.jurorStake.value) {
|
|
5184
5378
|
accounts.jurorStake.value = await findJurorStakePda({
|
|
5185
|
-
subaccord:
|
|
5379
|
+
subaccord: getAddressFromResolvedInstructionAccount13(
|
|
5186
5380
|
"subaccord",
|
|
5187
5381
|
accounts.subaccord.value
|
|
5188
5382
|
),
|
|
5189
|
-
juror:
|
|
5383
|
+
juror: getAddressFromResolvedInstructionAccount13(
|
|
5190
5384
|
"juror",
|
|
5191
5385
|
accounts.juror.value
|
|
5192
5386
|
)
|
|
5193
5387
|
});
|
|
5194
5388
|
}
|
|
5195
5389
|
if (!accounts.jurorTokenAccount.value) {
|
|
5196
|
-
accounts.jurorTokenAccount.value = await
|
|
5390
|
+
accounts.jurorTokenAccount.value = await getProgramDerivedAddress16({
|
|
5197
5391
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
5198
5392
|
seeds: [
|
|
5199
|
-
|
|
5200
|
-
|
|
5393
|
+
getAddressEncoder24().encode(
|
|
5394
|
+
getAddressFromResolvedInstructionAccount13(
|
|
5201
5395
|
"juror",
|
|
5202
5396
|
accounts.juror.value
|
|
5203
5397
|
)
|
|
5204
5398
|
),
|
|
5205
|
-
|
|
5399
|
+
getBytesEncoder45().encode(
|
|
5206
5400
|
new Uint8Array([
|
|
5207
5401
|
6,
|
|
5208
5402
|
221,
|
|
@@ -5238,8 +5432,8 @@ async function getWithdrawInstructionAsync(input, config) {
|
|
|
5238
5432
|
169
|
|
5239
5433
|
])
|
|
5240
5434
|
),
|
|
5241
|
-
|
|
5242
|
-
|
|
5435
|
+
getAddressEncoder24().encode(
|
|
5436
|
+
getAddressFromResolvedInstructionAccount13(
|
|
5243
5437
|
"stakingToken",
|
|
5244
5438
|
accounts.stakingToken.value
|
|
5245
5439
|
)
|
|
@@ -5248,16 +5442,16 @@ async function getWithdrawInstructionAsync(input, config) {
|
|
|
5248
5442
|
});
|
|
5249
5443
|
}
|
|
5250
5444
|
if (!accounts.stakeVault.value) {
|
|
5251
|
-
accounts.stakeVault.value = await
|
|
5445
|
+
accounts.stakeVault.value = await getProgramDerivedAddress16({
|
|
5252
5446
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
5253
5447
|
seeds: [
|
|
5254
|
-
|
|
5255
|
-
|
|
5448
|
+
getAddressEncoder24().encode(
|
|
5449
|
+
getAddressFromResolvedInstructionAccount13(
|
|
5256
5450
|
"subaccord",
|
|
5257
5451
|
accounts.subaccord.value
|
|
5258
5452
|
)
|
|
5259
5453
|
),
|
|
5260
|
-
|
|
5454
|
+
getBytesEncoder45().encode(
|
|
5261
5455
|
new Uint8Array([
|
|
5262
5456
|
6,
|
|
5263
5457
|
221,
|
|
@@ -5293,8 +5487,8 @@ async function getWithdrawInstructionAsync(input, config) {
|
|
|
5293
5487
|
169
|
|
5294
5488
|
])
|
|
5295
5489
|
),
|
|
5296
|
-
|
|
5297
|
-
|
|
5490
|
+
getAddressEncoder24().encode(
|
|
5491
|
+
getAddressFromResolvedInstructionAccount13(
|
|
5298
5492
|
"stakingToken",
|
|
5299
5493
|
accounts.stakingToken.value
|
|
5300
5494
|
)
|
|
@@ -5305,7 +5499,7 @@ async function getWithdrawInstructionAsync(input, config) {
|
|
|
5305
5499
|
if (!accounts.tokenProgram.value) {
|
|
5306
5500
|
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5307
5501
|
}
|
|
5308
|
-
const getAccountMeta =
|
|
5502
|
+
const getAccountMeta = getAccountMetaFactory29(programAddress, "programId");
|
|
5309
5503
|
return Object.freeze({
|
|
5310
5504
|
accounts: [
|
|
5311
5505
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -5339,7 +5533,7 @@ function getWithdrawInstruction(input, config) {
|
|
|
5339
5533
|
if (!accounts.tokenProgram.value) {
|
|
5340
5534
|
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5341
5535
|
}
|
|
5342
|
-
const getAccountMeta =
|
|
5536
|
+
const getAccountMeta = getAccountMetaFactory29(programAddress, "programId");
|
|
5343
5537
|
return Object.freeze({
|
|
5344
5538
|
accounts: [
|
|
5345
5539
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -5357,8 +5551,8 @@ function getWithdrawInstruction(input, config) {
|
|
|
5357
5551
|
__name(getWithdrawInstruction, "getWithdrawInstruction");
|
|
5358
5552
|
function parseWithdrawInstruction(instruction) {
|
|
5359
5553
|
if (instruction.accounts.length < 7) {
|
|
5360
|
-
throw new
|
|
5361
|
-
|
|
5554
|
+
throw new SolanaError29(
|
|
5555
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS29,
|
|
5362
5556
|
{
|
|
5363
5557
|
actualAccountMetas: instruction.accounts.length,
|
|
5364
5558
|
expectedAccountMetas: 7
|
|
@@ -5389,22 +5583,22 @@ __name(parseWithdrawInstruction, "parseWithdrawInstruction");
|
|
|
5389
5583
|
|
|
5390
5584
|
// src/generated/instructions/withdrawFees.ts
|
|
5391
5585
|
import {
|
|
5392
|
-
combineCodec as
|
|
5393
|
-
fixDecoderSize as
|
|
5394
|
-
fixEncoderSize as
|
|
5395
|
-
getAddressEncoder as
|
|
5396
|
-
getBytesDecoder as
|
|
5397
|
-
getBytesEncoder as
|
|
5398
|
-
getProgramDerivedAddress as
|
|
5399
|
-
getStructDecoder as
|
|
5400
|
-
getStructEncoder as
|
|
5401
|
-
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as
|
|
5402
|
-
SolanaError as
|
|
5403
|
-
transformEncoder as
|
|
5586
|
+
combineCodec as combineCodec44,
|
|
5587
|
+
fixDecoderSize as fixDecoderSize38,
|
|
5588
|
+
fixEncoderSize as fixEncoderSize39,
|
|
5589
|
+
getAddressEncoder as getAddressEncoder25,
|
|
5590
|
+
getBytesDecoder as getBytesDecoder38,
|
|
5591
|
+
getBytesEncoder as getBytesEncoder46,
|
|
5592
|
+
getProgramDerivedAddress as getProgramDerivedAddress17,
|
|
5593
|
+
getStructDecoder as getStructDecoder41,
|
|
5594
|
+
getStructEncoder as getStructEncoder41,
|
|
5595
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS as SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS30,
|
|
5596
|
+
SolanaError as SolanaError30,
|
|
5597
|
+
transformEncoder as transformEncoder37
|
|
5404
5598
|
} from "@solana/kit";
|
|
5405
5599
|
import {
|
|
5406
|
-
getAccountMetaFactory as
|
|
5407
|
-
getAddressFromResolvedInstructionAccount as
|
|
5600
|
+
getAccountMetaFactory as getAccountMetaFactory30,
|
|
5601
|
+
getAddressFromResolvedInstructionAccount as getAddressFromResolvedInstructionAccount14
|
|
5408
5602
|
} from "@solana/kit/program-client-core";
|
|
5409
5603
|
var WITHDRAW_FEES_DISCRIMINATOR = new Uint8Array([
|
|
5410
5604
|
198,
|
|
@@ -5417,15 +5611,15 @@ var WITHDRAW_FEES_DISCRIMINATOR = new Uint8Array([
|
|
|
5417
5611
|
89
|
|
5418
5612
|
]);
|
|
5419
5613
|
function getWithdrawFeesInstructionDataEncoder() {
|
|
5420
|
-
return
|
|
5421
|
-
|
|
5614
|
+
return transformEncoder37(
|
|
5615
|
+
getStructEncoder41([["discriminator", fixEncoderSize39(getBytesEncoder46(), 8)]]),
|
|
5422
5616
|
(value) => ({ ...value, discriminator: WITHDRAW_FEES_DISCRIMINATOR })
|
|
5423
5617
|
);
|
|
5424
5618
|
}
|
|
5425
5619
|
__name(getWithdrawFeesInstructionDataEncoder, "getWithdrawFeesInstructionDataEncoder");
|
|
5426
5620
|
function getWithdrawFeesInstructionDataDecoder() {
|
|
5427
|
-
return
|
|
5428
|
-
["discriminator",
|
|
5621
|
+
return getStructDecoder41([
|
|
5622
|
+
["discriminator", fixDecoderSize38(getBytesDecoder38(), 8)]
|
|
5429
5623
|
]);
|
|
5430
5624
|
}
|
|
5431
5625
|
__name(getWithdrawFeesInstructionDataDecoder, "getWithdrawFeesInstructionDataDecoder");
|
|
@@ -5446,27 +5640,27 @@ async function getWithdrawFeesInstructionAsync(input, config) {
|
|
|
5446
5640
|
const accounts = originalAccounts;
|
|
5447
5641
|
if (!accounts.jurorStake.value) {
|
|
5448
5642
|
accounts.jurorStake.value = await findJurorStakePda({
|
|
5449
|
-
subaccord:
|
|
5643
|
+
subaccord: getAddressFromResolvedInstructionAccount14(
|
|
5450
5644
|
"subaccord",
|
|
5451
5645
|
accounts.subaccord.value
|
|
5452
5646
|
),
|
|
5453
|
-
juror:
|
|
5647
|
+
juror: getAddressFromResolvedInstructionAccount14(
|
|
5454
5648
|
"juror",
|
|
5455
5649
|
accounts.juror.value
|
|
5456
5650
|
)
|
|
5457
5651
|
});
|
|
5458
5652
|
}
|
|
5459
5653
|
if (!accounts.jurorFeeTokenAccount.value) {
|
|
5460
|
-
accounts.jurorFeeTokenAccount.value = await
|
|
5654
|
+
accounts.jurorFeeTokenAccount.value = await getProgramDerivedAddress17({
|
|
5461
5655
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
5462
5656
|
seeds: [
|
|
5463
|
-
|
|
5464
|
-
|
|
5657
|
+
getAddressEncoder25().encode(
|
|
5658
|
+
getAddressFromResolvedInstructionAccount14(
|
|
5465
5659
|
"juror",
|
|
5466
5660
|
accounts.juror.value
|
|
5467
5661
|
)
|
|
5468
5662
|
),
|
|
5469
|
-
|
|
5663
|
+
getBytesEncoder46().encode(
|
|
5470
5664
|
new Uint8Array([
|
|
5471
5665
|
6,
|
|
5472
5666
|
221,
|
|
@@ -5502,8 +5696,8 @@ async function getWithdrawFeesInstructionAsync(input, config) {
|
|
|
5502
5696
|
169
|
|
5503
5697
|
])
|
|
5504
5698
|
),
|
|
5505
|
-
|
|
5506
|
-
|
|
5699
|
+
getAddressEncoder25().encode(
|
|
5700
|
+
getAddressFromResolvedInstructionAccount14(
|
|
5507
5701
|
"feeToken",
|
|
5508
5702
|
accounts.feeToken.value
|
|
5509
5703
|
)
|
|
@@ -5512,16 +5706,16 @@ async function getWithdrawFeesInstructionAsync(input, config) {
|
|
|
5512
5706
|
});
|
|
5513
5707
|
}
|
|
5514
5708
|
if (!accounts.feeVault.value) {
|
|
5515
|
-
accounts.feeVault.value = await
|
|
5709
|
+
accounts.feeVault.value = await getProgramDerivedAddress17({
|
|
5516
5710
|
programAddress: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",
|
|
5517
5711
|
seeds: [
|
|
5518
|
-
|
|
5519
|
-
|
|
5712
|
+
getAddressEncoder25().encode(
|
|
5713
|
+
getAddressFromResolvedInstructionAccount14(
|
|
5520
5714
|
"subaccord",
|
|
5521
5715
|
accounts.subaccord.value
|
|
5522
5716
|
)
|
|
5523
5717
|
),
|
|
5524
|
-
|
|
5718
|
+
getBytesEncoder46().encode(
|
|
5525
5719
|
new Uint8Array([
|
|
5526
5720
|
6,
|
|
5527
5721
|
221,
|
|
@@ -5557,8 +5751,8 @@ async function getWithdrawFeesInstructionAsync(input, config) {
|
|
|
5557
5751
|
169
|
|
5558
5752
|
])
|
|
5559
5753
|
),
|
|
5560
|
-
|
|
5561
|
-
|
|
5754
|
+
getAddressEncoder25().encode(
|
|
5755
|
+
getAddressFromResolvedInstructionAccount14(
|
|
5562
5756
|
"feeToken",
|
|
5563
5757
|
accounts.feeToken.value
|
|
5564
5758
|
)
|
|
@@ -5569,7 +5763,7 @@ async function getWithdrawFeesInstructionAsync(input, config) {
|
|
|
5569
5763
|
if (!accounts.tokenProgram.value) {
|
|
5570
5764
|
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5571
5765
|
}
|
|
5572
|
-
const getAccountMeta =
|
|
5766
|
+
const getAccountMeta = getAccountMetaFactory30(programAddress, "programId");
|
|
5573
5767
|
return Object.freeze({
|
|
5574
5768
|
accounts: [
|
|
5575
5769
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -5603,7 +5797,7 @@ function getWithdrawFeesInstruction(input, config) {
|
|
|
5603
5797
|
if (!accounts.tokenProgram.value) {
|
|
5604
5798
|
accounts.tokenProgram.value = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
5605
5799
|
}
|
|
5606
|
-
const getAccountMeta =
|
|
5800
|
+
const getAccountMeta = getAccountMetaFactory30(programAddress, "programId");
|
|
5607
5801
|
return Object.freeze({
|
|
5608
5802
|
accounts: [
|
|
5609
5803
|
getAccountMeta("juror", accounts.juror),
|
|
@@ -5621,8 +5815,8 @@ function getWithdrawFeesInstruction(input, config) {
|
|
|
5621
5815
|
__name(getWithdrawFeesInstruction, "getWithdrawFeesInstruction");
|
|
5622
5816
|
function parseWithdrawFeesInstruction(instruction) {
|
|
5623
5817
|
if (instruction.accounts.length < 7) {
|
|
5624
|
-
throw new
|
|
5625
|
-
|
|
5818
|
+
throw new SolanaError30(
|
|
5819
|
+
SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS30,
|
|
5626
5820
|
{
|
|
5627
5821
|
actualAccountMetas: instruction.accounts.length,
|
|
5628
5822
|
expectedAccountMetas: 7
|
|
@@ -5657,7 +5851,7 @@ function identifyAccordAccount(account) {
|
|
|
5657
5851
|
const data = "data" in account ? account.data : account;
|
|
5658
5852
|
if (containsBytes(
|
|
5659
5853
|
data,
|
|
5660
|
-
|
|
5854
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5661
5855
|
new Uint8Array([218, 6, 196, 225, 25, 89, 50, 183])
|
|
5662
5856
|
),
|
|
5663
5857
|
0
|
|
@@ -5666,7 +5860,7 @@ function identifyAccordAccount(account) {
|
|
|
5666
5860
|
}
|
|
5667
5861
|
if (containsBytes(
|
|
5668
5862
|
data,
|
|
5669
|
-
|
|
5863
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5670
5864
|
new Uint8Array([84, 79, 238, 7, 49, 113, 35, 143])
|
|
5671
5865
|
),
|
|
5672
5866
|
0
|
|
@@ -5675,7 +5869,7 @@ function identifyAccordAccount(account) {
|
|
|
5675
5869
|
}
|
|
5676
5870
|
if (containsBytes(
|
|
5677
5871
|
data,
|
|
5678
|
-
|
|
5872
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5679
5873
|
new Uint8Array([36, 49, 241, 67, 40, 36, 241, 74])
|
|
5680
5874
|
),
|
|
5681
5875
|
0
|
|
@@ -5684,7 +5878,7 @@ function identifyAccordAccount(account) {
|
|
|
5684
5878
|
}
|
|
5685
5879
|
if (containsBytes(
|
|
5686
5880
|
data,
|
|
5687
|
-
|
|
5881
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5688
5882
|
new Uint8Array([139, 114, 205, 73, 247, 175, 133, 122])
|
|
5689
5883
|
),
|
|
5690
5884
|
0
|
|
@@ -5693,7 +5887,7 @@ function identifyAccordAccount(account) {
|
|
|
5693
5887
|
}
|
|
5694
5888
|
if (containsBytes(
|
|
5695
5889
|
data,
|
|
5696
|
-
|
|
5890
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5697
5891
|
new Uint8Array([24, 212, 61, 73, 130, 111, 15, 112])
|
|
5698
5892
|
),
|
|
5699
5893
|
0
|
|
@@ -5702,7 +5896,7 @@ function identifyAccordAccount(account) {
|
|
|
5702
5896
|
}
|
|
5703
5897
|
if (containsBytes(
|
|
5704
5898
|
data,
|
|
5705
|
-
|
|
5899
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5706
5900
|
new Uint8Array([87, 127, 165, 51, 73, 78, 116, 174])
|
|
5707
5901
|
),
|
|
5708
5902
|
0
|
|
@@ -5711,14 +5905,14 @@ function identifyAccordAccount(account) {
|
|
|
5711
5905
|
}
|
|
5712
5906
|
if (containsBytes(
|
|
5713
5907
|
data,
|
|
5714
|
-
|
|
5908
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5715
5909
|
new Uint8Array([210, 63, 193, 190, 9, 166, 89, 170])
|
|
5716
5910
|
),
|
|
5717
5911
|
0
|
|
5718
5912
|
)) {
|
|
5719
5913
|
return 6 /* Subaccord */;
|
|
5720
5914
|
}
|
|
5721
|
-
throw new
|
|
5915
|
+
throw new SolanaError31(
|
|
5722
5916
|
SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_ACCOUNT,
|
|
5723
5917
|
{ accountData: data, programName: "accord" }
|
|
5724
5918
|
);
|
|
@@ -5728,7 +5922,7 @@ function identifyAccordInstruction(instruction) {
|
|
|
5728
5922
|
const data = "data" in instruction ? instruction.data : instruction;
|
|
5729
5923
|
if (containsBytes(
|
|
5730
5924
|
data,
|
|
5731
|
-
|
|
5925
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5732
5926
|
new Uint8Array([250, 91, 1, 244, 179, 52, 75, 236])
|
|
5733
5927
|
),
|
|
5734
5928
|
0
|
|
@@ -5737,7 +5931,7 @@ function identifyAccordInstruction(instruction) {
|
|
|
5737
5931
|
}
|
|
5738
5932
|
if (containsBytes(
|
|
5739
5933
|
data,
|
|
5740
|
-
|
|
5934
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5741
5935
|
new Uint8Array([23, 155, 220, 94, 76, 141, 231, 124])
|
|
5742
5936
|
),
|
|
5743
5937
|
0
|
|
@@ -5746,7 +5940,7 @@ function identifyAccordInstruction(instruction) {
|
|
|
5746
5940
|
}
|
|
5747
5941
|
if (containsBytes(
|
|
5748
5942
|
data,
|
|
5749
|
-
|
|
5943
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5750
5944
|
new Uint8Array([210, 169, 229, 146, 187, 30, 61, 176])
|
|
5751
5945
|
),
|
|
5752
5946
|
0
|
|
@@ -5755,239 +5949,248 @@ function identifyAccordInstruction(instruction) {
|
|
|
5755
5949
|
}
|
|
5756
5950
|
if (containsBytes(
|
|
5757
5951
|
data,
|
|
5758
|
-
|
|
5952
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5953
|
+
new Uint8Array([0, 179, 28, 122, 171, 246, 12, 132])
|
|
5954
|
+
),
|
|
5955
|
+
0
|
|
5956
|
+
)) {
|
|
5957
|
+
return 3 /* ClaimFilingBounty */;
|
|
5958
|
+
}
|
|
5959
|
+
if (containsBytes(
|
|
5960
|
+
data,
|
|
5961
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5759
5962
|
new Uint8Array([223, 140, 142, 165, 229, 208, 156, 74])
|
|
5760
5963
|
),
|
|
5761
5964
|
0
|
|
5762
5965
|
)) {
|
|
5763
|
-
return
|
|
5966
|
+
return 4 /* Commit */;
|
|
5764
5967
|
}
|
|
5765
5968
|
if (containsBytes(
|
|
5766
5969
|
data,
|
|
5767
|
-
|
|
5970
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5768
5971
|
new Uint8Array([51, 127, 131, 85, 83, 117, 121, 59])
|
|
5769
5972
|
),
|
|
5770
5973
|
0
|
|
5771
5974
|
)) {
|
|
5772
|
-
return
|
|
5975
|
+
return 5 /* CommitVrfCallback */;
|
|
5773
5976
|
}
|
|
5774
5977
|
if (containsBytes(
|
|
5775
5978
|
data,
|
|
5776
|
-
|
|
5979
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5777
5980
|
new Uint8Array([161, 99, 53, 116, 60, 79, 149, 105])
|
|
5778
5981
|
),
|
|
5779
5982
|
0
|
|
5780
5983
|
)) {
|
|
5781
|
-
return
|
|
5984
|
+
return 6 /* CreateDispute */;
|
|
5782
5985
|
}
|
|
5783
5986
|
if (containsBytes(
|
|
5784
5987
|
data,
|
|
5785
|
-
|
|
5988
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5786
5989
|
new Uint8Array([135, 240, 91, 50, 192, 161, 177, 22])
|
|
5787
5990
|
),
|
|
5788
5991
|
0
|
|
5789
5992
|
)) {
|
|
5790
|
-
return
|
|
5993
|
+
return 7 /* CreateSubaccord */;
|
|
5791
5994
|
}
|
|
5792
5995
|
if (containsBytes(
|
|
5793
5996
|
data,
|
|
5794
|
-
|
|
5997
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5795
5998
|
new Uint8Array([52, 26, 56, 16, 128, 4, 149, 236])
|
|
5796
5999
|
),
|
|
5797
6000
|
0
|
|
5798
6001
|
)) {
|
|
5799
|
-
return
|
|
6002
|
+
return 8 /* DrawSeat */;
|
|
5800
6003
|
}
|
|
5801
6004
|
if (containsBytes(
|
|
5802
6005
|
data,
|
|
5803
|
-
|
|
6006
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5804
6007
|
new Uint8Array([145, 99, 105, 27, 63, 159, 254, 203])
|
|
5805
6008
|
),
|
|
5806
6009
|
0
|
|
5807
6010
|
)) {
|
|
5808
|
-
return
|
|
6011
|
+
return 9 /* ExecuteSubaccordUpdate */;
|
|
5809
6012
|
}
|
|
5810
6013
|
if (containsBytes(
|
|
5811
6014
|
data,
|
|
5812
|
-
|
|
6015
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5813
6016
|
new Uint8Array([55, 43, 56, 5, 154, 156, 52, 232])
|
|
5814
6017
|
),
|
|
5815
6018
|
0
|
|
5816
6019
|
)) {
|
|
5817
|
-
return
|
|
6020
|
+
return 10 /* ExecuteUnpause */;
|
|
5818
6021
|
}
|
|
5819
6022
|
if (containsBytes(
|
|
5820
6023
|
data,
|
|
5821
|
-
|
|
6024
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5822
6025
|
new Uint8Array([190, 211, 17, 122, 247, 157, 27, 223])
|
|
5823
6026
|
),
|
|
5824
6027
|
0
|
|
5825
6028
|
)) {
|
|
5826
|
-
return
|
|
6029
|
+
return 11 /* FinalizeDispute */;
|
|
5827
6030
|
}
|
|
5828
6031
|
if (containsBytes(
|
|
5829
6032
|
data,
|
|
5830
|
-
|
|
6033
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5831
6034
|
new Uint8Array([239, 160, 254, 11, 254, 144, 53, 148])
|
|
5832
6035
|
),
|
|
5833
6036
|
0
|
|
5834
6037
|
)) {
|
|
5835
|
-
return
|
|
6038
|
+
return 12 /* FinalizeRound */;
|
|
5836
6039
|
}
|
|
5837
6040
|
if (containsBytes(
|
|
5838
6041
|
data,
|
|
5839
|
-
|
|
6042
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5840
6043
|
new Uint8Array([196, 52, 54, 1, 180, 75, 86, 16])
|
|
5841
6044
|
),
|
|
5842
6045
|
0
|
|
5843
6046
|
)) {
|
|
5844
|
-
return
|
|
6047
|
+
return 13 /* GetRuling */;
|
|
5845
6048
|
}
|
|
5846
6049
|
if (containsBytes(
|
|
5847
6050
|
data,
|
|
5848
|
-
|
|
6051
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5849
6052
|
new Uint8Array([235, 42, 47, 99, 10, 7, 249, 16])
|
|
5850
6053
|
),
|
|
5851
6054
|
0
|
|
5852
6055
|
)) {
|
|
5853
|
-
return
|
|
6056
|
+
return 14 /* Health */;
|
|
5854
6057
|
}
|
|
5855
6058
|
if (containsBytes(
|
|
5856
6059
|
data,
|
|
5857
|
-
|
|
6060
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5858
6061
|
new Uint8Array([70, 32, 55, 248, 231, 46, 123, 153])
|
|
5859
6062
|
),
|
|
5860
6063
|
0
|
|
5861
6064
|
)) {
|
|
5862
|
-
return
|
|
6065
|
+
return 15 /* InitializePause */;
|
|
5863
6066
|
}
|
|
5864
6067
|
if (containsBytes(
|
|
5865
6068
|
data,
|
|
5866
|
-
|
|
6069
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5867
6070
|
new Uint8Array([211, 22, 221, 251, 74, 121, 193, 47])
|
|
5868
6071
|
),
|
|
5869
6072
|
0
|
|
5870
6073
|
)) {
|
|
5871
|
-
return
|
|
6074
|
+
return 16 /* Pause */;
|
|
5872
6075
|
}
|
|
5873
6076
|
if (containsBytes(
|
|
5874
6077
|
data,
|
|
5875
|
-
|
|
6078
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5876
6079
|
new Uint8Array([8, 224, 186, 131, 130, 76, 165, 172])
|
|
5877
6080
|
),
|
|
5878
6081
|
0
|
|
5879
6082
|
)) {
|
|
5880
|
-
return
|
|
6083
|
+
return 17 /* ProposeSubaccordUpdate */;
|
|
5881
6084
|
}
|
|
5882
6085
|
if (containsBytes(
|
|
5883
6086
|
data,
|
|
5884
|
-
|
|
6087
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5885
6088
|
new Uint8Array([45, 136, 163, 143, 156, 57, 113, 132])
|
|
5886
6089
|
),
|
|
5887
6090
|
0
|
|
5888
6091
|
)) {
|
|
5889
|
-
return
|
|
6092
|
+
return 18 /* ProposeUnpause */;
|
|
5890
6093
|
}
|
|
5891
6094
|
if (containsBytes(
|
|
5892
6095
|
data,
|
|
5893
|
-
|
|
6096
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5894
6097
|
new Uint8Array([49, 219, 100, 132, 202, 120, 18, 167])
|
|
5895
6098
|
),
|
|
5896
6099
|
0
|
|
5897
6100
|
)) {
|
|
5898
|
-
return
|
|
6101
|
+
return 19 /* PruneJuror */;
|
|
5899
6102
|
}
|
|
5900
6103
|
if (containsBytes(
|
|
5901
6104
|
data,
|
|
5902
|
-
|
|
6105
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5903
6106
|
new Uint8Array([44, 216, 234, 229, 129, 82, 98, 5])
|
|
5904
6107
|
),
|
|
5905
6108
|
0
|
|
5906
6109
|
)) {
|
|
5907
|
-
return
|
|
6110
|
+
return 20 /* ReclaimSlot */;
|
|
5908
6111
|
}
|
|
5909
6112
|
if (containsBytes(
|
|
5910
6113
|
data,
|
|
5911
|
-
|
|
6114
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5912
6115
|
new Uint8Array([40, 103, 128, 85, 211, 11, 34, 80])
|
|
5913
6116
|
),
|
|
5914
6117
|
0
|
|
5915
6118
|
)) {
|
|
5916
|
-
return
|
|
6119
|
+
return 21 /* ReconcileStake */;
|
|
5917
6120
|
}
|
|
5918
6121
|
if (containsBytes(
|
|
5919
6122
|
data,
|
|
5920
|
-
|
|
6123
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5921
6124
|
new Uint8Array([86, 111, 66, 164, 105, 158, 114, 164])
|
|
5922
6125
|
),
|
|
5923
6126
|
0
|
|
5924
6127
|
)) {
|
|
5925
|
-
return
|
|
6128
|
+
return 22 /* Redraw */;
|
|
5926
6129
|
}
|
|
5927
6130
|
if (containsBytes(
|
|
5928
6131
|
data,
|
|
5929
|
-
|
|
6132
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5930
6133
|
new Uint8Array([5, 87, 79, 152, 164, 176, 190, 226])
|
|
5931
6134
|
),
|
|
5932
6135
|
0
|
|
5933
6136
|
)) {
|
|
5934
|
-
return
|
|
6137
|
+
return 23 /* RequestVrf */;
|
|
5935
6138
|
}
|
|
5936
6139
|
if (containsBytes(
|
|
5937
6140
|
data,
|
|
5938
|
-
|
|
6141
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5939
6142
|
new Uint8Array([137, 95, 187, 96, 250, 138, 31, 182])
|
|
5940
6143
|
),
|
|
5941
6144
|
0
|
|
5942
6145
|
)) {
|
|
5943
|
-
return
|
|
6146
|
+
return 24 /* RequestWithdraw */;
|
|
5944
6147
|
}
|
|
5945
6148
|
if (containsBytes(
|
|
5946
6149
|
data,
|
|
5947
|
-
|
|
6150
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5948
6151
|
new Uint8Array([9, 35, 59, 190, 167, 249, 76, 115])
|
|
5949
6152
|
),
|
|
5950
6153
|
0
|
|
5951
6154
|
)) {
|
|
5952
|
-
return
|
|
6155
|
+
return 25 /* Reveal */;
|
|
5953
6156
|
}
|
|
5954
6157
|
if (containsBytes(
|
|
5955
6158
|
data,
|
|
5956
|
-
|
|
6159
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5957
6160
|
new Uint8Array([40, 101, 18, 1, 31, 129, 52, 77])
|
|
5958
6161
|
),
|
|
5959
6162
|
0
|
|
5960
6163
|
)) {
|
|
5961
|
-
return
|
|
6164
|
+
return 26 /* SettleRound */;
|
|
5962
6165
|
}
|
|
5963
6166
|
if (containsBytes(
|
|
5964
6167
|
data,
|
|
5965
|
-
|
|
6168
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5966
6169
|
new Uint8Array([206, 176, 202, 18, 200, 209, 179, 108])
|
|
5967
6170
|
),
|
|
5968
6171
|
0
|
|
5969
6172
|
)) {
|
|
5970
|
-
return
|
|
6173
|
+
return 27 /* Stake */;
|
|
5971
6174
|
}
|
|
5972
6175
|
if (containsBytes(
|
|
5973
6176
|
data,
|
|
5974
|
-
|
|
6177
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5975
6178
|
new Uint8Array([183, 18, 70, 156, 148, 109, 161, 34])
|
|
5976
6179
|
),
|
|
5977
6180
|
0
|
|
5978
6181
|
)) {
|
|
5979
|
-
return
|
|
6182
|
+
return 28 /* Withdraw */;
|
|
5980
6183
|
}
|
|
5981
6184
|
if (containsBytes(
|
|
5982
6185
|
data,
|
|
5983
|
-
|
|
6186
|
+
fixEncoderSize40(getBytesEncoder47(), 8).encode(
|
|
5984
6187
|
new Uint8Array([198, 212, 171, 109, 144, 215, 174, 89])
|
|
5985
6188
|
),
|
|
5986
6189
|
0
|
|
5987
6190
|
)) {
|
|
5988
|
-
return
|
|
6191
|
+
return 29 /* WithdrawFees */;
|
|
5989
6192
|
}
|
|
5990
|
-
throw new
|
|
6193
|
+
throw new SolanaError31(
|
|
5991
6194
|
SOLANA_ERROR__PROGRAM_CLIENTS__FAILED_TO_IDENTIFY_INSTRUCTION,
|
|
5992
6195
|
{ instructionData: data, programName: "accord" }
|
|
5993
6196
|
);
|
|
@@ -6017,190 +6220,197 @@ function parseAccordInstruction(instruction) {
|
|
|
6017
6220
|
...parseClaimAppealRefundInstruction(instruction)
|
|
6018
6221
|
};
|
|
6019
6222
|
}
|
|
6020
|
-
case 3 /*
|
|
6223
|
+
case 3 /* ClaimFilingBounty */: {
|
|
6224
|
+
assertIsInstructionWithAccounts(instruction);
|
|
6225
|
+
return {
|
|
6226
|
+
instructionType: 3 /* ClaimFilingBounty */,
|
|
6227
|
+
...parseClaimFilingBountyInstruction(instruction)
|
|
6228
|
+
};
|
|
6229
|
+
}
|
|
6230
|
+
case 4 /* Commit */: {
|
|
6021
6231
|
assertIsInstructionWithAccounts(instruction);
|
|
6022
6232
|
return {
|
|
6023
|
-
instructionType:
|
|
6233
|
+
instructionType: 4 /* Commit */,
|
|
6024
6234
|
...parseCommitInstruction(instruction)
|
|
6025
6235
|
};
|
|
6026
6236
|
}
|
|
6027
|
-
case
|
|
6237
|
+
case 5 /* CommitVrfCallback */: {
|
|
6028
6238
|
assertIsInstructionWithAccounts(instruction);
|
|
6029
6239
|
return {
|
|
6030
|
-
instructionType:
|
|
6240
|
+
instructionType: 5 /* CommitVrfCallback */,
|
|
6031
6241
|
...parseCommitVrfCallbackInstruction(instruction)
|
|
6032
6242
|
};
|
|
6033
6243
|
}
|
|
6034
|
-
case
|
|
6244
|
+
case 6 /* CreateDispute */: {
|
|
6035
6245
|
assertIsInstructionWithAccounts(instruction);
|
|
6036
6246
|
return {
|
|
6037
|
-
instructionType:
|
|
6247
|
+
instructionType: 6 /* CreateDispute */,
|
|
6038
6248
|
...parseCreateDisputeInstruction(instruction)
|
|
6039
6249
|
};
|
|
6040
6250
|
}
|
|
6041
|
-
case
|
|
6251
|
+
case 7 /* CreateSubaccord */: {
|
|
6042
6252
|
assertIsInstructionWithAccounts(instruction);
|
|
6043
6253
|
return {
|
|
6044
|
-
instructionType:
|
|
6254
|
+
instructionType: 7 /* CreateSubaccord */,
|
|
6045
6255
|
...parseCreateSubaccordInstruction(instruction)
|
|
6046
6256
|
};
|
|
6047
6257
|
}
|
|
6048
|
-
case
|
|
6258
|
+
case 8 /* DrawSeat */: {
|
|
6049
6259
|
assertIsInstructionWithAccounts(instruction);
|
|
6050
6260
|
return {
|
|
6051
|
-
instructionType:
|
|
6261
|
+
instructionType: 8 /* DrawSeat */,
|
|
6052
6262
|
...parseDrawSeatInstruction(instruction)
|
|
6053
6263
|
};
|
|
6054
6264
|
}
|
|
6055
|
-
case
|
|
6265
|
+
case 9 /* ExecuteSubaccordUpdate */: {
|
|
6056
6266
|
assertIsInstructionWithAccounts(instruction);
|
|
6057
6267
|
return {
|
|
6058
|
-
instructionType:
|
|
6268
|
+
instructionType: 9 /* ExecuteSubaccordUpdate */,
|
|
6059
6269
|
...parseExecuteSubaccordUpdateInstruction(instruction)
|
|
6060
6270
|
};
|
|
6061
6271
|
}
|
|
6062
|
-
case
|
|
6272
|
+
case 10 /* ExecuteUnpause */: {
|
|
6063
6273
|
assertIsInstructionWithAccounts(instruction);
|
|
6064
6274
|
return {
|
|
6065
|
-
instructionType:
|
|
6275
|
+
instructionType: 10 /* ExecuteUnpause */,
|
|
6066
6276
|
...parseExecuteUnpauseInstruction(instruction)
|
|
6067
6277
|
};
|
|
6068
6278
|
}
|
|
6069
|
-
case
|
|
6279
|
+
case 11 /* FinalizeDispute */: {
|
|
6070
6280
|
assertIsInstructionWithAccounts(instruction);
|
|
6071
6281
|
return {
|
|
6072
|
-
instructionType:
|
|
6282
|
+
instructionType: 11 /* FinalizeDispute */,
|
|
6073
6283
|
...parseFinalizeDisputeInstruction(instruction)
|
|
6074
6284
|
};
|
|
6075
6285
|
}
|
|
6076
|
-
case
|
|
6286
|
+
case 12 /* FinalizeRound */: {
|
|
6077
6287
|
assertIsInstructionWithAccounts(instruction);
|
|
6078
6288
|
return {
|
|
6079
|
-
instructionType:
|
|
6289
|
+
instructionType: 12 /* FinalizeRound */,
|
|
6080
6290
|
...parseFinalizeRoundInstruction(instruction)
|
|
6081
6291
|
};
|
|
6082
6292
|
}
|
|
6083
|
-
case
|
|
6293
|
+
case 13 /* GetRuling */: {
|
|
6084
6294
|
assertIsInstructionWithAccounts(instruction);
|
|
6085
6295
|
return {
|
|
6086
|
-
instructionType:
|
|
6296
|
+
instructionType: 13 /* GetRuling */,
|
|
6087
6297
|
...parseGetRulingInstruction(instruction)
|
|
6088
6298
|
};
|
|
6089
6299
|
}
|
|
6090
|
-
case
|
|
6300
|
+
case 14 /* Health */: {
|
|
6091
6301
|
assertIsInstructionWithAccounts(instruction);
|
|
6092
6302
|
return {
|
|
6093
|
-
instructionType:
|
|
6303
|
+
instructionType: 14 /* Health */,
|
|
6094
6304
|
...parseHealthInstruction(instruction)
|
|
6095
6305
|
};
|
|
6096
6306
|
}
|
|
6097
|
-
case
|
|
6307
|
+
case 15 /* InitializePause */: {
|
|
6098
6308
|
assertIsInstructionWithAccounts(instruction);
|
|
6099
6309
|
return {
|
|
6100
|
-
instructionType:
|
|
6310
|
+
instructionType: 15 /* InitializePause */,
|
|
6101
6311
|
...parseInitializePauseInstruction(instruction)
|
|
6102
6312
|
};
|
|
6103
6313
|
}
|
|
6104
|
-
case
|
|
6314
|
+
case 16 /* Pause */: {
|
|
6105
6315
|
assertIsInstructionWithAccounts(instruction);
|
|
6106
6316
|
return {
|
|
6107
|
-
instructionType:
|
|
6317
|
+
instructionType: 16 /* Pause */,
|
|
6108
6318
|
...parsePauseInstruction(instruction)
|
|
6109
6319
|
};
|
|
6110
6320
|
}
|
|
6111
|
-
case
|
|
6321
|
+
case 17 /* ProposeSubaccordUpdate */: {
|
|
6112
6322
|
assertIsInstructionWithAccounts(instruction);
|
|
6113
6323
|
return {
|
|
6114
|
-
instructionType:
|
|
6324
|
+
instructionType: 17 /* ProposeSubaccordUpdate */,
|
|
6115
6325
|
...parseProposeSubaccordUpdateInstruction(instruction)
|
|
6116
6326
|
};
|
|
6117
6327
|
}
|
|
6118
|
-
case
|
|
6328
|
+
case 18 /* ProposeUnpause */: {
|
|
6119
6329
|
assertIsInstructionWithAccounts(instruction);
|
|
6120
6330
|
return {
|
|
6121
|
-
instructionType:
|
|
6331
|
+
instructionType: 18 /* ProposeUnpause */,
|
|
6122
6332
|
...parseProposeUnpauseInstruction(instruction)
|
|
6123
6333
|
};
|
|
6124
6334
|
}
|
|
6125
|
-
case
|
|
6335
|
+
case 19 /* PruneJuror */: {
|
|
6126
6336
|
assertIsInstructionWithAccounts(instruction);
|
|
6127
6337
|
return {
|
|
6128
|
-
instructionType:
|
|
6338
|
+
instructionType: 19 /* PruneJuror */,
|
|
6129
6339
|
...parsePruneJurorInstruction(instruction)
|
|
6130
6340
|
};
|
|
6131
6341
|
}
|
|
6132
|
-
case
|
|
6342
|
+
case 20 /* ReclaimSlot */: {
|
|
6133
6343
|
assertIsInstructionWithAccounts(instruction);
|
|
6134
6344
|
return {
|
|
6135
|
-
instructionType:
|
|
6345
|
+
instructionType: 20 /* ReclaimSlot */,
|
|
6136
6346
|
...parseReclaimSlotInstruction(instruction)
|
|
6137
6347
|
};
|
|
6138
6348
|
}
|
|
6139
|
-
case
|
|
6349
|
+
case 21 /* ReconcileStake */: {
|
|
6140
6350
|
assertIsInstructionWithAccounts(instruction);
|
|
6141
6351
|
return {
|
|
6142
|
-
instructionType:
|
|
6352
|
+
instructionType: 21 /* ReconcileStake */,
|
|
6143
6353
|
...parseReconcileStakeInstruction(instruction)
|
|
6144
6354
|
};
|
|
6145
6355
|
}
|
|
6146
|
-
case
|
|
6356
|
+
case 22 /* Redraw */: {
|
|
6147
6357
|
assertIsInstructionWithAccounts(instruction);
|
|
6148
6358
|
return {
|
|
6149
|
-
instructionType:
|
|
6359
|
+
instructionType: 22 /* Redraw */,
|
|
6150
6360
|
...parseRedrawInstruction(instruction)
|
|
6151
6361
|
};
|
|
6152
6362
|
}
|
|
6153
|
-
case
|
|
6363
|
+
case 23 /* RequestVrf */: {
|
|
6154
6364
|
assertIsInstructionWithAccounts(instruction);
|
|
6155
6365
|
return {
|
|
6156
|
-
instructionType:
|
|
6366
|
+
instructionType: 23 /* RequestVrf */,
|
|
6157
6367
|
...parseRequestVrfInstruction(instruction)
|
|
6158
6368
|
};
|
|
6159
6369
|
}
|
|
6160
|
-
case
|
|
6370
|
+
case 24 /* RequestWithdraw */: {
|
|
6161
6371
|
assertIsInstructionWithAccounts(instruction);
|
|
6162
6372
|
return {
|
|
6163
|
-
instructionType:
|
|
6373
|
+
instructionType: 24 /* RequestWithdraw */,
|
|
6164
6374
|
...parseRequestWithdrawInstruction(instruction)
|
|
6165
6375
|
};
|
|
6166
6376
|
}
|
|
6167
|
-
case
|
|
6377
|
+
case 25 /* Reveal */: {
|
|
6168
6378
|
assertIsInstructionWithAccounts(instruction);
|
|
6169
6379
|
return {
|
|
6170
|
-
instructionType:
|
|
6380
|
+
instructionType: 25 /* Reveal */,
|
|
6171
6381
|
...parseRevealInstruction(instruction)
|
|
6172
6382
|
};
|
|
6173
6383
|
}
|
|
6174
|
-
case
|
|
6384
|
+
case 26 /* SettleRound */: {
|
|
6175
6385
|
assertIsInstructionWithAccounts(instruction);
|
|
6176
6386
|
return {
|
|
6177
|
-
instructionType:
|
|
6387
|
+
instructionType: 26 /* SettleRound */,
|
|
6178
6388
|
...parseSettleRoundInstruction(instruction)
|
|
6179
6389
|
};
|
|
6180
6390
|
}
|
|
6181
|
-
case
|
|
6391
|
+
case 27 /* Stake */: {
|
|
6182
6392
|
assertIsInstructionWithAccounts(instruction);
|
|
6183
6393
|
return {
|
|
6184
|
-
instructionType:
|
|
6394
|
+
instructionType: 27 /* Stake */,
|
|
6185
6395
|
...parseStakeInstruction(instruction)
|
|
6186
6396
|
};
|
|
6187
6397
|
}
|
|
6188
|
-
case
|
|
6398
|
+
case 28 /* Withdraw */: {
|
|
6189
6399
|
assertIsInstructionWithAccounts(instruction);
|
|
6190
6400
|
return {
|
|
6191
|
-
instructionType:
|
|
6401
|
+
instructionType: 28 /* Withdraw */,
|
|
6192
6402
|
...parseWithdrawInstruction(instruction)
|
|
6193
6403
|
};
|
|
6194
6404
|
}
|
|
6195
|
-
case
|
|
6405
|
+
case 29 /* WithdrawFees */: {
|
|
6196
6406
|
assertIsInstructionWithAccounts(instruction);
|
|
6197
6407
|
return {
|
|
6198
|
-
instructionType:
|
|
6408
|
+
instructionType: 29 /* WithdrawFees */,
|
|
6199
6409
|
...parseWithdrawFeesInstruction(instruction)
|
|
6200
6410
|
};
|
|
6201
6411
|
}
|
|
6202
6412
|
default:
|
|
6203
|
-
throw new
|
|
6413
|
+
throw new SolanaError31(
|
|
6204
6414
|
SOLANA_ERROR__PROGRAM_CLIENTS__UNRECOGNIZED_INSTRUCTION_TYPE,
|
|
6205
6415
|
{ instructionType, programName: "accord" }
|
|
6206
6416
|
);
|
|
@@ -6233,6 +6443,10 @@ function accordProgram() {
|
|
|
6233
6443
|
client,
|
|
6234
6444
|
getClaimAppealRefundInstructionAsync(input)
|
|
6235
6445
|
), "claimAppealRefund"),
|
|
6446
|
+
claimFilingBounty: /* @__PURE__ */ __name((input) => addSelfPlanAndSendFunctions(
|
|
6447
|
+
client,
|
|
6448
|
+
getClaimFilingBountyInstructionAsync(input)
|
|
6449
|
+
), "claimFilingBounty"),
|
|
6236
6450
|
commit: /* @__PURE__ */ __name((input) => addSelfPlanAndSendFunctions(client, getCommitInstruction(input)), "commit"),
|
|
6237
6451
|
commitVrfCallback: /* @__PURE__ */ __name((input) => addSelfPlanAndSendFunctions(
|
|
6238
6452
|
client,
|
|
@@ -6344,20 +6558,20 @@ __name(accordProgram, "accordProgram");
|
|
|
6344
6558
|
|
|
6345
6559
|
// src/pda.ts
|
|
6346
6560
|
import {
|
|
6347
|
-
getAddressEncoder as
|
|
6348
|
-
getBytesEncoder as
|
|
6349
|
-
getProgramDerivedAddress as
|
|
6561
|
+
getAddressEncoder as getAddressEncoder26,
|
|
6562
|
+
getBytesEncoder as getBytesEncoder48,
|
|
6563
|
+
getProgramDerivedAddress as getProgramDerivedAddress18,
|
|
6350
6564
|
getU32Encoder as getU32Encoder13
|
|
6351
6565
|
} from "@solana/kit";
|
|
6352
6566
|
var ACCORD_PROGRAM_ID = "cordhVoshqRV6kzGBmM89A66wuusJGsDCvLMHPLyKed";
|
|
6353
6567
|
var ROUND_SEED = new Uint8Array([114, 111, 117, 110, 100]);
|
|
6354
6568
|
async function findRoundPda2(seeds, config = {}) {
|
|
6355
6569
|
const { programAddress = ACCORD_PROGRAM_ID } = config;
|
|
6356
|
-
return await
|
|
6570
|
+
return await getProgramDerivedAddress18({
|
|
6357
6571
|
programAddress,
|
|
6358
6572
|
seeds: [
|
|
6359
|
-
|
|
6360
|
-
|
|
6573
|
+
getBytesEncoder48().encode(ROUND_SEED),
|
|
6574
|
+
getAddressEncoder26().encode(seeds.dispute),
|
|
6361
6575
|
getU32Encoder13().encode(seeds.roundIdx)
|
|
6362
6576
|
]
|
|
6363
6577
|
});
|
|
@@ -6368,19 +6582,20 @@ __name(findRoundPda2, "findRoundPda");
|
|
|
6368
6582
|
import {
|
|
6369
6583
|
AccountRole,
|
|
6370
6584
|
getAddressDecoder as getAddressDecoder11,
|
|
6371
|
-
getAddressEncoder as
|
|
6585
|
+
getAddressEncoder as getAddressEncoder28
|
|
6372
6586
|
} from "@solana/kit";
|
|
6373
6587
|
|
|
6374
6588
|
// src/methods/dispute.ts
|
|
6375
6589
|
import {
|
|
6376
|
-
getAddressEncoder as
|
|
6377
|
-
getProgramDerivedAddress as
|
|
6590
|
+
getAddressEncoder as getAddressEncoder27,
|
|
6591
|
+
getProgramDerivedAddress as getProgramDerivedAddress19
|
|
6378
6592
|
} from "@solana/kit";
|
|
6379
6593
|
|
|
6380
6594
|
// src/constants.ts
|
|
6381
6595
|
var MAX_JURORS = 31;
|
|
6382
6596
|
var MAX_APPEALS = 3;
|
|
6383
6597
|
var MAX_OPTIONS = 8;
|
|
6598
|
+
var MAX_SORTITION_RETRIES = 128;
|
|
6384
6599
|
var UPDATE_TIMELOCK_SLOTS = 432000n;
|
|
6385
6600
|
var UNPAUSE_TIMELOCK_SLOTS = 216000n;
|
|
6386
6601
|
var DEFAULT_APPEAL_WINDOW_SECS = 259200n;
|
|
@@ -6428,7 +6643,7 @@ function requiredFee(feePerJuror, minJurySize = 3) {
|
|
|
6428
6643
|
if (feePerJuror < 0n || !Number.isInteger(minJurySize) || minJurySize < 1) {
|
|
6429
6644
|
return null;
|
|
6430
6645
|
}
|
|
6431
|
-
const product = BigInt(minJurySize) * feePerJuror;
|
|
6646
|
+
const product = BigInt(minJurySize + 1) * feePerJuror;
|
|
6432
6647
|
if (product < 0n || product > U64_MAX) return null;
|
|
6433
6648
|
return product;
|
|
6434
6649
|
}
|
|
@@ -6478,8 +6693,8 @@ function disputeSeeds(filerBytes, nonce) {
|
|
|
6478
6693
|
}
|
|
6479
6694
|
__name(disputeSeeds, "disputeSeeds");
|
|
6480
6695
|
async function findDisputePda2(programAddress, filer, nonce) {
|
|
6481
|
-
const filerBytes = new Uint8Array(
|
|
6482
|
-
const [address, bump] = await
|
|
6696
|
+
const filerBytes = new Uint8Array(getAddressEncoder27().encode(filer));
|
|
6697
|
+
const [address, bump] = await getProgramDerivedAddress19({
|
|
6483
6698
|
programAddress,
|
|
6484
6699
|
seeds: disputeSeeds(filerBytes, nonce)
|
|
6485
6700
|
});
|
|
@@ -6823,7 +7038,7 @@ function createAccordAdapter(accord) {
|
|
|
6823
7038
|
);
|
|
6824
7039
|
},
|
|
6825
7040
|
buildFinalizeRound(input) {
|
|
6826
|
-
|
|
7041
|
+
return getFinalizeRoundInstruction(
|
|
6827
7042
|
{
|
|
6828
7043
|
caller: accord.signer,
|
|
6829
7044
|
subaccord: input.accounts.subaccord,
|
|
@@ -6832,7 +7047,6 @@ function createAccordAdapter(accord) {
|
|
|
6832
7047
|
},
|
|
6833
7048
|
{ programAddress: input.programId }
|
|
6834
7049
|
);
|
|
6835
|
-
return appendRemaining(ix, input.remainingAccounts ?? []);
|
|
6836
7050
|
},
|
|
6837
7051
|
buildFinalizeDispute(input) {
|
|
6838
7052
|
const ix = getFinalizeDisputeInstruction(
|
|
@@ -6863,7 +7077,7 @@ function createAccordAdapter(accord) {
|
|
|
6863
7077
|
return appendRemaining(ix, input.remainingAccounts ?? []);
|
|
6864
7078
|
},
|
|
6865
7079
|
encodeAddress(address) {
|
|
6866
|
-
return new Uint8Array(
|
|
7080
|
+
return new Uint8Array(getAddressEncoder28().encode(address));
|
|
6867
7081
|
},
|
|
6868
7082
|
// ── appeal ─────────────────────────────────────────────────────────────
|
|
6869
7083
|
buildAppeal(input) {
|
|
@@ -6890,6 +7104,19 @@ function createAccordAdapter(accord) {
|
|
|
6890
7104
|
},
|
|
6891
7105
|
{ programAddress: input.programId }
|
|
6892
7106
|
);
|
|
7107
|
+
},
|
|
7108
|
+
buildClaimFilingBounty(input) {
|
|
7109
|
+
return getClaimFilingBountyInstruction(
|
|
7110
|
+
{
|
|
7111
|
+
caller: accord.signer,
|
|
7112
|
+
subaccord: input.accounts.subaccord,
|
|
7113
|
+
dispute: input.accounts.dispute,
|
|
7114
|
+
feeToken: input.accounts.feeToken,
|
|
7115
|
+
filerTokenAccount: input.accounts.filerTokenAccount,
|
|
7116
|
+
feeVault: input.accounts.feeVault
|
|
7117
|
+
},
|
|
7118
|
+
{ programAddress: input.programId }
|
|
7119
|
+
);
|
|
6893
7120
|
}
|
|
6894
7121
|
};
|
|
6895
7122
|
}
|
|
@@ -6969,8 +7196,8 @@ __name(appendRemaining, "appendRemaining");
|
|
|
6969
7196
|
|
|
6970
7197
|
// src/methods/lifecycle.ts
|
|
6971
7198
|
import {
|
|
6972
|
-
getAddressEncoder as
|
|
6973
|
-
getProgramDerivedAddress as
|
|
7199
|
+
getAddressEncoder as getAddressEncoder29,
|
|
7200
|
+
getProgramDerivedAddress as getProgramDerivedAddress20
|
|
6974
7201
|
} from "@solana/kit";
|
|
6975
7202
|
var SEED_SUBACCORD = new Uint8Array([
|
|
6976
7203
|
115,
|
|
@@ -7086,8 +7313,8 @@ function canExecuteAt(executeAfterSlot, currentSlot) {
|
|
|
7086
7313
|
}
|
|
7087
7314
|
__name(canExecuteAt, "canExecuteAt");
|
|
7088
7315
|
async function findSubaccordPda2(programAddress, creator, domainRef) {
|
|
7089
|
-
const creatorBytes = new Uint8Array(
|
|
7090
|
-
const [address, bump] = await
|
|
7316
|
+
const creatorBytes = new Uint8Array(getAddressEncoder29().encode(creator));
|
|
7317
|
+
const [address, bump] = await getProgramDerivedAddress20({
|
|
7091
7318
|
programAddress,
|
|
7092
7319
|
seeds: subaccordSeeds(creatorBytes, domainRef)
|
|
7093
7320
|
});
|
|
@@ -7095,8 +7322,8 @@ async function findSubaccordPda2(programAddress, creator, domainRef) {
|
|
|
7095
7322
|
}
|
|
7096
7323
|
__name(findSubaccordPda2, "findSubaccordPda");
|
|
7097
7324
|
async function findPendingUpdatePda2(programAddress, subaccord, nonce) {
|
|
7098
|
-
const subBytes = new Uint8Array(
|
|
7099
|
-
const [address, bump] = await
|
|
7325
|
+
const subBytes = new Uint8Array(getAddressEncoder29().encode(subaccord));
|
|
7326
|
+
const [address, bump] = await getProgramDerivedAddress20({
|
|
7100
7327
|
programAddress,
|
|
7101
7328
|
seeds: pendingUpdateSeeds(subBytes, nonce)
|
|
7102
7329
|
});
|
|
@@ -7104,7 +7331,7 @@ async function findPendingUpdatePda2(programAddress, subaccord, nonce) {
|
|
|
7104
7331
|
}
|
|
7105
7332
|
__name(findPendingUpdatePda2, "findPendingUpdatePda");
|
|
7106
7333
|
async function findAccordStatePdaWithBump(programAddress) {
|
|
7107
|
-
const [address, bump] = await
|
|
7334
|
+
const [address, bump] = await getProgramDerivedAddress20({
|
|
7108
7335
|
programAddress,
|
|
7109
7336
|
seeds: accordStateSeeds()
|
|
7110
7337
|
});
|
|
@@ -7189,8 +7416,8 @@ __name(executeUnpause, "executeUnpause");
|
|
|
7189
7416
|
// src/methods/staking.ts
|
|
7190
7417
|
import {
|
|
7191
7418
|
AccountRole as AccountRole2,
|
|
7192
|
-
getAddressEncoder as
|
|
7193
|
-
getProgramDerivedAddress as
|
|
7419
|
+
getAddressEncoder as getAddressEncoder30,
|
|
7420
|
+
getProgramDerivedAddress as getProgramDerivedAddress21
|
|
7194
7421
|
} from "@solana/kit";
|
|
7195
7422
|
var SEED_JUROR_STAKE = new Uint8Array([115, 116, 97, 107, 101]);
|
|
7196
7423
|
var U64_MAX3 = 0xffffffffffffffffn;
|
|
@@ -7225,15 +7452,21 @@ function jurorStakeSeeds(subaccordBytes, jurorBytes) {
|
|
|
7225
7452
|
return [SEED_JUROR_STAKE, subaccordBytes, jurorBytes];
|
|
7226
7453
|
}
|
|
7227
7454
|
__name(jurorStakeSeeds, "jurorStakeSeeds");
|
|
7228
|
-
function stake(client, programId, accounts, amount, path, attestation, freedSlotAccount) {
|
|
7455
|
+
function stake(client, programId, accounts, amount, path, attestation, freedSlotAccount, nextNeighborAccount) {
|
|
7229
7456
|
assertValidAmount(amount);
|
|
7230
7457
|
const ix = client.buildStake({ programId, accounts, amount, path, attestation });
|
|
7231
|
-
|
|
7458
|
+
const neighbors = [freedSlotAccount, nextNeighborAccount].filter(
|
|
7459
|
+
(a) => a !== void 0
|
|
7460
|
+
);
|
|
7461
|
+
if (neighbors.length > 0) {
|
|
7232
7462
|
return {
|
|
7233
7463
|
...ix,
|
|
7234
7464
|
accounts: [
|
|
7235
7465
|
...ix.accounts ?? [],
|
|
7236
|
-
|
|
7466
|
+
...neighbors.map((address) => ({
|
|
7467
|
+
address,
|
|
7468
|
+
role: AccountRole2.WRITABLE
|
|
7469
|
+
}))
|
|
7237
7470
|
]
|
|
7238
7471
|
};
|
|
7239
7472
|
}
|
|
@@ -7258,8 +7491,18 @@ function reconcileStake(client, programId, accounts, path) {
|
|
|
7258
7491
|
return client.buildReconcileStake({ programId, accounts, path });
|
|
7259
7492
|
}
|
|
7260
7493
|
__name(reconcileStake, "reconcileStake");
|
|
7261
|
-
function reclaimSlot(client, programId, accounts, path) {
|
|
7262
|
-
|
|
7494
|
+
function reclaimSlot(client, programId, accounts, path, headSlotAccount) {
|
|
7495
|
+
const ix = client.buildReclaimSlot({ programId, accounts, path });
|
|
7496
|
+
if (headSlotAccount) {
|
|
7497
|
+
return {
|
|
7498
|
+
...ix,
|
|
7499
|
+
accounts: [
|
|
7500
|
+
...ix.accounts ?? [],
|
|
7501
|
+
{ address: headSlotAccount, role: AccountRole2.WRITABLE }
|
|
7502
|
+
]
|
|
7503
|
+
};
|
|
7504
|
+
}
|
|
7505
|
+
return ix;
|
|
7263
7506
|
}
|
|
7264
7507
|
__name(reclaimSlot, "reclaimSlot");
|
|
7265
7508
|
function withdrawFees(client, programId, accounts) {
|
|
@@ -7297,6 +7540,10 @@ function cancelDispute(client, programId, accounts, remainingAccounts) {
|
|
|
7297
7540
|
});
|
|
7298
7541
|
}
|
|
7299
7542
|
__name(cancelDispute, "cancelDispute");
|
|
7543
|
+
function claimFilingBounty(client, programId, accounts) {
|
|
7544
|
+
return client.buildClaimFilingBounty({ programId, accounts });
|
|
7545
|
+
}
|
|
7546
|
+
__name(claimFilingBounty, "claimFilingBounty");
|
|
7300
7547
|
|
|
7301
7548
|
// src/methods/mst.ts
|
|
7302
7549
|
var MAX_SDK_DEPTH = 20;
|
|
@@ -7523,7 +7770,7 @@ async function findLeafForSlot(tree, slot) {
|
|
|
7523
7770
|
return null;
|
|
7524
7771
|
}
|
|
7525
7772
|
__name(findLeafForSlot, "findLeafForSlot");
|
|
7526
|
-
async function resolveSeat(committedVrf, disputeBytes, roundIdx, seat, tree, alreadyDrawn, maxRetries =
|
|
7773
|
+
async function resolveSeat(committedVrf, disputeBytes, roundIdx, seat, tree, alreadyDrawn, maxRetries = MAX_SORTITION_RETRIES, drawAttempt = 0) {
|
|
7527
7774
|
const total = tree.rootSum;
|
|
7528
7775
|
if (total <= 0n) throw new Error("InvalidTotalStake: must be > 0");
|
|
7529
7776
|
const drawnHex = new Set(alreadyDrawn.map((j) => hex(j)));
|
|
@@ -7704,8 +7951,8 @@ function reveal(client, programId, accounts, args) {
|
|
|
7704
7951
|
});
|
|
7705
7952
|
}
|
|
7706
7953
|
__name(reveal, "reveal");
|
|
7707
|
-
function finalizeRound(client, programId, accounts
|
|
7708
|
-
return client.buildFinalizeRound({ programId, accounts
|
|
7954
|
+
function finalizeRound(client, programId, accounts) {
|
|
7955
|
+
return client.buildFinalizeRound({ programId, accounts });
|
|
7709
7956
|
}
|
|
7710
7957
|
__name(finalizeRound, "finalizeRound");
|
|
7711
7958
|
function finalizeDispute(client, programId, accounts, remainingAccounts) {
|
|
@@ -7723,8 +7970,8 @@ __name(redraw, "redraw");
|
|
|
7723
7970
|
|
|
7724
7971
|
// src/methods/appeal.ts
|
|
7725
7972
|
import {
|
|
7726
|
-
getAddressEncoder as
|
|
7727
|
-
getProgramDerivedAddress as
|
|
7973
|
+
getAddressEncoder as getAddressEncoder31,
|
|
7974
|
+
getProgramDerivedAddress as getProgramDerivedAddress22
|
|
7728
7975
|
} from "@solana/kit";
|
|
7729
7976
|
var SEED_APPEAL_BOND = new Uint8Array([98, 111, 110, 100]);
|
|
7730
7977
|
function le42(v) {
|
|
@@ -7739,7 +7986,8 @@ function appealCost(currentRound, feePerJuror, minJurySize = 3) {
|
|
|
7739
7986
|
if (panel === null) return null;
|
|
7740
7987
|
const fee = BigInt(panel) * feePerJuror;
|
|
7741
7988
|
const bond = fee;
|
|
7742
|
-
|
|
7989
|
+
const bounty = feePerJuror;
|
|
7990
|
+
return { newRound, panel, fee, bond, bounty, total: fee + bond + bounty };
|
|
7743
7991
|
}
|
|
7744
7992
|
__name(appealCost, "appealCost");
|
|
7745
7993
|
function canAppeal(currentRound, maxAppeals) {
|
|
@@ -7820,6 +8068,7 @@ function createAccordMethods(adapter, programId = ACCORD_PROGRAM_ID, _signer) {
|
|
|
7820
8068
|
remainingAccounts
|
|
7821
8069
|
), "settleRound"),
|
|
7822
8070
|
cancelDispute: /* @__PURE__ */ __name((accounts, remainingAccounts) => cancelDispute(adapter, programId, accounts, remainingAccounts), "cancelDispute"),
|
|
8071
|
+
claimFilingBounty: /* @__PURE__ */ __name((accounts) => claimFilingBounty(adapter, programId, accounts), "claimFilingBounty"),
|
|
7823
8072
|
// vrf + per-seat draw
|
|
7824
8073
|
requestVrf: /* @__PURE__ */ __name((accounts, extras) => requestVrf(adapter, programId, accounts, extras), "requestVrf"),
|
|
7825
8074
|
awaitCommittedVrf: /* @__PURE__ */ __name((dispute, opts) => awaitCommittedVrf(adapter, dispute, opts), "awaitCommittedVrf"),
|
|
@@ -7827,7 +8076,7 @@ function createAccordMethods(adapter, programId = ACCORD_PROGRAM_ID, _signer) {
|
|
|
7827
8076
|
// voting
|
|
7828
8077
|
commit: /* @__PURE__ */ __name((accounts, args) => commit(adapter, programId, accounts, args), "commit"),
|
|
7829
8078
|
reveal: /* @__PURE__ */ __name((accounts, args) => reveal(adapter, programId, accounts, args), "reveal"),
|
|
7830
|
-
finalizeRound: /* @__PURE__ */ __name((accounts
|
|
8079
|
+
finalizeRound: /* @__PURE__ */ __name((accounts) => finalizeRound(adapter, programId, accounts), "finalizeRound"),
|
|
7831
8080
|
finalizeDispute: /* @__PURE__ */ __name((accounts, remainingAccounts) => finalizeDispute(adapter, programId, accounts, remainingAccounts), "finalizeDispute"),
|
|
7832
8081
|
redraw: /* @__PURE__ */ __name((accounts, remainingAccounts = []) => redraw(adapter, programId, accounts, remainingAccounts), "redraw"),
|
|
7833
8082
|
// appeal
|
|
@@ -7899,14 +8148,14 @@ __name(signerFromWallet, "signerFromWallet");
|
|
|
7899
8148
|
|
|
7900
8149
|
// src/token.ts
|
|
7901
8150
|
import {
|
|
7902
|
-
getAddressEncoder as
|
|
7903
|
-
getProgramDerivedAddress as
|
|
8151
|
+
getAddressEncoder as getAddressEncoder32,
|
|
8152
|
+
getProgramDerivedAddress as getProgramDerivedAddress23
|
|
7904
8153
|
} from "@solana/kit";
|
|
7905
8154
|
var TOKEN_PROGRAM_ADDRESS = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
7906
8155
|
var ASSOCIATED_TOKEN_PROGRAM_ADDRESS = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
7907
8156
|
async function findAssociatedTokenAddress(mint, owner) {
|
|
7908
|
-
const enc =
|
|
7909
|
-
const [ata] = await
|
|
8157
|
+
const enc = getAddressEncoder32();
|
|
8158
|
+
const [ata] = await getProgramDerivedAddress23({
|
|
7910
8159
|
programAddress: ASSOCIATED_TOKEN_PROGRAM_ADDRESS,
|
|
7911
8160
|
seeds: [enc.encode(owner), enc.encode(TOKEN_PROGRAM_ADDRESS), enc.encode(mint)]
|
|
7912
8161
|
});
|
|
@@ -7916,12 +8165,12 @@ __name(findAssociatedTokenAddress, "findAssociatedTokenAddress");
|
|
|
7916
8165
|
|
|
7917
8166
|
// src/query.ts
|
|
7918
8167
|
import {
|
|
7919
|
-
getAddressEncoder as
|
|
8168
|
+
getAddressEncoder as getAddressEncoder33,
|
|
7920
8169
|
getBase58Decoder,
|
|
7921
8170
|
getBase64Encoder
|
|
7922
8171
|
} from "@solana/kit";
|
|
7923
8172
|
var base58 = getBase58Decoder();
|
|
7924
|
-
var addressEncoder =
|
|
8173
|
+
var addressEncoder = getAddressEncoder33();
|
|
7925
8174
|
function discriminatorFilter(discriminator) {
|
|
7926
8175
|
return {
|
|
7927
8176
|
memcmp: {
|
|
@@ -8274,9 +8523,9 @@ var AccordErrors = {
|
|
|
8274
8523
|
};
|
|
8275
8524
|
|
|
8276
8525
|
// src/methods/stakeFlow.ts
|
|
8277
|
-
import { getAddressEncoder as
|
|
8526
|
+
import { getAddressEncoder as getAddressEncoder34 } from "@solana/kit";
|
|
8278
8527
|
function addrBytes(addr) {
|
|
8279
|
-
return new Uint8Array(
|
|
8528
|
+
return new Uint8Array(getAddressEncoder34().encode(addr));
|
|
8280
8529
|
}
|
|
8281
8530
|
__name(addrBytes, "addrBytes");
|
|
8282
8531
|
async function prepareStakeProof(subaccord, jurorStakes, juror) {
|
|
@@ -8553,6 +8802,7 @@ export {
|
|
|
8553
8802
|
MAX_JURORS,
|
|
8554
8803
|
MAX_OPTIONS,
|
|
8555
8804
|
MAX_SAFE_TREE_DEPTH,
|
|
8805
|
+
MAX_SORTITION_RETRIES,
|
|
8556
8806
|
MIN_APPEAL_WINDOW_SECS,
|
|
8557
8807
|
NO_RULING,
|
|
8558
8808
|
NO_VOTE,
|
|
@@ -8594,6 +8844,7 @@ export {
|
|
|
8594
8844
|
canUnstake,
|
|
8595
8845
|
cancelDispute,
|
|
8596
8846
|
claimAppealRefund,
|
|
8847
|
+
claimFilingBounty,
|
|
8597
8848
|
commit,
|
|
8598
8849
|
commitHash,
|
|
8599
8850
|
createAccordAdapter,
|