-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Migration] Supplier module #373
[Migration] Supplier module #373
Conversation
d5c8df4
to
a9915b4
Compare
6363e86
to
6569969
Compare
a9915b4
to
1fd29b1
Compare
1fd29b1
to
ea17505
Compare
356dbdc
to
f891ac8
Compare
45763f2
to
4396b69
Compare
proto/poktroll/supplier/params.proto
Outdated
import "amino/amino.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/pokt-network/poktroll/x/supplier/types"; |
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 be consistent and decide to whether put go_package
above or below imports
"github.com/cosmos/cosmos-sdk/baseapp" | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
simtypes "github.com/cosmos/cosmos-sdk/types/simulation" | ||
"github.com/pokt-network/poktroll/x/supplier/keeper" |
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.
"github.com/pokt-network/poktroll/x/supplier/keeper" | |
"github.com/pokt-network/poktroll/x/supplier/keeper" |
x/supplier/types/errors.go
Outdated
|
||
// x/supplier module sentinel errors | ||
var ( | ||
ErrSupplierInvalidStake = sdkerrors.Register(ModuleName, 1, "invalid supplier stake") |
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.
Align with the module's error numbers as low numbers may be reserved.
x/supplier/types/errors.go
Outdated
ErrSupplierProofNotFound = sdkerrors.Register(ModuleName, 13, "proof not found") | ||
ErrSupplierInvalidProof = sdkerrors.Register(ModuleName, 14, "invalid proof") | ||
ErrSupplierInvalidClosestMerkleProof = sdkerrors.Register(ModuleName, 15, "invalid closest merkle proof") | ||
ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") |
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.
ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") | |
ErrSupplierInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") |
@@ -0,0 +1,21 @@ | |||
package types |
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 rename to message_update_params.go
for consistency.
@@ -0,0 +1 @@ | |||
package types |
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.
package types | |
package types | |
// This file is in place to declare the package for dynamically generated protobufs |
13fae74
to
91be215
Compare
…take:coin services
91be215
to
d5cb487
Compare
…stake:coin services
d5cb487
to
62feb1d
Compare
Summary
Human Summary
This branch applies the steps outlined in the migration guide notion doc under the "Module Bootstrapping > Supplier Module" section. To be merged after #385 has been approved.
Issue
Type of change
Select one or more:
Testing
make go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR. This is VERY expensive, only do it after all the reviews are complete.Sanity Checklist