@haechi-labs/face-sdk
Advanced tools
Comparing version 1.1.0-alpha.0 to 1.1.0-alpha.1
@@ -34,3 +34,3 @@ "use strict"; | ||
}; | ||
this.network = network || face_types_1.Network.ETH_MAINNET; | ||
this.network = network || face_types_1.Network.ETHEREUM; | ||
this.internal = new internal_1.Internal(apiKey, network, rest.env, rest.iframeUrl); | ||
@@ -37,0 +37,0 @@ this.auth = new auth_1.Auth(this.internal); |
@@ -131,13 +131,13 @@ "use strict"; | ||
switch (network) { | ||
case face_1.Network.ETH_MAINNET: | ||
case face_1.Network.ETH_TESTNET: | ||
case face_1.Network.ETHEREUM: | ||
case face_1.Network.ROPSTEN: | ||
return face_types_1.Blockchain.ETHEREUM; | ||
case face_1.Network.MATIC_MAINNET: | ||
case face_1.Network.MATIC_TESTNET: | ||
case face_1.Network.POLYGON: | ||
case face_1.Network.MUMBAI: | ||
return face_types_1.Blockchain.POLYGON; | ||
case face_1.Network.BINANCE_COIN_MAINNET: | ||
case face_1.Network.BINANCE_COIN_TESTNET: | ||
case face_1.Network.BNB_SMART_CHAIN: | ||
case face_1.Network.BNB_SMART_CHAIN_TESTNET: | ||
return face_types_1.Blockchain.BNB_SMART_CHAIN; | ||
case face_1.Network.KLAYTN_MAINNET: | ||
case face_1.Network.KLAYTN_TESTNET: | ||
case face_1.Network.KLAYTN: | ||
case face_1.Network.BAOBAB: | ||
return face_types_1.Blockchain.KLAYTN; | ||
@@ -173,6 +173,6 @@ default: | ||
} | ||
if (network === face_1.Network.ETH_TESTNET || | ||
network === face_1.Network.MATIC_TESTNET || | ||
network === face_1.Network.KLAYTN_TESTNET || | ||
network === face_1.Network.BINANCE_COIN_TESTNET) { | ||
if (network === face_1.Network.ROPSTEN || | ||
network === face_1.Network.MUMBAI || | ||
network === face_1.Network.BAOBAB || | ||
network === face_1.Network.BNB_SMART_CHAIN_TESTNET) { | ||
return face_types_1.Env.ProdTest; | ||
@@ -179,0 +179,0 @@ } |
{ | ||
"name": "@haechi-labs/face-sdk", | ||
"version": "1.1.0-alpha.0", | ||
"version": "1.1.0-alpha.1", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "author": "", | ||
"devDependencies": { | ||
"@haechi-labs/face-types": "^1.1.0-alpha.0", | ||
"@haechi-labs/face-types": "^1.1.0-alpha.1", | ||
"@tsconfig/node16": "^1.0.2", | ||
@@ -27,3 +27,3 @@ "@types/node": "^17.0.33", | ||
}, | ||
"gitHead": "418023f9c9b0e55af54cdc3e9b67e52b70984769", | ||
"gitHead": "f5ff2275e1d4efc2a35cea8fa7a25e617b5a2289", | ||
"publishConfig": { | ||
@@ -30,0 +30,0 @@ "access": "public" |
@@ -23,3 +23,3 @@ import { Env, JsonRpcMethod, Network, NetworkChainIdMap } from '@haechi-labs/face-types'; | ||
constructor({ apiKey, network, ...rest }: FaceConfig) { | ||
this.network = network || Network.ETH_MAINNET; | ||
this.network = network || Network.ETHEREUM; | ||
this.internal = new Internal( | ||
@@ -26,0 +26,0 @@ apiKey, |
@@ -178,13 +178,13 @@ import { | ||
switch (network) { | ||
case Network.ETH_MAINNET: | ||
case Network.ETH_TESTNET: | ||
case Network.ETHEREUM: | ||
case Network.ROPSTEN: | ||
return Blockchain.ETHEREUM; | ||
case Network.MATIC_MAINNET: | ||
case Network.MATIC_TESTNET: | ||
case Network.POLYGON: | ||
case Network.MUMBAI: | ||
return Blockchain.POLYGON; | ||
case Network.BINANCE_COIN_MAINNET: | ||
case Network.BINANCE_COIN_TESTNET: | ||
case Network.BNB_SMART_CHAIN: | ||
case Network.BNB_SMART_CHAIN_TESTNET: | ||
return Blockchain.BNB_SMART_CHAIN; | ||
case Network.KLAYTN_MAINNET: | ||
case Network.KLAYTN_TESTNET: | ||
case Network.KLAYTN: | ||
case Network.BAOBAB: | ||
return Blockchain.KLAYTN; | ||
@@ -223,6 +223,6 @@ default: | ||
if ( | ||
network === Network.ETH_TESTNET || | ||
network === Network.MATIC_TESTNET || | ||
network === Network.KLAYTN_TESTNET || | ||
network === Network.BINANCE_COIN_TESTNET | ||
network === Network.ROPSTEN || | ||
network === Network.MUMBAI || | ||
network === Network.BAOBAB || | ||
network === Network.BNB_SMART_CHAIN_TESTNET | ||
) { | ||
@@ -229,0 +229,0 @@ return Env.ProdTest; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69470
36
1552