@across-protocol/contracts 5.0.11 → 5.0.12-beta.1
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/contracts/external/interfaces/CCTPInterfaces.sol +18 -0
- package/contracts/interfaces/SponsoredCCTPInterface.sol +11 -0
- package/contracts/libraries/SponsoredCCTPQuoteLib.sol +22 -0
- package/contracts/periphery/mintburn/ArbitraryEVMFlowExecutor.sol +38 -15
- package/contracts/periphery/mintburn/sponsored-cctp/SponsoredCCTPDstPeriphery.sol +41 -12
- package/contracts/test/MockCCTP.sol +10 -0
- package/dist/broadcast/deployed-addresses.json +50 -0
- package/dist/evm/artifacts/Arbitrum_Adapter.sol/Arbitrum_Adapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_CustomGasToken_Adapter.sol/Arbitrum_CustomGasToken_Adapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_RescueAdapter.sol/Arbitrum_RescueAdapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_SendTokensAdapter.sol/Arbitrum_SendTokensAdapter.json +1 -1
- package/dist/evm/artifacts/Arbitrum_SpokePool.sol/Arbitrum_SpokePool.json +1 -1
- package/dist/evm/artifacts/Arbitrum_WithdrawalHelper.sol/Arbitrum_WithdrawalHelper.json +1 -1
- package/dist/evm/artifacts/Base_Adapter.sol/Base_Adapter.json +1 -1
- package/dist/evm/artifacts/Blast_Adapter.sol/Blast_Adapter.json +1 -1
- package/dist/evm/artifacts/Blast_SpokePool.sol/Blast_SpokePool.json +1 -1
- package/dist/evm/artifacts/Boba_SpokePool.sol/Boba_SpokePool.json +1 -1
- package/dist/evm/artifacts/CCTPInterfaces.sol/ITokenMessengerV2.json +1 -1
- package/dist/evm/artifacts/CCTPInterfaces.sol/ITokenMinter.json +1 -1
- package/dist/evm/artifacts/Cher_SpokePool.sol/Cher_SpokePool.json +1 -1
- package/dist/evm/artifacts/CircleCCTPAdapter.sol/CircleDomainIds.json +1 -1
- package/dist/evm/artifacts/CounterfactualDepositCCTP.sol/CounterfactualDepositCCTP.json +1 -1
- package/dist/evm/artifacts/DoctorWho_Adapter.sol/DoctorWho_Adapter.json +1 -1
- package/dist/evm/artifacts/DstOFTHandler.sol/DstOFTHandler.json +1 -1
- package/dist/evm/artifacts/Ink_SpokePool.sol/Ink_SpokePool.json +1 -1
- package/dist/evm/artifacts/Lens_SpokePool.sol/Lens_SpokePool.json +1 -1
- package/dist/evm/artifacts/Linea_Adapter.sol/Linea_Adapter.json +1 -1
- package/dist/evm/artifacts/Linea_SpokePool.sol/Linea_SpokePool.json +1 -1
- package/dist/evm/artifacts/Lisk_Adapter.sol/Lisk_Adapter.json +1 -1
- package/dist/evm/artifacts/Lisk_SpokePool.sol/Lisk_SpokePool.json +1 -1
- package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockCrossDomainMessenger.json +1 -1
- package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL1StandardBridge.json +1 -1
- package/dist/evm/artifacts/MockBedrockStandardBridge.sol/MockBedrockL2StandardBridge.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessageTransmitter.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessenger.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMessengerV2.json +1 -1
- package/dist/evm/artifacts/MockCCTP.sol/MockCCTPMinter.json +1 -1
- package/dist/evm/artifacts/MockOptimism_SpokePool.sol/MockOptimism_SpokePool.json +1 -1
- package/dist/evm/artifacts/Mode_Adapter.sol/Mode_Adapter.json +1 -1
- package/dist/evm/artifacts/OP_Adapter.sol/OP_Adapter.json +1 -1
- package/dist/evm/artifacts/OP_SpokePool.sol/OP_SpokePool.json +1 -1
- package/dist/evm/artifacts/Optimism_Adapter.sol/Optimism_Adapter.json +1 -1
- package/dist/evm/artifacts/Optimism_SpokePool.sol/Optimism_SpokePool.json +1 -1
- package/dist/evm/artifacts/Ovm_SpokePool.sol/Ovm_SpokePool.json +1 -1
- package/dist/evm/artifacts/Ovm_WithdrawalHelper.sol/Ovm_WithdrawalHelper.json +1 -1
- package/dist/evm/artifacts/Polygon_Adapter.sol/Polygon_Adapter.json +1 -1
- package/dist/evm/artifacts/Polygon_SpokePool.sol/Polygon_SpokePool.json +1 -1
- package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPInterface.sol/SponsoredCCTPInterface.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPSrcPeriphery.sol/SponsoredCCTPSrcPeriphery.json +1 -1
- package/dist/evm/artifacts/SponsoredOFTSrcPeriphery.sol/SponsoredOFTSrcPeriphery.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePool.sol/Tron_SpokePool.json +1 -1
- package/dist/evm/artifacts/Universal_Adapter.sol/Universal_Adapter.json +1 -1
- package/dist/evm/artifacts/Universal_SpokePool.sol/Universal_SpokePool.json +1 -1
- package/dist/evm/artifacts/WorldChain_SpokePool.sol/WorldChain_SpokePool.json +1 -1
- package/dist/evm/artifacts/ZkStack_Adapter.sol/ZkStack_Adapter.json +1 -1
- package/dist/evm/artifacts/ZkStack_CustomGasToken_Adapter.sol/ZkStack_CustomGasToken_Adapter.json +1 -1
- package/dist/evm/artifacts/ZkSync_SpokePool.sol/ZkSync_SpokePool.json +1 -1
- package/dist/evm/artifacts/Zora_Adapter.sol/Zora_Adapter.json +1 -1
- package/dist/evm/artifacts/eraVM_EIP7702.sol/SimpleContract.json +1 -1
- package/dist/evm/artifacts/eraVM_EIP7702.sol/SpokePoolEIP7702Test.json +1 -1
- package/dist/evm/artifacts/eraVM_EIP7702.sol/TestableMockSpokePool.json +1 -1
- package/dist/src/svm/assets/idl/svm_spoke.json +9 -4
- package/dist/src/svm/assets/svm_spoke.d.ts +9 -4
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +3 -1
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +4 -1
- package/dist/src/types/svm.d.ts +44 -0
- package/dist/target/types/svm_spoke.d.ts +9 -4
- package/package.json +1 -1
|
@@ -1982,8 +1982,8 @@
|
|
|
1982
1982
|
"this will be set higher to reimburse the recipient for waiting for the slow fill.",
|
|
1983
1983
|
"- _root_bundle_id: Unique ID of root bundle containing slow relay root that this leaf is contained in.",
|
|
1984
1984
|
"- proof: Inclusion proof for this leaf in slow relay root in root bundle.",
|
|
1985
|
-
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters
|
|
1986
|
-
"the caller must load them via the instruction_params account.",
|
|
1985
|
+
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters, but their presence must be consistent.",
|
|
1986
|
+
"If None for these parameters is passed, the caller must load them via the instruction_params account.",
|
|
1987
1987
|
"Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes",
|
|
1988
1988
|
"output token amounts to little-endian format while input token amount preserves its big-endian encoding as it",
|
|
1989
1989
|
"is passed as [u8; 32] array."
|
|
@@ -2366,8 +2366,8 @@
|
|
|
2366
2366
|
"- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
|
|
2367
2367
|
"passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
|
|
2368
2368
|
"- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
|
|
2369
|
-
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters
|
|
2370
|
-
"is passed, the caller must load them via the instruction_params account."
|
|
2369
|
+
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters, but their presence must be",
|
|
2370
|
+
"consistent. If None for these is passed, the caller must load them via the instruction_params account."
|
|
2371
2371
|
],
|
|
2372
2372
|
"discriminator": [
|
|
2373
2373
|
100,
|
|
@@ -4612,6 +4612,11 @@
|
|
|
4612
4612
|
"code": 6017,
|
|
4613
4613
|
"name": "InvalidDelegatePda",
|
|
4614
4614
|
"msg": "Invalid delegate PDA!"
|
|
4615
|
+
},
|
|
4616
|
+
{
|
|
4617
|
+
"code": 6018,
|
|
4618
|
+
"name": "InconsistentOptionalParameters",
|
|
4619
|
+
"msg": "Inconsistent optional parameters!"
|
|
4615
4620
|
}
|
|
4616
4621
|
],
|
|
4617
4622
|
"types": [
|
|
@@ -1988,8 +1988,8 @@ export type SvmSpoke = {
|
|
|
1988
1988
|
"this will be set higher to reimburse the recipient for waiting for the slow fill.",
|
|
1989
1989
|
"- _root_bundle_id: Unique ID of root bundle containing slow relay root that this leaf is contained in.",
|
|
1990
1990
|
"- proof: Inclusion proof for this leaf in slow relay root in root bundle.",
|
|
1991
|
-
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters
|
|
1992
|
-
"the caller must load them via the instruction_params account.",
|
|
1991
|
+
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters, but their presence must be consistent.",
|
|
1992
|
+
"If None for these parameters is passed, the caller must load them via the instruction_params account.",
|
|
1993
1993
|
"Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes",
|
|
1994
1994
|
"output token amounts to little-endian format while input token amount preserves its big-endian encoding as it",
|
|
1995
1995
|
"is passed as [u8; 32] array."
|
|
@@ -2372,8 +2372,8 @@ export type SvmSpoke = {
|
|
|
2372
2372
|
"- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
|
|
2373
2373
|
"passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
|
|
2374
2374
|
"- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
|
|
2375
|
-
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters
|
|
2376
|
-
"is passed, the caller must load them via the instruction_params account."
|
|
2375
|
+
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters, but their presence must be",
|
|
2376
|
+
"consistent. If None for these is passed, the caller must load them via the instruction_params account."
|
|
2377
2377
|
];
|
|
2378
2378
|
"discriminator": [
|
|
2379
2379
|
100,
|
|
@@ -4618,6 +4618,11 @@ export type SvmSpoke = {
|
|
|
4618
4618
|
"code": 6017;
|
|
4619
4619
|
"name": "invalidDelegatePda";
|
|
4620
4620
|
"msg": "Invalid delegate PDA!";
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
"code": 6018;
|
|
4624
|
+
"name": "inconsistentOptionalParameters";
|
|
4625
|
+
"msg": "Inconsistent optional parameters!";
|
|
4621
4626
|
}
|
|
4622
4627
|
];
|
|
4623
4628
|
"types": [
|
|
@@ -42,7 +42,9 @@ export declare const SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 6015;
|
|
|
42
42
|
export declare const SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 6016;
|
|
43
43
|
/** InvalidDelegatePda: Invalid delegate PDA! */
|
|
44
44
|
export declare const SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 6017;
|
|
45
|
-
|
|
45
|
+
/** InconsistentOptionalParameters: Inconsistent optional parameters! */
|
|
46
|
+
export declare const SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS = 6018;
|
|
47
|
+
export type SvmSpokeError = typeof SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME | typeof SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED | typeof SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT | typeof SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS | typeof SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS | typeof SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER | typeof SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA | typeof SVM_SPOKE_ERROR__INVALID_MINT | typeof SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED | typeof SVM_SPOKE_ERROR__INVALID_REFUND | typeof SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_RELAY_HASH | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER | typeof SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM | typeof SVM_SPOKE_ERROR__NOT_OWNER | typeof SVM_SPOKE_ERROR__NOT_RELAYER | typeof SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW | typeof SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM;
|
|
46
48
|
export declare function getSvmSpokeErrorMessage(code: SvmSpokeError): string;
|
|
47
49
|
export declare function isSvmSpokeError<TProgramErrorCode extends SvmSpokeError>(error: unknown, transactionMessage: {
|
|
48
50
|
instructions: Record<number, {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @see https://github.com/codama-idl/codama
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__INVALID_REFUND = exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = exports.SVM_SPOKE_ERROR__INVALID_MINT = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = exports.SVM_SPOKE_ERROR__NOT_RELAYER = exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = exports.SVM_SPOKE_ERROR__NOT_OWNER = void 0;
|
|
10
|
+
exports.SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS = exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__INVALID_REFUND = exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = exports.SVM_SPOKE_ERROR__INVALID_MINT = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = exports.SVM_SPOKE_ERROR__NOT_RELAYER = exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = exports.SVM_SPOKE_ERROR__NOT_OWNER = void 0;
|
|
11
11
|
exports.getSvmSpokeErrorMessage = getSvmSpokeErrorMessage;
|
|
12
12
|
exports.isSvmSpokeError = isSvmSpokeError;
|
|
13
13
|
const kit_1 = require("@solana/kit");
|
|
@@ -48,12 +48,15 @@ exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 0x177f; // 6015
|
|
|
48
48
|
exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 0x1780; // 6016
|
|
49
49
|
/** InvalidDelegatePda: Invalid delegate PDA! */
|
|
50
50
|
exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 0x1781; // 6017
|
|
51
|
+
/** InconsistentOptionalParameters: Inconsistent optional parameters! */
|
|
52
|
+
exports.SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS = 0x1782; // 6018
|
|
51
53
|
let svmSpokeErrorMessages;
|
|
52
54
|
if (process.env.NODE_ENV !== 'production') {
|
|
53
55
|
svmSpokeErrorMessages = {
|
|
54
56
|
[exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME]: `Cannot set time if not in test mode!`,
|
|
55
57
|
[exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED]: `The fill deadline has not passed!`,
|
|
56
58
|
[exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT]: `Exceeded pending bridge amount to HubPool!`,
|
|
59
|
+
[exports.SVM_SPOKE_ERROR__INCONSISTENT_OPTIONAL_PARAMETERS]: `Inconsistent optional parameters!`,
|
|
57
60
|
[exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS]: `Invalid remaining accounts for ATA creation!`,
|
|
58
61
|
[exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER]: `Invalid claim initializer!`,
|
|
59
62
|
[exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA]: `Invalid delegate PDA!`,
|
package/dist/src/types/svm.d.ts
CHANGED
|
@@ -120,3 +120,47 @@ export interface EventType {
|
|
|
120
120
|
* Supported Networks
|
|
121
121
|
*/
|
|
122
122
|
export type SupportedNetworks = "mainnet" | "devnet";
|
|
123
|
+
/**
|
|
124
|
+
* Fill instruction accounts
|
|
125
|
+
*/
|
|
126
|
+
export type FillAccounts = {
|
|
127
|
+
signer: PublicKey;
|
|
128
|
+
instructionParams: PublicKey;
|
|
129
|
+
state: PublicKey;
|
|
130
|
+
delegate: PublicKey;
|
|
131
|
+
mint: PublicKey;
|
|
132
|
+
relayerTokenAccount: PublicKey;
|
|
133
|
+
recipientTokenAccount: PublicKey;
|
|
134
|
+
fillStatus: PublicKey;
|
|
135
|
+
tokenProgram: PublicKey;
|
|
136
|
+
associatedTokenProgram: PublicKey;
|
|
137
|
+
systemProgram: PublicKey;
|
|
138
|
+
program: PublicKey;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Request Slow Fill Accounts
|
|
142
|
+
*/
|
|
143
|
+
export type RequestSlowFillAccounts = {
|
|
144
|
+
signer: PublicKey;
|
|
145
|
+
instructionParams: PublicKey;
|
|
146
|
+
state: PublicKey;
|
|
147
|
+
fillStatus: PublicKey;
|
|
148
|
+
systemProgram: PublicKey;
|
|
149
|
+
program: PublicKey;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Execute Slow Relay Leaf Accounts
|
|
153
|
+
*/
|
|
154
|
+
export type ExecuteSlowRelayLeafAccounts = {
|
|
155
|
+
signer: PublicKey;
|
|
156
|
+
instructionParams: PublicKey;
|
|
157
|
+
state: PublicKey;
|
|
158
|
+
rootBundle: PublicKey;
|
|
159
|
+
fillStatus: PublicKey;
|
|
160
|
+
mint: PublicKey;
|
|
161
|
+
recipientTokenAccount: PublicKey;
|
|
162
|
+
vault: PublicKey;
|
|
163
|
+
tokenProgram: PublicKey;
|
|
164
|
+
systemProgram: PublicKey;
|
|
165
|
+
program: PublicKey;
|
|
166
|
+
};
|
|
@@ -1988,8 +1988,8 @@ export type SvmSpoke = {
|
|
|
1988
1988
|
"this will be set higher to reimburse the recipient for waiting for the slow fill.",
|
|
1989
1989
|
"- _root_bundle_id: Unique ID of root bundle containing slow relay root that this leaf is contained in.",
|
|
1990
1990
|
"- proof: Inclusion proof for this leaf in slow relay root in root bundle.",
|
|
1991
|
-
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters
|
|
1992
|
-
"the caller must load them via the instruction_params account.",
|
|
1991
|
+
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters, but their presence must be consistent.",
|
|
1992
|
+
"If None for these parameters is passed, the caller must load them via the instruction_params account.",
|
|
1993
1993
|
"Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes",
|
|
1994
1994
|
"output token amounts to little-endian format while input token amount preserves its big-endian encoding as it",
|
|
1995
1995
|
"is passed as [u8; 32] array."
|
|
@@ -2372,8 +2372,8 @@ export type SvmSpoke = {
|
|
|
2372
2372
|
"- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
|
|
2373
2373
|
"passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
|
|
2374
2374
|
"- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
|
|
2375
|
-
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters
|
|
2376
|
-
"is passed, the caller must load them via the instruction_params account."
|
|
2375
|
+
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters, but their presence must be",
|
|
2376
|
+
"consistent. If None for these is passed, the caller must load them via the instruction_params account."
|
|
2377
2377
|
];
|
|
2378
2378
|
"discriminator": [
|
|
2379
2379
|
100,
|
|
@@ -4618,6 +4618,11 @@ export type SvmSpoke = {
|
|
|
4618
4618
|
"code": 6017;
|
|
4619
4619
|
"name": "invalidDelegatePda";
|
|
4620
4620
|
"msg": "Invalid delegate PDA!";
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
"code": 6018;
|
|
4624
|
+
"name": "inconsistentOptionalParameters";
|
|
4625
|
+
"msg": "Inconsistent optional parameters!";
|
|
4621
4626
|
}
|
|
4622
4627
|
];
|
|
4623
4628
|
"types": [
|