Skip to content

Commit

Permalink
Updated network config
Browse files Browse the repository at this point in the history
  • Loading branch information
SDargarh committed Jun 17, 2024
1 parent 6ede485 commit f868f57
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 49 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,8 @@

### 2.0.11 (2024-06-12)

* URL updates
* URL updates

### 2.0.12 (2024-06-17)

* Updated network config
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ import Keyless from "@getsafle/safle-keyless-js";
Initialise the constructor using,

```js
let keyless = new Keyless("mumbaitestnet");
let keyless = new Keyless("polygontestnet");
```

`mumbaitestnet` - The name of the network supported in keyless. Default is ethereum mainnet with the name `mainnet`
`polygontestnet` - The name of the network supported in keyless. Default is ethereum mainnet with the name `mainnet`

> Once the constructor is intialized, call `init()` to initialize login.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getsafle/safle-keyless-js",
"version": "2.0.11",
"version": "2.0.12",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
88 changes: 44 additions & 44 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,43 @@ export function networkAdapter(network: string | INetwork) {
}

const networks: { [key: string]: INetwork } = {
mainnet: {
nodeUrl: "https://mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
ethereum: {
nodeUrl: "https://mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "1",
},
goerlitestnet: {
nodeUrl: "https://goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "420",
ethereumtestnet: {
nodeUrl: "https://sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "11155111",
},
polygonmainnet: {
polygon: {
nodeUrl:
"https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
"https://polygon-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "137",
},
mumbaitestnet: {
polygontestnet: {
nodeUrl:
"https://polygon-mumbai.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "80001",
"https://polygon-amoy.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "80002",
},
optimism: {
nodeUrl:
"https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
"https://optimism-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "10",
},
optimismtestnet: {
nodeUrl:
"https://optimism-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "420",
"https://optimism-sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "11155420",
},
arbitrum: {
nodeUrl:
"https://arbitrum-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
"https://arbitrum-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "42161",
},
arbitrumtestnet: {
nodeUrl:
"https://arbitrum-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "421613",
"https://arbitrum-sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "421614",
},
velas: {
nodeUrl: "https://evmexplorer.velas.com/rpc",
Expand All @@ -58,58 +58,58 @@ const networks: { [key: string]: INetwork } = {
chainId: "111",
},
mantle: {
nodeUrl: "https://rpc.ankr.com/mantle",
nodeUrl: "https://mantle-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "5000",
},
mantletestnet: {
nodeUrl: "https://rpc.testnet.mantle.xyz",
chainId: "5001",
nodeUrl: "https://mantle-sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "5003",
},
bsc: {
nodeUrl: "https://bsc-dataseed.binance.org",
nodeUrl: "https://rpc.ankr.com/bsc",
chainId: "56",
},
bsctestnet: {
nodeUrl: "https://data-seed-prebsc-1-s1.binance.org:8545",
nodeUrl: "https://bsc-testnet-rpc.publicnode.com",
chainId: "97",
},
"1": {
nodeUrl: "https://mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
nodeUrl: "https://mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "1",
},
"5": {
nodeUrl: "https://goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "5",
"11155111" : {
nodeUrl: "https://sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "11155111",
},
"137": {
nodeUrl:
"https://polygon-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
"https://polygon-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "137",
},
"80001": {
"80002" : {
nodeUrl:
"https://polygon-mumbai.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "80001",
"https://polygon-amoy.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "80002",
},
"10": {
nodeUrl:
"https://optimism-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
"https://optimism-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "10",
},
"420": {
"11155420" : {
nodeUrl:
"https://optimism-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "420",
"https://optimism-sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "11155420",
},
"42161": {
nodeUrl:
"https://arbitrum-mainnet.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
"https://arbitrum-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "42161",
},
"421613": {
"421614" : {
nodeUrl:
"https://arbitrum-goerli.infura.io/v3/eff77f64ebfd4153b083c7867ccf115d",
chainId: "421613",
"https://arbitrum-sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "421614",
},
"106": {
nodeUrl: "https://evmexplorer.velas.com/rpc",
Expand All @@ -120,19 +120,19 @@ const networks: { [key: string]: INetwork } = {
chainId: "111",
},
"5000": {
nodeUrl: "https://rpc.ankr.com/mantle",
nodeUrl: "https://mantle-mainnet.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "5000",
},
"5001": {
nodeUrl: "https://rpc.testnet.mantle.xyz",
chainId: "5001",
"5003": {
nodeUrl: "https://mantle-sepolia.infura.io/v3/2c3f34885f064b28a4af2c1dd5c8751d",
chainId: "5003",
},
"56": {
nodeUrl: "https://bsc-dataseed.binance.org",
nodeUrl: "https://rpc.ankr.com/bsc",
chainId: "56",
},
"97": {
nodeUrl: "https://data-seed-prebsc-1-s1.binance.org:8545",
nodeUrl: "https://bsc-testnet-rpc.publicnode.com",
chainId: "97",
},
};
};

0 comments on commit f868f57

Please sign in to comment.