diff --git a/.changeset/three-cups-march.md b/.changeset/three-cups-march.md new file mode 100644 index 000000000..6ba0e4898 --- /dev/null +++ b/.changeset/three-cups-march.md @@ -0,0 +1,37 @@ +--- +"@layerzerolabs/devtools-ton": minor +"@layerzerolabs/test-setup-devtools-evm-hardhat": patch +"@layerzerolabs/ua-devtools-evm-hardhat-v1-test": patch +"@layerzerolabs/ua-devtools-evm-hardhat-test": patch +"@layerzerolabs/omnicounter-devtools-evm": patch +"@layerzerolabs/protocol-devtools-solana": patch +"@layerzerolabs/ua-devtools-evm-hardhat": patch +"@layerzerolabs/devtools-evm-hardhat-test": patch +"@layerzerolabs/mint-burn-oft-adapter-example": patch +"@layerzerolabs/protocol-devtools-evm": patch +"@layerzerolabs/devtools-evm-hardhat": patch +"@layerzerolabs/omnicounter-devtools": patch +"@layerzerolabs/native-oft-adapter-example": patch +"@layerzerolabs/ua-devtools-solana": patch +"@layerzerolabs/protocol-devtools": patch +"@layerzerolabs/oft-upgradeable-example": patch +"@layerzerolabs/devtools-solana": patch +"@layerzerolabs/toolbox-hardhat": patch +"@layerzerolabs/ua-devtools-evm": patch +"@layerzerolabs/onft721-zksync-example": patch +"@layerzerolabs/devtools-cli-test": patch +"@layerzerolabs/devtools-evm-test": patch +"@layerzerolabs/test-devtools": patch +"@layerzerolabs/uniswap-read-example": patch +"@layerzerolabs/devtools-evm": patch +"@layerzerolabs/oft-adapter-example": patch +"@layerzerolabs/ua-devtools": patch +"@layerzerolabs/oft-solana-example": patch +"@layerzerolabs/oapp-read-example": patch +"@layerzerolabs/devtools": patch +"@layerzerolabs/onft721-example": patch +"@layerzerolabs/oapp-example": patch +"@layerzerolabs/oft-example": patch +--- + +new SDK methods, tests in devtools-ton, upgraded lz-definitions diff --git a/Dockerfile b/Dockerfile index 16d05ba9c..2c1ea2656 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,7 +85,7 @@ RUN apt-get install --yes \ libatomic1 libssl-dev # Install rust -ARG RUST_TOOLCHAIN_VERSION=1.75.0 +ARG RUST_TOOLCHAIN_VERSION=1.83.0 RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain ${RUST_TOOLCHAIN_VERSION} # Install docker diff --git a/examples/mint-burn-oft-adapter/package.json b/examples/mint-burn-oft-adapter/package.json index c0e207272..c3f3af76d 100644 --- a/examples/mint-burn-oft-adapter/package.json +++ b/examples/mint-burn-oft-adapter/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/native-oft-adapter/package.json b/examples/native-oft-adapter/package.json index 361f9694d..f682d19fc 100644 --- a/examples/native-oft-adapter/package.json +++ b/examples/native-oft-adapter/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/oapp-read/package.json b/examples/oapp-read/package.json index 25322560b..f7d99188f 100644 --- a/examples/oapp-read/package.json +++ b/examples/oapp-read/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/oapp/package.json b/examples/oapp/package.json index aca31a2fb..ff48a5fa2 100644 --- a/examples/oapp/package.json +++ b/examples/oapp/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/oft-adapter/package.json b/examples/oft-adapter/package.json index f42f490de..86a06dafa 100644 --- a/examples/oft-adapter/package.json +++ b/examples/oft-adapter/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/oft-solana/package.json b/examples/oft-solana/package.json index 52fa708ff..1539898fb 100644 --- a/examples/oft-solana/package.json +++ b/examples/oft-solana/package.json @@ -29,8 +29,8 @@ "@layerzerolabs/devtools-evm-hardhat": "^2.0.3", "@layerzerolabs/devtools-solana": "~1.0.2", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/io-devtools": "~0.1.11", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/oft-upgradeable/package.json b/examples/oft-upgradeable/package.json index 71ac4babb..f105e2bbe 100644 --- a/examples/oft-upgradeable/package.json +++ b/examples/oft-upgradeable/package.json @@ -24,7 +24,7 @@ "@babel/core": "^7.23.9", "@layerzerolabs/devtools-evm-hardhat": "^2.0.3", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-sdk-v2": "^3.0.21", diff --git a/examples/oft/package.json b/examples/oft/package.json index 1ef97f6dc..10c14209a 100644 --- a/examples/oft/package.json +++ b/examples/oft/package.json @@ -24,7 +24,7 @@ "@babel/core": "^7.23.9", "@layerzerolabs/devtools-evm-hardhat": "^2.0.3", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/onft721-zksync/package.json b/examples/onft721-zksync/package.json index c3744309f..f62501638 100644 --- a/examples/onft721-zksync/package.json +++ b/examples/onft721-zksync/package.json @@ -24,7 +24,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/onft721/package.json b/examples/onft721/package.json index 4e1231847..5f7bae834 100644 --- a/examples/onft721/package.json +++ b/examples/onft721/package.json @@ -22,7 +22,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/examples/uniswap-read/package.json b/examples/uniswap-read/package.json index 6a7cd56a2..e8cbdfa3e 100644 --- a/examples/uniswap-read/package.json +++ b/examples/uniswap-read/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/eslint-config-next": "~2.3.39", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-v1-0.7": "^3.0.12", diff --git a/packages/build-lz-options/package.json b/packages/build-lz-options/package.json index a092203c5..b8c6facfb 100644 --- a/packages/build-lz-options/package.json +++ b/packages/build-lz-options/package.json @@ -36,7 +36,7 @@ "@ethersproject/address": "~5.7.0", "@layerzerolabs/devtools": "~0.4.0", "@layerzerolabs/devtools-evm": "~1.0.0", - "@layerzerolabs/io-devtools": "~0.1.12", + "@layerzerolabs/io-devtools": "~0.1.14", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@types/prompts": "^2.4.9", "@types/react": "^17.0.74", diff --git a/packages/create-lz-oapp/package.json b/packages/create-lz-oapp/package.json index 694e79a97..e0fca7f52 100644 --- a/packages/create-lz-oapp/package.json +++ b/packages/create-lz-oapp/package.json @@ -33,7 +33,7 @@ "yoga-layout-prebuilt": "^1.10.0" }, "devDependencies": { - "@layerzerolabs/io-devtools": "~0.1.12", + "@layerzerolabs/io-devtools": "~0.1.14", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", "@types/jest": "^29.5.12", diff --git a/packages/decode-lz-options/package.json b/packages/decode-lz-options/package.json index fc323b43b..746ccea04 100644 --- a/packages/decode-lz-options/package.json +++ b/packages/decode-lz-options/package.json @@ -36,7 +36,7 @@ "@ethersproject/address": "~5.7.0", "@layerzerolabs/devtools": "~0.4.0", "@layerzerolabs/devtools-evm": "~1.0.0", - "@layerzerolabs/io-devtools": "~0.1.12", + "@layerzerolabs/io-devtools": "~0.1.14", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@types/prompts": "^2.4.9", "@types/react": "^17.0.74", diff --git a/packages/devtools-cli/package.json b/packages/devtools-cli/package.json index 31b81bed7..1c5753049 100644 --- a/packages/devtools-cli/package.json +++ b/packages/devtools-cli/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@layerzerolabs/devtools": "~0.4.0", - "@layerzerolabs/io-devtools": "~0.1.12", + "@layerzerolabs/io-devtools": "~0.1.14", "@layerzerolabs/ua-devtools": "~3.0.0", "@types/prompts": "^2.4.9", "@types/react": "^17.0.74", diff --git a/packages/devtools-evm-hardhat/package.json b/packages/devtools-evm-hardhat/package.json index cf1f2cd40..9f664a755 100644 --- a/packages/devtools-evm-hardhat/package.json +++ b/packages/devtools-evm-hardhat/package.json @@ -57,8 +57,8 @@ "@ethersproject/wallet": "^5.7.0", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-sdk-v1": "^3.0.12", "@layerzerolabs/test-devtools": "~0.4.1", "@layerzerolabs/test-devtools-evm-hardhat": "~0.5.0", @@ -85,8 +85,8 @@ "@ethersproject/providers": "^5.7.0", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@nomiclabs/hardhat-ethers": "^2.2.3", "fp-ts": "^2.16.2", "hardhat": "^2.22.10", diff --git a/packages/devtools-evm/package.json b/packages/devtools-evm/package.json index 40d906b2a..eea090106 100644 --- a/packages/devtools-evm/package.json +++ b/packages/devtools-evm/package.json @@ -51,8 +51,8 @@ "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.2", "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/test-devtools": "~0.4.1", "@safe-global/safe-core-sdk-types": "^2.3.0", "@swc/core": "^1.4.0", @@ -78,8 +78,8 @@ "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "fp-ts": "^2.16.2", "zod": "^3.22.4" }, diff --git a/packages/devtools-solana/package.json b/packages/devtools-solana/package.json index 67e377553..6e72861c5 100644 --- a/packages/devtools-solana/package.json +++ b/packages/devtools-solana/package.json @@ -43,8 +43,8 @@ }, "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/test-devtools": "~0.4.1", "@layerzerolabs/test-devtools-solana": "~0.0.4", "@solana/web3.js": "~1.95.8", @@ -66,8 +66,8 @@ }, "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@solana/web3.js": "^1.95.8", "bn.js": "^5.2.0", "fp-ts": "^2.16.2", diff --git a/packages/devtools-ton/jest.config.ts b/packages/devtools-ton/jest.config.ts index bbb53d8eb..c34739457 100644 --- a/packages/devtools-ton/jest.config.ts +++ b/packages/devtools-ton/jest.config.ts @@ -4,13 +4,13 @@ const config: Config = { cache: false, reporters: [['github-actions', { silent: false }], 'default'], testEnvironment: 'node', - testTimeout: 60_000, moduleNameMapper: { '^@/(.*)$': '/src/$1', }, transform: { '^.+\\.(t|j)sx?$': '@swc/jest', }, + testTimeout: 60_000, } export default config diff --git a/packages/devtools-ton/package.json b/packages/devtools-ton/package.json index a34dcb6dc..c5f10c4f6 100644 --- a/packages/devtools-ton/package.json +++ b/packages/devtools-ton/package.json @@ -31,15 +31,19 @@ "lint:fix": "eslint --fix '**/*.{js,ts,json}'", "test": "jest --ci" }, + "dependencies": { + "@ton/core": "^0.59.0", + "@ton/crypto": "^3.3.0", + "@ton/ton": "^15.1.0", + "p-memoize": "~4.0.4" + }, "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", + "@layerzerolabs/lz-ton-sdk-v2": "^3.0.27", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", - "@ton/core": "^0.59.0", - "@ton/crypto": "^3.3.0", - "@ton/ton": "^15.1.0", "@types/jest": "^29.5.12", "fast-check": "^3.16.0", "jest": "^29.7.0", @@ -47,12 +51,12 @@ "ts-node": "^10.9.2", "tslib": "~2.6.2", "tsup": "~8.0.1", - "typescript": "^5.4.4" + "typescript": "^5.3.3" }, "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@ton/core": "^0.59.0", "@ton/crypto": "^3.3.0", "@ton/ton": "^15.1.0" diff --git a/packages/devtools-ton/src/getDeploymentAddress.ts b/packages/devtools-ton/src/getDeploymentAddress.ts new file mode 100644 index 000000000..6371af8af --- /dev/null +++ b/packages/devtools-ton/src/getDeploymentAddress.ts @@ -0,0 +1,101 @@ +// TODO: Maybe use Stage or Environment imported +export type EnvironmentName = 'sandbox' | 'localnet' | 'local' | 'testnet' | 'mainnet' +export type TonDeployment = { + name: ContractName + network: string + address: string + compatibleVersions: string[] + deployer: string +} +type ContractName = + | 'AllStorages' + | 'Controller' + | 'Counter' + | 'Dvn' + | 'DvnProxy' + | 'Executor' + | 'ExecutorProxy' + | 'PriceFeedCache' + | 'PriceFeedCacheProxy' + | 'SmlManager' + | 'UlnManager' +const DEFAULT_PATH = '@layerzerolabs/lz-ton-sdk-v2/deployments' + +const envToFolder = (env: EnvironmentName) => { + switch (env) { + case 'sandbox': + case 'localnet': + case 'local': + return 'ton-sandbox-local' + case 'testnet': + return 'ton-testnet' + case 'mainnet': + return 'ton-mainnet' + } +} + +const envToFolderFallback = (env: EnvironmentName) => { + switch (env) { + case 'sandbox': + case 'localnet': + case 'local': + return 'ton-localnet' + case 'testnet': + return 'ton-testnet' + case 'mainnet': + return 'ton-mainnet' + } +} + +/** + * + * @param env The environment name for which to fetch the deployment + * @param name The name of the contract to fetch + * @returns A deployment record + */ +export const getDeployment = (env: EnvironmentName, name: ContractName): TonDeployment => { + try { + // eslint-disable-next-line @typescript-eslint/no-var-requires + return require(`${DEFAULT_PATH}/${envToFolder(env)}/${name}.json`) as TonDeployment + } catch (e) { + // eslint-disable-next-line @typescript-eslint/no-var-requires + return require(`${DEFAULT_PATH}/${envToFolderFallback(env)}/${name}.json`) as TonDeployment + } +} +/** + * + * @param env The environment name for which to fetch the deployment + * @param name The name of the contract to fetch + * @param packageName The name of the package in which the deployment is located + * @returns A deployment record + */ +export const getDeploymentFromPackage = (env: EnvironmentName, name: string, packageName: string): TonDeployment => { + try { + // eslint-disable-next-line @typescript-eslint/no-var-requires + return require(`@layerzerolabs/${packageName}/deployments/${envToFolder(env)}/${name}.json`) as TonDeployment + } catch (e) { + // eslint-disable-next-line @typescript-eslint/no-var-requires + return require( + `@layerzerolabs/${packageName}/deployments/${envToFolderFallback(env)}/${name}.json` + ) as TonDeployment + } +} + +/** + * + * @param env The environment name for which to fetch the address + * @param name The name of the contract to fetch the address from + * @returns A deployed contract address + */ +export const getDeploymentAddress = (env: EnvironmentName, name: ContractName): string => + getDeployment(env, name).address + +/** + * + * @param env The environment name for which to fetch the address + * @param name The name of the contract to fetch the address from + * @param packageName The name of the package in which the deployment is located + * @returns A deployed contract address + */ +export const getDeploymentAddressFromPackage = (env: EnvironmentName, name: string, packageName: string): string => + getDeploymentFromPackage(env, name, packageName).address diff --git a/packages/devtools-ton/src/index.ts b/packages/devtools-ton/src/index.ts index 880b550c4..3fb90973a 100644 --- a/packages/devtools-ton/src/index.ts +++ b/packages/devtools-ton/src/index.ts @@ -1 +1,3 @@ export * from './transactions' +export * from './omnigraph' +export * from './getDeploymentAddress' diff --git a/packages/devtools-ton/src/omnigraph/coordinates.ts b/packages/devtools-ton/src/omnigraph/coordinates.ts new file mode 100644 index 000000000..3d7fd0ae6 --- /dev/null +++ b/packages/devtools-ton/src/omnigraph/coordinates.ts @@ -0,0 +1,42 @@ +import { TonClient } from '@ton/ton' +import pMemoize from 'p-memoize' + +import { formatEid, OmniPoint, type RpcUrlFactory } from '@layerzerolabs/devtools' +import { ChainType, EndpointId, endpointIdToChainType } from '@layerzerolabs/lz-definitions' + +import { TonClientFactory } from './types' + +export const isOmniPointOnTon = ({ eid }: OmniPoint): boolean => endpointIdToChainType(eid) === ChainType.TON + +export const defaultRpcUrlFactory: RpcUrlFactory = (eid) => { + switch (eid) { + case EndpointId.TON_V2_MAINNET: + return 'https://toncenter.com/api/v2/' + case EndpointId.TON_V2_TESTNET: + return 'https://testnet.toncenter.com/api/v2/' + } + + throw new Error(`Could not find a default TON RPC URL for eid ${eid} (${formatEid(eid)})`) +} + +/** + * Creates a TON RPC URL factory with the ability to specify overrides + * for specific `EndpointId`s. + * + * This is a convenience method for when custom RPC URLs can be provided, e.g. + * from environment variables. + * + * ``` + * const rpcUrlFactory = createRpcUrlFactory({ [EndpointId.TON_V2_MAINNET]: process.env.NETWORK_URL_TON_MAINNET }) + * ``` + * + * @param {Partial>} [overrides] An object mapping `EndpointId`s to RPC URLs. + * @returns {RpcUrlFactory} + */ +export const createRpcUrlFactory = + (overrides: Partial> = {}): RpcUrlFactory => + (eid) => + overrides[eid] ?? defaultRpcUrlFactory(eid) + +export const createTonClientFactory = (urlFactory: RpcUrlFactory = defaultRpcUrlFactory): TonClientFactory => + pMemoize(async (eid) => new TonClient({ endpoint: await urlFactory(eid) })) diff --git a/packages/devtools-ton/src/omnigraph/index.ts b/packages/devtools-ton/src/omnigraph/index.ts new file mode 100644 index 000000000..02b48ea20 --- /dev/null +++ b/packages/devtools-ton/src/omnigraph/index.ts @@ -0,0 +1,3 @@ +export * from './coordinates' +export * from './sdk' +export * from './types' diff --git a/packages/devtools-ton/src/omnigraph/sdk.ts b/packages/devtools-ton/src/omnigraph/sdk.ts new file mode 100644 index 000000000..8a22c9982 --- /dev/null +++ b/packages/devtools-ton/src/omnigraph/sdk.ts @@ -0,0 +1,29 @@ +import { formatOmniPoint, type OmniPoint, type OmniTransaction, IOmniSDK } from '@layerzerolabs/devtools' +import { Logger, createModuleLogger } from '@layerzerolabs/io-devtools' +import { TonClient } from '@ton/ton' + +/** + * Base class for all TON SDKs, providing some common functionality + * to reduce the boilerplate + */ +export abstract class OmniSDK implements IOmniSDK { + constructor( + public readonly tonClient: TonClient, + public readonly point: OmniPoint, + protected readonly logger: Logger = createModuleLogger(`TON SDK ${new.target.name} @ ${formatOmniPoint(point)}`) + ) {} + + /** + * Human readable label for this SDK + */ + get label(): string { + return formatOmniPoint(this.point) + } + + protected createTransaction(data: string): OmniTransaction { + return { + point: this.point, + data, + } + } +} diff --git a/packages/devtools-ton/src/omnigraph/types.ts b/packages/devtools-ton/src/omnigraph/types.ts new file mode 100644 index 000000000..004538c67 --- /dev/null +++ b/packages/devtools-ton/src/omnigraph/types.ts @@ -0,0 +1,4 @@ +import { EndpointBasedFactory } from '@layerzerolabs/devtools' +import { TonClient } from '@ton/ton' + +export type TonClientFactory = EndpointBasedFactory diff --git a/packages/devtools-ton/src/transactions/serde.ts b/packages/devtools-ton/src/transactions/serde.ts index 1bff9a22c..d96c736d0 100644 --- a/packages/devtools-ton/src/transactions/serde.ts +++ b/packages/devtools-ton/src/transactions/serde.ts @@ -28,6 +28,15 @@ export const serializeMessage = (message: Message): string => export const serializeMessageRelaxed = (message: MessageRelaxed): string => messageRelaxedToCell(message).toBoc().toString('base64') +/** + * Serializes a MessageRelaxed array into a string that can be passed to OmniTransaction data + * + * @param {MessageRelaxed[]} messages + * @returns {string} Base64 serialized message string + */ +export const serializeMessagesRelaxed = (messages: MessageRelaxed[]): string => + messages.map((msg) => messageRelaxedToCell(msg).toBoc().toString('base64')).join(',') //comma is a safe separator for base64 + /** * Deserializes a Message object from Base64 serialized representation * @@ -45,6 +54,15 @@ export const deserializeMessage = (data: string): Message => loadMessage(Cell.fr export const deserializeMessageRelaxed = (data: string): MessageRelaxed => loadMessageRelaxed(Cell.fromBase64(data).beginParse()) +/** + * Deserializes a MessageRelaxed array from Base64 serialized representation + * + * @param {string} data + * @returns {MessageRelaxed[]} + */ +export const deserializeMessagesRelaxed = (data: string): MessageRelaxed[] => + data.split(',').map((datum) => loadMessageRelaxed(Cell.fromBase64(datum).beginParse())) + /** * Tries to deserialize Base64 serialized data into a Message or MessageRelaxed object * diff --git a/packages/devtools-ton/src/transactions/signer.ts b/packages/devtools-ton/src/transactions/signer.ts index 2ecd4b56a..073c28ac0 100644 --- a/packages/devtools-ton/src/transactions/signer.ts +++ b/packages/devtools-ton/src/transactions/signer.ts @@ -7,10 +7,11 @@ import { AsyncRetriable, } from '@layerzerolabs/devtools' import type { EndpointId } from '@layerzerolabs/lz-definitions' -import type { Cell, OpenedContract, Contract, ContractProvider, MessageRelaxed } from '@ton/core' +import { Cell } from '@ton/core' +import type { OpenedContract, Contract, ContractProvider, MessageRelaxed } from '@ton/core' import { TonClient } from '@ton/ton' import type { KeyPair } from '@ton/crypto' -import { deserializeMessageRelaxed } from './serde' +import { deserializeMessagesRelaxed } from './serde' import assert from 'assert' import { createIsCellInTransaction, hasTransactionBounced, isTransactionSuccessful } from './state' import { createModuleLogger, Logger } from '@layerzerolabs/io-devtools' @@ -49,9 +50,8 @@ export class OmniSignerTON extends Omni constructor( eid: EndpointId, public readonly keyPair: KeyPair, - public readonly endpoint: string, public readonly wallet: TWalletContract, - public readonly client: TonClient = new TonClient({ endpoint }), + public readonly client: TonClient, protected readonly logger: Logger = createModuleLogger('OmniSignerTON') ) { super(eid) @@ -60,20 +60,24 @@ export class OmniSignerTON extends Omni } override getPoint(): OmniPoint | Promise { - return { eid: this.eid, address: this.keyPair.publicKey.toString('base64') } + return { eid: this.eid, address: `0:${this.openWallet.address.hash.toString('hex')}` } } - override sign(_transaction: OmniTransaction): Promise { - throw new Error('Method not implemented.') + override async sign(_transaction: OmniTransaction): Promise { + const seqno = await this.openWallet.getSeqno() + return ( + await this.wallet.createTransfer({ + seqno, + secretKey: this.keyPair.secretKey, + messages: deserializeMessagesRelaxed(_transaction.data), + }) + ) + .toBoc() + .toString('base64') } override async signAndSend(omniTransaction: OmniTransaction): Promise { - const seqno = await this.openWallet.getSeqno() - const cell = await this.wallet.createTransfer({ - seqno, - secretKey: this.keyPair.secretKey, - messages: [deserializeMessageRelaxed(omniTransaction.data)], - }) + const cell = Cell.fromBase64(await this.sign(omniTransaction)) await this.openWallet.send(cell) @@ -98,7 +102,6 @@ export class OmniSignerTON extends Omni assert(transactionState != null, `Transaction '${transactionHash}' missing from the API`) assert(!hasTransactionBounced(transactionState), `Transaction '${transactionHash}' has bounced`) assert(isTransactionSuccessful(transactionState), `Transaction '${transactionHash}' has not succeeded`) - return { transactionHash } }, } @@ -109,6 +112,7 @@ export class OmniSignerTON extends Omni enabled: true, numAttempts: Number.POSITIVE_INFINITY, maxDelay: 1_000, + onRetry: () => {}, //need this to prevent trying to log error that is too large }) protected async waitForCellSubmitted(cell: Cell, limit: number = 100) { const transactions = await this.client.getTransactions(this.wallet.address, { @@ -117,7 +121,6 @@ export class OmniSignerTON extends Omni const transaction = transactions.find(createIsCellInTransaction(cell)) assert(transaction != null, `Failed to locate cell ${cell.toString()} among the last ${limit} transactions`) - return transaction } } diff --git a/packages/devtools-ton/test/transactions/serde.test.ts b/packages/devtools-ton/test/transactions/serde.test.ts index 963b57f90..ff3e29a02 100644 --- a/packages/devtools-ton/test/transactions/serde.test.ts +++ b/packages/devtools-ton/test/transactions/serde.test.ts @@ -5,10 +5,12 @@ import { deserialize, deserializeMessage, deserializeMessageRelaxed, + deserializeMessagesRelaxed, messageRelaxedToCell, messageToCell, serializeMessage, serializeMessageRelaxed, + serializeMessagesRelaxed, } from '@/transactions/serde' describe('transactions/serde', () => { @@ -136,6 +138,45 @@ describe('transactions/serde', () => { }) }) + describe('serializeMessagesRelaxed', () => { + it('should serialize and deserialize an array of internal messages', () => { + fc.assert( + fc.property(fc.bigInt({ min: 0n, max: 1000n }), fc.boolean(), cellArbitrary, (value, bounce, body) => { + const messageRelaxed = internal({ + value, + to: wallet.address, + bounce, + body, + }) + const messageRelaxed2 = internal({ + value, + to: wallet.address, + bounce, + body, + }) + + const serialized = serializeMessagesRelaxed([messageRelaxed, messageRelaxed2]) + const deserialized = deserializeMessagesRelaxed(serialized) + + // FIXME Jest comparison operators don't work well with message objects + // so a workaround expectation is used + // + // See https://github.com/ton-core/ton-core/blob/e0ed819973daf0484dfbacd0c30a0dcfe4714f8d/src/types/MessageRelaxed.spec.ts + const serializedData = serialized.split(',') + expect( + Cell.fromBase64(serializedData[0]!).equals(messageRelaxedToCell(messageRelaxed)) + ).toBeTruthy() + expect( + Cell.fromBase64(serializedData[1]!).equals(messageRelaxedToCell(messageRelaxed2)) + ).toBeTruthy() + + const reserialized = serializeMessagesRelaxed(deserialized) + expect(reserialized).toEqual(serialized) + }) + ) + }) + }) + describe('deserialize', () => { it('should throw if passed an invalid message', () => { fc.assert( diff --git a/packages/devtools-ton/test/transactions/signer.test.ts b/packages/devtools-ton/test/transactions/signer.test.ts index c0857e25f..adae1b01b 100644 --- a/packages/devtools-ton/test/transactions/signer.test.ts +++ b/packages/devtools-ton/test/transactions/signer.test.ts @@ -1,7 +1,7 @@ import { OmniSignerTON, serializeMessageRelaxed } from '@/transactions' import { OmniTransaction } from '@layerzerolabs/devtools' import { EndpointId } from '@layerzerolabs/lz-definitions' -import { internal, WalletContractV3R2, WalletContractV4 } from '@ton/ton' +import { internal, TonClient, WalletContractV3R2, WalletContractV4 } from '@ton/ton' import { mnemonicToWalletKey } from '@ton/crypto' describe('transactions/signer', () => { @@ -9,17 +9,18 @@ describe('transactions/signer', () => { const mnemonic = process.env.MNEMONIC_TON || 'spoon key tower goat diesel labor camera movie chaos entry panic ceiling panel move sibling genius grunt rival buzz just velvet medal butter foam' + const client = new TonClient({ endpoint }) describe('OmniSignerTON', () => { describe('signAndSend', () => { it('should send a token transfer', async () => { - const eid = EndpointId.TRON_SANDBOX + const eid = EndpointId.TON_V2_SANDBOX const keyPair = await mnemonicToWalletKey(mnemonic.split(' ')) const signer = new OmniSignerTON( - EndpointId.TRON_SANDBOX, + EndpointId.TON_V2_SANDBOX, keyPair, - endpoint, - WalletContractV3R2.create({ workchain: 0, publicKey: keyPair.publicKey, walletId: 42 }) + WalletContractV3R2.create({ workchain: 0, publicKey: keyPair.publicKey, walletId: 42 }), + client ) const anotherWallet = WalletContractV4.create({ diff --git a/packages/devtools-ton/tsconfig.json b/packages/devtools-ton/tsconfig.json index c208b5a1e..7e48a0c98 100644 --- a/packages/devtools-ton/tsconfig.json +++ b/packages/devtools-ton/tsconfig.json @@ -4,6 +4,8 @@ "include": ["src", "test", "*.config.ts"], "compilerOptions": { "experimentalDecorators": true, + "target": "ES2020", + "module": "commonjs", "types": ["node", "jest"], "paths": { "@/*": ["./src/*"] diff --git a/packages/devtools/package.json b/packages/devtools/package.json index dcec86165..ca16961b3 100644 --- a/packages/devtools/package.json +++ b/packages/devtools/package.json @@ -38,8 +38,8 @@ "devDependencies": { "@ethersproject/bytes": "~5.7.0", "@ethersproject/constants": "~5.7.0", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/test-devtools": "~0.4.1", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", @@ -55,8 +55,8 @@ }, "peerDependencies": { "@ethersproject/bytes": "~5.7.0", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "zod": "^3.22.4" }, "publishConfig": { diff --git a/packages/devtools/test/omnigraph/__snapshots__/format.test.ts.snap b/packages/devtools/test/omnigraph/__snapshots__/format.test.ts.snap index d4e3c284f..fcefb0194 100644 --- a/packages/devtools/test/omnigraph/__snapshots__/format.test.ts.snap +++ b/packages/devtools/test/omnigraph/__snapshots__/format.test.ts.snap @@ -214,6 +214,20 @@ exports[`omnigraph/format formatEid should format 330 correctly 1`] = `"ISLANDER exports[`omnigraph/format formatEid should format 331 correctly 1`] = `"MP1_MAINNET"`; +exports[`omnigraph/format formatEid should format 332 correctly 1`] = `"SONIC_MAINNET"`; + +exports[`omnigraph/format formatEid should format 333 correctly 1`] = `"ROOTSTOCK_MAINNET"`; + +exports[`omnigraph/format formatEid should format 334 correctly 1`] = `"SOPHON_MAINNET"`; + +exports[`omnigraph/format formatEid should format 335 correctly 1`] = `"SWELL_MAINNET"`; + +exports[`omnigraph/format formatEid should format 336 correctly 1`] = `"FLOW_MAINNET"`; + +exports[`omnigraph/format formatEid should format 337 correctly 1`] = `"BL4_MAINNET"`; + +exports[`omnigraph/format formatEid should format 338 correctly 1`] = `"BL5_MAINNET"`; + exports[`omnigraph/format formatEid should format 420 correctly 1`] = `"TRON_MAINNET"`; exports[`omnigraph/format formatEid should format 10102 correctly 1`] = `"BSC_TESTNET"`; @@ -544,6 +558,16 @@ exports[`omnigraph/format formatEid should format 10352 correctly 1`] = `"NIBIRU exports[`omnigraph/format formatEid should format 10353 correctly 1`] = `"SWELL_TESTNET"`; +exports[`omnigraph/format formatEid should format 10354 correctly 1`] = `"MEMECOREFORMICARIUM_TESTNET"`; + +exports[`omnigraph/format formatEid should format 10355 correctly 1`] = `"APEXFUSIONNEXUS_TESTNET"`; + +exports[`omnigraph/format formatEid should format 10356 correctly 1`] = `"GOAT_TESTNET"`; + +exports[`omnigraph/format formatEid should format 10357 correctly 1`] = `"BL6_TESTNET"`; + +exports[`omnigraph/format formatEid should format 10358 correctly 1`] = `"INK_TESTNET"`; + exports[`omnigraph/format formatEid should format 10420 correctly 1`] = `"TRON_TESTNET"`; exports[`omnigraph/format formatEid should format 20008 correctly 1`] = `"APTOS_SANDBOX"`; @@ -786,6 +810,20 @@ exports[`omnigraph/format formatEid should format 30330 correctly 1`] = `"ISLAND exports[`omnigraph/format formatEid should format 30331 correctly 1`] = `"MP1_V2_MAINNET"`; +exports[`omnigraph/format formatEid should format 30332 correctly 1`] = `"SONIC_V2_MAINNET"`; + +exports[`omnigraph/format formatEid should format 30333 correctly 1`] = `"ROOTSTOCK_V2_MAINNET"`; + +exports[`omnigraph/format formatEid should format 30334 correctly 1`] = `"SOPHON_V2_MAINNET"`; + +exports[`omnigraph/format formatEid should format 30335 correctly 1`] = `"SWELL_V2_MAINNET"`; + +exports[`omnigraph/format formatEid should format 30336 correctly 1`] = `"FLOW_V2_MAINNET"`; + +exports[`omnigraph/format formatEid should format 30337 correctly 1`] = `"BL4_V2_MAINNET"`; + +exports[`omnigraph/format formatEid should format 30338 correctly 1`] = `"BL5_V2_MAINNET"`; + exports[`omnigraph/format formatEid should format 30343 correctly 1`] = `"TON_V2_MAINNET"`; exports[`omnigraph/format formatEid should format 30420 correctly 1`] = `"TRON_V2_MAINNET"`; @@ -1120,6 +1158,16 @@ exports[`omnigraph/format formatEid should format 40352 correctly 1`] = `"NIBIRU exports[`omnigraph/format formatEid should format 40353 correctly 1`] = `"SWELL_V2_TESTNET"`; +exports[`omnigraph/format formatEid should format 40354 correctly 1`] = `"MEMECOREFORMICARIUM_V2_TESTNET"`; + +exports[`omnigraph/format formatEid should format 40355 correctly 1`] = `"APEXFUSIONNEXUS_V2_TESTNET"`; + +exports[`omnigraph/format formatEid should format 40356 correctly 1`] = `"GOAT_V2_TESTNET"`; + +exports[`omnigraph/format formatEid should format 40357 correctly 1`] = `"BL6_V2_TESTNET"`; + +exports[`omnigraph/format formatEid should format 40358 correctly 1`] = `"INK_V2_TESTNET"`; + exports[`omnigraph/format formatEid should format 40420 correctly 1`] = `"TRON_V2_TESTNET"`; exports[`omnigraph/format formatEid should format 50008 correctly 1`] = `"APTOS_V2_SANDBOX"`; diff --git a/packages/export-deployments/package.json b/packages/export-deployments/package.json index 049bff9ed..8aec073ce 100644 --- a/packages/export-deployments/package.json +++ b/packages/export-deployments/package.json @@ -30,7 +30,7 @@ "typescript": "^5.4.4" }, "devDependencies": { - "@layerzerolabs/io-devtools": "~0.1.12", + "@layerzerolabs/io-devtools": "~0.1.14", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", "@types/jest": "^29.5.12", diff --git a/packages/omnicounter-devtools-evm/package.json b/packages/omnicounter-devtools-evm/package.json index 23337b71c..795177a05 100644 --- a/packages/omnicounter-devtools-evm/package.json +++ b/packages/omnicounter-devtools-evm/package.json @@ -35,7 +35,7 @@ "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/omnicounter-devtools": "~3.0.1", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", @@ -54,7 +54,7 @@ "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/omnicounter-devtools": "~3.0.1", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", diff --git a/packages/omnicounter-devtools/package.json b/packages/omnicounter-devtools/package.json index ba9520b02..304350536 100644 --- a/packages/omnicounter-devtools/package.json +++ b/packages/omnicounter-devtools/package.json @@ -32,7 +32,7 @@ }, "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/protocol-devtools": "~1.1.1", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", @@ -46,7 +46,7 @@ }, "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/protocol-devtools": "~1.1.1", "zod": "^3.22.4" }, diff --git a/packages/protocol-devtools-evm/package.json b/packages/protocol-devtools-evm/package.json index 72e55b581..3ede0c1e8 100644 --- a/packages/protocol-devtools-evm/package.json +++ b/packages/protocol-devtools-evm/package.json @@ -47,8 +47,8 @@ "@ethersproject/providers": "^5.7.2", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-sdk-v2": "^3.0.21", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/test-devtools": "~0.4.1", @@ -72,8 +72,8 @@ "@ethersproject/providers": "^5.7.0", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/protocol-devtools": "~1.1.1", "zod": "^3.22.4" }, diff --git a/packages/protocol-devtools-solana/package.json b/packages/protocol-devtools-solana/package.json index 7d915e100..5404134a9 100644 --- a/packages/protocol-devtools-solana/package.json +++ b/packages/protocol-devtools-solana/package.json @@ -44,8 +44,8 @@ "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-solana": "~1.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-solana-sdk-v2": "^3.0.0", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "~1.1.1", @@ -69,8 +69,8 @@ "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-solana": "~1.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-solana-sdk-v2": "^3.0.0", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "^1.1.1", diff --git a/packages/protocol-devtools/package.json b/packages/protocol-devtools/package.json index 113a190e6..fbb020eb1 100644 --- a/packages/protocol-devtools/package.json +++ b/packages/protocol-devtools/package.json @@ -34,7 +34,7 @@ "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/io-devtools": "~0.1.14", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/test-devtools": "~0.4.1", "@swc/core": "^1.4.0", "@swc/jest": "^0.2.36", @@ -50,7 +50,7 @@ "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/io-devtools": "~0.1.14", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "zod": "^3.22.4" }, "publishConfig": { diff --git a/packages/test-devtools/package.json b/packages/test-devtools/package.json index c702f390d..1d90734cf 100644 --- a/packages/test-devtools/package.json +++ b/packages/test-devtools/package.json @@ -33,7 +33,7 @@ "@scure/bip39": "~1.2.2" }, "devDependencies": { - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "bs58": "^6.0.0", "fast-check": "^3.15.1", "ts-node": "^10.9.2", @@ -42,7 +42,7 @@ "typescript": "^5.4.4" }, "peerDependencies": { - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "bs58": "^6.0.0", "fast-check": "^3.14.0" }, diff --git a/packages/toolbox-hardhat/package.json b/packages/toolbox-hardhat/package.json index 790efe4ec..8f85b81fe 100644 --- a/packages/toolbox-hardhat/package.json +++ b/packages/toolbox-hardhat/package.json @@ -38,8 +38,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-sdk-v1": "^3.0.12", "@layerzerolabs/lz-evm-sdk-v2": "^3.0.21", "@layerzerolabs/lz-v2-utilities": "^3.0.12", diff --git a/packages/ua-devtools-evm-hardhat/package.json b/packages/ua-devtools-evm-hardhat/package.json index 88cb56d7a..3001538f9 100644 --- a/packages/ua-devtools-evm-hardhat/package.json +++ b/packages/ua-devtools-evm-hardhat/package.json @@ -47,8 +47,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "~1.1.1", @@ -76,8 +76,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.13", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", "@layerzerolabs/ua-devtools": "~3.0.1", diff --git a/packages/ua-devtools-evm/package.json b/packages/ua-devtools-evm/package.json index 91997279c..915c09fd0 100644 --- a/packages/ua-devtools-evm/package.json +++ b/packages/ua-devtools-evm/package.json @@ -42,8 +42,8 @@ "@ethersproject/providers": "^5.7.0", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", @@ -65,8 +65,8 @@ "@ethersproject/contracts": "^5.7.0", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", diff --git a/packages/ua-devtools-solana/package.json b/packages/ua-devtools-solana/package.json index 7cc3663e3..da69522b7 100644 --- a/packages/ua-devtools-solana/package.json +++ b/packages/ua-devtools-solana/package.json @@ -44,8 +44,8 @@ "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-solana": "~1.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-solana-sdk-v2": "^3.0.0", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/oft-v2-solana-sdk": "^3.0.0", @@ -75,8 +75,8 @@ "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-solana": "~1.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-solana-sdk-v2": "^3.0.0", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/oft-v2-solana-sdk": "^3.0.0", diff --git a/packages/ua-devtools/package.json b/packages/ua-devtools/package.json index 53c51e50d..28f6ae818 100644 --- a/packages/ua-devtools/package.json +++ b/packages/ua-devtools/package.json @@ -32,8 +32,8 @@ }, "devDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/test-devtools": "~0.4.1", @@ -50,8 +50,8 @@ }, "peerDependencies": { "@layerzerolabs/devtools": "~0.4.2", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-v2-utilities": "^3.0.12", "@layerzerolabs/protocol-devtools": "~1.1.1", "zod": "^3.22.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38bffa64b..19582aee9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -84,8 +84,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.15)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.1.0)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -198,8 +198,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -312,8 +312,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.1)(solidity-bytes-utils@0.8.2) @@ -423,8 +423,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.1.0)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -537,8 +537,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.1)(solidity-bytes-utils@0.8.2) @@ -651,8 +651,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -780,11 +780,11 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/io-devtools': - specifier: ~0.1.11 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -993,8 +993,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -1122,8 +1122,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.0.2)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -1233,8 +1233,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.1.0)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -1356,8 +1356,8 @@ importers: specifier: ~2.3.39 version: 2.3.44(typescript@5.5.3) '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.1.0)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -1507,7 +1507,7 @@ importers: specifier: ~1.0.0 version: link:../devtools-evm '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-v2-utilities': specifier: ^3.0.12 @@ -1556,7 +1556,7 @@ importers: version: 1.10.0 devDependencies: '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@swc/core': specifier: ^1.4.0 @@ -1641,7 +1641,7 @@ importers: specifier: ~1.0.0 version: link:../devtools-evm '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-v2-utilities': specifier: ^3.0.12 @@ -1702,11 +1702,11 @@ importers: specifier: ~5.7.0 version: 5.7.0 '@layerzerolabs/io-devtools': - specifier: ~0.1.13 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/test-devtools': specifier: ~0.4.1 version: link:../test-devtools @@ -1754,7 +1754,7 @@ importers: specifier: ~0.4.0 version: link:../devtools '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/ua-devtools': specifier: ~3.0.0 @@ -1842,11 +1842,11 @@ importers: specifier: ~0.4.2 version: link:../devtools '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/test-devtools': specifier: ~0.4.1 version: link:../test-devtools @@ -1930,11 +1930,11 @@ importers: specifier: ~1.0.1 version: link:../devtools-evm '@layerzerolabs/io-devtools': - specifier: ~0.1.13 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-sdk-v1': specifier: ^3.0.12 version: 3.0.12 @@ -2006,11 +2006,11 @@ importers: specifier: ~0.4.2 version: link:../devtools '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/test-devtools': specifier: ~0.4.1 version: link:../test-devtools @@ -2067,31 +2067,38 @@ importers: version: 3.22.4 packages/devtools-ton: + dependencies: + '@ton/core': + specifier: ^0.59.0 + version: 0.59.0(@ton/crypto@3.3.0) + '@ton/crypto': + specifier: ^3.3.0 + version: 3.3.0 + '@ton/ton': + specifier: ^15.1.0 + version: 15.1.0(@ton/core@0.59.0)(@ton/crypto@3.3.0) + p-memoize: + specifier: ~4.0.4 + version: 4.0.4 devDependencies: '@layerzerolabs/devtools': specifier: ~0.4.2 version: link:../devtools '@layerzerolabs/io-devtools': - specifier: ~0.1.13 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 + '@layerzerolabs/lz-ton-sdk-v2': + specifier: ^3.0.27 + version: 3.0.27 '@swc/core': specifier: ^1.4.0 version: 1.4.0 '@swc/jest': specifier: ^0.2.36 version: 0.2.36(@swc/core@1.4.0) - '@ton/core': - specifier: ^0.59.0 - version: 0.59.0(@ton/crypto@3.3.0) - '@ton/crypto': - specifier: ^3.3.0 - version: 3.3.0 - '@ton/ton': - specifier: ^15.1.0 - version: 15.1.0(@ton/core@0.59.0)(@ton/crypto@3.3.0) '@types/jest': specifier: ^29.5.12 version: 29.5.12 @@ -2114,7 +2121,7 @@ importers: specifier: ~8.0.1 version: 8.0.1(@swc/core@1.4.0)(ts-node@10.9.2)(typescript@5.5.3) typescript: - specifier: ^5.4.4 + specifier: ^5.3.3 version: 5.5.3 packages/export-deployments: @@ -2124,7 +2131,7 @@ importers: version: 5.5.3 devDependencies: '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@swc/core': specifier: ^1.4.0 @@ -2458,8 +2465,8 @@ importers: specifier: ~0.4.2 version: link:../devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/protocol-devtools': specifier: ~1.1.1 version: link:../protocol-devtools @@ -2504,8 +2511,8 @@ importers: specifier: ~1.0.1 version: link:../devtools-evm '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/omnicounter-devtools': specifier: ~3.0.1 version: link:../omnicounter-devtools @@ -2591,8 +2598,8 @@ importers: specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/test-devtools': specifier: ~0.4.1 version: link:../test-devtools @@ -2658,11 +2665,11 @@ importers: specifier: ~1.0.1 version: link:../devtools-evm '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-sdk-v2': specifier: ^3.0.21 version: 3.0.22 @@ -2725,11 +2732,11 @@ importers: specifier: ~1.0.3 version: link:../devtools-solana '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-solana-sdk-v2': specifier: ^3.0.0 version: 3.0.0(fastestsmallesttextencoderdecoder@1.0.22) @@ -2795,8 +2802,8 @@ importers: version: 1.2.2 devDependencies: '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 bs58: specifier: ^6.0.0 version: 6.0.0 @@ -3006,11 +3013,11 @@ importers: specifier: ~2.0.3 version: link:../devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-sdk-v1': specifier: ^3.0.12 version: 3.0.12 @@ -3100,11 +3107,11 @@ importers: specifier: ~0.4.2 version: link:../devtools '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-v2-utilities': specifier: ^3.0.12 version: 3.0.12 @@ -3176,11 +3183,11 @@ importers: specifier: ~1.0.1 version: link:../devtools-evm '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-v2-utilities': specifier: ^3.0.12 version: 3.0.12 @@ -3261,11 +3268,11 @@ importers: specifier: ~2.0.3 version: link:../devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.13 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.15)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.1.0)(hardhat-deploy@0.12.1)(solidity-bytes-utils@0.8.2) @@ -3343,11 +3350,11 @@ importers: specifier: ~1.0.3 version: link:../devtools-solana '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-solana-sdk-v2': specifier: ^3.0.0 version: 3.0.0(fastestsmallesttextencoderdecoder@1.0.22) @@ -3511,11 +3518,11 @@ importers: specifier: ~2.0.3 version: link:../../packages/devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.15)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.4)(solidity-bytes-utils@0.8.2) @@ -3649,11 +3656,11 @@ importers: specifier: ~2.0.3 version: link:../../packages/devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.15)(@openzeppelin/contracts-upgradeable@4.9.5)(@openzeppelin/contracts@4.9.5)(hardhat-deploy@0.12.1)(solidity-bytes-utils@0.8.2) @@ -3766,8 +3773,8 @@ importers: specifier: ~1.0.1 version: link:../../packages/devtools-evm '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/test-devtools': specifier: ~0.4.1 version: link:../../packages/test-devtools @@ -3814,7 +3821,7 @@ importers: specifier: ~0.0.13 version: link:../../packages/export-deployments '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/test-setup-devtools-evm-hardhat': specifier: ~6.0.0 @@ -3901,11 +3908,11 @@ importers: specifier: ~2.0.3 version: link:../../packages/devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/protocol-devtools': specifier: ~1.1.1 version: link:../../packages/protocol-devtools @@ -3979,11 +3986,11 @@ importers: specifier: ~2.0.3 version: link:../../packages/devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.15)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.1)(solidity-bytes-utils@0.8.2) @@ -4117,11 +4124,11 @@ importers: specifier: ~2.0.3 version: link:../../packages/devtools-evm-hardhat '@layerzerolabs/io-devtools': - specifier: ~0.1.12 + specifier: ~0.1.14 version: link:../../packages/io-devtools '@layerzerolabs/lz-definitions': - specifier: ^3.0.21 - version: 3.0.21 + specifier: ^3.0.27 + version: 3.0.27 '@layerzerolabs/lz-evm-messagelib-v2': specifier: ^3.0.12 version: 3.0.12(@axelar-network/axelar-gmp-sdk-solidity@5.10.0)(@chainlink/contracts-ccip@0.7.6)(@eth-optimism/contracts@0.6.0)(@layerzerolabs/lz-evm-protocol-v2@3.0.12)(@layerzerolabs/lz-evm-v1-0.7@3.0.12)(@openzeppelin/contracts-upgradeable@5.1.0)(@openzeppelin/contracts@5.0.2)(hardhat-deploy@0.12.1)(solidity-bytes-utils@0.8.2) @@ -6398,8 +6405,8 @@ packages: - utf-8-validate dev: true - /@layerzerolabs/lz-definitions@3.0.21: - resolution: {integrity: sha512-LirBj6+rODkk97wnZ/Z2zK8NPyopOh3taj3GG1tOVBILkoHO2j5HbXM16QOwHzmQeU/OrdnzCS5tPV225KVQmA==} + /@layerzerolabs/lz-definitions@3.0.27: + resolution: {integrity: sha512-XfYKb2BHef+rLRbBAQeys6ZqFrVIjiIgHKeztvMKgHigrlKjwL/5QyH/F9KdPP6buy25l5FbOlYVujCHb/li5A==} dependencies: tiny-invariant: 1.3.3 @@ -6959,7 +6966,7 @@ packages: /@layerzerolabs/lz-foundation@3.0.0: resolution: {integrity: sha512-vYuuZAfIaRQUEGaKnV4dCOiFTENhfc2w+Fcnza/T7+O/JIKL2p/GqdxcC21HqrMNdLGMmSWnUqLlou+eCk3ROQ==} dependencies: - '@layerzerolabs/lz-definitions': 3.0.21 + '@layerzerolabs/lz-definitions': 3.0.27 '@layerzerolabs/lz-utilities': 3.0.0 '@noble/ed25519': 1.7.3 '@noble/hashes': 1.4.0 @@ -6982,7 +6989,7 @@ packages: '@ethersproject/sha2': 5.7.0 '@ethersproject/solidity': 5.7.0 '@layerzerolabs/lz-corekit-solana': 3.0.0 - '@layerzerolabs/lz-definitions': 3.0.21 + '@layerzerolabs/lz-definitions': 3.0.27 '@layerzerolabs/lz-v2-utilities': 3.0.12 '@metaplex-foundation/beet': 0.7.2 '@metaplex-foundation/beet-solana': 0.4.1 @@ -7002,12 +7009,26 @@ packages: - utf-8-validate dev: true + /@layerzerolabs/lz-ton-sdk-v2@3.0.27: + resolution: {integrity: sha512-AU1uOzmLjWvyHdJGTo689bXLsCS/QAmfQSjvZ4544muLfpGVLl3l6lOl8DwmN1UQuwKKK94C5rEvoElVUYf0zQ==} + dependencies: + '@ton/core': 0.59.0(@ton/crypto@3.3.0) + '@ton/crypto': 3.3.0 + bigint-buffer: 1.1.5 + crc-32: 1.2.2 + ethers: 5.7.2 + tiny-invariant: 1.3.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: true + /@layerzerolabs/lz-utilities@3.0.0: resolution: {integrity: sha512-vlQXc4BdkNNMrQT0Zp4X20GLss6xwd3rzD0kYI6W3JnhCLrUo03FEZLbliTf6t2F3IgcQf80KyOQKRewMoU+ow==} dependencies: '@ethersproject/bytes': 5.7.0 '@ethersproject/providers': 5.7.2 - '@layerzerolabs/lz-definitions': 3.0.21 + '@layerzerolabs/lz-definitions': 3.0.27 '@noble/hashes': 1.4.0 '@noble/secp256k1': 1.7.1 '@solana/web3.js': 1.95.8 @@ -8844,13 +8865,11 @@ packages: dependencies: '@ton/crypto': 3.3.0 symbol.inspect: 1.0.1 - dev: true /@ton/crypto-primitives@2.1.0: resolution: {integrity: sha512-PQesoyPgqyI6vzYtCXw4/ZzevePc4VGcJtFwf08v10OevVJHVfW238KBdpj1kEDQkxWLeuNHEpTECNFKnP6tow==} dependencies: jssha: 3.2.0 - dev: true /@ton/crypto@3.3.0: resolution: {integrity: sha512-/A6CYGgA/H36OZ9BbTaGerKtzWp50rg67ZCH2oIjV1NcrBaCK9Z343M+CxedvM7Haf3f/Ee9EhxyeTp0GKMUpA==} @@ -8858,7 +8877,6 @@ packages: '@ton/crypto-primitives': 2.1.0 jssha: 3.2.0 tweetnacl: 1.0.3 - dev: true /@ton/ton@15.1.0(@ton/core@0.59.0)(@ton/crypto@3.3.0): resolution: {integrity: sha512-almetcfTu7jLjcNcEEPB7wAc8yl90ES1M//sOr1QE+kv7RbmEvMkaPSc7kFxzs10qrjIPKxlodBJlMSWP5LuVQ==} @@ -8875,7 +8893,7 @@ packages: zod: 3.22.4 transitivePeerDependencies: - debug - dev: true + dev: false /@trufflesuite/bigint-buffer@1.1.9: resolution: {integrity: sha512-bdM5cEGCOhDSwminryHJbRmXc1x7dPKg6Pqns3qyTwFlxsqUgxE29lsERS3PlIW1HTjoIGMUqsk1zQQwST1Yxw==} @@ -9964,7 +9982,6 @@ packages: proxy-from-env: 1.1.0 transitivePeerDependencies: - debug - dev: true /babel-jest@29.7.0(@babel/core@7.23.9): resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} @@ -11111,7 +11128,6 @@ packages: /dataloader@2.2.2: resolution: {integrity: sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==} - dev: true /debug@2.6.9: resolution: {integrity: sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==} @@ -12896,7 +12912,6 @@ packages: optional: true dependencies: debug: 4.3.7 - dev: true /for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} @@ -12951,7 +12966,6 @@ packages: asynckit: 0.4.0 combined-stream: 1.0.8 mime-types: 2.1.35 - dev: true /forwarded@0.2.0: resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} @@ -14982,7 +14996,6 @@ packages: /jssha@3.2.0: resolution: {integrity: sha512-QuruyBENDWdN4tZwJbQq7/eAK85FqrI4oDbXjy5IBhYD+2pTJyBUWZe8ctWaCkrV0gy6AaelgOZZBMeswEa/6Q==} - dev: true /jsx-ast-utils@3.3.5: resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==} @@ -16514,7 +16527,6 @@ packages: /proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} - dev: true /prr@1.0.1: resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} @@ -17936,7 +17948,6 @@ packages: /symbol.inspect@1.0.1: resolution: {integrity: sha512-YQSL4duoHmLhsTD1Pw8RW6TZ5MaTX5rXJnqacJottr2P2LZBF/Yvrc3ku4NUpMOm8aM0KOCqM+UAkMA5HWQCzQ==} - dev: true /synckit@0.8.8: resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==} @@ -18053,7 +18064,6 @@ packages: /teslabot@1.5.0: resolution: {integrity: sha512-e2MmELhCgrgZEGo7PQu/6bmYG36IDH+YrBI1iGm6jovXkeDIGa3pZ2WSqRjzkuw2vt1EqfkZoV5GpXgqL8QJVg==} - dev: true /test-exclude@6.0.0: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} diff --git a/tests/devtools-cli-test/package.json b/tests/devtools-cli-test/package.json index 1315ba9b5..5bd931a79 100644 --- a/tests/devtools-cli-test/package.json +++ b/tests/devtools-cli-test/package.json @@ -29,8 +29,8 @@ "@layerzerolabs/devtools-cli": "~0.0.4", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-sdk-v1": "^3.0.12", diff --git a/tests/devtools-evm-hardhat-test/package.json b/tests/devtools-evm-hardhat-test/package.json index 786d3324c..5a56fab45 100644 --- a/tests/devtools-evm-hardhat-test/package.json +++ b/tests/devtools-evm-hardhat-test/package.json @@ -28,8 +28,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-sdk-v1": "^3.0.12", diff --git a/tests/devtools-evm-test/package.json b/tests/devtools-evm-test/package.json index 8f22d37b6..c47d38c8d 100644 --- a/tests/devtools-evm-test/package.json +++ b/tests/devtools-evm-test/package.json @@ -24,7 +24,7 @@ "@ethersproject/providers": "^5.7.2", "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/test-devtools": "~0.4.1", "@nomicfoundation/hardhat-ethers": "^3.0.5", "@nomiclabs/hardhat-ethers": "^2.2.3", diff --git a/tests/export-deployments-test/package.json b/tests/export-deployments-test/package.json index cb25b3cfa..647256c7e 100644 --- a/tests/export-deployments-test/package.json +++ b/tests/export-deployments-test/package.json @@ -19,7 +19,7 @@ "devDependencies": { "@babel/core": "^7.23.9", "@layerzerolabs/export-deployments": "~0.0.13", - "@layerzerolabs/io-devtools": "~0.1.12", + "@layerzerolabs/io-devtools": "~0.1.14", "@layerzerolabs/test-setup-devtools-evm-hardhat": "~6.0.0", "@layerzerolabs/toolbox-hardhat": "~0.6.0", "@nomicfoundation/hardhat-ethers": "^3.0.5", diff --git a/tests/test-setup-devtools-evm-hardhat/package.json b/tests/test-setup-devtools-evm-hardhat/package.json index 0f76967b3..8a652e984 100644 --- a/tests/test-setup-devtools-evm-hardhat/package.json +++ b/tests/test-setup-devtools-evm-hardhat/package.json @@ -34,8 +34,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", "@layerzerolabs/ua-devtools": "~3.0.1", @@ -54,7 +54,7 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/protocol-devtools": "~1.1.1", "@layerzerolabs/protocol-devtools-evm": "~3.0.1", "@layerzerolabs/ua-devtools": "~3.0.1", diff --git a/tests/ua-devtools-evm-hardhat-test/package.json b/tests/ua-devtools-evm-hardhat-test/package.json index 584868b9e..065488ff9 100644 --- a/tests/ua-devtools-evm-hardhat-test/package.json +++ b/tests/ua-devtools-evm-hardhat-test/package.json @@ -28,8 +28,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12", "@layerzerolabs/lz-evm-sdk-v1": "^3.0.12", diff --git a/tests/ua-devtools-evm-hardhat-v1-test/package.json b/tests/ua-devtools-evm-hardhat-v1-test/package.json index 5bfce3018..9d7aed98e 100644 --- a/tests/ua-devtools-evm-hardhat-v1-test/package.json +++ b/tests/ua-devtools-evm-hardhat-v1-test/package.json @@ -28,8 +28,8 @@ "@layerzerolabs/devtools": "~0.4.2", "@layerzerolabs/devtools-evm": "~1.0.1", "@layerzerolabs/devtools-evm-hardhat": "~2.0.3", - "@layerzerolabs/io-devtools": "~0.1.12", - "@layerzerolabs/lz-definitions": "^3.0.21", + "@layerzerolabs/io-devtools": "~0.1.14", + "@layerzerolabs/lz-definitions": "^3.0.27", "@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12", "@layerzerolabs/lz-evm-oapp-v1": "^3.0.12", "@layerzerolabs/lz-evm-protocol-v2": "^3.0.12",