Skip to content

Commit

Permalink
Change UI deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
matejos committed Sep 17, 2024
1 parent b66393e commit 000d583
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ This would deploy Compound V3 USDC Market on your desired chain with all the col

## Spinning up the frontend

After the deployment, you can spin up the frontend to interact with the protocol. Install all the packages for the frontend:
After the deployment, you can spin up the frontend to interact with the protocol. Generate frontend configuration:

```bash
yarn frontend:codegen
Expand Down
65 changes: 33 additions & 32 deletions api3-aave-ui/deployment-configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,50 @@
"currentMarket": "compound",
"compound": {
"config": {
"baseToken": "0x149e2e6348A7641373C4288fc6065446c99e87F2",
"baseToken": "0x02Eb4380327F65b0119075f6d4c1eeB3902F0631",
"network": {
"chainId": 11155111,
"name": "ETH Sepolia",
"rpc": "https://rough-damp-scion.ethereum-sepolia.quiknode.pro/cc005555675ae91caad17e851ac5061e12d61f4a/",
"chainId": 84532,
"name": "base-sepolia",
"rpc": "https://sepolia.base.org",
"nativeCurrency": {
"name": "Ether",
"symbol": "ETH",
"wrapped": "WETH",
"decimals": 18
},
"explorerLink": "https://sepolia.etherscan.io"
"explorerLink": "https://basescan.org/"
}
},
"deployed-contracts": {
"comet": "0x606720e0109Da235c31CE7eF60ab2B6a2C7c4d65",
"comet:implementation": "0xc20D7de5D219776388313bb0B0Cd98990b7ee4C1",
"comet:implementation:implementation": "0x087DF2F83b5AD3E5b1c611D015385b47688d9B80",
"USDC": "0x149e2e6348A7641373C4288fc6065446c99e87F2",
"USDC:priceFeed": "0xB16d6e5b8FA4F7D30C80625f00fA7cc03C15D093",
"COMP": "0x748293ed983964255E68ffc54b60fc09C7A53D70",
"WBTC": "0xc311e1B80702477831dac8c42D62757cf0E5D94e",
"WETH": "0x896B2aD8DfB1719E239E075C0C271E5547b23Cbd",
"COMP:priceFeed": "0x647543D606C03fF5e2B0EaB90cABc154d8799c66",
"WBTC:priceFeed": "0x46D41173310c8DE12f478C6151626A316AfE7de3",
"WETH:priceFeed": "0x4381865577687d8b61bbC8369Fe8BfA1bb6B3D54",
"cometAdmin": "0x81b11367C34B7bE3603CB13b2dfBF6bDE85186c0",
"timelock": "0x2b1062cc72Bdb50c9aF60dB4EA49377b0C00831e",
"governor": "0xa15259712Dd58D80f6aadB22189a2624Ee05C09F",
"governor:implementation": "0x3CAA666514d17D22Ae2fC169e879B636400fB7d6",
"configurator": "0x639e76Fe741174F0b465bf745999a39F4DA3CaBC",
"configurator:implementation": "0x2E39530015E8Cf8E4AdE4EE7993BE1A39cfD2B9e",
"configuratorAdmin": "0x81b11367C34B7bE3603CB13b2dfBF6bDE85186c0",
"cometFactory": "0xD802E2565b37A06F981b112595240Ee00E1A7a41",
"rewards": "0x84554b6EDa9EA2e33b1E615850f842Fc72b1049d",
"fauceteer": "0x8E1AD0BE8314FEE7054b51d3c684f17cc57720aD",
"bulker": "0x26eb67f98d02B9B4FA5A53cB77976079A0712598",
"comet": "0x66bAd96cA64EDf606e8c2eBA55045078e3cd3675",
"comet:implementation": "0x6fa729A73B29fc9c55b41553E3BDe24d950c161d",
"comet:implementation:implementation": "0xF3C7873Ddf7EF3F1102fdb7Df30A14ce8ff63082",
"USDC": "0x02Eb4380327F65b0119075f6d4c1eeB3902F0631",
"USDC:priceFeed": "0x306822095C32e8303A429067E8ab1b017CA88031",
"cbETH": "0x774eD9EDB0C5202dF9A86183804b5D9E99dC6CA3",
"WETH": "0x4200000000000000000000000000000000000006",
"wstETH": "0x224e12002571C092F360bb54FC1AFFAf8a28aC4E",
"cbETH:priceFeed": "0xDe6ca25b4B6738eB94971d0ED4D1cB346608Ff68",
"WETH:priceFeed": "0x6c3594704165F4c0481eF65AC8c8c521F445F83d",
"wstETH:priceFeed": "0x81fBf49461d9857d77134bEab9cBbFDaf04014B2",
"cometAdmin": "0x94fc0B1C7CfA29Cd1Badb470163D37a2850f66a5",
"timelock": "0xE69baf404a492ea1b02fD307B621f2280E5B69fd",
"governor": "0xbd480C2a868c2053a55Ddb446Fc4aa8C3d948F56",
"governor:implementation": "0x5e4Fa94A3bDad4CC771635F6eDcfd04b2BCDa481",
"COMP": "0xD9F64a501553A6a1709cA0Bb16E7d8c47769212f",
"configurator": "0x2D4b91BD43e1b054a64511706914cbf3f45444AB",
"configurator:implementation": "0x074B7C11458A6067087e0d1F65321C015569bf9d",
"configuratorAdmin": "0x94fc0B1C7CfA29Cd1Badb470163D37a2850f66a5",
"cometFactory": "0x9Cdb34Cee747eD47004fcDb7523fcc92309298ef",
"rewards": "0xee5fDE7F38a2a5E1E54037fBe4fa23aDD6bea272",
"fauceteer": "0x3BD5937209e580Df9eA9B665B4B8Eb3D3704CC27",
"bulker": "0xb2945D0CDa4C119DE184380955aA4FbfAFb6B8cC",
"priceFeeds": {
"COMP": "0x647543D606C03fF5e2B0EaB90cABc154d8799c66",
"WBTC": "0x46D41173310c8DE12f478C6151626A316AfE7de3",
"WETH": "0x4381865577687d8b61bbC8369Fe8BfA1bb6B3D54",
"USDC": "0xB16d6e5b8FA4F7D30C80625f00fA7cc03C15D093"
"cbETH": "0xDe6ca25b4B6738eB94971d0ED4D1cB346608Ff68",
"WETH": "0x6c3594704165F4c0481eF65AC8c8c521F445F83d",
"wstETH": "0x81fBf49461d9857d77134bEab9cBbFDaf04014B2",
"USDC": "0x306822095C32e8303A429067E8ab1b017CA88031"
}
}
}
}
}
2 changes: 1 addition & 1 deletion generateFrontendConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let frontendConfig = {
compound: {
config: {
baseToken: configuration.baseTokenAddress,
rewardToken: configuration?.assets?.[configuration.rewardToken].address,
rewardToken: configuration?.assets?.[configuration.rewardToken]?.address,
network: {
chainId: config.network.chainId,
name: config.network.name,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"adaptors:build": "cd api3-adaptors && yarn",
"adaptors:deploy": "cd api3-adaptors && yarn deploy:adaptors",
"protocol:deploy": "hardhat deploy --network $NETWORK --deployment usdc --no-verify-impl",
"frontend:codegen": "git clone -b compound-v3 https://github.com/api3-ecosystem/api3-aave-ui.git && node generateFrontendConfiguration.js",
"frontend:codegen": "node generateFrontendConfiguration.js",
"frontend:dev": "cd api3-aave-ui && yarn && yarn dev",
"frontend:build": "cd api3-aave-ui && yarn && yarn build",
"frontend:update": "cd api3-aave-ui && git stash && git pull && yarn && cd .. && node generateFrontendConfiguration.js",
Expand Down

0 comments on commit 000d583

Please sign in to comment.