Skip to content

Commit

Permalink
Merge pull request #1 from Kolektivo-Labs/config/alfajores
Browse files Browse the repository at this point in the history
Config: Alfajores
  • Loading branch information
fabianschu authored Dec 27, 2023
2 parents c77fa6d + 19d04eb commit c1d5547
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 66 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,5 @@ jobs:
- name: Lint
run: yarn lint

abi-integrity:
runs-on: ubuntu-latest
steps:
- name: Checkout subgraph
uses: actions/checkout@v2
with:
path: subgraph
- name: Checkout core
uses: actions/checkout@v2
with:
repository: balancer-labs/balancer-core-v2
token: ${{ secrets.PAT }}
path: core
ref: master
- name: Install
run: cd subgraph && yarn --frozen-lockfile
- name: import abis
run: cd subgraph && yarn import-abis
- name: check abis
run: cd subgraph && git diff HEAD --exit-code
env:
CI: true
18 changes: 18 additions & 0 deletions assets/celo-alfajores.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"stableAssets": [
{
"address": "0x4a4AC35B50DAf081C22856ebB26561F3a22598C6",
"symbol": "cUSD"
},
{
"address": "0x4a4AC35B50DAf081C22856ebB26561F3a22598C6",
"symbol": "USDC"
}
],
"pricingAssets": [
{
"address": "0x524d97a67f50f4a062c28c74f60703aec9028a94",
"symbol": "WCELO"
}
]
}
3 changes: 3 additions & 0 deletions curation-contracts/deployments/celo-alfajores.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"EventEmitter": "0x6350243e9271f050c56f07ec2b0a2916f66a25f2"
}
11 changes: 11 additions & 0 deletions networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -762,3 +762,14 @@ base:
TempLiquidityBootstrappingPoolFactory:
address: "0x0c6052254551EAe3ECac77B01DFcf1025418828f"
startBlock: 1206531
celo-alfajores:
network: celo-alfajores
EventEmitter:
address: "0x6350243e9271f050c56f07ec2b0a2916f66a25f2"
startBlock: 21294172
Vault:
address: "0xf2D39dd1b3e991f23d8a61bABb1c13873640873F"
startBlock: 20896491
WeightedPoolV4Factory:
address: "0x997252b17F61fFc6Ca2fDDd7fa1Cb0cdb98f202D"
startBlock: 20896735
52 changes: 7 additions & 45 deletions src/mappings/helpers/assets.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is automatically generated and contains assets from mainnet.
// This file is automatically generated and contains assets from celo-alfajores.
// Generate for other networks by running: yarn generate-assets [network].
// Supported networks are: arbitrum, goerli, mainnet, and polygon.

Expand All @@ -10,54 +10,16 @@ class Assets {
public fxAssetAggregators: Address[][];
}

export const USDC_ADDRESS = Address.fromString('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48');
export const DAI_ADDRESS = Address.fromString('0x6B175474E89094C44Da98b954EedeAC495271d0F');
export const USDT_ADDRESS = Address.fromString('0xdAC17F958D2ee523a2206206994597C13D831ec7');
export const cUSD_ADDRESS = Address.fromString('0x4a4AC35B50DAf081C22856ebB26561F3a22598C6');
export const USDC_ADDRESS = Address.fromString('0x4a4AC35B50DAf081C22856ebB26561F3a22598C6');

export const assets: Assets = {
stableAssets: [
Address.fromString('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'), // USDC
Address.fromString('0x6B175474E89094C44Da98b954EedeAC495271d0F'), // DAI
Address.fromString('0xdAC17F958D2ee523a2206206994597C13D831ec7'), // USDT
Address.fromString('0x4a4AC35B50DAf081C22856ebB26561F3a22598C6'), // cUSD
Address.fromString('0x4a4AC35B50DAf081C22856ebB26561F3a22598C6'), // USDC
],
pricingAssets: [
Address.fromString('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'), // WETH
Address.fromString('0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0'), // wstETH
Address.fromString('0x804CdB9116a10bB78768D3252355a1b18067bF8f'), // bb-a-DAI-V1
Address.fromString('0x9210F1204b5a24742Eba12f710636D76240dF3d0'), // bb-a-USDC-V1
Address.fromString('0x2BBf681cC4eb09218BEe85EA2a5d3D13Fa40fC0C'), // bb-a-USDT-V1
Address.fromString('0xae37D54Ae477268B9997d4161B96b8200755935c'), // bb-a-DAI-V2
Address.fromString('0x82698aeCc9E28e9Bb27608Bd52cF57f704BD1B83'), // bb-a-USDC-V2
Address.fromString('0x2F4eb100552ef93840d5aDC30560E5513DFfFACb'), // bb-a-USDT-V2
Address.fromString('0x6667c6fa9f2b3Fc1Cc8D85320b62703d938E4385'), // bb-a-DAI-V3
Address.fromString('0xcbFA4532D8B2ade2C261D3DD5ef2A2284f792692'), // bb-a-USDC-V3
Address.fromString('0xA1697F9Af0875B63DdC472d6EeBADa8C1fAB8568'), // bb-a-USDT-V3
Address.fromString('0xfeBb0bbf162E64fb9D0dfe186E517d84C395f016'), // bb-a-USD-V3
Address.fromString('0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599'), // WBTC
Address.fromString('0xba100000625a3754423978a60c9317c58a424e3D'), // BAL
Address.fromString('0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2'), // MKR
Address.fromString('0x6810e776880C02933D47DB1b9fc05908e5386b96'), // GNO
Address.fromString('0x5c6ee304399dbdb9c8ef030ab642b10820db8f56'), // B-80BAL-20WETH
Address.fromString('0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0'), // MATIC
Address.fromString('0xA13a9247ea42D743238089903570127DdA72fE44'), // bb-a-USD
Address.fromString('0x60D604890feaa0b5460B28A424407c24fe89374a'), // bb-a-WETH-V3
],
fxAssetAggregators: [
[
Address.fromString('0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'), // USDC
Address.fromString('0x789190466E21a8b78b8027866CBBDc151542A26C'), // USDC/USD
],
[
Address.fromString('0x70e8dE73cE538DA2bEEd35d14187F6959a8ecA96'), // XSGD
Address.fromString('0xc96129C796F03bb21AC947EfC5329CD1F560305B'), // SGD/USD
],
[
Address.fromString('0x6B175474E89094C44Da98b954EedeAC495271d0F'), // DAI
Address.fromString('0xDEc0a100eaD1fAa37407f0Edc76033426CF90b82'), // DAI/USD
],
[
Address.fromString('0xdB25f211AB05b1c97D595516F45794528a807ad8'), // EURS
Address.fromString('0x02F878A94a1AE1B15705aCD65b5519A46fe3517e'), // EUR/USD
],
Address.fromString('0x524d97a67f50f4a062c28c74f60703aec9028a94'), // WCELO
],
fxAssetAggregators: [],
};
2 changes: 1 addition & 1 deletion src/mappings/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let network: string = dataSource.network();
// in that case, AddressByNetwork and forNetwork must be updated accordingly
// with a new entry for the new network - folowwing subgraph slugs
let vaultAddressByNetwork: AddressByNetwork = {
canonical: '0xBA12222222228d8Ba445958a75a0704d566BF2C8',
canonical: '0xf2D39dd1b3e991f23d8a61bABb1c13873640873F',
custom: '0x0000000000000000000000000000000000000000',
};

Expand Down

0 comments on commit c1d5547

Please sign in to comment.