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: Basic SpokePool verification task #582

Merged
merged 5 commits into from
Oct 16, 2024
Merged

feat: Basic SpokePool verification task #582

merged 5 commits into from
Oct 16, 2024

Conversation

pxrl
Copy link
Contributor

@pxrl pxrl commented Aug 14, 2024

This task intends to automate reading a small number of variables from the SpokePool on a given chain. This is currently limited to the set of common variables that are shared amongst all SpokePool deployments, but could be extended to query chain-specific SpokePool variables.

This should be run by any operator deploying a SpokePool to a new chain, and may also be integrated into CI.

@pxrl pxrl requested review from nicholaspai, mrice32 and bmzig August 14, 2024 22:40
This task intends to automate reading a small number of variables from
the SpokePool on a given chain. This is currently limited to the set of
common variables that are shared amongst all SpokePool deployments, but
could be extended to query chain-specific SpokePool variables.

This should be run by any operator deploying a SpokePool to a new chain,
and may also be integrated into CI.

Signed-off-by: Paul <[email protected]>
@pxrl pxrl force-pushed the pxrl/verifySpoke branch from 34aa273 to 0c7a489 Compare August 14, 2024 22:41
tasks/verifySpokePool.ts Outdated Show resolved Hide resolved
tasks/verifySpokePool.ts Outdated Show resolved Hide resolved
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Example output:

~/dev/across-protocol/contracts$ yarn hardhat verify-spokepool --network zora                                                                                       
yarn run v1.22.15
$ /home/phk/dev/across-protocol/contracts/node_modules/.bin/hardhat verify-spokepool --network zora
SpokePool.chainId()                 : 7777777
SpokePool.getCurrentTime()          : 1723675599 (Wed, 14 Aug 2024 22:46:39 GMT)
SpokePool.depositQuoteTimeBuffer()  : 3600
SpokePool.fillDeadlineBuffer()      : 21600
SpokePool.wrappedNativeToken()      : 0x4200000000000000000000000000000000000006
SpokePool.hubPool()                 : 0xc186fA914353c44b2E33eBE05f21846F1048bEda
SpokePool.crossDomainAdmin()        : 0xc186fA914353c44b2E33eBE05f21846F1048bEda
Deposit routes                      : 0
Done in 15.39s.

@pxrl pxrl mentioned this pull request Oct 8, 2024
@pxrl pxrl marked this pull request as ready for review October 16, 2024 13:16
@pxrl pxrl merged commit 676fa0c into master Oct 16, 2024
9 checks passed
@pxrl pxrl deleted the pxrl/verifySpoke branch October 16, 2024 13:29
pxrl added a commit that referenced this pull request Oct 28, 2024
This task intends to automate reading a small number of variables from
the SpokePool on a given chain. This is currently limited to the set of
common variables that are shared amongst all SpokePool deployments, but
could be extended to query chain-specific SpokePool variables.

This should be run by any operator deploying a SpokePool to a new chain,
and may also be integrated into CI.

---------

Signed-off-by: Paul <[email protected]>
pxrl added a commit that referenced this pull request Oct 28, 2024
This task intends to automate reading a small number of variables from
the SpokePool on a given chain. This is currently limited to the set of
common variables that are shared amongst all SpokePool deployments, but
could be extended to query chain-specific SpokePool variables.

This should be run by any operator deploying a SpokePool to a new chain,
and may also be integrated into CI.
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