@across-protocol/contracts 6.0.0-beta.2 → 6.0.0-beta.3
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/README.md +138 -34
- package/contracts/chain-adapters/Solana_Adapter.sol +4 -7
- package/contracts/handlers/HyperliquidDepositHandler.sol +2 -2
- package/contracts/interfaces/SpokePoolPeripheryInterface.sol +16 -4
- package/contracts/libraries/HyperCoreLib.sol +113 -20
- package/contracts/libraries/PeripherySigningLib.sol +56 -0
- package/contracts/periphery/SpokePoolPeriphery.sol +58 -10
- package/dist/broadcast/deployed-addresses.json +19 -0
- package/dist/evm/artifacts/Constants.sol/Constants.json +1 -1
- package/dist/evm/artifacts/DeploymentUtils.sol/DeploymentUtils.json +1 -1
- package/dist/evm/artifacts/DstOFTHandler.sol/DstOFTHandler.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockAddressWhitelist.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockFinder.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockIdentifierWhitelist.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockLpTokenFactory.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockOptimisticOracle.json +1 -1
- package/dist/evm/artifacts/HubPoolTestBase.sol/MockStore.json +1 -1
- package/dist/evm/artifacts/HyperCoreFlowExecutor.sol/HyperCoreFlowExecutor.json +1 -1
- package/dist/evm/artifacts/HyperCoreLib.sol/HyperCoreLib.json +1 -1
- package/dist/evm/artifacts/HyperliquidDepositHandler.sol/HyperliquidDepositHandler.json +1 -1
- package/dist/evm/artifacts/PeripherySigningLib.sol/PeripherySigningLib.json +1 -1
- package/dist/evm/artifacts/Solana_Adapter.sol/Solana_Adapter.json +1 -1
- package/dist/evm/artifacts/SpokePoolPeriphery.sol/SpokePoolPeriphery.json +1 -1
- package/dist/evm/artifacts/SpokePoolPeriphery.sol/SwapProxy.json +1 -1
- package/dist/evm/artifacts/SponsoredCCTPDstPeriphery.sol/SponsoredCCTPDstPeriphery.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/SwapHandler.sol/SwapHandler.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SpokePoolPeriphery.json +1 -1
- package/dist/evm/artifacts/Tron_SpokePoolPeriphery.sol/Tron_SwapProxy.json +1 -1
- package/dist/src/consts.js +1 -0
- package/dist/src/svm/assets/idl/sponsored_cctp_src_periphery.json +41 -24
- package/dist/src/svm/assets/idl/svm_spoke.json +1001 -2171
- package/dist/src/svm/assets/sponsored_cctp_src_periphery.d.ts +41 -24
- package/dist/src/svm/assets/svm_spoke.d.ts +996 -2166
- package/dist/src/svm/assets/token_messenger_minter_v2.d.ts +18 -18
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.d.ts +0 -1
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/index.js +0 -1
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.d.ts +24 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/errors/sponsoredCctpSrcPeriphery.js +30 -12
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.d.ts +4 -5
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/programs/sponsoredCctpSrcPeriphery.js +4 -8
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.d.ts +1 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/index.js +1 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.d.ts +21 -0
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/types/messageSent.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.d.ts +2 -2
- package/dist/src/svm/clients/SvmSpoke/accounts/fillStatusAccount.js +2 -2
- package/dist/src/svm/clients/SvmSpoke/accounts/index.d.ts +0 -3
- package/dist/src/svm/clients/SvmSpoke/accounts/index.js +0 -3
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts +94 -22
- package/dist/src/svm/clients/SvmSpoke/errors/svmSpoke.js +133 -24
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.d.ts +75 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/adapterExecuteAcrossV5.js +144 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.d.ts +16 -8
- package/dist/src/svm/clients/SvmSpoke/instructions/closeFillPda.js +3 -3
- package/dist/src/svm/clients/SvmSpoke/instructions/index.d.ts +2 -7
- package/dist/src/svm/clients/SvmSpoke/instructions/index.js +2 -7
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.d.ts +58 -0
- package/dist/src/svm/clients/SvmSpoke/instructions/withdrawV5FillPayer.js +134 -0
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.d.ts +29 -47
- package/dist/src/svm/clients/SvmSpoke/programs/svmSpoke.js +29 -61
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.d.ts +25 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositInput.js +33 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.d.ts +18 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositJitParams.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.d.ts +43 -0
- package/dist/src/svm/clients/SvmSpoke/types/acrossDepositParams.js +48 -0
- package/dist/src/svm/clients/SvmSpoke/types/index.d.ts +9 -1
- package/dist/src/svm/clients/SvmSpoke/types/index.js +9 -1
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.d.ts +39 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5AdapterInput.js +59 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.d.ts +17 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5DepositModificationRules.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.d.ts +19 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillFloatWithdrawn.js +28 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.d.ts +25 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillInput.js +30 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5FillJit.d.ts +22 -0
- package/dist/src/svm/clients/SvmSpoke/types/{slowFill.js → v5FillJit.js} +11 -11
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.d.ts +29 -0
- package/dist/src/svm/clients/SvmSpoke/types/v5InputAmountMode.js +38 -0
- package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +83 -97
- package/dist/src/svm/web3-v1/cctpV2Helpers.js +1 -1
- package/dist/src/svm/web3-v1/coders.d.ts +1 -1
- package/dist/src/svm/web3-v1/coders.js +4 -4
- package/dist/src/svm/web3-v1/conversionUtils.d.ts +1 -1
- package/dist/src/svm/web3-v1/conversionUtils.js +3 -3
- package/dist/src/svm/web3-v1/helpers.d.ts +1 -114
- package/dist/src/svm/web3-v1/helpers.js +1 -179
- package/dist/src/svm/web3-v1/instructionParamsUtils.d.ts +11 -26
- package/dist/src/svm/web3-v1/instructionParamsUtils.js +5 -90
- package/dist/src/svm/web3-v1/programConnectors.d.ts +1 -1
- package/dist/src/svm/web3-v1/programConnectors.js +2 -2
- package/dist/src/svm/web3-v1/relayHashUtils.d.ts +2 -6
- package/dist/src/svm/web3-v1/relayHashUtils.js +5 -66
- package/dist/src/svm/web3-v1/solanaProgramUtils.d.ts +1 -1
- package/dist/src/svm/web3-v1/solanaProgramUtils.js +7 -7
- package/dist/src/svm/web3-v1/transactionUtils.js +3 -3
- package/dist/src/svm/web3-v2/solanaProgramUtils.d.ts +1 -1
- package/dist/src/svm/web3-v2/solanaProgramUtils.js +4 -4
- package/dist/src/types/svm.d.ts +1 -46
- package/package.json +17 -6
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.d.ts +0 -30
- package/dist/src/svm/clients/SponsoredCctpSrcPeriphery/accounts/messageSent.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/executeSlowRelayLeafParams.js +0 -70
- package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.d.ts +0 -31
- package/dist/src/svm/clients/SvmSpoke/accounts/fillRelayParams.js +0 -67
- package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.d.ts +0 -27
- package/dist/src/svm/clients/SvmSpoke/accounts/requestSlowFillParams.js +0 -66
- package/dist/src/svm/clients/SvmSpoke/instructions/deposit.d.ts +0 -131
- package/dist/src/svm/clients/SvmSpoke/instructions/deposit.js +0 -241
- package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.d.ts +0 -127
- package/dist/src/svm/clients/SvmSpoke/instructions/depositNow.js +0 -239
- package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.d.ts +0 -104
- package/dist/src/svm/clients/SvmSpoke/instructions/executeSlowRelayLeaf.js +0 -259
- package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.d.ts +0 -108
- package/dist/src/svm/clients/SvmSpoke/instructions/fillRelay.js +0 -265
- package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.d.ts +0 -39
- package/dist/src/svm/clients/SvmSpoke/instructions/getUnsafeDepositId.js +0 -63
- package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.d.ts +0 -76
- package/dist/src/svm/clients/SvmSpoke/instructions/requestSlowFill.js +0 -187
- package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.d.ts +0 -135
- package/dist/src/svm/clients/SvmSpoke/instructions/unsafeDeposit.js +0 -243
- package/dist/src/svm/clients/SvmSpoke/types/slowFill.d.ts +0 -22
- package/dist/target/types/svm_spoke.d.ts +0 -5106
- package/dist/target/types/svm_spoke.js +0 -2
|
@@ -13,6 +13,116 @@ export type SvmSpoke = {
|
|
|
13
13
|
"description": "Created with Anchor";
|
|
14
14
|
};
|
|
15
15
|
"instructions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "adapterExecuteAcrossV5";
|
|
18
|
+
"docs": [
|
|
19
|
+
"Executes one Gateway-authenticated Across V5 source-deposit or destination-fill adapter branch.",
|
|
20
|
+
"",
|
|
21
|
+
"### Required Accounts:",
|
|
22
|
+
"- dispatch_authority (Signer): Gateway PDA derived from [\"dispatch_authority\", svm_spoke::ID].",
|
|
23
|
+
"- state: Spoke state PDA derived from [\"state\", state.seed], where `state.seed` is 0 on mainnet.",
|
|
24
|
+
"- event_authority: Anchor event CPI authority derived from [\"__event_authority\"].",
|
|
25
|
+
"- program: The SVM Spoke program.",
|
|
26
|
+
"- remaining accounts: Branch-specific mint and token-program accounts plus writable canonical token accounts.",
|
|
27
|
+
"Deposit mode also requires the SpokePool vault and [\"v5_deposit_delegate\"]. Fill mode requires the",
|
|
28
|
+
"submitter-scoped [\"v5_fill_payer\"], relay-scoped fill-status PDA, System Program, recipient ATA, and",
|
|
29
|
+
"[\"v5_fill_delegate\"], including when the recipient ATA is the Gateway vault itself. Account order is",
|
|
30
|
+
"unrestricted because each account is resolved by its authenticated expected key.",
|
|
31
|
+
"",
|
|
32
|
+
"### Parameters:",
|
|
33
|
+
"- ctx_values: Gateway-attested step ID, path ID, and submitter.",
|
|
34
|
+
"- input: Strictly encoded, versioned `DepositV1 | FillV1` committed input.",
|
|
35
|
+
"- jit_data: Source modifications decoded only when the committed input enables them, or destination",
|
|
36
|
+
"relay/repayment data."
|
|
37
|
+
];
|
|
38
|
+
"discriminator": [
|
|
39
|
+
23,
|
|
40
|
+
161,
|
|
41
|
+
69,
|
|
42
|
+
148,
|
|
43
|
+
150,
|
|
44
|
+
128,
|
|
45
|
+
173,
|
|
46
|
+
220
|
|
47
|
+
];
|
|
48
|
+
"accounts": [
|
|
49
|
+
{
|
|
50
|
+
"name": "dispatchAuthority";
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "state";
|
|
54
|
+
"pda": {
|
|
55
|
+
"seeds": [
|
|
56
|
+
{
|
|
57
|
+
"kind": "const";
|
|
58
|
+
"value": [
|
|
59
|
+
115,
|
|
60
|
+
116,
|
|
61
|
+
97,
|
|
62
|
+
116,
|
|
63
|
+
101
|
|
64
|
+
];
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"kind": "account";
|
|
68
|
+
"path": "state.seed";
|
|
69
|
+
"account": "state";
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "eventAuthority";
|
|
76
|
+
"pda": {
|
|
77
|
+
"seeds": [
|
|
78
|
+
{
|
|
79
|
+
"kind": "const";
|
|
80
|
+
"value": [
|
|
81
|
+
95,
|
|
82
|
+
95,
|
|
83
|
+
101,
|
|
84
|
+
118,
|
|
85
|
+
101,
|
|
86
|
+
110,
|
|
87
|
+
116,
|
|
88
|
+
95,
|
|
89
|
+
97,
|
|
90
|
+
117,
|
|
91
|
+
116,
|
|
92
|
+
104,
|
|
93
|
+
111,
|
|
94
|
+
114,
|
|
95
|
+
105,
|
|
96
|
+
116,
|
|
97
|
+
121
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "program";
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
"args": [
|
|
108
|
+
{
|
|
109
|
+
"name": "ctxValues";
|
|
110
|
+
"type": {
|
|
111
|
+
"defined": {
|
|
112
|
+
"name": "gatewayContextV1";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "input";
|
|
118
|
+
"type": "bytes";
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "jitData";
|
|
122
|
+
"type": "bytes";
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
},
|
|
16
126
|
{
|
|
17
127
|
"name": "claimRelayerRefund";
|
|
18
128
|
"docs": [
|
|
@@ -290,15 +400,16 @@ export type SvmSpoke = {
|
|
|
290
400
|
{
|
|
291
401
|
"name": "closeFillPda";
|
|
292
402
|
"docs": [
|
|
293
|
-
"Closes the FillStatusAccount PDA to reclaim
|
|
403
|
+
"Closes the FillStatusAccount PDA to reclaim rent.",
|
|
294
404
|
"",
|
|
295
405
|
"This function is used to close the FillStatusAccount associated with a specific relay hash, effectively marking",
|
|
296
|
-
"the end of its lifecycle. This can only be done once the fill deadline has passed.
|
|
297
|
-
"
|
|
406
|
+
"the end of its lifecycle. This can only be done once the fill deadline has passed. Anyone can trigger closure,",
|
|
407
|
+
"but rent is always returned to the recorded rent recipient: the V5 payer PDA, historical relayer, or",
|
|
408
|
+
"slow-fill requester.",
|
|
298
409
|
"",
|
|
299
410
|
"### Required Accounts:",
|
|
300
|
-
"-
|
|
301
|
-
"- state (
|
|
411
|
+
"- rent_recipient (Writable): The recorded rent recipient; no signature is required.",
|
|
412
|
+
"- state (Readonly): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
302
413
|
"- fill_status (Writable): The FillStatusAccount PDA to be closed."
|
|
303
414
|
];
|
|
304
415
|
"discriminator": [
|
|
@@ -313,9 +424,12 @@ export type SvmSpoke = {
|
|
|
313
424
|
];
|
|
314
425
|
"accounts": [
|
|
315
426
|
{
|
|
316
|
-
"name": "
|
|
427
|
+
"name": "rentRecipient";
|
|
428
|
+
"docs": [
|
|
429
|
+
"For V5 fills, supply the submitter's `[\"v5_fill_payer\", submitter]` PDA recorded in",
|
|
430
|
+
"`fill_status.rent_recipient`; legacy accounts retain the relayer or slow-fill requester address."
|
|
431
|
+
];
|
|
317
432
|
"writable": true;
|
|
318
|
-
"signer": true;
|
|
319
433
|
},
|
|
320
434
|
{
|
|
321
435
|
"name": "state";
|
|
@@ -462,76 +576,43 @@ export type SvmSpoke = {
|
|
|
462
576
|
"args": [];
|
|
463
577
|
},
|
|
464
578
|
{
|
|
465
|
-
"name": "
|
|
579
|
+
"name": "emergencyDeleteRootBundle";
|
|
466
580
|
"docs": [
|
|
467
|
-
"
|
|
468
|
-
"",
|
|
469
|
-
"The fee paid to relayers and the system is captured in the spread between the input and output amounts,",
|
|
470
|
-
"denominated in the input token. A relayer on the destination chain will send `output_amount` of `output_token`",
|
|
471
|
-
"to the recipient and receive `input_token` on a repayment chain of their choice. The fee accounts for:",
|
|
472
|
-
"destination transaction costs, relayer's opportunity cost of capital while waiting for a refund during the",
|
|
473
|
-
"optimistic challenge window in the HubPool, and the system fee charged to the relayer.",
|
|
581
|
+
"Deletes a root bundle in case of emergencies where bad bundle has reached the Spoke. Only callable by the owner.",
|
|
474
582
|
"",
|
|
475
|
-
"
|
|
476
|
-
"
|
|
477
|
-
"of this function along with the chain's `chainId()`. Relayers are refunded only for deposits with hashes that",
|
|
478
|
-
"exactly match those emitted by this contract.",
|
|
583
|
+
"This function will close the PDA for the associated `root_bundle_id`.",
|
|
584
|
+
"Note: Using this function does not decrement `state.root_bundle_id`.",
|
|
479
585
|
"",
|
|
480
586
|
"### Required Accounts:",
|
|
481
|
-
"- signer (Signer): The account that
|
|
587
|
+
"- signer (Signer): The account that must be the owner to authorize the deletion.",
|
|
588
|
+
"- closer (SystemAccount): The account that will receive the lamports from closing the root_bundle account.",
|
|
482
589
|
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
483
|
-
"-
|
|
484
|
-
"- vault (Writable): Programs ATA for the associated input token. This is where the depositor's assets are sent.",
|
|
485
|
-
"Authority must be the state.",
|
|
486
|
-
"- mint (Account): The mint account for the input token.",
|
|
487
|
-
"- token_program (Interface): The token program.",
|
|
488
|
-
"- delegate (Account): The account used to delegate the input amount of the input token.",
|
|
590
|
+
"- root_bundle (Writable): The root bundle PDA to be closed. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
489
591
|
"",
|
|
490
|
-
"### Parameters",
|
|
491
|
-
"-
|
|
492
|
-
"- recipient: The account receiving funds on the destination chain. Depending on the output chain can be an ETH",
|
|
493
|
-
"address or a contract address or any other address type encoded as a bytes32 field.",
|
|
494
|
-
"- input_token: The token pulled from the caller's account and locked into this program's vault on deposit.",
|
|
495
|
-
"- output_token: The token that the relayer will send to the recipient on the destination chain.",
|
|
496
|
-
"- input_amount: The amount of input tokens to pull from the caller's account and lock into the vault. This",
|
|
497
|
-
"amount will be sent to the relayer on their repayment chain of choice as a refund following an optimistic",
|
|
498
|
-
"challenge window in the HubPool, less a system fee.",
|
|
499
|
-
"- output_amount: The amount of output tokens that the relayer will send to the recipient on the destination.",
|
|
500
|
-
"This is big-endian encoded as a 32-byte array to match its underlying byte representation on EVM side.",
|
|
501
|
-
"- destination_chain_id: The destination chain identifier where the fill should be made.",
|
|
502
|
-
"- exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the exclusivity",
|
|
503
|
-
"deadline timestamp. This must be a valid, non-zero address if the exclusivity deadline is greater than the",
|
|
504
|
-
"current block timestamp.",
|
|
505
|
-
"- quote_timestamp: The HubPool timestamp that is used to determine the system fee paid by the depositor. This",
|
|
506
|
-
"must be set to some time between [currentTime - depositQuoteTimeBuffer, currentTime].",
|
|
507
|
-
"- fill_deadline: The deadline for the relayer to fill the deposit. After this destination chain timestamp, the",
|
|
508
|
-
"fill will revert on the destination chain. Must be set before currentTime + fillDeadlineBuffer.",
|
|
509
|
-
"- exclusivity_parameter: Sets the exclusivity deadline timestamp for the exclusiveRelayer to fill the deposit.",
|
|
510
|
-
"1. If 0, no exclusivity period.",
|
|
511
|
-
"2. If less than MAX_EXCLUSIVITY_PERIOD_SECONDS, adds this value to the current block timestamp.",
|
|
512
|
-
"3. Otherwise, uses this value as the exclusivity deadline timestamp.",
|
|
513
|
-
"- message: The message to send to the recipient on the destination chain if the recipient is a contract.",
|
|
514
|
-
"If not empty, the recipient contract must implement handleV3AcrossMessage() or the fill will revert."
|
|
592
|
+
"### Parameters:",
|
|
593
|
+
"- root_bundle_id: Index of the root bundle that needs to be deleted."
|
|
515
594
|
];
|
|
516
595
|
"discriminator": [
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
596
|
+
226,
|
|
597
|
+
158,
|
|
598
|
+
1,
|
|
599
|
+
74,
|
|
600
|
+
84,
|
|
601
|
+
113,
|
|
602
|
+
24,
|
|
603
|
+
152
|
|
525
604
|
];
|
|
526
605
|
"accounts": [
|
|
527
606
|
{
|
|
528
607
|
"name": "signer";
|
|
529
|
-
"writable": true;
|
|
530
608
|
"signer": true;
|
|
531
609
|
},
|
|
532
610
|
{
|
|
533
|
-
"name": "
|
|
611
|
+
"name": "closer";
|
|
534
612
|
"writable": true;
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "state";
|
|
535
616
|
"pda": {
|
|
536
617
|
"seeds": [
|
|
537
618
|
{
|
|
@@ -553,136 +634,38 @@ export type SvmSpoke = {
|
|
|
553
634
|
};
|
|
554
635
|
},
|
|
555
636
|
{
|
|
556
|
-
"name": "
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"name": "depositorTokenAccount";
|
|
560
|
-
"writable": true;
|
|
561
|
-
"pda": {
|
|
562
|
-
"seeds": [
|
|
563
|
-
{
|
|
564
|
-
"kind": "arg";
|
|
565
|
-
"path": "depositor";
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"kind": "account";
|
|
569
|
-
"path": "tokenProgram";
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"kind": "account";
|
|
573
|
-
"path": "mint";
|
|
574
|
-
}
|
|
575
|
-
];
|
|
576
|
-
"program": {
|
|
577
|
-
"kind": "const";
|
|
578
|
-
"value": [
|
|
579
|
-
140,
|
|
580
|
-
151,
|
|
581
|
-
37,
|
|
582
|
-
143,
|
|
583
|
-
78,
|
|
584
|
-
36,
|
|
585
|
-
137,
|
|
586
|
-
241,
|
|
587
|
-
187,
|
|
588
|
-
61,
|
|
589
|
-
16,
|
|
590
|
-
41,
|
|
591
|
-
20,
|
|
592
|
-
142,
|
|
593
|
-
13,
|
|
594
|
-
131,
|
|
595
|
-
11,
|
|
596
|
-
90,
|
|
597
|
-
19,
|
|
598
|
-
153,
|
|
599
|
-
218,
|
|
600
|
-
255,
|
|
601
|
-
16,
|
|
602
|
-
132,
|
|
603
|
-
4,
|
|
604
|
-
142,
|
|
605
|
-
123,
|
|
606
|
-
216,
|
|
607
|
-
219,
|
|
608
|
-
233,
|
|
609
|
-
248,
|
|
610
|
-
89
|
|
611
|
-
];
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
"name": "vault";
|
|
637
|
+
"name": "rootBundle";
|
|
617
638
|
"writable": true;
|
|
618
639
|
"pda": {
|
|
619
640
|
"seeds": [
|
|
620
641
|
{
|
|
621
|
-
"kind": "
|
|
622
|
-
"
|
|
642
|
+
"kind": "const";
|
|
643
|
+
"value": [
|
|
644
|
+
114,
|
|
645
|
+
111,
|
|
646
|
+
111,
|
|
647
|
+
116,
|
|
648
|
+
95,
|
|
649
|
+
98,
|
|
650
|
+
117,
|
|
651
|
+
110,
|
|
652
|
+
100,
|
|
653
|
+
108,
|
|
654
|
+
101
|
|
655
|
+
];
|
|
623
656
|
},
|
|
624
657
|
{
|
|
625
658
|
"kind": "account";
|
|
626
|
-
"path": "
|
|
659
|
+
"path": "state.seed";
|
|
660
|
+
"account": "state";
|
|
627
661
|
},
|
|
628
662
|
{
|
|
629
|
-
"kind": "
|
|
630
|
-
"path": "
|
|
663
|
+
"kind": "arg";
|
|
664
|
+
"path": "rootBundleId";
|
|
631
665
|
}
|
|
632
666
|
];
|
|
633
|
-
"program": {
|
|
634
|
-
"kind": "const";
|
|
635
|
-
"value": [
|
|
636
|
-
140,
|
|
637
|
-
151,
|
|
638
|
-
37,
|
|
639
|
-
143,
|
|
640
|
-
78,
|
|
641
|
-
36,
|
|
642
|
-
137,
|
|
643
|
-
241,
|
|
644
|
-
187,
|
|
645
|
-
61,
|
|
646
|
-
16,
|
|
647
|
-
41,
|
|
648
|
-
20,
|
|
649
|
-
142,
|
|
650
|
-
13,
|
|
651
|
-
131,
|
|
652
|
-
11,
|
|
653
|
-
90,
|
|
654
|
-
19,
|
|
655
|
-
153,
|
|
656
|
-
218,
|
|
657
|
-
255,
|
|
658
|
-
16,
|
|
659
|
-
132,
|
|
660
|
-
4,
|
|
661
|
-
142,
|
|
662
|
-
123,
|
|
663
|
-
216,
|
|
664
|
-
219,
|
|
665
|
-
233,
|
|
666
|
-
248,
|
|
667
|
-
89
|
|
668
|
-
];
|
|
669
|
-
};
|
|
670
667
|
};
|
|
671
668
|
},
|
|
672
|
-
{
|
|
673
|
-
"name": "mint";
|
|
674
|
-
},
|
|
675
|
-
{
|
|
676
|
-
"name": "tokenProgram";
|
|
677
|
-
},
|
|
678
|
-
{
|
|
679
|
-
"name": "associatedTokenProgram";
|
|
680
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
"name": "systemProgram";
|
|
684
|
-
"address": "11111111111111111111111111111111";
|
|
685
|
-
},
|
|
686
669
|
{
|
|
687
670
|
"name": "eventAuthority";
|
|
688
671
|
"pda": {
|
|
@@ -718,975 +701,68 @@ export type SvmSpoke = {
|
|
|
718
701
|
];
|
|
719
702
|
"args": [
|
|
720
703
|
{
|
|
721
|
-
"name": "
|
|
722
|
-
"type": "
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"name": "recipient";
|
|
726
|
-
"type": "pubkey";
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
"name": "inputToken";
|
|
730
|
-
"type": "pubkey";
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
"name": "outputToken";
|
|
734
|
-
"type": "pubkey";
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
"name": "inputAmount";
|
|
738
|
-
"type": "u64";
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
"name": "outputAmount";
|
|
742
|
-
"type": {
|
|
743
|
-
"array": [
|
|
744
|
-
"u8",
|
|
745
|
-
32
|
|
746
|
-
];
|
|
747
|
-
};
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"name": "destinationChainId";
|
|
751
|
-
"type": "u64";
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
"name": "exclusiveRelayer";
|
|
755
|
-
"type": "pubkey";
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
"name": "quoteTimestamp";
|
|
759
|
-
"type": "u32";
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "fillDeadline";
|
|
763
|
-
"type": "u32";
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
"name": "exclusivityParameter";
|
|
767
|
-
"type": "u32";
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
"name": "message";
|
|
771
|
-
"type": "bytes";
|
|
772
|
-
}
|
|
773
|
-
];
|
|
774
|
-
},
|
|
775
|
-
{
|
|
776
|
-
"name": "depositNow";
|
|
777
|
-
"docs": [
|
|
778
|
-
"Equivalent to deposit except quote_timestamp is set to the current time.",
|
|
779
|
-
"The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`."
|
|
780
|
-
];
|
|
781
|
-
"discriminator": [
|
|
782
|
-
75,
|
|
783
|
-
228,
|
|
784
|
-
135,
|
|
785
|
-
221,
|
|
786
|
-
200,
|
|
787
|
-
25,
|
|
788
|
-
148,
|
|
789
|
-
26
|
|
790
|
-
];
|
|
791
|
-
"accounts": [
|
|
792
|
-
{
|
|
793
|
-
"name": "signer";
|
|
794
|
-
"writable": true;
|
|
795
|
-
"signer": true;
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
"name": "state";
|
|
799
|
-
"writable": true;
|
|
800
|
-
"pda": {
|
|
801
|
-
"seeds": [
|
|
802
|
-
{
|
|
803
|
-
"kind": "const";
|
|
804
|
-
"value": [
|
|
805
|
-
115,
|
|
806
|
-
116,
|
|
807
|
-
97,
|
|
808
|
-
116,
|
|
809
|
-
101
|
|
810
|
-
];
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
"kind": "account";
|
|
814
|
-
"path": "state.seed";
|
|
815
|
-
"account": "state";
|
|
816
|
-
}
|
|
817
|
-
];
|
|
818
|
-
};
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "delegate";
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
"name": "depositorTokenAccount";
|
|
825
|
-
"writable": true;
|
|
826
|
-
"pda": {
|
|
827
|
-
"seeds": [
|
|
828
|
-
{
|
|
829
|
-
"kind": "arg";
|
|
830
|
-
"path": "depositor";
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
"kind": "account";
|
|
834
|
-
"path": "tokenProgram";
|
|
835
|
-
},
|
|
836
|
-
{
|
|
837
|
-
"kind": "account";
|
|
838
|
-
"path": "mint";
|
|
839
|
-
}
|
|
840
|
-
];
|
|
841
|
-
"program": {
|
|
842
|
-
"kind": "const";
|
|
843
|
-
"value": [
|
|
844
|
-
140,
|
|
845
|
-
151,
|
|
846
|
-
37,
|
|
847
|
-
143,
|
|
848
|
-
78,
|
|
849
|
-
36,
|
|
850
|
-
137,
|
|
851
|
-
241,
|
|
852
|
-
187,
|
|
853
|
-
61,
|
|
854
|
-
16,
|
|
855
|
-
41,
|
|
856
|
-
20,
|
|
857
|
-
142,
|
|
858
|
-
13,
|
|
859
|
-
131,
|
|
860
|
-
11,
|
|
861
|
-
90,
|
|
862
|
-
19,
|
|
863
|
-
153,
|
|
864
|
-
218,
|
|
865
|
-
255,
|
|
866
|
-
16,
|
|
867
|
-
132,
|
|
868
|
-
4,
|
|
869
|
-
142,
|
|
870
|
-
123,
|
|
871
|
-
216,
|
|
872
|
-
219,
|
|
873
|
-
233,
|
|
874
|
-
248,
|
|
875
|
-
89
|
|
876
|
-
];
|
|
877
|
-
};
|
|
878
|
-
};
|
|
879
|
-
},
|
|
880
|
-
{
|
|
881
|
-
"name": "vault";
|
|
882
|
-
"writable": true;
|
|
883
|
-
"pda": {
|
|
884
|
-
"seeds": [
|
|
885
|
-
{
|
|
886
|
-
"kind": "account";
|
|
887
|
-
"path": "state";
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"kind": "account";
|
|
891
|
-
"path": "tokenProgram";
|
|
892
|
-
},
|
|
893
|
-
{
|
|
894
|
-
"kind": "account";
|
|
895
|
-
"path": "mint";
|
|
896
|
-
}
|
|
897
|
-
];
|
|
898
|
-
"program": {
|
|
899
|
-
"kind": "const";
|
|
900
|
-
"value": [
|
|
901
|
-
140,
|
|
902
|
-
151,
|
|
903
|
-
37,
|
|
904
|
-
143,
|
|
905
|
-
78,
|
|
906
|
-
36,
|
|
907
|
-
137,
|
|
908
|
-
241,
|
|
909
|
-
187,
|
|
910
|
-
61,
|
|
911
|
-
16,
|
|
912
|
-
41,
|
|
913
|
-
20,
|
|
914
|
-
142,
|
|
915
|
-
13,
|
|
916
|
-
131,
|
|
917
|
-
11,
|
|
918
|
-
90,
|
|
919
|
-
19,
|
|
920
|
-
153,
|
|
921
|
-
218,
|
|
922
|
-
255,
|
|
923
|
-
16,
|
|
924
|
-
132,
|
|
925
|
-
4,
|
|
926
|
-
142,
|
|
927
|
-
123,
|
|
928
|
-
216,
|
|
929
|
-
219,
|
|
930
|
-
233,
|
|
931
|
-
248,
|
|
932
|
-
89
|
|
933
|
-
];
|
|
934
|
-
};
|
|
935
|
-
};
|
|
936
|
-
},
|
|
937
|
-
{
|
|
938
|
-
"name": "mint";
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
"name": "tokenProgram";
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
"name": "associatedTokenProgram";
|
|
945
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
"name": "systemProgram";
|
|
949
|
-
"address": "11111111111111111111111111111111";
|
|
950
|
-
},
|
|
951
|
-
{
|
|
952
|
-
"name": "eventAuthority";
|
|
953
|
-
"pda": {
|
|
954
|
-
"seeds": [
|
|
955
|
-
{
|
|
956
|
-
"kind": "const";
|
|
957
|
-
"value": [
|
|
958
|
-
95,
|
|
959
|
-
95,
|
|
960
|
-
101,
|
|
961
|
-
118,
|
|
962
|
-
101,
|
|
963
|
-
110,
|
|
964
|
-
116,
|
|
965
|
-
95,
|
|
966
|
-
97,
|
|
967
|
-
117,
|
|
968
|
-
116,
|
|
969
|
-
104,
|
|
970
|
-
111,
|
|
971
|
-
114,
|
|
972
|
-
105,
|
|
973
|
-
116,
|
|
974
|
-
121
|
|
975
|
-
];
|
|
976
|
-
}
|
|
977
|
-
];
|
|
978
|
-
};
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
"name": "program";
|
|
982
|
-
}
|
|
983
|
-
];
|
|
984
|
-
"args": [
|
|
985
|
-
{
|
|
986
|
-
"name": "depositor";
|
|
987
|
-
"type": "pubkey";
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"name": "recipient";
|
|
991
|
-
"type": "pubkey";
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
"name": "inputToken";
|
|
995
|
-
"type": "pubkey";
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"name": "outputToken";
|
|
999
|
-
"type": "pubkey";
|
|
1000
|
-
},
|
|
1001
|
-
{
|
|
1002
|
-
"name": "inputAmount";
|
|
1003
|
-
"type": "u64";
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"name": "outputAmount";
|
|
1007
|
-
"type": {
|
|
1008
|
-
"array": [
|
|
1009
|
-
"u8",
|
|
1010
|
-
32
|
|
1011
|
-
];
|
|
1012
|
-
};
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"name": "destinationChainId";
|
|
1016
|
-
"type": "u64";
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"name": "exclusiveRelayer";
|
|
1020
|
-
"type": "pubkey";
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
"name": "fillDeadlineOffset";
|
|
1024
|
-
"type": "u32";
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
"name": "exclusivityParameter";
|
|
1028
|
-
"type": "u32";
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
"name": "message";
|
|
1032
|
-
"type": "bytes";
|
|
1033
|
-
}
|
|
1034
|
-
];
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
"name": "emergencyDeleteRootBundle";
|
|
1038
|
-
"docs": [
|
|
1039
|
-
"Deletes a root bundle in case of emergencies where bad bundle has reached the Spoke. Only callable by the owner.",
|
|
1040
|
-
"",
|
|
1041
|
-
"This function will close the PDA for the associated `root_bundle_id`.",
|
|
1042
|
-
"Note: Using this function does not decrement `state.root_bundle_id`.",
|
|
1043
|
-
"",
|
|
1044
|
-
"### Required Accounts:",
|
|
1045
|
-
"- signer (Signer): The account that must be the owner to authorize the deletion.",
|
|
1046
|
-
"- closer (SystemAccount): The account that will receive the lamports from closing the root_bundle account.",
|
|
1047
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
1048
|
-
"- root_bundle (Writable): The root bundle PDA to be closed. Seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1049
|
-
"",
|
|
1050
|
-
"### Parameters:",
|
|
1051
|
-
"- root_bundle_id: Index of the root bundle that needs to be deleted."
|
|
1052
|
-
];
|
|
1053
|
-
"discriminator": [
|
|
1054
|
-
226,
|
|
1055
|
-
158,
|
|
1056
|
-
1,
|
|
1057
|
-
74,
|
|
1058
|
-
84,
|
|
1059
|
-
113,
|
|
1060
|
-
24,
|
|
1061
|
-
152
|
|
1062
|
-
];
|
|
1063
|
-
"accounts": [
|
|
1064
|
-
{
|
|
1065
|
-
"name": "signer";
|
|
1066
|
-
"signer": true;
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"name": "closer";
|
|
1070
|
-
"writable": true;
|
|
1071
|
-
},
|
|
1072
|
-
{
|
|
1073
|
-
"name": "state";
|
|
1074
|
-
"pda": {
|
|
1075
|
-
"seeds": [
|
|
1076
|
-
{
|
|
1077
|
-
"kind": "const";
|
|
1078
|
-
"value": [
|
|
1079
|
-
115,
|
|
1080
|
-
116,
|
|
1081
|
-
97,
|
|
1082
|
-
116,
|
|
1083
|
-
101
|
|
1084
|
-
];
|
|
1085
|
-
},
|
|
1086
|
-
{
|
|
1087
|
-
"kind": "account";
|
|
1088
|
-
"path": "state.seed";
|
|
1089
|
-
"account": "state";
|
|
1090
|
-
}
|
|
1091
|
-
];
|
|
1092
|
-
};
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
"name": "rootBundle";
|
|
1096
|
-
"writable": true;
|
|
1097
|
-
"pda": {
|
|
1098
|
-
"seeds": [
|
|
1099
|
-
{
|
|
1100
|
-
"kind": "const";
|
|
1101
|
-
"value": [
|
|
1102
|
-
114,
|
|
1103
|
-
111,
|
|
1104
|
-
111,
|
|
1105
|
-
116,
|
|
1106
|
-
95,
|
|
1107
|
-
98,
|
|
1108
|
-
117,
|
|
1109
|
-
110,
|
|
1110
|
-
100,
|
|
1111
|
-
108,
|
|
1112
|
-
101
|
|
1113
|
-
];
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
"kind": "account";
|
|
1117
|
-
"path": "state.seed";
|
|
1118
|
-
"account": "state";
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
"kind": "arg";
|
|
1122
|
-
"path": "rootBundleId";
|
|
1123
|
-
}
|
|
1124
|
-
];
|
|
1125
|
-
};
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
"name": "eventAuthority";
|
|
1129
|
-
"pda": {
|
|
1130
|
-
"seeds": [
|
|
1131
|
-
{
|
|
1132
|
-
"kind": "const";
|
|
1133
|
-
"value": [
|
|
1134
|
-
95,
|
|
1135
|
-
95,
|
|
1136
|
-
101,
|
|
1137
|
-
118,
|
|
1138
|
-
101,
|
|
1139
|
-
110,
|
|
1140
|
-
116,
|
|
1141
|
-
95,
|
|
1142
|
-
97,
|
|
1143
|
-
117,
|
|
1144
|
-
116,
|
|
1145
|
-
104,
|
|
1146
|
-
111,
|
|
1147
|
-
114,
|
|
1148
|
-
105,
|
|
1149
|
-
116,
|
|
1150
|
-
121
|
|
1151
|
-
];
|
|
1152
|
-
}
|
|
1153
|
-
];
|
|
1154
|
-
};
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "program";
|
|
1158
|
-
}
|
|
1159
|
-
];
|
|
1160
|
-
"args": [
|
|
1161
|
-
{
|
|
1162
|
-
"name": "rootBundleId";
|
|
1163
|
-
"type": "u32";
|
|
1164
|
-
}
|
|
1165
|
-
];
|
|
1166
|
-
},
|
|
1167
|
-
{
|
|
1168
|
-
"name": "executeRelayerRefundLeaf";
|
|
1169
|
-
"docs": [
|
|
1170
|
-
"Executes relayer refund leaf.",
|
|
1171
|
-
"",
|
|
1172
|
-
"Processes a relayer refund leaf, verifying its inclusion in a previous Merkle root and that it was not",
|
|
1173
|
-
"previously executed. Function has two modes of operation: a) transfers all relayer refunds directly to",
|
|
1174
|
-
"relayers ATA or b) credits relayers with claimable claim_account PDA that they can use later to claim their",
|
|
1175
|
-
"refund. In the happy path, (a) should be used. (b) should only be used if there is a relayer within the bundle",
|
|
1176
|
-
"who can't receive the transfer for some reason, such as failed token transfers due to blacklisting. Executing",
|
|
1177
|
-
"relayer refunds requires the caller to create a LUT and load the execution params into it. This is needed to",
|
|
1178
|
-
"fit the data in a single instruction. The exact structure and validation of the leaf is defined in the Across",
|
|
1179
|
-
"UMIP: https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md",
|
|
1180
|
-
"",
|
|
1181
|
-
"instruction_params Parameters:",
|
|
1182
|
-
"- root_bundle_id: The ID of the root bundle containing the relayer refund root.",
|
|
1183
|
-
"- relayer_refund_leaf: The relayer refund leaf to be executed. Contents must include:",
|
|
1184
|
-
"- amount_to_return: Must be 0 as this Spoke pool never returns tokens to the HubPool.",
|
|
1185
|
-
"- chain_id: The targeted chainId for the refund. Validated against state.chain_id.",
|
|
1186
|
-
"- refund_amounts: The amounts to be returned to the relayer for each refund_address.",
|
|
1187
|
-
"- leaf_id: The leaf ID of the relayer refund leaf.",
|
|
1188
|
-
"- mint_public_key: The public key of the mint (refunded token) being refunded.",
|
|
1189
|
-
"- refund_addresses: The addresses to be refunded.",
|
|
1190
|
-
"- proof: The Merkle proof for the relayer refund leaf.",
|
|
1191
|
-
"",
|
|
1192
|
-
"### Required Accounts:",
|
|
1193
|
-
"- signer (Signer): The account that authorizes the execution. No permission requirements.",
|
|
1194
|
-
"- instruction_params (Account): LUT containing the execution parameters. seed: [\"instruction_params\",signer]",
|
|
1195
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
1196
|
-
"- root_bundle (Writable): The root bundle PDA containing the relayer refund root, created when the root bundle",
|
|
1197
|
-
"was initially bridged. seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1198
|
-
"- vault (Writable): The ATA for refunded mint. Authority must be the state.",
|
|
1199
|
-
"- mint (Account): The mint account for the token being refunded.",
|
|
1200
|
-
"- token_program: The token program.",
|
|
1201
|
-
"- system_program: The system program required for account creation.",
|
|
1202
|
-
"",
|
|
1203
|
-
"execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly."
|
|
1204
|
-
];
|
|
1205
|
-
"discriminator": [
|
|
1206
|
-
27,
|
|
1207
|
-
136,
|
|
1208
|
-
159,
|
|
1209
|
-
240,
|
|
1210
|
-
127,
|
|
1211
|
-
68,
|
|
1212
|
-
123,
|
|
1213
|
-
164
|
|
1214
|
-
];
|
|
1215
|
-
"accounts": [
|
|
1216
|
-
{
|
|
1217
|
-
"name": "signer";
|
|
1218
|
-
"writable": true;
|
|
1219
|
-
"signer": true;
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
"name": "instructionParams";
|
|
1223
|
-
"writable": true;
|
|
1224
|
-
"pda": {
|
|
1225
|
-
"seeds": [
|
|
1226
|
-
{
|
|
1227
|
-
"kind": "const";
|
|
1228
|
-
"value": [
|
|
1229
|
-
105,
|
|
1230
|
-
110,
|
|
1231
|
-
115,
|
|
1232
|
-
116,
|
|
1233
|
-
114,
|
|
1234
|
-
117,
|
|
1235
|
-
99,
|
|
1236
|
-
116,
|
|
1237
|
-
105,
|
|
1238
|
-
111,
|
|
1239
|
-
110,
|
|
1240
|
-
95,
|
|
1241
|
-
112,
|
|
1242
|
-
97,
|
|
1243
|
-
114,
|
|
1244
|
-
97,
|
|
1245
|
-
109,
|
|
1246
|
-
115
|
|
1247
|
-
];
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
"kind": "account";
|
|
1251
|
-
"path": "signer";
|
|
1252
|
-
}
|
|
1253
|
-
];
|
|
1254
|
-
};
|
|
1255
|
-
},
|
|
1256
|
-
{
|
|
1257
|
-
"name": "state";
|
|
1258
|
-
"pda": {
|
|
1259
|
-
"seeds": [
|
|
1260
|
-
{
|
|
1261
|
-
"kind": "const";
|
|
1262
|
-
"value": [
|
|
1263
|
-
115,
|
|
1264
|
-
116,
|
|
1265
|
-
97,
|
|
1266
|
-
116,
|
|
1267
|
-
101
|
|
1268
|
-
];
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
"kind": "account";
|
|
1272
|
-
"path": "state.seed";
|
|
1273
|
-
"account": "state";
|
|
1274
|
-
}
|
|
1275
|
-
];
|
|
1276
|
-
};
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
"name": "rootBundle";
|
|
1280
|
-
"writable": true;
|
|
1281
|
-
"pda": {
|
|
1282
|
-
"seeds": [
|
|
1283
|
-
{
|
|
1284
|
-
"kind": "const";
|
|
1285
|
-
"value": [
|
|
1286
|
-
114,
|
|
1287
|
-
111,
|
|
1288
|
-
111,
|
|
1289
|
-
116,
|
|
1290
|
-
95,
|
|
1291
|
-
98,
|
|
1292
|
-
117,
|
|
1293
|
-
110,
|
|
1294
|
-
100,
|
|
1295
|
-
108,
|
|
1296
|
-
101
|
|
1297
|
-
];
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
"kind": "account";
|
|
1301
|
-
"path": "state.seed";
|
|
1302
|
-
"account": "state";
|
|
1303
|
-
},
|
|
1304
|
-
{
|
|
1305
|
-
"kind": "account";
|
|
1306
|
-
"path": "instruction_params.root_bundle_id";
|
|
1307
|
-
"account": "executeRelayerRefundLeafParams";
|
|
1308
|
-
}
|
|
1309
|
-
];
|
|
1310
|
-
};
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
"name": "vault";
|
|
1314
|
-
"writable": true;
|
|
1315
|
-
"pda": {
|
|
1316
|
-
"seeds": [
|
|
1317
|
-
{
|
|
1318
|
-
"kind": "account";
|
|
1319
|
-
"path": "state";
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
"kind": "account";
|
|
1323
|
-
"path": "tokenProgram";
|
|
1324
|
-
},
|
|
1325
|
-
{
|
|
1326
|
-
"kind": "account";
|
|
1327
|
-
"path": "mint";
|
|
1328
|
-
}
|
|
1329
|
-
];
|
|
1330
|
-
"program": {
|
|
1331
|
-
"kind": "const";
|
|
1332
|
-
"value": [
|
|
1333
|
-
140,
|
|
1334
|
-
151,
|
|
1335
|
-
37,
|
|
1336
|
-
143,
|
|
1337
|
-
78,
|
|
1338
|
-
36,
|
|
1339
|
-
137,
|
|
1340
|
-
241,
|
|
1341
|
-
187,
|
|
1342
|
-
61,
|
|
1343
|
-
16,
|
|
1344
|
-
41,
|
|
1345
|
-
20,
|
|
1346
|
-
142,
|
|
1347
|
-
13,
|
|
1348
|
-
131,
|
|
1349
|
-
11,
|
|
1350
|
-
90,
|
|
1351
|
-
19,
|
|
1352
|
-
153,
|
|
1353
|
-
218,
|
|
1354
|
-
255,
|
|
1355
|
-
16,
|
|
1356
|
-
132,
|
|
1357
|
-
4,
|
|
1358
|
-
142,
|
|
1359
|
-
123,
|
|
1360
|
-
216,
|
|
1361
|
-
219,
|
|
1362
|
-
233,
|
|
1363
|
-
248,
|
|
1364
|
-
89
|
|
1365
|
-
];
|
|
1366
|
-
};
|
|
1367
|
-
};
|
|
1368
|
-
},
|
|
1369
|
-
{
|
|
1370
|
-
"name": "mint";
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
"name": "tokenProgram";
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
"name": "systemProgram";
|
|
1377
|
-
"address": "11111111111111111111111111111111";
|
|
1378
|
-
},
|
|
1379
|
-
{
|
|
1380
|
-
"name": "eventAuthority";
|
|
1381
|
-
"pda": {
|
|
1382
|
-
"seeds": [
|
|
1383
|
-
{
|
|
1384
|
-
"kind": "const";
|
|
1385
|
-
"value": [
|
|
1386
|
-
95,
|
|
1387
|
-
95,
|
|
1388
|
-
101,
|
|
1389
|
-
118,
|
|
1390
|
-
101,
|
|
1391
|
-
110,
|
|
1392
|
-
116,
|
|
1393
|
-
95,
|
|
1394
|
-
97,
|
|
1395
|
-
117,
|
|
1396
|
-
116,
|
|
1397
|
-
104,
|
|
1398
|
-
111,
|
|
1399
|
-
114,
|
|
1400
|
-
105,
|
|
1401
|
-
116,
|
|
1402
|
-
121
|
|
1403
|
-
];
|
|
1404
|
-
}
|
|
1405
|
-
];
|
|
1406
|
-
};
|
|
1407
|
-
},
|
|
1408
|
-
{
|
|
1409
|
-
"name": "program";
|
|
1410
|
-
}
|
|
1411
|
-
];
|
|
1412
|
-
"args": [];
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
"name": "executeRelayerRefundLeafDeferred";
|
|
1416
|
-
"docs": [
|
|
1417
|
-
"Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs."
|
|
1418
|
-
];
|
|
1419
|
-
"discriminator": [
|
|
1420
|
-
110,
|
|
1421
|
-
112,
|
|
1422
|
-
89,
|
|
1423
|
-
208,
|
|
1424
|
-
38,
|
|
1425
|
-
116,
|
|
1426
|
-
93,
|
|
1427
|
-
10
|
|
1428
|
-
];
|
|
1429
|
-
"accounts": [
|
|
1430
|
-
{
|
|
1431
|
-
"name": "signer";
|
|
1432
|
-
"writable": true;
|
|
1433
|
-
"signer": true;
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
"name": "instructionParams";
|
|
1437
|
-
"writable": true;
|
|
1438
|
-
"pda": {
|
|
1439
|
-
"seeds": [
|
|
1440
|
-
{
|
|
1441
|
-
"kind": "const";
|
|
1442
|
-
"value": [
|
|
1443
|
-
105,
|
|
1444
|
-
110,
|
|
1445
|
-
115,
|
|
1446
|
-
116,
|
|
1447
|
-
114,
|
|
1448
|
-
117,
|
|
1449
|
-
99,
|
|
1450
|
-
116,
|
|
1451
|
-
105,
|
|
1452
|
-
111,
|
|
1453
|
-
110,
|
|
1454
|
-
95,
|
|
1455
|
-
112,
|
|
1456
|
-
97,
|
|
1457
|
-
114,
|
|
1458
|
-
97,
|
|
1459
|
-
109,
|
|
1460
|
-
115
|
|
1461
|
-
];
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"kind": "account";
|
|
1465
|
-
"path": "signer";
|
|
1466
|
-
}
|
|
1467
|
-
];
|
|
1468
|
-
};
|
|
1469
|
-
},
|
|
1470
|
-
{
|
|
1471
|
-
"name": "state";
|
|
1472
|
-
"pda": {
|
|
1473
|
-
"seeds": [
|
|
1474
|
-
{
|
|
1475
|
-
"kind": "const";
|
|
1476
|
-
"value": [
|
|
1477
|
-
115,
|
|
1478
|
-
116,
|
|
1479
|
-
97,
|
|
1480
|
-
116,
|
|
1481
|
-
101
|
|
1482
|
-
];
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"kind": "account";
|
|
1486
|
-
"path": "state.seed";
|
|
1487
|
-
"account": "state";
|
|
1488
|
-
}
|
|
1489
|
-
];
|
|
1490
|
-
};
|
|
1491
|
-
},
|
|
1492
|
-
{
|
|
1493
|
-
"name": "rootBundle";
|
|
1494
|
-
"writable": true;
|
|
1495
|
-
"pda": {
|
|
1496
|
-
"seeds": [
|
|
1497
|
-
{
|
|
1498
|
-
"kind": "const";
|
|
1499
|
-
"value": [
|
|
1500
|
-
114,
|
|
1501
|
-
111,
|
|
1502
|
-
111,
|
|
1503
|
-
116,
|
|
1504
|
-
95,
|
|
1505
|
-
98,
|
|
1506
|
-
117,
|
|
1507
|
-
110,
|
|
1508
|
-
100,
|
|
1509
|
-
108,
|
|
1510
|
-
101
|
|
1511
|
-
];
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
"kind": "account";
|
|
1515
|
-
"path": "state.seed";
|
|
1516
|
-
"account": "state";
|
|
1517
|
-
},
|
|
1518
|
-
{
|
|
1519
|
-
"kind": "account";
|
|
1520
|
-
"path": "instruction_params.root_bundle_id";
|
|
1521
|
-
"account": "executeRelayerRefundLeafParams";
|
|
1522
|
-
}
|
|
1523
|
-
];
|
|
1524
|
-
};
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
"name": "vault";
|
|
1528
|
-
"writable": true;
|
|
1529
|
-
"pda": {
|
|
1530
|
-
"seeds": [
|
|
1531
|
-
{
|
|
1532
|
-
"kind": "account";
|
|
1533
|
-
"path": "state";
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
"kind": "account";
|
|
1537
|
-
"path": "tokenProgram";
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
"kind": "account";
|
|
1541
|
-
"path": "mint";
|
|
1542
|
-
}
|
|
1543
|
-
];
|
|
1544
|
-
"program": {
|
|
1545
|
-
"kind": "const";
|
|
1546
|
-
"value": [
|
|
1547
|
-
140,
|
|
1548
|
-
151,
|
|
1549
|
-
37,
|
|
1550
|
-
143,
|
|
1551
|
-
78,
|
|
1552
|
-
36,
|
|
1553
|
-
137,
|
|
1554
|
-
241,
|
|
1555
|
-
187,
|
|
1556
|
-
61,
|
|
1557
|
-
16,
|
|
1558
|
-
41,
|
|
1559
|
-
20,
|
|
1560
|
-
142,
|
|
1561
|
-
13,
|
|
1562
|
-
131,
|
|
1563
|
-
11,
|
|
1564
|
-
90,
|
|
1565
|
-
19,
|
|
1566
|
-
153,
|
|
1567
|
-
218,
|
|
1568
|
-
255,
|
|
1569
|
-
16,
|
|
1570
|
-
132,
|
|
1571
|
-
4,
|
|
1572
|
-
142,
|
|
1573
|
-
123,
|
|
1574
|
-
216,
|
|
1575
|
-
219,
|
|
1576
|
-
233,
|
|
1577
|
-
248,
|
|
1578
|
-
89
|
|
1579
|
-
];
|
|
1580
|
-
};
|
|
1581
|
-
};
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "mint";
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
"name": "tokenProgram";
|
|
1588
|
-
},
|
|
1589
|
-
{
|
|
1590
|
-
"name": "systemProgram";
|
|
1591
|
-
"address": "11111111111111111111111111111111";
|
|
1592
|
-
},
|
|
1593
|
-
{
|
|
1594
|
-
"name": "eventAuthority";
|
|
1595
|
-
"pda": {
|
|
1596
|
-
"seeds": [
|
|
1597
|
-
{
|
|
1598
|
-
"kind": "const";
|
|
1599
|
-
"value": [
|
|
1600
|
-
95,
|
|
1601
|
-
95,
|
|
1602
|
-
101,
|
|
1603
|
-
118,
|
|
1604
|
-
101,
|
|
1605
|
-
110,
|
|
1606
|
-
116,
|
|
1607
|
-
95,
|
|
1608
|
-
97,
|
|
1609
|
-
117,
|
|
1610
|
-
116,
|
|
1611
|
-
104,
|
|
1612
|
-
111,
|
|
1613
|
-
114,
|
|
1614
|
-
105,
|
|
1615
|
-
116,
|
|
1616
|
-
121
|
|
1617
|
-
];
|
|
1618
|
-
}
|
|
1619
|
-
];
|
|
1620
|
-
};
|
|
1621
|
-
},
|
|
1622
|
-
{
|
|
1623
|
-
"name": "program";
|
|
704
|
+
"name": "rootBundleId";
|
|
705
|
+
"type": "u32";
|
|
1624
706
|
}
|
|
1625
707
|
];
|
|
1626
|
-
"args": [];
|
|
1627
708
|
},
|
|
1628
709
|
{
|
|
1629
|
-
"name": "
|
|
710
|
+
"name": "executeRelayerRefundLeaf";
|
|
1630
711
|
"docs": [
|
|
1631
|
-
"Executes
|
|
712
|
+
"Executes relayer refund leaf.",
|
|
713
|
+
"",
|
|
714
|
+
"Processes a relayer refund leaf, verifying its inclusion in a previous Merkle root and that it was not",
|
|
715
|
+
"previously executed. Function has two modes of operation: a) transfers all relayer refunds directly to",
|
|
716
|
+
"relayers ATA or b) credits relayers with claimable claim_account PDA that they can use later to claim their",
|
|
717
|
+
"refund. In the happy path, (a) should be used. (b) should only be used if there is a relayer within the bundle",
|
|
718
|
+
"who can't receive the transfer for some reason, such as failed token transfers due to blacklisting. Executing",
|
|
719
|
+
"relayer refunds requires the caller to create a LUT and load the execution params into it. This is needed to",
|
|
720
|
+
"fit the data in a single instruction. The exact structure and validation of the leaf is defined in the Across",
|
|
721
|
+
"UMIP: https://github.com/UMAprotocol/UMIPs/blob/master/UMIPs/umip-179.md",
|
|
1632
722
|
"",
|
|
1633
|
-
"
|
|
1634
|
-
"
|
|
1635
|
-
"
|
|
1636
|
-
"
|
|
723
|
+
"instruction_params Parameters:",
|
|
724
|
+
"- root_bundle_id: The ID of the root bundle containing the relayer refund root.",
|
|
725
|
+
"- relayer_refund_leaf: The relayer refund leaf to be executed. Contents must include:",
|
|
726
|
+
"- amount_to_return: Must be 0 as this Spoke pool never returns tokens to the HubPool.",
|
|
727
|
+
"- chain_id: The targeted chainId for the refund. Validated against state.chain_id.",
|
|
728
|
+
"- refund_amounts: The amounts to be returned to the relayer for each refund_address.",
|
|
729
|
+
"- leaf_id: The leaf ID of the relayer refund leaf.",
|
|
730
|
+
"- mint_public_key: The public key of the mint (refunded token) being refunded.",
|
|
731
|
+
"- refund_addresses: The addresses to be refunded.",
|
|
732
|
+
"- proof: The Merkle proof for the relayer refund leaf.",
|
|
1637
733
|
"",
|
|
1638
734
|
"### Required Accounts:",
|
|
1639
735
|
"- signer (Signer): The account that authorizes the execution. No permission requirements.",
|
|
1640
|
-
"- instruction_params (Account):
|
|
1641
|
-
"instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
|
|
1642
|
-
"be derived from the signer's public key with seed [\"instruction_params\",signer].",
|
|
736
|
+
"- instruction_params (Account): LUT containing the execution parameters. seed: [\"instruction_params\",signer]",
|
|
1643
737
|
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
1644
|
-
"- root_bundle (
|
|
1645
|
-
"
|
|
1646
|
-
"Used to prevent double request and fill. Seed: [\"fills\",relay_hash].",
|
|
1647
|
-
"- mint (Account): The mint account for the output token.",
|
|
1648
|
-
"- recipient_token_account (Writable): The recipient's ATA for the output token.",
|
|
738
|
+
"- root_bundle (Writable): The root bundle PDA containing the relayer refund root, created when the root bundle",
|
|
739
|
+
"was initially bridged. seed: [\"root_bundle\",state.seed,root_bundle_id].",
|
|
1649
740
|
"- vault (Writable): The ATA for refunded mint. Authority must be the state.",
|
|
1650
|
-
"-
|
|
1651
|
-
"-
|
|
741
|
+
"- mint (Account): The mint account for the token being refunded.",
|
|
742
|
+
"- token_program: The token program.",
|
|
743
|
+
"- system_program: The system program required for account creation.",
|
|
1652
744
|
"",
|
|
1653
|
-
"
|
|
1654
|
-
"- _relay_hash: The hash identifying the deposit to be filled. Used to identify the deposit to be filled.",
|
|
1655
|
-
"- slow_fill_leaf: Contains all data necessary to uniquely verify the slow fill. This struct contains:",
|
|
1656
|
-
"- relayData: Struct containing all the data needed to identify the original deposit to be slow filled. Same",
|
|
1657
|
-
"as the relay_data struct in fill_relay().",
|
|
1658
|
-
"- chainId: Chain identifier where slow fill leaf should be executed. If this doesn't match this chain's",
|
|
1659
|
-
"chainId, then this function will revert.",
|
|
1660
|
-
"- updatedOutputAmount: Amount to be sent to recipient out of this contract's balance. Can be set differently",
|
|
1661
|
-
"from relayData.outputAmount to charge a different fee because this deposit was \"slow\" filled. Usually,",
|
|
1662
|
-
"this will be set higher to reimburse the recipient for waiting for the slow fill.",
|
|
1663
|
-
"- _root_bundle_id: Unique ID of root bundle containing slow relay root that this leaf is contained in.",
|
|
1664
|
-
"- proof: Inclusion proof for this leaf in slow relay root in root bundle.",
|
|
1665
|
-
"Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters, but their presence must be consistent.",
|
|
1666
|
-
"If None for these parameters is passed, the caller must load them via the instruction_params account.",
|
|
1667
|
-
"Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes",
|
|
1668
|
-
"output token amounts to little-endian format while input token amount preserves its big-endian encoding as it",
|
|
1669
|
-
"is passed as [u8; 32] array."
|
|
745
|
+
"execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly."
|
|
1670
746
|
];
|
|
1671
747
|
"discriminator": [
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
748
|
+
27,
|
|
749
|
+
136,
|
|
750
|
+
159,
|
|
751
|
+
240,
|
|
752
|
+
127,
|
|
753
|
+
68,
|
|
754
|
+
123,
|
|
755
|
+
164
|
|
1680
756
|
];
|
|
1681
757
|
"accounts": [
|
|
1682
758
|
{
|
|
1683
759
|
"name": "signer";
|
|
760
|
+
"writable": true;
|
|
1684
761
|
"signer": true;
|
|
1685
762
|
},
|
|
1686
763
|
{
|
|
1687
764
|
"name": "instructionParams";
|
|
1688
765
|
"writable": true;
|
|
1689
|
-
"optional": true;
|
|
1690
766
|
"pda": {
|
|
1691
767
|
"seeds": [
|
|
1692
768
|
{
|
|
@@ -1743,6 +819,7 @@ export type SvmSpoke = {
|
|
|
1743
819
|
},
|
|
1744
820
|
{
|
|
1745
821
|
"name": "rootBundle";
|
|
822
|
+
"writable": true;
|
|
1746
823
|
"pda": {
|
|
1747
824
|
"seeds": [
|
|
1748
825
|
{
|
|
@@ -1766,93 +843,12 @@ export type SvmSpoke = {
|
|
|
1766
843
|
"path": "state.seed";
|
|
1767
844
|
"account": "state";
|
|
1768
845
|
},
|
|
1769
|
-
{
|
|
1770
|
-
"kind": "arg";
|
|
1771
|
-
"path": "_root_bundle_id.unwrap_or_else(| |\ninstruction_params";
|
|
1772
|
-
}
|
|
1773
|
-
];
|
|
1774
|
-
};
|
|
1775
|
-
},
|
|
1776
|
-
{
|
|
1777
|
-
"name": "fillStatus";
|
|
1778
|
-
"writable": true;
|
|
1779
|
-
"pda": {
|
|
1780
|
-
"seeds": [
|
|
1781
|
-
{
|
|
1782
|
-
"kind": "const";
|
|
1783
|
-
"value": [
|
|
1784
|
-
102,
|
|
1785
|
-
105,
|
|
1786
|
-
108,
|
|
1787
|
-
108,
|
|
1788
|
-
115
|
|
1789
|
-
];
|
|
1790
|
-
},
|
|
1791
|
-
{
|
|
1792
|
-
"kind": "arg";
|
|
1793
|
-
"path": "relayHash";
|
|
1794
|
-
}
|
|
1795
|
-
];
|
|
1796
|
-
};
|
|
1797
|
-
},
|
|
1798
|
-
{
|
|
1799
|
-
"name": "mint";
|
|
1800
|
-
},
|
|
1801
|
-
{
|
|
1802
|
-
"name": "recipientTokenAccount";
|
|
1803
|
-
"writable": true;
|
|
1804
|
-
"pda": {
|
|
1805
|
-
"seeds": [
|
|
1806
|
-
{
|
|
1807
|
-
"kind": "arg";
|
|
1808
|
-
"path": "slowFillLeaf";
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
"kind": "account";
|
|
1812
|
-
"path": "tokenProgram";
|
|
1813
|
-
},
|
|
1814
846
|
{
|
|
1815
847
|
"kind": "account";
|
|
1816
|
-
"path": "
|
|
848
|
+
"path": "instructionParams.rootBundleId";
|
|
849
|
+
"account": "executeRelayerRefundLeafParams";
|
|
1817
850
|
}
|
|
1818
851
|
];
|
|
1819
|
-
"program": {
|
|
1820
|
-
"kind": "const";
|
|
1821
|
-
"value": [
|
|
1822
|
-
140,
|
|
1823
|
-
151,
|
|
1824
|
-
37,
|
|
1825
|
-
143,
|
|
1826
|
-
78,
|
|
1827
|
-
36,
|
|
1828
|
-
137,
|
|
1829
|
-
241,
|
|
1830
|
-
187,
|
|
1831
|
-
61,
|
|
1832
|
-
16,
|
|
1833
|
-
41,
|
|
1834
|
-
20,
|
|
1835
|
-
142,
|
|
1836
|
-
13,
|
|
1837
|
-
131,
|
|
1838
|
-
11,
|
|
1839
|
-
90,
|
|
1840
|
-
19,
|
|
1841
|
-
153,
|
|
1842
|
-
218,
|
|
1843
|
-
255,
|
|
1844
|
-
16,
|
|
1845
|
-
132,
|
|
1846
|
-
4,
|
|
1847
|
-
142,
|
|
1848
|
-
123,
|
|
1849
|
-
216,
|
|
1850
|
-
219,
|
|
1851
|
-
233,
|
|
1852
|
-
248,
|
|
1853
|
-
89
|
|
1854
|
-
];
|
|
1855
|
-
};
|
|
1856
852
|
};
|
|
1857
853
|
},
|
|
1858
854
|
{
|
|
@@ -1912,6 +908,9 @@ export type SvmSpoke = {
|
|
|
1912
908
|
};
|
|
1913
909
|
};
|
|
1914
910
|
},
|
|
911
|
+
{
|
|
912
|
+
"name": "mint";
|
|
913
|
+
},
|
|
1915
914
|
{
|
|
1916
915
|
"name": "tokenProgram";
|
|
1917
916
|
},
|
|
@@ -1952,112 +951,22 @@ export type SvmSpoke = {
|
|
|
1952
951
|
"name": "program";
|
|
1953
952
|
}
|
|
1954
953
|
];
|
|
1955
|
-
"args": [
|
|
1956
|
-
{
|
|
1957
|
-
"name": "relayHash";
|
|
1958
|
-
"type": {
|
|
1959
|
-
"array": [
|
|
1960
|
-
"u8",
|
|
1961
|
-
32
|
|
1962
|
-
];
|
|
1963
|
-
};
|
|
1964
|
-
},
|
|
1965
|
-
{
|
|
1966
|
-
"name": "slowFillLeaf";
|
|
1967
|
-
"type": {
|
|
1968
|
-
"option": {
|
|
1969
|
-
"defined": {
|
|
1970
|
-
"name": "slowFill";
|
|
1971
|
-
};
|
|
1972
|
-
};
|
|
1973
|
-
};
|
|
1974
|
-
},
|
|
1975
|
-
{
|
|
1976
|
-
"name": "rootBundleId";
|
|
1977
|
-
"type": {
|
|
1978
|
-
"option": "u32";
|
|
1979
|
-
};
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
"name": "proof";
|
|
1983
|
-
"type": {
|
|
1984
|
-
"option": {
|
|
1985
|
-
"vec": {
|
|
1986
|
-
"array": [
|
|
1987
|
-
"u8",
|
|
1988
|
-
32
|
|
1989
|
-
];
|
|
1990
|
-
};
|
|
1991
|
-
};
|
|
1992
|
-
};
|
|
1993
|
-
}
|
|
1994
|
-
];
|
|
954
|
+
"args": [];
|
|
1995
955
|
},
|
|
1996
956
|
{
|
|
1997
|
-
"name": "
|
|
957
|
+
"name": "executeRelayerRefundLeafDeferred";
|
|
1998
958
|
"docs": [
|
|
1999
|
-
"
|
|
2000
|
-
"",
|
|
2001
|
-
"Relayer & system fee is captured in the spread between input and output amounts. This fee accounts for tx costs,",
|
|
2002
|
-
"relayer's capital opportunity cost, and a system fee. The relay_data hash uniquely identifies the deposit to",
|
|
2003
|
-
"fill, ensuring relayers are refunded only for deposits matching the original hash from the origin SpokePool.",
|
|
2004
|
-
"This hash includes all parameters from deposit() and must match the destination_chain_id. Note the relayer",
|
|
2005
|
-
"creates an ATA in calling this method to store the fill_status. This should be closed once the deposit has",
|
|
2006
|
-
"expired to let the relayer re-claim their rent. Cannot fill more than once. Partial fills are not supported.",
|
|
2007
|
-
"",
|
|
2008
|
-
"### Required Accounts:",
|
|
2009
|
-
"- signer (Signer): The account that authorizes the fill (filler). No permission requirements.",
|
|
2010
|
-
"- instruction_params (Account): Optional account to load instruction parameters when they are not passed in the",
|
|
2011
|
-
"instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
|
|
2012
|
-
"be derived from the signer's public key with seed [\"instruction_params\",signer].",
|
|
2013
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
2014
|
-
"- mint (Account): The mint of the output token, sent from the relayer to the recipient.",
|
|
2015
|
-
"- relayer_token_account (Writable): The relayer's ATA for the input token.",
|
|
2016
|
-
"- recipient_token_account (Writable): The recipient's ATA for the output token.",
|
|
2017
|
-
"- fill_status (Writable): The fill status PDA, created on this function call to track the fill status to prevent",
|
|
2018
|
-
"re-entrancy & double fills. Also used to track requested slow fills. Seed: [\"fills\",relay_hash].",
|
|
2019
|
-
"- token_program (Interface): The token program.",
|
|
2020
|
-
"- associated_token_program (Interface): The associated token program.",
|
|
2021
|
-
"- system_program (Interface): The system program.",
|
|
2022
|
-
"- delegate (Account): The account used to delegate the output amount of the output token.",
|
|
2023
|
-
"",
|
|
2024
|
-
"### Parameters:",
|
|
2025
|
-
"- relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
|
|
2026
|
-
"the flattened relay_data & destination_chain_id.",
|
|
2027
|
-
"- relay_data: Struct containing all the data needed to identify the deposit to be filled. Should match",
|
|
2028
|
-
"all the same-named parameters emitted in the origin chain FundsDeposited event.",
|
|
2029
|
-
"- depositor: The account credited with the deposit.",
|
|
2030
|
-
"- recipient: The account receiving funds on this chain.",
|
|
2031
|
-
"- input_token: The token pulled from the caller's account to initiate the deposit. The equivalent of this",
|
|
2032
|
-
"token on the repayment chain will be sent as a refund to the caller.",
|
|
2033
|
-
"- output_token: The token that the caller will send to the recipient on this chain.",
|
|
2034
|
-
"- input_amount: This amount, less a system fee, will be sent to the caller on their repayment chain.",
|
|
2035
|
-
"This is big-endian encoded as a 32-byte array to match its underlying byte representation on EVM side",
|
|
2036
|
-
"- output_amount: The amount of output tokens that the caller will send to the recipient.",
|
|
2037
|
-
"- origin_chain_id: The origin chain identifier.",
|
|
2038
|
-
"- exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the",
|
|
2039
|
-
"exclusivity deadline timestamp.",
|
|
2040
|
-
"- fill_deadline: The deadline for the caller to fill the deposit. After this timestamp, the deposit will be",
|
|
2041
|
-
"cancelled and the depositor will be refunded on the origin chain.",
|
|
2042
|
-
"- exclusivity_deadline: The deadline for the exclusive relayer to fill the deposit. After this timestamp,",
|
|
2043
|
-
"anyone can fill this deposit.",
|
|
2044
|
-
"- message: The message to send to the recipient if the recipient is a contract that implements a",
|
|
2045
|
-
"handle_across_message() public function.",
|
|
2046
|
-
"- repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has",
|
|
2047
|
-
"passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.",
|
|
2048
|
-
"- repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.",
|
|
2049
|
-
"Note: relay_data, repayment_chain_id, and repayment_address are optional parameters, but their presence must be",
|
|
2050
|
-
"consistent. If None for these is passed, the caller must load them via the instruction_params account."
|
|
959
|
+
"Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs."
|
|
2051
960
|
];
|
|
2052
961
|
"discriminator": [
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
962
|
+
110,
|
|
963
|
+
112,
|
|
964
|
+
89,
|
|
965
|
+
208,
|
|
966
|
+
38,
|
|
967
|
+
116,
|
|
968
|
+
93,
|
|
969
|
+
10
|
|
2061
970
|
];
|
|
2062
971
|
"accounts": [
|
|
2063
972
|
{
|
|
@@ -2068,7 +977,6 @@ export type SvmSpoke = {
|
|
|
2068
977
|
{
|
|
2069
978
|
"name": "instructionParams";
|
|
2070
979
|
"writable": true;
|
|
2071
|
-
"optional": true;
|
|
2072
980
|
"pda": {
|
|
2073
981
|
"seeds": [
|
|
2074
982
|
{
|
|
@@ -2124,23 +1032,47 @@ export type SvmSpoke = {
|
|
|
2124
1032
|
};
|
|
2125
1033
|
},
|
|
2126
1034
|
{
|
|
2127
|
-
"name": "
|
|
2128
|
-
},
|
|
2129
|
-
{
|
|
2130
|
-
"name": "mint";
|
|
2131
|
-
},
|
|
2132
|
-
{
|
|
2133
|
-
"name": "relayerTokenAccount";
|
|
1035
|
+
"name": "rootBundle";
|
|
2134
1036
|
"writable": true;
|
|
1037
|
+
"pda": {
|
|
1038
|
+
"seeds": [
|
|
1039
|
+
{
|
|
1040
|
+
"kind": "const";
|
|
1041
|
+
"value": [
|
|
1042
|
+
114,
|
|
1043
|
+
111,
|
|
1044
|
+
111,
|
|
1045
|
+
116,
|
|
1046
|
+
95,
|
|
1047
|
+
98,
|
|
1048
|
+
117,
|
|
1049
|
+
110,
|
|
1050
|
+
100,
|
|
1051
|
+
108,
|
|
1052
|
+
101
|
|
1053
|
+
];
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "account";
|
|
1057
|
+
"path": "state.seed";
|
|
1058
|
+
"account": "state";
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "account";
|
|
1062
|
+
"path": "instructionParams.rootBundleId";
|
|
1063
|
+
"account": "executeRelayerRefundLeafParams";
|
|
1064
|
+
}
|
|
1065
|
+
];
|
|
1066
|
+
};
|
|
2135
1067
|
},
|
|
2136
1068
|
{
|
|
2137
|
-
"name": "
|
|
1069
|
+
"name": "vault";
|
|
2138
1070
|
"writable": true;
|
|
2139
1071
|
"pda": {
|
|
2140
1072
|
"seeds": [
|
|
2141
1073
|
{
|
|
2142
|
-
"kind": "
|
|
2143
|
-
"path": "
|
|
1074
|
+
"kind": "account";
|
|
1075
|
+
"path": "state";
|
|
2144
1076
|
},
|
|
2145
1077
|
{
|
|
2146
1078
|
"kind": "account";
|
|
@@ -2191,34 +1123,11 @@ export type SvmSpoke = {
|
|
|
2191
1123
|
};
|
|
2192
1124
|
},
|
|
2193
1125
|
{
|
|
2194
|
-
"name": "
|
|
2195
|
-
"writable": true;
|
|
2196
|
-
"pda": {
|
|
2197
|
-
"seeds": [
|
|
2198
|
-
{
|
|
2199
|
-
"kind": "const";
|
|
2200
|
-
"value": [
|
|
2201
|
-
102,
|
|
2202
|
-
105,
|
|
2203
|
-
108,
|
|
2204
|
-
108,
|
|
2205
|
-
115
|
|
2206
|
-
];
|
|
2207
|
-
},
|
|
2208
|
-
{
|
|
2209
|
-
"kind": "arg";
|
|
2210
|
-
"path": "relayHash";
|
|
2211
|
-
}
|
|
2212
|
-
];
|
|
2213
|
-
};
|
|
1126
|
+
"name": "mint";
|
|
2214
1127
|
},
|
|
2215
1128
|
{
|
|
2216
1129
|
"name": "tokenProgram";
|
|
2217
1130
|
},
|
|
2218
|
-
{
|
|
2219
|
-
"name": "associatedTokenProgram";
|
|
2220
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
2221
|
-
},
|
|
2222
1131
|
{
|
|
2223
1132
|
"name": "systemProgram";
|
|
2224
1133
|
"address": "11111111111111111111111111111111";
|
|
@@ -2256,82 +1165,7 @@ export type SvmSpoke = {
|
|
|
2256
1165
|
"name": "program";
|
|
2257
1166
|
}
|
|
2258
1167
|
];
|
|
2259
|
-
"args": [
|
|
2260
|
-
{
|
|
2261
|
-
"name": "relayHash";
|
|
2262
|
-
"type": {
|
|
2263
|
-
"array": [
|
|
2264
|
-
"u8",
|
|
2265
|
-
32
|
|
2266
|
-
];
|
|
2267
|
-
};
|
|
2268
|
-
},
|
|
2269
|
-
{
|
|
2270
|
-
"name": "relayData";
|
|
2271
|
-
"type": {
|
|
2272
|
-
"option": {
|
|
2273
|
-
"defined": {
|
|
2274
|
-
"name": "relayData";
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
|
-
};
|
|
2278
|
-
},
|
|
2279
|
-
{
|
|
2280
|
-
"name": "repaymentChainId";
|
|
2281
|
-
"type": {
|
|
2282
|
-
"option": "u64";
|
|
2283
|
-
};
|
|
2284
|
-
},
|
|
2285
|
-
{
|
|
2286
|
-
"name": "repaymentAddress";
|
|
2287
|
-
"type": {
|
|
2288
|
-
"option": "pubkey";
|
|
2289
|
-
};
|
|
2290
|
-
}
|
|
2291
|
-
];
|
|
2292
|
-
},
|
|
2293
|
-
{
|
|
2294
|
-
"name": "getUnsafeDepositId";
|
|
2295
|
-
"docs": [
|
|
2296
|
-
"Computes the deposit ID for the depositor using the provided deposit_nonce. This acts like a \"view\" function for",
|
|
2297
|
-
"off-chain actors to compute what the expected deposit ID is for a given depositor and deposit nonce will be.",
|
|
2298
|
-
"",
|
|
2299
|
-
"### Parameters:",
|
|
2300
|
-
"- signer: The public key of the depositor sender.",
|
|
2301
|
-
"- depositor: The public key of the depositor.",
|
|
2302
|
-
"- deposit_nonce: The nonce used to derive the deposit ID."
|
|
2303
|
-
];
|
|
2304
|
-
"discriminator": [
|
|
2305
|
-
118,
|
|
2306
|
-
10,
|
|
2307
|
-
135,
|
|
2308
|
-
0,
|
|
2309
|
-
168,
|
|
2310
|
-
243,
|
|
2311
|
-
223,
|
|
2312
|
-
117
|
|
2313
|
-
];
|
|
2314
|
-
"accounts": [];
|
|
2315
|
-
"args": [
|
|
2316
|
-
{
|
|
2317
|
-
"name": "signer";
|
|
2318
|
-
"type": "pubkey";
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
"name": "depositor";
|
|
2322
|
-
"type": "pubkey";
|
|
2323
|
-
},
|
|
2324
|
-
{
|
|
2325
|
-
"name": "depositNonce";
|
|
2326
|
-
"type": "u64";
|
|
2327
|
-
}
|
|
2328
|
-
];
|
|
2329
|
-
"returns": {
|
|
2330
|
-
"array": [
|
|
2331
|
-
"u8",
|
|
2332
|
-
32
|
|
2333
|
-
];
|
|
2334
|
-
};
|
|
1168
|
+
"args": [];
|
|
2335
1169
|
},
|
|
2336
1170
|
{
|
|
2337
1171
|
"name": "handleReceiveFinalizedMessage";
|
|
@@ -2993,7 +1827,7 @@ export type SvmSpoke = {
|
|
|
2993
1827
|
"docs": [
|
|
2994
1828
|
"Stores a new root bundle for later execution. Only callable by the owner.",
|
|
2995
1829
|
"",
|
|
2996
|
-
"
|
|
1830
|
+
"The refund root authorizes relayer refunds. The slow root is stored only for compatibility and cannot execute.",
|
|
2997
1831
|
"This method initializes a root_bundle PDA to store the root bundle data. The caller",
|
|
2998
1832
|
"of this method is responsible for paying the rent for this PDA.",
|
|
2999
1833
|
"",
|
|
@@ -3007,7 +1841,7 @@ export type SvmSpoke = {
|
|
|
3007
1841
|
"",
|
|
3008
1842
|
"### Parameters:",
|
|
3009
1843
|
"- relayer_refund_root: Merkle root of the relayer refund tree.",
|
|
3010
|
-
"- slow_relay_root:
|
|
1844
|
+
"- slow_relay_root: Inert legacy root retained for cross-chain admin ABI compatibility."
|
|
3011
1845
|
];
|
|
3012
1846
|
"discriminator": [
|
|
3013
1847
|
69,
|
|
@@ -3022,213 +1856,16 @@ export type SvmSpoke = {
|
|
|
3022
1856
|
"accounts": [
|
|
3023
1857
|
{
|
|
3024
1858
|
"name": "signer";
|
|
3025
|
-
"signer": true;
|
|
3026
|
-
},
|
|
3027
|
-
{
|
|
3028
|
-
"name": "payer";
|
|
3029
|
-
"writable": true;
|
|
3030
|
-
"signer": true;
|
|
3031
|
-
},
|
|
3032
|
-
{
|
|
3033
|
-
"name": "state";
|
|
3034
|
-
"writable": true;
|
|
3035
|
-
"pda": {
|
|
3036
|
-
"seeds": [
|
|
3037
|
-
{
|
|
3038
|
-
"kind": "const";
|
|
3039
|
-
"value": [
|
|
3040
|
-
115,
|
|
3041
|
-
116,
|
|
3042
|
-
97,
|
|
3043
|
-
116,
|
|
3044
|
-
101
|
|
3045
|
-
];
|
|
3046
|
-
},
|
|
3047
|
-
{
|
|
3048
|
-
"kind": "account";
|
|
3049
|
-
"path": "state.seed";
|
|
3050
|
-
"account": "state";
|
|
3051
|
-
}
|
|
3052
|
-
];
|
|
3053
|
-
};
|
|
3054
|
-
},
|
|
3055
|
-
{
|
|
3056
|
-
"name": "rootBundle";
|
|
3057
|
-
"writable": true;
|
|
3058
|
-
"pda": {
|
|
3059
|
-
"seeds": [
|
|
3060
|
-
{
|
|
3061
|
-
"kind": "const";
|
|
3062
|
-
"value": [
|
|
3063
|
-
114,
|
|
3064
|
-
111,
|
|
3065
|
-
111,
|
|
3066
|
-
116,
|
|
3067
|
-
95,
|
|
3068
|
-
98,
|
|
3069
|
-
117,
|
|
3070
|
-
110,
|
|
3071
|
-
100,
|
|
3072
|
-
108,
|
|
3073
|
-
101
|
|
3074
|
-
];
|
|
3075
|
-
},
|
|
3076
|
-
{
|
|
3077
|
-
"kind": "account";
|
|
3078
|
-
"path": "state.seed";
|
|
3079
|
-
"account": "state";
|
|
3080
|
-
},
|
|
3081
|
-
{
|
|
3082
|
-
"kind": "account";
|
|
3083
|
-
"path": "state.root_bundle_id";
|
|
3084
|
-
"account": "state";
|
|
3085
|
-
}
|
|
3086
|
-
];
|
|
3087
|
-
};
|
|
3088
|
-
},
|
|
3089
|
-
{
|
|
3090
|
-
"name": "systemProgram";
|
|
3091
|
-
"address": "11111111111111111111111111111111";
|
|
3092
|
-
},
|
|
3093
|
-
{
|
|
3094
|
-
"name": "eventAuthority";
|
|
3095
|
-
"pda": {
|
|
3096
|
-
"seeds": [
|
|
3097
|
-
{
|
|
3098
|
-
"kind": "const";
|
|
3099
|
-
"value": [
|
|
3100
|
-
95,
|
|
3101
|
-
95,
|
|
3102
|
-
101,
|
|
3103
|
-
118,
|
|
3104
|
-
101,
|
|
3105
|
-
110,
|
|
3106
|
-
116,
|
|
3107
|
-
95,
|
|
3108
|
-
97,
|
|
3109
|
-
117,
|
|
3110
|
-
116,
|
|
3111
|
-
104,
|
|
3112
|
-
111,
|
|
3113
|
-
114,
|
|
3114
|
-
105,
|
|
3115
|
-
116,
|
|
3116
|
-
121
|
|
3117
|
-
];
|
|
3118
|
-
}
|
|
3119
|
-
];
|
|
3120
|
-
};
|
|
3121
|
-
},
|
|
3122
|
-
{
|
|
3123
|
-
"name": "program";
|
|
3124
|
-
}
|
|
3125
|
-
];
|
|
3126
|
-
"args": [
|
|
3127
|
-
{
|
|
3128
|
-
"name": "relayerRefundRoot";
|
|
3129
|
-
"type": {
|
|
3130
|
-
"array": [
|
|
3131
|
-
"u8",
|
|
3132
|
-
32
|
|
3133
|
-
];
|
|
3134
|
-
};
|
|
3135
|
-
},
|
|
3136
|
-
{
|
|
3137
|
-
"name": "slowRelayRoot";
|
|
3138
|
-
"type": {
|
|
3139
|
-
"array": [
|
|
3140
|
-
"u8",
|
|
3141
|
-
32
|
|
3142
|
-
];
|
|
3143
|
-
};
|
|
3144
|
-
}
|
|
3145
|
-
];
|
|
3146
|
-
},
|
|
3147
|
-
{
|
|
3148
|
-
"name": "requestSlowFill";
|
|
3149
|
-
"docs": [
|
|
3150
|
-
"Requests Across to send LP funds to this program to fulfill a slow fill.",
|
|
3151
|
-
"",
|
|
3152
|
-
"Slow fills are not possible unless the input and output tokens are \"equivalent\", i.e., they route to the same L1",
|
|
3153
|
-
"token via PoolRebalanceRoutes. Slow fills are created by inserting slow fill objects into a Merkle tree that is",
|
|
3154
|
-
"included in the next HubPool \"root bundle\". Once the optimistic challenge window has passed, the HubPool will",
|
|
3155
|
-
"relay the slow root to this chain via relayRootBundle(). Once the slow root is relayed, the slow fill can be",
|
|
3156
|
-
"executed by anyone who calls executeSlowRelayLeaf(). Cant request a slow fill if the fill deadline has",
|
|
3157
|
-
"passed. Cant request a slow fill if the relay has already been filled or a slow fill has already been requested.",
|
|
3158
|
-
"",
|
|
3159
|
-
"### Required Accounts:",
|
|
3160
|
-
"- signer (Signer): The account that authorizes the slow fill request.",
|
|
3161
|
-
"- instruction_params (Account): Optional account to load instruction parameters when they are not passed in the",
|
|
3162
|
-
"instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must",
|
|
3163
|
-
"be derived from the signer's public key with seed [\"instruction_params\",signer].",
|
|
3164
|
-
"- state (Writable): Spoke state PDA. Seed: [\"state\",state.seed] where seed is 0 on mainnet.",
|
|
3165
|
-
"- fill_status (Writable): The fill status PDA, created on this function call. Updated to track slow fill status.",
|
|
3166
|
-
"Used to prevent double request and fill. Seed: [\"fills\",relay_hash].",
|
|
3167
|
-
"- system_program (Interface): The system program.",
|
|
3168
|
-
"",
|
|
3169
|
-
"### Parameters:",
|
|
3170
|
-
"- _relay_hash: The hash identifying the deposit to be filled. Caller must pass this in. Computed as hash of",
|
|
3171
|
-
"the flattened relay_data & destination_chain_id.",
|
|
3172
|
-
"- relay_data: Struct containing all the data needed to identify the deposit that should be slow filled. If any",
|
|
3173
|
-
"of the params are missing or different from the origin chain deposit, then Across will not include a slow",
|
|
3174
|
-
"fill for the intended deposit. See fill_relay & RelayData struct for more details.",
|
|
3175
|
-
"Note: relay_data is optional parameter. If None for it is passed, the caller must load it via the",
|
|
3176
|
-
"instruction_params account."
|
|
3177
|
-
];
|
|
3178
|
-
"discriminator": [
|
|
3179
|
-
39,
|
|
3180
|
-
157,
|
|
3181
|
-
165,
|
|
3182
|
-
187,
|
|
3183
|
-
88,
|
|
3184
|
-
217,
|
|
3185
|
-
207,
|
|
3186
|
-
98
|
|
3187
|
-
];
|
|
3188
|
-
"accounts": [
|
|
3189
|
-
{
|
|
3190
|
-
"name": "signer";
|
|
3191
|
-
"writable": true;
|
|
3192
|
-
"signer": true;
|
|
3193
|
-
},
|
|
3194
|
-
{
|
|
3195
|
-
"name": "instructionParams";
|
|
3196
|
-
"writable": true;
|
|
3197
|
-
"optional": true;
|
|
3198
|
-
"pda": {
|
|
3199
|
-
"seeds": [
|
|
3200
|
-
{
|
|
3201
|
-
"kind": "const";
|
|
3202
|
-
"value": [
|
|
3203
|
-
105,
|
|
3204
|
-
110,
|
|
3205
|
-
115,
|
|
3206
|
-
116,
|
|
3207
|
-
114,
|
|
3208
|
-
117,
|
|
3209
|
-
99,
|
|
3210
|
-
116,
|
|
3211
|
-
105,
|
|
3212
|
-
111,
|
|
3213
|
-
110,
|
|
3214
|
-
95,
|
|
3215
|
-
112,
|
|
3216
|
-
97,
|
|
3217
|
-
114,
|
|
3218
|
-
97,
|
|
3219
|
-
109,
|
|
3220
|
-
115
|
|
3221
|
-
];
|
|
3222
|
-
},
|
|
3223
|
-
{
|
|
3224
|
-
"kind": "account";
|
|
3225
|
-
"path": "signer";
|
|
3226
|
-
}
|
|
3227
|
-
];
|
|
3228
|
-
};
|
|
1859
|
+
"signer": true;
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"name": "payer";
|
|
1863
|
+
"writable": true;
|
|
1864
|
+
"signer": true;
|
|
3229
1865
|
},
|
|
3230
1866
|
{
|
|
3231
1867
|
"name": "state";
|
|
1868
|
+
"writable": true;
|
|
3232
1869
|
"pda": {
|
|
3233
1870
|
"seeds": [
|
|
3234
1871
|
{
|
|
@@ -3250,23 +1887,35 @@ export type SvmSpoke = {
|
|
|
3250
1887
|
};
|
|
3251
1888
|
},
|
|
3252
1889
|
{
|
|
3253
|
-
"name": "
|
|
1890
|
+
"name": "rootBundle";
|
|
3254
1891
|
"writable": true;
|
|
3255
1892
|
"pda": {
|
|
3256
1893
|
"seeds": [
|
|
3257
1894
|
{
|
|
3258
1895
|
"kind": "const";
|
|
3259
1896
|
"value": [
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
1897
|
+
114,
|
|
1898
|
+
111,
|
|
1899
|
+
111,
|
|
1900
|
+
116,
|
|
1901
|
+
95,
|
|
1902
|
+
98,
|
|
1903
|
+
117,
|
|
1904
|
+
110,
|
|
1905
|
+
100,
|
|
3263
1906
|
108,
|
|
3264
|
-
|
|
1907
|
+
101
|
|
3265
1908
|
];
|
|
3266
1909
|
},
|
|
3267
1910
|
{
|
|
3268
|
-
"kind": "
|
|
3269
|
-
"path": "
|
|
1911
|
+
"kind": "account";
|
|
1912
|
+
"path": "state.seed";
|
|
1913
|
+
"account": "state";
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"kind": "account";
|
|
1917
|
+
"path": "state.rootBundleId";
|
|
1918
|
+
"account": "state";
|
|
3270
1919
|
}
|
|
3271
1920
|
];
|
|
3272
1921
|
};
|
|
@@ -3310,7 +1959,7 @@ export type SvmSpoke = {
|
|
|
3310
1959
|
];
|
|
3311
1960
|
"args": [
|
|
3312
1961
|
{
|
|
3313
|
-
"name": "
|
|
1962
|
+
"name": "relayerRefundRoot";
|
|
3314
1963
|
"type": {
|
|
3315
1964
|
"array": [
|
|
3316
1965
|
"u8",
|
|
@@ -3319,13 +1968,12 @@ export type SvmSpoke = {
|
|
|
3319
1968
|
};
|
|
3320
1969
|
},
|
|
3321
1970
|
{
|
|
3322
|
-
"name": "
|
|
1971
|
+
"name": "slowRelayRoot";
|
|
3323
1972
|
"type": {
|
|
3324
|
-
"
|
|
3325
|
-
"
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
};
|
|
1973
|
+
"array": [
|
|
1974
|
+
"u8",
|
|
1975
|
+
32
|
|
1976
|
+
];
|
|
3329
1977
|
};
|
|
3330
1978
|
}
|
|
3331
1979
|
];
|
|
@@ -3511,235 +2159,15 @@ export type SvmSpoke = {
|
|
|
3511
2159
|
97,
|
|
3512
2160
|
116,
|
|
3513
2161
|
101
|
|
3514
|
-
];
|
|
3515
|
-
},
|
|
3516
|
-
{
|
|
3517
|
-
"kind": "account";
|
|
3518
|
-
"path": "state.seed";
|
|
3519
|
-
"account": "state";
|
|
3520
|
-
}
|
|
3521
|
-
];
|
|
3522
|
-
};
|
|
3523
|
-
},
|
|
3524
|
-
{
|
|
3525
|
-
"name": "eventAuthority";
|
|
3526
|
-
"pda": {
|
|
3527
|
-
"seeds": [
|
|
3528
|
-
{
|
|
3529
|
-
"kind": "const";
|
|
3530
|
-
"value": [
|
|
3531
|
-
95,
|
|
3532
|
-
95,
|
|
3533
|
-
101,
|
|
3534
|
-
118,
|
|
3535
|
-
101,
|
|
3536
|
-
110,
|
|
3537
|
-
116,
|
|
3538
|
-
95,
|
|
3539
|
-
97,
|
|
3540
|
-
117,
|
|
3541
|
-
116,
|
|
3542
|
-
104,
|
|
3543
|
-
111,
|
|
3544
|
-
114,
|
|
3545
|
-
105,
|
|
3546
|
-
116,
|
|
3547
|
-
121
|
|
3548
|
-
];
|
|
3549
|
-
}
|
|
3550
|
-
];
|
|
3551
|
-
};
|
|
3552
|
-
},
|
|
3553
|
-
{
|
|
3554
|
-
"name": "program";
|
|
3555
|
-
}
|
|
3556
|
-
];
|
|
3557
|
-
"args": [
|
|
3558
|
-
{
|
|
3559
|
-
"name": "newOwner";
|
|
3560
|
-
"type": "pubkey";
|
|
3561
|
-
}
|
|
3562
|
-
];
|
|
3563
|
-
},
|
|
3564
|
-
{
|
|
3565
|
-
"name": "unsafeDeposit";
|
|
3566
|
-
"docs": [
|
|
3567
|
-
"Equivalent to deposit, except that it doesn't use the global `number_of_deposits` counter as the deposit",
|
|
3568
|
-
"nonce. Instead, it allows the caller to pass a `deposit_nonce`. This function is designed for anyone who",
|
|
3569
|
-
"wants to pre-compute their resultant deposit ID, which can be useful for filling a deposit faster and",
|
|
3570
|
-
"avoiding the risk of a deposit ID unexpectedly changing due to another deposit front-running this one and",
|
|
3571
|
-
"incrementing the global deposit ID counter. This enables the caller to influence the deposit ID, making it",
|
|
3572
|
-
"deterministic for the depositor. The computed `depositID` is the keccak256 hash of [signer, depositor, deposit_nonce]."
|
|
3573
|
-
];
|
|
3574
|
-
"discriminator": [
|
|
3575
|
-
196,
|
|
3576
|
-
187,
|
|
3577
|
-
166,
|
|
3578
|
-
179,
|
|
3579
|
-
3,
|
|
3580
|
-
146,
|
|
3581
|
-
150,
|
|
3582
|
-
246
|
|
3583
|
-
];
|
|
3584
|
-
"accounts": [
|
|
3585
|
-
{
|
|
3586
|
-
"name": "signer";
|
|
3587
|
-
"writable": true;
|
|
3588
|
-
"signer": true;
|
|
3589
|
-
},
|
|
3590
|
-
{
|
|
3591
|
-
"name": "state";
|
|
3592
|
-
"writable": true;
|
|
3593
|
-
"pda": {
|
|
3594
|
-
"seeds": [
|
|
3595
|
-
{
|
|
3596
|
-
"kind": "const";
|
|
3597
|
-
"value": [
|
|
3598
|
-
115,
|
|
3599
|
-
116,
|
|
3600
|
-
97,
|
|
3601
|
-
116,
|
|
3602
|
-
101
|
|
3603
|
-
];
|
|
3604
|
-
},
|
|
3605
|
-
{
|
|
3606
|
-
"kind": "account";
|
|
3607
|
-
"path": "state.seed";
|
|
3608
|
-
"account": "state";
|
|
3609
|
-
}
|
|
3610
|
-
];
|
|
3611
|
-
};
|
|
3612
|
-
},
|
|
3613
|
-
{
|
|
3614
|
-
"name": "delegate";
|
|
3615
|
-
},
|
|
3616
|
-
{
|
|
3617
|
-
"name": "depositorTokenAccount";
|
|
3618
|
-
"writable": true;
|
|
3619
|
-
"pda": {
|
|
3620
|
-
"seeds": [
|
|
3621
|
-
{
|
|
3622
|
-
"kind": "arg";
|
|
3623
|
-
"path": "depositor";
|
|
3624
|
-
},
|
|
3625
|
-
{
|
|
3626
|
-
"kind": "account";
|
|
3627
|
-
"path": "tokenProgram";
|
|
3628
|
-
},
|
|
3629
|
-
{
|
|
3630
|
-
"kind": "account";
|
|
3631
|
-
"path": "mint";
|
|
3632
|
-
}
|
|
3633
|
-
];
|
|
3634
|
-
"program": {
|
|
3635
|
-
"kind": "const";
|
|
3636
|
-
"value": [
|
|
3637
|
-
140,
|
|
3638
|
-
151,
|
|
3639
|
-
37,
|
|
3640
|
-
143,
|
|
3641
|
-
78,
|
|
3642
|
-
36,
|
|
3643
|
-
137,
|
|
3644
|
-
241,
|
|
3645
|
-
187,
|
|
3646
|
-
61,
|
|
3647
|
-
16,
|
|
3648
|
-
41,
|
|
3649
|
-
20,
|
|
3650
|
-
142,
|
|
3651
|
-
13,
|
|
3652
|
-
131,
|
|
3653
|
-
11,
|
|
3654
|
-
90,
|
|
3655
|
-
19,
|
|
3656
|
-
153,
|
|
3657
|
-
218,
|
|
3658
|
-
255,
|
|
3659
|
-
16,
|
|
3660
|
-
132,
|
|
3661
|
-
4,
|
|
3662
|
-
142,
|
|
3663
|
-
123,
|
|
3664
|
-
216,
|
|
3665
|
-
219,
|
|
3666
|
-
233,
|
|
3667
|
-
248,
|
|
3668
|
-
89
|
|
3669
|
-
];
|
|
3670
|
-
};
|
|
3671
|
-
};
|
|
3672
|
-
},
|
|
3673
|
-
{
|
|
3674
|
-
"name": "vault";
|
|
3675
|
-
"writable": true;
|
|
3676
|
-
"pda": {
|
|
3677
|
-
"seeds": [
|
|
3678
|
-
{
|
|
3679
|
-
"kind": "account";
|
|
3680
|
-
"path": "state";
|
|
3681
|
-
},
|
|
3682
|
-
{
|
|
3683
|
-
"kind": "account";
|
|
3684
|
-
"path": "tokenProgram";
|
|
3685
|
-
},
|
|
3686
|
-
{
|
|
3687
|
-
"kind": "account";
|
|
3688
|
-
"path": "mint";
|
|
3689
|
-
}
|
|
3690
|
-
];
|
|
3691
|
-
"program": {
|
|
3692
|
-
"kind": "const";
|
|
3693
|
-
"value": [
|
|
3694
|
-
140,
|
|
3695
|
-
151,
|
|
3696
|
-
37,
|
|
3697
|
-
143,
|
|
3698
|
-
78,
|
|
3699
|
-
36,
|
|
3700
|
-
137,
|
|
3701
|
-
241,
|
|
3702
|
-
187,
|
|
3703
|
-
61,
|
|
3704
|
-
16,
|
|
3705
|
-
41,
|
|
3706
|
-
20,
|
|
3707
|
-
142,
|
|
3708
|
-
13,
|
|
3709
|
-
131,
|
|
3710
|
-
11,
|
|
3711
|
-
90,
|
|
3712
|
-
19,
|
|
3713
|
-
153,
|
|
3714
|
-
218,
|
|
3715
|
-
255,
|
|
3716
|
-
16,
|
|
3717
|
-
132,
|
|
3718
|
-
4,
|
|
3719
|
-
142,
|
|
3720
|
-
123,
|
|
3721
|
-
216,
|
|
3722
|
-
219,
|
|
3723
|
-
233,
|
|
3724
|
-
248,
|
|
3725
|
-
89
|
|
3726
|
-
];
|
|
3727
|
-
};
|
|
3728
|
-
};
|
|
3729
|
-
},
|
|
3730
|
-
{
|
|
3731
|
-
"name": "mint";
|
|
3732
|
-
},
|
|
3733
|
-
{
|
|
3734
|
-
"name": "tokenProgram";
|
|
3735
|
-
},
|
|
3736
|
-
{
|
|
3737
|
-
"name": "associatedTokenProgram";
|
|
3738
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
3739
|
-
},
|
|
3740
|
-
{
|
|
3741
|
-
"name": "systemProgram";
|
|
3742
|
-
"address": "11111111111111111111111111111111";
|
|
2162
|
+
];
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"kind": "account";
|
|
2166
|
+
"path": "state.seed";
|
|
2167
|
+
"account": "state";
|
|
2168
|
+
}
|
|
2169
|
+
];
|
|
2170
|
+
};
|
|
3743
2171
|
},
|
|
3744
2172
|
{
|
|
3745
2173
|
"name": "eventAuthority";
|
|
@@ -3776,61 +2204,75 @@ export type SvmSpoke = {
|
|
|
3776
2204
|
];
|
|
3777
2205
|
"args": [
|
|
3778
2206
|
{
|
|
3779
|
-
"name": "
|
|
3780
|
-
"type": "pubkey";
|
|
3781
|
-
},
|
|
3782
|
-
{
|
|
3783
|
-
"name": "recipient";
|
|
3784
|
-
"type": "pubkey";
|
|
3785
|
-
},
|
|
3786
|
-
{
|
|
3787
|
-
"name": "inputToken";
|
|
3788
|
-
"type": "pubkey";
|
|
3789
|
-
},
|
|
3790
|
-
{
|
|
3791
|
-
"name": "outputToken";
|
|
2207
|
+
"name": "newOwner";
|
|
3792
2208
|
"type": "pubkey";
|
|
3793
|
-
}
|
|
2209
|
+
}
|
|
2210
|
+
];
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
"name": "withdrawV5FillPayer";
|
|
2214
|
+
"docs": [
|
|
2215
|
+
"Withdraws lamports from the signing submitter's V5 fill-status payer float back to that same submitter. Partial",
|
|
2216
|
+
"withdrawals remain subject to the runtime's rent-state rules; `u64::MAX` withdraws the live balance."
|
|
2217
|
+
];
|
|
2218
|
+
"discriminator": [
|
|
2219
|
+
160,
|
|
2220
|
+
125,
|
|
2221
|
+
152,
|
|
2222
|
+
107,
|
|
2223
|
+
21,
|
|
2224
|
+
37,
|
|
2225
|
+
181,
|
|
2226
|
+
144
|
|
2227
|
+
];
|
|
2228
|
+
"accounts": [
|
|
3794
2229
|
{
|
|
3795
|
-
"name": "
|
|
3796
|
-
"
|
|
2230
|
+
"name": "submitter";
|
|
2231
|
+
"docs": [
|
|
2232
|
+
"The float owner and the only withdrawal destination."
|
|
2233
|
+
];
|
|
2234
|
+
"writable": true;
|
|
2235
|
+
"signer": true;
|
|
3797
2236
|
},
|
|
3798
2237
|
{
|
|
3799
|
-
"name": "
|
|
3800
|
-
"
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
2238
|
+
"name": "payer";
|
|
2239
|
+
"writable": true;
|
|
2240
|
+
"pda": {
|
|
2241
|
+
"seeds": [
|
|
2242
|
+
{
|
|
2243
|
+
"kind": "const";
|
|
2244
|
+
"value": [
|
|
2245
|
+
118,
|
|
2246
|
+
53,
|
|
2247
|
+
95,
|
|
2248
|
+
102,
|
|
2249
|
+
105,
|
|
2250
|
+
108,
|
|
2251
|
+
108,
|
|
2252
|
+
95,
|
|
2253
|
+
112,
|
|
2254
|
+
97,
|
|
2255
|
+
121,
|
|
2256
|
+
101,
|
|
2257
|
+
114
|
|
2258
|
+
];
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
"kind": "account";
|
|
2262
|
+
"path": "submitter";
|
|
2263
|
+
}
|
|
3804
2264
|
];
|
|
3805
2265
|
};
|
|
3806
2266
|
},
|
|
3807
2267
|
{
|
|
3808
|
-
"name": "
|
|
3809
|
-
"
|
|
3810
|
-
}
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
"type": "pubkey";
|
|
3814
|
-
},
|
|
2268
|
+
"name": "systemProgram";
|
|
2269
|
+
"address": "11111111111111111111111111111111";
|
|
2270
|
+
}
|
|
2271
|
+
];
|
|
2272
|
+
"args": [
|
|
3815
2273
|
{
|
|
3816
|
-
"name": "
|
|
2274
|
+
"name": "amount";
|
|
3817
2275
|
"type": "u64";
|
|
3818
|
-
},
|
|
3819
|
-
{
|
|
3820
|
-
"name": "quoteTimestamp";
|
|
3821
|
-
"type": "u32";
|
|
3822
|
-
},
|
|
3823
|
-
{
|
|
3824
|
-
"name": "fillDeadline";
|
|
3825
|
-
"type": "u32";
|
|
3826
|
-
},
|
|
3827
|
-
{
|
|
3828
|
-
"name": "exclusivityParameter";
|
|
3829
|
-
"type": "u32";
|
|
3830
|
-
},
|
|
3831
|
-
{
|
|
3832
|
-
"name": "message";
|
|
3833
|
-
"type": "bytes";
|
|
3834
2276
|
}
|
|
3835
2277
|
];
|
|
3836
2278
|
},
|
|
@@ -3945,32 +2387,6 @@ export type SvmSpoke = {
|
|
|
3945
2387
|
250
|
|
3946
2388
|
];
|
|
3947
2389
|
},
|
|
3948
|
-
{
|
|
3949
|
-
"name": "executeSlowRelayLeafParams";
|
|
3950
|
-
"discriminator": [
|
|
3951
|
-
135,
|
|
3952
|
-
208,
|
|
3953
|
-
119,
|
|
3954
|
-
251,
|
|
3955
|
-
14,
|
|
3956
|
-
222,
|
|
3957
|
-
66,
|
|
3958
|
-
155
|
|
3959
|
-
];
|
|
3960
|
-
},
|
|
3961
|
-
{
|
|
3962
|
-
"name": "fillRelayParams";
|
|
3963
|
-
"discriminator": [
|
|
3964
|
-
50,
|
|
3965
|
-
243,
|
|
3966
|
-
51,
|
|
3967
|
-
185,
|
|
3968
|
-
89,
|
|
3969
|
-
60,
|
|
3970
|
-
43,
|
|
3971
|
-
202
|
|
3972
|
-
];
|
|
3973
|
-
},
|
|
3974
2390
|
{
|
|
3975
2391
|
"name": "fillStatusAccount";
|
|
3976
2392
|
"discriminator": [
|
|
@@ -3984,19 +2400,6 @@ export type SvmSpoke = {
|
|
|
3984
2400
|
137
|
|
3985
2401
|
];
|
|
3986
2402
|
},
|
|
3987
|
-
{
|
|
3988
|
-
"name": "requestSlowFillParams";
|
|
3989
|
-
"discriminator": [
|
|
3990
|
-
5,
|
|
3991
|
-
54,
|
|
3992
|
-
214,
|
|
3993
|
-
89,
|
|
3994
|
-
197,
|
|
3995
|
-
37,
|
|
3996
|
-
118,
|
|
3997
|
-
28
|
|
3998
|
-
];
|
|
3999
|
-
},
|
|
4000
2403
|
{
|
|
4001
2404
|
"name": "rootBundle";
|
|
4002
2405
|
"discriminator": [
|
|
@@ -4167,212 +2570,485 @@ export type SvmSpoke = {
|
|
|
4167
2570
|
21,
|
|
4168
2571
|
117
|
|
4169
2572
|
];
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
"name": "v5FillFloatWithdrawn";
|
|
2576
|
+
"discriminator": [
|
|
2577
|
+
169,
|
|
2578
|
+
141,
|
|
2579
|
+
173,
|
|
2580
|
+
134,
|
|
2581
|
+
108,
|
|
2582
|
+
32,
|
|
2583
|
+
187,
|
|
2584
|
+
186
|
|
2585
|
+
];
|
|
4170
2586
|
}
|
|
4171
2587
|
];
|
|
4172
2588
|
"errors": [
|
|
4173
2589
|
{
|
|
4174
2590
|
"code": 6000;
|
|
4175
|
-
"name": "
|
|
4176
|
-
"msg": "
|
|
2591
|
+
"name": "invalidQuoteTimestamp";
|
|
2592
|
+
"msg": "Invalid quote timestamp!";
|
|
4177
2593
|
},
|
|
4178
2594
|
{
|
|
4179
2595
|
"code": 6001;
|
|
4180
|
-
"name": "
|
|
4181
|
-
"msg": "Invalid
|
|
2596
|
+
"name": "invalidFillDeadline";
|
|
2597
|
+
"msg": "Invalid fill deadline!";
|
|
4182
2598
|
},
|
|
4183
2599
|
{
|
|
4184
2600
|
"code": 6002;
|
|
2601
|
+
"name": "notExclusiveRelayer";
|
|
2602
|
+
"msg": "Caller is not the exclusive relayer and exclusivity deadline has not passed!";
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"code": 6003;
|
|
2606
|
+
"name": "retiredNoSlowFillsInExclusivityWindow";
|
|
2607
|
+
"msg": "The Deposit is still within the exclusivity window!";
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
"code": 6004;
|
|
2611
|
+
"name": "relayFilled";
|
|
2612
|
+
"msg": "The relay has already been filled!";
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"code": 6005;
|
|
2616
|
+
"name": "retiredInvalidSlowFillRequest";
|
|
2617
|
+
"msg": "Slow fill requires status of Unfilled!";
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
"code": 6006;
|
|
2621
|
+
"name": "expiredFillDeadline";
|
|
2622
|
+
"msg": "The fill deadline has passed!";
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
"code": 6007;
|
|
2626
|
+
"name": "invalidMerkleProof";
|
|
2627
|
+
"msg": "Invalid Merkle proof!";
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
"code": 6008;
|
|
2631
|
+
"name": "invalidChainId";
|
|
2632
|
+
"msg": "Invalid chain id!";
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
"code": 6009;
|
|
2636
|
+
"name": "invalidMerkleLeaf";
|
|
2637
|
+
"msg": "Invalid Merkle leaf!";
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"code": 6010;
|
|
2641
|
+
"name": "claimedMerkleLeaf";
|
|
2642
|
+
"msg": "Leaf already claimed!";
|
|
2643
|
+
},
|
|
2644
|
+
{
|
|
2645
|
+
"code": 6011;
|
|
2646
|
+
"name": "depositsArePaused";
|
|
2647
|
+
"msg": "Deposits are currently paused!";
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"code": 6012;
|
|
2651
|
+
"name": "fillsArePaused";
|
|
2652
|
+
"msg": "Fills are currently paused!";
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
"code": 6013;
|
|
2656
|
+
"name": "insufficientSpokePoolBalanceToExecuteLeaf";
|
|
2657
|
+
"msg": "Insufficient spoke pool balance to execute leaf";
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
"code": 6014;
|
|
2661
|
+
"name": "invalidExclusiveRelayer";
|
|
2662
|
+
"msg": "Invalid exclusive relayer!";
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"code": 6015;
|
|
2666
|
+
"name": "invalidOutputToken";
|
|
2667
|
+
"msg": "Invalid output token!";
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"code": 7000;
|
|
2671
|
+
"name": "notOwner";
|
|
2672
|
+
"msg": "Only the owner can call this function!";
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
"code": 7001;
|
|
4185
2676
|
"name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
|
|
4186
2677
|
"msg": "The fill deadline has not passed!";
|
|
4187
2678
|
},
|
|
4188
2679
|
{
|
|
4189
|
-
"code":
|
|
2680
|
+
"code": 7002;
|
|
4190
2681
|
"name": "notRelayer";
|
|
4191
2682
|
"msg": "The caller is not the relayer!";
|
|
4192
2683
|
},
|
|
4193
2684
|
{
|
|
4194
|
-
"code":
|
|
2685
|
+
"code": 7003;
|
|
4195
2686
|
"name": "cannotSetCurrentTime";
|
|
4196
2687
|
"msg": "Cannot set time if not in test mode!";
|
|
4197
2688
|
},
|
|
4198
2689
|
{
|
|
4199
|
-
"code":
|
|
2690
|
+
"code": 7004;
|
|
4200
2691
|
"name": "invalidRemoteDomain";
|
|
4201
2692
|
"msg": "Invalid remote domain!";
|
|
4202
2693
|
},
|
|
4203
2694
|
{
|
|
4204
|
-
"code":
|
|
2695
|
+
"code": 7005;
|
|
4205
2696
|
"name": "invalidRemoteSender";
|
|
4206
2697
|
"msg": "Invalid remote sender!";
|
|
4207
2698
|
},
|
|
4208
2699
|
{
|
|
4209
|
-
"code":
|
|
2700
|
+
"code": 7006;
|
|
4210
2701
|
"name": "invalidMint";
|
|
4211
2702
|
"msg": "Invalid mint!";
|
|
4212
2703
|
},
|
|
4213
2704
|
{
|
|
4214
|
-
"code":
|
|
2705
|
+
"code": 7007;
|
|
4215
2706
|
"name": "nonZeroAmountToReturn";
|
|
4216
2707
|
"msg": "Relayer refund leaf must not return tokens to HubPool!";
|
|
4217
2708
|
},
|
|
4218
2709
|
{
|
|
4219
|
-
"code":
|
|
2710
|
+
"code": 7008;
|
|
4220
2711
|
"name": "paramsWriteOverflow";
|
|
4221
2712
|
"msg": "Overflow writing to parameters account!";
|
|
4222
2713
|
},
|
|
4223
2714
|
{
|
|
4224
|
-
"code":
|
|
2715
|
+
"code": 7009;
|
|
4225
2716
|
"name": "invalidRefund";
|
|
4226
2717
|
"msg": "Invalid refund address!";
|
|
4227
2718
|
},
|
|
4228
2719
|
{
|
|
4229
|
-
"code":
|
|
2720
|
+
"code": 7010;
|
|
4230
2721
|
"name": "zeroRefundClaim";
|
|
4231
2722
|
"msg": "Zero relayer refund claim!";
|
|
4232
2723
|
},
|
|
4233
2724
|
{
|
|
4234
|
-
"code":
|
|
2725
|
+
"code": 7011;
|
|
4235
2726
|
"name": "nonZeroRefundClaim";
|
|
4236
2727
|
"msg": "Cannot close non-zero relayer refund claim!";
|
|
4237
2728
|
},
|
|
4238
2729
|
{
|
|
4239
|
-
"code":
|
|
2730
|
+
"code": 7012;
|
|
4240
2731
|
"name": "invalidClaimInitializer";
|
|
4241
2732
|
"msg": "Invalid claim initializer!";
|
|
4242
2733
|
},
|
|
4243
2734
|
{
|
|
4244
|
-
"code":
|
|
2735
|
+
"code": 7013;
|
|
4245
2736
|
"name": "invalidRefundTokenAccount";
|
|
4246
2737
|
"msg": "Invalid refund token account!";
|
|
4247
2738
|
},
|
|
4248
2739
|
{
|
|
4249
|
-
"code":
|
|
2740
|
+
"code": 7014;
|
|
4250
2741
|
"name": "invalidProductionSeed";
|
|
4251
2742
|
"msg": "Seed must be 0 in production!";
|
|
4252
2743
|
},
|
|
4253
2744
|
{
|
|
4254
|
-
"code":
|
|
2745
|
+
"code": 7015;
|
|
4255
2746
|
"name": "invalidAtaCreationAccounts";
|
|
4256
2747
|
"msg": "Invalid remaining accounts for ATA creation!";
|
|
4257
2748
|
},
|
|
4258
2749
|
{
|
|
4259
|
-
"code":
|
|
2750
|
+
"code": 7016;
|
|
4260
2751
|
"name": "invalidDelegatePda";
|
|
4261
2752
|
"msg": "Invalid delegate PDA!";
|
|
4262
2753
|
},
|
|
4263
2754
|
{
|
|
4264
|
-
"code":
|
|
4265
|
-
"name": "
|
|
4266
|
-
"msg": "
|
|
2755
|
+
"code": 8000;
|
|
2756
|
+
"name": "invalidWireFormat";
|
|
2757
|
+
"msg": "Malformed Across V5 wire data!";
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
"code": 8001;
|
|
2761
|
+
"name": "invalidParamModificationSignature";
|
|
2762
|
+
"msg": "Invalid Across V5 parameter modification signature!";
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"code": 8002;
|
|
2766
|
+
"name": "missingAccount";
|
|
2767
|
+
"msg": "Missing required Across V5 account!";
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
"code": 8003;
|
|
2771
|
+
"name": "invalidDispatchAuthority";
|
|
2772
|
+
"msg": "Invalid Across V5 Gateway dispatch authority!";
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"code": 8004;
|
|
2776
|
+
"name": "invalidAccountMutability";
|
|
2777
|
+
"msg": "Across V5 account must be writable!";
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"code": 8005;
|
|
2781
|
+
"name": "resolvedInputAmountBelowCommitted";
|
|
2782
|
+
"msg": "Resolved Across V5 input amount is below the committed floor!";
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
"code": 8006;
|
|
2786
|
+
"name": "paramModificationNotAnImprovement";
|
|
2787
|
+
"msg": "Across V5 parameter modification is not an improvement!";
|
|
2788
|
+
},
|
|
2789
|
+
{
|
|
2790
|
+
"code": 8007;
|
|
2791
|
+
"name": "invalidAmountBips";
|
|
2792
|
+
"msg": "Across V5 input amount bips exceed the denominator!";
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"code": 8008;
|
|
2796
|
+
"name": "unsupportedMode";
|
|
2797
|
+
"msg": "Across V5 adapter mode is not enabled!";
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"code": 8009;
|
|
2801
|
+
"name": "invalidTokenAccount";
|
|
2802
|
+
"msg": "Invalid Across V5 token account!";
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
"code": 8010;
|
|
2806
|
+
"name": "unsupportedTokenExtension";
|
|
2807
|
+
"msg": "Unsupported Across V5 token extension!";
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"code": 8011;
|
|
2811
|
+
"name": "invalidFillPayer";
|
|
2812
|
+
"msg": "Invalid Across V5 fill payer!";
|
|
2813
|
+
},
|
|
2814
|
+
{
|
|
2815
|
+
"code": 8012;
|
|
2816
|
+
"name": "invalidFillStatusAccount";
|
|
2817
|
+
"msg": "Invalid Across V5 fill status account!";
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
"code": 8013;
|
|
2821
|
+
"name": "fillCommitmentMismatch";
|
|
2822
|
+
"msg": "Across V5 fill data does not match the committed input!";
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
"code": 8014;
|
|
2826
|
+
"name": "fillOutputAmountTooLow";
|
|
2827
|
+
"msg": "Across V5 fill output amount is below the committed floor!";
|
|
2828
|
+
},
|
|
2829
|
+
{
|
|
2830
|
+
"code": 9000;
|
|
2831
|
+
"name": "invalidSelector";
|
|
2832
|
+
"msg": "Invalid solidity selector";
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"code": 9001;
|
|
2836
|
+
"name": "invalidArgument";
|
|
2837
|
+
"msg": "Invalid solidity argument";
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
"code": 9002;
|
|
2841
|
+
"name": "invalidBool";
|
|
2842
|
+
"msg": "Invalid solidity bool argument";
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
"code": 9003;
|
|
2846
|
+
"name": "invalidAddress";
|
|
2847
|
+
"msg": "Invalid solidity address argument";
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
"code": 9004;
|
|
2851
|
+
"name": "invalidUint32";
|
|
2852
|
+
"msg": "Invalid solidity uint32 argument";
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
"code": 9005;
|
|
2856
|
+
"name": "invalidUint64";
|
|
2857
|
+
"msg": "Invalid solidity uint64 argument";
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
"code": 9006;
|
|
2861
|
+
"name": "unsupportedSelector";
|
|
2862
|
+
"msg": "Unsupported solidity selector";
|
|
4267
2863
|
}
|
|
4268
2864
|
];
|
|
4269
2865
|
"types": [
|
|
4270
2866
|
{
|
|
4271
|
-
"name": "
|
|
2867
|
+
"name": "acrossDepositInput";
|
|
2868
|
+
"docs": [
|
|
2869
|
+
"Path-committed source-deposit input, shaped like the EVM `AcrossDepositInput` compatibility surface."
|
|
2870
|
+
];
|
|
2871
|
+
"type": {
|
|
2872
|
+
"kind": "struct";
|
|
2873
|
+
"fields": [
|
|
2874
|
+
{
|
|
2875
|
+
"name": "depositParams";
|
|
2876
|
+
"type": {
|
|
2877
|
+
"defined": {
|
|
2878
|
+
"name": "acrossDepositParams";
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
"name": "dstStepId";
|
|
2884
|
+
"type": {
|
|
2885
|
+
"array": [
|
|
2886
|
+
"u8",
|
|
2887
|
+
32
|
|
2888
|
+
];
|
|
2889
|
+
};
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
"name": "inputAmountMode";
|
|
2893
|
+
"type": {
|
|
2894
|
+
"defined": {
|
|
2895
|
+
"name": "v5InputAmountMode";
|
|
2896
|
+
};
|
|
2897
|
+
};
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"name": "modificationRules";
|
|
2901
|
+
"type": {
|
|
2902
|
+
"defined": {
|
|
2903
|
+
"name": "v5DepositModificationRules";
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
];
|
|
2908
|
+
};
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
"name": "acrossDepositJitParams";
|
|
2912
|
+
"docs": [
|
|
2913
|
+
"JIT payload for Deposit mode. The signature is fixed `r[32] || s[32] || v[1]` rather than a length-prefixed vec."
|
|
2914
|
+
];
|
|
4272
2915
|
"type": {
|
|
4273
2916
|
"kind": "struct";
|
|
4274
2917
|
"fields": [
|
|
4275
2918
|
{
|
|
4276
|
-
"name": "
|
|
4277
|
-
"type":
|
|
2919
|
+
"name": "newOutputAmount";
|
|
2920
|
+
"type": {
|
|
2921
|
+
"array": [
|
|
2922
|
+
"u8",
|
|
2923
|
+
32
|
|
2924
|
+
];
|
|
2925
|
+
};
|
|
4278
2926
|
},
|
|
4279
2927
|
{
|
|
4280
|
-
"name": "
|
|
2928
|
+
"name": "newExclusiveRelayer";
|
|
4281
2929
|
"type": "pubkey";
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
"name": "signature";
|
|
2933
|
+
"type": {
|
|
2934
|
+
"array": [
|
|
2935
|
+
"u8",
|
|
2936
|
+
65
|
|
2937
|
+
];
|
|
2938
|
+
};
|
|
4282
2939
|
}
|
|
4283
2940
|
];
|
|
4284
2941
|
};
|
|
4285
2942
|
},
|
|
4286
2943
|
{
|
|
4287
|
-
"name": "
|
|
2944
|
+
"name": "acrossDepositParams";
|
|
2945
|
+
"docs": [
|
|
2946
|
+
"Canonical Across deposit fields. `output_amount` remains an EVM uint256 word; SVM-native amounts and non-EVM",
|
|
2947
|
+
"chain IDs are width-bounded to u64."
|
|
2948
|
+
];
|
|
4288
2949
|
"type": {
|
|
4289
2950
|
"kind": "struct";
|
|
4290
2951
|
"fields": [
|
|
4291
2952
|
{
|
|
4292
|
-
"name": "
|
|
2953
|
+
"name": "depositor";
|
|
4293
2954
|
"type": "pubkey";
|
|
4294
2955
|
},
|
|
4295
2956
|
{
|
|
4296
|
-
"name": "
|
|
2957
|
+
"name": "recipient";
|
|
2958
|
+
"type": "pubkey";
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"name": "inputToken";
|
|
2962
|
+
"type": "pubkey";
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
"name": "outputToken";
|
|
2966
|
+
"type": "pubkey";
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"name": "inputAmount";
|
|
4297
2970
|
"type": "u64";
|
|
4298
2971
|
},
|
|
4299
2972
|
{
|
|
4300
|
-
"name": "
|
|
2973
|
+
"name": "outputAmount";
|
|
2974
|
+
"type": {
|
|
2975
|
+
"array": [
|
|
2976
|
+
"u8",
|
|
2977
|
+
32
|
|
2978
|
+
];
|
|
2979
|
+
};
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"name": "destinationChainId";
|
|
2983
|
+
"type": "u64";
|
|
2984
|
+
},
|
|
2985
|
+
{
|
|
2986
|
+
"name": "exclusiveRelayer";
|
|
4301
2987
|
"type": "pubkey";
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
"name": "depositNonce";
|
|
2991
|
+
"type": "u64";
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
"name": "quoteTimestamp";
|
|
2995
|
+
"type": "u32";
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"name": "fillDeadline";
|
|
2999
|
+
"type": "u32";
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"name": "exclusivityParameter";
|
|
3003
|
+
"type": "u32";
|
|
4302
3004
|
}
|
|
4303
3005
|
];
|
|
4304
3006
|
};
|
|
4305
3007
|
},
|
|
4306
3008
|
{
|
|
4307
|
-
"name": "
|
|
3009
|
+
"name": "claimAccount";
|
|
4308
3010
|
"type": {
|
|
4309
3011
|
"kind": "struct";
|
|
4310
3012
|
"fields": [
|
|
4311
3013
|
{
|
|
4312
|
-
"name": "
|
|
4313
|
-
"type": "
|
|
3014
|
+
"name": "amount";
|
|
3015
|
+
"type": "u64";
|
|
3016
|
+
},
|
|
3017
|
+
{
|
|
3018
|
+
"name": "initializer";
|
|
3019
|
+
"type": "pubkey";
|
|
4314
3020
|
}
|
|
4315
3021
|
];
|
|
4316
3022
|
};
|
|
4317
3023
|
},
|
|
4318
3024
|
{
|
|
4319
|
-
"name": "
|
|
3025
|
+
"name": "claimedRelayerRefund";
|
|
4320
3026
|
"type": {
|
|
4321
3027
|
"kind": "struct";
|
|
4322
3028
|
"fields": [
|
|
4323
3029
|
{
|
|
4324
|
-
"name": "
|
|
4325
|
-
"type": "
|
|
3030
|
+
"name": "l2TokenAddress";
|
|
3031
|
+
"type": "pubkey";
|
|
4326
3032
|
},
|
|
4327
3033
|
{
|
|
4328
|
-
"name": "
|
|
4329
|
-
"type":
|
|
4330
|
-
"defined": {
|
|
4331
|
-
"name": "relayerRefundLeaf";
|
|
4332
|
-
};
|
|
4333
|
-
};
|
|
3034
|
+
"name": "claimAmount";
|
|
3035
|
+
"type": "u64";
|
|
4334
3036
|
},
|
|
4335
3037
|
{
|
|
4336
|
-
"name": "
|
|
4337
|
-
"type":
|
|
4338
|
-
"vec": {
|
|
4339
|
-
"array": [
|
|
4340
|
-
"u8",
|
|
4341
|
-
32
|
|
4342
|
-
];
|
|
4343
|
-
};
|
|
4344
|
-
};
|
|
3038
|
+
"name": "refundAddress";
|
|
3039
|
+
"type": "pubkey";
|
|
4345
3040
|
}
|
|
4346
3041
|
];
|
|
4347
3042
|
};
|
|
4348
3043
|
},
|
|
4349
3044
|
{
|
|
4350
|
-
"name": "
|
|
3045
|
+
"name": "emergencyDeletedRootBundle";
|
|
4351
3046
|
"type": {
|
|
4352
3047
|
"kind": "struct";
|
|
4353
3048
|
"fields": [
|
|
4354
|
-
{
|
|
4355
|
-
"name": "slowFillLeaf";
|
|
4356
|
-
"type": {
|
|
4357
|
-
"defined": {
|
|
4358
|
-
"name": "slowFill";
|
|
4359
|
-
};
|
|
4360
|
-
};
|
|
4361
|
-
},
|
|
4362
3049
|
{
|
|
4363
3050
|
"name": "rootBundleId";
|
|
4364
3051
|
"type": "u32";
|
|
4365
|
-
},
|
|
4366
|
-
{
|
|
4367
|
-
"name": "proof";
|
|
4368
|
-
"type": {
|
|
4369
|
-
"vec": {
|
|
4370
|
-
"array": [
|
|
4371
|
-
"u8",
|
|
4372
|
-
32
|
|
4373
|
-
];
|
|
4374
|
-
};
|
|
4375
|
-
};
|
|
4376
3052
|
}
|
|
4377
3053
|
];
|
|
4378
3054
|
};
|
|
@@ -4426,83 +3102,32 @@ export type SvmSpoke = {
|
|
|
4426
3102
|
};
|
|
4427
3103
|
},
|
|
4428
3104
|
{
|
|
4429
|
-
"name": "
|
|
3105
|
+
"name": "executeRelayerRefundLeafParams";
|
|
4430
3106
|
"type": {
|
|
4431
3107
|
"kind": "struct";
|
|
4432
3108
|
"fields": [
|
|
4433
3109
|
{
|
|
4434
|
-
"name": "
|
|
3110
|
+
"name": "rootBundleId";
|
|
3111
|
+
"type": "u32";
|
|
3112
|
+
},
|
|
3113
|
+
{
|
|
3114
|
+
"name": "relayerRefundLeaf";
|
|
4435
3115
|
"type": {
|
|
4436
3116
|
"defined": {
|
|
4437
|
-
"name": "
|
|
3117
|
+
"name": "relayerRefundLeaf";
|
|
4438
3118
|
};
|
|
4439
3119
|
};
|
|
4440
3120
|
},
|
|
4441
3121
|
{
|
|
4442
|
-
"name": "
|
|
4443
|
-
"type": "u64";
|
|
4444
|
-
},
|
|
4445
|
-
{
|
|
4446
|
-
"name": "repaymentAddress";
|
|
4447
|
-
"type": "pubkey";
|
|
4448
|
-
}
|
|
4449
|
-
];
|
|
4450
|
-
};
|
|
4451
|
-
},
|
|
4452
|
-
{
|
|
4453
|
-
"name": "fillStatus";
|
|
4454
|
-
"type": {
|
|
4455
|
-
"kind": "enum";
|
|
4456
|
-
"variants": [
|
|
4457
|
-
{
|
|
4458
|
-
"name": "unfilled";
|
|
4459
|
-
},
|
|
4460
|
-
{
|
|
4461
|
-
"name": "requestedSlowFill";
|
|
4462
|
-
},
|
|
4463
|
-
{
|
|
4464
|
-
"name": "filled";
|
|
4465
|
-
}
|
|
4466
|
-
];
|
|
4467
|
-
};
|
|
4468
|
-
},
|
|
4469
|
-
{
|
|
4470
|
-
"name": "fillStatusAccount";
|
|
4471
|
-
"type": {
|
|
4472
|
-
"kind": "struct";
|
|
4473
|
-
"fields": [
|
|
4474
|
-
{
|
|
4475
|
-
"name": "status";
|
|
3122
|
+
"name": "proof";
|
|
4476
3123
|
"type": {
|
|
4477
|
-
"
|
|
4478
|
-
"
|
|
3124
|
+
"vec": {
|
|
3125
|
+
"array": [
|
|
3126
|
+
"u8",
|
|
3127
|
+
32
|
|
3128
|
+
];
|
|
4479
3129
|
};
|
|
4480
3130
|
};
|
|
4481
|
-
},
|
|
4482
|
-
{
|
|
4483
|
-
"name": "relayer";
|
|
4484
|
-
"type": "pubkey";
|
|
4485
|
-
},
|
|
4486
|
-
{
|
|
4487
|
-
"name": "fillDeadline";
|
|
4488
|
-
"type": "u32";
|
|
4489
|
-
}
|
|
4490
|
-
];
|
|
4491
|
-
};
|
|
4492
|
-
},
|
|
4493
|
-
{
|
|
4494
|
-
"name": "fillType";
|
|
4495
|
-
"type": {
|
|
4496
|
-
"kind": "enum";
|
|
4497
|
-
"variants": [
|
|
4498
|
-
{
|
|
4499
|
-
"name": "fastFill";
|
|
4500
|
-
},
|
|
4501
|
-
{
|
|
4502
|
-
"name": "replacedSlowFill";
|
|
4503
|
-
},
|
|
4504
|
-
{
|
|
4505
|
-
"name": "slowFill";
|
|
4506
3131
|
}
|
|
4507
3132
|
];
|
|
4508
3133
|
};
|
|
@@ -4563,33 +3188,91 @@ export type SvmSpoke = {
|
|
|
4563
3188
|
"type": "pubkey";
|
|
4564
3189
|
},
|
|
4565
3190
|
{
|
|
4566
|
-
"name": "relayer";
|
|
3191
|
+
"name": "relayer";
|
|
3192
|
+
"type": "pubkey";
|
|
3193
|
+
},
|
|
3194
|
+
{
|
|
3195
|
+
"name": "depositor";
|
|
3196
|
+
"type": "pubkey";
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
"name": "recipient";
|
|
3200
|
+
"type": "pubkey";
|
|
3201
|
+
},
|
|
3202
|
+
{
|
|
3203
|
+
"name": "messageHash";
|
|
3204
|
+
"type": {
|
|
3205
|
+
"array": [
|
|
3206
|
+
"u8",
|
|
3207
|
+
32
|
|
3208
|
+
];
|
|
3209
|
+
};
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
"name": "relayExecutionInfo";
|
|
3213
|
+
"type": {
|
|
3214
|
+
"defined": {
|
|
3215
|
+
"name": "relayExecutionEventInfo";
|
|
3216
|
+
};
|
|
3217
|
+
};
|
|
3218
|
+
}
|
|
3219
|
+
];
|
|
3220
|
+
};
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
"name": "fillStatus";
|
|
3224
|
+
"type": {
|
|
3225
|
+
"kind": "enum";
|
|
3226
|
+
"variants": [
|
|
3227
|
+
{
|
|
3228
|
+
"name": "unfilled";
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"name": "requestedSlowFill";
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
"name": "filled";
|
|
3235
|
+
}
|
|
3236
|
+
];
|
|
3237
|
+
};
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
"name": "fillStatusAccount";
|
|
3241
|
+
"type": {
|
|
3242
|
+
"kind": "struct";
|
|
3243
|
+
"fields": [
|
|
3244
|
+
{
|
|
3245
|
+
"name": "status";
|
|
3246
|
+
"type": {
|
|
3247
|
+
"defined": {
|
|
3248
|
+
"name": "fillStatus";
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
},
|
|
3252
|
+
{
|
|
3253
|
+
"name": "rentRecipient";
|
|
4567
3254
|
"type": "pubkey";
|
|
4568
3255
|
},
|
|
4569
3256
|
{
|
|
4570
|
-
"name": "
|
|
4571
|
-
"type": "
|
|
4572
|
-
}
|
|
3257
|
+
"name": "fillDeadline";
|
|
3258
|
+
"type": "u32";
|
|
3259
|
+
}
|
|
3260
|
+
];
|
|
3261
|
+
};
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
"name": "fillType";
|
|
3265
|
+
"type": {
|
|
3266
|
+
"kind": "enum";
|
|
3267
|
+
"variants": [
|
|
4573
3268
|
{
|
|
4574
|
-
"name": "
|
|
4575
|
-
"type": "pubkey";
|
|
3269
|
+
"name": "fastFill";
|
|
4576
3270
|
},
|
|
4577
3271
|
{
|
|
4578
|
-
"name": "
|
|
4579
|
-
"type": {
|
|
4580
|
-
"array": [
|
|
4581
|
-
"u8",
|
|
4582
|
-
32
|
|
4583
|
-
];
|
|
4584
|
-
};
|
|
3272
|
+
"name": "replacedSlowFill";
|
|
4585
3273
|
},
|
|
4586
3274
|
{
|
|
4587
|
-
"name": "
|
|
4588
|
-
"type": {
|
|
4589
|
-
"defined": {
|
|
4590
|
-
"name": "relayExecutionEventInfo";
|
|
4591
|
-
};
|
|
4592
|
-
};
|
|
3275
|
+
"name": "slowFill";
|
|
4593
3276
|
}
|
|
4594
3277
|
];
|
|
4595
3278
|
};
|
|
@@ -4664,6 +3347,42 @@ export type SvmSpoke = {
|
|
|
4664
3347
|
];
|
|
4665
3348
|
};
|
|
4666
3349
|
},
|
|
3350
|
+
{
|
|
3351
|
+
"name": "gatewayContextV1";
|
|
3352
|
+
"docs": [
|
|
3353
|
+
"Version 1 of the Gateway-attested context prepended to every adapter call.",
|
|
3354
|
+
"",
|
|
3355
|
+
"Field order and widths are part of the Gateway dispatch ABI. A context-layout change requires a new Gateway",
|
|
3356
|
+
"dispatch ABI and adapter entrypoint rather than a new [`V5AdapterInput`] variant."
|
|
3357
|
+
];
|
|
3358
|
+
"type": {
|
|
3359
|
+
"kind": "struct";
|
|
3360
|
+
"fields": [
|
|
3361
|
+
{
|
|
3362
|
+
"name": "stepId";
|
|
3363
|
+
"type": {
|
|
3364
|
+
"array": [
|
|
3365
|
+
"u8",
|
|
3366
|
+
32
|
|
3367
|
+
];
|
|
3368
|
+
};
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
"name": "pathId";
|
|
3372
|
+
"type": {
|
|
3373
|
+
"array": [
|
|
3374
|
+
"u8",
|
|
3375
|
+
32
|
|
3376
|
+
];
|
|
3377
|
+
};
|
|
3378
|
+
},
|
|
3379
|
+
{
|
|
3380
|
+
"name": "submitter";
|
|
3381
|
+
"type": "pubkey";
|
|
3382
|
+
}
|
|
3383
|
+
];
|
|
3384
|
+
};
|
|
3385
|
+
},
|
|
4667
3386
|
{
|
|
4668
3387
|
"name": "handleReceiveMessageParams";
|
|
4669
3388
|
"type": {
|
|
@@ -4782,39 +3501,6 @@ export type SvmSpoke = {
|
|
|
4782
3501
|
];
|
|
4783
3502
|
};
|
|
4784
3503
|
},
|
|
4785
|
-
{
|
|
4786
|
-
"name": "relayExecutionEventInfo";
|
|
4787
|
-
"type": {
|
|
4788
|
-
"kind": "struct";
|
|
4789
|
-
"fields": [
|
|
4790
|
-
{
|
|
4791
|
-
"name": "updatedRecipient";
|
|
4792
|
-
"type": "pubkey";
|
|
4793
|
-
},
|
|
4794
|
-
{
|
|
4795
|
-
"name": "updatedMessageHash";
|
|
4796
|
-
"type": {
|
|
4797
|
-
"array": [
|
|
4798
|
-
"u8",
|
|
4799
|
-
32
|
|
4800
|
-
];
|
|
4801
|
-
};
|
|
4802
|
-
},
|
|
4803
|
-
{
|
|
4804
|
-
"name": "updatedOutputAmount";
|
|
4805
|
-
"type": "u64";
|
|
4806
|
-
},
|
|
4807
|
-
{
|
|
4808
|
-
"name": "fillType";
|
|
4809
|
-
"type": {
|
|
4810
|
-
"defined": {
|
|
4811
|
-
"name": "fillType";
|
|
4812
|
-
};
|
|
4813
|
-
};
|
|
4814
|
-
}
|
|
4815
|
-
];
|
|
4816
|
-
};
|
|
4817
|
-
},
|
|
4818
3504
|
{
|
|
4819
3505
|
"name": "relayedRootBundle";
|
|
4820
3506
|
"type": {
|
|
@@ -4882,15 +3568,32 @@ export type SvmSpoke = {
|
|
|
4882
3568
|
};
|
|
4883
3569
|
},
|
|
4884
3570
|
{
|
|
4885
|
-
"name": "
|
|
3571
|
+
"name": "relayExecutionEventInfo";
|
|
4886
3572
|
"type": {
|
|
4887
3573
|
"kind": "struct";
|
|
4888
3574
|
"fields": [
|
|
4889
3575
|
{
|
|
4890
|
-
"name": "
|
|
3576
|
+
"name": "updatedRecipient";
|
|
3577
|
+
"type": "pubkey";
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
"name": "updatedMessageHash";
|
|
3581
|
+
"type": {
|
|
3582
|
+
"array": [
|
|
3583
|
+
"u8",
|
|
3584
|
+
32
|
|
3585
|
+
];
|
|
3586
|
+
};
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"name": "updatedOutputAmount";
|
|
3590
|
+
"type": "u64";
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"name": "fillType";
|
|
4891
3594
|
"type": {
|
|
4892
3595
|
"defined": {
|
|
4893
|
-
"name": "
|
|
3596
|
+
"name": "fillType";
|
|
4894
3597
|
};
|
|
4895
3598
|
};
|
|
4896
3599
|
}
|
|
@@ -5010,30 +3713,6 @@ export type SvmSpoke = {
|
|
|
5010
3713
|
];
|
|
5011
3714
|
};
|
|
5012
3715
|
},
|
|
5013
|
-
{
|
|
5014
|
-
"name": "slowFill";
|
|
5015
|
-
"type": {
|
|
5016
|
-
"kind": "struct";
|
|
5017
|
-
"fields": [
|
|
5018
|
-
{
|
|
5019
|
-
"name": "relayData";
|
|
5020
|
-
"type": {
|
|
5021
|
-
"defined": {
|
|
5022
|
-
"name": "relayData";
|
|
5023
|
-
};
|
|
5024
|
-
};
|
|
5025
|
-
},
|
|
5026
|
-
{
|
|
5027
|
-
"name": "chainId";
|
|
5028
|
-
"type": "u64";
|
|
5029
|
-
},
|
|
5030
|
-
{
|
|
5031
|
-
"name": "updatedOutputAmount";
|
|
5032
|
-
"type": "u64";
|
|
5033
|
-
}
|
|
5034
|
-
];
|
|
5035
|
-
};
|
|
5036
|
-
},
|
|
5037
3716
|
{
|
|
5038
3717
|
"name": "state";
|
|
5039
3718
|
"type": {
|
|
@@ -5101,6 +3780,157 @@ export type SvmSpoke = {
|
|
|
5101
3780
|
}
|
|
5102
3781
|
];
|
|
5103
3782
|
};
|
|
3783
|
+
},
|
|
3784
|
+
{
|
|
3785
|
+
"name": "v5AdapterInput";
|
|
3786
|
+
"docs": [
|
|
3787
|
+
"Committed input for an Across V5 adapter call.",
|
|
3788
|
+
"",
|
|
3789
|
+
"`V5` is the Across protocol generation; each variant's `V1` is its SVM wire-schema revision. Borsh discriminants",
|
|
3790
|
+
"are frozen as `DepositV1 = 0` and `FillV1 = 1`. Append a new versioned variant when one payload changes; never",
|
|
3791
|
+
"reorder existing variants. A safe old variant may remain accepted while in-flight inputs drain, while an unsafe",
|
|
3792
|
+
"variant can be rejected immediately."
|
|
3793
|
+
];
|
|
3794
|
+
"type": {
|
|
3795
|
+
"kind": "enum";
|
|
3796
|
+
"variants": [
|
|
3797
|
+
{
|
|
3798
|
+
"name": "depositV1";
|
|
3799
|
+
"fields": [
|
|
3800
|
+
{
|
|
3801
|
+
"defined": {
|
|
3802
|
+
"name": "acrossDepositInput";
|
|
3803
|
+
};
|
|
3804
|
+
}
|
|
3805
|
+
];
|
|
3806
|
+
},
|
|
3807
|
+
{
|
|
3808
|
+
"name": "fillV1";
|
|
3809
|
+
"fields": [
|
|
3810
|
+
{
|
|
3811
|
+
"defined": {
|
|
3812
|
+
"name": "v5FillInput";
|
|
3813
|
+
};
|
|
3814
|
+
}
|
|
3815
|
+
];
|
|
3816
|
+
}
|
|
3817
|
+
];
|
|
3818
|
+
};
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
"name": "v5DepositModificationRules";
|
|
3822
|
+
"type": {
|
|
3823
|
+
"kind": "struct";
|
|
3824
|
+
"fields": [
|
|
3825
|
+
{
|
|
3826
|
+
"name": "authority";
|
|
3827
|
+
"type": {
|
|
3828
|
+
"array": [
|
|
3829
|
+
"u8",
|
|
3830
|
+
20
|
|
3831
|
+
];
|
|
3832
|
+
};
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
"name": "allowOutputAmount";
|
|
3836
|
+
"type": "bool";
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
"name": "allowExclusiveRelayer";
|
|
3840
|
+
"type": "bool";
|
|
3841
|
+
}
|
|
3842
|
+
];
|
|
3843
|
+
};
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
"name": "v5FillFloatWithdrawn";
|
|
3847
|
+
"type": {
|
|
3848
|
+
"kind": "struct";
|
|
3849
|
+
"fields": [
|
|
3850
|
+
{
|
|
3851
|
+
"name": "submitter";
|
|
3852
|
+
"type": "pubkey";
|
|
3853
|
+
},
|
|
3854
|
+
{
|
|
3855
|
+
"name": "amount";
|
|
3856
|
+
"type": "u64";
|
|
3857
|
+
}
|
|
3858
|
+
];
|
|
3859
|
+
};
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
"name": "v5FillInput";
|
|
3863
|
+
"docs": [
|
|
3864
|
+
"Destination acceptance bounds. Unlike the EVM executor-mode input, the SVM adapter omits a callback message",
|
|
3865
|
+
"because V5 adapter fills do not execute recipient callbacks."
|
|
3866
|
+
];
|
|
3867
|
+
"type": {
|
|
3868
|
+
"kind": "struct";
|
|
3869
|
+
"fields": [
|
|
3870
|
+
{
|
|
3871
|
+
"name": "recipient";
|
|
3872
|
+
"type": "pubkey";
|
|
3873
|
+
},
|
|
3874
|
+
{
|
|
3875
|
+
"name": "outputToken";
|
|
3876
|
+
"type": "pubkey";
|
|
3877
|
+
},
|
|
3878
|
+
{
|
|
3879
|
+
"name": "minOutputAmount";
|
|
3880
|
+
"type": "u64";
|
|
3881
|
+
}
|
|
3882
|
+
];
|
|
3883
|
+
};
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
"name": "v5FillJit";
|
|
3887
|
+
"type": {
|
|
3888
|
+
"kind": "struct";
|
|
3889
|
+
"fields": [
|
|
3890
|
+
{
|
|
3891
|
+
"name": "relayData";
|
|
3892
|
+
"type": {
|
|
3893
|
+
"defined": {
|
|
3894
|
+
"name": "relayData";
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
},
|
|
3898
|
+
{
|
|
3899
|
+
"name": "repaymentChainId";
|
|
3900
|
+
"type": "u64";
|
|
3901
|
+
},
|
|
3902
|
+
{
|
|
3903
|
+
"name": "repaymentAddress";
|
|
3904
|
+
"type": "pubkey";
|
|
3905
|
+
}
|
|
3906
|
+
];
|
|
3907
|
+
};
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"name": "v5InputAmountMode";
|
|
3911
|
+
"docs": [
|
|
3912
|
+
"Literal uses the committed `input_amount`. Balance-relative mode resolves `bips` of the canonical Gateway input",
|
|
3913
|
+
"vault's live token amount, rounded down, and later enforces the committed amount as a floor. Gateway vaults are",
|
|
3914
|
+
"shared per mint, not isolated per execution, so the continuing tape must leave no residual balance; Gateway does",
|
|
3915
|
+
"not currently enforce that net-zero settlement invariant."
|
|
3916
|
+
];
|
|
3917
|
+
"type": {
|
|
3918
|
+
"kind": "enum";
|
|
3919
|
+
"variants": [
|
|
3920
|
+
{
|
|
3921
|
+
"name": "literal";
|
|
3922
|
+
},
|
|
3923
|
+
{
|
|
3924
|
+
"name": "inputVaultBalance";
|
|
3925
|
+
"fields": [
|
|
3926
|
+
{
|
|
3927
|
+
"name": "bips";
|
|
3928
|
+
"type": "u16";
|
|
3929
|
+
}
|
|
3930
|
+
];
|
|
3931
|
+
}
|
|
3932
|
+
];
|
|
3933
|
+
};
|
|
5104
3934
|
}
|
|
5105
3935
|
];
|
|
5106
3936
|
};
|