@across-protocol/contracts 4.0.1 → 4.0.2

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.
@@ -143,6 +143,10 @@ exports.OP_STACK_ADDRESS_MAP = {
143
143
  L1CrossDomainMessenger: "0x58Cc85b8D04EA49cC6DBd3CbFFd00B4B8D6cb3ef",
144
144
  L1StandardBridge: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1",
145
145
  },
146
+ [utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: {
147
+ L1CrossDomainMessenger: "0x448A37330A60494E666F6DD60aD48d930AEbA381",
148
+ L1StandardBridge: "0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2",
149
+ },
146
150
  },
147
151
  };
148
152
  exports.L2_ADDRESS_MAP = {
@@ -226,6 +230,10 @@ exports.L2_ADDRESS_MAP = {
226
230
  cctpTokenMessenger: "0x4e744b28E787c3aD0e810eD65A24461D4ac5a762",
227
231
  cctpMessageTransmitter: "0x353bE9E2E38AB1D19104534e4edC21c643Df86f4",
228
232
  },
233
+ [utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: {
234
+ cctpTokenMessenger: "0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",
235
+ cctpMessageTransmitter: "0xbc498c326533d675cf571B90A2Ced265ACb7d086",
236
+ },
229
237
  };
230
238
  exports.POLYGON_CHAIN_IDS = {
231
239
  [utils_1.CHAIN_IDs.MAINNET]: utils_1.CHAIN_IDs.POLYGON,
@@ -242,10 +250,12 @@ exports.CIRCLE_DOMAIN_IDs = {
242
250
  [utils_1.CHAIN_IDs.ARBITRUM]: 3,
243
251
  [utils_1.CHAIN_IDs.BASE]: 6,
244
252
  [utils_1.CHAIN_IDs.POLYGON]: 7,
253
+ [utils_1.CHAIN_IDs.UNICHAIN]: 10,
245
254
  // Testnet
246
255
  [utils_1.CHAIN_IDs.SEPOLIA]: 0,
247
256
  [utils_1.CHAIN_IDs.OPTIMISM_SEPOLIA]: 2,
248
257
  [utils_1.CHAIN_IDs.ARBITRUM_SEPOLIA]: 3,
249
258
  [utils_1.CHAIN_IDs.BASE_SEPOLIA]: 6,
250
259
  [utils_1.CHAIN_IDs.POLYGON_AMOY]: 7,
260
+ [utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: 10,
251
261
  };
@@ -156,7 +156,8 @@
156
156
  "Polygon_Adapter": { "address": "0x540029039E493b1B843653f93C3064A956931747", "blockNumber": 5984591 },
157
157
  "Lisk_Adapter": { "address": "0x13a8B1D6443016424e2b8Bac40dD884Ee679AFc4", "blockNumber": 6226289 },
158
158
  "Lens_Adapter": { "address": "0x8fac6F764ae0b4F632FE2E6c938ED5637E629ff2", "blockNumber": 7448085 },
159
- "Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 }
159
+ "Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 },
160
+ "DoctorWho_Adapter": { "address": "0x2b482aFb675e1F231521d5E56770ce4aac592246", "blockNumber": 7698546 }
160
161
  },
161
162
  "37111": {
162
163
  "SpokePool": { "address": "0x6A0a7f39530923911832Dd60667CE5da5449967B", "blockNumber": 156275 },
@@ -178,5 +179,9 @@
178
179
  "130": {
179
180
  "SpokePool": { "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", "blockNumber": 7915488 },
180
181
  "MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 7930191 }
182
+ },
183
+ "1301": {
184
+ "SpokePool": { "address": "0x6999526e507Cc3b03b180BbE05E1Ff938259A874", "blockNumber": 12593713 },
185
+ "MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 12594561 }
181
186
  }
182
187
  }
@@ -344,6 +344,13 @@ const config = {
344
344
  accounts: { mnemonic },
345
345
  companionNetworks: { l1: "mainnet" },
346
346
  },
347
+ "unichain-sepolia": {
348
+ chainId: constants_1.CHAIN_IDs.UNICHAIN_SEPOLIA,
349
+ url: "https://sepolia.unichain.org",
350
+ saveDeployments: true,
351
+ accounts: { mnemonic },
352
+ companionNetworks: { l1: "sepolia" },
353
+ },
347
354
  },
348
355
  gasReporter: { enabled: process.env.REPORT_GAS !== undefined, currency: "USD" },
349
356
  etherscan: {
@@ -375,7 +382,8 @@ const config = {
375
382
  alephzero: "blockscout",
376
383
  ink: "blockscout",
377
384
  soneium: "blockscout",
378
- unichain: process.env.UNISCAN_API_KEY,
385
+ unichain: process.env.UNICHAIN_ETHERSCAN_API_KEY,
386
+ "unichain-sepolia": process.env.UNICHAIN_ETHERSCAN_API_KEY,
379
387
  },
380
388
  customChains: [
381
389
  {
@@ -570,6 +578,14 @@ const config = {
570
578
  browserURL: "https://uniscan.xyz",
571
579
  },
572
580
  },
581
+ {
582
+ network: "unichain-sepolia",
583
+ chainId: constants_1.CHAIN_IDs.UNICHAIN_SEPOLIA,
584
+ urls: {
585
+ apiURL: "https://api-sepolia.uniscan.xyz/api",
586
+ browserURL: "https://sepolia.uniscan.xyz",
587
+ },
588
+ },
573
589
  ],
574
590
  },
575
591
  namedAccounts: { deployer: 0 },
@@ -4804,88 +4804,38 @@
4804
4804
  "errors": [
4805
4805
  {
4806
4806
  "code": 6000,
4807
- "name": "NotOwner",
4808
- "msg": "Only the owner can call this function!"
4807
+ "name": "InvalidSelector",
4808
+ "msg": "Invalid solidity selector"
4809
4809
  },
4810
4810
  {
4811
4811
  "code": 6001,
4812
- "name": "InvalidRelayHash",
4813
- "msg": "Invalid relay hash!"
4812
+ "name": "InvalidArgument",
4813
+ "msg": "Invalid solidity argument"
4814
4814
  },
4815
4815
  {
4816
4816
  "code": 6002,
4817
- "name": "CanOnlyCloseFillStatusPdaIfFillDeadlinePassed",
4818
- "msg": "The fill deadline has not passed!"
4817
+ "name": "InvalidBool",
4818
+ "msg": "Invalid solidity bool argument"
4819
4819
  },
4820
4820
  {
4821
4821
  "code": 6003,
4822
- "name": "NotRelayer",
4823
- "msg": "The caller is not the relayer!"
4822
+ "name": "InvalidAddress",
4823
+ "msg": "Invalid solidity address argument"
4824
4824
  },
4825
4825
  {
4826
4826
  "code": 6004,
4827
- "name": "CannotSetCurrentTime",
4828
- "msg": "Cannot set time if not in test mode!"
4827
+ "name": "InvalidUint32",
4828
+ "msg": "Invalid solidity uint32 argument"
4829
4829
  },
4830
4830
  {
4831
4831
  "code": 6005,
4832
- "name": "InvalidRemoteDomain",
4833
- "msg": "Invalid remote domain!"
4832
+ "name": "InvalidUint64",
4833
+ "msg": "Invalid solidity uint64 argument"
4834
4834
  },
4835
4835
  {
4836
4836
  "code": 6006,
4837
- "name": "InvalidRemoteSender",
4838
- "msg": "Invalid remote sender!"
4839
- },
4840
- {
4841
- "code": 6007,
4842
- "name": "InvalidMint",
4843
- "msg": "Invalid mint!"
4844
- },
4845
- {
4846
- "code": 6008,
4847
- "name": "ExceededPendingBridgeAmount",
4848
- "msg": "Exceeded pending bridge amount to HubPool!"
4849
- },
4850
- {
4851
- "code": 6009,
4852
- "name": "ParamsWriteOverflow",
4853
- "msg": "Overflow writing to parameters account!"
4854
- },
4855
- {
4856
- "code": 6010,
4857
- "name": "InvalidRefund",
4858
- "msg": "Invalid refund address!"
4859
- },
4860
- {
4861
- "code": 6011,
4862
- "name": "ZeroRefundClaim",
4863
- "msg": "Zero relayer refund claim!"
4864
- },
4865
- {
4866
- "code": 6012,
4867
- "name": "NonZeroRefundClaim",
4868
- "msg": "Cannot close non-zero relayer refund claim!"
4869
- },
4870
- {
4871
- "code": 6013,
4872
- "name": "InvalidClaimInitializer",
4873
- "msg": "Invalid claim initializer!"
4874
- },
4875
- {
4876
- "code": 6014,
4877
- "name": "InvalidRefundTokenAccount",
4878
- "msg": "Invalid refund token account!"
4879
- },
4880
- {
4881
- "code": 6015,
4882
- "name": "InvalidProductionSeed",
4883
- "msg": "Seed must be 0 in production!"
4884
- },
4885
- {
4886
- "code": 6016,
4887
- "name": "InvalidATACreationAccounts",
4888
- "msg": "Invalid remaining accounts for ATA creation!"
4837
+ "name": "UnsupportedSelector",
4838
+ "msg": "Unsupported solidity selector"
4889
4839
  }
4890
4840
  ],
4891
4841
  "types": [
@@ -4810,88 +4810,38 @@ export type SvmSpoke = {
4810
4810
  "errors": [
4811
4811
  {
4812
4812
  "code": 6000;
4813
- "name": "notOwner";
4814
- "msg": "Only the owner can call this function!";
4813
+ "name": "invalidSelector";
4814
+ "msg": "Invalid solidity selector";
4815
4815
  },
4816
4816
  {
4817
4817
  "code": 6001;
4818
- "name": "invalidRelayHash";
4819
- "msg": "Invalid relay hash!";
4818
+ "name": "invalidArgument";
4819
+ "msg": "Invalid solidity argument";
4820
4820
  },
4821
4821
  {
4822
4822
  "code": 6002;
4823
- "name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
4824
- "msg": "The fill deadline has not passed!";
4823
+ "name": "invalidBool";
4824
+ "msg": "Invalid solidity bool argument";
4825
4825
  },
4826
4826
  {
4827
4827
  "code": 6003;
4828
- "name": "notRelayer";
4829
- "msg": "The caller is not the relayer!";
4828
+ "name": "invalidAddress";
4829
+ "msg": "Invalid solidity address argument";
4830
4830
  },
4831
4831
  {
4832
4832
  "code": 6004;
4833
- "name": "cannotSetCurrentTime";
4834
- "msg": "Cannot set time if not in test mode!";
4833
+ "name": "invalidUint32";
4834
+ "msg": "Invalid solidity uint32 argument";
4835
4835
  },
4836
4836
  {
4837
4837
  "code": 6005;
4838
- "name": "invalidRemoteDomain";
4839
- "msg": "Invalid remote domain!";
4838
+ "name": "invalidUint64";
4839
+ "msg": "Invalid solidity uint64 argument";
4840
4840
  },
4841
4841
  {
4842
4842
  "code": 6006;
4843
- "name": "invalidRemoteSender";
4844
- "msg": "Invalid remote sender!";
4845
- },
4846
- {
4847
- "code": 6007;
4848
- "name": "invalidMint";
4849
- "msg": "Invalid mint!";
4850
- },
4851
- {
4852
- "code": 6008;
4853
- "name": "exceededPendingBridgeAmount";
4854
- "msg": "Exceeded pending bridge amount to HubPool!";
4855
- },
4856
- {
4857
- "code": 6009;
4858
- "name": "paramsWriteOverflow";
4859
- "msg": "Overflow writing to parameters account!";
4860
- },
4861
- {
4862
- "code": 6010;
4863
- "name": "invalidRefund";
4864
- "msg": "Invalid refund address!";
4865
- },
4866
- {
4867
- "code": 6011;
4868
- "name": "zeroRefundClaim";
4869
- "msg": "Zero relayer refund claim!";
4870
- },
4871
- {
4872
- "code": 6012;
4873
- "name": "nonZeroRefundClaim";
4874
- "msg": "Cannot close non-zero relayer refund claim!";
4875
- },
4876
- {
4877
- "code": 6013;
4878
- "name": "invalidClaimInitializer";
4879
- "msg": "Invalid claim initializer!";
4880
- },
4881
- {
4882
- "code": 6014;
4883
- "name": "invalidRefundTokenAccount";
4884
- "msg": "Invalid refund token account!";
4885
- },
4886
- {
4887
- "code": 6015;
4888
- "name": "invalidProductionSeed";
4889
- "msg": "Seed must be 0 in production!";
4890
- },
4891
- {
4892
- "code": 6016;
4893
- "name": "invalidAtaCreationAccounts";
4894
- "msg": "Invalid remaining accounts for ATA creation!";
4843
+ "name": "unsupportedSelector";
4844
+ "msg": "Unsupported solidity selector";
4895
4845
  }
4896
4846
  ];
4897
4847
  "types": [
@@ -6,41 +6,21 @@
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/web3-v2.js';
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
- 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_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
+ /** InvalidSelector: Invalid solidity selector */
10
+ export declare const SVM_SPOKE_ERROR__INVALID_SELECTOR = 6000;
11
+ /** InvalidArgument: Invalid solidity argument */
12
+ export declare const SVM_SPOKE_ERROR__INVALID_ARGUMENT = 6001;
13
+ /** InvalidBool: Invalid solidity bool argument */
14
+ export declare const SVM_SPOKE_ERROR__INVALID_BOOL = 6002;
15
+ /** InvalidAddress: Invalid solidity address argument */
16
+ export declare const SVM_SPOKE_ERROR__INVALID_ADDRESS = 6003;
17
+ /** InvalidUint32: Invalid solidity uint32 argument */
18
+ export declare const SVM_SPOKE_ERROR__INVALID_UINT32 = 6004;
19
+ /** InvalidUint64: Invalid solidity uint64 argument */
20
+ export declare const SVM_SPOKE_ERROR__INVALID_UINT64 = 6005;
21
+ /** UnsupportedSelector: Unsupported solidity selector */
22
+ export declare const SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = 6006;
23
+ export type SvmSpokeError = typeof SVM_SPOKE_ERROR__INVALID_ADDRESS | typeof SVM_SPOKE_ERROR__INVALID_ARGUMENT | typeof SVM_SPOKE_ERROR__INVALID_BOOL | typeof SVM_SPOKE_ERROR__INVALID_SELECTOR | typeof SVM_SPOKE_ERROR__INVALID_UINT32 | typeof SVM_SPOKE_ERROR__INVALID_UINT64 | typeof SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR;
44
24
  export declare function getSvmSpokeErrorMessage(code: SvmSpokeError): string;
45
25
  export declare function isSvmSpokeError<TProgramErrorCode extends SvmSpokeError>(error: unknown, transactionMessage: {
46
26
  instructions: Record<number, {
@@ -7,65 +7,35 @@
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_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__UNSUPPORTED_SELECTOR = exports.SVM_SPOKE_ERROR__INVALID_UINT64 = exports.SVM_SPOKE_ERROR__INVALID_UINT32 = exports.SVM_SPOKE_ERROR__INVALID_ADDRESS = exports.SVM_SPOKE_ERROR__INVALID_BOOL = exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT = exports.SVM_SPOKE_ERROR__INVALID_SELECTOR = void 0;
11
11
  exports.getSvmSpokeErrorMessage = getSvmSpokeErrorMessage;
12
12
  exports.isSvmSpokeError = isSvmSpokeError;
13
13
  const web3_v2_js_1 = require("@solana/web3-v2.js");
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
15
+ /** InvalidSelector: Invalid solidity selector */
16
+ exports.SVM_SPOKE_ERROR__INVALID_SELECTOR = 0x1770; // 6000
17
+ /** InvalidArgument: Invalid solidity argument */
18
+ exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT = 0x1771; // 6001
19
+ /** InvalidBool: Invalid solidity bool argument */
20
+ exports.SVM_SPOKE_ERROR__INVALID_BOOL = 0x1772; // 6002
21
+ /** InvalidAddress: Invalid solidity address argument */
22
+ exports.SVM_SPOKE_ERROR__INVALID_ADDRESS = 0x1773; // 6003
23
+ /** InvalidUint32: Invalid solidity uint32 argument */
24
+ exports.SVM_SPOKE_ERROR__INVALID_UINT32 = 0x1774; // 6004
25
+ /** InvalidUint64: Invalid solidity uint64 argument */
26
+ exports.SVM_SPOKE_ERROR__INVALID_UINT64 = 0x1775; // 6005
27
+ /** UnsupportedSelector: Unsupported solidity selector */
28
+ exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = 0x1776; // 6006
49
29
  let svmSpokeErrorMessages;
50
30
  if (process.env.NODE_ENV !== 'production') {
51
31
  svmSpokeErrorMessages = {
52
- [exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME]: `Cannot set time if not in test mode!`,
53
- [exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED]: `The fill deadline has not passed!`,
54
- [exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT]: `Exceeded pending bridge amount to HubPool!`,
55
- [exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS]: `Invalid remaining accounts for ATA creation!`,
56
- [exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER]: `Invalid claim initializer!`,
57
- [exports.SVM_SPOKE_ERROR__INVALID_MINT]: `Invalid mint!`,
58
- [exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED]: `Seed must be 0 in production!`,
59
- [exports.SVM_SPOKE_ERROR__INVALID_REFUND]: `Invalid refund address!`,
60
- [exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT]: `Invalid refund token account!`,
61
- [exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH]: `Invalid relay hash!`,
62
- [exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN]: `Invalid remote domain!`,
63
- [exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER]: `Invalid remote sender!`,
64
- [exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM]: `Cannot close non-zero relayer refund claim!`,
65
- [exports.SVM_SPOKE_ERROR__NOT_OWNER]: `Only the owner can call this function!`,
66
- [exports.SVM_SPOKE_ERROR__NOT_RELAYER]: `The caller is not the relayer!`,
67
- [exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW]: `Overflow writing to parameters account!`,
68
- [exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM]: `Zero relayer refund claim!`,
32
+ [exports.SVM_SPOKE_ERROR__INVALID_ADDRESS]: `Invalid solidity address argument`,
33
+ [exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT]: `Invalid solidity argument`,
34
+ [exports.SVM_SPOKE_ERROR__INVALID_BOOL]: `Invalid solidity bool argument`,
35
+ [exports.SVM_SPOKE_ERROR__INVALID_SELECTOR]: `Invalid solidity selector`,
36
+ [exports.SVM_SPOKE_ERROR__INVALID_UINT32]: `Invalid solidity uint32 argument`,
37
+ [exports.SVM_SPOKE_ERROR__INVALID_UINT64]: `Invalid solidity uint64 argument`,
38
+ [exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR]: `Unsupported solidity selector`,
69
39
  };
70
40
  }
71
41
  function getSvmSpokeErrorMessage(code) {
@@ -4810,88 +4810,38 @@ export type SvmSpoke = {
4810
4810
  "errors": [
4811
4811
  {
4812
4812
  "code": 6000;
4813
- "name": "notOwner";
4814
- "msg": "Only the owner can call this function!";
4813
+ "name": "invalidSelector";
4814
+ "msg": "Invalid solidity selector";
4815
4815
  },
4816
4816
  {
4817
4817
  "code": 6001;
4818
- "name": "invalidRelayHash";
4819
- "msg": "Invalid relay hash!";
4818
+ "name": "invalidArgument";
4819
+ "msg": "Invalid solidity argument";
4820
4820
  },
4821
4821
  {
4822
4822
  "code": 6002;
4823
- "name": "canOnlyCloseFillStatusPdaIfFillDeadlinePassed";
4824
- "msg": "The fill deadline has not passed!";
4823
+ "name": "invalidBool";
4824
+ "msg": "Invalid solidity bool argument";
4825
4825
  },
4826
4826
  {
4827
4827
  "code": 6003;
4828
- "name": "notRelayer";
4829
- "msg": "The caller is not the relayer!";
4828
+ "name": "invalidAddress";
4829
+ "msg": "Invalid solidity address argument";
4830
4830
  },
4831
4831
  {
4832
4832
  "code": 6004;
4833
- "name": "cannotSetCurrentTime";
4834
- "msg": "Cannot set time if not in test mode!";
4833
+ "name": "invalidUint32";
4834
+ "msg": "Invalid solidity uint32 argument";
4835
4835
  },
4836
4836
  {
4837
4837
  "code": 6005;
4838
- "name": "invalidRemoteDomain";
4839
- "msg": "Invalid remote domain!";
4838
+ "name": "invalidUint64";
4839
+ "msg": "Invalid solidity uint64 argument";
4840
4840
  },
4841
4841
  {
4842
4842
  "code": 6006;
4843
- "name": "invalidRemoteSender";
4844
- "msg": "Invalid remote sender!";
4845
- },
4846
- {
4847
- "code": 6007;
4848
- "name": "invalidMint";
4849
- "msg": "Invalid mint!";
4850
- },
4851
- {
4852
- "code": 6008;
4853
- "name": "exceededPendingBridgeAmount";
4854
- "msg": "Exceeded pending bridge amount to HubPool!";
4855
- },
4856
- {
4857
- "code": 6009;
4858
- "name": "paramsWriteOverflow";
4859
- "msg": "Overflow writing to parameters account!";
4860
- },
4861
- {
4862
- "code": 6010;
4863
- "name": "invalidRefund";
4864
- "msg": "Invalid refund address!";
4865
- },
4866
- {
4867
- "code": 6011;
4868
- "name": "zeroRefundClaim";
4869
- "msg": "Zero relayer refund claim!";
4870
- },
4871
- {
4872
- "code": 6012;
4873
- "name": "nonZeroRefundClaim";
4874
- "msg": "Cannot close non-zero relayer refund claim!";
4875
- },
4876
- {
4877
- "code": 6013;
4878
- "name": "invalidClaimInitializer";
4879
- "msg": "Invalid claim initializer!";
4880
- },
4881
- {
4882
- "code": 6014;
4883
- "name": "invalidRefundTokenAccount";
4884
- "msg": "Invalid refund token account!";
4885
- },
4886
- {
4887
- "code": 6015;
4888
- "name": "invalidProductionSeed";
4889
- "msg": "Seed must be 0 in production!";
4890
- },
4891
- {
4892
- "code": 6016;
4893
- "name": "invalidAtaCreationAccounts";
4894
- "msg": "Invalid remaining accounts for ATA creation!";
4843
+ "name": "unsupportedSelector";
4844
+ "msg": "Unsupported solidity selector";
4895
4845
  }
4896
4846
  ];
4897
4847
  "types": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@across-protocol/contracts",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "author": "UMA Team",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {