Skip to content

Commit

Permalink
added opBNB to the list of supported networks
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Sep 8, 2023
1 parent a58fe9b commit d3ab08c
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 62 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -44,10 +44,10 @@
"typescript": "^5.0.2"
},
"devDependencies": {
"@types/chai": "^4.3.4",
"@types/chai": "^4.3.6",
"@types/mocha": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"chai": "^4.3.7",
"circular-dependency-plugin": "^5.2.2",
"cross-env": "^7.0.3",
Expand All @@ -58,7 +58,7 @@
"prettier": "^3.0.2",
"terser-webpack-plugin": "^5.3.6",
"ts-mocha": "^10.0.0",
"typedoc": "^0.25.0",
"typedoc": "^0.25.1",
"typedoc-plugin-markdown": "^3.15.2",
"webpack": "^5.84.0",
"webpack-cli": "^5.0.1"
Expand Down
33 changes: 33 additions & 0 deletions src/collections/networks.ts
Expand Up @@ -33,6 +33,36 @@ const bsctest: Network = {
addresses: addresses["bsctest"] as Addresses,
};

// op bnb
const opbnb: Network = {
networkName: "opbnb",
chainName: "opBNB Mainnet",
chainNameShort: "opBNB",
chainId: 204,
rpcUrls: ["https://opbnb-mainnet-rpc.bnbchain.org"],
nativeCurrency: {
name: "BNB",
symbol: "BNB",
decimals: 18,
},
blockExplorerUrls: ["https://mainnet.opbnbscan.com"],
addresses: addresses["opbnb"] as Addresses,
};
const opbnbtest: Network = {
networkName: "opbnbtest",
chainName: "opBNB Testnet",
chainNameShort: "opBNB Test",
chainId: 5611,
rpcUrls: ["https://opbnb-testnet-rpc.bnbchain.org"],
nativeCurrency: {
name: "tBNB",
symbol: "tBNB",
decimals: 18,
},
blockExplorerUrls: ["https://opbnbscan.com"],
addresses: addresses["opbnbtest"] as Addresses,
};

// celo
const celo: Network = {
networkName: "celo",
Expand Down Expand Up @@ -171,6 +201,9 @@ export const SupportedNetworks: Partial<{
// BSC
bsc,
bsctest,
// op bnb
opbnb,
opbnbtest,
// Polygon
polygon,
mumbai,
Expand Down
3 changes: 3 additions & 0 deletions src/interface/network-name.ts
Expand Up @@ -11,6 +11,9 @@ export type NetworkName =
// BSC
| "bsctest" // testnet
| "bsc" // mainnet
// OP BNB
| "opbnbtest" // testnet
| "opbnb" // mainnet
// base
| "basegoerli" // testnet
| "base" // mainnet
Expand Down
116 changes: 58 additions & 58 deletions yarn.lock
Expand Up @@ -478,10 +478,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@types/chai@^4.3.4":
version "4.3.5"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.5.tgz#ae69bcbb1bebb68c4ac0b11e9d8ed04526b3562b"
integrity sha512-mEo1sAde+UCE6b2hxn332f1g1E8WfYRu6p5SvTKr2ZKC1f7gFJXk4h5PyGP9Dt6gCaG8y8XhwnXWC6Iy2cmBng==
"@types/chai@^4.3.6":
version "4.3.6"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.6.tgz#7b489e8baf393d5dd1266fb203ddd4ea941259e6"
integrity sha512-VOVRLM1mBxIRxydiViqPcKn6MIxZytrbMpd6RJLIWKxUNr3zux8no0Oc7kJx0WAPIitgZ0gkrDS+btlqQpubpw==

"@types/eslint-scope@^3.7.3":
version "3.7.4"
Expand Down Expand Up @@ -529,89 +529,89 @@
resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz"
integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==

"@typescript-eslint/eslint-plugin@^6.4.1":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.5.0.tgz#5cee33edf0d45d5ec773e3b3111206b098ac8599"
integrity sha512-2pktILyjvMaScU6iK3925uvGU87E+N9rh372uGZgiMYwafaw9SXq86U04XPq3UH6tzRvNgBsub6x2DacHc33lw==
"@typescript-eslint/eslint-plugin@^6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.6.0.tgz#19ba09aa34fd504696445100262e5a9e1b1d7024"
integrity sha512-CW9YDGTQnNYMIo5lMeuiIG08p4E0cXrXTbcZ2saT/ETE7dWUrNxlijsQeU04qAAKkILiLzdQz+cGFxCJjaZUmA==
dependencies:
"@eslint-community/regexpp" "^4.5.1"
"@typescript-eslint/scope-manager" "6.5.0"
"@typescript-eslint/type-utils" "6.5.0"
"@typescript-eslint/utils" "6.5.0"
"@typescript-eslint/visitor-keys" "6.5.0"
"@typescript-eslint/scope-manager" "6.6.0"
"@typescript-eslint/type-utils" "6.6.0"
"@typescript-eslint/utils" "6.6.0"
"@typescript-eslint/visitor-keys" "6.6.0"
debug "^4.3.4"
graphemer "^1.4.0"
ignore "^5.2.4"
natural-compare "^1.4.0"
semver "^7.5.4"
ts-api-utils "^1.0.1"

"@typescript-eslint/parser@^6.4.1":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.5.0.tgz#3d6ed231c5e307c5f5f4a0d86893ec01e92b8c77"
integrity sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ==
"@typescript-eslint/parser@^6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.6.0.tgz#fe323a7b4eafb6d5ea82b96216561810394a739e"
integrity sha512-setq5aJgUwtzGrhW177/i+DMLqBaJbdwGj2CPIVFFLE0NCliy5ujIdLHd2D1ysmlmsjdL2GWW+hR85neEfc12w==
dependencies:
"@typescript-eslint/scope-manager" "6.5.0"
"@typescript-eslint/types" "6.5.0"
"@typescript-eslint/typescript-estree" "6.5.0"
"@typescript-eslint/visitor-keys" "6.5.0"
"@typescript-eslint/scope-manager" "6.6.0"
"@typescript-eslint/types" "6.6.0"
"@typescript-eslint/typescript-estree" "6.6.0"
"@typescript-eslint/visitor-keys" "6.6.0"
debug "^4.3.4"

"@typescript-eslint/scope-manager@6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.5.0.tgz#f2cb20895aaad41b3ad27cc3a338ce8598f261c5"
integrity sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==
"@typescript-eslint/scope-manager@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.6.0.tgz#57105d4419d6de971f7d2c30a2ff4ac40003f61a"
integrity sha512-pT08u5W/GT4KjPUmEtc2kSYvrH8x89cVzkA0Sy2aaOUIw6YxOIjA8ilwLr/1fLjOedX1QAuBpG9XggWqIIfERw==
dependencies:
"@typescript-eslint/types" "6.5.0"
"@typescript-eslint/visitor-keys" "6.5.0"
"@typescript-eslint/types" "6.6.0"
"@typescript-eslint/visitor-keys" "6.6.0"

"@typescript-eslint/type-utils@6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.5.0.tgz#6d246c93739282bc0d2e623f28d0dec6cfcc38d7"
integrity sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A==
"@typescript-eslint/type-utils@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.6.0.tgz#14f651d13b884915c4fca0d27adeb652a4499e86"
integrity sha512-8m16fwAcEnQc69IpeDyokNO+D5spo0w1jepWWY2Q6y5ZKNuj5EhVQXjtVAeDDqvW6Yg7dhclbsz6rTtOvcwpHg==
dependencies:
"@typescript-eslint/typescript-estree" "6.5.0"
"@typescript-eslint/utils" "6.5.0"
"@typescript-eslint/typescript-estree" "6.6.0"
"@typescript-eslint/utils" "6.6.0"
debug "^4.3.4"
ts-api-utils "^1.0.1"

"@typescript-eslint/types@6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.5.0.tgz#f4e55cfd99ac5346ea772770bf212a3e689a8f04"
integrity sha512-eqLLOEF5/lU8jW3Bw+8auf4lZSbbljHR2saKnYqON12G/WsJrGeeDHWuQePoEf9ro22+JkbPfWQwKEC5WwLQ3w==
"@typescript-eslint/types@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.6.0.tgz#95e7ea650a2b28bc5af5ea8907114a48f54618c2"
integrity sha512-CB6QpJQ6BAHlJXdwUmiaXDBmTqIE2bzGTDLADgvqtHWuhfNP3rAOK7kAgRMAET5rDRr9Utt+qAzRBdu3AhR3sg==

"@typescript-eslint/typescript-estree@6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.5.0.tgz#1cef6bc822585e9ef89d88834bc902d911d747ed"
integrity sha512-q0rGwSe9e5Kk/XzliB9h2LBc9tmXX25G0833r7kffbl5437FPWb2tbpIV9wAATebC/018pGa9fwPDuvGN+LxWQ==
"@typescript-eslint/typescript-estree@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.6.0.tgz#373c420d2e12c28220f4a83352280a04823a91b7"
integrity sha512-hMcTQ6Al8MP2E6JKBAaSxSVw5bDhdmbCEhGW/V8QXkb9oNsFkA4SBuOMYVPxD3jbtQ4R/vSODBsr76R6fP3tbA==
dependencies:
"@typescript-eslint/types" "6.5.0"
"@typescript-eslint/visitor-keys" "6.5.0"
"@typescript-eslint/types" "6.6.0"
"@typescript-eslint/visitor-keys" "6.6.0"
debug "^4.3.4"
globby "^11.1.0"
is-glob "^4.0.3"
semver "^7.5.4"
ts-api-utils "^1.0.1"

"@typescript-eslint/utils@6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.5.0.tgz#6668bee4f7f24978b11df8a2ea42d56eebc4662c"
integrity sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==
"@typescript-eslint/utils@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.6.0.tgz#2d686c0f0786da6362d909e27a9de1c13ba2e7dc"
integrity sha512-mPHFoNa2bPIWWglWYdR0QfY9GN0CfvvXX1Sv6DlSTive3jlMTUy+an67//Gysc+0Me9pjitrq0LJp0nGtLgftw==
dependencies:
"@eslint-community/eslint-utils" "^4.4.0"
"@types/json-schema" "^7.0.12"
"@types/semver" "^7.5.0"
"@typescript-eslint/scope-manager" "6.5.0"
"@typescript-eslint/types" "6.5.0"
"@typescript-eslint/typescript-estree" "6.5.0"
"@typescript-eslint/scope-manager" "6.6.0"
"@typescript-eslint/types" "6.6.0"
"@typescript-eslint/typescript-estree" "6.6.0"
semver "^7.5.4"

"@typescript-eslint/visitor-keys@6.5.0":
version "6.5.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.5.0.tgz#1a6f474a0170a447b76f0699ce6700110fd11436"
integrity sha512-yCB/2wkbv3hPsh02ZS8dFQnij9VVQXJMN/gbQsaaY+zxALkZnxa/wagvLEFsAWMPv7d7lxQmNsIzGU1w/T/WyA==
"@typescript-eslint/visitor-keys@6.6.0":
version "6.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.6.0.tgz#1109088b4346c8b2446f3845db526374d9a3bafc"
integrity sha512-L61uJT26cMOfFQ+lMZKoJNbAEckLe539VhTxiGHrWl5XSKQgA0RTBZJW2HFPy5T0ZvPVSD93QsrTKDkfNwJGyQ==
dependencies:
"@typescript-eslint/types" "6.5.0"
"@typescript-eslint/types" "6.6.0"
eslint-visitor-keys "^3.4.1"

"@webassemblyjs/ast@1.11.6", "@webassemblyjs/ast@^1.11.5":
Expand Down Expand Up @@ -3004,10 +3004,10 @@ typedoc-plugin-markdown@^3.15.2:
dependencies:
handlebars "^4.7.7"

typedoc@^0.25.0:
version "0.25.0"
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.0.tgz#287f83d01c1c2186766884f4e04d698820d68115"
integrity sha512-FvCYWhO1n5jACE0C32qg6b3dSfQ8f2VzExnnRboowHtqUD6ARzM2r8YJeZFYXhcm2hI4C2oCRDgNPk/yaQUN9g==
typedoc@^0.25.1:
version "0.25.1"
resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.25.1.tgz#50de2d8fb93623fbfb59e2fa6407ff40e3d3f438"
integrity sha512-c2ye3YUtGIadxN2O6YwPEXgrZcvhlZ6HlhWZ8jQRNzwLPn2ylhdGqdR8HbyDRyALP8J6lmSANILCkkIdNPFxqA==
dependencies:
lunr "^2.3.9"
marked "^4.3.0"
Expand Down

0 comments on commit d3ab08c

Please sign in to comment.