diff --git a/packages/protocol-utils-evm/.eslintignore b/packages/protocol-utils-evm/.eslintignore new file mode 100644 index 0000000000..db4c6d9b67 --- /dev/null +++ b/packages/protocol-utils-evm/.eslintignore @@ -0,0 +1,2 @@ +dist +node_modules \ No newline at end of file diff --git a/packages/protocol-utils-evm/.prettierignore b/packages/protocol-utils-evm/.prettierignore new file mode 100644 index 0000000000..763301fc00 --- /dev/null +++ b/packages/protocol-utils-evm/.prettierignore @@ -0,0 +1,2 @@ +dist/ +node_modules/ \ No newline at end of file diff --git a/packages/protocol-utils-evm/README.md b/packages/protocol-utils-evm/README.md new file mode 100644 index 0000000000..8bedd5314b --- /dev/null +++ b/packages/protocol-utils-evm/README.md @@ -0,0 +1,29 @@ +

+ + LayerZero + +

+ +

@layerzerolabs/utils-evm

+ + +

+ + NPM Version + + Downloads + + NPM License +

+ +Utilities for working with LayerZero EVM contracts. + +## Installation + +```bash +yarn add @layerzerolabs/utils-evm + +pnpm add @layerzerolabs/utils-evm + +npm install @layerzerolabs/utils-evm +``` diff --git a/packages/protocol-utils-evm/jest.config.js b/packages/protocol-utils-evm/jest.config.js new file mode 100644 index 0000000000..16148cfb1d --- /dev/null +++ b/packages/protocol-utils-evm/jest.config.js @@ -0,0 +1,8 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + moduleNameMapper: { + '^@/(.*)$': '/src/$1', + }, +}; diff --git a/packages/protocol-utils-evm/package.json b/packages/protocol-utils-evm/package.json new file mode 100644 index 0000000000..07772cb011 --- /dev/null +++ b/packages/protocol-utils-evm/package.json @@ -0,0 +1,69 @@ +{ + "name": "@layerzerolabs/protocol-utils-evm", + "version": "0.0.1", + "private": true, + "description": "Utilities for LayerZero EVM projects", + "repository": { + "type": "git", + "url": "git+https://github.com/LayerZero-Labs/lz-utils.git", + "directory": "packages/protocol-utils-evm" + }, + "license": "MIT", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./*": { + "types": "./dist/*.d.ts", + "require": "./dist/*.js", + "import": "./dist/*.mjs" + } + }, + "main": "./dist/index.js", + "module": "./dist/index.mjs", + "types": "./dist/index.d.ts", + "files": [ + "./dist/index.*" + ], + "scripts": { + "prebuild": "npx tsc --noEmit -p tsconfig.build.json", + "build": "npx tsup", + "clean": "rm -rf dist", + "dev": "npx tsup --watch", + "lint": "npx eslint '**/*.{js,ts,json}'", + "test": "jest --passWithNoTests" + }, + "dependencies": { + "p-memoize": "~4.0.1" + }, + "devDependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/contracts": "^5.7.0", + "@ethersproject/providers": "^5.7.0", + "@layerzerolabs/lz-definitions": "~1.5.68", + "@layerzerolabs/protocol-utils": "~0.0.1", + "@layerzerolabs/test-utils": "~0.0.1", + "@layerzerolabs/utils": "~0.0.1", + "@layerzerolabs/utils-evm": "~0.0.1", + "@types/jest": "^29.5.10", + "fast-check": "^3.14.0", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1", + "tsup": "~8.0.1", + "typescript": "^5.2.2" + }, + "peerDependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/contracts": "^5.7.0", + "@ethersproject/providers": "^5.7.0", + "@layerzerolabs/lz-definitions": "~1.5.68", + "@layerzerolabs/protocol-utils": "~0.0.1", + "@layerzerolabs/utils": "~0.0.1", + "@layerzerolabs/utils-evm": "~0.0.1" + } +} \ No newline at end of file diff --git a/packages/utils-evm/src/endpoint/index.ts b/packages/protocol-utils-evm/src/endpoint/index.ts similarity index 100% rename from packages/utils-evm/src/endpoint/index.ts rename to packages/protocol-utils-evm/src/endpoint/index.ts diff --git a/packages/utils-evm/src/endpoint/sdk.ts b/packages/protocol-utils-evm/src/endpoint/sdk.ts similarity index 87% rename from packages/utils-evm/src/endpoint/sdk.ts rename to packages/protocol-utils-evm/src/endpoint/sdk.ts index a50fa3b322..6fd33e56eb 100644 --- a/packages/utils-evm/src/endpoint/sdk.ts +++ b/packages/protocol-utils-evm/src/endpoint/sdk.ts @@ -1,9 +1,7 @@ -import { formatEid, type IEndpoint } from '@layerzerolabs/utils' -import type { Address, OmniTransaction } from '@layerzerolabs/utils' +import type { IEndpoint } from '@layerzerolabs/protocol-utils' +import { formatEid, type Address, type OmniTransaction } from '@layerzerolabs/utils' import type { EndpointId } from '@layerzerolabs/lz-definitions' -import { OmniContract } from '@/omnigraph/types' -import { ignoreZero, makeZero } from '@/address' -import { omniContractToPoint } from '@/omnigraph/coordinates' +import { ignoreZero, makeZero, omniContractToPoint, type OmniContract } from '@layerzerolabs/utils-evm' export class Endpoint implements IEndpoint { constructor(public readonly contract: OmniContract) {} diff --git a/packages/protocol-utils-evm/src/index.ts b/packages/protocol-utils-evm/src/index.ts new file mode 100644 index 0000000000..ff12d505aa --- /dev/null +++ b/packages/protocol-utils-evm/src/index.ts @@ -0,0 +1,2 @@ +export * from './endpoint' +export * from './uln302' diff --git a/packages/utils-evm/src/uln302/index.ts b/packages/protocol-utils-evm/src/uln302/index.ts similarity index 100% rename from packages/utils-evm/src/uln302/index.ts rename to packages/protocol-utils-evm/src/uln302/index.ts diff --git a/packages/utils-evm/src/uln302/sdk.ts b/packages/protocol-utils-evm/src/uln302/sdk.ts similarity index 86% rename from packages/utils-evm/src/uln302/sdk.ts rename to packages/protocol-utils-evm/src/uln302/sdk.ts index 12d53598f0..5e4666fc54 100644 --- a/packages/utils-evm/src/uln302/sdk.ts +++ b/packages/protocol-utils-evm/src/uln302/sdk.ts @@ -1,8 +1,7 @@ -import { formatEid, type IUln302, type Uln302ExecutorConfig, type Uln302UlnConfig } from '@layerzerolabs/utils' -import type { OmniTransaction } from '@layerzerolabs/utils' import type { EndpointId } from '@layerzerolabs/lz-definitions' -import { OmniContract } from '@/omnigraph/types' -import { omniContractToPoint } from '@/omnigraph/coordinates' +import type { IUln302, Uln302ExecutorConfig, Uln302UlnConfig } from '@layerzerolabs/protocol-utils' +import { formatEid, type OmniTransaction } from '@layerzerolabs/utils' +import { omniContractToPoint, type OmniContract } from '@layerzerolabs/utils-evm' export class Uln302 implements IUln302 { constructor(public readonly contract: OmniContract) {} diff --git a/packages/protocol-utils-evm/tsconfig.build.json b/packages/protocol-utils-evm/tsconfig.build.json new file mode 100644 index 0000000000..0507620e8c --- /dev/null +++ b/packages/protocol-utils-evm/tsconfig.build.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["node_modules", "dist", "test"] +} diff --git a/packages/protocol-utils-evm/tsconfig.json b/packages/protocol-utils-evm/tsconfig.json new file mode 100644 index 0000000000..acecf27543 --- /dev/null +++ b/packages/protocol-utils-evm/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.json", + "exclude": ["dist", "node_modules"], + "include": ["src", "test", "*.config.ts"], + "compilerOptions": { + "types": ["node", "jest"], + "paths": { + "@/*": ["./src/*"] + } + } +} diff --git a/packages/protocol-utils-evm/tsup.config.ts b/packages/protocol-utils-evm/tsup.config.ts new file mode 100644 index 0000000000..7ef46a5ad1 --- /dev/null +++ b/packages/protocol-utils-evm/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from 'tsup' + +export default defineConfig([ + { + entry: ['src/index.ts'], + outDir: './dist', + clean: true, + dts: true, + sourcemap: true, + splitting: false, + treeshake: true, + format: ['esm', 'cjs'], + }, +]) diff --git a/packages/protocol-utils/.eslintignore b/packages/protocol-utils/.eslintignore new file mode 100644 index 0000000000..0f295f243e --- /dev/null +++ b/packages/protocol-utils/.eslintignore @@ -0,0 +1,3 @@ +.turbo +dist +node_modules \ No newline at end of file diff --git a/packages/protocol-utils/.eslintrc.json b/packages/protocol-utils/.eslintrc.json new file mode 100644 index 0000000000..be97c53fbb --- /dev/null +++ b/packages/protocol-utils/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "../../.eslintrc.json" +} diff --git a/packages/protocol-utils/README.md b/packages/protocol-utils/README.md new file mode 100644 index 0000000000..75fac67c1f --- /dev/null +++ b/packages/protocol-utils/README.md @@ -0,0 +1,31 @@ +

+ + LayerZero + +

+ +

@layerzerolabs/protocol-utils

+ + +

+ + NPM Version + + Downloads + + NPM License +

+ +## Installation + +```bash +npm install --save @layerzerolabs/protocol-utils +``` + +```bash +yarn install @layerzerolabs/protocol-utils +``` + +```bash +pnpm install @layerzerolabs/protocol-utils +``` diff --git a/packages/protocol-utils/jest.config.js b/packages/protocol-utils/jest.config.js new file mode 100644 index 0000000000..16148cfb1d --- /dev/null +++ b/packages/protocol-utils/jest.config.js @@ -0,0 +1,8 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + moduleNameMapper: { + '^@/(.*)$': '/src/$1', + }, +}; diff --git a/packages/protocol-utils/package.json b/packages/protocol-utils/package.json new file mode 100644 index 0000000000..f875c9f06c --- /dev/null +++ b/packages/protocol-utils/package.json @@ -0,0 +1,52 @@ +{ + "name": "@layerzerolabs/protocol-utils", + "version": "0.0.1", + "private": true, + "description": "Utilities for working with LayerZero protocol contracts", + "repository": { + "type": "git", + "url": "git+https://github.com/LayerZero-Labs/lz-utils.git", + "directory": "packages/protocol-utils" + }, + "license": "MIT", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "require": "./dist/index.js", + "import": "./dist/index.mjs" + } + }, + "main": "dist/index.js", + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "files": [ + "dist/", + "LICENSE" + ], + "scripts": { + "prebuild": "tsc -noEmit", + "build": "npx tsup", + "clean": "rm -rf dist", + "lint": "npx eslint '**/*.{js,ts,json}'", + "test": "jest --passWithNoTests" + }, + "devDependencies": { + "@layerzerolabs/lz-definitions": "~1.5.68", + "@layerzerolabs/test-utils": "~0.0.1", + "@layerzerolabs/utils": "~0.0.1", + "@types/jest": "^29.5.10", + "fast-check": "^3.14.0", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "ts-node": "^10.9.1", + "tslib": "~2.6.2", + "tsup": "~8.0.1", + "typescript": "^5.2.2", + "zod": "^3.22.4" + }, + "peerDependencies": { + "@layerzerolabs/lz-definitions": "~1.5.68", + "@layerzerolabs/utils": "~0.0.1", + "zod": "^3.22.4" + } +} \ No newline at end of file diff --git a/packages/utils/src/endpoint/config.ts b/packages/protocol-utils/src/endpoint/config.ts similarity index 95% rename from packages/utils/src/endpoint/config.ts rename to packages/protocol-utils/src/endpoint/config.ts index 417a347409..78d7a87cd6 100644 --- a/packages/utils/src/endpoint/config.ts +++ b/packages/protocol-utils/src/endpoint/config.ts @@ -1,6 +1,5 @@ -import { flattenTransactions } from '@/transactions/utils' +import { flattenTransactions, type OmniTransaction } from '@layerzerolabs/utils' import type { EndpointFactory, EndpointOmniGraph } from './types' -import type { OmniTransaction } from '@/transactions/types' export type EndpointConfigurator = (graph: EndpointOmniGraph, createSdk: EndpointFactory) => Promise diff --git a/packages/utils/src/endpoint/index.ts b/packages/protocol-utils/src/endpoint/index.ts similarity index 100% rename from packages/utils/src/endpoint/index.ts rename to packages/protocol-utils/src/endpoint/index.ts diff --git a/packages/utils/src/endpoint/types.ts b/packages/protocol-utils/src/endpoint/types.ts similarity index 83% rename from packages/utils/src/endpoint/types.ts rename to packages/protocol-utils/src/endpoint/types.ts index c93fc05bff..d3f8ec1f55 100644 --- a/packages/utils/src/endpoint/types.ts +++ b/packages/protocol-utils/src/endpoint/types.ts @@ -1,6 +1,4 @@ -import type { OmniGraph, OmniPointBasedFactory } from '@/omnigraph/types' -import type { OmniTransaction } from '@/transactions/types' -import type { Address } from '@/types' +import type { Address, OmniGraph, OmniPointBasedFactory, OmniTransaction } from '@layerzerolabs/utils' import type { EndpointId } from '@layerzerolabs/lz-definitions' export interface IEndpoint { diff --git a/packages/protocol-utils/src/index.ts b/packages/protocol-utils/src/index.ts new file mode 100644 index 0000000000..ff12d505aa --- /dev/null +++ b/packages/protocol-utils/src/index.ts @@ -0,0 +1,2 @@ +export * from './endpoint' +export * from './uln302' diff --git a/packages/utils/src/uln302/config.ts b/packages/protocol-utils/src/uln302/config.ts similarity index 92% rename from packages/utils/src/uln302/config.ts rename to packages/protocol-utils/src/uln302/config.ts index ad684edfa6..ff8a6f0740 100644 --- a/packages/utils/src/uln302/config.ts +++ b/packages/protocol-utils/src/uln302/config.ts @@ -1,6 +1,5 @@ -import { flattenTransactions } from '@/transactions/utils' +import { flattenTransactions, type OmniTransaction } from '@layerzerolabs/utils' import type { Uln302Factory, Uln302OmniGraph } from './types' -import type { OmniTransaction } from '@/transactions/types' export type Uln302Configurator = (graph: Uln302OmniGraph, createSdk: Uln302Factory) => Promise diff --git a/packages/utils/src/uln302/index.ts b/packages/protocol-utils/src/uln302/index.ts similarity index 100% rename from packages/utils/src/uln302/index.ts rename to packages/protocol-utils/src/uln302/index.ts diff --git a/packages/utils/src/uln302/types.ts b/packages/protocol-utils/src/uln302/types.ts similarity index 89% rename from packages/utils/src/uln302/types.ts rename to packages/protocol-utils/src/uln302/types.ts index 7c501c2c47..9ed21e7f3b 100644 --- a/packages/utils/src/uln302/types.ts +++ b/packages/protocol-utils/src/uln302/types.ts @@ -1,6 +1,4 @@ -import type { OmniGraph, OmniPointBasedFactory } from '@/omnigraph/types' -import type { OmniTransaction } from '@/transactions/types' -import type { Address } from '@/types' +import type { Address, OmniGraph, OmniPointBasedFactory, OmniTransaction } from '@layerzerolabs/utils' import type { EndpointId } from '@layerzerolabs/lz-definitions' export interface IUln302 { diff --git a/packages/protocol-utils/tsconfig.json b/packages/protocol-utils/tsconfig.json new file mode 100644 index 0000000000..f083b2ecb1 --- /dev/null +++ b/packages/protocol-utils/tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.json", + "exclude": ["dist", "node_modules"], + "include": ["src", "test"], + "compilerOptions": { + "types": ["node", "jest"], + "paths": { + "@/*": ["./src/*"] + } + } +} diff --git a/packages/protocol-utils/tsup.config.ts b/packages/protocol-utils/tsup.config.ts new file mode 100644 index 0000000000..b0e3739507 --- /dev/null +++ b/packages/protocol-utils/tsup.config.ts @@ -0,0 +1,12 @@ +import { defineConfig } from 'tsup' + +export default defineConfig({ + entry: ['src/index.ts'], + outDir: './dist', + clean: true, + dts: true, + sourcemap: true, + splitting: false, + treeshake: true, + format: ['esm', 'cjs'], +}) diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 81f8d9370d..1db46e98c6 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -37,7 +37,7 @@ "typescript": "^5.2.2" }, "peerDependencies": { - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "fast-check": "^3.14.0" } } \ No newline at end of file diff --git a/packages/ua-utils-evm-hardhat-test/package.json b/packages/ua-utils-evm-hardhat-test/package.json index 058bcaa10b..c179a3a188 100644 --- a/packages/ua-utils-evm-hardhat-test/package.json +++ b/packages/ua-utils-evm-hardhat-test/package.json @@ -26,6 +26,8 @@ "@layerzerolabs/lz-definitions": "~1.5.68", "@layerzerolabs/lz-evm-sdk-v1": "~1.5.68", "@layerzerolabs/lz-evm-sdk-v2": "~1.5.68", + "@layerzerolabs/protocol-utils": "~0.0.1", + "@layerzerolabs/protocol-utils-evm": "~0.0.1", "@layerzerolabs/ua-utils": "~0.1.0", "@layerzerolabs/ua-utils-evm": "~0.0.1", "@layerzerolabs/ua-utils-evm-hardhat": "~0.0.1", diff --git a/packages/ua-utils-evm-hardhat-test/test/__utils__/endpoint.ts b/packages/ua-utils-evm-hardhat-test/test/__utils__/endpoint.ts index f7fb6c31a7..663558722f 100644 --- a/packages/ua-utils-evm-hardhat-test/test/__utils__/endpoint.ts +++ b/packages/ua-utils-evm-hardhat-test/test/__utils__/endpoint.ts @@ -8,18 +8,19 @@ import { } from '@layerzerolabs/utils-evm-hardhat' import deploy from '../../deploy/001_bootstrap' import { EndpointId } from '@layerzerolabs/lz-definitions' -import { Endpoint, omniContractToPoint, Uln302 } from '@layerzerolabs/utils-evm' +import { omniContractToPoint } from '@layerzerolabs/utils-evm' import { configureEndpoint, EndpointEdgeConfig, EndpointFactory, Uln302NodeConfig, - formatOmniPoint, Uln302ExecutorConfig, configureUln302, Uln302Factory, Uln302UlnConfig, -} from '@layerzerolabs/utils' +} from '@layerzerolabs/protocol-utils' +import { Endpoint, Uln302 } from '@layerzerolabs/protocol-utils-evm' +import { formatOmniPoint } from '@layerzerolabs/utils' export const ethEndpoint = { eid: EndpointId.ETHEREUM_MAINNET, contractName: 'EndpointV2' } export const ethReceiveUln = { eid: EndpointId.ETHEREUM_MAINNET, contractName: 'ReceiveUln302' } diff --git a/packages/ua-utils-evm-hardhat-test/test/endpoint/config.test.ts b/packages/ua-utils-evm-hardhat-test/test/endpoint/config.test.ts index 1faad360e8..b9e0246c3d 100644 --- a/packages/ua-utils-evm-hardhat-test/test/endpoint/config.test.ts +++ b/packages/ua-utils-evm-hardhat-test/test/endpoint/config.test.ts @@ -1,4 +1,3 @@ -import { Endpoint, Uln302 } from '@layerzerolabs/utils-evm' import { createConnectedContractFactory } from '@layerzerolabs/utils-evm-hardhat' import type { OmniPoint } from '@layerzerolabs/utils' import { omniContractToPoint } from '@layerzerolabs/utils-evm' @@ -6,6 +5,7 @@ import { expect } from 'chai' import { describe } from 'mocha' import { EndpointId } from '@layerzerolabs/lz-definitions' import { defaultUlnConfig, setupDefaultEndpoint } from '../__utils__/endpoint' +import { Endpoint, Uln302 } from '@layerzerolabs/protocol-utils-evm' describe('endpoint/config', () => { const ethEndpoint = { eid: EndpointId.ETHEREUM_MAINNET, contractName: 'EndpointV2' } diff --git a/packages/ua-utils-evm-hardhat/package.json b/packages/ua-utils-evm-hardhat/package.json index 1352b4315c..6322d7db30 100644 --- a/packages/ua-utils-evm-hardhat/package.json +++ b/packages/ua-utils-evm-hardhat/package.json @@ -66,7 +66,7 @@ "@gnosis.pm/safe-core-sdk-types": "^1.0.0", "@gnosis.pm/safe-ethers-lib": "^1.0.0", "@gnosis.pm/safe-service-client": "1.1.1", - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "@layerzerolabs/ua-utils": "~0.1.0", "@layerzerolabs/utils": "~0.0.1", "@layerzerolabs/utils-evm-hardhat": "~0.0.2", diff --git a/packages/ua-utils-evm/package.json b/packages/ua-utils-evm/package.json index 18e963bb2e..f087f381a5 100644 --- a/packages/ua-utils-evm/package.json +++ b/packages/ua-utils-evm/package.json @@ -47,7 +47,7 @@ "zod": "^3.22.4" }, "peerDependencies": { - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "@layerzerolabs/ua-utils": "~0.0.1", "@layerzerolabs/utils-evm": "~0.0.1", "zod": "^3.22.4" diff --git a/packages/ua-utils/package.json b/packages/ua-utils/package.json index 9f58d1e0da..18706b1ef4 100644 --- a/packages/ua-utils/package.json +++ b/packages/ua-utils/package.json @@ -45,7 +45,7 @@ "zod": "^3.22.4" }, "peerDependencies": { - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "@layerzerolabs/utils": "~0.0.1", "zod": "^3.22.4" } diff --git a/packages/utils-evm-hardhat/package.json b/packages/utils-evm-hardhat/package.json index 452dbd24b9..6a056f1e55 100644 --- a/packages/utils-evm-hardhat/package.json +++ b/packages/utils-evm-hardhat/package.json @@ -67,7 +67,7 @@ "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "@layerzerolabs/utils-evm": "~0.0.1", "hardhat": "^2.19.0", "hardhat-deploy": "^0.9.19" diff --git a/packages/utils-evm/package.json b/packages/utils-evm/package.json index ec5d1f33ab..9e6cd09613 100644 --- a/packages/utils-evm/package.json +++ b/packages/utils-evm/package.json @@ -60,7 +60,7 @@ "@ethersproject/abstract-signer": "^5.7.0", "@ethersproject/contracts": "^5.7.0", "@ethersproject/providers": "^5.7.0", - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "@layerzerolabs/ua-utils": "~0.1.0", "@layerzerolabs/utils": "~0.0.1" } diff --git a/packages/utils-evm/src/index.ts b/packages/utils-evm/src/index.ts index fc14f8b3ad..a4a1506fc4 100644 --- a/packages/utils-evm/src/index.ts +++ b/packages/utils-evm/src/index.ts @@ -1,6 +1,4 @@ export * from './address' -export * from './endpoint' export * from './omnigraph' export * from './provider' export * from './signer' -export * from './uln302' diff --git a/packages/utils/package.json b/packages/utils/package.json index 17d899fd36..bf1c0d42b9 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -42,7 +42,7 @@ "zod": "^3.22.4" }, "peerDependencies": { - "@layerzerolabs/lz-definitions": "~1.5.67", + "@layerzerolabs/lz-definitions": "~1.5.68", "zod": "^3.22.4" } } \ No newline at end of file diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index eec1c23d26..a8fe8c8660 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,5 +1,3 @@ -export * from './endpoint' export * from './omnigraph' export * from './transactions' export * from './types' -export * from './uln302'