Skip to content

Commit

Permalink
feat: add event horizon network
Browse files Browse the repository at this point in the history
  • Loading branch information
slavastartsev committed Jun 18, 2024
1 parent 9a4ff9e commit 23fbd3d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "@electra.finance/sdk",
"version": "0.2.24",
"version": "0.2.25-rc1",
"description": "Electra finance SDK",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
Expand Down
9 changes: 9 additions & 0 deletions src/config/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,14 @@
"baseCurrencyName": "ETH",
"rpc": "https://mainnet.base.org/",
"explorer": "https://basescan.org/"
},
"123420000034": {
"chainId": "123420000034",
"explorer": "https://blockscout-123420000034.raas-testnet.gelato.digital/",
"label": "Event Horizon Testnet",
"shortName": "EH-Testnet",
"code": "eth",
"rpc": "https://rpc-123420000034.raas-testnet.gelato.digital/",
"baseCurrencyName": "ETH"
}
}
15 changes: 15 additions & 0 deletions src/config/envs.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,21 @@
"all": "/price-feed"
}
}
},
"123420000034": {
"api": "https://testing.electra.finance/event-horizon",
"services": {
"aggregator": {
"http": "/backend",
"ws": "/v1"
},
"blockchain": {
"http": ""
},
"priceFeed": {
"all": "/price-feed"
}
}
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { SupportedChainId } from '../types.js';
export const developmentChains = [
SupportedChainId.BSC_TESTNET,
SupportedChainId.SEPOLIA,
SupportedChainId.EVENT_HORIZON
];
export const productionChains = [
SupportedChainId.MAINNET,
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export enum SupportedChainId {

BSC_TESTNET = '97',
SEPOLIA = '11155111',
EVENT_HORIZON = '123420000034',

// For testing and debug purpose
// BROKEN = '0',
Expand Down

0 comments on commit 23fbd3d

Please sign in to comment.