Skip to content

Commit

Permalink
add sei-mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed May 29, 2024
1 parent aec5501 commit e74bc9a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ DATABASE_URL=postgres://postgres:postgres@localhost:5432/grants_stack_indexer
#POLYGON_RPC_URL=
#POLYGON_MUMBAI_RPC_URL=
#SCROLL_SEPOLIA_RPC_URL=
#SEI_MAINNET_RPC_URL=
#SEI_DEVNET_RPC_URL=
#CELO_MAINET_RPC_URL=
#CELO_TESTNET_RPC_URL=
Expand Down
2 changes: 1 addition & 1 deletion fly.staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ kill_timeout = 5
DEPLOYMENT_ENVIRONMENT = "staging"
LOG_LEVEL = "debug"
STORAGE_DIR = "/mnt/indexer"
INDEXED_CHAINS = "mainnet,optimism,fantom,pgn-testnet,pgn-mainnet,arbitrum,polygon,sepolia,avalanche,avalanche-fuji,scroll,scroll-sepolia,base,zksync-era-mainnet,sei-devnet,lukso-mainnet,lukso-testnet,celo-mainnet,celo-testnet"
INDEXED_CHAINS = 'mainnet,optimism,fantom,pgn-testnet,pgn-mainnet,arbitrum,polygon,sepolia,avalanche,avalanche-fuji,scroll,scroll-sepolia,base,zksync-era-mainnet,lukso-mainnet,lukso-testnet,celo-mainnet,celo-testnet,sei-mainnet'
ENABLE_RESOURCE_MONITOR = "true"
NODE_OPTIONS="--max-old-space-size=7168"

Expand Down
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kill_timeout = '5s'
DEPLOYMENT_ENVIRONMENT = 'production'
ENABLE_RESOURCE_MONITOR = 'false'
ESTIMATES_LINEARQF_WORKER_POOL_SIZE = '10'
INDEXED_CHAINS = 'mainnet,optimism,fantom,pgn-testnet,pgn-mainnet,arbitrum,polygon,sepolia,avalanche,avalanche-fuji,scroll,scroll-sepolia,base,zksync-era-mainnet,lukso-mainnet,lukso-testnet,celo-mainnet,celo-testnet'
INDEXED_CHAINS = 'mainnet,optimism,fantom,pgn-testnet,pgn-mainnet,arbitrum,polygon,sepolia,avalanche,avalanche-fuji,scroll,scroll-sepolia,base,zksync-era-mainnet,lukso-mainnet,lukso-testnet,celo-mainnet,celo-testnet,sei-mainnet'
LOG_LEVEL = 'debug'
NODE_OPTIONS = '--max-old-space-size=4096'
PORT = '8080'
Expand Down
42 changes: 42 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type CoingeckoSupportedChainId =
| 42161
| 43114
| 713715
| 1329
| 42
| 42220;

Expand Down Expand Up @@ -1468,6 +1469,47 @@ const CHAINS: Chain[] = [
},
],
},
{
id: 1329,
name: "sei-mainnet",
rpc: rpcUrl
.default("https://evm-rpc.sei-apis.com")
.parse(process.env.SEI_MAINNET_RPC_URL),
pricesFromTimestamp: Date.UTC(2024, 0, 1, 0, 0, 0),
tokens: [
{
code: "SEI",
address: "0x0000000000000000000000000000000000000000",
decimals: 18,
priceSource: {
chainId: 1329,
address: "0x0000000000000000000000000000000000000000",
},
},
{
code: "SEI",
address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
decimals: 18,
priceSource: {
chainId: 1329,
address: "0x0000000000000000000000000000000000000000",
},
}
],
subscriptions: [
// Allo V2
{
contractName: "AlloV2/Registry/V1",
address: "0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3",
fromBlock: 78000000,
},
{
contractName: "AlloV2/Allo/V1",
address: "0x1133eA7Af70876e64665ecD07C0A0476d09465a1",
fromBlock: 78000000,
},
],
},
{
id: 42,
name: "lukso-mainnet",
Expand Down
2 changes: 2 additions & 0 deletions src/prices/coinGecko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const platforms: { [key: number]: string } = {
42161: "arbitrum-one",
43114: "avalanche",
713715: "sei-network",
1329: "sei-network",
42: "lukso",
42220: "celo",
};
Expand All @@ -23,6 +24,7 @@ const nativeTokens: { [key: number]: string } = {
42161: "ethereum",
43114: "avalanche-2",
713715: "sei-network",
1329: "sei-network",
42: "lukso-token",
42220: "celo",
};
Expand Down

0 comments on commit e74bc9a

Please sign in to comment.