@layerzerolabs/lz-definitions
Advanced tools
Comparing version
@@ -655,10 +655,12 @@ declare enum Chain { | ||
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; | ||
@@ -683,4 +685,2 @@ declare function networkToChainType(network: string): ChainType; | ||
type Network = `${Chain}-${Stage}${'-local' | ''}`; | ||
export { BRIDGE_ADDRESS, CHAIN_KEY, 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.47-rc.1", | ||
"version": "1.5.47-rc.2", | ||
"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" | ||
} | ||
}, | ||
@@ -30,12 +32,13 @@ "main": "./dist/index.cjs", | ||
"@jest/globals": "^29.5.0", | ||
"@layerzerolabs-internal/eslint-config": "^1.5.47-rc.1", | ||
"@layerzerolabs-internal/tsup-config": "^1.5.47-rc.1", | ||
"@layerzerolabs-internal/typescript-config": "^1.5.47-rc.1", | ||
"@layerzerolabs-internal/eslint-config": "^1.5.47-rc.2", | ||
"@layerzerolabs-internal/tsup-config": "^1.5.47-rc.2", | ||
"@layerzerolabs-internal/typescript-config": "^1.5.47-rc.2", | ||
"@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" | ||
}, | ||
@@ -42,0 +45,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
296152
0.06%12
9.09%334
-1.18%11
-8.33%2
-50%185
-1.6%