Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove mumbai #432

Merged
merged 2 commits into from
Apr 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,27 @@ jobs:
commit-message: "chore(cache): automated cache update"
delete-branch: true
title: "chore(cache): automated cache update"

- name: Post to a Slack channel
id: slack
if: failure()
uses: slackapi/slack-github-action@v1.24.0
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
channel-id: "C03FJHE0B4Y"
# For posting a rich message using Block Kit
payload: |
{
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
}]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
10 changes: 0 additions & 10 deletions scripts/configs/governance/polygon.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import {ChainId} from '@bgd-labs/js-utils';
import {GovernanceConfig} from '../types';

export const governanceConfigMumbai: GovernanceConfig = {
name: 'Mumbai',
CHAIN_ID: ChainId.mumbai,
ADDRESSES: {
CROSS_CHAIN_CONTROLLER: '0xe521cB5e23DbF8248c0B0C3C2503feA3C4c7Caff',
VOTING_MACHINE: '0x05D0215cFC8D4B726085ADDb1ce43bC5C70f9D8f',
PAYLOADS_CONTROLLER: '0x92041C9904d1F0b8100D1d7e01B760d2cF1Fb426',
},
};

export const governanceConfigPolygon: GovernanceConfig = {
name: 'Polygon',
CHAIN_ID: ChainId.polygon,
Expand Down
9 changes: 0 additions & 9 deletions scripts/configs/networks/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,3 @@ export const polygonAddresses: NetworkAddresses<{
stMATIC_RATE_PROVIDER: '0xdEd6C522d803E35f65318a9a4d7333a22d582199',
},
};

export const mumbaiAddresses: NetworkAddresses = {
name: 'Mumbai',
chainId: ChainId.mumbai,
addresses: {
TRANSPARENT_PROXY_FACTORY: '0x49A726CC7B438dBc4fB89a9548B5E8691e1C35A6',
PROXY_ADMIN: '0xaebfFE29D8E823e8E43695648F418fa8c30AF879',
},
};
28 changes: 0 additions & 28 deletions scripts/configs/pools/polygon.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,6 @@
import {ChainId} from '@bgd-labs/js-utils';
import {PoolConfig} from '../types';

export const mumbaiProtoV2: PoolConfig = {
name: 'Mumbai',
chainId: ChainId.mumbai,
POOL_ADDRESSES_PROVIDER: '0x178113104fEcbcD7fF8669a0150721e231F0FD4B',
additionalAddresses: {
FAUCET: '0x0b3C23243106A69449e79C14c58BB49E358f9B10',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xE6ef11C967898F9525D550014FDEdCFAB63536B5',
UI_INCENTIVE_DATA_PROVIDER: '0x070a7D8F4d7A7A87452C5BaBaB3158e08411907E',
UI_POOL_DATA_PROVIDER: '0xb36a91b1deF63B603896290F6a888c774328519A',
WALLET_BALANCE_PROVIDER: '0xEe7c0172c200e12AFEa3C34837052ec52F3f367A',
WETH_GATEWAY: '0xee9eE614Ad26963bEc1Bec0D2c92879ae1F209fA',
},
};

export const mumbaiProtoV3: PoolConfig = {
name: 'Mumbai',
chainId: ChainId.mumbai,
POOL_ADDRESSES_PROVIDER: '0x4CeDCB57Af02293231BAA9D39354D6BFDFD251e0',
additionalAddresses: {
FAUCET: '0x2c95d10bA4BBEc79e562e8B3f48687751808C925',
UI_INCENTIVE_DATA_PROVIDER: '0x322bCff7b69F832B1a1F56E6BC600C9229CFb907',
UI_POOL_DATA_PROVIDER: '0xD64dDe119f11C88850FD596BE11CE398CC5893e6',
WALLET_BALANCE_PROVIDER: '0xD8A70FC58BC069CFE6529EBF0c1Db067f2b5347E',
WETH_GATEWAY: '0x8dA9412AbB78db20d0B496573D9066C474eA21B8',
STATIC_A_TOKEN_FACTORY: '0x4df6bfA5522aAd4C80e6C95b613B92AC019f2d3e',
},
};

export const polygonProtoV2: PoolConfig = {
name: 'Polygon',
chainId: ChainId.polygon,
Expand Down
15 changes: 3 additions & 12 deletions scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ import {gnosisProtoV3} from './configs/pools/gnosis';
import {bnbProtoV3} from './configs/pools/bnb';
import {polygonZkEvmProtoV3} from './configs/pools/polygonZkEvm';
import {optimismProtoV3, optimismSepoliaProtoV3} from './configs/pools/optimism';
import {
mumbaiProtoV2,
mumbaiProtoV3,
polygonProtoV2,
polygonProtoV3,
} from './configs/pools/polygon';
import {polygonProtoV2, polygonProtoV3} from './configs/pools/polygon';
import {scrollSepoliaProtoV3, scrollProtoV3} from './configs/pools/scroll';
import {generateGovernanceLibrary} from './generator/governanceV3Generator';
import {generateProtocolV2Library} from './generator/protocolV2Generator';
Expand All @@ -38,7 +33,7 @@ import {generateSafetyModule} from './generator/safetyModuleGenerator';
import {governanceConfigArbitrum} from './configs/governance/arbitrum';
import {governanceConfigAvalanche, governanceConfigFuji} from './configs/governance/avalanche';
import {governanceConfigOptimism} from './configs/governance/optimism';
import {governanceConfigMumbai, governanceConfigPolygon} from './configs/governance/polygon';
import {governanceConfigPolygon} from './configs/governance/polygon';
import {generateABIImports} from './generator/abis';
import {governanceConfigMetis} from './configs/governance/metis';
import {governanceConfigBase} from './configs/governance/base';
Expand All @@ -49,7 +44,7 @@ import {generateNetworkAddresses} from './generator/networkGenerator';
import {arbitrumAddresses, arbitrumSepoliaAddresses} from './configs/networks/arbitrum';
import {avalancheAddresses, avalancheFujiAddresses} from './configs/networks/avalanche';
import {ethereumAddresses, sepoliaAddresses} from './configs/networks/ethereum';
import {mumbaiAddresses, polygonAddresses} from './configs/networks/polygon';
import {polygonAddresses} from './configs/networks/polygon';
import {fantomAddresses} from './configs/networks/fantom';
import {optimismAddresses, optimismSepoliaAddresses} from './configs/networks/optimism';
import {metisAddresses} from './configs/networks/metis';
Expand Down Expand Up @@ -82,7 +77,6 @@ async function main() {
governanceConfigFuji,
governanceConfigOptimism,
governanceConfigPolygon,
governanceConfigMumbai,
governanceConfigMetis,
governanceConfigBase,
governanceConfigBNB,
Expand All @@ -98,7 +92,6 @@ async function main() {
mainnetArcV2Pool,
mainnetProtoV2Pool,
polygonProtoV2,
mumbaiProtoV2,
fujiProtoV2,
avalancheProtoV2,
].map((config) => generateProtocolV2Library(config)),
Expand All @@ -109,7 +102,6 @@ async function main() {
mainnetProtoV3Pool,
sepoliaProtoV3,
polygonProtoV3,
mumbaiProtoV3,
avalancheProtoV3,
fujiProtoV3,
baseProtoV3,
Expand Down Expand Up @@ -150,7 +142,6 @@ async function main() {
scrollAddresses,
polygonZkEvmAddresses,
sepoliaAddresses,
mumbaiAddresses,
].map((addresses) => generateNetworkAddresses(addresses));

const govImports = generateGovV2();
Expand Down
Loading