-
Notifications
You must be signed in to change notification settings - Fork 75
chrismaree/add block number to export #143
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
Conversation
Signed-off-by: chrismaree <christopher.maree@gmail.com>
| "PolygonTokenBridger": "0xF92B101f07df74B1f4f3160f9e8a25D48BA5d583", | ||
| "Polygon_Adapter": "0xd8176EBf6170513Aa232D065042fa480557232A4", | ||
| "RateModelStore": "0x18a200A2427e243154EC8217890Bc08062afc5A2" | ||
| "Arbitrum_Adapter": { "address": "0x18F4D98C7CeA6Ab934F2976c2a98009A529d8F49", "blockNumber": 10367195 }, |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
nicholaspai
left a comment
There was a problem hiding this 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?
nope! latest code there requires these changes. |
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.