diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 7d94f7ac..a1c2c1ce 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -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 }} diff --git a/scripts/configs/governance/polygon.ts b/scripts/configs/governance/polygon.ts index 14ac568b..776bd988 100644 --- a/scripts/configs/governance/polygon.ts +++ b/scripts/configs/governance/polygon.ts @@ -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, diff --git a/scripts/configs/networks/polygon.ts b/scripts/configs/networks/polygon.ts index 42ead513..d4257a47 100644 --- a/scripts/configs/networks/polygon.ts +++ b/scripts/configs/networks/polygon.ts @@ -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', - }, -}; diff --git a/scripts/configs/pools/polygon.ts b/scripts/configs/pools/polygon.ts index ae24f573..5d39cacf 100644 --- a/scripts/configs/pools/polygon.ts +++ b/scripts/configs/pools/polygon.ts @@ -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, diff --git a/scripts/generateAddresses.ts b/scripts/generateAddresses.ts index 6b57be27..55cda609 100644 --- a/scripts/generateAddresses.ts +++ b/scripts/generateAddresses.ts @@ -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'; @@ -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'; @@ -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'; @@ -82,7 +77,6 @@ async function main() { governanceConfigFuji, governanceConfigOptimism, governanceConfigPolygon, - governanceConfigMumbai, governanceConfigMetis, governanceConfigBase, governanceConfigBNB, @@ -98,7 +92,6 @@ async function main() { mainnetArcV2Pool, mainnetProtoV2Pool, polygonProtoV2, - mumbaiProtoV2, fujiProtoV2, avalancheProtoV2, ].map((config) => generateProtocolV2Library(config)), @@ -109,7 +102,6 @@ async function main() { mainnetProtoV3Pool, sepoliaProtoV3, polygonProtoV3, - mumbaiProtoV3, avalancheProtoV3, fujiProtoV3, baseProtoV3, @@ -150,7 +142,6 @@ async function main() { scrollAddresses, polygonZkEvmAddresses, sepoliaAddresses, - mumbaiAddresses, ].map((addresses) => generateNetworkAddresses(addresses)); const govImports = generateGovV2();