diff --git a/README.md b/README.md index a92cd51a..00d8c22a 100644 --- a/README.md +++ b/README.md @@ -249,8 +249,23 @@ HMToken - 0xd3a31d57fdd790725d0f6b78095f62e8cd4ab317 KVStore - 0x7676F326f1e30E96a76B7F1a860d56A9ac988a7d ``` +## Avalanche Fuji Testnet deployment +``` +Escrow Factory - 0xfb4469201951C3B9a7F1996c477cb7BDBEcE0A88 +HMToken - 0x9406d5c635AD22b0d76c75E52De57A2177919ca3 +KVStore - 0xd232c1426CF0653cE8a71DC98bCfDf10c471c114 +``` + +## Avalanche Mainnet deployment +``` +Escrow Factory - 0x9767a578ba7a5FA1563c8229943cB01cd8446BB4 +HMToken - 0x12365293cb6477d4fc2686e46BB97E3Fb64f1550 +KVStore - 0x4B79eaD28F52eD5686bf0e379717e85fc7aD10Df +``` + ## Maintainers * Polygon : [foufrix](https://github.com/foufrix) * Moonbeam: [menezesphill](https://github.com/menezesphill) * Binance Smart Chain: [leetdev](https://github.com/leetdev) +* Avalanche: [hrik2001](https://github.com/hrik2001) diff --git a/escrow-dashboard/src/constants/networkConstants.tsx b/escrow-dashboard/src/constants/networkConstants.tsx index f5db89d2..df1a07ba 100644 --- a/escrow-dashboard/src/constants/networkConstants.tsx +++ b/escrow-dashboard/src/constants/networkConstants.tsx @@ -91,5 +91,27 @@ export const networkMap: INetworkMap = { 'https://api.thegraph.com/subgraphs/name/humanprotocol/bsctest', showTokenStats: true, }, + avalancheTestnet: { + title: 'Fuji C-Chain', + key: 'avalancheTestnet', + scanner: 'https://testnet.snowtrace.io', + rpcUrl: 'https://api.avax-test.network/ext/C/rpc', + defaultFactoryAddr: '0xfb4469201951C3B9a7F1996c477cb7BDBEcE0A88', + hmtAddr: '0x9406d5c635AD22b0d76c75E52De57A2177919ca3', + graphqlClientUrl: 'https://api.thegraph.com', + // the graph is not implemented yet + showTokenStats: false, + }, + avalanche: { + title: 'Avalanche C-Chain Mainnet', + key: 'avalanche', + scanner: 'https://snowtrace.io', + rpcUrl: 'https://api.avax.network/ext/bc/C/rpc', + defaultFactoryAddr: '0x9767a578ba7a5FA1563c8229943cB01cd8446BB4', + hmtAddr: '0x12365293cb6477d4fc2686e46BB97E3Fb64f1550', + graphqlClientUrl: 'https://api.thegraph.com', + // the graph is not implemented yet + showTokenStats: false, + }, }; export const networks = Object.values(networkMap).map((network) => network); diff --git a/truffle.js b/truffle.js index 3b52b713..6c2fb04f 100644 --- a/truffle.js +++ b/truffle.js @@ -70,6 +70,22 @@ module.exports = { timeoutBlocks: 200, skipDryRun: true, }, + avalancheTestnet: { + provider: () => new HDWalletProvider(MNEMONIC, `https://avalanche-fuji.infura.io/v3/${INFURA_TOKEN}`), + network_id: 43113, + confirmations: 2, + networkCheckTimeout: 10000, + timeoutBlocks: 200, + skipDryRun: true, + }, + avalanche: { + provider: () => new HDWalletProvider(MNEMONIC, `https://avalanche-mainnet.infura.io/v3/${INFURA_TOKEN}`), + network_id: 43113, + confirmations: 2, + networkCheckTimeout: 10000, + timeoutBlocks: 200, + skipDryRun: true, + }, }, compilers: { solc: {