You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we use ducnt/v3.1.0 as a starting point to export mainnet genesis.
2 methods are missing there in order to have a full relevant state of mainnet:
RollappByEIP155KeyPrefix - we currently don't import those objects
VFC contract - we currently don't import the existing contracts
we need to update the current branch to also export those genesis metrics.
The text was updated successfully, but these errors were encountered:
why u think there's issue with RollappByEIP155KeyPrefix?
seems it's set together with the rollapp object, implicitly from the rollappId
// SetRollapp set a specific rollapp in the store from its index
func (k Keeper) SetRollapp(ctx sdk.Context, rollapp types.Rollapp) {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.RollappKeyPrefix))
b := k.cdc.MustMarshal(&rollapp)
store.Set(types.RollappKey(
rollapp.RollappId,
), b)
// check if chain-id is EVM compatible. no err check as rollapp is already validated
rollappID, _ := types.NewChainID(rollapp.RollappId)
if !rollappID.IsEIP155() {
return
}
// In case the chain id is EVM compatible, we store it by EIP155 id, to be retrievable by EIP155 id key
store = prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.RollappByEIP155KeyPrefix))
store.Set(types.RollappByEIP155Key(
rollappID.GetEIP155ID(),
), b)
}
Currently we use
ducnt/v3.1.0
as a starting point to export mainnet genesis.2 methods are missing there in order to have a full relevant state of mainnet:
we need to update the current branch to also export those genesis metrics.
The text was updated successfully, but these errors were encountered: