@layerzerolabs/lz-definitions
Advanced tools
Comparing version 1.5.52 to 1.5.53-rc.1
@@ -64,5 +64,3 @@ declare enum Chain { | ||
KIWI = "kiwi", | ||
CONFLUX = "conflux", | ||
EON = "eon", | ||
XPLA = "xpla" | ||
CONFLUX = "conflux" | ||
} | ||
@@ -127,5 +125,3 @@ | ||
ORDERLY_MAINNET = 213, | ||
SCROLL_MAINNET = 214, | ||
EON_MAINNET = 215, | ||
XPLA_MAINNET = 216 | ||
SCROLL_MAINNET = 214 | ||
} | ||
@@ -164,2 +160,3 @@ declare enum TestnetEndpointId { | ||
SOLANA_TESTNET = 10168, | ||
SCROLL_TESTNET = 10170, | ||
CATHAY_TESTNET = 10171, | ||
@@ -188,6 +185,3 @@ KAVA_TESTNET = 10172, | ||
ASTAR_TESTNET = 10210, | ||
CONFLUX_TESTNET = 10211, | ||
SCROLL_TESTNET = 10214, | ||
EON_TESTNET = 10215, | ||
XPLA_TESTNET = 10216 | ||
CONFLUX_TESTNET = 10211 | ||
} | ||
@@ -251,5 +245,3 @@ declare enum SandboxEndpointId { | ||
ORDERLY_V2_MAINNET = 30213, | ||
SCROLL_V2_MAINNET = 30214, | ||
EON_V2_MAINNET = 30215, | ||
XPLA_V2_MAINNET = 30216 | ||
SCROLL_V2_MAINNET = 30214 | ||
} | ||
@@ -309,5 +301,3 @@ declare enum TestnetV2EndpointId { | ||
ASTAR_V2_TESTNET = 40210, | ||
CONFLUX_V2_TESTNET = 40211, | ||
EON_V2_TESTNET = 40215, | ||
XPLA_V2_TESTNET = 40216 | ||
CONFLUX_V2_TESTNET = 40211 | ||
} | ||
@@ -381,4 +371,2 @@ declare enum SandboxV2EndpointId { | ||
CONFLUX_V2_TESTNET: TestnetV2EndpointId.CONFLUX_V2_TESTNET; | ||
EON_V2_TESTNET: TestnetV2EndpointId.EON_V2_TESTNET; | ||
XPLA_V2_TESTNET: TestnetV2EndpointId.XPLA_V2_TESTNET; | ||
ETHEREUM_V2_MAINNET: MainnetV2EndpointId.ETHEREUM_V2_MAINNET; | ||
@@ -434,4 +422,2 @@ BSC_V2_MAINNET: MainnetV2EndpointId.BSC_V2_MAINNET; | ||
SCROLL_V2_MAINNET: MainnetV2EndpointId.SCROLL_V2_MAINNET; | ||
EON_V2_MAINNET: MainnetV2EndpointId.EON_V2_MAINNET; | ||
XPLA_V2_MAINNET: MainnetV2EndpointId.XPLA_V2_MAINNET; | ||
BSC_SANDBOX: SandboxEndpointId.BSC_SANDBOX; | ||
@@ -473,2 +459,3 @@ AVALANCHE_SANDBOX: SandboxEndpointId.AVALANCHE_SANDBOX; | ||
SOLANA_TESTNET: TestnetEndpointId.SOLANA_TESTNET; | ||
SCROLL_TESTNET: TestnetEndpointId.SCROLL_TESTNET; | ||
CATHAY_TESTNET: TestnetEndpointId.CATHAY_TESTNET; | ||
@@ -498,5 +485,2 @@ KAVA_TESTNET: TestnetEndpointId.KAVA_TESTNET; | ||
CONFLUX_TESTNET: TestnetEndpointId.CONFLUX_TESTNET; | ||
SCROLL_TESTNET: TestnetEndpointId.SCROLL_TESTNET; | ||
EON_TESTNET: TestnetEndpointId.EON_TESTNET; | ||
XPLA_TESTNET: TestnetEndpointId.XPLA_TESTNET; | ||
ETHEREUM_MAINNET: MainnetEndpointId.ETHEREUM_MAINNET; | ||
@@ -552,4 +536,2 @@ BSC_MAINNET: MainnetEndpointId.BSC_MAINNET; | ||
SCROLL_MAINNET: MainnetEndpointId.SCROLL_MAINNET; | ||
EON_MAINNET: MainnetEndpointId.EON_MAINNET; | ||
XPLA_MAINNET: MainnetEndpointId.XPLA_MAINNET; | ||
}; | ||
@@ -690,7 +672,3 @@ type EndpointId = MainnetEndpointId | TestnetEndpointId | SandboxEndpointId | MainnetV2EndpointId | TestnetV2EndpointId | SandboxV2EndpointId; | ||
CONFLUX = "conflux", | ||
CONFLUX_TESTNET = "conflux-testnet", | ||
EON = "eon", | ||
EON_TESTNET = "eon-testnet", | ||
XPLA = "xpla", | ||
XPLA_TESTNET = "xpla-testnet" | ||
CONFLUX_TESTNET = "conflux-testnet" | ||
} | ||
@@ -718,10 +696,12 @@ | ||
type Network = `${Chain}-${Stage}${'-local' | ''}`; | ||
declare function networkToEndpointId(network: string, version: EndpointVersion): number; | ||
declare function networkToEnv(network: string, version: EndpointVersion): Environment; | ||
declare function networkToStage(network: string): Stage; | ||
declare function endpointIdToNetwork(endpointId: number, env?: Environment): string; | ||
declare function endpointIdToNetwork(endpointId: number, env?: Environment): Network; | ||
declare function endpointIdToVersion(endpointId: number): EndpointVersion; | ||
declare function endpointIdToChainKey(endpointId: number): ChainKey; | ||
declare function chainAndStageToEndpointId(chain: Chain, stage: Stage, version: EndpointVersion): EndpointId; | ||
declare function chainAndStageToNetwork(chain: Chain, stage: Stage, env?: Environment): string; | ||
declare function chainAndStageToNetwork(chain: Chain, stage: Stage, env?: Environment): Network; | ||
declare function networkToChain(network: string): Chain; | ||
@@ -746,4 +726,2 @@ declare function networkToChainType(network: string): ChainType; | ||
type Network = `${Chain}-${Stage}${'-local' | ''}`; | ||
export { BRIDGE_ADDRESS, CHAIN_KEY, COMPOSER_ADDRESS, Chain, ChainKey, ChainType, ENVIRONMENT, EndpointId, EndpointVersion, Environment, MainnetEndpointId, MainnetV2EndpointId, MessageLibVersion, MessageLibVersionV1, MessageLibVersionV2, Network, STG_ADDRESS, SandboxEndpointId, SandboxV2EndpointId, Stage, TestnetEndpointId, TestnetV2EndpointId, ULN_V1_CHAINS, chainAndStageToEndpointId, chainAndStageToNetwork, endpointIdToChain, endpointIdToChainKey, endpointIdToChainType, endpointIdToNetwork, endpointIdToStage, endpointIdToVersion, getChainIdForNetwork, getChainType, getEndpointVersionForUlnVersion, getNetworkForChainId, getNetworksForStage, networkToChain, networkToChainType, networkToEndpointId, networkToEnv, networkToStage }; |
{ | ||
"name": "@layerzerolabs/lz-definitions", | ||
"version": "1.5.52", | ||
"version": "1.5.53-rc.1", | ||
"description": "LayerZero Utility", | ||
@@ -8,5 +8,7 @@ "license": "BUSL-1.1", | ||
"exports": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
@@ -31,16 +33,18 @@ "main": "./dist/index.cjs", | ||
"@jest/globals": "^29.5.0", | ||
"@layerzerolabs-internal/eslint-config": "^1.5.52", | ||
"@layerzerolabs-internal/tsup-config": "^1.5.52", | ||
"@layerzerolabs-internal/typescript-config": "^1.5.52", | ||
"@layerzerolabs-internal/eslint-config": "^1.5.53-rc.1", | ||
"@layerzerolabs-internal/tsup-config": "^1.5.53-rc.1", | ||
"@layerzerolabs-internal/typescript-config": "^1.5.53-rc.1", | ||
"@types/jest": "^29.4.0", | ||
"eslint": "^8.17.0", | ||
"jest": "^29.5.0", | ||
"prettier": "^2.8.3", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^29.0.5", | ||
"tsup": "^6.7.0", | ||
"typescript": "^5.1.3" | ||
"typescript": "^5.0.4" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
}, | ||
"stableVersion": "1.5.50" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
310088
12
3004
2