Skip to content

Commit

Permalink
feat: add new contracts to evm script decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
katamarinaki committed Oct 8, 2024
1 parent 2396273 commit bfe2732
Show file tree
Hide file tree
Showing 10 changed files with 11,867 additions and 0 deletions.
2,293 changes: 2,293 additions & 0 deletions abi/CSAccounting.abi.json

Large diffs are not rendered by default.

885 changes: 885 additions & 0 deletions abi/CSFeeDistributor.abi.json

Large diffs are not rendered by default.

1,381 changes: 1,381 additions & 0 deletions abi/CSFeeOracle.abi.json

Large diffs are not rendered by default.

1,141 changes: 1,141 additions & 0 deletions abi/CSHashConsensus.abi.json

Large diffs are not rendered by default.

3,033 changes: 3,033 additions & 0 deletions abi/CSModule.abi.json

Large diffs are not rendered by default.

711 changes: 711 additions & 0 deletions abi/CSVerifier.abi.json

Large diffs are not rendered by default.

774 changes: 774 additions & 0 deletions abi/DepositSecurityModuleV2.abi.json

Large diffs are not rendered by default.

1,593 changes: 1,593 additions & 0 deletions abi/OracleReportSanityCheckerV2.abi.json

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions modules/blockChain/contractAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,49 @@ export const Snapshot: ChainAddressMap = {
export const L1ERC20TokenBridge: ChainAddressMap = {
[CHAINS.Mainnet]: '0x76943C0D61395d8F2edF9060e1533529cAe05dE6',
}

// TODO: add address
export const DepositSecurityModuleV2: ChainAddressMap = {
[CHAINS.Mainnet]: '0x1',
}

// TODO: add address
export const OracleReportSanityCheckerV2: ChainAddressMap = {
[CHAINS.Mainnet]: '0x12',
}

// TODO: add address
export const CSAccounting: ChainAddressMap = {
[CHAINS.Mainnet]: '0x123',
[CHAINS.Holesky]: '0xc093e53e8F4b55A223c18A2Da6fA00e60DD5EFE1',
}

// TODO: add address
export const CSFeeDistributor: ChainAddressMap = {
[CHAINS.Mainnet]: '0x123',
[CHAINS.Holesky]: '0xD7ba648C8F72669C6aE649648B516ec03D07c8ED',
}

// TODO: add address
export const CSFeeOracle: ChainAddressMap = {
[CHAINS.Mainnet]: '0x123',
[CHAINS.Holesky]: '0xaF57326C7d513085051b50912D51809ECC5d98Ee',
}

// TODO: add address
export const CSHashConsensus: ChainAddressMap = {
[CHAINS.Mainnet]: '0x123',
[CHAINS.Holesky]: '0xbF38618Ea09B503c1dED867156A0ea276Ca1AE37',
}

// TODO: add address
export const CSModule: ChainAddressMap = {
[CHAINS.Mainnet]: '0x123',
[CHAINS.Holesky]: '0x4562c3e63c2e586cD1651B958C22F88135aCAd4f',
}

// TODO: add address
export const CSVerifier: ChainAddressMap = {
[CHAINS.Mainnet]: '0x123',
[CHAINS.Holesky]: '0xEaBA76fAf7A5473fAC6a2511d8115beAb43Cf8a7',
}
10 changes: 10 additions & 0 deletions modules/votes/hooks/useEvmScriptDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ export function useEVMScriptDecoder(): EVMScriptDecoder {
[KEYS.Burner]: abis.BurnerAbi__factory.abi,
[KEYS.SimpleDVT]: abis.NodeOperatorsRegistryAbi__factory.abi,
[KEYS.L1ERC20TokenBridge]: abis.L1ERC20TokenBridgeAbi__factory.abi,
[KEYS.DepositSecurityModuleV2]:
abis.DepositSecurityModuleV2Abi__factory.abi,
[KEYS.OracleReportSanityCheckerV2]:
abis.OracleReportSanityCheckerV2Abi__factory.abi,
[KEYS.CSAccounting]: abis.CSAccountingAbi__factory.abi,
[KEYS.CSFeeDistributor]: abis.CSFeeDistributorAbi__factory.abi,
[KEYS.CSFeeOracle]: abis.CSFeeOracleAbi__factory.abi,
[KEYS.CSHashConsensus]: abis.CSHashConsensusAbi__factory.abi,
[KEYS.CSModule]: abis.CSModuleAbi__factory.abi,
[KEYS.CSVerifier]: abis.CSVerifierAbi__factory.abi,
})

const etherscanDecoder = new abiProviders.Base({
Expand Down

0 comments on commit bfe2732

Please sign in to comment.