Skip to content

Conversation

@chrismaree
Copy link
Member

@chrismaree chrismaree commented Apr 20, 2022

This PR adds additional exports to our deployments file. they now contain the block number at which each contract on each network is exported. this is used by the relayer to decrease how many blocks lookback we need when initializing clients to decrease node burden.

"PolygonTokenBridger": "0xF92B101f07df74B1f4f3160f9e8a25D48BA5d583",
"Polygon_Adapter": "0xd8176EBf6170513Aa232D065042fa480557232A4",
"RateModelStore": "0x18a200A2427e243154EC8217890Bc08062afc5A2"
"Arbitrum_Adapter": { "address": "0x18F4D98C7CeA6Ab934F2976c2a98009A529d8F49", "blockNumber": 10367195 },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

notice this! we now have exported address and block number for all contracts on all chains :)

}

// Returns the deployment block number of any contract on any network.
export function getDeployedBlockNumber(contractName: string, networkId: number): string {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bots can use this method to see where to query from.

Copy link
Member

@nicholaspai nicholaspai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this introduce breaking changes to relayer-v2?

@chrismaree
Copy link
Member Author

Does this introduce breaking changes to relayer-v2?

nope! latest code there requires these changes.

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.

3 participants