From 61a0991bcd2fbd9f48c6a4238928a2c291d85d3b Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 24 Aug 2022 11:15:07 -0400 Subject: [PATCH] *Use @lumeweb/pokt-rpc-endpoints --- package.json | 1 + src/networks.json | 45 --------------------------------------------- src/rpc/solana.ts | 2 +- src/util.ts | 2 +- yarn.lock | 4 ++++ 5 files changed, 7 insertions(+), 47 deletions(-) delete mode 100644 src/networks.json diff --git a/package.json b/package.json index 086a076..b51bba6 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@hyperswarm/dht": "^6.0.1", "@hyperswarm/dht-relay": "^0.3.0", "@lumeweb/kernel-utils": "https://github.com/LumeWeb/kernel-utils.git", + "@lumeweb/pokt-rpc-endpoints": "https://github.com/LumeWeb/pokt-rpc-endpoints.git", "@pokt-network/pocket-js": "^0.8.0-rc", "@skynetlabs/skynet-nodejs": "^2.6.0", "@solana/web3.js": "^1.47.3", diff --git a/src/networks.json b/src/networks.json deleted file mode 100644 index ae1b4cf..0000000 --- a/src/networks.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "algorand-mainnet": "29", - "algorand-mainnet-indexer": "dummy", - "algorand-archival": "000D", - "algorand-testnet": "45", - "algorand-testnet-archival": "0A45", - "arweave-mainnet": "30", - "avax-mainnet": "3", - "avax-archival": "00A3", - "avax-fuji": "000E", - "bsc-mainnet": "4", - "bsc-archival": "10", - "bsc-testnet": "11", - "bsc-testnet-archival": "12", - "btc-mainnet": "2", - "eth-mainnet": "21", - "eth-archival": "22", - "eth-archival-trace": "28", - "eth-goerli": "26", - "poa-kovan": "24", - "eth-rinkeby": "25", - "eth-ropsten": "23", - "evmos-mainnet": "46", - "fuse-mainnet": "5", - "fuse-archival": "000A", - "gnosischain-mainnet": "27", - "gnosischain-archival": "000C", - "harmony-0": "40", - "harmony-0-archival": "0A40", - "harmony-1": "41", - "harmony-1-archival": "0A41", - "harmony-2": "42", - "harmony-2-archival": "0A42", - "harmony-3": "43", - "harmony-3-archival": "0A43", - "iotex-mainnet": "44", - "oec-mainnet": "47", - "mainnet": "1", - "poly-mainnet": "9", - "poly-archival": "000B", - "poly-mumbai": "000F", - "poly-mumbai-archival": "00AF", - "solana-mainnet": "6", - "solana-testnet": "31" -} diff --git a/src/rpc/solana.ts b/src/rpc/solana.ts index 0646c23..d6e38ba 100644 --- a/src/rpc/solana.ts +++ b/src/rpc/solana.ts @@ -1,6 +1,6 @@ import { proxyRpcMethod } from "./common.js"; import { RpcMethodList } from "./index.js"; -import chainNetworks from "../networks.json"; +import chainNetworks from "@lumeweb/pokt-rpc-endpoints"; export default { getAccountInfo: proxyRpcMethod("getAccountInfo", [ diff --git a/src/util.ts b/src/util.ts index db34b19..e1c32e3 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,4 +1,4 @@ -import chainNetworks from "./networks.json"; +import chainNetworks from "@lumeweb/pokt-rpc-endpoints"; type networks = { [net: string]: string }; diff --git a/yarn.lock b/yarn.lock index 2793d70..b2eeeab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1070,6 +1070,10 @@ dependencies: libskynet "^0.0.62" +"@lumeweb/pokt-rpc-endpoints@https://github.com/LumeWeb/pokt-rpc-endpoints.git": + version "0.1.0" + resolved "https://github.com/LumeWeb/pokt-rpc-endpoints.git#0223b743f913aa46e914b1dc237ae2e12571d96d" + "@msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2": version "2.0.2" resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-2.0.2.tgz#01e3669b8b2dc01f6353f2c87e1ec94faf52c587"