Skip to content

Commit

Permalink
feat(evm): Add swimUSD details to chain configs
Browse files Browse the repository at this point in the history
  • Loading branch information
wormat committed Sep 20, 2022
1 parent d9f0dde commit 7e37f59
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/evm/src/ecosystems/acala.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Acala> = {
portal: "0xae9d7fe007b3327AA64A32824Aaac52C42a6E624",
},
publicRpcUrls: ["https://acala-polkadot.api.onfinality.io/public-rpc"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -34,6 +38,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Acala> = {
portal: "0xebA00cbe08992EdD08ed7793E07ad6063c807004",
},
publicRpcUrls: ["https://acala-dev.aca-dev.network/eth/http"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
8 changes: 8 additions & 0 deletions packages/evm/src/ecosystems/aurora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Aurora> = {
portal: "0x51b5123a7b0F9b2bA265f9c4C8de7D78D52f510F",
},
publicRpcUrls: ["https://mainnet.aurora.dev/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -34,6 +38,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Aurora> = {
portal: "0xD05eD3ad637b890D68a854d607eEAF11aF456fba",
},
publicRpcUrls: ["https://testnet.aurora.dev/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
8 changes: 8 additions & 0 deletions packages/evm/src/ecosystems/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Avalanche> = {
portal: "0x0e082F06FF657D94310cB8cE8B0D9a04541d8052",
},
publicRpcUrls: ["https://api.avax.network/ext/bc/C/rpc"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -34,6 +38,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Avalanche> = {
portal: "0x61E44E506Ca5659E6c0bba9b678586fA2d729756",
},
publicRpcUrls: ["https://api.avax-test.network/ext/bc/C/rpc"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
12 changes: 12 additions & 0 deletions packages/evm/src/ecosystems/bnb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Bnb> = {
portal: "0xB6F6D86a8f9879A9c87f643768d9efc38c1Da6E7",
},
publicRpcUrls: ["https://bsc-dataseed1.ninicoin.io/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "0xF78479d516A12b9cFb000951D19f67B4fE0B065d", // TODO: Update when deployed
decimals: 8, // TODO: Confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -35,6 +39,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Bnb> = {
portal: "0x9dcF9D205C9De35334D646BeE44b2D2859712A09",
},
publicRpcUrls: ["https://data-seed-prebsc-2-s2.binance.org:8545/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "0x84252522366DB2eA1dAaDe5E2C55CD90a50aC46e", // TODO: Update when deployed
decimals: 8, // TODO: Confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -47,6 +55,10 @@ const localnet: EvmChainConfig<EvmEcosystemId.Bnb> = {
portal: "0x0290FB167208Af455bB137780163b7B7a9a10C16",
},
publicRpcUrls: ["http://localhost:8546"],
swimUsdDetails: {
address: "0x7231BBdaB2F3814664f6E1f072A5ae0525709431", // TODO: Update when deployed
decimals: 8, // TODO: Confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
12 changes: 12 additions & 0 deletions packages/evm/src/ecosystems/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Ethereum> = {
portal: "0x3ee18B2214AFF97000D974cf647E7C347E8fa585",
},
publicRpcUrls: ["https://main-light.eth.linkpool.io/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "0x01F369bF2d5a62CE60B0a2E92143CD623BeCb0fB", // TODO: Update when deployed
decimals: 8, // TODO: Confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -35,6 +39,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Ethereum> = {
portal: "0xF890982f9310df57d00f659cf4fd87e65adEd8d7",
},
publicRpcUrls: ["https://goerli.prylabs.net/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "0x4DF39C514Eb1747bb4D89cA9Ee35718611590935", // TODO: Update when deployed
decimals: 8, // TODO: Confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -47,6 +55,10 @@ const localnet: EvmChainConfig<EvmEcosystemId.Ethereum> = {
portal: "0x0290FB167208Af455bB137780163b7B7a9a10C16",
},
publicRpcUrls: ["http://localhost:8545"],
swimUsdDetails: {
address: "0x56cd8686e818c0C29983eA32fa6938618b35923f", // TODO: Update when deployed
decimals: 8, // TODO: Confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
8 changes: 8 additions & 0 deletions packages/evm/src/ecosystems/fantom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Fantom> = {
portal: "0x7C9Fc5741288cDFdD83CeB07f3ea7e22618D79D2",
},
publicRpcUrls: ["https://rpc.ftm.tools/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -34,6 +38,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Fantom> = {
portal: "0x599CEa2204B4FaECd584Ab1F2b6aCA137a0afbE8",
},
publicRpcUrls: ["https://rpc.testnet.fantom.network/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
8 changes: 8 additions & 0 deletions packages/evm/src/ecosystems/karura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Karura> = {
portal: "0xae9d7fe007b3327AA64A32824Aaac52C42a6E624",
},
publicRpcUrls: ["https://karura.api.onfinality.io/public-rpc"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -34,6 +38,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Karura> = {
portal: "0xd11De1f930eA1F7Dd0290Fe3a2e35b9C91AEFb37",
},
publicRpcUrls: ["https://karura-dev.aca-dev.network/eth/http"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down
8 changes: 8 additions & 0 deletions packages/evm/src/ecosystems/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ const mainnet: EvmChainConfig<EvmEcosystemId.Polygon> = {
portal: "0x5a58505a96D1dbf8dF91cB21B54419FC36e93fdE",
},
publicRpcUrls: ["https://polygon-rpc.com/"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand All @@ -34,6 +38,10 @@ const devnet: EvmChainConfig<EvmEcosystemId.Polygon> = {
portal: "0x377D55a7928c046E18eEbb61977e714d2a76472a",
},
publicRpcUrls: ["https://rpc-mumbai.maticvigil.com"], // TODO: Think about what is best to recommend to MetaMask
swimUsdDetails: {
address: "", // TODO: add when deployed
decimals: 8, // TODO: confirm when deployed
},
tokens: [],
pools: [],
};
Expand Down

0 comments on commit 7e37f59

Please sign in to comment.