Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@layerzerolabs/lz-definitions

Package Overview
Dependencies
Maintainers
18
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/lz-definitions - npm Package Compare versions

Comparing version 0.0.4 to 1.5.0

dist/enums/endpoint-version.d.ts

12

dist/constants/environment.js

@@ -29,2 +29,8 @@ "use strict";

[enums_1.EndpointId.GOERLI_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.ZKSYNC_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.SHRAPNEL_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.DOS_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.ZKPOLYGON_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.SEPOLIA_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.MOONRIVER_MAINNET]: enums_1.Environment.MAINNET,
[enums_1.EndpointId.SOLANA_MAINNET]: enums_1.Environment.MAINNET,

@@ -57,2 +63,8 @@ [enums_1.EndpointId.ETHEREUM_TESTNET]: enums_1.Environment.TESTNET,

[enums_1.EndpointId.SOLANA_TESTNET]: enums_1.Environment.TESTNET,
[enums_1.EndpointId.METER_TESTNET]: enums_1.Environment.TESTNET,
[enums_1.EndpointId.ZKCONSENSYS_TESTNET]: enums_1.Environment.TESTNET,
// [EndpointId.MOONRIVER_TESTNET]: Environment.TESTNET,
[enums_1.EndpointId.SEPOLIA_TESTNET]: enums_1.Environment.TESTNET,
[enums_1.EndpointId.BASE_TESTNET]: enums_1.Environment.TESTNET,
// [EndpointId.CANTO_TESTNET]: Environment.TESTNET,
[enums_1.EndpointId.ETHEREUM_SANDBOX]: enums_1.Environment.TESTNET,

@@ -59,0 +71,0 @@ [enums_1.EndpointId.BSC_SANDBOX]: enums_1.Environment.TESTNET,

8

dist/enums/chain-type.d.ts
export declare enum ChainType {
UNKNOWN = "UNKNOWN",
EVM = "EVM",
APTOS = "APTOS",
SOLANA = "SOLANA"
UNKNOWN = "unknown",
EVM = "evm",
APTOS = "aptos",
SOLANA = "solana"
}
//# sourceMappingURL=chain-type.d.ts.map

@@ -6,7 +6,7 @@ "use strict";

(function (ChainType) {
ChainType["UNKNOWN"] = "UNKNOWN";
ChainType["EVM"] = "EVM";
ChainType["APTOS"] = "APTOS";
ChainType["SOLANA"] = "SOLANA";
ChainType["UNKNOWN"] = "unknown";
ChainType["EVM"] = "evm";
ChainType["APTOS"] = "aptos";
ChainType["SOLANA"] = "solana";
})(ChainType = exports.ChainType || (exports.ChainType = {}));
//# sourceMappingURL=chain-type.js.map

@@ -35,4 +35,8 @@ export declare enum Chain {

GOERLI = "goerli",
SOLANA = "solana"
SOLANA = "solana",
BASE = "base",
ZKCONSENSYS = "zkconsensys",
SEPOLIA = "sepolia",
MOONRIVER = "moonriver"
}
//# sourceMappingURL=chain.d.ts.map

@@ -40,3 +40,7 @@ "use strict";

Chain["SOLANA"] = "solana";
Chain["BASE"] = "base";
Chain["ZKCONSENSYS"] = "zkconsensys";
Chain["SEPOLIA"] = "sepolia";
Chain["MOONRIVER"] = "moonriver";
})(Chain = exports.Chain || (exports.Chain = {}));
//# sourceMappingURL=chain.js.map

@@ -25,3 +25,9 @@ export declare enum MainnetEndpointId {

METER_MAINNET = 156,
SOLANA_MAINNET = 157
ZKSYNC_MAINNET = 165,
SHRAPNEL_MAINNET = 148,
DOS_MAINNET = 149,
ZKPOLYGON_MAINNET = 158,
SEPOLIA_MAINNET = 161,
MOONRIVER_MAINNET = 167,
SOLANA_MAINNET = 168
}

@@ -45,5 +51,5 @@ export declare enum TestnetEndpointId {

GNOSIS_TESTNET = 10145,
ZKSYNC_TESTNET = 10147,
SHRAPNEL_TESTNET = 10148,
DOS_TESTNET = 10149,
ZKSYNC_TESTNET = 10165,
SHRAPNEL_TESTNET = 10164,
DOS_TESTNET = 10162,
APTOS_TESTNET = 10108,

@@ -54,4 +60,8 @@ KLAYTN_TESTNET = 10150,

OKX_TESTNET = 10155,
SOLANA_TESTNET = 10157,
ZKPOLYGON_TESTNET = 10158
METER_TESTNET = 10156,
ZKCONSENSYS_TESTNET = 10157,
ZKPOLYGON_TESTNET = 10158,
BASE_TESTNET = 10160,
SEPOLIA_TESTNET = 10161,
SOLANA_TESTNET = 10168
}

@@ -96,4 +106,8 @@ export declare enum SandboxEndpointId {

OKX_TESTNET: TestnetEndpointId.OKX_TESTNET;
METER_TESTNET: TestnetEndpointId.METER_TESTNET;
ZKCONSENSYS_TESTNET: TestnetEndpointId.ZKCONSENSYS_TESTNET;
ZKPOLYGON_TESTNET: TestnetEndpointId.ZKPOLYGON_TESTNET;
BASE_TESTNET: TestnetEndpointId.BASE_TESTNET;
SEPOLIA_TESTNET: TestnetEndpointId.SEPOLIA_TESTNET;
SOLANA_TESTNET: TestnetEndpointId.SOLANA_TESTNET;
ZKPOLYGON_TESTNET: TestnetEndpointId.ZKPOLYGON_TESTNET;
ETHEREUM_MAINNET: MainnetEndpointId.ETHEREUM_MAINNET;

@@ -122,2 +136,8 @@ BSC_MAINNET: MainnetEndpointId.BSC_MAINNET;

METER_MAINNET: MainnetEndpointId.METER_MAINNET;
ZKSYNC_MAINNET: MainnetEndpointId.ZKSYNC_MAINNET;
SHRAPNEL_MAINNET: MainnetEndpointId.SHRAPNEL_MAINNET;
DOS_MAINNET: MainnetEndpointId.DOS_MAINNET;
ZKPOLYGON_MAINNET: MainnetEndpointId.ZKPOLYGON_MAINNET;
SEPOLIA_MAINNET: MainnetEndpointId.SEPOLIA_MAINNET;
MOONRIVER_MAINNET: MainnetEndpointId.MOONRIVER_MAINNET;
SOLANA_MAINNET: MainnetEndpointId.SOLANA_MAINNET;

@@ -124,0 +144,0 @@ };

@@ -29,3 +29,9 @@ "use strict";

MainnetEndpointId[MainnetEndpointId["METER_MAINNET"] = 156] = "METER_MAINNET";
MainnetEndpointId[MainnetEndpointId["SOLANA_MAINNET"] = 157] = "SOLANA_MAINNET";
MainnetEndpointId[MainnetEndpointId["ZKSYNC_MAINNET"] = 165] = "ZKSYNC_MAINNET";
MainnetEndpointId[MainnetEndpointId["SHRAPNEL_MAINNET"] = 148] = "SHRAPNEL_MAINNET";
MainnetEndpointId[MainnetEndpointId["DOS_MAINNET"] = 149] = "DOS_MAINNET";
MainnetEndpointId[MainnetEndpointId["ZKPOLYGON_MAINNET"] = 158] = "ZKPOLYGON_MAINNET";
MainnetEndpointId[MainnetEndpointId["SEPOLIA_MAINNET"] = 161] = "SEPOLIA_MAINNET";
MainnetEndpointId[MainnetEndpointId["MOONRIVER_MAINNET"] = 167] = "MOONRIVER_MAINNET";
MainnetEndpointId[MainnetEndpointId["SOLANA_MAINNET"] = 168] = "SOLANA_MAINNET";
})(MainnetEndpointId = exports.MainnetEndpointId || (exports.MainnetEndpointId = {}));

@@ -50,5 +56,5 @@ var TestnetEndpointId;

TestnetEndpointId[TestnetEndpointId["GNOSIS_TESTNET"] = 10145] = "GNOSIS_TESTNET";
TestnetEndpointId[TestnetEndpointId["ZKSYNC_TESTNET"] = 10147] = "ZKSYNC_TESTNET";
TestnetEndpointId[TestnetEndpointId["SHRAPNEL_TESTNET"] = 10148] = "SHRAPNEL_TESTNET";
TestnetEndpointId[TestnetEndpointId["DOS_TESTNET"] = 10149] = "DOS_TESTNET";
TestnetEndpointId[TestnetEndpointId["ZKSYNC_TESTNET"] = 10165] = "ZKSYNC_TESTNET";
TestnetEndpointId[TestnetEndpointId["SHRAPNEL_TESTNET"] = 10164] = "SHRAPNEL_TESTNET";
TestnetEndpointId[TestnetEndpointId["DOS_TESTNET"] = 10162] = "DOS_TESTNET";
TestnetEndpointId[TestnetEndpointId["APTOS_TESTNET"] = 10108] = "APTOS_TESTNET";

@@ -59,4 +65,10 @@ TestnetEndpointId[TestnetEndpointId["KLAYTN_TESTNET"] = 10150] = "KLAYTN_TESTNET";

TestnetEndpointId[TestnetEndpointId["OKX_TESTNET"] = 10155] = "OKX_TESTNET";
TestnetEndpointId[TestnetEndpointId["SOLANA_TESTNET"] = 10157] = "SOLANA_TESTNET";
TestnetEndpointId[TestnetEndpointId["METER_TESTNET"] = 10156] = "METER_TESTNET";
TestnetEndpointId[TestnetEndpointId["ZKCONSENSYS_TESTNET"] = 10157] = "ZKCONSENSYS_TESTNET";
TestnetEndpointId[TestnetEndpointId["ZKPOLYGON_TESTNET"] = 10158] = "ZKPOLYGON_TESTNET";
// CANTO_TESTNET = 10159,
TestnetEndpointId[TestnetEndpointId["BASE_TESTNET"] = 10160] = "BASE_TESTNET";
TestnetEndpointId[TestnetEndpointId["SEPOLIA_TESTNET"] = 10161] = "SEPOLIA_TESTNET";
// MOONRIVER_TESTNET = 10166,
TestnetEndpointId[TestnetEndpointId["SOLANA_TESTNET"] = 10168] = "SOLANA_TESTNET";
})(TestnetEndpointId = exports.TestnetEndpointId || (exports.TestnetEndpointId = {}));

@@ -63,0 +75,0 @@ var SandboxEndpointId;

@@ -7,2 +7,3 @@ export * from './chain';

export * from './network';
export * from './endpoint-version';
//# sourceMappingURL=index.d.ts.map

@@ -23,2 +23,3 @@ "use strict";

__exportStar(require("./network"), exports);
__exportStar(require("./endpoint-version"), exports);
//# sourceMappingURL=index.js.map

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

function networkToEnv(network) {
if (network.includes('local')) {
if (network.includes('local') || network === 'hardhat') {
return enums_1.Environment.LOCAL;

@@ -23,0 +23,0 @@ }

{
"name": "@layerzerolabs/lz-definitions",
"version": "0.0.4",
"version": "1.5.0",
"description": "LayerZero Utility",

@@ -5,0 +5,0 @@ "license": "MIT",

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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc