-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils_distr_proposal.go
41 lines (34 loc) · 1.66 KB
/
utils_distr_proposal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package rest
import (
sdk "github.com/brc20-collab/brczero/libs/cosmos-sdk/types"
"github.com/brc20-collab/brczero/libs/cosmos-sdk/types/rest"
)
type (
// ChangeDistributionTypeProposalReq defines a change distribution type proposal request body.
ChangeDistributionTypeProposalReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Type uint32 `json:"type" yaml:"type"`
Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
}
// WithdrawRewardEnabledProposalReq defines a set withdraw reward enabled proposal request body.
WithdrawRewardEnabledProposalReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Enabled bool `json:"enabled" yaml:"enabled"`
Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
}
// RewardTruncatePrecisionProposalReq defines a set reward truncate precision proposal request body.
RewardTruncatePrecisionProposalReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"`
Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"`
Precision int64 `json:"precision" yaml:"precision"`
}
)