-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove v1 deployments #308
Conversation
Is there any deployment left? Sepolia? |
From what I see, there is no deployment left. |
Oh, ok. Deroll's code needs at least 1 deployment to exist. |
Why does DeRoll need at least one deployment? |
Because it uses the contracts addresses, like as an example in the utility method |
Maybe you don't need at least one deployment. enum TrustedContractTypeID {
Untrusted = 0,
EtherPortal,
ERC20Portal,
ERC721Portal,
ERC1155Portal,
}
// Could be implemented as a partial mapping instead of using
// 0 as a sentinel value for "untrusted"
mapping (uint256 chainId => mapping (address sender => TrustedContractTypeID)) trustedContractTypeID;
mapping (TrustedContractTypeID => AdvanceRequestHandler) trustedContractHandler; Then, whenever it receives an advance request, it indexes this mapping with the chain ID and message sender from the metadata, and checks if it is trusted, and, if so, its type. From its type, it can forward it to a handler which can then decode it, etc. So, without deployments info, every sender would be untrusted. |
Such mapping is being auto-generated by wagmi-cli, from deployment information in the npm package. |
So it could be an issue with the wagmi CLI or with the plugin. |
There is no issue with the CLI or the plugin. |
I reckon we're only removing v1 deployments to later add v2 deployments, right? |
I didn't have enough funds to deploy the contracts to Ethereum Sepolia, so I deployed them to OP Sepolia instead. Beware that this is just to have Deroll not break, and that contracts might still change before the definitive v2 release. |
b4c3616
to
c94492e
Compare
Removed OP Sepolia deployment, because contracts changed in the meantime. |
Deroll will work because we have deployed the latest version of the contracts to Ethereum Sepolia. |
No description provided.