Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Deployment in all networks (#2258)
Browse files Browse the repository at this point in the history
* Deployment in all networks

* Add token in networks

* Update token name
  • Loading branch information
anxolin authored Jan 22, 2022
1 parent 4603884 commit b9523af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
8 changes: 3 additions & 5 deletions src/custom/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ export const GP_VAULT_RELAYER: Partial<Record<number, string>> = {
}

export const V_COW_CONTRACT_ADDRESS: Partial<Record<number, string>> = {
// TODO: load addresses from contract package when available
// [ChainId.MAINNET]: GPv2Settlement[ChainId.MAINNET].address,
// [ChainId.RINKEBY]: GPv2Settlement[ChainId.RINKEBY].address,
// [ChainId.XDAI]: GPv2Settlement[ChainId.XDAI].address,
[ChainId.RINKEBY]: '0xB26D8c5D3d0A67F419F7b314D462C8357Cd4b122',
[ChainId.MAINNET]: '0x6d04B3ad33594978D0D4B01CdB7c3bA4a90a7DFe',
[ChainId.XDAI]: '0x18598a23E830eFBA0061A4d27E511cB5AE6AC43E',
[ChainId.RINKEBY]: '0xD7Dd9397Fb942565959c77f8e112ec5aa7D8C92c',
}

// See https://github.com/gnosis/gp-v2-contracts/commit/821b5a8da213297b0f7f1d8b17c893c5627020af#diff-12bbbe13cd5cf42d639e34a39d8795021ba40d3ee1e1a8282df652eb161a11d6R13
Expand Down
31 changes: 15 additions & 16 deletions src/custom/constants/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,26 @@ export const ADDRESS_IMAGE_OVERRIDE = {
}

export const V_COW: Record<number, Token> = {
// TODO: enable once contract addresses are added
// [SupportedChainId.MAINNET]: new Token(
// SupportedChainId.MAINNET,
// V_COW_CONTRACT_ADDRESS[SupportedChainId.MAINNET] || '',
// 18,
// 'vCOW',
// 'Virtual CowSwap Token'
// ),
// [SupportedChainId.XDAI]: new Token(
// SupportedChainId.XDAI,
// V_COW_CONTRACT_ADDRESS[SupportedChainId.XDAI] || '',
// 18,
// 'vCOW',
// 'Virtual CowSwap Token'
// ),
[SupportedChainId.MAINNET]: new Token(
SupportedChainId.MAINNET,
V_COW_CONTRACT_ADDRESS[SupportedChainId.MAINNET] || '',
18,
'vCOW',
'CoW Protocol Virtual Token'
),
[SupportedChainId.XDAI]: new Token(
SupportedChainId.XDAI,
V_COW_CONTRACT_ADDRESS[SupportedChainId.XDAI] || '',
18,
'vCOW',
'CoW Protocol Virtual Token'
),
[SupportedChainId.RINKEBY]: new Token(
SupportedChainId.RINKEBY,
V_COW_CONTRACT_ADDRESS[SupportedChainId.RINKEBY] || '',
18,
'vCOW',
'Virtual CowSwap Token'
'CoW Protocol Virtual Token'
),
}

Expand Down
2 changes: 1 addition & 1 deletion src/custom/state/claim/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ import {
import { EnhancedUserClaimData } from 'pages/Claim/types'
import { supportedChainId } from 'utils/supportedChainId'

const CLAIMS_REPO_BRANCH = 'main'
const CLAIMS_REPO_BRANCH = 'test-deployment-all-networks'
export const CLAIMS_REPO = `https://raw.githubusercontent.com/gnosis/cow-merkle-drop/${CLAIMS_REPO_BRANCH}/`

// Base amount = 1 VCOW
Expand Down

0 comments on commit b9523af

Please sign in to comment.