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

feat: run all health check commands locally #15118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

clemsos
Copy link
Member

@clemsos clemsos commented Nov 21, 2024

Description

This adds a simple yarn check from the root repo that runs all tasks related to health check.

Issues

Fixes #
Refs #

Checklist:

  • 1 PR, 1 purpose: my Pull Request applies to a single purpose
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the docs to reflect my changes if applicable
  • I have added tests (and stories for frontend components) that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • If my code involves visual changes, I am adding applicable screenshots to this thread

Release Note Draft Snippet

@clemsos
Copy link
Member Author

clemsos commented Nov 21, 2024

sample output:

./scripts/health-check.sh
[info]: [Networks/Keys]: BNB Chain -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: Gnosis Chain -  ❌ Missing property opensea
[info]: [Networks/Keys]: Gnosis Chain -  ❌ Missing property uniswapV3
[info]: [Networks/Keys]: zkSync Era -  ❌ Missing property dao
[info]: [Networks/Keys]: zkSync Era -  ❌ Missing property keyManagerAddress
[info]: [Networks/Keys]: zkSync Era -  ❌ Missing property opensea
[info]: [Networks/Keys]: zkSync Era -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: zkEVM (Polygon) -  ❌ Missing property blockScan
[info]: [Networks/Keys]: zkEVM (Polygon) -  ❌ Missing property dao
[info]: [Networks/Keys]: zkEVM (Polygon) -  ❌ Missing property keyManagerAddress
[info]: [Networks/Keys]: zkEVM (Polygon) -  ❌ Missing property opensea
[info]: [Networks/Keys]: zkEVM (Polygon) -  ❌ Missing property uniswapV3
[info]: [Networks/Keys]: zkEVM (Polygon) -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: Celo -  ❌ Missing property dao
[info]: [Networks/Keys]: Celo -  ❌ Missing property opensea
[info]: [Networks/Keys]: Celo -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: Avalanche (C-Chain) -  ❌ Missing property dao
[info]: [Networks/Keys]: Avalanche (C-Chain) -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: Linea -  ❌ Missing property opensea
[info]: [Networks/Keys]: Linea -  ❌ Missing property uniswapV3
[info]: [Networks/Keys]: Linea -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: Base Sepolia -  ❌ Missing property dao
[info]: [Networks/Keys]: Base Sepolia -  ❌ Missing property opensea
[info]: [Networks/Keys]: Base Sepolia -  ❌ Missing property uniswapV3
[info]: [Networks/Keys]: Base Sepolia -  ❌ Missing property url
[info]: [Networks/Keys]: Scroll -  ❌ Missing property blockScan
[info]: [Networks/Keys]: Scroll -  ❌ Missing property dao
[info]: [Networks/Keys]: Scroll -  ❌ Missing property keyManagerAddress
[info]: [Networks/Keys]: Scroll -  ❌ Missing property opensea
[info]: [Networks/Keys]: Scroll -  ❌ Missing property previousDeploys
[info]: [Networks/Keys]: Scroll -  ❌ Missing property uniswapV3
[info]: [Networks/Keys]: Scroll -  ❌ Missing property unlockDaoToken
[info]: [Networks/Keys]: Sepolia -  ❌ Missing property dao
❌ [error]: [Networks/Tokens]: Oracle for token USD Coin (USDC) at 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d on BNB Chain (56) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Ethereum Token (ETH) at 0x2170Ed0880ac9A755fd29B2688956BD959F933F8 on BNB Chain (56) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Tether USD (USDT) at 0x55d398326f99059fF775485246999027B3197955 on BNB Chain (56) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Dai Token (DAI) at 0x1AF3F329e8BE154074D8769D1FFa4eE058B1DBc3 on BNB Chain (56) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Wrapped BNB (WBNB) at 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c on BNB Chain (56) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token (PoS) Wrapped BTC (WBTC) at 0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6 on Polygon (137) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Wrapped Polygon Ecosystem Token (WPOL) at 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270 on Polygon (137) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Bridged USDC (zkSync) (USDC.e) at 0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4 on zkSync Era (324) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Ether (ETH) at 0x000000000000000000000000000000000000800A on zkSync Era (324) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Dai Stablecoin (DAI) at 0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656 on zkSync Era (324) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Tether USD (USDT) at 0x493257fD37EDB34451f62EDf8D2a0C418852bA4C on zkSync Era (324) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Wrapped BTC (WBTC) at 0xBBeB516fb02a01611cBBE0453Fe3c580D7281011 on zkSync Era (324) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Dai Stablecoin (DAI) at 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb on Base (8453) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token UnlockProtocolToken (UP) at 0xaC27fa800955849d6D17cC8952Ba9dD6EAA66187 on Base (8453) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token USD Coin (USDC) at 0xef4229c8c3250C675F21BCefa42f58EfbfF6002a on Celo (42220) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Dai Stablecoin (DAI) at 0xE4fE50cdD716522A56204352f00AA110F731932d on Celo (42220) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token USD Coin (USDC) at 0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E on Avalanche (C-Chain) (43114) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Wrapped Ether (WETH.e) at 0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB on Avalanche (C-Chain) (43114) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token USD Coin (USDC.e) at 0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664 on Avalanche (C-Chain) (43114) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Tether USD (USDT.e) at 0xc7198437980c041c805A1EDcbA50c1Ce5db95118 on Avalanche (C-Chain) (43114) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Dai Stablecoin (DAI.e) at 0xd586E7F844cEa2F87f50152665BCbc2C279D8d70 on Avalanche (C-Chain) (43114) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Wrapped BTC (WBTC.e) at 0x50b7545627a5162F82A992c33b87aDc75187B218 on Avalanche (C-Chain) (43114) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token USDC (USDC) at 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238 on Sepolia (11155111) is not set correctly
❌ [error]: [Networks/Tokens]: Oracle for token Uniswap (UNI) at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Sepolia (11155111) is not set correctly
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PROMO_CODE_CAPPED for Ethereum
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PASSWORD_CAPPED for Ethereum
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook CAPTCHA for zkSync Era
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook GUILD for zkSync Era
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PROMO_CODE_CAPPED for zkSync Era
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PASSWORD_CAPPED for zkSync Era
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook CAPTCHA for zkEVM (Polygon)
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook GUILD for zkEVM (Polygon)
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PROMO_CODE_CAPPED for zkEVM (Polygon)
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PASSWORD_CAPPED for zkEVM (Polygon)
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook CAPTCHA for Base
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook GUILD for Avalanche (C-Chain)
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook CAPTCHA for Base Sepolia
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook GUILD for Base Sepolia
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PROMO_CODE_CAPPED for Base Sepolia
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PASSWORD_CAPPED for Base Sepolia
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook CAPTCHA for Scroll
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook GUILD for Scroll
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PROMO_CODE_CAPPED for Scroll
[info]: [Networks/Hooks]: Missing onKeyPurchaseHook hook PASSWORD_CAPPED for Scroll
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
Error: missing revert data (action="call", data=null, reason=null, transaction={ "data": "0xcd93b532", "to": "0x259813B665C8f6074391028ef782e27B65840d89" }, invocation=null, revert=null, code=CALL_EXCEPTION, version=6.13.4)
    at makeError (/Users/clement/Dev/unlock/unlock/node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at getBuiltinCallException (/Users/clement/Dev/unlock/unlock/node_modules/ethers/src.ts/abi/abi-coder.ts:118:21)
    at Function.getBuiltinCallException (/Users/clement/Dev/unlock/unlock/node_modules/ethers/src.ts/abi/abi-coder.ts:235:16)
    at JsonRpcProvider.getRpcError (/Users/clement/Dev/unlock/unlock/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:989:32)
    at <anonymous> (/Users/clement/Dev/unlock/unlock/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts:563:45)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'CALL_EXCEPTION',
  action: 'call',
  data: null,
  reason: null,
  transaction: {
    to: '0x259813B665C8f6074391028ef782e27B65840d89',
    data: '0xcd93b532'
  },
  invocation: null,
  revert: null,
  shortMessage: 'missing revert data',
  info: {
    error: {
      message: 'You reached the free tier limits, please upgrade your tier to paid one',
      code: 27
    },
    payload: { method: 'eth_call', params: [Array], id: 2, jsonrpc: '2.0' }
  }
}
Fetching graph statuses for: Ethereum,Optimism,BNB Chain,Gnosis Chain,Polygon,zkSync Era,zkEVM (Polygon),Base,Arbitrum,Celo,Avalanche (C-Chain),Linea,Base Sepolia,Scroll,Sepolia

ok done.
Running task for the following networks: arbitrum,avalanche,base,baseSepolia,bsc,celo,gnosis,linea,mainnet,optimism,polygon,scroll,sepolia,zkevm,zksync
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ [warning]: [Base]: ⚠️  ProxyAdmin owner is not the team multisig
⚠️ [warning]: [Base]: ⚠️  Unlock owner is not the team multisig
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
Using Safe Global service at null - chain 1
Using Safe Global service at null - chain 10
Using Safe Global service at null - chain 56
Using Safe Global service at null - chain 100
Using Safe Global service at null - chain 137
Using Safe Global service at https://safe-transaction-zksync.safe.global/api - chain 324
Using Safe Global service at https://safe-transaction-zkevm.safe.global/api - chain 1101
Using Safe Global service at null - chain 8453
Using Safe Global service at null - chain 42161
Using Safe Global service at null - chain 42220
Using Safe Global service at null - chain 43114
Using Safe Global service at https://transaction.safe.linea.build/api - chain 59144
❌ [error]: [Multisig]: on Linea (59144) 0x0b441f6A255a56670B6fdb37B527e091a394eeB9  Couldn't fetch multisig info: request to https://transaction.safe.linea.build/api/v1/safes/0x0b441f6A255a56670B6fdb37B527e091a394eeB9/ failed, reason: getaddrinfo ENOTFOUND transaction.safe.linea.build
Using Safe Global service at null - chain 84532
Using Safe Global service at https://transaction.safe.scroll.xyz/api - chain 534352
❌ [error]: [Multisig]: on Scroll (534352) 0x0feE9413A626a05a08AcB0E0e5D6A483e6A0a172  Couldn't fetch multisig info: request to https://transaction.safe.scroll.xyz/api/v1/safes/0x0feE9413A626a05a08AcB0E0e5D6A483e6A0a172/ failed, reason: getaddrinfo ENOTFOUND transaction.safe.scroll.xyz
Using Safe Global service at null - chain 11155111
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
⚠️ Using account from DEPLOYER_PRIVATE_KEY environment variable.
[BNB Chain (56)] Incorrect config for SAFE Connext module origin 6648936 and origin sender 0x17EEDFb0a6E6e06E95B3A1F928dc4024240BC76B.
[BNB Chain (56)] 1 pending txs in delay module (0xcf07c951C44731f82E548286C7ebeC576149a49e)

@julien51
Copy link
Member

Nice! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants