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

gasPriceOracle Enhancement and tests #109

Merged
merged 24 commits into from
Mar 1, 2023

Conversation

kanthgithub
Copy link
Contributor

@kanthgithub kanthgithub commented Feb 20, 2023

  • view functions to get sourceGasPrice and siblingGasPrice

  • replace tx.gasprice to sourceGasPrice lookup from GasPriceOracle

  • add a public storage variable to store sourceGasPrice

  • a view function to get sourceGasPrice and relativeGasPrice for a specific destination chainSlug

  • tests for TransmitManager, ExecutionManager

@kanthgithub kanthgithub force-pushed the feature/test-switchboard-transmitter-executor branch from 5cdfaff to 6d64905 Compare February 20, 2023 09:32
@kanthgithub kanthgithub self-assigned this Feb 20, 2023
@kanthgithub kanthgithub added the enhancement New feature or request label Feb 20, 2023
@kanthgithub kanthgithub added this to the Elaichi milestone Feb 20, 2023
@kanthgithub kanthgithub requested review from ameeshaagrawal and arthcp and removed request for ameeshaagrawal February 20, 2023 09:34
@@ -63,6 +63,9 @@ export function getJsonRpcUrl(chain: keyof typeof chainIds): string {
case "arbitrum":
jsonRpcUrl = "https://arb1.arbitrum.io/rpc ";
break;
case "goerli":
jsonRpcUrl = "https://sparkling-distinguished-gadget.ethereum-goerli.discover.quiknode.pro/007d59cbcc70496817a611e740e0f84e14978636/"
Copy link
Contributor

Choose a reason for hiding this comment

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

please don't push private RPCs as this will be a public repo soon!

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like it is not a paid rpc.

@arthcp arthcp merged commit d78bbda into master Mar 1, 2023
@arthcp arthcp deleted the feature/test-switchboard-transmitter-executor branch March 1, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants