Skip to content

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
D3Portillo committed Jun 23, 2022
1 parent 624bff4 commit f3e815d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/network/__tests__/network.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("network", () => {
it("No same Network IDs", () => {
expect(foundSimilar(NETWORK_IDS)).toBeFalsy()
expect(foundSimilar(NETWORK_DECIMAL_IDS)).toBeFalsy()
expect(NETWORK_DECIMAL_IDS.length).toBe(12)
expect(NETWORK_DECIMAL_IDS.length).toBe(15)
})

it("[Polygon,Matic].getExplorerURL -eq polygonscan.com", () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/network/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ export const Avalanche: Network
export const Binance: Network
export const Aurora: Network
export const IoTeX: Network
export const PaloAlto: Network
export const Gnosis: Network
export const Moonriver: Network
export const Fuse: Network
33 changes: 33 additions & 0 deletions packages/network/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,39 @@ export const IoTeX = new Chain(
"IOTX"
)

export const Gnosis = new Chain(
100,
"0x64",
"Gnosis",
"Gnosis Chain",
rpc("rpc.xdaichain.com"),
exp("blockscout.com/xdai/mainnet"),
MAINNET,
"xDAI"
)

export const Moonriver = new Chain(
1285,
"0x505",
"Moonriver",
"Moonriver Chain",
rpc("moonriver.public.blastapi.io"),
exp("moonriver.moonscan.io"),
MAINNET,
"MOVR"
)

export const Fuse = new Chain(
122,
"0x7a",
"Fuse",
"Fuse Mainnet",
rpc("rpc.fuse.io"),
exp("explorer.fuse.io"),
MAINNET,
"FUSE"
)

export { NetworkList }
export function getExplorerURL(
txOrAddrr: string,
Expand Down
3 changes: 2 additions & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@forta/network",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"author": {
"name": "Denny Portillo"
Expand All @@ -13,6 +13,7 @@
"crypto",
"web3"
],
"description": "🌤️ A goodie to get chains common metadata.",
"bugs": {
"url": "https://github.com/D3Portillo/forta/issues"
},
Expand Down

0 comments on commit f3e815d

Please sign in to comment.