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

Hyperspace #4

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

Hyperspace #4

wants to merge 26 commits into from

Conversation

lalexgap
Copy link
Contributor

No description provided.

## simple-hub, xstate-wallet
CONSENSUS_APP_ADDRESS = '0xeB1170bf49fac482fA296C98Ac04024e8a2d6519'

### NitroAdjudicator and ETHAssetHolder deployed by George Knee, by uploading files to https://remix.ethereum.org/ and using compiler 0.6.10+commit.00c0fcaf, optimization ON. Source code verified on https://goerli.etherscan.io/ .
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's remove stale comments (copypasta) and references to Goerli.

Comment on lines +43 to +46
// TODO: This lets us get around CORS restrictions when using different ports on localhost
if (corsUrl.startsWith('http://localhost')) {
corsUrl = '*';
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain this a little more?

Comment on lines +56 to +60
// TODO: Devtools doesn't support hyperspace yet
if (Number(process.env.CHAIN_NETWORK_ID) === 3141) {
process.env.TARGET_NETWORK = 'hyperspace';
console.log("Using 'hyperspace' as the target network");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How much work to fixup devtools? We make this change in many places...

@@ -347,7 +347,7 @@ export class ChainWatcher implements Chain {

const response = await this.signer.sendTransaction({
...convertNitroTransactionRequest(transactionRequest),
gasPrice: GAS_PRICE
maxPriorityFeePerGas: GAS_PRICE
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Is this a good way to migrate the transaction type? Here's a good reference https://www.liquity.org/blog/how-eip-1559-changes-the-transaction-fees-of-ethereum .

GAS_PRICE is defined on L244 with some reference to Goerli network.

In the short term, we can do whatever seems to work. But we should have an eye on things like this which may break once deployed to Filecoin mainnet.

I think one alternative is to query the chain first to get a maxPriorityFeePerGas.

@netlify
Copy link

netlify bot commented Feb 27, 2023

Deploy Preview for aesthetic-granita-d5edc2 ready!

Name Link
🔨 Latest commit 4ab05d4
🔍 Latest deploy log https://app.netlify.com/sites/aesthetic-granita-d5edc2/deploys/640152ff5de5780008e212e6
😎 Deploy Preview https://deploy-preview-4--aesthetic-granita-d5edc2.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

lalexgap and others added 14 commits February 27, 2023 13:48
- I am not sure why we get these messages
- the resulting error is fixed in an upstream version of the package (thru dependence on client-api-schema, where bug was fixed)
- this seems like a very harmless workaround for now
This should allow us to use the persistent seeder with hyperspace
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