@across-protocol/contracts 4.1.7 → 4.1.8

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.
@@ -4525,93 +4525,83 @@
4525
4525
  "errors": [
4526
4526
  {
4527
4527
  "code": 6000,
4528
- "name": "NotOwner",
4529
- "msg": "Only the owner can call this function!"
4528
+ "name": "InvalidQuoteTimestamp",
4529
+ "msg": "Invalid quote timestamp!"
4530
4530
  },
4531
4531
  {
4532
4532
  "code": 6001,
4533
- "name": "InvalidRelayHash",
4534
- "msg": "Invalid relay hash!"
4533
+ "name": "InvalidFillDeadline",
4534
+ "msg": "Invalid fill deadline!"
4535
4535
  },
4536
4536
  {
4537
4537
  "code": 6002,
4538
- "name": "CanOnlyCloseFillStatusPdaIfFillDeadlinePassed",
4539
- "msg": "The fill deadline has not passed!"
4538
+ "name": "NotExclusiveRelayer",
4539
+ "msg": "Caller is not the exclusive relayer and exclusivity deadline has not passed!"
4540
4540
  },
4541
4541
  {
4542
4542
  "code": 6003,
4543
- "name": "NotRelayer",
4544
- "msg": "The caller is not the relayer!"
4543
+ "name": "NoSlowFillsInExclusivityWindow",
4544
+ "msg": "The Deposit is still within the exclusivity window!"
4545
4545
  },
4546
4546
  {
4547
4547
  "code": 6004,
4548
- "name": "CannotSetCurrentTime",
4549
- "msg": "Cannot set time if not in test mode!"
4548
+ "name": "RelayFilled",
4549
+ "msg": "The relay has already been filled!"
4550
4550
  },
4551
4551
  {
4552
4552
  "code": 6005,
4553
- "name": "InvalidRemoteDomain",
4554
- "msg": "Invalid remote domain!"
4553
+ "name": "InvalidSlowFillRequest",
4554
+ "msg": "Slow fill requires status of Unfilled!"
4555
4555
  },
4556
4556
  {
4557
4557
  "code": 6006,
4558
- "name": "InvalidRemoteSender",
4559
- "msg": "Invalid remote sender!"
4558
+ "name": "ExpiredFillDeadline",
4559
+ "msg": "The fill deadline has passed!"
4560
4560
  },
4561
4561
  {
4562
4562
  "code": 6007,
4563
- "name": "InvalidMint",
4564
- "msg": "Invalid mint!"
4563
+ "name": "InvalidMerkleProof",
4564
+ "msg": "Invalid Merkle proof!"
4565
4565
  },
4566
4566
  {
4567
4567
  "code": 6008,
4568
- "name": "ExceededPendingBridgeAmount",
4569
- "msg": "Exceeded pending bridge amount to HubPool!"
4568
+ "name": "InvalidChainId",
4569
+ "msg": "Invalid chain id!"
4570
4570
  },
4571
4571
  {
4572
4572
  "code": 6009,
4573
- "name": "ParamsWriteOverflow",
4574
- "msg": "Overflow writing to parameters account!"
4573
+ "name": "InvalidMerkleLeaf",
4574
+ "msg": "Invalid Merkle leaf!"
4575
4575
  },
4576
4576
  {
4577
4577
  "code": 6010,
4578
- "name": "InvalidRefund",
4579
- "msg": "Invalid refund address!"
4578
+ "name": "ClaimedMerkleLeaf",
4579
+ "msg": "Leaf already claimed!"
4580
4580
  },
4581
4581
  {
4582
4582
  "code": 6011,
4583
- "name": "ZeroRefundClaim",
4584
- "msg": "Zero relayer refund claim!"
4583
+ "name": "DepositsArePaused",
4584
+ "msg": "Deposits are currently paused!"
4585
4585
  },
4586
4586
  {
4587
4587
  "code": 6012,
4588
- "name": "NonZeroRefundClaim",
4589
- "msg": "Cannot close non-zero relayer refund claim!"
4588
+ "name": "FillsArePaused",
4589
+ "msg": "Fills are currently paused!"
4590
4590
  },
4591
4591
  {
4592
4592
  "code": 6013,
4593
- "name": "InvalidClaimInitializer",
4594
- "msg": "Invalid claim initializer!"
4593
+ "name": "InsufficientSpokePoolBalanceToExecuteLeaf",
4594
+ "msg": "Insufficient spoke pool balance to execute leaf"
4595
4595
  },
4596
4596
  {
4597
4597
  "code": 6014,
4598
- "name": "InvalidRefundTokenAccount",
4599
- "msg": "Invalid refund token account!"
4598
+ "name": "InvalidExclusiveRelayer",
4599
+ "msg": "Invalid exclusive relayer!"
4600
4600
  },
4601
4601
  {
4602
4602
  "code": 6015,
4603
- "name": "InvalidProductionSeed",
4604
- "msg": "Seed must be 0 in production!"
4605
- },
4606
- {
4607
- "code": 6016,
4608
- "name": "InvalidATACreationAccounts",
4609
- "msg": "Invalid remaining accounts for ATA creation!"
4610
- },
4611
- {
4612
- "code": 6017,
4613
- "name": "InvalidDelegatePda",
4614
- "msg": "Invalid delegate PDA!"
4603
+ "name": "InvalidOutputToken",
4604
+ "msg": "Invalid output token!"
4615
4605
  }
4616
4606
  ],
4617
4607
  "types": [
@@ -4531,93 +4531,83 @@ export type SvmSpoke = {
4531
4531
  "errors": [
4532
4532
  {
4533
4533
  "code": 6000;
4534
- "name": "notOwner";
4535
- "msg": "Only the owner can call this function!";
4534
+ "name": "invalidQuoteTimestamp";
4535
+ "msg": "Invalid quote timestamp!";
4536
4536
  },
4537
4537
  {
4538
4538
  "code": 6001;
4539
- "name": "invalidRelayHash";
4540
- "msg": "Invalid relay hash!";
4539
+ "name": "invalidFillDeadline";
4540
+ "msg": "Invalid fill deadline!";
4541
4541
  },
4542
4542
  {
4543
4543
  "code": 6002;
4544
- "name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
4545
- "msg": "The fill deadline has not passed!";
4544
+ "name": "notExclusiveRelayer";
4545
+ "msg": "Caller is not the exclusive relayer and exclusivity deadline has not passed!";
4546
4546
  },
4547
4547
  {
4548
4548
  "code": 6003;
4549
- "name": "notRelayer";
4550
- "msg": "The caller is not the relayer!";
4549
+ "name": "noSlowFillsInExclusivityWindow";
4550
+ "msg": "The Deposit is still within the exclusivity window!";
4551
4551
  },
4552
4552
  {
4553
4553
  "code": 6004;
4554
- "name": "cannotSetCurrentTime";
4555
- "msg": "Cannot set time if not in test mode!";
4554
+ "name": "relayFilled";
4555
+ "msg": "The relay has already been filled!";
4556
4556
  },
4557
4557
  {
4558
4558
  "code": 6005;
4559
- "name": "invalidRemoteDomain";
4560
- "msg": "Invalid remote domain!";
4559
+ "name": "invalidSlowFillRequest";
4560
+ "msg": "Slow fill requires status of Unfilled!";
4561
4561
  },
4562
4562
  {
4563
4563
  "code": 6006;
4564
- "name": "invalidRemoteSender";
4565
- "msg": "Invalid remote sender!";
4564
+ "name": "expiredFillDeadline";
4565
+ "msg": "The fill deadline has passed!";
4566
4566
  },
4567
4567
  {
4568
4568
  "code": 6007;
4569
- "name": "invalidMint";
4570
- "msg": "Invalid mint!";
4569
+ "name": "invalidMerkleProof";
4570
+ "msg": "Invalid Merkle proof!";
4571
4571
  },
4572
4572
  {
4573
4573
  "code": 6008;
4574
- "name": "exceededPendingBridgeAmount";
4575
- "msg": "Exceeded pending bridge amount to HubPool!";
4574
+ "name": "invalidChainId";
4575
+ "msg": "Invalid chain id!";
4576
4576
  },
4577
4577
  {
4578
4578
  "code": 6009;
4579
- "name": "paramsWriteOverflow";
4580
- "msg": "Overflow writing to parameters account!";
4579
+ "name": "invalidMerkleLeaf";
4580
+ "msg": "Invalid Merkle leaf!";
4581
4581
  },
4582
4582
  {
4583
4583
  "code": 6010;
4584
- "name": "invalidRefund";
4585
- "msg": "Invalid refund address!";
4584
+ "name": "claimedMerkleLeaf";
4585
+ "msg": "Leaf already claimed!";
4586
4586
  },
4587
4587
  {
4588
4588
  "code": 6011;
4589
- "name": "zeroRefundClaim";
4590
- "msg": "Zero relayer refund claim!";
4589
+ "name": "depositsArePaused";
4590
+ "msg": "Deposits are currently paused!";
4591
4591
  },
4592
4592
  {
4593
4593
  "code": 6012;
4594
- "name": "nonZeroRefundClaim";
4595
- "msg": "Cannot close non-zero relayer refund claim!";
4594
+ "name": "fillsArePaused";
4595
+ "msg": "Fills are currently paused!";
4596
4596
  },
4597
4597
  {
4598
4598
  "code": 6013;
4599
- "name": "invalidClaimInitializer";
4600
- "msg": "Invalid claim initializer!";
4599
+ "name": "insufficientSpokePoolBalanceToExecuteLeaf";
4600
+ "msg": "Insufficient spoke pool balance to execute leaf";
4601
4601
  },
4602
4602
  {
4603
4603
  "code": 6014;
4604
- "name": "invalidRefundTokenAccount";
4605
- "msg": "Invalid refund token account!";
4604
+ "name": "invalidExclusiveRelayer";
4605
+ "msg": "Invalid exclusive relayer!";
4606
4606
  },
4607
4607
  {
4608
4608
  "code": 6015;
4609
- "name": "invalidProductionSeed";
4610
- "msg": "Seed must be 0 in production!";
4611
- },
4612
- {
4613
- "code": 6016;
4614
- "name": "invalidAtaCreationAccounts";
4615
- "msg": "Invalid remaining accounts for ATA creation!";
4616
- },
4617
- {
4618
- "code": 6017;
4619
- "name": "invalidDelegatePda";
4620
- "msg": "Invalid delegate PDA!";
4609
+ "name": "invalidOutputToken";
4610
+ "msg": "Invalid output token!";
4621
4611
  }
4622
4612
  ];
4623
4613
  "types": [
@@ -6,43 +6,39 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
9
- /** NotOwner: Only the owner can call this function! */
10
- export declare const SVM_SPOKE_ERROR__NOT_OWNER = 6000;
11
- /** InvalidRelayHash: Invalid relay hash! */
12
- export declare const SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 6001;
13
- /** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
14
- export declare const SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 6002;
15
- /** NotRelayer: The caller is not the relayer! */
16
- export declare const SVM_SPOKE_ERROR__NOT_RELAYER = 6003;
17
- /** CannotSetCurrentTime: Cannot set time if not in test mode! */
18
- export declare const SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 6004;
19
- /** InvalidRemoteDomain: Invalid remote domain! */
20
- export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 6005;
21
- /** InvalidRemoteSender: Invalid remote sender! */
22
- export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 6006;
23
- /** InvalidMint: Invalid mint! */
24
- export declare const SVM_SPOKE_ERROR__INVALID_MINT = 6007;
25
- /** ExceededPendingBridgeAmount: Exceeded pending bridge amount to HubPool! */
26
- export declare const SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = 6008;
27
- /** ParamsWriteOverflow: Overflow writing to parameters account! */
28
- export declare const SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 6009;
29
- /** InvalidRefund: Invalid refund address! */
30
- export declare const SVM_SPOKE_ERROR__INVALID_REFUND = 6010;
31
- /** ZeroRefundClaim: Zero relayer refund claim! */
32
- export declare const SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 6011;
33
- /** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
34
- export declare const SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 6012;
35
- /** InvalidClaimInitializer: Invalid claim initializer! */
36
- export declare const SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 6013;
37
- /** InvalidRefundTokenAccount: Invalid refund token account! */
38
- export declare const SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 6014;
39
- /** InvalidProductionSeed: Seed must be 0 in production! */
40
- export declare const SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 6015;
41
- /** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
42
- export declare const SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 6016;
43
- /** InvalidDelegatePda: Invalid delegate PDA! */
44
- export declare const SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 6017;
45
- export type SvmSpokeError = typeof SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME | typeof SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED | typeof SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT | typeof SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS | typeof SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER | typeof SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA | typeof SVM_SPOKE_ERROR__INVALID_MINT | typeof SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED | typeof SVM_SPOKE_ERROR__INVALID_REFUND | typeof SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_RELAY_HASH | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER | typeof SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM | typeof SVM_SPOKE_ERROR__NOT_OWNER | typeof SVM_SPOKE_ERROR__NOT_RELAYER | typeof SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW | typeof SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM;
9
+ /** InvalidQuoteTimestamp: Invalid quote timestamp! */
10
+ export declare const SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP = 6000;
11
+ /** InvalidFillDeadline: Invalid fill deadline! */
12
+ export declare const SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE = 6001;
13
+ /** NotExclusiveRelayer: Caller is not the exclusive relayer and exclusivity deadline has not passed! */
14
+ export declare const SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER = 6002;
15
+ /** NoSlowFillsInExclusivityWindow: The Deposit is still within the exclusivity window! */
16
+ export declare const SVM_SPOKE_ERROR__NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW = 6003;
17
+ /** RelayFilled: The relay has already been filled! */
18
+ export declare const SVM_SPOKE_ERROR__RELAY_FILLED = 6004;
19
+ /** InvalidSlowFillRequest: Slow fill requires status of Unfilled! */
20
+ export declare const SVM_SPOKE_ERROR__INVALID_SLOW_FILL_REQUEST = 6005;
21
+ /** ExpiredFillDeadline: The fill deadline has passed! */
22
+ export declare const SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE = 6006;
23
+ /** InvalidMerkleProof: Invalid Merkle proof! */
24
+ export declare const SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF = 6007;
25
+ /** InvalidChainId: Invalid chain id! */
26
+ export declare const SVM_SPOKE_ERROR__INVALID_CHAIN_ID = 6008;
27
+ /** InvalidMerkleLeaf: Invalid Merkle leaf! */
28
+ export declare const SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF = 6009;
29
+ /** ClaimedMerkleLeaf: Leaf already claimed! */
30
+ export declare const SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF = 6010;
31
+ /** DepositsArePaused: Deposits are currently paused! */
32
+ export declare const SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED = 6011;
33
+ /** FillsArePaused: Fills are currently paused! */
34
+ export declare const SVM_SPOKE_ERROR__FILLS_ARE_PAUSED = 6012;
35
+ /** InsufficientSpokePoolBalanceToExecuteLeaf: Insufficient spoke pool balance to execute leaf */
36
+ export declare const SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF = 6013;
37
+ /** InvalidExclusiveRelayer: Invalid exclusive relayer! */
38
+ export declare const SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER = 6014;
39
+ /** InvalidOutputToken: Invalid output token! */
40
+ export declare const SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN = 6015;
41
+ export type SvmSpokeError = typeof SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF | typeof SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED | typeof SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE | typeof SVM_SPOKE_ERROR__FILLS_ARE_PAUSED | typeof SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF | typeof SVM_SPOKE_ERROR__INVALID_CHAIN_ID | typeof SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER | typeof SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE | typeof SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF | typeof SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF | typeof SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN | typeof SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP | typeof SVM_SPOKE_ERROR__INVALID_SLOW_FILL_REQUEST | typeof SVM_SPOKE_ERROR__NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW | typeof SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER | typeof SVM_SPOKE_ERROR__RELAY_FILLED;
46
42
  export declare function getSvmSpokeErrorMessage(code: SvmSpokeError): string;
47
43
  export declare function isSvmSpokeError<TProgramErrorCode extends SvmSpokeError>(error: unknown, transactionMessage: {
48
44
  instructions: Record<number, {
@@ -7,68 +7,62 @@
7
7
  * @see https://github.com/codama-idl/codama
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = exports.SVM_SPOKE_ERROR__INVALID_REFUND = exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = exports.SVM_SPOKE_ERROR__INVALID_MINT = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = exports.SVM_SPOKE_ERROR__NOT_RELAYER = exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = exports.SVM_SPOKE_ERROR__NOT_OWNER = void 0;
10
+ exports.SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN = exports.SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER = exports.SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF = exports.SVM_SPOKE_ERROR__FILLS_ARE_PAUSED = exports.SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED = exports.SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF = exports.SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF = exports.SVM_SPOKE_ERROR__INVALID_CHAIN_ID = exports.SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF = exports.SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE = exports.SVM_SPOKE_ERROR__INVALID_SLOW_FILL_REQUEST = exports.SVM_SPOKE_ERROR__RELAY_FILLED = exports.SVM_SPOKE_ERROR__NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW = exports.SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER = exports.SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE = exports.SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP = void 0;
11
11
  exports.getSvmSpokeErrorMessage = getSvmSpokeErrorMessage;
12
12
  exports.isSvmSpokeError = isSvmSpokeError;
13
13
  const kit_1 = require("@solana/kit");
14
14
  const programs_1 = require("../programs");
15
- /** NotOwner: Only the owner can call this function! */
16
- exports.SVM_SPOKE_ERROR__NOT_OWNER = 0x1770; // 6000
17
- /** InvalidRelayHash: Invalid relay hash! */
18
- exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 0x1771; // 6001
19
- /** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
20
- exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 0x1772; // 6002
21
- /** NotRelayer: The caller is not the relayer! */
22
- exports.SVM_SPOKE_ERROR__NOT_RELAYER = 0x1773; // 6003
23
- /** CannotSetCurrentTime: Cannot set time if not in test mode! */
24
- exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 0x1774; // 6004
25
- /** InvalidRemoteDomain: Invalid remote domain! */
26
- exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 0x1775; // 6005
27
- /** InvalidRemoteSender: Invalid remote sender! */
28
- exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 0x1776; // 6006
29
- /** InvalidMint: Invalid mint! */
30
- exports.SVM_SPOKE_ERROR__INVALID_MINT = 0x1777; // 6007
31
- /** ExceededPendingBridgeAmount: Exceeded pending bridge amount to HubPool! */
32
- exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = 0x1778; // 6008
33
- /** ParamsWriteOverflow: Overflow writing to parameters account! */
34
- exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 0x1779; // 6009
35
- /** InvalidRefund: Invalid refund address! */
36
- exports.SVM_SPOKE_ERROR__INVALID_REFUND = 0x177a; // 6010
37
- /** ZeroRefundClaim: Zero relayer refund claim! */
38
- exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 0x177b; // 6011
39
- /** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
40
- exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 0x177c; // 6012
41
- /** InvalidClaimInitializer: Invalid claim initializer! */
42
- exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 0x177d; // 6013
43
- /** InvalidRefundTokenAccount: Invalid refund token account! */
44
- exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 0x177e; // 6014
45
- /** InvalidProductionSeed: Seed must be 0 in production! */
46
- exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 0x177f; // 6015
47
- /** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
48
- exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 0x1780; // 6016
49
- /** InvalidDelegatePda: Invalid delegate PDA! */
50
- exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA = 0x1781; // 6017
15
+ /** InvalidQuoteTimestamp: Invalid quote timestamp! */
16
+ exports.SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP = 0x1770; // 6000
17
+ /** InvalidFillDeadline: Invalid fill deadline! */
18
+ exports.SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE = 0x1771; // 6001
19
+ /** NotExclusiveRelayer: Caller is not the exclusive relayer and exclusivity deadline has not passed! */
20
+ exports.SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER = 0x1772; // 6002
21
+ /** NoSlowFillsInExclusivityWindow: The Deposit is still within the exclusivity window! */
22
+ exports.SVM_SPOKE_ERROR__NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW = 0x1773; // 6003
23
+ /** RelayFilled: The relay has already been filled! */
24
+ exports.SVM_SPOKE_ERROR__RELAY_FILLED = 0x1774; // 6004
25
+ /** InvalidSlowFillRequest: Slow fill requires status of Unfilled! */
26
+ exports.SVM_SPOKE_ERROR__INVALID_SLOW_FILL_REQUEST = 0x1775; // 6005
27
+ /** ExpiredFillDeadline: The fill deadline has passed! */
28
+ exports.SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE = 0x1776; // 6006
29
+ /** InvalidMerkleProof: Invalid Merkle proof! */
30
+ exports.SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF = 0x1777; // 6007
31
+ /** InvalidChainId: Invalid chain id! */
32
+ exports.SVM_SPOKE_ERROR__INVALID_CHAIN_ID = 0x1778; // 6008
33
+ /** InvalidMerkleLeaf: Invalid Merkle leaf! */
34
+ exports.SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF = 0x1779; // 6009
35
+ /** ClaimedMerkleLeaf: Leaf already claimed! */
36
+ exports.SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF = 0x177a; // 6010
37
+ /** DepositsArePaused: Deposits are currently paused! */
38
+ exports.SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED = 0x177b; // 6011
39
+ /** FillsArePaused: Fills are currently paused! */
40
+ exports.SVM_SPOKE_ERROR__FILLS_ARE_PAUSED = 0x177c; // 6012
41
+ /** InsufficientSpokePoolBalanceToExecuteLeaf: Insufficient spoke pool balance to execute leaf */
42
+ exports.SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF = 0x177d; // 6013
43
+ /** InvalidExclusiveRelayer: Invalid exclusive relayer! */
44
+ exports.SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER = 0x177e; // 6014
45
+ /** InvalidOutputToken: Invalid output token! */
46
+ exports.SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN = 0x177f; // 6015
51
47
  let svmSpokeErrorMessages;
52
48
  if (process.env.NODE_ENV !== 'production') {
53
49
  svmSpokeErrorMessages = {
54
- [exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME]: `Cannot set time if not in test mode!`,
55
- [exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED]: `The fill deadline has not passed!`,
56
- [exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT]: `Exceeded pending bridge amount to HubPool!`,
57
- [exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS]: `Invalid remaining accounts for ATA creation!`,
58
- [exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER]: `Invalid claim initializer!`,
59
- [exports.SVM_SPOKE_ERROR__INVALID_DELEGATE_PDA]: `Invalid delegate PDA!`,
60
- [exports.SVM_SPOKE_ERROR__INVALID_MINT]: `Invalid mint!`,
61
- [exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED]: `Seed must be 0 in production!`,
62
- [exports.SVM_SPOKE_ERROR__INVALID_REFUND]: `Invalid refund address!`,
63
- [exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT]: `Invalid refund token account!`,
64
- [exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH]: `Invalid relay hash!`,
65
- [exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN]: `Invalid remote domain!`,
66
- [exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER]: `Invalid remote sender!`,
67
- [exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM]: `Cannot close non-zero relayer refund claim!`,
68
- [exports.SVM_SPOKE_ERROR__NOT_OWNER]: `Only the owner can call this function!`,
69
- [exports.SVM_SPOKE_ERROR__NOT_RELAYER]: `The caller is not the relayer!`,
70
- [exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW]: `Overflow writing to parameters account!`,
71
- [exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM]: `Zero relayer refund claim!`,
50
+ [exports.SVM_SPOKE_ERROR__CLAIMED_MERKLE_LEAF]: `Leaf already claimed!`,
51
+ [exports.SVM_SPOKE_ERROR__DEPOSITS_ARE_PAUSED]: `Deposits are currently paused!`,
52
+ [exports.SVM_SPOKE_ERROR__EXPIRED_FILL_DEADLINE]: `The fill deadline has passed!`,
53
+ [exports.SVM_SPOKE_ERROR__FILLS_ARE_PAUSED]: `Fills are currently paused!`,
54
+ [exports.SVM_SPOKE_ERROR__INSUFFICIENT_SPOKE_POOL_BALANCE_TO_EXECUTE_LEAF]: `Insufficient spoke pool balance to execute leaf`,
55
+ [exports.SVM_SPOKE_ERROR__INVALID_CHAIN_ID]: `Invalid chain id!`,
56
+ [exports.SVM_SPOKE_ERROR__INVALID_EXCLUSIVE_RELAYER]: `Invalid exclusive relayer!`,
57
+ [exports.SVM_SPOKE_ERROR__INVALID_FILL_DEADLINE]: `Invalid fill deadline!`,
58
+ [exports.SVM_SPOKE_ERROR__INVALID_MERKLE_LEAF]: `Invalid Merkle leaf!`,
59
+ [exports.SVM_SPOKE_ERROR__INVALID_MERKLE_PROOF]: `Invalid Merkle proof!`,
60
+ [exports.SVM_SPOKE_ERROR__INVALID_OUTPUT_TOKEN]: `Invalid output token!`,
61
+ [exports.SVM_SPOKE_ERROR__INVALID_QUOTE_TIMESTAMP]: `Invalid quote timestamp!`,
62
+ [exports.SVM_SPOKE_ERROR__INVALID_SLOW_FILL_REQUEST]: `Slow fill requires status of Unfilled!`,
63
+ [exports.SVM_SPOKE_ERROR__NO_SLOW_FILLS_IN_EXCLUSIVITY_WINDOW]: `The Deposit is still within the exclusivity window!`,
64
+ [exports.SVM_SPOKE_ERROR__NOT_EXCLUSIVE_RELAYER]: `Caller is not the exclusive relayer and exclusivity deadline has not passed!`,
65
+ [exports.SVM_SPOKE_ERROR__RELAY_FILLED]: `The relay has already been filled!`,
72
66
  };
73
67
  }
74
68
  function getSvmSpokeErrorMessage(code) {
@@ -4531,93 +4531,83 @@ export type SvmSpoke = {
4531
4531
  "errors": [
4532
4532
  {
4533
4533
  "code": 6000;
4534
- "name": "notOwner";
4535
- "msg": "Only the owner can call this function!";
4534
+ "name": "invalidQuoteTimestamp";
4535
+ "msg": "Invalid quote timestamp!";
4536
4536
  },
4537
4537
  {
4538
4538
  "code": 6001;
4539
- "name": "invalidRelayHash";
4540
- "msg": "Invalid relay hash!";
4539
+ "name": "invalidFillDeadline";
4540
+ "msg": "Invalid fill deadline!";
4541
4541
  },
4542
4542
  {
4543
4543
  "code": 6002;
4544
- "name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
4545
- "msg": "The fill deadline has not passed!";
4544
+ "name": "notExclusiveRelayer";
4545
+ "msg": "Caller is not the exclusive relayer and exclusivity deadline has not passed!";
4546
4546
  },
4547
4547
  {
4548
4548
  "code": 6003;
4549
- "name": "notRelayer";
4550
- "msg": "The caller is not the relayer!";
4549
+ "name": "noSlowFillsInExclusivityWindow";
4550
+ "msg": "The Deposit is still within the exclusivity window!";
4551
4551
  },
4552
4552
  {
4553
4553
  "code": 6004;
4554
- "name": "cannotSetCurrentTime";
4555
- "msg": "Cannot set time if not in test mode!";
4554
+ "name": "relayFilled";
4555
+ "msg": "The relay has already been filled!";
4556
4556
  },
4557
4557
  {
4558
4558
  "code": 6005;
4559
- "name": "invalidRemoteDomain";
4560
- "msg": "Invalid remote domain!";
4559
+ "name": "invalidSlowFillRequest";
4560
+ "msg": "Slow fill requires status of Unfilled!";
4561
4561
  },
4562
4562
  {
4563
4563
  "code": 6006;
4564
- "name": "invalidRemoteSender";
4565
- "msg": "Invalid remote sender!";
4564
+ "name": "expiredFillDeadline";
4565
+ "msg": "The fill deadline has passed!";
4566
4566
  },
4567
4567
  {
4568
4568
  "code": 6007;
4569
- "name": "invalidMint";
4570
- "msg": "Invalid mint!";
4569
+ "name": "invalidMerkleProof";
4570
+ "msg": "Invalid Merkle proof!";
4571
4571
  },
4572
4572
  {
4573
4573
  "code": 6008;
4574
- "name": "exceededPendingBridgeAmount";
4575
- "msg": "Exceeded pending bridge amount to HubPool!";
4574
+ "name": "invalidChainId";
4575
+ "msg": "Invalid chain id!";
4576
4576
  },
4577
4577
  {
4578
4578
  "code": 6009;
4579
- "name": "paramsWriteOverflow";
4580
- "msg": "Overflow writing to parameters account!";
4579
+ "name": "invalidMerkleLeaf";
4580
+ "msg": "Invalid Merkle leaf!";
4581
4581
  },
4582
4582
  {
4583
4583
  "code": 6010;
4584
- "name": "invalidRefund";
4585
- "msg": "Invalid refund address!";
4584
+ "name": "claimedMerkleLeaf";
4585
+ "msg": "Leaf already claimed!";
4586
4586
  },
4587
4587
  {
4588
4588
  "code": 6011;
4589
- "name": "zeroRefundClaim";
4590
- "msg": "Zero relayer refund claim!";
4589
+ "name": "depositsArePaused";
4590
+ "msg": "Deposits are currently paused!";
4591
4591
  },
4592
4592
  {
4593
4593
  "code": 6012;
4594
- "name": "nonZeroRefundClaim";
4595
- "msg": "Cannot close non-zero relayer refund claim!";
4594
+ "name": "fillsArePaused";
4595
+ "msg": "Fills are currently paused!";
4596
4596
  },
4597
4597
  {
4598
4598
  "code": 6013;
4599
- "name": "invalidClaimInitializer";
4600
- "msg": "Invalid claim initializer!";
4599
+ "name": "insufficientSpokePoolBalanceToExecuteLeaf";
4600
+ "msg": "Insufficient spoke pool balance to execute leaf";
4601
4601
  },
4602
4602
  {
4603
4603
  "code": 6014;
4604
- "name": "invalidRefundTokenAccount";
4605
- "msg": "Invalid refund token account!";
4604
+ "name": "invalidExclusiveRelayer";
4605
+ "msg": "Invalid exclusive relayer!";
4606
4606
  },
4607
4607
  {
4608
4608
  "code": 6015;
4609
- "name": "invalidProductionSeed";
4610
- "msg": "Seed must be 0 in production!";
4611
- },
4612
- {
4613
- "code": 6016;
4614
- "name": "invalidAtaCreationAccounts";
4615
- "msg": "Invalid remaining accounts for ATA creation!";
4616
- },
4617
- {
4618
- "code": 6017;
4619
- "name": "invalidDelegatePda";
4620
- "msg": "Invalid delegate PDA!";
4609
+ "name": "invalidOutputToken";
4610
+ "msg": "Invalid output token!";
4621
4611
  }
4622
4612
  ];
4623
4613
  "types": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@across-protocol/contracts",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "author": "UMA Team",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {