@haechi-labs/face-types
Advanced tools
Comparing version 1.1.0-alpha.0 to 1.1.0-alpha.1
export declare enum Network { | ||
ETHEREUM = "ethereum", | ||
ROPSTEN = "ropsten", | ||
POLYGON = "polygon", | ||
MUMBAI = "mumbai", | ||
BNB_SMART_CHAIN = "bnb_smart_chain", | ||
BNB_SMART_CHAIN_TESTNET = "bnb_smart_chain_testnet", | ||
KLAYTN = "klaytn", | ||
BAOBAB = "baobab", | ||
/** @deprecated use ETHEREUM */ | ||
ETH_MAINNET = "ethereum", | ||
/** @deprecated use ROPSTEN */ | ||
ETH_TESTNET = "ropsten", | ||
/** @deprecated use POLYGON */ | ||
MATIC_MAINNET = "polygon", | ||
/** @deprecated use MUMBAI */ | ||
MATIC_TESTNET = "mumbai", | ||
/** @deprecated use BNB_SMART_CHAIN */ | ||
BINANCE_COIN_MAINNET = "bnb_smart_chain", | ||
/** @deprecated use BNB_SMART_CHAIN_TESTNET */ | ||
BINANCE_COIN_TESTNET = "bnb_smart_chain_testnet", | ||
/** @deprecated use KLAYTN */ | ||
KLAYTN_MAINNET = "klaytn", | ||
/** @deprecated use BAOBAB */ | ||
KLAYTN_TESTNET = "baobab" | ||
@@ -10,0 +26,0 @@ } |
@@ -6,28 +6,44 @@ "use strict"; | ||
(function (Network) { | ||
Network["ETHEREUM"] = "ethereum"; | ||
Network["ROPSTEN"] = "ropsten"; | ||
Network["POLYGON"] = "polygon"; | ||
Network["MUMBAI"] = "mumbai"; | ||
Network["BNB_SMART_CHAIN"] = "bnb_smart_chain"; | ||
Network["BNB_SMART_CHAIN_TESTNET"] = "bnb_smart_chain_testnet"; | ||
Network["KLAYTN"] = "klaytn"; | ||
Network["BAOBAB"] = "baobab"; | ||
/** @deprecated use ETHEREUM */ | ||
Network["ETH_MAINNET"] = "ethereum"; | ||
/** @deprecated use ROPSTEN */ | ||
Network["ETH_TESTNET"] = "ropsten"; | ||
/** @deprecated use POLYGON */ | ||
Network["MATIC_MAINNET"] = "polygon"; | ||
/** @deprecated use MUMBAI */ | ||
Network["MATIC_TESTNET"] = "mumbai"; | ||
/** @deprecated use BNB_SMART_CHAIN */ | ||
Network["BINANCE_COIN_MAINNET"] = "bnb_smart_chain"; | ||
/** @deprecated use BNB_SMART_CHAIN_TESTNET */ | ||
Network["BINANCE_COIN_TESTNET"] = "bnb_smart_chain_testnet"; | ||
/** @deprecated use KLAYTN */ | ||
Network["KLAYTN_MAINNET"] = "klaytn"; | ||
/** @deprecated use BAOBAB */ | ||
Network["KLAYTN_TESTNET"] = "baobab"; | ||
})(Network = exports.Network || (exports.Network = {})); | ||
exports.NetworkChainIdMap = { | ||
[Network.ETH_MAINNET]: 1, | ||
[Network.ETH_TESTNET]: 3, | ||
[Network.MATIC_MAINNET]: 137, | ||
[Network.MATIC_TESTNET]: 80001, | ||
[Network.BINANCE_COIN_MAINNET]: 56, | ||
[Network.BINANCE_COIN_TESTNET]: 97, | ||
[Network.KLAYTN_MAINNET]: 8217, | ||
[Network.KLAYTN_TESTNET]: 1001, | ||
1: Network.ETH_MAINNET, | ||
3: Network.ETH_TESTNET, | ||
137: Network.MATIC_MAINNET, | ||
80001: Network.MATIC_TESTNET, | ||
56: Network.BINANCE_COIN_MAINNET, | ||
97: Network.BINANCE_COIN_TESTNET, | ||
8217: Network.KLAYTN_MAINNET, | ||
1001: Network.KLAYTN_TESTNET, | ||
[Network.ETHEREUM]: 1, | ||
[Network.ROPSTEN]: 3, | ||
[Network.POLYGON]: 137, | ||
[Network.MUMBAI]: 80001, | ||
[Network.BNB_SMART_CHAIN]: 56, | ||
[Network.BNB_SMART_CHAIN_TESTNET]: 97, | ||
[Network.KLAYTN]: 8217, | ||
[Network.BAOBAB]: 1001, | ||
1: Network.ETHEREUM, | ||
3: Network.ROPSTEN, | ||
137: Network.POLYGON, | ||
80001: Network.MUMBAI, | ||
56: Network.BNB_SMART_CHAIN, | ||
97: Network.BNB_SMART_CHAIN_TESTNET, | ||
8217: Network.KLAYTN, | ||
1001: Network.BAOBAB, | ||
}; | ||
@@ -34,0 +50,0 @@ var Blockchain; |
@@ -12,11 +12,9 @@ export declare enum HttpStatus { | ||
BAD_REQUEST = 4000, | ||
INVALID_PASSWORD = 4003, | ||
INVALID_ARGUMENT = 4004, | ||
NOT_IMPLEMENTED = 4005, | ||
INTERNAL = 5000, | ||
INVALID_ENVIRONMENT = 5001, | ||
FACE_SERVER_FAILED = 5001, | ||
FACE_LOCAL_STORAGE_FAILED = 5003, | ||
NITRO_ENCLAVE_FAILED = 5004, | ||
FIREBASE_FAILED = 5005 | ||
USER_REJECTED_REQUEST = 4001, | ||
NOT_IMPLEMENTED = 4002, | ||
UNAUTHORIZED = 4100, | ||
UNSUPPORTED_METHOD = 4200, | ||
DISCONNECTED = 4900, | ||
CHAIN_DISCONNECTED = 4901, | ||
INTERNAL = 5000 | ||
} |
@@ -17,12 +17,10 @@ "use strict"; | ||
FaceErrorCode[FaceErrorCode["BAD_REQUEST"] = 4000] = "BAD_REQUEST"; | ||
FaceErrorCode[FaceErrorCode["INVALID_PASSWORD"] = 4003] = "INVALID_PASSWORD"; | ||
FaceErrorCode[FaceErrorCode["INVALID_ARGUMENT"] = 4004] = "INVALID_ARGUMENT"; | ||
FaceErrorCode[FaceErrorCode["NOT_IMPLEMENTED"] = 4005] = "NOT_IMPLEMENTED"; | ||
FaceErrorCode[FaceErrorCode["USER_REJECTED_REQUEST"] = 4001] = "USER_REJECTED_REQUEST"; | ||
FaceErrorCode[FaceErrorCode["NOT_IMPLEMENTED"] = 4002] = "NOT_IMPLEMENTED"; | ||
FaceErrorCode[FaceErrorCode["UNAUTHORIZED"] = 4100] = "UNAUTHORIZED"; | ||
FaceErrorCode[FaceErrorCode["UNSUPPORTED_METHOD"] = 4200] = "UNSUPPORTED_METHOD"; | ||
FaceErrorCode[FaceErrorCode["DISCONNECTED"] = 4900] = "DISCONNECTED"; | ||
FaceErrorCode[FaceErrorCode["CHAIN_DISCONNECTED"] = 4901] = "CHAIN_DISCONNECTED"; | ||
FaceErrorCode[FaceErrorCode["INTERNAL"] = 5000] = "INTERNAL"; | ||
FaceErrorCode[FaceErrorCode["INVALID_ENVIRONMENT"] = 5001] = "INVALID_ENVIRONMENT"; | ||
FaceErrorCode[FaceErrorCode["FACE_SERVER_FAILED"] = 5001] = "FACE_SERVER_FAILED"; | ||
FaceErrorCode[FaceErrorCode["FACE_LOCAL_STORAGE_FAILED"] = 5003] = "FACE_LOCAL_STORAGE_FAILED"; | ||
FaceErrorCode[FaceErrorCode["NITRO_ENCLAVE_FAILED"] = 5004] = "NITRO_ENCLAVE_FAILED"; | ||
FaceErrorCode[FaceErrorCode["FIREBASE_FAILED"] = 5005] = "FIREBASE_FAILED"; | ||
})(FaceErrorCode = exports.FaceErrorCode || (exports.FaceErrorCode = {})); | ||
//# sourceMappingURL=error.js.map |
{ | ||
"name": "@haechi-labs/face-types", | ||
"version": "1.1.0-alpha.0", | ||
"version": "1.1.0-alpha.1", | ||
"description": "", | ||
@@ -25,3 +25,3 @@ "author": "", | ||
}, | ||
"gitHead": "418023f9c9b0e55af54cdc3e9b67e52b70984769", | ||
"gitHead": "f5ff2275e1d4efc2a35cea8fa7a25e617b5a2289", | ||
"publishConfig": { | ||
@@ -28,0 +28,0 @@ "access": "public" |
export enum Network { | ||
ETHEREUM = 'ethereum', | ||
ROPSTEN = 'ropsten', | ||
POLYGON = 'polygon', | ||
MUMBAI = 'mumbai', | ||
BNB_SMART_CHAIN = 'bnb_smart_chain', | ||
BNB_SMART_CHAIN_TESTNET = 'bnb_smart_chain_testnet', | ||
KLAYTN = 'klaytn', | ||
BAOBAB = 'baobab', | ||
/** @deprecated use ETHEREUM */ | ||
ETH_MAINNET = 'ethereum', | ||
/** @deprecated use ROPSTEN */ | ||
ETH_TESTNET = 'ropsten', | ||
/** @deprecated use POLYGON */ | ||
MATIC_MAINNET = 'polygon', | ||
/** @deprecated use MUMBAI */ | ||
MATIC_TESTNET = 'mumbai', | ||
/** @deprecated use BNB_SMART_CHAIN */ | ||
BINANCE_COIN_MAINNET = 'bnb_smart_chain', | ||
/** @deprecated use BNB_SMART_CHAIN_TESTNET */ | ||
BINANCE_COIN_TESTNET = 'bnb_smart_chain_testnet', | ||
/** @deprecated use KLAYTN */ | ||
KLAYTN_MAINNET = 'klaytn', | ||
/** @deprecated use BAOBAB */ | ||
KLAYTN_TESTNET = 'baobab', | ||
@@ -13,19 +29,19 @@ } | ||
export const NetworkChainIdMap: { [key in Network | number]: Network | number } = { | ||
[Network.ETH_MAINNET]: 1, | ||
[Network.ETH_TESTNET]: 3, | ||
[Network.MATIC_MAINNET]: 137, | ||
[Network.MATIC_TESTNET]: 80001, | ||
[Network.BINANCE_COIN_MAINNET]: 56, | ||
[Network.BINANCE_COIN_TESTNET]: 97, | ||
[Network.KLAYTN_MAINNET]: 8217, | ||
[Network.KLAYTN_TESTNET]: 1001, | ||
[Network.ETHEREUM]: 1, | ||
[Network.ROPSTEN]: 3, | ||
[Network.POLYGON]: 137, | ||
[Network.MUMBAI]: 80001, | ||
[Network.BNB_SMART_CHAIN]: 56, | ||
[Network.BNB_SMART_CHAIN_TESTNET]: 97, | ||
[Network.KLAYTN]: 8217, | ||
[Network.BAOBAB]: 1001, | ||
1: Network.ETH_MAINNET, | ||
3: Network.ETH_TESTNET, | ||
137: Network.MATIC_MAINNET, | ||
80001: Network.MATIC_TESTNET, | ||
56: Network.BINANCE_COIN_MAINNET, | ||
97: Network.BINANCE_COIN_TESTNET, | ||
8217: Network.KLAYTN_MAINNET, | ||
1001: Network.KLAYTN_TESTNET, | ||
1: Network.ETHEREUM, | ||
3: Network.ROPSTEN, | ||
137: Network.POLYGON, | ||
80001: Network.MUMBAI, | ||
56: Network.BNB_SMART_CHAIN, | ||
97: Network.BNB_SMART_CHAIN_TESTNET, | ||
8217: Network.KLAYTN, | ||
1001: Network.BAOBAB, | ||
}; | ||
@@ -32,0 +48,0 @@ |
@@ -13,12 +13,10 @@ export enum HttpStatus { | ||
BAD_REQUEST = 4000, | ||
INVALID_PASSWORD = 4003, | ||
INVALID_ARGUMENT = 4004, | ||
NOT_IMPLEMENTED = 4005, | ||
USER_REJECTED_REQUEST = 4001, | ||
NOT_IMPLEMENTED = 4002, | ||
UNAUTHORIZED = 4100, | ||
UNSUPPORTED_METHOD = 4200, | ||
DISCONNECTED = 4900, | ||
CHAIN_DISCONNECTED = 4901, | ||
INTERNAL = 5000, | ||
INVALID_ENVIRONMENT = 5001, | ||
FACE_SERVER_FAILED = 5001, | ||
FACE_LOCAL_STORAGE_FAILED = 5003, | ||
NITRO_ENCLAVE_FAILED = 5004, | ||
FIREBASE_FAILED = 5005, | ||
} |
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
35833
810