New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@across-protocol/contracts

Package Overview
Dependencies
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@across-protocol/contracts - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

10

dist/deploy/consts.js

@@ -146,2 +146,6 @@ "use strict";

},
[utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: {
L1CrossDomainMessenger: "0x448A37330A60494E666F6DD60aD48d930AEbA381",
L1StandardBridge: "0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2",
},
},

@@ -230,2 +234,6 @@ };

},
[utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: {
cctpTokenMessenger: "0x8ed94B8dAd2Dc5453862ea5e316A8e71AAed9782",
cctpMessageTransmitter: "0xbc498c326533d675cf571B90A2Ced265ACb7d086",
},
};

@@ -247,2 +255,3 @@ exports.POLYGON_CHAIN_IDS = {

[utils_1.CHAIN_IDs.POLYGON]: 7,
[utils_1.CHAIN_IDs.UNICHAIN]: 10,
// Testnet

@@ -254,2 +263,3 @@ [utils_1.CHAIN_IDs.SEPOLIA]: 0,

[utils_1.CHAIN_IDs.POLYGON_AMOY]: 7,
[utils_1.CHAIN_IDs.UNICHAIN_SEPOLIA]: 10,
};

7

dist/deployments/deployments.json

@@ -159,3 +159,4 @@ {

"Lens_Adapter": { "address": "0x8fac6F764ae0b4F632FE2E6c938ED5637E629ff2", "blockNumber": 7448085 },
"Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 }
"Blast_Adapter": { "address": "0x09500Ffd743e01B4146a4BA795231Ca7Ca37819f", "blockNumber": 6233857 },
"DoctorWho_Adapter": { "address": "0x2b482aFb675e1F231521d5E56770ce4aac592246", "blockNumber": 7698546 }
},

@@ -182,3 +183,7 @@ "37111": {

"MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 7930191 }
},
"1301": {
"SpokePool": { "address": "0x6999526e507Cc3b03b180BbE05E1Ff938259A874", "blockNumber": 12593713 },
"MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 12594561 }
}
}

@@ -347,2 +347,9 @@ "use strict";

},
"unichain-sepolia": {
chainId: constants_1.CHAIN_IDs.UNICHAIN_SEPOLIA,
url: "https://sepolia.unichain.org",
saveDeployments: true,
accounts: { mnemonic },
companionNetworks: { l1: "sepolia" },
},
},

@@ -379,3 +386,4 @@ gasReporter: { enabled: process.env.REPORT_GAS !== undefined, currency: "USD" },

soneium: "blockscout",
unichain: process.env.UNISCAN_API_KEY,
unichain: process.env.UNICHAIN_ETHERSCAN_API_KEY,
"unichain-sepolia": process.env.UNICHAIN_ETHERSCAN_API_KEY,
},

@@ -575,2 +583,10 @@ customChains: [

},
{
network: "unichain-sepolia",
chainId: constants_1.CHAIN_IDs.UNICHAIN_SEPOLIA,
urls: {
apiURL: "https://api-sepolia.uniscan.xyz/api",
browserURL: "https://sepolia.uniscan.xyz",
},
},
],

@@ -577,0 +593,0 @@ },

50

dist/src/svm/clients/SvmSpoke/errors/svmSpoke.d.ts

@@ -9,37 +9,17 @@ /**

import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/web3-v2.js';
/** NotOwner: Only the owner can call this function! */
export declare const SVM_SPOKE_ERROR__NOT_OWNER = 6000;
/** InvalidRelayHash: Invalid relay hash! */
export declare const SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 6001;
/** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
export declare const SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 6002;
/** NotRelayer: The caller is not the relayer! */
export declare const SVM_SPOKE_ERROR__NOT_RELAYER = 6003;
/** CannotSetCurrentTime: Cannot set time if not in test mode! */
export declare const SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 6004;
/** InvalidRemoteDomain: Invalid remote domain! */
export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 6005;
/** InvalidRemoteSender: Invalid remote sender! */
export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 6006;
/** InvalidMint: Invalid mint! */
export declare const SVM_SPOKE_ERROR__INVALID_MINT = 6007;
/** ExceededPendingBridgeAmount: Exceeded pending bridge amount to HubPool! */
export declare const SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = 6008;
/** ParamsWriteOverflow: Overflow writing to parameters account! */
export declare const SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 6009;
/** InvalidRefund: Invalid refund address! */
export declare const SVM_SPOKE_ERROR__INVALID_REFUND = 6010;
/** ZeroRefundClaim: Zero relayer refund claim! */
export declare const SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 6011;
/** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
export declare const SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 6012;
/** InvalidClaimInitializer: Invalid claim initializer! */
export declare const SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 6013;
/** InvalidRefundTokenAccount: Invalid refund token account! */
export declare const SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 6014;
/** InvalidProductionSeed: Seed must be 0 in production! */
export declare const SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 6015;
/** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
export declare const SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 6016;
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;
/** InvalidSelector: Invalid solidity selector */
export declare const SVM_SPOKE_ERROR__INVALID_SELECTOR = 6000;
/** InvalidArgument: Invalid solidity argument */
export declare const SVM_SPOKE_ERROR__INVALID_ARGUMENT = 6001;
/** InvalidBool: Invalid solidity bool argument */
export declare const SVM_SPOKE_ERROR__INVALID_BOOL = 6002;
/** InvalidAddress: Invalid solidity address argument */
export declare const SVM_SPOKE_ERROR__INVALID_ADDRESS = 6003;
/** InvalidUint32: Invalid solidity uint32 argument */
export declare const SVM_SPOKE_ERROR__INVALID_UINT32 = 6004;
/** InvalidUint64: Invalid solidity uint64 argument */
export declare const SVM_SPOKE_ERROR__INVALID_UINT64 = 6005;
/** UnsupportedSelector: Unsupported solidity selector */
export declare const SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = 6006;
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;
export declare function getSvmSpokeErrorMessage(code: SvmSpokeError): string;

@@ -46,0 +26,0 @@ export declare function isSvmSpokeError<TProgramErrorCode extends SvmSpokeError>(error: unknown, transactionMessage: {

@@ -10,3 +10,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
exports.getSvmSpokeErrorMessage = getSvmSpokeErrorMessage;

@@ -16,56 +16,26 @@ exports.isSvmSpokeError = isSvmSpokeError;

const programs_1 = require("../programs");
/** NotOwner: Only the owner can call this function! */
exports.SVM_SPOKE_ERROR__NOT_OWNER = 0x1770; // 6000
/** InvalidRelayHash: Invalid relay hash! */
exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 0x1771; // 6001
/** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 0x1772; // 6002
/** NotRelayer: The caller is not the relayer! */
exports.SVM_SPOKE_ERROR__NOT_RELAYER = 0x1773; // 6003
/** CannotSetCurrentTime: Cannot set time if not in test mode! */
exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 0x1774; // 6004
/** InvalidRemoteDomain: Invalid remote domain! */
exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 0x1775; // 6005
/** InvalidRemoteSender: Invalid remote sender! */
exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 0x1776; // 6006
/** InvalidMint: Invalid mint! */
exports.SVM_SPOKE_ERROR__INVALID_MINT = 0x1777; // 6007
/** ExceededPendingBridgeAmount: Exceeded pending bridge amount to HubPool! */
exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = 0x1778; // 6008
/** ParamsWriteOverflow: Overflow writing to parameters account! */
exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 0x1779; // 6009
/** InvalidRefund: Invalid refund address! */
exports.SVM_SPOKE_ERROR__INVALID_REFUND = 0x177a; // 6010
/** ZeroRefundClaim: Zero relayer refund claim! */
exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 0x177b; // 6011
/** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 0x177c; // 6012
/** InvalidClaimInitializer: Invalid claim initializer! */
exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 0x177d; // 6013
/** InvalidRefundTokenAccount: Invalid refund token account! */
exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 0x177e; // 6014
/** InvalidProductionSeed: Seed must be 0 in production! */
exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 0x177f; // 6015
/** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 0x1780; // 6016
/** InvalidSelector: Invalid solidity selector */
exports.SVM_SPOKE_ERROR__INVALID_SELECTOR = 0x1770; // 6000
/** InvalidArgument: Invalid solidity argument */
exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT = 0x1771; // 6001
/** InvalidBool: Invalid solidity bool argument */
exports.SVM_SPOKE_ERROR__INVALID_BOOL = 0x1772; // 6002
/** InvalidAddress: Invalid solidity address argument */
exports.SVM_SPOKE_ERROR__INVALID_ADDRESS = 0x1773; // 6003
/** InvalidUint32: Invalid solidity uint32 argument */
exports.SVM_SPOKE_ERROR__INVALID_UINT32 = 0x1774; // 6004
/** InvalidUint64: Invalid solidity uint64 argument */
exports.SVM_SPOKE_ERROR__INVALID_UINT64 = 0x1775; // 6005
/** UnsupportedSelector: Unsupported solidity selector */
exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR = 0x1776; // 6006
let svmSpokeErrorMessages;
if (process.env.NODE_ENV !== 'production') {
svmSpokeErrorMessages = {
[exports.SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME]: `Cannot set time if not in test mode!`,
[exports.SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED]: `The fill deadline has not passed!`,
[exports.SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT]: `Exceeded pending bridge amount to HubPool!`,
[exports.SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS]: `Invalid remaining accounts for ATA creation!`,
[exports.SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER]: `Invalid claim initializer!`,
[exports.SVM_SPOKE_ERROR__INVALID_MINT]: `Invalid mint!`,
[exports.SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED]: `Seed must be 0 in production!`,
[exports.SVM_SPOKE_ERROR__INVALID_REFUND]: `Invalid refund address!`,
[exports.SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT]: `Invalid refund token account!`,
[exports.SVM_SPOKE_ERROR__INVALID_RELAY_HASH]: `Invalid relay hash!`,
[exports.SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN]: `Invalid remote domain!`,
[exports.SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER]: `Invalid remote sender!`,
[exports.SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM]: `Cannot close non-zero relayer refund claim!`,
[exports.SVM_SPOKE_ERROR__NOT_OWNER]: `Only the owner can call this function!`,
[exports.SVM_SPOKE_ERROR__NOT_RELAYER]: `The caller is not the relayer!`,
[exports.SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW]: `Overflow writing to parameters account!`,
[exports.SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM]: `Zero relayer refund claim!`,
[exports.SVM_SPOKE_ERROR__INVALID_ADDRESS]: `Invalid solidity address argument`,
[exports.SVM_SPOKE_ERROR__INVALID_ARGUMENT]: `Invalid solidity argument`,
[exports.SVM_SPOKE_ERROR__INVALID_BOOL]: `Invalid solidity bool argument`,
[exports.SVM_SPOKE_ERROR__INVALID_SELECTOR]: `Invalid solidity selector`,
[exports.SVM_SPOKE_ERROR__INVALID_UINT32]: `Invalid solidity uint32 argument`,
[exports.SVM_SPOKE_ERROR__INVALID_UINT64]: `Invalid solidity uint64 argument`,
[exports.SVM_SPOKE_ERROR__UNSUPPORTED_SELECTOR]: `Unsupported solidity selector`,
};

@@ -72,0 +42,0 @@ }

{
"name": "@across-protocol/contracts",
"version": "4.0.1",
"version": "4.0.2",
"author": "UMA Team",

@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc