-
Notifications
You must be signed in to change notification settings - Fork 340
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(sequencer): Implement new create sequencer design #985
feat(sequencer): Implement new create sequencer design #985
Conversation
…-new-create-sequencer-design
…-new-create-sequencer-design
…-new-create-sequencer-design
…-update-rollapp-information
…9-new-create-sequencer-design
…-new-create-sequencer-design
…-design' into zale144/979-new-create-sequencer-design
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto some of what I said here #980 (review)
Especially wrt. proto
x/rollapp/keeper/rollapp.go
Outdated
if !registrationFee.IsZero() { | ||
if err := k.bankKeeper.SendCoinsFromAccountToModule(ctx, creator, types.ModuleName, registrationFee); err != nil { | ||
return errorsmod.Wrap(types.ErrFeePayment, err.Error()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like a bug fix for other pr?
if rollapp.Frozen { | ||
return nil, types.ErrRollappJailed | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should remove ErrRollappJailed jailed imo because it's not well defined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if everyone agrees
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metadata := SequencerMetadata{ | ||
Moniker: d2.Moniker, | ||
Details: d2.Details, | ||
P2PSeeds: d2.P2PSeeds, | ||
Rpcs: d2.Rpcs, | ||
EvmRpcs: d2.EvmRpcs, | ||
RestApiUrl: d2.RestApiUrl, | ||
ExplorerUrl: d2.ExplorerUrl, | ||
GenesisUrls: d2.GenesisUrls, | ||
ContactDetails: d2.ContactDetails, | ||
ExtraData: d2.ExtraData, | ||
Snapshots: d2.Snapshots, | ||
GasPrice: d2.GasPrice, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so you cant update p2p or rpc or evm or rest api or explorer or genesis or snapshots or gas price?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zale144 ?
// snapshots of the sequencer | ||
repeated SnapshotInfo snapshots = 11; | ||
// gas_price defines the value for each gas unit | ||
string gas_price = 12 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omritoptix I think this unneeded.
Better way is to have known gas price is to put it on-chain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is for UX only I believe
…-new-create-sequencer-design
…-new-create-sequencer-design
…-new-create-sequencer-design
P2PSeeds: nil, // TODO | ||
Rpcs: nil, // TODO | ||
EvmRpcs: nil, // TODO | ||
RestApiUrl: "", // TODO | ||
ExplorerUrl: "", // TODO | ||
GenesisUrls: []string{}, // TODO | ||
ContactDetails: &sequencertypes.ContactDetails{ // TODO | ||
Website: "", // TODO | ||
Telegram: "", // TODO | ||
X: "", // TODO | ||
}, // TODO | ||
ExtraData: nil, // TODO | ||
Snapshots: []*sequencertypes.SnapshotInfo{}, // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if sequencer.Jailed { | ||
return nil, types.ErrSequencerJailed | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? needs a comment
// details define other optional details. | ||
string details = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved to go into the other 980
…tration, update tests
0d734ac
into
zale144/978-new-create-rollapp-design
Description
Closes #979
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
PR review checkboxes:
I have...
Unreleased
section inCHANGELOG.md
godoc
commentsSDK Checklist
map
time.Now()
sendCoin
and notSendCoins
Full security checklist here
----;
For Reviewer:
---;
After reviewer approval: