refactor: Implementing sigs.k8s.io YAML to remove .proto yaml annotations (#9780)

## Description

Draft of: #9705 

Started off with changing codec `MarshalYaml` function to directly go from JSON to yaml using the new library. Replaced the only usage of UnmarshalYaml per request.
---

### Author Checklist

*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.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [x] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed 
- [x] reviewed state machine logic
- [x] reviewed API design and naming
- [x] reviewed documentation is accurate
- [x] reviewed tests and test coverage
- [x] manually tested (if applicable)
This commit is contained in:
Luke Rhoads 2021-09-24 09:37:34 -05:00 committed by GitHub
parent f2652874e6
commit bf11b1bf1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
97 changed files with 2046 additions and 2199 deletions

View File

@ -103,9 +103,11 @@ Ref: https://keepachangelog.com/en/1.0.0/
* [\#9695](https://github.com/cosmos/cosmos-sdk/pull/9695) `<app> keys migrate` CLI command now takes no arguments * [\#9695](https://github.com/cosmos/cosmos-sdk/pull/9695) `<app> keys migrate` CLI command now takes no arguments
* [\#9246](https://github.com/cosmos/cosmos-sdk/pull/9246) Removed the CLI flag `--setup-config-only` from the `testnet` command and added the subcommand `init-files`. * [\#9246](https://github.com/cosmos/cosmos-sdk/pull/9246) Removed the CLI flag `--setup-config-only` from the `testnet` command and added the subcommand `init-files`.
* [\#9780](https://github.com/cosmos/cosmos-sdk/pull/9780) Use sigs.k8s.io for yaml, which might lead to minor YAML output changes
### Improvements ### Improvements
* [\#9780](https://github.com/cosmos/cosmos-sdk/pull/9780) Remove gogoproto `moretags` YAML annotations and add `sigs.k8s.io/yaml` for YAML marshalling.
* (x/bank) [\#10134](https://github.com/cosmos/cosmos-sdk/pull/10134) Add `HasDenomMetadata` function to bank `Keeper` to check if a client coin denom metadata exists in state. * (x/bank) [\#10134](https://github.com/cosmos/cosmos-sdk/pull/10134) Add `HasDenomMetadata` function to bank `Keeper` to check if a client coin denom metadata exists in state.
* (store) [\#10026](https://github.com/cosmos/cosmos-sdk/pull/10026) Improve CacheKVStore datastructures / algorithms, to no longer take O(N^2) time when interleaving iterators and insertions. * (store) [\#10026](https://github.com/cosmos/cosmos-sdk/pull/10026) Improve CacheKVStore datastructures / algorithms, to no longer take O(N^2) time when interleaving iterators and insertions.
* (types) [\#10076](https://github.com/cosmos/cosmos-sdk/pull/10076) Significantly speedup and lower allocations for `Coins.String()`. * (types) [\#10076](https://github.com/cosmos/cosmos-sdk/pull/10076) Significantly speedup and lower allocations for `Coins.String()`.

View File

@ -2,13 +2,12 @@ package client
import ( import (
"bufio" "bufio"
"encoding/json"
"io" "io"
"os" "os"
"github.com/spf13/viper" "github.com/spf13/viper"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
rpcclient "github.com/tendermint/tendermint/rpc/client" rpcclient "github.com/tendermint/tendermint/rpc/client"
@ -279,16 +278,9 @@ func (ctx Context) PrintObjectLegacy(toPrint interface{}) error {
} }
func (ctx Context) printOutput(out []byte) error { func (ctx Context) printOutput(out []byte) error {
var err error
if ctx.OutputFormat == "text" { if ctx.OutputFormat == "text" {
// handle text format by decoding and re-encoding JSON as YAML out, err = yaml.JSONToYAML(out)
var j interface{}
err := json.Unmarshal(out, &j)
if err != nil {
return err
}
out, err = yaml.Marshal(j)
if err != nil { if err != nil {
return err return err
} }
@ -299,7 +291,7 @@ func (ctx Context) printOutput(out []byte) error {
writer = os.Stdout writer = os.Stdout
} }
_, err := writer.Write(out) _, err = writer.Write(out)
if err != nil { if err != nil {
return err return err
} }

View File

@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/libs/cli" "github.com/tendermint/tendermint/libs/cli"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/bech32" "github.com/cosmos/cosmos-sdk/types/bech32"

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"io" "io"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
cryptokeyring "github.com/cosmos/cosmos-sdk/crypto/keyring" cryptokeyring "github.com/cosmos/cosmos-sdk/crypto/keyring"
) )

View File

@ -1,10 +1,8 @@
package codec package codec
import ( import (
"encoding/json"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
) )
// MarshalYAML marshals toPrint using JSONCodec to leverage specialized MarshalJSON methods // MarshalYAML marshals toPrint using JSONCodec to leverage specialized MarshalJSON methods
@ -18,12 +16,5 @@ func MarshalYAML(cdc JSONCodec, toPrint proto.Message) ([]byte, error) {
return nil, err return nil, err
} }
// generate YAML by decoding JSON and re-encoding to YAML return yaml.JSONToYAML(bz)
var j interface{}
err = json.Unmarshal(bz, &j)
if err != nil {
return nil, err
}
return yaml.Marshal(j)
} }

View File

@ -28,8 +28,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// which nests multiple public keys and a threshold, // which nests multiple public keys and a threshold,
// it uses legacy amino address rules. // it uses legacy amino address rules.
type LegacyAminoPubKey struct { type LegacyAminoPubKey struct {
Threshold uint32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty" yaml:"threshold"` Threshold uint32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
PubKeys []*types.Any `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty" yaml:"pubkeys"` PubKeys []*types.Any `protobuf:"bytes,2,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"`
} }
func (m *LegacyAminoPubKey) Reset() { *m = LegacyAminoPubKey{} } func (m *LegacyAminoPubKey) Reset() { *m = LegacyAminoPubKey{} }
@ -72,25 +72,24 @@ func init() {
func init() { proto.RegisterFile("cosmos/crypto/multisig/keys.proto", fileDescriptor_46b57537e097d47d) } func init() { proto.RegisterFile("cosmos/crypto/multisig/keys.proto", fileDescriptor_46b57537e097d47d) }
var fileDescriptor_46b57537e097d47d = []byte{ var fileDescriptor_46b57537e097d47d = []byte{
// 287 bytes of a gzipped FileDescriptorProto // 258 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4c, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0xcf, 0x2d, 0xcd, 0x29, 0xc9, 0x2c, 0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xaa, 0x2c, 0x28, 0xc9, 0xd7, 0xcf, 0x2d, 0xcd,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x07, 0x63, 0x39, 0x86, 0x28, 0xc3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d,
0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x58, 0x68, 0x80, 0x29, 0xdd, 0xe2, 0x94, 0x6c, 0x58, 0xc0, 0x80, 0xac, 0x87, 0x87, 0x4e, 0x12,
0x28, 0xc3, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x58, 0xb0, 0x81, 0x1b, 0xd8, 0x66, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x33, 0x70, 0x72, 0xd8, 0x3e, 0x01,
0x29, 0xdd, 0xe2, 0x94, 0x6c, 0x58, 0x08, 0x82, 0x8c, 0x85, 0x07, 0x63, 0x12, 0x1b, 0xd8, 0x2d, 0x00, 0x00,
0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x76, 0x6e, 0xbf, 0x3c, 0x67, 0x01, 0x00, 0x00,
} }
func (m *LegacyAminoPubKey) Marshal() (dAtA []byte, err error) { func (m *LegacyAminoPubKey) Marshal() (dAtA []byte, err error) {

3
go.mod
View File

@ -54,7 +54,7 @@ require (
google.golang.org/grpc v1.40.0 google.golang.org/grpc v1.40.0
google.golang.org/protobuf v1.27.1 google.golang.org/protobuf v1.27.1
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/yaml.v2 v2.4.0 sigs.k8s.io/yaml v1.2.0
) )
require ( require (
@ -118,6 +118,7 @@ require (
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
golang.org/x/text v0.3.6 // indirect golang.org/x/text v0.3.6 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
nhooyr.io/websocket v1.8.6 // indirect nhooyr.io/websocket v1.8.6 // indirect
) )

2
go.sum
View File

@ -1303,4 +1303,6 @@ rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
sigs.k8s.io/yaml v1.2.0 h1:kr/MCeFWJWTwyaHoR9c8EjH9OumOmoF9YGiZd7lFm/Q=
sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=

View File

@ -19,8 +19,8 @@ message BaseAccount {
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
google.protobuf.Any pub_key = 2 google.protobuf.Any pub_key = 2
[(gogoproto.jsontag) = "public_key,omitempty", (gogoproto.moretags) = "yaml:\"public_key\""]; [(gogoproto.jsontag) = "public_key,omitempty"];
uint64 account_number = 3 [(gogoproto.moretags) = "yaml:\"account_number\""]; uint64 account_number = 3;
uint64 sequence = 4; uint64 sequence = 4;
} }
@ -30,7 +30,7 @@ message ModuleAccount {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
option (cosmos_proto.implements_interface) = "ModuleAccountI"; option (cosmos_proto.implements_interface) = "ModuleAccountI";
BaseAccount base_account = 1 [(gogoproto.embed) = true, (gogoproto.moretags) = "yaml:\"base_account\""]; BaseAccount base_account = 1 [(gogoproto.embed) = true];
string name = 2; string name = 2;
repeated string permissions = 3; repeated string permissions = 3;
} }
@ -40,11 +40,11 @@ message Params {
option (gogoproto.equal) = true; option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
uint64 max_memo_characters = 1 [(gogoproto.moretags) = "yaml:\"max_memo_characters\""]; uint64 max_memo_characters = 1;
uint64 tx_sig_limit = 2 [(gogoproto.moretags) = "yaml:\"tx_sig_limit\""]; uint64 tx_sig_limit = 2;
uint64 tx_size_cost_per_byte = 3 [(gogoproto.moretags) = "yaml:\"tx_size_cost_per_byte\""]; uint64 tx_size_cost_per_byte = 3;
uint64 sig_verify_cost_ed25519 = 4 uint64 sig_verify_cost_ed25519 = 4
[(gogoproto.customname) = "SigVerifyCostED25519", (gogoproto.moretags) = "yaml:\"sig_verify_cost_ed25519\""]; [(gogoproto.customname) = "SigVerifyCostED25519"];
uint64 sig_verify_cost_secp256k1 = 5 uint64 sig_verify_cost_secp256k1 = 5
[(gogoproto.customname) = "SigVerifyCostSecp256k1", (gogoproto.moretags) = "yaml:\"sig_verify_cost_secp256k1\""]; [(gogoproto.customname) = "SigVerifyCostSecp256k1"];
} }

View File

@ -10,8 +10,8 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types";
// Params defines the parameters for the bank module. // Params defines the parameters for the bank module.
message Params { message Params {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
repeated SendEnabled send_enabled = 1 [(gogoproto.moretags) = "yaml:\"send_enabled,omitempty\""]; repeated SendEnabled send_enabled = 1;
bool default_send_enabled = 2 [(gogoproto.moretags) = "yaml:\"default_send_enabled,omitempty\""]; bool default_send_enabled = 2;
} }
// SendEnabled maps coin denom to a send_enabled status (whether a denom is // SendEnabled maps coin denom to a send_enabled status (whether a denom is

View File

@ -22,7 +22,7 @@ message GenesisState {
[(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false];
// denom_metadata defines the metadata of the differents coins. // denom_metadata defines the metadata of the differents coins.
repeated Metadata denom_metadata = 4 [(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.nullable) = false]; repeated Metadata denom_metadata = 4 [(gogoproto.nullable) = false];
} }
// Balance defines an account address and balance pair used in the bank module's // Balance defines an account address and balance pair used in the bank module's

View File

@ -22,8 +22,8 @@ message MsgSend {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"from_address\""]; string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"to_address\""]; string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
repeated cosmos.base.v1beta1.Coin amount = 3 repeated cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
} }

View File

@ -72,10 +72,10 @@ message Attribute {
// GasInfo defines tx execution gas context. // GasInfo defines tx execution gas context.
message GasInfo { message GasInfo {
// GasWanted is the maximum units of work we allow this tx to perform. // GasWanted is the maximum units of work we allow this tx to perform.
uint64 gas_wanted = 1 [(gogoproto.moretags) = "yaml:\"gas_wanted\""]; uint64 gas_wanted = 1;
// GasUsed is the amount of gas actually consumed. // GasUsed is the amount of gas actually consumed.
uint64 gas_used = 2 [(gogoproto.moretags) = "yaml:\"gas_used\""]; uint64 gas_used = 2;
} }
// Result is the union of ResponseFormat and ResponseCheckTx. // Result is the union of ResponseFormat and ResponseCheckTx.
@ -123,13 +123,13 @@ message SearchTxsResult {
option (gogoproto.stringer) = true; option (gogoproto.stringer) = true;
// Count of all txs // Count of all txs
uint64 total_count = 1 [(gogoproto.moretags) = "yaml:\"total_count\"", (gogoproto.jsontag) = "total_count"]; uint64 total_count = 1 [(gogoproto.jsontag) = "total_count"];
// Count of txs in current page // Count of txs in current page
uint64 count = 2; uint64 count = 2;
// Index of current page, start from 1 // Index of current page, start from 1
uint64 page_number = 3 [(gogoproto.moretags) = "yaml:\"page_number\"", (gogoproto.jsontag) = "page_number"]; uint64 page_number = 3 [(gogoproto.jsontag) = "page_number"];
// Count of total pages // Count of total pages
uint64 page_total = 4 [(gogoproto.moretags) = "yaml:\"page_total\"", (gogoproto.jsontag) = "page_total"]; uint64 page_total = 4 [(gogoproto.jsontag) = "page_total"];
// Max count txs per page // Max count txs per page
uint64 limit = 5; uint64 limit = 5;
// List of txs in current page // List of txs in current page

View File

@ -10,7 +10,7 @@ import "gogoproto/gogo.proto";
message Capability { message Capability {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
uint64 index = 1 [(gogoproto.moretags) = "yaml:\"index\""]; uint64 index = 1;
} }
// Owner defines a single capability owner. An owner is defined by the name of // Owner defines a single capability owner. An owner is defined by the name of
@ -19,8 +19,8 @@ message Owner {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string module = 1 [(gogoproto.moretags) = "yaml:\"module\""]; string module = 1;
string name = 2 [(gogoproto.moretags) = "yaml:\"name\""]; string name = 2;
} }
// CapabilityOwners defines a set of owners of a single Capability. The set of // CapabilityOwners defines a set of owners of a single Capability. The set of

View File

@ -12,7 +12,7 @@ message GenesisOwners {
uint64 index = 1; uint64 index = 1;
// index_owners are the owners at the given index. // index_owners are the owners at the given index.
CapabilityOwners index_owners = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"index_owners\""]; CapabilityOwners index_owners = 2 [(gogoproto.nullable) = false];
} }
// GenesisState defines the capability module's genesis state. // GenesisState defines the capability module's genesis state.

View File

@ -11,5 +11,5 @@ message GenesisState {
// constant_fee is the fee used to verify the invariant in the crisis // constant_fee is the fee used to verify the invariant in the crisis
// module. // module.
cosmos.base.v1beta1.Coin constant_fee = 3 cosmos.base.v1beta1.Coin constant_fee = 3
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"constant_fee\""]; [(gogoproto.nullable) = false];
} }

View File

@ -18,8 +18,8 @@ message MsgVerifyInvariant {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string sender = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string invariant_module_name = 2 [(gogoproto.moretags) = "yaml:\"invariant_module_name\""]; string invariant_module_name = 2;
string invariant_route = 3 [(gogoproto.moretags) = "yaml:\"invariant_route\""]; string invariant_route = 3;
} }
// MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. // MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type.

View File

@ -12,7 +12,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/multisig";
message LegacyAminoPubKey { message LegacyAminoPubKey {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
uint32 threshold = 1 [(gogoproto.moretags) = "yaml:\"threshold\""]; uint32 threshold = 1;
repeated google.protobuf.Any public_keys = 2 repeated google.protobuf.Any public_keys = 2
[(gogoproto.customname) = "PubKeys", (gogoproto.moretags) = "yaml:\"pubkeys\""]; [(gogoproto.customname) = "PubKeys"];
} }

View File

@ -13,23 +13,20 @@ message Params {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
string community_tax = 1 [ string community_tax = 1 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"community_tax\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
string base_proposer_reward = 2 [ string base_proposer_reward = 2 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"base_proposer_reward\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
string bonus_proposer_reward = 3 [ string bonus_proposer_reward = 3 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"bonus_proposer_reward\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
bool withdraw_addr_enabled = 4 [(gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; bool withdraw_addr_enabled = 4;
} }
// ValidatorHistoricalRewards represents historical rewards for a validator. // ValidatorHistoricalRewards represents historical rewards for a validator.
@ -46,11 +43,10 @@ message Params {
// + one per validator for the zeroeth period, set on initialization // + one per validator for the zeroeth period, set on initialization
message ValidatorHistoricalRewards { message ValidatorHistoricalRewards {
repeated cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [ repeated cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [
(gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"",
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
uint32 reference_count = 2 [(gogoproto.moretags) = "yaml:\"reference_count\""]; uint32 reference_count = 2;
} }
// ValidatorCurrentRewards represents current rewards and current // ValidatorCurrentRewards represents current rewards and current
@ -73,7 +69,6 @@ message ValidatorAccumulatedCommission {
// for a validator inexpensive to track, allows simple sanity checks. // for a validator inexpensive to track, allows simple sanity checks.
message ValidatorOutstandingRewards { message ValidatorOutstandingRewards {
repeated cosmos.base.v1beta1.DecCoin rewards = 1 [ repeated cosmos.base.v1beta1.DecCoin rewards = 1 [
(gogoproto.moretags) = "yaml:\"rewards\"",
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
@ -84,7 +79,7 @@ message ValidatorOutstandingRewards {
// This is needed to calculate appropriate amount of staking tokens // This is needed to calculate appropriate amount of staking tokens
// for delegations which are withdrawn after a slash has occurred. // for delegations which are withdrawn after a slash has occurred.
message ValidatorSlashEvent { message ValidatorSlashEvent {
uint64 validator_period = 1 [(gogoproto.moretags) = "yaml:\"validator_period\""]; uint64 validator_period = 1;
string fraction = 2 [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; string fraction = 2 [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
} }
@ -92,15 +87,14 @@ message ValidatorSlashEvent {
message ValidatorSlashEvents { message ValidatorSlashEvents {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
repeated ValidatorSlashEvent validator_slash_events = 1 repeated ValidatorSlashEvent validator_slash_events = 1
[(gogoproto.moretags) = "yaml:\"validator_slash_events\"", (gogoproto.nullable) = false]; [(gogoproto.nullable) = false];
} }
// FeePool is the global fee pool for distribution. // FeePool is the global fee pool for distribution.
message FeePool { message FeePool {
repeated cosmos.base.v1beta1.DecCoin community_pool = 1 [ repeated cosmos.base.v1beta1.DecCoin community_pool = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"
(gogoproto.moretags) = "yaml:\"community_pool\""
]; ];
} }
@ -126,14 +120,13 @@ message CommunityPoolSpendProposal {
// the delegators within the validator may be left with less than a full token, // the delegators within the validator may be left with less than a full token,
// thus sdk.Dec is used. // thus sdk.Dec is used.
message DelegatorStartingInfo { message DelegatorStartingInfo {
uint64 previous_period = 1 [(gogoproto.moretags) = "yaml:\"previous_period\""]; uint64 previous_period = 1;
string stake = 2 [ string stake = 2 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"stake\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
uint64 height = 3 [(gogoproto.moretags) = "yaml:\"creation_height\"", (gogoproto.jsontag) = "creation_height"]; uint64 height = 3 [(gogoproto.jsontag) = "creation_height"];
} }
// DelegationDelegatorReward represents the properties // DelegationDelegatorReward represents the properties
@ -143,8 +136,7 @@ message DelegationDelegatorReward {
option (gogoproto.goproto_stringer) = true; option (gogoproto.goproto_stringer) = true;
string validator_address = 1 [ string validator_address = 1 [
(cosmos_proto.scalar) = "cosmos.AddressString", (cosmos_proto.scalar) = "cosmos.AddressString"
(gogoproto.moretags) = "yaml:\"validator_address\""
]; ];
repeated cosmos.base.v1beta1.DecCoin reward = 2 repeated cosmos.base.v1beta1.DecCoin reward = 2
@ -157,9 +149,9 @@ message CommunityPoolSpendProposalWithDeposit {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = true; option (gogoproto.goproto_stringer) = true;
string title = 1 [(gogoproto.moretags) = "yaml:\"title\""]; string title = 1;
string description = 2 [(gogoproto.moretags) = "yaml:\"description\""]; string description = 2;
string recipient = 3 [(gogoproto.moretags) = "yaml:\"recipient\""]; string recipient = 3;
string amount = 4 [(gogoproto.moretags) = "yaml:\"amount\""]; string amount = 4;
string deposit = 5 [(gogoproto.moretags) = "yaml:\"deposit\""]; string deposit = 5;
} }

View File

@ -17,10 +17,10 @@ message DelegatorWithdrawInfo {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// delegator_address is the address of the delegator. // delegator_address is the address of the delegator.
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// withdraw_address is the address to withdraw the delegation rewards to. // withdraw_address is the address to withdraw the delegation rewards to.
string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"withdraw_address\""]; string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// ValidatorOutstandingRewardsRecord is used for import/export via genesis json. // ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
@ -29,13 +29,12 @@ message ValidatorOutstandingRewardsRecord {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// validator_address is the address of the validator. // validator_address is the address of the validator.
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// outstanding_rewards represents the oustanding rewards of a validator. // outstanding_rewards represents the oustanding rewards of a validator.
repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [ repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins",
(gogoproto.nullable) = false, (gogoproto.nullable) = false
(gogoproto.moretags) = "yaml:\"outstanding_rewards\""
]; ];
} }
@ -46,11 +45,11 @@ message ValidatorAccumulatedCommissionRecord {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// validator_address is the address of the validator. // validator_address is the address of the validator.
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// accumulated is the accumulated commission of a validator. // accumulated is the accumulated commission of a validator.
ValidatorAccumulatedCommission accumulated = 2 ValidatorAccumulatedCommission accumulated = 2
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"accumulated\""]; [(gogoproto.nullable) = false];
} }
// ValidatorHistoricalRewardsRecord is used for import / export via genesis // ValidatorHistoricalRewardsRecord is used for import / export via genesis
@ -60,13 +59,13 @@ message ValidatorHistoricalRewardsRecord {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// validator_address is the address of the validator. // validator_address is the address of the validator.
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// period defines the period the historical rewards apply to. // period defines the period the historical rewards apply to.
uint64 period = 2; uint64 period = 2;
// rewards defines the historical rewards of a validator. // rewards defines the historical rewards of a validator.
ValidatorHistoricalRewards rewards = 3 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"rewards\""]; ValidatorHistoricalRewards rewards = 3 [(gogoproto.nullable) = false];
} }
// ValidatorCurrentRewardsRecord is used for import / export via genesis json. // ValidatorCurrentRewardsRecord is used for import / export via genesis json.
@ -75,10 +74,10 @@ message ValidatorCurrentRewardsRecord {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// validator_address is the address of the validator. // validator_address is the address of the validator.
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// rewards defines the current rewards of a validator. // rewards defines the current rewards of a validator.
ValidatorCurrentRewards rewards = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"rewards\""]; ValidatorCurrentRewards rewards = 2 [(gogoproto.nullable) = false];
} }
// DelegatorStartingInfoRecord used for import / export via genesis json. // DelegatorStartingInfoRecord used for import / export via genesis json.
@ -87,14 +86,14 @@ message DelegatorStartingInfoRecord {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// delegator_address is the address of the delegator. // delegator_address is the address of the delegator.
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// validator_address is the address of the validator. // validator_address is the address of the validator.
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// starting_info defines the starting info of a delegator. // starting_info defines the starting info of a delegator.
DelegatorStartingInfo starting_info = 3 DelegatorStartingInfo starting_info = 3
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"starting_info\""]; [(gogoproto.nullable) = false];
} }
// ValidatorSlashEventRecord is used for import / export via genesis json. // ValidatorSlashEventRecord is used for import / export via genesis json.
@ -103,13 +102,13 @@ message ValidatorSlashEventRecord {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// validator_address is the address of the validator. // validator_address is the address of the validator.
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// height defines the block height at which the slash event occured. // height defines the block height at which the slash event occured.
uint64 height = 2; uint64 height = 2;
// period is the period of the slash event. // period is the period of the slash event.
uint64 period = 3; uint64 period = 3;
// validator_slash_event describes the slash event. // validator_slash_event describes the slash event.
ValidatorSlashEvent validator_slash_event = 4 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"event\""]; ValidatorSlashEvent validator_slash_event = 4 [(gogoproto.nullable) = false];
} }
// GenesisState defines the distribution module's genesis state. // GenesisState defines the distribution module's genesis state.
@ -118,39 +117,39 @@ message GenesisState {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// params defines all the paramaters of the module. // params defines all the paramaters of the module.
Params params = 1 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"params\""]; Params params = 1 [(gogoproto.nullable) = false];
// fee_pool defines the fee pool at genesis. // fee_pool defines the fee pool at genesis.
FeePool fee_pool = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"fee_pool\""]; FeePool fee_pool = 2 [(gogoproto.nullable) = false];
// fee_pool defines the delegator withdraw infos at genesis. // fee_pool defines the delegator withdraw infos at genesis.
repeated DelegatorWithdrawInfo delegator_withdraw_infos = 3 repeated DelegatorWithdrawInfo delegator_withdraw_infos = 3
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"delegator_withdraw_infos\""]; [(gogoproto.nullable) = false];
// fee_pool defines the previous proposer at genesis. // fee_pool defines the previous proposer at genesis.
string previous_proposer = 4 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"previous_proposer\""]; string previous_proposer = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// fee_pool defines the outstanding rewards of all validators at genesis. // fee_pool defines the outstanding rewards of all validators at genesis.
repeated ValidatorOutstandingRewardsRecord outstanding_rewards = 5 repeated ValidatorOutstandingRewardsRecord outstanding_rewards = 5
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outstanding_rewards\""]; [(gogoproto.nullable) = false];
// fee_pool defines the accumulated commisions of all validators at genesis. // fee_pool defines the accumulated commisions of all validators at genesis.
repeated ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6 repeated ValidatorAccumulatedCommissionRecord validator_accumulated_commissions = 6
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_accumulated_commissions\""]; [(gogoproto.nullable) = false];
// fee_pool defines the historical rewards of all validators at genesis. // fee_pool defines the historical rewards of all validators at genesis.
repeated ValidatorHistoricalRewardsRecord validator_historical_rewards = 7 repeated ValidatorHistoricalRewardsRecord validator_historical_rewards = 7
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_historical_rewards\""]; [(gogoproto.nullable) = false];
// fee_pool defines the current rewards of all validators at genesis. // fee_pool defines the current rewards of all validators at genesis.
repeated ValidatorCurrentRewardsRecord validator_current_rewards = 8 repeated ValidatorCurrentRewardsRecord validator_current_rewards = 8
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_current_rewards\""]; [(gogoproto.nullable) = false];
// fee_pool defines the delegator starting infos at genesis. // fee_pool defines the delegator starting infos at genesis.
repeated DelegatorStartingInfoRecord delegator_starting_infos = 9 repeated DelegatorStartingInfoRecord delegator_starting_infos = 9
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"delegator_starting_infos\""]; [(gogoproto.nullable) = false];
// fee_pool defines the validator slash events at genesis. // fee_pool defines the validator slash events at genesis.
repeated ValidatorSlashEventRecord validator_slash_events = 10 repeated ValidatorSlashEventRecord validator_slash_events = 10
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_slash_events\""]; [(gogoproto.nullable) = false];
} }

View File

@ -33,8 +33,8 @@ message MsgSetWithdrawAddress {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"withdraw_address\""]; string withdraw_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. // MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type.
@ -46,8 +46,8 @@ message MsgWithdrawDelegatorReward {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. // MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type.
@ -59,7 +59,7 @@ message MsgWithdrawValidatorCommission {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. // MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type.

View File

@ -18,5 +18,5 @@ message Equivocation {
int64 height = 1; int64 height = 1;
google.protobuf.Timestamp time = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; google.protobuf.Timestamp time = 2 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
int64 power = 3; int64 power = 3;
string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"consensus_address\""]; string consensus_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }

View File

@ -10,7 +10,6 @@ message GenesisState {
// gen_txs defines the genesis transactions. // gen_txs defines the genesis transactions.
repeated bytes gen_txs = 1 [ repeated bytes gen_txs = 1 [
(gogoproto.casttype) = "encoding/json.RawMessage", (gogoproto.casttype) = "encoding/json.RawMessage",
(gogoproto.jsontag) = "gentxs", (gogoproto.jsontag) = "gentxs"
(gogoproto.moretags) = "yaml:\"gentxs\""
]; ];
} }

View File

@ -10,7 +10,7 @@ option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types";
// GenesisState defines the gov module's genesis state. // GenesisState defines the gov module's genesis state.
message GenesisState { message GenesisState {
// starting_proposal_id is the ID of the starting proposal. // starting_proposal_id is the ID of the starting proposal.
uint64 starting_proposal_id = 1 [(gogoproto.moretags) = "yaml:\"starting_proposal_id\""]; uint64 starting_proposal_id = 1;
// deposits defines all the deposits present at genesis. // deposits defines all the deposits present at genesis.
repeated Deposit deposits = 2 [(gogoproto.castrepeated) = "Deposits", (gogoproto.nullable) = false]; repeated Deposit deposits = 2 [(gogoproto.castrepeated) = "Deposits", (gogoproto.nullable) = false];
// votes defines all the votes present at genesis. // votes defines all the votes present at genesis.
@ -18,9 +18,9 @@ message GenesisState {
// proposals defines all the proposals present at genesis. // proposals defines all the proposals present at genesis.
repeated Proposal proposals = 4 [(gogoproto.castrepeated) = "Proposals", (gogoproto.nullable) = false]; repeated Proposal proposals = 4 [(gogoproto.castrepeated) = "Proposals", (gogoproto.nullable) = false];
// params defines all the paramaters of related to deposit. // params defines all the paramaters of related to deposit.
DepositParams deposit_params = 5 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_params\""]; DepositParams deposit_params = 5 [(gogoproto.nullable) = false];
// params defines all the paramaters of related to voting. // params defines all the paramaters of related to voting.
VotingParams voting_params = 6 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_params\""]; VotingParams voting_params = 6 [(gogoproto.nullable) = false];
// params defines all the paramaters of related to tally. // params defines all the paramaters of related to tally.
TallyParams tally_params = 7 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"tally_params\""]; TallyParams tally_params = 7 [(gogoproto.nullable) = false];
} }

View File

@ -35,8 +35,7 @@ message WeightedVoteOption {
string weight = 2 [ string weight = 2 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false, (gogoproto.nullable) = false
(gogoproto.moretags) = "yaml:\"weight\""
]; ];
} }
@ -57,7 +56,7 @@ message Deposit {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
uint64 proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""]; uint64 proposal_id = 1;
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
repeated cosmos.base.v1beta1.Coin amount = 3 repeated cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
@ -67,24 +66,23 @@ message Deposit {
message Proposal { message Proposal {
option (gogoproto.equal) = true; option (gogoproto.equal) = true;
uint64 proposal_id = 1 [(gogoproto.jsontag) = "id", (gogoproto.moretags) = "yaml:\"id\""]; uint64 proposal_id = 1 [(gogoproto.jsontag) = "id"];
google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "Content"]; google.protobuf.Any content = 2 [(cosmos_proto.accepts_interface) = "Content"];
ProposalStatus status = 3 [(gogoproto.moretags) = "yaml:\"proposal_status\""]; ProposalStatus status = 3;
TallyResult final_tally_result = 4 TallyResult final_tally_result = 4
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"final_tally_result\""]; [(gogoproto.nullable) = false];
google.protobuf.Timestamp submit_time = 5 google.protobuf.Timestamp submit_time = 5
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"submit_time\""]; [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp deposit_end_time = 6 google.protobuf.Timestamp deposit_end_time = 6
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_end_time\""]; [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
repeated cosmos.base.v1beta1.Coin total_deposit = 7 [ repeated cosmos.base.v1beta1.Coin total_deposit = 7 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
(gogoproto.moretags) = "yaml:\"total_deposit\""
]; ];
google.protobuf.Timestamp voting_start_time = 8 google.protobuf.Timestamp voting_start_time = 8
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_start_time\""]; [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp voting_end_time = 9 google.protobuf.Timestamp voting_end_time = 9
[(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"voting_end_time\""]; [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
} }
// ProposalStatus enumerates the valid statuses of a proposal. // ProposalStatus enumerates the valid statuses of a proposal.
@ -120,8 +118,7 @@ message TallyResult {
string no_with_veto = 4 [ string no_with_veto = 4 [
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false, (gogoproto.nullable) = false
(gogoproto.moretags) = "yaml:\"no_with_veto\""
]; ];
} }
@ -131,7 +128,7 @@ message Vote {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
uint64 proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""]; uint64 proposal_id = 1;
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// Deprecated: Prefer to use `options` instead. This field is set in queries // Deprecated: Prefer to use `options` instead. This field is set in queries
// if and only if `len(options) == 1` and that option has weight 1. In all // if and only if `len(options) == 1` and that option has weight 1. In all
@ -146,7 +143,6 @@ message DepositParams {
repeated cosmos.base.v1beta1.Coin min_deposit = 1 [ repeated cosmos.base.v1beta1.Coin min_deposit = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "yaml:\"min_deposit\"",
(gogoproto.jsontag) = "min_deposit,omitempty" (gogoproto.jsontag) = "min_deposit,omitempty"
]; ];
@ -155,8 +151,7 @@ message DepositParams {
google.protobuf.Duration max_deposit_period = 2 [ google.protobuf.Duration max_deposit_period = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.jsontag) = "max_deposit_period,omitempty", (gogoproto.jsontag) = "max_deposit_period,omitempty"
(gogoproto.moretags) = "yaml:\"max_deposit_period\""
]; ];
} }
@ -166,8 +161,7 @@ message VotingParams {
google.protobuf.Duration voting_period = 1 [ google.protobuf.Duration voting_period = 1 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true,
(gogoproto.jsontag) = "voting_period,omitempty", (gogoproto.jsontag) = "voting_period,omitempty"
(gogoproto.moretags) = "yaml:\"voting_period\""
]; ];
} }
@ -193,7 +187,6 @@ message TallyParams {
bytes veto_threshold = 3 [ bytes veto_threshold = 3 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.jsontag) = "veto_threshold,omitempty", (gogoproto.jsontag) = "veto_threshold,omitempty"
(gogoproto.moretags) = "yaml:\"veto_threshold\""
]; ];
} }

View File

@ -35,15 +35,14 @@ message MsgSubmitProposal {
google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"]; google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"];
repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [ repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
(gogoproto.moretags) = "yaml:\"initial_deposit\""
]; ];
string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string proposer = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. // MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
message MsgSubmitProposalResponse { message MsgSubmitProposalResponse {
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id"];
} }
// MsgVote defines a message to cast a vote. // MsgVote defines a message to cast a vote.
@ -53,7 +52,7 @@ message MsgVote {
option (gogoproto.stringer) = false; option (gogoproto.stringer) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id"];
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
VoteOption option = 3; VoteOption option = 3;
} }
@ -68,7 +67,7 @@ message MsgVoteWeighted {
option (gogoproto.stringer) = false; option (gogoproto.stringer) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
uint64 proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""]; uint64 proposal_id = 1;
string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string voter = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
repeated WeightedVoteOption options = 3 [(gogoproto.nullable) = false]; repeated WeightedVoteOption options = 3 [(gogoproto.nullable) = false];
} }
@ -83,7 +82,7 @@ message MsgDeposit {
option (gogoproto.stringer) = false; option (gogoproto.stringer) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id"];
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
repeated cosmos.base.v1beta1.Coin amount = 3 repeated cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];

View File

@ -17,7 +17,6 @@ message Minter {
// current annual expected provisions // current annual expected provisions
string annual_provisions = 2 [ string annual_provisions = 2 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"annual_provisions\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
@ -32,31 +31,27 @@ message Params {
// maximum annual change in inflation rate // maximum annual change in inflation rate
string inflation_rate_change = 2 [ string inflation_rate_change = 2 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"inflation_rate_change\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// maximum inflation rate // maximum inflation rate
string inflation_max = 3 [ string inflation_max = 3 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"inflation_max\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// minimum inflation rate // minimum inflation rate
string inflation_min = 4 [ string inflation_min = 4 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"inflation_min\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// goal of percent bonded atoms // goal of percent bonded atoms
string goal_bonded = 5 [ string goal_bonded = 5 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"goal_bonded\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// expected blocks per year // expected blocks per year
uint64 blocks_per_year = 6 [(gogoproto.moretags) = "yaml:\"blocks_per_year\""]; uint64 blocks_per_year = 6;
} }

View File

@ -15,12 +15,12 @@ message GenesisState {
// signing_infos represents a map between validator addresses and their // signing_infos represents a map between validator addresses and their
// signing infos. // signing infos.
repeated SigningInfo signing_infos = 2 repeated SigningInfo signing_infos = 2
[(gogoproto.moretags) = "yaml:\"signing_infos\"", (gogoproto.nullable) = false]; [(gogoproto.nullable) = false];
// missed_blocks represents a map between validator addresses and their // missed_blocks represents a map between validator addresses and their
// missed blocks. // missed blocks.
repeated ValidatorMissedBlocks missed_blocks = 3 repeated ValidatorMissedBlocks missed_blocks = 3
[(gogoproto.moretags) = "yaml:\"missed_blocks\"", (gogoproto.nullable) = false]; [(gogoproto.nullable) = false];
} }
// SigningInfo stores validator signing info of corresponding address. // SigningInfo stores validator signing info of corresponding address.
@ -29,7 +29,7 @@ message SigningInfo {
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// validator_signing_info represents the signing info of this validator. // validator_signing_info represents the signing info of this validator.
ValidatorSigningInfo validator_signing_info = 2 ValidatorSigningInfo validator_signing_info = 2
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"validator_signing_info\""]; [(gogoproto.nullable) = false];
} }
// ValidatorMissedBlocks contains array of missed blocks of corresponding // ValidatorMissedBlocks contains array of missed blocks of corresponding
@ -39,7 +39,7 @@ message ValidatorMissedBlocks {
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// missed_blocks is an array of missed blocks by the validator. // missed_blocks is an array of missed blocks by the validator.
repeated MissedBlock missed_blocks = 2 repeated MissedBlock missed_blocks = 2
[(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"missed_blocks\""]; [(gogoproto.nullable) = false];
} }
// MissedBlock contains height and missed status as boolean. // MissedBlock contains height and missed status as boolean.

View File

@ -17,42 +17,38 @@ message ValidatorSigningInfo {
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// Height at which validator was first a candidate OR was unjailed // Height at which validator was first a candidate OR was unjailed
int64 start_height = 2 [(gogoproto.moretags) = "yaml:\"start_height\""]; int64 start_height = 2;
// Index which is incremented each time the validator was a bonded // Index which is incremented each time the validator was a bonded
// in a block and may have signed a precommit or not. This in conjunction with the // in a block and may have signed a precommit or not. This in conjunction with the
// `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. // `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`.
int64 index_offset = 3 [(gogoproto.moretags) = "yaml:\"index_offset\""]; int64 index_offset = 3;
// Timestamp until which the validator is jailed due to liveness downtime. // Timestamp until which the validator is jailed due to liveness downtime.
google.protobuf.Timestamp jailed_until = 4 google.protobuf.Timestamp jailed_until = 4
[(gogoproto.moretags) = "yaml:\"jailed_until\"", (gogoproto.stdtime) = true, (gogoproto.nullable) = false]; [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
// Whether or not a validator has been tombstoned (killed out of validator set). It is set // Whether or not a validator has been tombstoned (killed out of validator set). It is set
// once the validator commits an equivocation or for any other configured misbehiavor. // once the validator commits an equivocation or for any other configured misbehiavor.
bool tombstoned = 5; bool tombstoned = 5;
// A counter kept to avoid unnecessary array reads. // A counter kept to avoid unnecessary array reads.
// Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. // Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`.
int64 missed_blocks_counter = 6 [(gogoproto.moretags) = "yaml:\"missed_blocks_counter\""]; int64 missed_blocks_counter = 6;
} }
// Params represents the parameters used for by the slashing module. // Params represents the parameters used for by the slashing module.
message Params { message Params {
int64 signed_blocks_window = 1 [(gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; int64 signed_blocks_window = 1;
bytes min_signed_per_window = 2 [ bytes min_signed_per_window = 2 [
(gogoproto.moretags) = "yaml:\"min_signed_per_window\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
google.protobuf.Duration downtime_jail_duration = 3 [ google.protobuf.Duration downtime_jail_duration = 3 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.stdduration) = true, (gogoproto.stdduration) = true
(gogoproto.moretags) = "yaml:\"downtime_jail_duration\""
]; ];
bytes slash_fraction_double_sign = 4 [ bytes slash_fraction_double_sign = 4 [
(gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
bytes slash_fraction_downtime = 5 [ bytes slash_fraction_downtime = 5 [
(gogoproto.moretags) = "yaml:\"slash_fraction_downtime\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];

View File

@ -20,7 +20,7 @@ message MsgUnjail {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = true; option (gogoproto.goproto_stringer) = true;
string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"address\"", (gogoproto.jsontag) = "address"]; string validator_addr = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "address"];
} }
// MsgUnjailResponse defines the Msg/Unjail response type // MsgUnjailResponse defines the Msg/Unjail response type

View File

@ -16,14 +16,13 @@ message GenesisState {
// the previous end block. // the previous end block.
bytes last_total_power = 2 [ bytes last_total_power = 2 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"last_total_power\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// last_validator_powers is a special index that provides a historical list // last_validator_powers is a special index that provides a historical list
// of the last-block's bonded validators. // of the last-block's bonded validators.
repeated LastValidatorPower last_validator_powers = 3 repeated LastValidatorPower last_validator_powers = 3
[(gogoproto.moretags) = "yaml:\"last_validator_powers\"", (gogoproto.nullable) = false]; [(gogoproto.nullable) = false];
// delegations defines the validator set at genesis. // delegations defines the validator set at genesis.
repeated Validator validators = 4 [(gogoproto.nullable) = false]; repeated Validator validators = 4 [(gogoproto.nullable) = false];
@ -33,7 +32,7 @@ message GenesisState {
// unbonding_delegations defines the unbonding delegations active at genesis. // unbonding_delegations defines the unbonding delegations active at genesis.
repeated UnbondingDelegation unbonding_delegations = 6 repeated UnbondingDelegation unbonding_delegations = 6
[(gogoproto.moretags) = "yaml:\"unbonding_delegations\"", (gogoproto.nullable) = false]; [(gogoproto.nullable) = false];
// redelegations defines the redelegations active at genesis. // redelegations defines the redelegations active at genesis.
repeated Redelegation redelegations = 7 [(gogoproto.nullable) = false]; repeated Redelegation redelegations = 7 [(gogoproto.nullable) = false];

View File

@ -32,14 +32,12 @@ message CommissionRates {
// max_rate defines the maximum commission rate which validator can ever charge, as a fraction. // max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
string max_rate = 2 [ string max_rate = 2 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"max_rate\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// max_change_rate defines the maximum daily increase of the validator commission, as a fraction. // max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
string max_change_rate = 3 [ string max_change_rate = 3 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"max_change_rate\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
@ -54,7 +52,7 @@ message Commission {
CommissionRates commission_rates = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; CommissionRates commission_rates = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false];
// update_time is the last time the commission rate was changed. // update_time is the last time the commission rate was changed.
google.protobuf.Timestamp update_time = 2 google.protobuf.Timestamp update_time = 2
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"update_time\""]; [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
} }
// Description defines a validator description. // Description defines a validator description.
@ -69,7 +67,7 @@ message Description {
// website defines an optional website link. // website defines an optional website link.
string website = 3; string website = 3;
// security_contact defines an optional email for security contact. // security_contact defines an optional email for security contact.
string security_contact = 4 [(gogoproto.moretags) = "yaml:\"security_contact\""]; string security_contact = 4;
// details define other optional details. // details define other optional details.
string details = 5; string details = 5;
} }
@ -88,10 +86,10 @@ message Validator {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
// operator_address defines the address of the validator's operator; bech encoded in JSON. // operator_address defines the address of the validator's operator; bech encoded in JSON.
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"operator_address\""]; string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. // consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
google.protobuf.Any consensus_pubkey = 2 google.protobuf.Any consensus_pubkey = 2
[(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey", (gogoproto.moretags) = "yaml:\"consensus_pubkey\""]; [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"];
// jailed defined whether the validator has been jailed from bonded status or not. // jailed defined whether the validator has been jailed from bonded status or not.
bool jailed = 3; bool jailed = 3;
// status is the validator status (bonded/unbonding/unbonded). // status is the validator status (bonded/unbonding/unbonded).
@ -101,23 +99,21 @@ message Validator {
// delegator_shares defines total shares issued to a validator's delegators. // delegator_shares defines total shares issued to a validator's delegators.
string delegator_shares = 6 [ string delegator_shares = 6 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.moretags) = "yaml:\"delegator_shares\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
// description defines the description terms for the validator. // description defines the description terms for the validator.
Description description = 7 [(gogoproto.nullable) = false]; Description description = 7 [(gogoproto.nullable) = false];
// unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. // unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
int64 unbonding_height = 8 [(gogoproto.moretags) = "yaml:\"unbonding_height\""]; int64 unbonding_height = 8;
// unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. // unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
google.protobuf.Timestamp unbonding_time = 9 google.protobuf.Timestamp unbonding_time = 9
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"unbonding_time\""]; [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
// commission defines the commission parameters. // commission defines the commission parameters.
Commission commission = 10 [(gogoproto.nullable) = false]; Commission commission = 10 [(gogoproto.nullable) = false];
// min_self_delegation is the validator's self declared minimum self delegation. // min_self_delegation is the validator's self declared minimum self delegation.
string min_self_delegation = 11 [ string min_self_delegation = 11 [
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.moretags) = "yaml:\"min_self_delegation\"",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
@ -153,8 +149,8 @@ message DVPair {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// DVPairs defines an array of DVPair objects. // DVPairs defines an array of DVPair objects.
@ -171,9 +167,9 @@ message DVVTriplet {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_src_address\""]; string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_dst_address\""]; string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
} }
// DVVTriplets defines an array of DVVTriplet objects. // DVVTriplets defines an array of DVVTriplet objects.
@ -190,9 +186,9 @@ message Delegation {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
// delegator_address is the bech32-encoded address of the delegator. // delegator_address is the bech32-encoded address of the delegator.
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// validator_address is the bech32-encoded address of the validator. // validator_address is the bech32-encoded address of the validator.
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// shares define the delegation shares received. // shares define the delegation shares received.
string shares = 3 [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; string shares = 3 [(cosmos_proto.scalar) = "cosmos.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
} }
@ -205,9 +201,9 @@ message UnbondingDelegation {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
// delegator_address is the bech32-encoded address of the delegator. // delegator_address is the bech32-encoded address of the delegator.
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// validator_address is the bech32-encoded address of the validator. // validator_address is the bech32-encoded address of the validator.
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// entries are the unbonding delegation entries. // entries are the unbonding delegation entries.
repeated UnbondingDelegationEntry entries = 3 [(gogoproto.nullable) = false]; // unbonding delegation entries repeated UnbondingDelegationEntry entries = 3 [(gogoproto.nullable) = false]; // unbonding delegation entries
} }
@ -218,16 +214,15 @@ message UnbondingDelegationEntry {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
// creation_height is the height which the unbonding took place. // creation_height is the height which the unbonding took place.
int64 creation_height = 1 [(gogoproto.moretags) = "yaml:\"creation_height\""]; int64 creation_height = 1;
// completion_time is the unix time for unbonding completion. // completion_time is the unix time for unbonding completion.
google.protobuf.Timestamp completion_time = 2 google.protobuf.Timestamp completion_time = 2
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
// initial_balance defines the tokens initially scheduled to receive at completion. // initial_balance defines the tokens initially scheduled to receive at completion.
string initial_balance = 3 [ string initial_balance = 3 [
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false, (gogoproto.nullable) = false
(gogoproto.moretags) = "yaml:\"initial_balance\""
]; ];
// balance defines the tokens to receive at completion. // balance defines the tokens to receive at completion.
string balance = 4 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; string balance = 4 [(cosmos_proto.scalar) = "cosmos.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
@ -239,16 +234,15 @@ message RedelegationEntry {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
// creation_height defines the height which the redelegation took place. // creation_height defines the height which the redelegation took place.
int64 creation_height = 1 [(gogoproto.moretags) = "yaml:\"creation_height\""]; int64 creation_height = 1;
// completion_time defines the unix time for redelegation completion. // completion_time defines the unix time for redelegation completion.
google.protobuf.Timestamp completion_time = 2 google.protobuf.Timestamp completion_time = 2
[(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; [(gogoproto.nullable) = false, (gogoproto.stdtime) = true];
// initial_balance defines the initial balance when redelegation started. // initial_balance defines the initial balance when redelegation started.
string initial_balance = 3 [ string initial_balance = 3 [
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false, (gogoproto.nullable) = false
(gogoproto.moretags) = "yaml:\"initial_balance\""
]; ];
// shares_dst is the amount of destination-validator shares created by redelegation. // shares_dst is the amount of destination-validator shares created by redelegation.
string shares_dst = 4 string shares_dst = 4
@ -263,11 +257,11 @@ message Redelegation {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
// delegator_address is the bech32-encoded address of the delegator. // delegator_address is the bech32-encoded address of the delegator.
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// validator_src_address is the validator redelegation source operator address. // validator_src_address is the validator redelegation source operator address.
string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_src_address\""]; string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// validator_dst_address is the validator redelegation destination operator address. // validator_dst_address is the validator redelegation destination operator address.
string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_dst_address\""]; string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// entries are the redelegation entries. // entries are the redelegation entries.
repeated RedelegationEntry entries = 4 [(gogoproto.nullable) = false]; // redelegation entries repeated RedelegationEntry entries = 4 [(gogoproto.nullable) = false]; // redelegation entries
} }
@ -279,15 +273,15 @@ message Params {
// unbonding_time is the time duration of unbonding. // unbonding_time is the time duration of unbonding.
google.protobuf.Duration unbonding_time = 1 google.protobuf.Duration unbonding_time = 1
[(gogoproto.nullable) = false, (gogoproto.stdduration) = true, (gogoproto.moretags) = "yaml:\"unbonding_time\""]; [(gogoproto.nullable) = false, (gogoproto.stdduration) = true];
// max_validators is the maximum number of validators. // max_validators is the maximum number of validators.
uint32 max_validators = 2 [(gogoproto.moretags) = "yaml:\"max_validators\""]; uint32 max_validators = 2;
// max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). // max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
uint32 max_entries = 3 [(gogoproto.moretags) = "yaml:\"max_entries\""]; uint32 max_entries = 3;
// historical_entries is the number of historical entries to persist. // historical_entries is the number of historical entries to persist.
uint32 historical_entries = 4 [(gogoproto.moretags) = "yaml:\"historical_entries\""]; uint32 historical_entries = 4;
// bond_denom defines the bondable coin denomination. // bond_denom defines the bondable coin denomination.
string bond_denom = 5 [(gogoproto.moretags) = "yaml:\"bond_denom\""]; string bond_denom = 5;
} }
// DelegationResponse is equivalent to Delegation except that it contains a // DelegationResponse is equivalent to Delegation except that it contains a
@ -336,7 +330,6 @@ message Pool {
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.jsontag) = "bonded_tokens", (gogoproto.jsontag) = "bonded_tokens",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = false, (gogoproto.nullable) = false
(gogoproto.moretags) = "yaml:\"bonded_tokens\""
]; ];
} }

View File

@ -42,11 +42,10 @@ message MsgCreateValidator {
string min_self_delegation = 3 [ string min_self_delegation = 3 [
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.moretags) = "yaml:\"min_self_delegation\"",
(gogoproto.nullable) = false (gogoproto.nullable) = false
]; ];
string delegator_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 4 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 5 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 5 [(cosmos_proto.scalar) = "cosmos.AddressString"];
google.protobuf.Any pubkey = 6 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"]; google.protobuf.Any pubkey = 6 [(cosmos_proto.accepts_interface) = "cosmos.crypto.PubKey"];
cosmos.base.v1beta1.Coin value = 7 [(gogoproto.nullable) = false]; cosmos.base.v1beta1.Coin value = 7 [(gogoproto.nullable) = false];
} }
@ -60,7 +59,7 @@ message MsgEditValidator {
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
Description description = 1 [(gogoproto.nullable) = false]; Description description = 1 [(gogoproto.nullable) = false];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// We pass a reference to the new commission rate and min self delegation as // We pass a reference to the new commission rate and min self delegation as
// it's not mandatory to update. If not updated, the deserialized rate will be // it's not mandatory to update. If not updated, the deserialized rate will be
@ -68,13 +67,11 @@ message MsgEditValidator {
// REF: #2373 // REF: #2373
string commission_rate = 3 [ string commission_rate = 3 [
(cosmos_proto.scalar) = "cosmos.Dec", (cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec"
(gogoproto.moretags) = "yaml:\"commission_rate\""
]; ];
string min_self_delegation = 4 [ string min_self_delegation = 4 [
(cosmos_proto.scalar) = "cosmos.Int", (cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"
(gogoproto.moretags) = "yaml:\"min_self_delegation\""
]; ];
} }
@ -87,8 +84,8 @@ message MsgDelegate {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
} }
@ -101,9 +98,9 @@ message MsgBeginRedelegate {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_src_address\""]; string validator_src_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_dst_address\""]; string validator_dst_address = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.v1beta1.Coin amount = 4 [(gogoproto.nullable) = false]; cosmos.base.v1beta1.Coin amount = 4 [(gogoproto.nullable) = false];
} }
@ -118,8 +115,8 @@ message MsgUndelegate {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_getters) = false;
string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"delegator_address\""]; string delegator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"validator_address\""]; string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false]; cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
} }

View File

@ -39,7 +39,7 @@ message Plan {
// moved to the IBC module in the sub module 02-client. // moved to the IBC module in the sub module 02-client.
// If this field is not empty, an error will be thrown. // If this field is not empty, an error will be thrown.
google.protobuf.Any upgraded_client_state = 5 google.protobuf.Any upgraded_client_state = 5
[deprecated = true, (gogoproto.moretags) = "yaml:\"upgraded_client_state\""]; [deprecated = true];
} }
// SoftwareUpgradeProposal is a gov Content type for initiating a software // SoftwareUpgradeProposal is a gov Content type for initiating a software

View File

@ -23,12 +23,12 @@ service Msg {
message MsgCreateVestingAccount { message MsgCreateVestingAccount {
option (gogoproto.equal) = true; option (gogoproto.equal) = true;
string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"from_address\""]; string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "yaml:\"to_address\""]; string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
repeated cosmos.base.v1beta1.Coin amount = 3 repeated cosmos.base.v1beta1.Coin amount = 3
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
int64 end_time = 4 [(gogoproto.moretags) = "yaml:\"end_time\""]; int64 end_time = 4;
bool delayed = 5; bool delayed = 5;
} }
@ -41,9 +41,9 @@ message MsgCreateVestingAccountResponse {}
message MsgCreatePeriodicVestingAccount { message MsgCreatePeriodicVestingAccount {
option (gogoproto.equal) = false; option (gogoproto.equal) = false;
string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""]; string from_address = 1;
string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""]; string to_address = 2;
int64 start_time = 3 [(gogoproto.moretags) = "yaml:\"start_time\""]; int64 start_time = 3;
repeated Period vesting_periods = 4 [(gogoproto.nullable) = false]; repeated Period vesting_periods = 4 [(gogoproto.nullable) = false];
} }

View File

@ -16,20 +16,17 @@ message BaseVestingAccount {
cosmos.auth.v1beta1.BaseAccount base_account = 1 [(gogoproto.embed) = true]; cosmos.auth.v1beta1.BaseAccount base_account = 1 [(gogoproto.embed) = true];
repeated cosmos.base.v1beta1.Coin original_vesting = 2 [ repeated cosmos.base.v1beta1.Coin original_vesting = 2 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
(gogoproto.moretags) = "yaml:\"original_vesting\""
]; ];
repeated cosmos.base.v1beta1.Coin delegated_free = 3 [ repeated cosmos.base.v1beta1.Coin delegated_free = 3 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
(gogoproto.moretags) = "yaml:\"delegated_free\""
]; ];
repeated cosmos.base.v1beta1.Coin delegated_vesting = 4 [ repeated cosmos.base.v1beta1.Coin delegated_vesting = 4 [
(gogoproto.nullable) = false, (gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
(gogoproto.moretags) = "yaml:\"delegated_vesting\""
]; ];
int64 end_time = 5 [(gogoproto.moretags) = "yaml:\"end_time\""]; int64 end_time = 5;
} }
// ContinuousVestingAccount implements the VestingAccount interface. It // ContinuousVestingAccount implements the VestingAccount interface. It
@ -39,7 +36,7 @@ message ContinuousVestingAccount {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true]; BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
int64 start_time = 2 [(gogoproto.moretags) = "yaml:\"start_time\""]; int64 start_time = 2;
} }
// DelayedVestingAccount implements the VestingAccount interface. It vests all // DelayedVestingAccount implements the VestingAccount interface. It vests all
@ -68,8 +65,8 @@ message PeriodicVestingAccount {
option (gogoproto.goproto_stringer) = false; option (gogoproto.goproto_stringer) = false;
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true]; BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
int64 start_time = 2 [(gogoproto.moretags) = "yaml:\"start_time\""]; int64 start_time = 2;
repeated Period vesting_periods = 3 [(gogoproto.moretags) = "yaml:\"vesting_periods\"", (gogoproto.nullable) = false]; repeated Period vesting_periods = 3 [(gogoproto.nullable) = false];
} }
// PermanentLockedAccount implements the VestingAccount interface. It does // PermanentLockedAccount implements the VestingAccount interface. It does

View File

@ -10,7 +10,7 @@ import (
"github.com/tendermint/tendermint/p2p" "github.com/tendermint/tendermint/p2p"
pvm "github.com/tendermint/tendermint/privval" pvm "github.com/tendermint/tendermint/privval"
tversion "github.com/tendermint/tendermint/version" tversion "github.com/tendermint/tendermint/version"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"

View File

@ -262,9 +262,9 @@ func (m *Attribute) GetValue() string {
// GasInfo defines tx execution gas context. // GasInfo defines tx execution gas context.
type GasInfo struct { type GasInfo struct {
// GasWanted is the maximum units of work we allow this tx to perform. // GasWanted is the maximum units of work we allow this tx to perform.
GasWanted uint64 `protobuf:"varint,1,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty" yaml:"gas_wanted"` GasWanted uint64 `protobuf:"varint,1,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
// GasUsed is the amount of gas actually consumed. // GasUsed is the amount of gas actually consumed.
GasUsed uint64 `protobuf:"varint,2,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty" yaml:"gas_used"` GasUsed uint64 `protobuf:"varint,2,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
} }
func (m *GasInfo) Reset() { *m = GasInfo{} } func (m *GasInfo) Reset() { *m = GasInfo{} }
@ -504,13 +504,13 @@ func (m *TxMsgData) GetData() []*MsgData {
// SearchTxsResult defines a structure for querying txs pageable // SearchTxsResult defines a structure for querying txs pageable
type SearchTxsResult struct { type SearchTxsResult struct {
// Count of all txs // Count of all txs
TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count" yaml:"total_count"` TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count"`
// Count of txs in current page // Count of txs in current page
Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// Index of current page, start from 1 // Index of current page, start from 1
PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number" yaml:"page_number"` PageNumber uint64 `protobuf:"varint,3,opt,name=page_number,json=pageNumber,proto3" json:"page_number"`
// Count of total pages // Count of total pages
PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total" yaml:"page_total"` PageTotal uint64 `protobuf:"varint,4,opt,name=page_total,json=pageTotal,proto3" json:"page_total"`
// Max count txs per page // Max count txs per page
Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` Limit uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
// List of txs in current page // List of txs in current page
@ -609,65 +609,62 @@ func init() {
} }
var fileDescriptor_4e37629bc7eb0df8 = []byte{ var fileDescriptor_4e37629bc7eb0df8 = []byte{
// 922 bytes of a gzipped FileDescriptorProto // 874 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0x31, 0x73, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0xbd, 0x6f, 0xdb, 0x46,
0x14, 0xd6, 0x49, 0xca, 0xc9, 0x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xbd, 0xf2, 0xcb, 0x63,
0x02, 0x35, 0x1b, 0x2c, 0xa3, 0xd1, 0xd7, 0x6f, 0xfe, 0x6d, 0x96, 0x5e, 0x9f, 0x36, 0x9d, 0x93, 0x7f, 0xee, 0xab, 0xf1, 0x4b, 0xfb, 0x99, 0x18, 0x7a, 0xf8, 0x44, 0x3d, 0xfc, 0x3f, 0x00, 0x00,
0xd3, 0xa6, 0xf3, 0xcf, 0x69, 0xd3, 0xf9, 0xf5, 0xac, 0x59, 0x3a, 0x39, 0x6b, 0x96, 0xde, 0x9c, 0xff, 0xff, 0x84, 0x62, 0x26, 0x5f, 0x9b, 0x06, 0x00, 0x00,
0x35, 0x4b, 0x3f, 0x06, 0x22, 0xd6, 0xa3, 0x69, 0x3f, 0x1c, 0xc8, 0xa4, 0x93, 0x7f, 0xe6, 0xec,
0xcf, 0x67, 0x6a, 0xf8, 0xd2, 0x7e, 0x93, 0xfa, 0x2e, 0xbe, 0x87, 0xf7, 0xff, 0x0b, 0x00, 0x00,
0xff, 0xff, 0xd8, 0xa9, 0x21, 0xb7, 0x08, 0x07, 0x00, 0x00,
} }
func (m *TxResponse) Marshal() (dAtA []byte, err error) { func (m *TxResponse) Marshal() (dAtA []byte, err error) {

View File

@ -10,7 +10,7 @@ import (
"sync" "sync"
"github.com/hashicorp/golang-lru/simplelru" "github.com/hashicorp/golang-lru/simplelru"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/internal/conv" "github.com/cosmos/cosmos-sdk/internal/conv"
@ -116,10 +116,6 @@ var _ Address = AccAddress{}
var _ Address = ValAddress{} var _ Address = ValAddress{}
var _ Address = ConsAddress{} var _ Address = ConsAddress{}
var _ yaml.Marshaler = AccAddress{}
var _ yaml.Marshaler = ValAddress{}
var _ yaml.Marshaler = ConsAddress{}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// account // account
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"

View File

@ -8,7 +8,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )

View File

@ -9,7 +9,7 @@ import (
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
ctypes "github.com/tendermint/tendermint/rpc/core/types" ctypes "github.com/tendermint/tendermint/rpc/core/types"

View File

@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/tendermint/tendermint/libs/cli" "github.com/tendermint/tendermint/libs/cli"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
) )
const flagLong = "long" const flagLong = "long"

View File

@ -5,7 +5,6 @@ import (
"testing" "testing"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
yaml "gopkg.in/yaml.v2"
"github.com/cosmos/cosmos-sdk/testutil/testdata" "github.com/cosmos/cosmos-sdk/testutil/testdata"
"github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx"
@ -21,21 +20,21 @@ func TestStdSignatureMarshalYAML(t *testing.T) {
}{ }{
{ {
legacytx.StdSignature{}, legacytx.StdSignature{},
"|\n pubkey: \"\"\n signature: \"\"\n", "pub_key: \"\"\nsignature: \"\"\n",
}, },
{ {
legacytx.StdSignature{PubKey: pk, Signature: []byte("dummySig")}, legacytx.StdSignature{PubKey: pk, Signature: []byte("dummySig")},
fmt.Sprintf("|\n pubkey: %s\n signature: 64756D6D79536967\n", pkStr), fmt.Sprintf("pub_key: %s\nsignature: 64756D6D79536967\n", pkStr),
}, },
{ {
legacytx.StdSignature{PubKey: pk, Signature: nil}, legacytx.StdSignature{PubKey: pk, Signature: nil},
fmt.Sprintf("|\n pubkey: %s\n signature: \"\"\n", pkStr), fmt.Sprintf("pub_key: %s\nsignature: \"\"\n", pkStr),
}, },
} }
for i, tc := range testCases { for i, tc := range testCases {
bz, err := yaml.Marshal(tc.sig) bz2, err := tc.sig.MarshalYAML()
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, tc.expected, string(bz), "test case #%d", i) require.Equal(t, tc.expected, bz2.(string), "test case #%d", i)
} }
} }

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/legacy" "github.com/cosmos/cosmos-sdk/codec/legacy"
@ -106,9 +106,10 @@ func (ss StdSignature) MarshalYAML() (interface{}, error) {
pk = ss.PubKey.String() pk = ss.PubKey.String()
} }
bz, err := yaml.Marshal(struct { bz, err := yaml.Marshal(struct {
PubKey string PubKey string `json:"pub_key"`
Signature string Signature string `json:"signature"`
}{ }{
pk, pk,
fmt.Sprintf("%X", ss.Signature), fmt.Sprintf("%X", ss.Signature),

View File

@ -9,7 +9,7 @@ import (
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
"github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types" codectypes "github.com/cosmos/cosmos-sdk/codec/types"
@ -237,12 +237,12 @@ func (ma ModuleAccount) Validate() error {
} }
type moduleAccountPretty struct { type moduleAccountPretty struct {
Address sdk.AccAddress `json:"address" yaml:"address"` Address sdk.AccAddress `json:"address"`
PubKey string `json:"public_key" yaml:"public_key"` PubKey string `json:"public_key"`
AccountNumber uint64 `json:"account_number" yaml:"account_number"` AccountNumber uint64 `json:"account_number"`
Sequence uint64 `json:"sequence" yaml:"sequence"` Sequence uint64 `json:"sequence"`
Name string `json:"name" yaml:"name"` Name string `json:"name"`
Permissions []string `json:"permissions" yaml:"permissions"` Permissions []string `json:"permissions"`
} }
func (ma ModuleAccount) String() string { func (ma ModuleAccount) String() string {

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
"github.com/cosmos/cosmos-sdk/simapp" "github.com/cosmos/cosmos-sdk/simapp"
@ -120,7 +120,7 @@ func TestModuleAccountMarshalYAML(t *testing.T) {
bs, err := yaml.Marshal(moduleAcc) bs, err := yaml.Marshal(moduleAcc)
require.NoError(t, err) require.NoError(t, err)
want := "|\n address: cosmos1n7rdpqvgf37ktx30a2sv2kkszk3m7ncmg5drhe\n public_key: \"\"\n account_number: 0\n sequence: 0\n name: test\n permissions:\n - minter\n - burner\n - staking\n" want := "account_number: 0\naddress: cosmos1n7rdpqvgf37ktx30a2sv2kkszk3m7ncmg5drhe\nname: test\npermissions:\n- minter\n- burner\n- staking\npublic_key: \"\"\nsequence: 0\n"
require.Equal(t, want, string(bs)) require.Equal(t, want, string(bs))
} }

View File

@ -30,8 +30,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// type for additional functionality (e.g. vesting). // type for additional functionality (e.g. vesting).
type BaseAccount struct { type BaseAccount struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
PubKey *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty" yaml:"public_key"` PubKey *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty"`
AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty" yaml:"account_number"` AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
} }
@ -69,7 +69,7 @@ var xxx_messageInfo_BaseAccount proto.InternalMessageInfo
// ModuleAccount defines an account for modules that holds coins on a pool. // ModuleAccount defines an account for modules that holds coins on a pool.
type ModuleAccount struct { type ModuleAccount struct {
*BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty" yaml:"base_account"` *BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"` Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
} }
@ -108,11 +108,11 @@ var xxx_messageInfo_ModuleAccount proto.InternalMessageInfo
// Params defines the parameters for the auth module. // Params defines the parameters for the auth module.
type Params struct { type Params struct {
MaxMemoCharacters uint64 `protobuf:"varint,1,opt,name=max_memo_characters,json=maxMemoCharacters,proto3" json:"max_memo_characters,omitempty" yaml:"max_memo_characters"` MaxMemoCharacters uint64 `protobuf:"varint,1,opt,name=max_memo_characters,json=maxMemoCharacters,proto3" json:"max_memo_characters,omitempty"`
TxSigLimit uint64 `protobuf:"varint,2,opt,name=tx_sig_limit,json=txSigLimit,proto3" json:"tx_sig_limit,omitempty" yaml:"tx_sig_limit"` TxSigLimit uint64 `protobuf:"varint,2,opt,name=tx_sig_limit,json=txSigLimit,proto3" json:"tx_sig_limit,omitempty"`
TxSizeCostPerByte uint64 `protobuf:"varint,3,opt,name=tx_size_cost_per_byte,json=txSizeCostPerByte,proto3" json:"tx_size_cost_per_byte,omitempty" yaml:"tx_size_cost_per_byte"` TxSizeCostPerByte uint64 `protobuf:"varint,3,opt,name=tx_size_cost_per_byte,json=txSizeCostPerByte,proto3" json:"tx_size_cost_per_byte,omitempty"`
SigVerifyCostED25519 uint64 `protobuf:"varint,4,opt,name=sig_verify_cost_ed25519,json=sigVerifyCostEd25519,proto3" json:"sig_verify_cost_ed25519,omitempty" yaml:"sig_verify_cost_ed25519"` SigVerifyCostED25519 uint64 `protobuf:"varint,4,opt,name=sig_verify_cost_ed25519,json=sigVerifyCostEd25519,proto3" json:"sig_verify_cost_ed25519,omitempty"`
SigVerifyCostSecp256k1 uint64 `protobuf:"varint,5,opt,name=sig_verify_cost_secp256k1,json=sigVerifyCostSecp256k1,proto3" json:"sig_verify_cost_secp256k1,omitempty" yaml:"sig_verify_cost_secp256k1"` SigVerifyCostSecp256k1 uint64 `protobuf:"varint,5,opt,name=sig_verify_cost_secp256k1,json=sigVerifyCostSecp256k1,proto3" json:"sig_verify_cost_secp256k1,omitempty"`
} }
func (m *Params) Reset() { *m = Params{} } func (m *Params) Reset() { *m = Params{} }
@ -191,51 +191,46 @@ func init() {
func init() { proto.RegisterFile("cosmos/auth/v1beta1/auth.proto", fileDescriptor_7e1f7e915d020d2d) } func init() { proto.RegisterFile("cosmos/auth/v1beta1/auth.proto", fileDescriptor_7e1f7e915d020d2d) }
var fileDescriptor_7e1f7e915d020d2d = []byte{ var fileDescriptor_7e1f7e915d020d2d = []byte{
// 691 bytes of a gzipped FileDescriptorProto // 609 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0x4f, 0x4f, 0xdb, 0x48, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x3f, 0x6f, 0xd3, 0x4e,
0x14, 0x8f, 0x49, 0x96, 0x3f, 0x13, 0x40, 0xc2, 0x04, 0x70, 0xb2, 0x2b, 0xdb, 0xf2, 0x29, 0x2b, 0x18, 0x8e, 0xdb, 0xfc, 0xfa, 0xe7, 0xd2, 0x56, 0xea, 0x35, 0xbf, 0xe2, 0x66, 0xb0, 0xad, 0x4a,
0x6d, 0x1c, 0x25, 0x2b, 0x56, 0x22, 0x87, 0xd5, 0x62, 0x76, 0x0f, 0x68, 0x17, 0x84, 0x1c, 0x69, 0x48, 0x41, 0x22, 0x0e, 0x09, 0x2a, 0x12, 0xdd, 0xea, 0x82, 0x50, 0x05, 0x85, 0xca, 0x11, 0x0c,
0x0f, 0x55, 0x25, 0x77, 0xec, 0x0c, 0xc6, 0x22, 0xe3, 0x31, 0x9e, 0x31, 0x8a, 0xf9, 0x04, 0x3d, 0x2c, 0xd6, 0xd9, 0x79, 0xeb, 0x9e, 0x9a, 0xf3, 0x19, 0xdf, 0xb9, 0x8a, 0xfb, 0x09, 0x18, 0x19,
0xf6, 0xd6, 0x1e, 0xf9, 0x10, 0x7c, 0x83, 0x5e, 0x2a, 0x4e, 0xa8, 0xa7, 0x9e, 0xdc, 0x2a, 0x5c, 0x19, 0xfb, 0x01, 0x18, 0x3b, 0x33, 0xa3, 0x4e, 0x15, 0x13, 0x53, 0x84, 0xd2, 0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x1e,
0xc1, 0xf9, 0x2b, 0x91, 0xff, 0x34, 0x68, 0xef, 0xb2, 0x39, 0x10, 0x8f, 0x0e, 0x4b, 0x23, 0x44,
0xdd, 0x65, 0xfe, 0xa5, 0xfe, 0xfe, 0x3d, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x7f, 0x3f, 0xe6, 0x90,
0x04, 0x00, 0x00,
} }
func (this *Params) Equal(that interface{}) bool { func (this *Params) Equal(that interface{}) bool {

View File

@ -3,7 +3,7 @@ package types
import ( import (
"fmt" "fmt"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
) )
// Periods stores all vesting periods passed as part of a PeriodicVestingAccount // Periods stores all vesting periods passed as part of a PeriodicVestingAccount

View File

@ -34,10 +34,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgCreateVestingAccount defines a message that enables creating a vesting // MsgCreateVestingAccount defines a message that enables creating a vesting
// account. // account.
type MsgCreateVestingAccount struct { type MsgCreateVestingAccount struct {
FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
Delayed bool `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"` Delayed bool `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"`
} }
@ -149,9 +149,9 @@ var xxx_messageInfo_MsgCreateVestingAccountResponse proto.InternalMessageInfo
// MsgCreateVestingAccount defines a message that enables creating a vesting // MsgCreateVestingAccount defines a message that enables creating a vesting
// account. // account.
type MsgCreatePeriodicVestingAccount struct { type MsgCreatePeriodicVestingAccount struct {
FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty" yaml:"start_time"` StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
VestingPeriods []Period `protobuf:"bytes,4,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods"` VestingPeriods []Period `protobuf:"bytes,4,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods"`
} }
@ -266,42 +266,39 @@ func init() {
func init() { proto.RegisterFile("cosmos/vesting/v1beta1/tx.proto", fileDescriptor_5338ca97811f9792) } func init() { proto.RegisterFile("cosmos/vesting/v1beta1/tx.proto", fileDescriptor_5338ca97811f9792) }
var fileDescriptor_5338ca97811f9792 = []byte{ var fileDescriptor_5338ca97811f9792 = []byte{
// 559 bytes of a gzipped FileDescriptorProto // 512 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x31, 0x6f, 0xd3, 0x4e, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xbf, 0x6f, 0xd3, 0x40,
0x1c, 0xf5, 0xc5, 0xf9, 0xb7, 0xcd, 0xf5, 0x2f, 0x2a, 0xdc, 0x40, 0xdd, 0x08, 0xd9, 0xc1, 0x42, 0x14, 0xc7, 0x7d, 0x71, 0x68, 0x9b, 0x2b, 0x02, 0xc9, 0x8a, 0xc0, 0x89, 0xa8, 0x9d, 0x46, 0x48,
0xc2, 0x0c, 0xb1, 0x49, 0xa9, 0x84, 0x94, 0x05, 0xd5, 0x1d, 0x21, 0x12, 0x32, 0x88, 0x81, 0x25, 0x98, 0xa1, 0x36, 0x29, 0x43, 0x25, 0x18, 0x50, 0xd3, 0x11, 0x45, 0x42, 0x06, 0x31, 0xb0, 0x44,
0x72, 0xec, 0xc3, 0x3d, 0x51, 0xfb, 0x22, 0xdf, 0xa5, 0x6a, 0x36, 0x3e, 0x02, 0x23, 0x13, 0x42, 0x8e, 0xfd, 0x70, 0x4f, 0x60, 0x5f, 0xe4, 0x77, 0xa9, 0xda, 0x8d, 0x3f, 0x81, 0x91, 0x11, 0x89,
0x62, 0x63, 0xe6, 0x43, 0x74, 0xac, 0x98, 0x98, 0x02, 0x4a, 0x16, 0x46, 0x94, 0x4f, 0x80, 0x7c, 0x8d, 0x85, 0x85, 0x3f, 0xa2, 0x63, 0xc5, 0x02, 0x13, 0xa0, 0x64, 0xe1, 0xcf, 0x40, 0xbe, 0x3b,
0x77, 0x4e, 0x03, 0xb2, 0x5b, 0xc1, 0x94, 0xf8, 0xde, 0xfb, 0x3d, 0x3f, 0xbf, 0x77, 0x77,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 0x1f, 0x5d, 0xd2, 0x58, 0xb5, 0xd6, 0x7f, 0x7c, 0x3a, 0x75, 0xc8, 0xd9, 0xd4,
0x6a, 0x9f, 0xc6, 0xda, 0x1b, 0x00, 0x9b, 0xa5, 0xdb, 0xdc, 0xad, 0xf2, 0x51, 0xd1, 0x52, 0xeb, 0x21, 0x3f, 0xa7, 0x0e, 0x79, 0x3b, 0x73, 0x8c, 0xb3, 0x99, 0x63, 0x7c, 0x9b, 0x39, 0xc6, 0x8b,
0xe1, 0x5f, 0x0e, 0x14, 0x56, 0xb4, 0x77, 0x00, 0xde, 0xba, 0xb4, 0xd3, 0xab, 0x95, 0xcb, 0x07, 0xde, 0x85, 0x4b, 0x7d, 0x1c, 0x44, 0x13, 0x71, 0x38, 0x7f, 0xdc, 0x72, 0xc7, 0x47, 0x6b, 0xf2,
0x5b, 0x8f, 0xfe, 0x71, 0xb0, 0xb0, 0xe6, 0x3d, 0x3e, 0x9b, 0x19, 0xe0, 0x7c, 0x66, 0x80, 0xef, 0x4d, 0xdf, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x22, 0xee, 0xde, 0x93, 0x85, 0x04, 0x00, 0x00,
0x33, 0x03, 0xbc, 0x9d, 0x1b, 0xca, 0xf9, 0xdc, 0x50, 0xbe, 0xce, 0x0d, 0xe5, 0x65, 0xf7, 0xd2,
0x03, 0x73, 0xea, 0x06, 0x63, 0x76, 0xb4, 0xbc, 0x64, 0xf8, 0xf9, 0x19, 0xae, 0xf1, 0xbb, 0xe5,
0xc1, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe3, 0x1b, 0x2d, 0xe5, 0x0d, 0x05, 0x00, 0x00,
} }
func (this *MsgCreateVestingAccount) Equal(that interface{}) bool { func (this *MsgCreateVestingAccount) Equal(that interface{}) bool {

View File

@ -30,10 +30,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// the necessary fields needed for any vesting account implementation. // the necessary fields needed for any vesting account implementation.
type BaseVestingAccount struct { type BaseVestingAccount struct {
*types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"`
OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"original_vesting" yaml:"original_vesting"` OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"original_vesting"`
DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_free" yaml:"delegated_free"` DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_free"`
DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_vesting" yaml:"delegated_vesting"` DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_vesting"`
EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
} }
func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} } func (m *BaseVestingAccount) Reset() { *m = BaseVestingAccount{} }
@ -72,7 +72,7 @@ var xxx_messageInfo_BaseVestingAccount proto.InternalMessageInfo
// continuously vests by unlocking coins linearly with respect to time. // continuously vests by unlocking coins linearly with respect to time.
type ContinuousVestingAccount struct { type ContinuousVestingAccount struct {
*BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"`
StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty" yaml:"start_time"` StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
} }
func (m *ContinuousVestingAccount) Reset() { *m = ContinuousVestingAccount{} } func (m *ContinuousVestingAccount) Reset() { *m = ContinuousVestingAccount{} }
@ -202,8 +202,8 @@ func (m *Period) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins {
// periodically vests by unlocking coins during each specified period. // periodically vests by unlocking coins during each specified period.
type PeriodicVestingAccount struct { type PeriodicVestingAccount struct {
*BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` *BaseVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"`
StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty" yaml:"start_time"` StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
VestingPeriods []Period `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods" yaml:"vesting_periods"` VestingPeriods []Period `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods"`
} }
func (m *PeriodicVestingAccount) Reset() { *m = PeriodicVestingAccount{} } func (m *PeriodicVestingAccount) Reset() { *m = PeriodicVestingAccount{} }
@ -291,46 +291,41 @@ func init() {
} }
var fileDescriptor_89e80273ca606d6e = []byte{ var fileDescriptor_89e80273ca606d6e = []byte{
// 609 bytes of a gzipped FileDescriptorProto // 537 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x95, 0x3f, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x3f, 0x6f, 0xd3, 0x40,
0x18, 0xc6, 0x7d, 0x4d, 0x08, 0xe5, 0x0a, 0xfd, 0x63, 0xda, 0x60, 0x3a, 0xd8, 0x91, 0xc5, 0x10, 0x14, 0xf7, 0x35, 0x21, 0x94, 0x2b, 0xb4, 0xe5, 0x54, 0xa2, 0xb4, 0x12, 0x4e, 0x54, 0x31, 0x44,
0x21, 0xe1, 0xd0, 0xc2, 0xd4, 0x0d, 0x17, 0x21, 0x55, 0xed, 0x80, 0x2c, 0xc4, 0xc0, 0x12, 0x9d, 0x48, 0x38, 0xa4, 0x6c, 0xdd, 0x70, 0x11, 0x12, 0x02, 0x24, 0x64, 0x21, 0x06, 0x96, 0xe8, 0x6c,
0xed, 0xc3, 0xb1, 0x1a, 0xdf, 0x45, 0xbe, 0x4b, 0x45, 0x3e, 0x00, 0x08, 0xa9, 0x0b, 0x48, 0x0c, 0x3f, 0x9c, 0x53, 0xe3, 0xbb, 0xc8, 0x77, 0x8e, 0xda, 0x0f, 0x00, 0x42, 0x62, 0x61, 0x64, 0xec,
0x8c, 0x5d, 0x58, 0xf8, 0x10, 0xcc, 0x1d, 0x23, 0x26, 0xa6, 0x80, 0x92, 0x6f, 0x90, 0x4f, 0x80, 0x86, 0xc4, 0x27, 0xe9, 0x98, 0x91, 0xa9, 0xa0, 0x64, 0x63,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, 0x31, 0xa7, 0xff, 0xd0, 0x5c, 0x2d, 0x10, 0x16, 0x06, 0x00, 0x00,
0x04, 0x11, 0x4c, 0xf8, 0x01, 0x0d, 0x0e, 0x71, 0xf8, 0x4f, 0xec, 0xe3, 0xee, 0x9f, 0x8e, 0x4d,
0x30, 0x1c, 0x9b, 0xe0, 0xdb, 0xd8, 0x04, 0x6f, 0x26, 0xa6, 0x36, 0x9c, 0x98, 0xda, 0x97, 0x89,
0xa9, 0x3d, 0xdb, 0xfa, 0xad, 0x05, 0x5e, 0xa8, 0xe7, 0x42, 0xbd, 0x53, 0xc2, 0x11, 0x7e, 0x4d,
0x3c, 0x18, 0xf7, 0xbe, 0x07, 0x00, 0x00, 0xff, 0xff, 0x80, 0x00, 0xd5, 0x07, 0xc6, 0x06, 0x00,
0x00,
} }
func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error) { func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error) {

View File

@ -4,7 +4,7 @@ import (
"errors" "errors"
"time" "time"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
@ -162,18 +162,18 @@ func (bva BaseVestingAccount) Validate() error {
} }
type vestingAccountYAML struct { type vestingAccountYAML struct {
Address sdk.AccAddress `json:"address" yaml:"address"` Address sdk.AccAddress `json:"address"`
PubKey string `json:"public_key" yaml:"public_key"` PubKey string `json:"public_key"`
AccountNumber uint64 `json:"account_number" yaml:"account_number"` AccountNumber uint64 `json:"account_number"`
Sequence uint64 `json:"sequence" yaml:"sequence"` Sequence uint64 `json:"sequence"`
OriginalVesting sdk.Coins `json:"original_vesting" yaml:"original_vesting"` OriginalVesting sdk.Coins `json:"original_vesting"`
DelegatedFree sdk.Coins `json:"delegated_free" yaml:"delegated_free"` DelegatedFree sdk.Coins `json:"delegated_free"`
DelegatedVesting sdk.Coins `json:"delegated_vesting" yaml:"delegated_vesting"` DelegatedVesting sdk.Coins `json:"delegated_vesting"`
EndTime int64 `json:"end_time" yaml:"end_time"` EndTime int64 `json:"end_time"`
// custom fields based on concrete vesting type which can be omitted // custom fields based on concrete vesting type which can be omitted
StartTime int64 `json:"start_time,omitempty" yaml:"start_time,omitempty"` StartTime int64 `json:"start_time,omitempty"`
VestingPeriods Periods `json:"vesting_periods,omitempty" yaml:"vesting_periods,omitempty"` VestingPeriods Periods `json:"vesting_periods,omitempty"`
} }
func (bva BaseVestingAccount) String() string { func (bva BaseVestingAccount) String() string {

View File

@ -28,8 +28,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the parameters for the bank module. // Params defines the parameters for the bank module.
type Params struct { type Params struct {
SendEnabled []*SendEnabled `protobuf:"bytes,1,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty" yaml:"send_enabled,omitempty"` SendEnabled []*SendEnabled `protobuf:"bytes,1,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty"`
DefaultSendEnabled bool `protobuf:"varint,2,opt,name=default_send_enabled,json=defaultSendEnabled,proto3" json:"default_send_enabled,omitempty" yaml:"default_send_enabled,omitempty"` DefaultSendEnabled bool `protobuf:"varint,2,opt,name=default_send_enabled,json=defaultSendEnabled,proto3" json:"default_send_enabled,omitempty"`
} }
func (m *Params) Reset() { *m = Params{} } func (m *Params) Reset() { *m = Params{} }
@ -445,49 +445,47 @@ func init() {
func init() { proto.RegisterFile("cosmos/bank/v1beta1/bank.proto", fileDescriptor_dd052eee12edf988) } func init() { proto.RegisterFile("cosmos/bank/v1beta1/bank.proto", fileDescriptor_dd052eee12edf988) }
var fileDescriptor_dd052eee12edf988 = []byte{ var fileDescriptor_dd052eee12edf988 = []byte{
// 663 bytes of a gzipped FileDescriptorProto // 626 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00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, 0x21, 0x6a, 0x82, 0x3d,
0x30, 0xea, 0xf2, 0xd0, 0x2e, 0xea, 0x6a, 0x96, 0xa1, 0x65, 0x98, 0x4f, 0x13, 0x6a, 0x97, 0xf4, 0xcb, 0x57, 0x67, 0xa7, 0xf5, 0xca, 0x6e, 0xd0, 0x7f, 0x4c, 0xd4, 0x24, 0xa8, 0xa4, 0x09, 0x37,
0xe5, 0x95, 0xc6, 0x23, 0x37, 0xbf, 0xe3, 0xb7, 0x7d, 0x55, 0x43, 0xd7, 0xa1, 0x95, 0x26, 0xb4, 0xc6, 0xd6, 0xf6, 0xf1, 0xcc, 0x07, 0x27, 0x33, 0x1f, 0xfc, 0x98, 0xf9, 0xe0, 0xdd, 0x99, 0x5f,
0x33, 0xc0, 0x62, 0x60, 0x5b, 0x1a, 0x2f, 0x8f, 0x47, 0x6e, 0x69, 0xc7, 0x6f, 0x3f, 0xc2, 0x62, 0x38, 0x39, 0xf3, 0x0b, 0xdf, 0xce, 0xfc, 0xc2, 0xcb, 0x9b, 0x7f, 0x73, 0x7d, 0x76, 0x07, 0x86,
0xe0, 0x97, 0xd2, 0x84, 0xaa, 0xa0, 0xb5, 0x75, 0x3c, 0x76, 0xc0, 0xc9, 0xd8, 0x01, 0xdf, 0xc7, 0x65, 0xfb, 0x4f, 0xba, 0xfd, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x80, 0x89, 0x32, 0x1b, 0x05,
0x0e, 0x78, 0x73, 0xea, 0xe4, 0x4e, 0x4e, 0x9d, 0xdc, 0xd7, 0x53, 0x27, 0xf7, 0x62, 0xf5, 0x4f, 0x00, 0x00,
0x9e, 0x4f, 0xdf, 0x40, 0xb7, 0xa8, 0xff, 0xe1, 0x6e, 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x23,
0xd8, 0xd4, 0xa8, 0x69, 0x05, 0x00, 0x00,
} }
func (this *SendEnabled) Equal(that interface{}) bool { func (this *SendEnabled) Equal(that interface{}) bool {

View File

@ -36,7 +36,7 @@ type GenesisState struct {
// balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"`
// denom_metadata defines the metadata of the differents coins. // denom_metadata defines the metadata of the differents coins.
DenomMetadata []Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata" yaml:"denom_metadata"` DenomMetadata []Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -150,33 +150,32 @@ func init() {
func init() { proto.RegisterFile("cosmos/bank/v1beta1/genesis.proto", fileDescriptor_8f007de11b420c6e) } func init() { proto.RegisterFile("cosmos/bank/v1beta1/genesis.proto", fileDescriptor_8f007de11b420c6e) }
var fileDescriptor_8f007de11b420c6e = []byte{ var fileDescriptor_8f007de11b420c6e = []byte{
// 412 bytes of a gzipped FileDescriptorProto // 395 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0xb1, 0x6e, 0xda, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x3f, 0x4f, 0xfa, 0x40,
0x1c, 0xc6, 0x6d, 0xa0, 0x40, 0x8f, 0xb6, 0x83, 0x4b, 0x25, 0x43, 0x8b, 0x4d, 0x3d, 0xd1, 0x01, 0x18, 0xc7, 0x5b, 0xe0, 0x07, 0xfc, 0x0e, 0x75, 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0x00,
0x00, 0x00, 0xff, 0xff, 0x6c, 0x8e, 0xec, 0xbb, 0xf9, 0x02, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -3,8 +3,9 @@ package types
import ( import (
"fmt" "fmt"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
) )
@ -121,7 +122,16 @@ func NewSendEnabled(denom string, sendEnabled bool) *SendEnabled {
// String implements stringer insterface // String implements stringer insterface
func (se SendEnabled) String() string { func (se SendEnabled) String() string {
out, _ := yaml.Marshal(se) bz, err := codec.ProtoMarshalJSON(&se, nil)
if err != nil {
panic(err)
}
out, err := yaml.JSONToYAML(bz)
if err != nil {
panic(err)
}
return string(out) return string(out)
} }

View File

@ -91,23 +91,12 @@ func Test_validateParams(t *testing.T) {
require.True(t, params.SendEnabledDenom(sdk.DefaultBondDenom)) require.True(t, params.SendEnabledDenom(sdk.DefaultBondDenom))
require.False(t, params.SendEnabledDenom("foodenom2")) require.False(t, params.SendEnabledDenom("foodenom2"))
paramYaml := `send_enabled: paramYaml := "default_send_enabled: true\nsend_enabled:\n- denom: foodenom\n- denom: foodenom2\n"
- denom: foodenom
enabled: false
- denom: foodenom2
enabled: false
default_send_enabled: true
`
require.Equal(t, paramYaml, params.String()) require.Equal(t, paramYaml, params.String())
// Ensure proper format of yaml output when false // Ensure proper format of yaml output when false
params.DefaultSendEnabled = false params.DefaultSendEnabled = false
paramYaml = `send_enabled: paramYaml = "send_enabled:\n- denom: foodenom\n- denom: foodenom2\n"
- denom: foodenom
enabled: false
- denom: foodenom2
enabled: false
`
require.Equal(t, paramYaml, params.String()) require.Equal(t, paramYaml, params.String())
params = NewParams(true, SendEnabledParams{ params = NewParams(true, SendEnabledParams{

View File

@ -33,8 +33,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgSend represents a message to send coins from one account to another. // MsgSend represents a message to send coins from one account to another.
type MsgSend struct { type MsgSend struct {
FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
} }
@ -208,36 +208,35 @@ func init() {
func init() { proto.RegisterFile("cosmos/bank/v1beta1/tx.proto", fileDescriptor_1d8cb1613481f5b7) } func init() { proto.RegisterFile("cosmos/bank/v1beta1/tx.proto", fileDescriptor_1d8cb1613481f5b7) }
var fileDescriptor_1d8cb1613481f5b7 = []byte{ var fileDescriptor_1d8cb1613481f5b7 = []byte{
// 463 bytes of a gzipped FileDescriptorProto // 439 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xbf, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcb, 0xae, 0xd2, 0x40,
0x1c, 0xc5, 0xed, 0x24, 0x4a, 0xc9, 0xb5, 0x12, 0xaa, 0x1b, 0xa1, 0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 0xfe, 0x49, 0x4b, 0x19, 0x6d, 0x4d, 0xd7, 0x5b, 0x1d, 0x6c, 0xb6, 0x3a, 0xf8, 0xb9, 0xd5, 0xc1,
0x3c, 0xf5, 0xa3, 0x4d, 0x91, 0xda, 0xa2, 0x9f, 0xde, 0x69, 0xa9, 0xd0, 0xce, 0xc5, 0x78, 0x66, 0xc7, 0x9d, 0xae, 0x6c, 0x76, 0xba, 0xf2, 0x6d, 0xa7, 0x2b, 0x2f, 0xfb, 0x47, 0xb7, 0xb7, 0x2c,
0xa8, 0x93, 0x99, 0xa1, 0xfe, 0x99, 0x19, 0xea, 0x97, 0xb9, 0xa1, 0x4c, 0xe6, 0x86, 0xf2, 0x6b, 0x6e, 0xb1, 0x58, 0xa2, 0xd7, 0x10, 0x97, 0xf4, 0xe1, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe8,
0x6e, 0x28, 0xef, 0x4e, 0xb7, 0xde, 0xde, 0xad, 0x78, 0xf1, 0xfc, 0x12, 0x83, 0x36, 0x7f, 0xd0, 0x6d, 0x23, 0xe3, 0x4a, 0x03, 0x00, 0x00,
0x4f, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x0b, 0x98, 0xec, 0x76, 0x03, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View File

@ -26,7 +26,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Capability defines an implementation of an object capability. The index // Capability defines an implementation of an object capability. The index
// provided to a Capability must be globally unique. // provided to a Capability must be globally unique.
type Capability struct { type Capability struct {
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index"` Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
} }
func (m *Capability) Reset() { *m = Capability{} } func (m *Capability) Reset() { *m = Capability{} }
@ -71,8 +71,8 @@ func (m *Capability) GetIndex() uint64 {
// Owner defines a single capability owner. An owner is defined by the name of // Owner defines a single capability owner. An owner is defined by the name of
// capability and the module name. // capability and the module name.
type Owner struct { type Owner struct {
Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty" yaml:"module"` Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
} }
func (m *Owner) Reset() { *m = Owner{} } func (m *Owner) Reset() { *m = Owner{} }
@ -164,26 +164,24 @@ func init() {
} }
var fileDescriptor_6308261edd8470a9 = []byte{ var fileDescriptor_6308261edd8470a9 = []byte{
// 299 bytes of a gzipped FileDescriptorProto // 260 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4a, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4a, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x4e, 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0x33, 0xcd, 0x2f, 0xd6, 0x4f, 0x4e, 0x2c, 0x48, 0x4c, 0xca, 0xcc, 0xc9, 0x2c, 0xa9, 0xd4, 0x2f, 0x33,
0x4c, 0x4a, 0x2d, 0x49, 0x34, 0x44, 0x12, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84, 0x4c, 0x4a, 0x2d, 0x49, 0x34, 0x44, 0x12, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x84,
0xa8, 0xd5, 0x43, 0x92, 0x80, 0xaa, 0x95, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd2, 0x07, 0xa8,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 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x2d, 0x4e, 0x62, 0x03, 0x07, 0x87, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x16, 0x16, 0x9b, 0x7d,
0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x61, 0x81, 0x0e, 0xa6, 0x74, 0x8b, 0x53, 0xb2, 0xf5, 0x2b, 0x6d, 0x01, 0x00, 0x00,
0x90, 0x63, 0xa0, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x88, 0xc6, 0x80, 0x00, 0x00,
0x00, 0xff, 0xff, 0x1d, 0xc9, 0xe6, 0xa8, 0xa3, 0x01, 0x00, 0x00,
} }
func (m *Capability) Marshal() (dAtA []byte, err error) { func (m *Capability) Marshal() (dAtA []byte, err error) {

View File

@ -28,7 +28,7 @@ type GenesisOwners struct {
// index is the index of the capability owner. // index is the index of the capability owner.
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// index_owners are the owners at the given index. // index_owners are the owners at the given index.
IndexOwners CapabilityOwners `protobuf:"bytes,2,opt,name=index_owners,json=indexOwners,proto3" json:"index_owners" yaml:"index_owners"` IndexOwners CapabilityOwners `protobuf:"bytes,2,opt,name=index_owners,json=indexOwners,proto3" json:"index_owners"`
} }
func (m *GenesisOwners) Reset() { *m = GenesisOwners{} } func (m *GenesisOwners) Reset() { *m = GenesisOwners{} }
@ -144,25 +144,24 @@ func init() {
} }
var fileDescriptor_94922dd16a11c23e = []byte{ var fileDescriptor_94922dd16a11c23e = []byte{
// 281 bytes of a gzipped FileDescriptorProto // 263 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xce, 0x2f, 0xce,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 0x5e, 0x74, 0x62, 0x01, 0xb9, 0x24, 0x08, 0xaa, 0xdb, 0xc9, 0xf3, 0xc4, 0x23, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x63, 0x39,
0x39, 0xc6, 0x0b, 0x8f, 0xe4, 0x18, 0x1f, 0x3c, 0x92, 0x63, 0x9c, 0xf0, 0x58, 0x8e, 0xe1, 0xc2, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3,
0x63, 0x39, 0x86, 0x1b, 0x8f, 0xe5, 0x18, 0xa2, 0xf4, 0xd3, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x73, 0xf5, 0x61, 0x61, 0x07, 0xa6, 0x74, 0x8b, 0x53, 0xb2, 0xf5, 0x2b, 0x90, 0x03, 0xb2, 0xa4,
0x92, 0xf3, 0x73, 0xf5, 0x61, 0x61, 0x0a, 0xa6, 0x74, 0x8b, 0x53, 0xb2, 0xf5, 0x2b, 0x90, 0x03, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x78, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89,
0xb8, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0xa8, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xb8, 0x17, 0xfe, 0xc4, 0x01, 0x00, 0x00,
0xff, 0xfd, 0xf4, 0xf2, 0x5d, 0xdc, 0x01, 0x00, 0x00,
} }
func (m *GenesisOwners) Marshal() (dAtA []byte, err error) { func (m *GenesisOwners) Marshal() (dAtA []byte, err error) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"sort" "sort"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
) )

View File

@ -28,7 +28,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type GenesisState struct { type GenesisState struct {
// constant_fee is the fee used to verify the invariant in the crisis // constant_fee is the fee used to verify the invariant in the crisis
// module. // module.
ConstantFee types.Coin `protobuf:"bytes,3,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee" yaml:"constant_fee"` ConstantFee types.Coin `protobuf:"bytes,3,opt,name=constant_fee,json=constantFee,proto3" json:"constant_fee"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -80,22 +80,22 @@ func init() {
} }
var fileDescriptor_7a9c2781aa8a27ae = []byte{ var fileDescriptor_7a9c2781aa8a27ae = []byte{
// 238 bytes of a gzipped FileDescriptorProto // 225 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4e, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49, 0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x2c, 0xce, 0x2c, 0xd6, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0x49,
0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x34, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17,
0x12, 0x85,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2, 0x0c, 0x41, 0xdc, 0x30,
0x0b, 0x57, 0x26, 0xe6, 0xe6, 0x58, 0x29, 0x21, 0x6b, 0x56, 0x0a, 0xe2, 0x86, 0x71, 0xdd, 0x52, 0x4d, 0x6e, 0xa9, 0xa9, 0x4e, 0xae, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0,
0x53, 0x9d, 0x5c, 0x4f, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x91, 0x1c, 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10,
0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x4a, 0x3b, 0x3d, 0xa5, 0x9d, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0xf3, 0x2a, 0x98,
0xb3, 0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x16, 0x02, 0x60, 0x4a, 0xb7, 0x38, 0xd2, 0x2d, 0x4e, 0xc9, 0xd6, 0xaf, 0x80, 0xf9, 0xbb, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d,
0x25, 0x5b, 0xbf, 0x02, 0x16, 0x1c, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x87, 0x1b, 0xec, 0x42, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x49, 0xae, 0x6d, 0xf5, 0x15, 0x01, 0x00,
0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x2f, 0x43, 0x06, 0xff, 0x2c, 0x01, 0x00, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -32,8 +32,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgVerifyInvariant represents a message to verify a particular invariance. // MsgVerifyInvariant represents a message to verify a particular invariance.
type MsgVerifyInvariant struct { type MsgVerifyInvariant struct {
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
InvariantModuleName string `protobuf:"bytes,2,opt,name=invariant_module_name,json=invariantModuleName,proto3" json:"invariant_module_name,omitempty" yaml:"invariant_module_name"` InvariantModuleName string `protobuf:"bytes,2,opt,name=invariant_module_name,json=invariantModuleName,proto3" json:"invariant_module_name,omitempty"`
InvariantRoute string `protobuf:"bytes,3,opt,name=invariant_route,json=invariantRoute,proto3" json:"invariant_route,omitempty" yaml:"invariant_route"` InvariantRoute string `protobuf:"bytes,3,opt,name=invariant_route,json=invariantRoute,proto3" json:"invariant_route,omitempty"`
} }
func (m *MsgVerifyInvariant) Reset() { *m = MsgVerifyInvariant{} } func (m *MsgVerifyInvariant) Reset() { *m = MsgVerifyInvariant{} }
@ -114,29 +114,28 @@ func init() {
func init() { proto.RegisterFile("cosmos/crisis/v1beta1/tx.proto", fileDescriptor_61276163172fe867) } func init() { proto.RegisterFile("cosmos/crisis/v1beta1/tx.proto", fileDescriptor_61276163172fe867) }
var fileDescriptor_61276163172fe867 = []byte{ var fileDescriptor_61276163172fe867 = []byte{
// 349 bytes of a gzipped FileDescriptorProto // 323 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4b, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x2e, 0xca, 0x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, 0x2d, 0x4e, 0xc9, 0xd6, 0xaf, 0x80, 0xc5, 0x6f, 0x49, 0x65, 0x41, 0x6a, 0x71,
0x24, 0xa3, 0x34, 0x49, 0x2f, 0x39, 0x3f, 0x57, 0x1f, 0x96, 0x20, 0xc0, 0x94, 0x6e, 0x71, 0x4a, 0x12, 0x1b, 0x38, 0x4e, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x16, 0x11, 0x03, 0xd4, 0xfd,
0xb6, 0x7e, 0x05, 0x2c, 0x75, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x63, 0xd4, 0x18, 0x01, 0x00, 0x00,
0x10, 0x00, 0x00, 0xff, 0xff, 0x68, 0x71, 0x76, 0xe3, 0x3b, 0x02, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View File

@ -28,10 +28,10 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Params defines the set of params for the distribution module. // Params defines the set of params for the distribution module.
type Params struct { type Params struct {
CommunityTax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=community_tax,json=communityTax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_tax" yaml:"community_tax"` CommunityTax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=community_tax,json=communityTax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_tax"`
BaseProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_proposer_reward,json=baseProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_proposer_reward" yaml:"base_proposer_reward"` BaseProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_proposer_reward,json=baseProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_proposer_reward"`
BonusProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=bonus_proposer_reward,json=bonusProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"bonus_proposer_reward" yaml:"bonus_proposer_reward"` BonusProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=bonus_proposer_reward,json=bonusProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"bonus_proposer_reward"`
WithdrawAddrEnabled bool `protobuf:"varint,4,opt,name=withdraw_addr_enabled,json=withdrawAddrEnabled,proto3" json:"withdraw_addr_enabled,omitempty" yaml:"withdraw_addr_enabled"` WithdrawAddrEnabled bool `protobuf:"varint,4,opt,name=withdraw_addr_enabled,json=withdrawAddrEnabled,proto3" json:"withdraw_addr_enabled,omitempty"`
} }
func (m *Params) Reset() { *m = Params{} } func (m *Params) Reset() { *m = Params{} }
@ -86,8 +86,8 @@ func (m *Params) GetWithdrawAddrEnabled() bool {
// read that record) // read that record)
// + one per validator for the zeroeth period, set on initialization // + one per validator for the zeroeth period, set on initialization
type ValidatorHistoricalRewards struct { type ValidatorHistoricalRewards struct {
CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"cumulative_reward_ratio" yaml:"cumulative_reward_ratio"` CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"cumulative_reward_ratio"`
ReferenceCount uint32 `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty" yaml:"reference_count"` ReferenceCount uint32 `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty"`
} }
func (m *ValidatorHistoricalRewards) Reset() { *m = ValidatorHistoricalRewards{} } func (m *ValidatorHistoricalRewards) Reset() { *m = ValidatorHistoricalRewards{} }
@ -241,7 +241,7 @@ func (m *ValidatorAccumulatedCommission) GetCommission() github_com_cosmos_cosmo
// ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards // ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards
// for a validator inexpensive to track, allows simple sanity checks. // for a validator inexpensive to track, allows simple sanity checks.
type ValidatorOutstandingRewards struct { type ValidatorOutstandingRewards struct {
Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards" yaml:"rewards"` Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
} }
func (m *ValidatorOutstandingRewards) Reset() { *m = ValidatorOutstandingRewards{} } func (m *ValidatorOutstandingRewards) Reset() { *m = ValidatorOutstandingRewards{} }
@ -289,7 +289,7 @@ func (m *ValidatorOutstandingRewards) GetRewards() github_com_cosmos_cosmos_sdk_
// This is needed to calculate appropriate amount of staking tokens // This is needed to calculate appropriate amount of staking tokens
// for delegations which are withdrawn after a slash has occurred. // for delegations which are withdrawn after a slash has occurred.
type ValidatorSlashEvent struct { type ValidatorSlashEvent struct {
ValidatorPeriod uint64 `protobuf:"varint,1,opt,name=validator_period,json=validatorPeriod,proto3" json:"validator_period,omitempty" yaml:"validator_period"` ValidatorPeriod uint64 `protobuf:"varint,1,opt,name=validator_period,json=validatorPeriod,proto3" json:"validator_period,omitempty"`
Fraction github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=fraction,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fraction"` Fraction github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=fraction,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fraction"`
} }
@ -335,7 +335,7 @@ func (m *ValidatorSlashEvent) GetValidatorPeriod() uint64 {
// ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. // ValidatorSlashEvents is a collection of ValidatorSlashEvent messages.
type ValidatorSlashEvents struct { type ValidatorSlashEvents struct {
ValidatorSlashEvents []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events" yaml:"validator_slash_events"` ValidatorSlashEvents []ValidatorSlashEvent `protobuf:"bytes,1,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events"`
} }
func (m *ValidatorSlashEvents) Reset() { *m = ValidatorSlashEvents{} } func (m *ValidatorSlashEvents) Reset() { *m = ValidatorSlashEvents{} }
@ -379,7 +379,7 @@ func (m *ValidatorSlashEvents) GetValidatorSlashEvents() []ValidatorSlashEvent {
// FeePool is the global fee pool for distribution. // FeePool is the global fee pool for distribution.
type FeePool struct { type FeePool struct {
CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"community_pool" yaml:"community_pool"` CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"community_pool"`
} }
func (m *FeePool) Reset() { *m = FeePool{} } func (m *FeePool) Reset() { *m = FeePool{} }
@ -471,9 +471,9 @@ var xxx_messageInfo_CommunityPoolSpendProposal proto.InternalMessageInfo
// the delegators within the validator may be left with less than a full token, // the delegators within the validator may be left with less than a full token,
// thus sdk.Dec is used. // thus sdk.Dec is used.
type DelegatorStartingInfo struct { type DelegatorStartingInfo struct {
PreviousPeriod uint64 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty" yaml:"previous_period"` PreviousPeriod uint64 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty"`
Stake github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=stake,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"stake" yaml:"stake"` Stake github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=stake,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"stake"`
Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"creation_height" yaml:"creation_height"` Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"creation_height"`
} }
func (m *DelegatorStartingInfo) Reset() { *m = DelegatorStartingInfo{} } func (m *DelegatorStartingInfo) Reset() { *m = DelegatorStartingInfo{} }
@ -526,7 +526,7 @@ func (m *DelegatorStartingInfo) GetHeight() uint64 {
// DelegationDelegatorReward represents the properties // DelegationDelegatorReward represents the properties
// of a delegator's delegation reward. // of a delegator's delegation reward.
type DelegationDelegatorReward struct { type DelegationDelegatorReward struct {
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
Reward github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"` Reward github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"`
} }
@ -566,11 +566,11 @@ var xxx_messageInfo_DelegationDelegatorReward proto.InternalMessageInfo
// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal // CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
// with a deposit // with a deposit
type CommunityPoolSpendProposalWithDeposit struct { type CommunityPoolSpendProposalWithDeposit struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"` Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"` Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"` Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty"`
} }
func (m *CommunityPoolSpendProposalWithDeposit) Reset() { *m = CommunityPoolSpendProposalWithDeposit{} } func (m *CommunityPoolSpendProposalWithDeposit) Reset() { *m = CommunityPoolSpendProposalWithDeposit{} }
@ -626,78 +626,65 @@ func init() {
} }
var fileDescriptor_cd78a31ea281a992 = []byte{ var fileDescriptor_cd78a31ea281a992 = []byte{
// 1135 bytes of a gzipped FileDescriptorProto // 922 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6f, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcf, 0x6f, 0x1b, 0xc5,
0x14, 0xf7, 0xa6, 0x8e, 0x93, 0x4e, 0xf3, 0xd5, 0x89, 0x93, 0x38, 0x4e, 0xf0, 0x46, 0x23, 0xb5, 0x17, 0xf7, 0x7c, 0xe3, 0x38, 0xe9, 0x6b, 0x9b, 0x7c, 0x99, 0x38, 0xa9, 0xe3, 0x56, 0x76, 0xb4,
0x0a, 0x82, 0x38, 0x4d, 0xcb, 0x01, 0x45, 0x5c, 0x62, 0x27, 0x15, 0x48, 0x95, 0x1a, 0x6d, 0xc2, 0x12, 0x10, 0x54, 0xc5, 0x69, 0xda, 0x5b, 0xc4, 0x25, 0x76, 0x82, 0xe0, 0xd4, 0x68, 0x83, 0x00,
0x87, 0x00, 0xc9, 0x1a, 0xef, 0x4e, 0xec, 0x51, 0xec, 0x1d, 0x33, 0x33, 0x76, 0x92, 0x03, 0x17, 0x71, 0x59, 0x8d, 0x77, 0x27, 0xf6, 0x28, 0xbb, 0x33, 0xcb, 0xcc, 0xac, 0x93, 0x9e, 0x39, 0xf0,
0x2e, 0x70, 0x41, 0x14, 0x71, 0xe1, 0x00, 0x28, 0x47, 0x04, 0x1c, 0x91, 0xf8, 0x17, 0x7a, 0xac, 0xe3, 0x84, 0xc4, 0x05, 0x71, 0x40, 0x3d, 0x22, 0xce, 0xbd, 0x70, 0xe4, 0xd6, 0x63, 0xe9, 0x05,
0x38, 0x21, 0x0e, 0x06, 0x25, 0x42, 0x42, 0x1c, 0xcd, 0x3f, 0x80, 0x66, 0x67, 0x76, 0xd7, 0xde, 0xc4, 0x21, 0xa0, 0x44, 0x48, 0x88, 0xbf, 0x02, 0xcd, 0xce, 0x78, 0xd7, 0x81, 0x50, 0xf5, 0x10,
0x9a, 0x2a, 0xae, 0xd4, 0x93, 0xbd, 0xef, 0xbd, 0xf9, 0xbd, 0xdf, 0x7b, 0xf3, 0x3e, 0x06, 0x14, 0x8b, 0x93, 0x3d, 0xef, 0xcd, 0x7e, 0x7e, 0xbc, 0x79, 0xfb, 0x66, 0xa1, 0x13, 0x0a, 0x95, 0x08,
0x5d, 0x26, 0x9a, 0x4c, 0x6c, 0x7a, 0x54, 0x48, 0x4e, 0xab, 0x6d, 0x49, 0x99, 0xbf, 0xd9, 0xd9, 0xb5, 0x19, 0x31, 0xa5, 0x25, 0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 0x67, 0x94,
0xdd, 0x6c, 0x37, 0xb0, 0xa4, 0x1d, 0x62, 0x48, 0x57, 0x38, 0x96, 0x94, 0xe5, 0xac, 0xb5, 0x6b, 0xbf, 0x5c, 0x32, 0x5a, 0x1d, 0xbe, 0xe1, 0xc3, 0xaf, 0xc3, 0xa2, 0xa4, 0x87, 0x54, 0x52, 0x1e,
0xeb, 0x37, 0xee, 0xae, 0x9a, 0x22, 0x2f, 0xaa, 0x5c, 0x86, 0xc5, 0xaa, 0x62, 0x29, 0x33, 0xea, 0xd2, 0x20, 0x14, 0x19, 0xd7, 0xf9, 0x09, 0xde, 0xf4, 0x17, 0x8a, 0x70, 0xcf, 0x44, 0xbd, 0x6f,
0x97, 0xde, 0x56, 0xd9, 0xea, 0x75, 0xed, 0x82, 0xa9, 0x8b, 0xe1, 0x50, 0xe8, 0x87, 0x3f, 0xec, 0x10, 0xdc, 0x2a, 0x3c, 0xf5, 0x32, 0x29, 0x29, 0xd7, 0x63, 0x43, 0x47, 0x30, 0x67, 0x4d, 0xa8,
0x57, 0xae, 0x96, 0x4f, 0x85, 0x2a, 0x9c, 0x85, 0x18, 0x48, 0x33, 0x75, 0x14, 0x0c, 0x2c, 0x83, 0xe9, 0xe9, 0x1f, 0x33, 0xe0, 0x15, 0xa8, 0xa5, 0x54, 0x32, 0x61, 0x5b, 0xad, 0xea, 0xbb, 0x95,
0x59, 0x4e, 0x8e, 0x08, 0x27, 0xbe, 0x4b, 0x2a, 0x2e, 0x6b, 0xfb, 0x32, 0xa8, 0xa2, 0xe9, 0x52, 0xf7, 0x25, 0x82, 0x56, 0x21, 0x70, 0x27, 0x74, 0x76, 0x69, 0xd4, 0x13, 0x49, 0xc2, 0x94, 0x62,
0xbe, 0xd7, 0xb5, 0x17, 0x35, 0x85, 0x84, 0x01, 0x72, 0x66, 0x22, 0x49, 0x39, 0x10, 0x7c, 0x67, 0x82, 0xe3, 0x8f, 0x00, 0xc2, 0x62, 0x35, 0x3d, 0xa9, 0x13,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 0xbf, 0xce, 0xdf, 0xa5, 0xb2, 0xbe, 0x4b,
0x5a, 0x4c, 0x50, 0x09, 0x6f, 0x0f, 0x94, 0x7c, 0x69, 0x2e, 0xbe, 0x9c, 0x40, 0x8c, 0xc2, 0x26,
0x78, 0x7d, 0x48, 0x13, 0x94, 0x16, 0x7b, 0x5d, 0x1b, 0x6a, 0xeb, 0x3e, 0x25, 0x1a, 0x6c, 0x8e,
0xbb, 0x4f, 0x35, 0x47, 0x29, 0xdb, 0xeb, 0xda, 0x73, 0xe1, 0x6c, 0x37, 0x2a, 0xd4, 0xdf, 0x32,
0x2f, 0xf7, 0xb5, 0x8c, 0x3a, 0x70, 0xb3, 0xd7, 0xb5, 0xa7, 0xf5, 0x01, 0x2d, 0x47, 0x61, 0xe1,
0xc3, 0x57, 0xc1, 0x84, 0xa7, 0x63, 0xc9, 0x8d, 0x07, 0xb6, 0x30, 0x5e, 0x1c, 0x46, 0x81, 0x9c,
0xd0, 0x24, 0x4e, 0x51, 0xe9, 0xe1, 0xf7, 0x17, 0x05, 0xeb, 0xf1, 0x45, 0xc1, 0x7a, 0x72, 0x51,
0xb0, 0xfe, 0xbc, 0x28, 0x58, 0x8f, 0x2e, 0x0b, 0xa9, 0x27, 0x97, 0x85, 0xd4, 0x6f, 0x97, 0x85,
0xd4, 0xfb, 0x5b, 0xcf, 0xcc, 0xff, 0xe9, 0xe0, 0xa3, 0x3e, 0xb8, 0x8e, 0x6a, 0x26, 0x78, 0x58,
0xdf, 0xfb, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd2, 0xb7, 0xb2, 0x68, 0xf8, 0x0b, 0x00, 0x00,
} }
func (this *Params) Equal(that interface{}) bool { func (this *Params) Equal(that interface{}) bool {

View File

@ -31,9 +31,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// default withdraw addresses. // default withdraw addresses.
type DelegatorWithdrawInfo struct { type DelegatorWithdrawInfo struct {
// delegator_address is the address of the delegator. // delegator_address is the address of the delegator.
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
// withdraw_address is the address to withdraw the delegation rewards to. // withdraw_address is the address to withdraw the delegation rewards to.
WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty" yaml:"withdraw_address"` WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
} }
func (m *DelegatorWithdrawInfo) Reset() { *m = DelegatorWithdrawInfo{} } func (m *DelegatorWithdrawInfo) Reset() { *m = DelegatorWithdrawInfo{} }
@ -72,9 +72,9 @@ var xxx_messageInfo_DelegatorWithdrawInfo proto.InternalMessageInfo
// ValidatorOutstandingRewardsRecord is used for import/export via genesis json. // ValidatorOutstandingRewardsRecord is used for import/export via genesis json.
type ValidatorOutstandingRewardsRecord struct { type ValidatorOutstandingRewardsRecord struct {
// validator_address is the address of the validator. // validator_address is the address of the validator.
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// outstanding_rewards represents the oustanding rewards of a validator. // outstanding_rewards represents the oustanding rewards of a validator.
OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards" yaml:"outstanding_rewards"` OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards"`
} }
func (m *ValidatorOutstandingRewardsRecord) Reset() { *m = ValidatorOutstandingRewardsRecord{} } func (m *ValidatorOutstandingRewardsRecord) Reset() { *m = ValidatorOutstandingRewardsRecord{} }
@ -114,9 +114,9 @@ var xxx_messageInfo_ValidatorOutstandingRewardsRecord proto.InternalMessageInfo
// json. // json.
type ValidatorAccumulatedCommissionRecord struct { type ValidatorAccumulatedCommissionRecord struct {
// validator_address is the address of the validator. // validator_address is the address of the validator.
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// accumulated is the accumulated commission of a validator. // accumulated is the accumulated commission of a validator.
Accumulated ValidatorAccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3" json:"accumulated" yaml:"accumulated"` Accumulated ValidatorAccumulatedCommission `protobuf:"bytes,2,opt,name=accumulated,proto3" json:"accumulated"`
} }
func (m *ValidatorAccumulatedCommissionRecord) Reset() { *m = ValidatorAccumulatedCommissionRecord{} } func (m *ValidatorAccumulatedCommissionRecord) Reset() { *m = ValidatorAccumulatedCommissionRecord{} }
@ -156,11 +156,11 @@ var xxx_messageInfo_ValidatorAccumulatedCommissionRecord proto.InternalMessageIn
// json. // json.
type ValidatorHistoricalRewardsRecord struct { type ValidatorHistoricalRewardsRecord struct {
// validator_address is the address of the validator. // validator_address is the address of the validator.
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// period defines the period the historical rewards apply to. // period defines the period the historical rewards apply to.
Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
// rewards defines the historical rewards of a validator. // rewards defines the historical rewards of a validator.
Rewards ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"` Rewards ValidatorHistoricalRewards `protobuf:"bytes,3,opt,name=rewards,proto3" json:"rewards"`
} }
func (m *ValidatorHistoricalRewardsRecord) Reset() { *m = ValidatorHistoricalRewardsRecord{} } func (m *ValidatorHistoricalRewardsRecord) Reset() { *m = ValidatorHistoricalRewardsRecord{} }
@ -199,9 +199,9 @@ var xxx_messageInfo_ValidatorHistoricalRewardsRecord proto.InternalMessageInfo
// ValidatorCurrentRewardsRecord is used for import / export via genesis json. // ValidatorCurrentRewardsRecord is used for import / export via genesis json.
type ValidatorCurrentRewardsRecord struct { type ValidatorCurrentRewardsRecord struct {
// validator_address is the address of the validator. // validator_address is the address of the validator.
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// rewards defines the current rewards of a validator. // rewards defines the current rewards of a validator.
Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards" yaml:"rewards"` Rewards ValidatorCurrentRewards `protobuf:"bytes,2,opt,name=rewards,proto3" json:"rewards"`
} }
func (m *ValidatorCurrentRewardsRecord) Reset() { *m = ValidatorCurrentRewardsRecord{} } func (m *ValidatorCurrentRewardsRecord) Reset() { *m = ValidatorCurrentRewardsRecord{} }
@ -240,11 +240,11 @@ var xxx_messageInfo_ValidatorCurrentRewardsRecord proto.InternalMessageInfo
// DelegatorStartingInfoRecord used for import / export via genesis json. // DelegatorStartingInfoRecord used for import / export via genesis json.
type DelegatorStartingInfoRecord struct { type DelegatorStartingInfoRecord struct {
// delegator_address is the address of the delegator. // delegator_address is the address of the delegator.
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
// validator_address is the address of the validator. // validator_address is the address of the validator.
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// starting_info defines the starting info of a delegator. // starting_info defines the starting info of a delegator.
StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info" yaml:"starting_info"` StartingInfo DelegatorStartingInfo `protobuf:"bytes,3,opt,name=starting_info,json=startingInfo,proto3" json:"starting_info"`
} }
func (m *DelegatorStartingInfoRecord) Reset() { *m = DelegatorStartingInfoRecord{} } func (m *DelegatorStartingInfoRecord) Reset() { *m = DelegatorStartingInfoRecord{} }
@ -283,13 +283,13 @@ var xxx_messageInfo_DelegatorStartingInfoRecord proto.InternalMessageInfo
// ValidatorSlashEventRecord is used for import / export via genesis json. // ValidatorSlashEventRecord is used for import / export via genesis json.
type ValidatorSlashEventRecord struct { type ValidatorSlashEventRecord struct {
// validator_address is the address of the validator. // validator_address is the address of the validator.
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// height defines the block height at which the slash event occured. // height defines the block height at which the slash event occured.
Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// period is the period of the slash event. // period is the period of the slash event.
Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"` Period uint64 `protobuf:"varint,3,opt,name=period,proto3" json:"period,omitempty"`
// validator_slash_event describes the slash event. // validator_slash_event describes the slash event.
ValidatorSlashEvent ValidatorSlashEvent `protobuf:"bytes,4,opt,name=validator_slash_event,json=validatorSlashEvent,proto3" json:"validator_slash_event" yaml:"event"` ValidatorSlashEvent ValidatorSlashEvent `protobuf:"bytes,4,opt,name=validator_slash_event,json=validatorSlashEvent,proto3" json:"validator_slash_event"`
} }
func (m *ValidatorSlashEventRecord) Reset() { *m = ValidatorSlashEventRecord{} } func (m *ValidatorSlashEventRecord) Reset() { *m = ValidatorSlashEventRecord{} }
@ -328,25 +328,25 @@ var xxx_messageInfo_ValidatorSlashEventRecord proto.InternalMessageInfo
// GenesisState defines the distribution module's genesis state. // GenesisState defines the distribution module's genesis state.
type GenesisState struct { type GenesisState struct {
// params defines all the paramaters of the module. // params defines all the paramaters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// fee_pool defines the fee pool at genesis. // fee_pool defines the fee pool at genesis.
FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool" yaml:"fee_pool"` FeePool FeePool `protobuf:"bytes,2,opt,name=fee_pool,json=feePool,proto3" json:"fee_pool"`
// fee_pool defines the delegator withdraw infos at genesis. // fee_pool defines the delegator withdraw infos at genesis.
DelegatorWithdrawInfos []DelegatorWithdrawInfo `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3" json:"delegator_withdraw_infos" yaml:"delegator_withdraw_infos"` DelegatorWithdrawInfos []DelegatorWithdrawInfo `protobuf:"bytes,3,rep,name=delegator_withdraw_infos,json=delegatorWithdrawInfos,proto3" json:"delegator_withdraw_infos"`
// fee_pool defines the previous proposer at genesis. // fee_pool defines the previous proposer at genesis.
PreviousProposer string `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3" json:"previous_proposer,omitempty" yaml:"previous_proposer"` PreviousProposer string `protobuf:"bytes,4,opt,name=previous_proposer,json=previousProposer,proto3" json:"previous_proposer,omitempty"`
// fee_pool defines the outstanding rewards of all validators at genesis. // fee_pool defines the outstanding rewards of all validators at genesis.
OutstandingRewards []ValidatorOutstandingRewardsRecord `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards" yaml:"outstanding_rewards"` OutstandingRewards []ValidatorOutstandingRewardsRecord `protobuf:"bytes,5,rep,name=outstanding_rewards,json=outstandingRewards,proto3" json:"outstanding_rewards"`
// fee_pool defines the accumulated commisions of all validators at genesis. // fee_pool defines the accumulated commisions of all validators at genesis.
ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `protobuf:"bytes,6,rep,name=validator_accumulated_commissions,json=validatorAccumulatedCommissions,proto3" json:"validator_accumulated_commissions" yaml:"validator_accumulated_commissions"` ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `protobuf:"bytes,6,rep,name=validator_accumulated_commissions,json=validatorAccumulatedCommissions,proto3" json:"validator_accumulated_commissions"`
// fee_pool defines the historical rewards of all validators at genesis. // fee_pool defines the historical rewards of all validators at genesis.
ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `protobuf:"bytes,7,rep,name=validator_historical_rewards,json=validatorHistoricalRewards,proto3" json:"validator_historical_rewards" yaml:"validator_historical_rewards"` ValidatorHistoricalRewards []ValidatorHistoricalRewardsRecord `protobuf:"bytes,7,rep,name=validator_historical_rewards,json=validatorHistoricalRewards,proto3" json:"validator_historical_rewards"`
// fee_pool defines the current rewards of all validators at genesis. // fee_pool defines the current rewards of all validators at genesis.
ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3" json:"validator_current_rewards" yaml:"validator_current_rewards"` ValidatorCurrentRewards []ValidatorCurrentRewardsRecord `protobuf:"bytes,8,rep,name=validator_current_rewards,json=validatorCurrentRewards,proto3" json:"validator_current_rewards"`
// fee_pool defines the delegator starting infos at genesis. // fee_pool defines the delegator starting infos at genesis.
DelegatorStartingInfos []DelegatorStartingInfoRecord `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3" json:"delegator_starting_infos" yaml:"delegator_starting_infos"` DelegatorStartingInfos []DelegatorStartingInfoRecord `protobuf:"bytes,9,rep,name=delegator_starting_infos,json=delegatorStartingInfos,proto3" json:"delegator_starting_infos"`
// fee_pool defines the validator slash events at genesis. // fee_pool defines the validator slash events at genesis.
ValidatorSlashEvents []ValidatorSlashEventRecord `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events" yaml:"validator_slash_events"` ValidatorSlashEvents []ValidatorSlashEventRecord `protobuf:"bytes,10,rep,name=validator_slash_events,json=validatorSlashEvents,proto3" json:"validator_slash_events"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -398,73 +398,63 @@ func init() {
} }
var fileDescriptor_76eed0f9489db580 = []byte{ var fileDescriptor_76eed0f9489db580 = []byte{
// 1048 bytes of a gzipped FileDescriptorProto // 896 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xcf, 0x6f, 0x1b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xeb, 0x44,
0x14, 0xf6, 0x3a, 0x25, 0x49, 0xc7, 0x29, 0x2d, 0x5b, 0x27, 0x71, 0xdc, 0xd4, 0x9b, 0x6e, 0x8b, 0x14, 0x8e, 0x93, 0x92, 0x9b, 0x3b, 0xb9, 0x88, 0x8b, 0x6f, 0x6f, 0x71, 0x7b, 0x8b, 0xd3, 0x96,
0x08, 0xaa, 0xba, 0x6e, 0xd2, 0x0a, 0x50, 0x10, 0x48, 0xd9, 0x94, 0x5f, 0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e, 0xe8, 0xee, 0xfd, 0x1d, 0x00, 0x00, 0xff, 0xff,
0x35, 0x86, 0xdd, 0xee, 0x9c, 0x0e, 0x00, 0x00,
} }
func (m *DelegatorWithdrawInfo) Marshal() (dAtA []byte, err error) { func (m *DelegatorWithdrawInfo) Marshal() (dAtA []byte, err error) {

View File

@ -3,7 +3,7 @@ package types
import ( import (
"fmt" "fmt"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

View File

@ -34,8 +34,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgSetWithdrawAddress sets the withdraw address for // MsgSetWithdrawAddress sets the withdraw address for
// a delegator (or validator self-delegation). // a delegator (or validator self-delegation).
type MsgSetWithdrawAddress struct { type MsgSetWithdrawAddress struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty" yaml:"withdraw_address"` WithdrawAddress string `protobuf:"bytes,2,opt,name=withdraw_address,json=withdrawAddress,proto3" json:"withdraw_address,omitempty"`
} }
func (m *MsgSetWithdrawAddress) Reset() { *m = MsgSetWithdrawAddress{} } func (m *MsgSetWithdrawAddress) Reset() { *m = MsgSetWithdrawAddress{} }
@ -111,8 +111,8 @@ var xxx_messageInfo_MsgSetWithdrawAddressResponse proto.InternalMessageInfo
// MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator // MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator
// from a single validator. // from a single validator.
type MsgWithdrawDelegatorReward struct { type MsgWithdrawDelegatorReward struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
} }
func (m *MsgWithdrawDelegatorReward) Reset() { *m = MsgWithdrawDelegatorReward{} } func (m *MsgWithdrawDelegatorReward) Reset() { *m = MsgWithdrawDelegatorReward{} }
@ -188,7 +188,7 @@ var xxx_messageInfo_MsgWithdrawDelegatorRewardResponse proto.InternalMessageInfo
// MsgWithdrawValidatorCommission withdraws the full commission to the validator // MsgWithdrawValidatorCommission withdraws the full commission to the validator
// address. // address.
type MsgWithdrawValidatorCommission struct { type MsgWithdrawValidatorCommission struct {
ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
} }
func (m *MsgWithdrawValidatorCommission) Reset() { *m = MsgWithdrawValidatorCommission{} } func (m *MsgWithdrawValidatorCommission) Reset() { *m = MsgWithdrawValidatorCommission{} }
@ -356,44 +356,42 @@ func init() {
} }
var fileDescriptor_ed4f433d965e58ca = []byte{ var fileDescriptor_ed4f433d965e58ca = []byte{
// 584 bytes of a gzipped FileDescriptorProto // 551 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x3f, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x3f, 0x6f, 0xd3, 0x40,
0x14, 0xf7, 0xb5, 0xa8, 0xa2, 0xc7, 0x40, 0x63, 0x05, 0x35, 0x75, 0xe1, 0x5c, 0x59, 0x15, 0xca, 0x18, 0xc6, 0x7d, 0x14, 0x55, 0xf4, 0x18, 0x68, 0xac, 0x20, 0x52, 0x17, 0x2e, 0x55, 0x54, 0xa1,
0x52, 0x87, 0xa4, 0x08, 0x44, 0x18, 0x10, 0x09, 0x62, 0x8b, 0x40, 0xa9, 0x04, 0x12, 0x03, 0xd5, 0x2c, 0xb5, 0x49, 0x90, 0x40, 0x94, 0x01, 0x91, 0x50, 0xb6, 0x08, 0x94, 0x4a, 0x20, 0xb1, 0x54,
0x25, 0x77, 0x72, 0x4f, 0xc4, 0xbe, 0xc8, 0x77, 0x69, 0x9a, 0x11, 0x89, 0x81, 0x05, 0x09, 0x89, 0x76, 0xee, 0xe4, 0x9e, 0x88, 0xfd, 0x06, 0xdf, 0xb9, 0x69, 0x47, 0x24, 0x06, 0x46, 0x24, 0x3e,
0x0f, 0x40, 0x47, 0xc4, 0xcc, 0xca, 0x9e, 0xb1, 0x62, 0x62, 0x0a, 0x28, 0x61, 0x60, 0x60, 0xea, 0x00, 0x1d, 0x11, 0x12, 0x5b, 0x57, 0xf6, 0x8c, 0x15, 0x13, 0x13, 0xa0, 0x64, 0xe1, 0x63, 0xa0,
0x27, 0x40, 0xb1, 0xcf, 0x26, 0x69, 0x1c, 0x97, 0x82, 0x60, 0xf2, 0x9f, 0xf7, 0xfb, 0xf7, 0xce, 0xd8, 0x67, 0x93, 0x28, 0x4e, 0x4c, 0x29, 0x53, 0xfe, 0xbc, 0xcf, 0xf3, 0xdc, 0xef, 0x55, 0x9e,
0xf7, 0x7c, 0x70, 0xb3, 0xc9, 0x85, 0xcb, 0x45, 0x81, 0x30, 0x21, 0x7d, 0xd6, 0xe8, 0x48, 0xc6, 0x8b, 0xf1, 0x66, 0x07, 0x84, 0x07, 0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x06, 0x00, 0x00,
} }
func (this *MsgSetWithdrawAddressResponse) Equal(that interface{}) bool { func (this *MsgSetWithdrawAddressResponse) Equal(that interface{}) bool {

View File

@ -9,7 +9,7 @@ import (
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
tmbytes "github.com/tendermint/tendermint/libs/bytes" tmbytes "github.com/tendermint/tendermint/libs/bytes"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -7,7 +7,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/crypto/tmhash" "github.com/tendermint/tendermint/crypto/tmhash"
tmbytes "github.com/tendermint/tendermint/libs/bytes" tmbytes "github.com/tendermint/tendermint/libs/bytes"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/evidence/exported" "github.com/cosmos/cosmos-sdk/x/evidence/exported"

View File

@ -34,7 +34,7 @@ type Equivocation struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Time time.Time `protobuf:"bytes,2,opt,name=time,proto3,stdtime" json:"time"` Time time.Time `protobuf:"bytes,2,opt,name=time,proto3,stdtime" json:"time"`
Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
ConsensusAddress string `protobuf:"bytes,4,opt,name=consensus_address,json=consensusAddress,proto3" json:"consensus_address,omitempty" yaml:"consensus_address"` ConsensusAddress string `protobuf:"bytes,4,opt,name=consensus_address,json=consensusAddress,proto3" json:"consensus_address,omitempty"`
} }
func (m *Equivocation) Reset() { *m = Equivocation{} } func (m *Equivocation) Reset() { *m = Equivocation{} }
@ -78,29 +78,28 @@ func init() {
} }
var fileDescriptor_dd143e71a177f0dd = []byte{ var fileDescriptor_dd143e71a177f0dd = []byte{
// 346 bytes of a gzipped FileDescriptorProto // 333 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x3f, 0x4f, 0x02, 0x31, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x51, 0xbb, 0x4e, 0xf3, 0x30,
0x18, 0xc6, 0x5b, 0x41, 0xa2, 0x27, 0x83, 0x5e, 0x88, 0x9e, 0x0c, 0x2d, 0x61, 0x30, 0x2c, 0xdc, 0x18, 0xb5, 0xff, 0xf6, 0xaf, 0x20, 0x74, 0x80, 0xa8, 0x82, 0xd0, 0xc1, 0xa9, 0x18, 0x50, 0x97,
0x05, 0x75, 0x30, 0x6c, 0x92, 0x38, 0xb9, 0xa1, 0x93, 0x0b, 0xb9, 0x3f, 0xb5, 0x34, 0x72, 0xd7, 0x26, 0x2a, 0x2c, 0x88, 0x8d, 0x4a, 0x9d, 0xd8, 0x0a, 0x13, 0x4b, 0x95, 0x8b, 0x71, 0x2d, 0x48,
0xf3, 0xda, 0x43, 0xf9, 0x06, 0x8e, 0x8c, 0x8e, 0x8c, 0x7e, 0x00, 0x3f, 0x04, 0x23, 0x71, 0x72, 0xbe, 0x10, 0x3b, 0x05, 0xde, 0x80, 0xb1, 0x23, 0x63, 0x47, 0x1e, 0x80, 0x87, 0xa8, 0xc4, 0x52,
0x42, 0x73, 0x0c, 0x3a, 0xfb, 0x09, 0x0c, 0xd7, 0x82, 0x83, 0x53, 0xfb, 0x3c, 0xf9, 0xbd, 0xcf, 0x31, 0x31, 0x01, 0x4a, 0x17, 0x1e, 0x03, 0x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2, 0x22, 0xda, 0xdd, 0x5d, 0xb3, 0xda, 0x6f, 0x97, 0xfc, 0x69, 0xfd, 0x69, 0xea, 0xa2, 0xe7, 0xa9, 0x8b, 0x7e, 0xa6, 0x2e, 0xea, 0x9d, 0xbf, 0x94,
0x9f, 0x26, 0x18, 0x3c, 0x4f, 0x30, 0xf8, 0x9e, 0x60, 0xd0, 0xb9, 0x7c, 0xc9, 0x10, 0x9c, 0x66, 0x04, 0xcf, 0x4a, 0x82, 0xe7, 0x25, 0xc1, 0xdf, 0x25, 0xc1, 0x93, 0x05, 0x41, 0xf3, 0x05, 0x41,
0x08, 0xce, 0x32, 0x04, 0x3f, 0x33, 0x04, 0xc7, 0x0b, 0x04, 0x66, 0x0b, 0x04, 0xde, 0x17, 0x08, 0x1f, 0x0b, 0x82, 0xae, 0x3a, 0x8c, 0xcb, 0x51, 0x11, 0x7a, 0x11, 0x24, 0xe6, 0x13, 0xcc, 0xd2,
0xdc, 0x34, 0x29, 0x93, 0xfd, 0xd4, 0xb3, 0x7d, 0x1e, 0xea, 0x07, 0xd2, 0x47, 0x53, 0x04, 0x77, 0x11, 0xf1, 0x8d, 0xff, 0xf0, 0x37, 0x16, 0xf9, 0x98, 0x51, 0x11, 0xd6, 0xd4, 0xdb, 0x8e, 0x7f,
0xce, 0xe3, 0xdf, 0x97, 0xc9, 0x51, 0x4c, 0x84, 0x57, 0xca, 0xf7, 0x3e, 0xf9, 0x0d, 0x00, 0x00, 0x03, 0x00, 0x00, 0xff, 0xff, 0xbe, 0x32, 0xf0, 0x2c, 0xb6, 0x01, 0x00, 0x00,
0xff, 0xff, 0xca, 0x0b, 0xf0, 0x75, 0xd2, 0x01, 0x00, 0x00,
} }
func (m *Equivocation) Marshal() (dAtA []byte, err error) { func (m *Equivocation) Marshal() (dAtA []byte, err error) {

View File

@ -30,7 +30,18 @@ func TestEquivocation_Valid(t *testing.T) {
require.Equal(t, e.Type(), types.TypeEquivocation) require.Equal(t, e.Type(), types.TypeEquivocation)
require.Equal(t, e.Route(), types.RouteEquivocation) require.Equal(t, e.Route(), types.RouteEquivocation)
require.Equal(t, e.Hash().String(), "1E10F9267BEA3A9A4AB5302C2C510CC1AFD7C54E232DA5B2E3360DFAFACF7A76") require.Equal(t, e.Hash().String(), "1E10F9267BEA3A9A4AB5302C2C510CC1AFD7C54E232DA5B2E3360DFAFACF7A76")
require.Equal(t, e.String(), "height: 100\ntime: 2006-01-02T15:04:05Z\npower: 1000000\nconsensus_address: cosmosvalcons1vehk7h6lta047h6lta047h6lta047h6l8m4r53\n") require.Equal(t, e.String(), "consensus_address: cosmosvalcons1vehk7h6lta047h6lta047h6lta047h6l8m4r53\nheight: 100\npower: 1000000\ntime: \"2006-01-02T15:04:05Z\"\n")
require.NoError(t, e.ValidateBasic())
require.Equal(t, int64(0), e.GetTotalPower())
require.Equal(t, e.Power, e.GetValidatorPower())
require.Equal(t, e.Time, e.GetTime())
require.Equal(t, e.ConsensusAddress, e.GetConsensusAddress().String())
require.Equal(t, e.Height, e.GetHeight())
require.Equal(t, types.TypeEquivocation, e.Type())
require.Equal(t, types.RouteEquivocation, e.Route())
require.Equal(t, "1E10F9267BEA3A9A4AB5302C2C510CC1AFD7C54E232DA5B2E3360DFAFACF7A76", e.Hash().String())
require.Equal(t, "consensus_address: cosmosvalcons1vehk7h6lta047h6lta047h6lta047h6l8m4r53\nheight: 100\npower: 1000000\ntime: \"2006-01-02T15:04:05Z\"\n", e.String())
require.NoError(t, e.ValidateBasic()) require.NoError(t, e.ValidateBasic())
} }

View File

@ -27,7 +27,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the raw genesis transaction in JSON. // GenesisState defines the raw genesis transaction in JSON.
type GenesisState struct { type GenesisState struct {
// gen_txs defines the genesis transactions. // gen_txs defines the genesis transactions.
GenTxs []encoding_json.RawMessage `protobuf:"bytes,1,rep,name=gen_txs,json=genTxs,proto3,casttype=encoding/json.RawMessage" json:"gentxs" yaml:"gentxs"` GenTxs []encoding_json.RawMessage `protobuf:"bytes,1,rep,name=gen_txs,json=genTxs,proto3,casttype=encoding/json.RawMessage" json:"gentxs"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -79,22 +79,21 @@ func init() {
} }
var fileDescriptor_31771d25e8d8f90f = []byte{ var fileDescriptor_31771d25e8d8f90f = []byte{
// 234 bytes of a gzipped FileDescriptorProto // 221 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x4f, 0x4f, 0xcd, 0x2b, 0x2d, 0xc9, 0xcc, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d, 0xcd, 0x2f, 0xd6, 0x4f, 0x4f, 0xcd, 0x2b, 0x2d, 0xc9, 0xcc, 0xd1, 0x2f, 0x33, 0x4c, 0x4a, 0x2d,
0x49, 0x34, 0x04, 0xf1, 0x53, 0x8b, 0x33, 0x8b, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4, 0x49, 0x34, 0x04, 0xf1, 0x53, 0x8b, 0x33, 0x8b, 0xf5, 0x0a, 0x8a, 0xf2, 0x4b, 0xf2, 0x85, 0xc4,
0x20, 0xaa, 0xf4, 0xa0, 0xaa, 0xf4, 0xa0, 0xaa, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4a, 0x20, 0xaa, 0xf4, 0xa0, 0xaa, 0xf4, 0xa0, 0xaa, 0xa4, 0x44, 0xd2, 0xf3, 0xd3, 0xf3, 0xc1, 0x4a,
0xf4, 0x41, 0x2c, 0x88, 0x6a, 0xa5, 0x04, 0x2e, 0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xe4, 0x18, 0x27,
0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x9d, 0xf4, 0xcc,
0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x9d, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0x4f, 0x20, 0x94, 0x6e, 0x71, 0x4a,
0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xa8, 0xd7, 0x20, 0x94, 0x6e, 0x71, 0x4a, 0xb6, 0x7e, 0x05, 0xb6, 0x7e, 0x05, 0xdc, 0x5b, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0xf7, 0x19, 0x03,
0xdc, 0x9f, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, 0x07, 0x1b, 0x03, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc5, 0xe1, 0x3b, 0x15, 0xf5, 0x00, 0x00, 0x00,
0xff, 0xff, 0x6b, 0x84, 0x7a, 0x20, 0x06, 0x01, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -69,7 +69,6 @@ func SetGenesisStateInAppState(
// //
// NOTE: The pubkey input is this machines pubkey. // NOTE: The pubkey input is this machines pubkey.
func GenesisStateFromGenDoc(genDoc tmtypes.GenesisDoc) (genesisState map[string]json.RawMessage, err error) { func GenesisStateFromGenDoc(genDoc tmtypes.GenesisDoc) (genesisState map[string]json.RawMessage, err error) {
if err = json.Unmarshal(genDoc.AppState, &genesisState); err != nil { if err = json.Unmarshal(genDoc.AppState, &genesisState); err != nil {
return genesisState, err return genesisState, err
} }

View File

@ -3,7 +3,7 @@ package types
import ( import (
"fmt" "fmt"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )

View File

@ -26,7 +26,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// GenesisState defines the gov module's genesis state. // GenesisState defines the gov module's genesis state.
type GenesisState struct { type GenesisState struct {
// starting_proposal_id is the ID of the starting proposal. // starting_proposal_id is the ID of the starting proposal.
StartingProposalId uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty" yaml:"starting_proposal_id"` StartingProposalId uint64 `protobuf:"varint,1,opt,name=starting_proposal_id,json=startingProposalId,proto3" json:"starting_proposal_id,omitempty"`
// deposits defines all the deposits present at genesis. // deposits defines all the deposits present at genesis.
Deposits Deposits `protobuf:"bytes,2,rep,name=deposits,proto3,castrepeated=Deposits" json:"deposits"` Deposits Deposits `protobuf:"bytes,2,rep,name=deposits,proto3,castrepeated=Deposits" json:"deposits"`
// votes defines all the votes present at genesis. // votes defines all the votes present at genesis.
@ -34,11 +34,11 @@ type GenesisState struct {
// proposals defines all the proposals present at genesis. // proposals defines all the proposals present at genesis.
Proposals Proposals `protobuf:"bytes,4,rep,name=proposals,proto3,castrepeated=Proposals" json:"proposals"` Proposals Proposals `protobuf:"bytes,4,rep,name=proposals,proto3,castrepeated=Proposals" json:"proposals"`
// params defines all the paramaters of related to deposit. // params defines all the paramaters of related to deposit.
DepositParams DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params" yaml:"deposit_params"` DepositParams DepositParams `protobuf:"bytes,5,opt,name=deposit_params,json=depositParams,proto3" json:"deposit_params"`
// params defines all the paramaters of related to voting. // params defines all the paramaters of related to voting.
VotingParams VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params" yaml:"voting_params"` VotingParams VotingParams `protobuf:"bytes,6,opt,name=voting_params,json=votingParams,proto3" json:"voting_params"`
// params defines all the paramaters of related to tally. // params defines all the paramaters of related to tally.
TallyParams TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params" yaml:"tally_params"` TallyParams TallyParams `protobuf:"bytes,7,opt,name=tally_params,json=tallyParams,proto3" json:"tally_params"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -130,34 +130,32 @@ func init() {
func init() { proto.RegisterFile("cosmos/gov/v1beta1/genesis.proto", fileDescriptor_43cd825e0fa7a627) } func init() { proto.RegisterFile("cosmos/gov/v1beta1/genesis.proto", fileDescriptor_43cd825e0fa7a627) }
var fileDescriptor_43cd825e0fa7a627 = []byte{ var fileDescriptor_43cd825e0fa7a627 = []byte{
// 430 bytes of a gzipped FileDescriptorProto // 389 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x31, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x6e, 0xda, 0x40,
0x14, 0xc7, 0x63, 0x9a, 0x94, 0xf6, 0x92, 0x20, 0x38, 0x82, 0x64, 0x35, 0xc1, 0x36, 0x9e, 0xb2, 0x14, 0x45, 0xed, 0x62, 0x28, 0x0c, 0x50, 0xb5, 0x23, 0x16, 0x16, 0x45, 0xc6, 0xed, 0xca, 0x9b,
0x60, 0xab, 0x65, 0x43, 0x62, 0xb1, 0x90, 0x50, 0x07, 0xa4, 0x62, 0x10, 0x03, 0x4b, 0x74, 0x89, 0xda, 0x85, 0xae, 0xbb, 0xb1, 0x2a, 0xb5, 0xa8, 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d6, 0xcc, 0x8c, 0x66, 0xa2, 0x35, 0x7b, 0x10, 0x3f, 0x1e, 0x55, 0xad, 0x2c, 0x5d, 0x82, 0x6a, 0xf3, 0x92, 0xe4, 0x6e, 0xf7, 0x86, 0xba, 0xdb, 0x1b, 0xea, 0xdd, 0xde, 0x50, 0x2f,
0x90, 0x91, 0x64, 0x59, 0xb6, 0x6e, 0x1c, 0x77, 0x95, 0xc3, 0xed, 0x72, 0xbc, 0xab, 0x73, 0x46, 0x0f, 0x86, 0xb2, 0x3b, 0x18, 0xca, 0xf5, 0xc1, 0x50, 0x8e, 0xad, 0x30, 0xe2, 0x27, 0x67, 0x73,
0x31, 0x35, 0x8a, 0x87, 0x5a, 0xd1, 0x46, 0xf8, 0xf1, 0x50, 0xb6, 0x92, 0xd1, 0xd5, 0xd6, 0xb1, 0x7b, 0x01, 0x2b, 0x27, 0xdf, 0x22, 0xf9, 0xf9, 0x82, 0xc1, 0xa9, 0x73, 0x2e, 0x56, 0x8a, 0x6f,
0xae, 0xb7, 0x8e, 0xf5, 0x73, 0xeb, 0x58, 0x5f, 0x77, 0x4e, 0xef, 0x7a, 0xe7, 0xf4, 0xbe, 0xef, 0x62, 0x86, 0xf3, 0x86, 0xd8, 0xa6, 0x6f, 0xf7, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2d, 0x3b, 0x1a,
0x9c, 0xde, 0x87, 0xb9, 0x48, 0xe5, 0xc7, 0xcf, 0xcb, 0x60, 0x05, 0x79, 0x68, 0xd6, 0x55, 0xff, 0xbf, 0xb9, 0x02, 0x00, 0x00,
0x3c, 0xc5, 0xe4, 0x53, 0xf8, 0x45, 0xed, 0xae, 0x5c, 0x17, 0x1c, 0x97, 0x87, 0x6a, 0x6d, 0x9f,
0xfd, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x63, 0x67, 0xf6, 0x22, 0x03, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -124,7 +124,7 @@ func (ProposalStatus) EnumDescriptor() ([]byte, []int) {
// WeightedVoteOption defines a unit of vote for vote split. // WeightedVoteOption defines a unit of vote for vote split.
type WeightedVoteOption struct { type WeightedVoteOption struct {
Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"` Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight" yaml:"weight"` Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight"`
} }
func (m *WeightedVoteOption) Reset() { *m = WeightedVoteOption{} } func (m *WeightedVoteOption) Reset() { *m = WeightedVoteOption{} }
@ -201,7 +201,7 @@ var xxx_messageInfo_TextProposal proto.InternalMessageInfo
// Deposit defines an amount deposited by an account address to an active // Deposit defines an amount deposited by an account address to an active
// proposal. // proposal.
type Deposit struct { type Deposit struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
} }
@ -240,15 +240,15 @@ var xxx_messageInfo_Deposit proto.InternalMessageInfo
// Proposal defines the core field members of a governance proposal. // Proposal defines the core field members of a governance proposal.
type Proposal struct { type Proposal struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"id" yaml:"id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"id"`
Content *types1.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Content *types1.Any `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1beta1.ProposalStatus" json:"status,omitempty" yaml:"proposal_status"` Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=cosmos.gov.v1beta1.ProposalStatus" json:"status,omitempty"`
FinalTallyResult TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result" yaml:"final_tally_result"` FinalTallyResult TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result"`
SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" yaml:"submit_time"` SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time"`
DepositEndTime time.Time `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time" yaml:"deposit_end_time"` DepositEndTime time.Time `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time"`
TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit" yaml:"total_deposit"` TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit"`
VotingStartTime time.Time `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time" yaml:"voting_start_time"` VotingStartTime time.Time `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time"`
VotingEndTime time.Time `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time" yaml:"voting_end_time"` VotingEndTime time.Time `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time"`
} }
func (m *Proposal) Reset() { *m = Proposal{} } func (m *Proposal) Reset() { *m = Proposal{} }
@ -288,7 +288,7 @@ type TallyResult struct {
Yes github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=yes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"yes"` Yes github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=yes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"yes"`
Abstain github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=abstain,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"abstain"` Abstain github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=abstain,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"abstain"`
No github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=no,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"no"` No github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=no,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"no"`
NoWithVeto github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=no_with_veto,json=noWithVeto,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"no_with_veto" yaml:"no_with_veto"` NoWithVeto github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=no_with_veto,json=noWithVeto,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"no_with_veto"`
} }
func (m *TallyResult) Reset() { *m = TallyResult{} } func (m *TallyResult) Reset() { *m = TallyResult{} }
@ -326,7 +326,7 @@ var xxx_messageInfo_TallyResult proto.InternalMessageInfo
// Vote defines a vote on a governance proposal. // Vote defines a vote on a governance proposal.
// A Vote consists of a proposal ID, the voter, and the vote option. // A Vote consists of a proposal ID, the voter, and the vote option.
type Vote struct { type Vote struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
// Deprecated: Prefer to use `options` instead. This field is set in queries // Deprecated: Prefer to use `options` instead. This field is set in queries
// if and only if `len(options) == 1` and that option has weight 1. In all // if and only if `len(options) == 1` and that option has weight 1. In all
@ -370,10 +370,10 @@ var xxx_messageInfo_Vote proto.InternalMessageInfo
// DepositParams defines the params for deposits on governance proposals. // DepositParams defines the params for deposits on governance proposals.
type DepositParams struct { type DepositParams struct {
// Minimum deposit for a proposal to enter voting period. // Minimum deposit for a proposal to enter voting period.
MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_deposit,omitempty" yaml:"min_deposit"` MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_deposit,omitempty"`
// Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // Maximum period for Atom holders to deposit on a proposal. Initial value: 2
// months. // months.
MaxDepositPeriod time.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3,stdduration" json:"max_deposit_period,omitempty" yaml:"max_deposit_period"` MaxDepositPeriod time.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3,stdduration" json:"max_deposit_period,omitempty"`
} }
func (m *DepositParams) Reset() { *m = DepositParams{} } func (m *DepositParams) Reset() { *m = DepositParams{} }
@ -411,7 +411,7 @@ var xxx_messageInfo_DepositParams proto.InternalMessageInfo
// VotingParams defines the params for voting on governance proposals. // VotingParams defines the params for voting on governance proposals.
type VotingParams struct { type VotingParams struct {
// Length of the voting period. // Length of the voting period.
VotingPeriod time.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3,stdduration" json:"voting_period,omitempty" yaml:"voting_period"` VotingPeriod time.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3,stdduration" json:"voting_period,omitempty"`
} }
func (m *VotingParams) Reset() { *m = VotingParams{} } func (m *VotingParams) Reset() { *m = VotingParams{} }
@ -455,7 +455,7 @@ type TallyParams struct {
Threshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=threshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"threshold,omitempty"` Threshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=threshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"threshold,omitempty"`
// Minimum value of Veto votes to Total votes ratio for proposal to be // Minimum value of Veto votes to Total votes ratio for proposal to be
// vetoed. Default value: 1/3. // vetoed. Default value: 1/3.
VetoThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=veto_threshold,json=vetoThreshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"veto_threshold,omitempty" yaml:"veto_threshold"` VetoThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=veto_threshold,json=vetoThreshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"veto_threshold,omitempty"`
} }
func (m *TallyParams) Reset() { *m = TallyParams{} } func (m *TallyParams) Reset() { *m = TallyParams{} }
@ -507,100 +507,92 @@ func init() {
func init() { proto.RegisterFile("cosmos/gov/v1beta1/gov.proto", fileDescriptor_6e82113c1a9a4b7c) } func init() { proto.RegisterFile("cosmos/gov/v1beta1/gov.proto", fileDescriptor_6e82113c1a9a4b7c) }
var fileDescriptor_6e82113c1a9a4b7c = []byte{ var fileDescriptor_6e82113c1a9a4b7c = []byte{
// 1487 bytes of a gzipped FileDescriptorProto // 1352 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0x31, 0x6c, 0xdb, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0x13, 0xc7,
0x17, 0x16, 0x25, 0x59, 0xb6, 0x4e, 0xb2, 0xcd, 0x9c, 0x1d, 0x5b, 0xd6, 0x9f, 0x9f, 0x54, 0xd9, 0x17, 0xf7, 0xda, 0x8e, 0x93, 0x3c, 0x3b, 0xc9, 0x32, 0xe4, 0x0b, 0x8e, 0xbf, 0x7c, 0xed, 0x95,
0x22, 0x30, 0x82, 0x58, 0x4e, 0xdc, 0x22, 0x45, 0x9d, 0x2e, 0xa2, 0x45, 0x37, 0x2a, 0x52, 0x49, 0xbf, 0x12, 0x8d, 0x10, 0x71, 0x20, 0x95, 0x90, 0x1a, 0x7a, 0xb1, 0xe3, 0x4d, 0x6b, 0x14, 0xd9,
0xa0, 0x14, 0x19, 0x49, 0x07, 0x82, 0x16, 0x2f, 0x32, 0x5b, 0x91, 0xa7, 0x8a, 0x27, 0xc7, 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57, 0x00, 0x00, 0x00, 0xff, 0xff,
0xe9, 0x85, 0x6e, 0x2f, 0x03, 0x69, 0x6e, 0x2d, 0xd0, 0x01, 0xf0, 0x22, 0x58, 0x18, 0x4e, 0x2d, 0x8c, 0x21, 0xa9, 0x1b, 0x0e, 0x0d, 0x00, 0x00,
0xe7, 0x2a, 0x15, 0x25, 0xcf, 0x47, 0xd2, 0x7c, 0xb7, 0x97, 0x49, 0xd2, 0x9c, 0xb2, 0xee, 0x38,
0xc8, 0x80, 0x97, 0x40, 0x6a, 0x18, 0xad, 0x2a, 0x9f, 0x2a, 0x1b, 0x55, 0x25, 0xcf, 0x47, 0xd3,
0xb0, 0xdb, 0xcb, 0xcc, 0x50, 0xbc, 0x8a, 0xbe, 0x40, 0x75, 0x82, 0x4e, 0xe4, 0xdf, 0xcc, 0x15,
0xae, 0x2b, 0x79, 0x7e, 0x22, 0xc8, 0xbf, 0xa9, 0x9b, 0x4d, 0x64, 0x50, 0x3b, 0xe5, 0xe2, 0xe3,
0x17, 0x42, 0xe8, 0xd9, 0x0b, 0x21, 0x74, 0xf7, 0x40, 0x08, 0x3d, 0x3e, 0x10, 0xb8, 0x27, 0x07,
0x02, 0xf7, 0xfb, 0x81, 0xc0, 0xdd, 0x7f, 0x29, 0x84, 0x9e, 0xbc, 0x14, 0x42, 0xcf, 0x5e, 0x0a,
0xa1, 0x5b, 0xff, 0x3e, 0x10, 0xf7, 0xbc, 0x7f, 0x3c, 0xbd, 0xf3, 0xbc, 0x1d, 0xf3, 0x66, 0xc8,
0xfb, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x08, 0x25, 0x3f, 0x0c, 0x93, 0x0e, 0x00, 0x00,
} }
func (this *TextProposal) Equal(that interface{}) bool { func (this *TextProposal) Equal(that interface{}) bool {

View File

@ -3,7 +3,7 @@ package types
import ( import (
"fmt" "fmt"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/proto"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec/types" "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -1,7 +1,7 @@
package types package types
import ( import (
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )

View File

@ -36,7 +36,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// proposal Content. // proposal Content.
type MsgSubmitProposal struct { type MsgSubmitProposal struct {
Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"initial_deposit" yaml:"initial_deposit"` InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"initial_deposit"`
Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"` Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"`
} }
@ -74,7 +74,7 @@ var xxx_messageInfo_MsgSubmitProposal proto.InternalMessageInfo
// MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. // MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
type MsgSubmitProposalResponse struct { type MsgSubmitProposalResponse struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
} }
func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResponse{} } func (m *MsgSubmitProposalResponse) Reset() { *m = MsgSubmitProposalResponse{} }
@ -119,7 +119,7 @@ func (m *MsgSubmitProposalResponse) GetProposalId() uint64 {
// MsgVote defines a message to cast a vote. // MsgVote defines a message to cast a vote.
type MsgVote struct { type MsgVote struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"` Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"`
} }
@ -195,7 +195,7 @@ var xxx_messageInfo_MsgVoteResponse proto.InternalMessageInfo
// MsgVoteWeighted defines a message to cast a vote. // MsgVoteWeighted defines a message to cast a vote.
type MsgVoteWeighted struct { type MsgVoteWeighted struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
Options []WeightedVoteOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options"` Options []WeightedVoteOption `protobuf:"bytes,3,rep,name=options,proto3" json:"options"`
} }
@ -271,7 +271,7 @@ var xxx_messageInfo_MsgVoteWeightedResponse proto.InternalMessageInfo
// MsgDeposit defines a message to submit a deposit to an existing proposal. // MsgDeposit defines a message to submit a deposit to an existing proposal.
type MsgDeposit struct { type MsgDeposit struct {
ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"` ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id"`
Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
} }
@ -359,50 +359,48 @@ func init() {
func init() { proto.RegisterFile("cosmos/gov/v1beta1/tx.proto", fileDescriptor_3c053992595e3dce) } func init() { proto.RegisterFile("cosmos/gov/v1beta1/tx.proto", fileDescriptor_3c053992595e3dce) }
var fileDescriptor_3c053992595e3dce = []byte{ var fileDescriptor_3c053992595e3dce = []byte{
// 680 bytes of a gzipped FileDescriptorProto // 648 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x41, 0x6b, 0x13, 0x41, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0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0x00, 0x00, 0xff, 0xff,
0x6b, 0xb0, 0x7e, 0xf2, 0xf6, 0x06, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )

View File

@ -30,7 +30,7 @@ type Minter struct {
// current annual inflation rate // current annual inflation rate
Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"`
// current annual expected provisions // current annual expected provisions
AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions" yaml:"annual_provisions"` AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"`
} }
func (m *Minter) Reset() { *m = Minter{} } func (m *Minter) Reset() { *m = Minter{} }
@ -71,15 +71,15 @@ type Params struct {
// type of coin to mint // type of coin to mint
MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"`
// maximum annual change in inflation rate // maximum annual change in inflation rate
InflationRateChange github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_rate_change" yaml:"inflation_rate_change"` InflationRateChange github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_rate_change"`
// maximum inflation rate // maximum inflation rate
InflationMax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_max" yaml:"inflation_max"` InflationMax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_max"`
// minimum inflation rate // minimum inflation rate
InflationMin github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_min" yaml:"inflation_min"` InflationMin github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_min"`
// goal of percent bonded atoms // goal of percent bonded atoms
GoalBonded github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"goal_bonded" yaml:"goal_bonded"` GoalBonded github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"goal_bonded"`
// expected blocks per year // expected blocks per year
BlocksPerYear uint64 `protobuf:"varint,6,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty" yaml:"blocks_per_year"` BlocksPerYear uint64 `protobuf:"varint,6,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty"`
} }
func (m *Params) Reset() { *m = Params{} } func (m *Params) Reset() { *m = Params{} }
@ -136,36 +136,32 @@ func init() {
func init() { proto.RegisterFile("cosmos/mint/v1beta1/mint.proto", fileDescriptor_2df116d183c1e223) } func init() { proto.RegisterFile("cosmos/mint/v1beta1/mint.proto", fileDescriptor_2df116d183c1e223) }
var fileDescriptor_2df116d183c1e223 = []byte{ var fileDescriptor_2df116d183c1e223 = []byte{
// 460 bytes of a gzipped FileDescriptorProto // 393 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xc1, 0x6a, 0x13, 0x41, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xc1, 0xaa, 0xda, 0x40,
0x1c, 0xc6, 0x77, 0x34, 0x06, 0x32, 0x5a, 0xd4, 0x69, 0x95, 0x35, 0xe8, 0x6e, 0xc9, 0x41, 0xea, 0x18, 0x85, 0x93, 0x6a, 0x03, 0x4e, 0x2b, 0x6d, 0xc7, 0x16, 0x52, 0xa1, 0x51, 0x5c, 0x88, 0x5d,
0xa1, 0x09, 0xc5, 0x5b, 0xf1, 0xb4, 0xcd, 0xb5, 0x10, 0x16, 0x0f, 0x5a, 0x84, 0xe5, 0xbf, 0x9b, 0x98, 0x20, 0xdd, 0x95, 0xae, 0xd4, 0xad, 0x20, 0xd9, 0x55, 0x28, 0x61, 0x92, 0x4c, 0xe3, 0x60,
0x71, 0x3b, 0x74, 0x67, 0x26, 0xcc, 0x4c, 0x4b, 0xf2, 0x00, 0xde, 0x7b, 0xf4, 0xe8, 0x43, 0xf8, 0x32, 0x13, 0x66, 0x46, 0xd1, 0xb7, 0xe8, 0xb2, 0xcb, 0x3e, 0x44, 0x1f, 0xc2, 0x5d, 0xa5, 0xab,
0x10, 0x3d, 0x16, 0x4f, 0xe2, 0x21, 0x48, 0x72,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b, 0x3f, 0x7f, 0xf5, 0x8c, 0xe9, 0xec, 0x78, 0x71, 0xcc, 0xd3, 0xc5, 0x31,
0xb6, 0x38, 0x6e, 0x5c, 0x4c, 0x5c, 0xf1, 0x5f, 0x51, 0xf5, 0x5a, 0x5c, 0x6a, 0x91, 0x95, 0x48, 0xef, 0x2e, 0x8e, 0xf9, 0xe3, 0xea, 0x18, 0xa7, 0xab, 0x63, 0xfc, 0xbb, 0x3a, 0xc6, 0xea, 0xe3,
0x84, 0x1f, 0xa6, 0x85, 0xcc, 0xce, 0x74, 0x32, 0xa1, 0x2a, 0x99, 0x51, 0x50, 0x7e, 0x7b, 0x17, 0x93, 0x4d, 0xf6, 0x7a, 0xb1, 0x54, 0xa1, 0xd0, 0x52, 0xcb, 0xf0, 0xe9, 0x21, 0x00, 0x00, 0xff,
0xed, 0xb5, 0xa2, 0xee, 0xcd, 0x3c, 0x7c, 0xea, 0xa2, 0x6a, 0x86, 0x5e, 0xbc, 0xe5, 0x26, 0x23, 0xff, 0x83, 0xde, 0x9f, 0x75, 0x74, 0x03, 0x00, 0x00,
0xaa, 0xde, 0x53, 0x50, 0x87, 0xad, 0xcf, 0x5f, 0x42, 0x2f, 0x3a, 0xba, 0x5a, 0x04, 0xe8, 0x7a,
0x11, 0xa0, 0x9f, 0x8b, 0x00, 0x5d, 0x2e, 0x03, 0xef, 0x7a, 0x19, 0x78, 0xdf, 0x97, 0x81, 0x77,
0xf2, 0x6a, 0x23, 0xfb, 0xd4, 0x3d, 0x7c, 0x7b, 0x85, 0xb4, 0x6d, 0x1f, 0xeb, 0xeb, 0x3f, 0x01,
0x00, 0x00, 0xff, 0xff, 0x6f, 0x26, 0xbe, 0x24, 0x14, 0x04, 0x00, 0x00,
} }
func (m *Minter) Marshal() (dAtA []byte, err error) { func (m *Minter) Marshal() (dAtA []byte, err error) {

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"strings" "strings"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
) )

View File

@ -30,10 +30,10 @@ type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// signing_infos represents a map between validator addresses and their // signing_infos represents a map between validator addresses and their
// signing infos. // signing infos.
SigningInfos []SigningInfo `protobuf:"bytes,2,rep,name=signing_infos,json=signingInfos,proto3" json:"signing_infos" yaml:"signing_infos"` SigningInfos []SigningInfo `protobuf:"bytes,2,rep,name=signing_infos,json=signingInfos,proto3" json:"signing_infos"`
// missed_blocks represents a map between validator addresses and their // missed_blocks represents a map between validator addresses and their
// missed blocks. // missed blocks.
MissedBlocks []ValidatorMissedBlocks `protobuf:"bytes,3,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks" yaml:"missed_blocks"` MissedBlocks []ValidatorMissedBlocks `protobuf:"bytes,3,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks"`
} }
func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) Reset() { *m = GenesisState{} }
@ -95,7 +95,7 @@ type SigningInfo struct {
// address is the validator address. // address is the validator address.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// validator_signing_info represents the signing info of this validator. // validator_signing_info represents the signing info of this validator.
ValidatorSigningInfo ValidatorSigningInfo `protobuf:"bytes,2,opt,name=validator_signing_info,json=validatorSigningInfo,proto3" json:"validator_signing_info" yaml:"validator_signing_info"` ValidatorSigningInfo ValidatorSigningInfo `protobuf:"bytes,2,opt,name=validator_signing_info,json=validatorSigningInfo,proto3" json:"validator_signing_info"`
} }
func (m *SigningInfo) Reset() { *m = SigningInfo{} } func (m *SigningInfo) Reset() { *m = SigningInfo{} }
@ -151,7 +151,7 @@ type ValidatorMissedBlocks struct {
// address is the validator address. // address is the validator address.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// missed_blocks is an array of missed blocks by the validator. // missed_blocks is an array of missed blocks by the validator.
MissedBlocks []MissedBlock `protobuf:"bytes,2,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks" yaml:"missed_blocks"` MissedBlocks []MissedBlock `protobuf:"bytes,2,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks"`
} }
func (m *ValidatorMissedBlocks) Reset() { *m = ValidatorMissedBlocks{} } func (m *ValidatorMissedBlocks) Reset() { *m = ValidatorMissedBlocks{} }
@ -268,36 +268,34 @@ func init() {
} }
var fileDescriptor_1923b9188b635394 = []byte{ var fileDescriptor_1923b9188b635394 = []byte{
// 450 bytes of a gzipped FileDescriptorProto // 420 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6e, 0xd3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0xc1, 0x6e, 0xd4, 0x30,
0x1c, 0xc7, 0xeb, 0x16, 0x0a, 0xb8, 0xdd, 0xc5, 0x0a, 0x23, 0x4c, 0x90, 0x4e, 0x11, 0x43, 0xbb, 0x10, 0x86, 0xe3, 0x2e, 0x2c, 0xe0, 0xb4, 0x17, 0x2b, 0x94, 0xd0, 0x43, 0x5a, 0xad, 0x00, 0xf5,
0x34, 0xd1, 0xca,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xfa, 0xb9, 0x0c, 0x5a, 0x1f, 0x87, 0x5c, 0xe8, 0xc3, 0xcf, 0x59, 0x34, 0x55, 0x41, 0x39, 0x34, 0x6b, 0xfd, 0xf4, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0xac, 0xc1, 0x45, 0xfe,
0xa5, 0xdb, 0x11, 0xf7, 0x33, 0x84, 0xfc, 0x28, 0x3e, 0xbe, 0xda, 0x32, 0x7d, 0x32, 0x63, 0x90, 0x71, 0x03, 0x00, 0x00,
0x75, 0xcd, 0x02, 0xbd, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0x71, 0x9a, 0x91, 0x04, 0xdb, 0x03,
0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -35,19 +35,19 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type ValidatorSigningInfo struct { type ValidatorSigningInfo struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// Height at which validator was first a candidate OR was unjailed // Height at which validator was first a candidate OR was unjailed
StartHeight int64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty" yaml:"start_height"` StartHeight int64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
// Index which is incremented each time the validator was a bonded // Index which is incremented each time the validator was a bonded
// in a block and may have signed a precommit or not. This in conjunction with the // in a block and may have signed a precommit or not. This in conjunction with the
// `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. // `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`.
IndexOffset int64 `protobuf:"varint,3,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty" yaml:"index_offset"` IndexOffset int64 `protobuf:"varint,3,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty"`
// Timestamp until which the validator is jailed due to liveness downtime. // Timestamp until which the validator is jailed due to liveness downtime.
JailedUntil time.Time `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3,stdtime" json:"jailed_until" yaml:"jailed_until"` JailedUntil time.Time `protobuf:"bytes,4,opt,name=jailed_until,json=jailedUntil,proto3,stdtime" json:"jailed_until"`
// Whether or not a validator has been tombstoned (killed out of validator set). It is set // Whether or not a validator has been tombstoned (killed out of validator set). It is set
// once the validator commits an equivocation or for any other configured misbehiavor. // once the validator commits an equivocation or for any other configured misbehiavor.
Tombstoned bool `protobuf:"varint,5,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"` Tombstoned bool `protobuf:"varint,5,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"`
// A counter kept to avoid unnecessary array reads. // A counter kept to avoid unnecessary array reads.
// Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. // Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`.
MissedBlocksCounter int64 `protobuf:"varint,6,opt,name=missed_blocks_counter,json=missedBlocksCounter,proto3" json:"missed_blocks_counter,omitempty" yaml:"missed_blocks_counter"` MissedBlocksCounter int64 `protobuf:"varint,6,opt,name=missed_blocks_counter,json=missedBlocksCounter,proto3" json:"missed_blocks_counter,omitempty"`
} }
func (m *ValidatorSigningInfo) Reset() { *m = ValidatorSigningInfo{} } func (m *ValidatorSigningInfo) Reset() { *m = ValidatorSigningInfo{} }
@ -126,11 +126,11 @@ func (m *ValidatorSigningInfo) GetMissedBlocksCounter() int64 {
// Params represents the parameters used for by the slashing module. // Params represents the parameters used for by the slashing module.
type Params struct { type Params struct {
SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty" yaml:"signed_blocks_window"` SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
MinSignedPerWindow github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_signed_per_window" yaml:"min_signed_per_window"` MinSignedPerWindow github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_signed_per_window"`
DowntimeJailDuration time.Duration `protobuf:"bytes,3,opt,name=downtime_jail_duration,json=downtimeJailDuration,proto3,stdduration" json:"downtime_jail_duration" yaml:"downtime_jail_duration"` DowntimeJailDuration time.Duration `protobuf:"bytes,3,opt,name=downtime_jail_duration,json=downtimeJailDuration,proto3,stdduration" json:"downtime_jail_duration"`
SlashFractionDoubleSign github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=slash_fraction_double_sign,json=slashFractionDoubleSign,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction_double_sign" yaml:"slash_fraction_double_sign"` SlashFractionDoubleSign github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=slash_fraction_double_sign,json=slashFractionDoubleSign,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction_double_sign"`
SlashFractionDowntime github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=slash_fraction_downtime,json=slashFractionDowntime,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction_downtime" yaml:"slash_fraction_downtime"` SlashFractionDowntime github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=slash_fraction_downtime,json=slashFractionDowntime,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction_downtime"`
} }
func (m *Params) Reset() { *m = Params{} } func (m *Params) Reset() { *m = Params{} }
@ -190,49 +190,43 @@ func init() {
} }
var fileDescriptor_1078e5d96a74cc52 = []byte{ var fileDescriptor_1078e5d96a74cc52 = []byte{
// 663 bytes of a gzipped FileDescriptorProto // 576 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xbf, 0x6f, 0xd3, 0x4e, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x3f, 0x6f, 0xd3, 0x40,
0x14, 0xcf, 0x7d, 0xd3, 0x6f, 0x29, 0x97, 0x4c, 0x6e, 0x4a, 0xdc, 0x00, 0x76, 0xf0, 0x50, 0x85, 0x1c, 0x8d, 0x1b, 0x08, 0xe1, 0x92, 0xe9, 0x48, 0x89, 0x9b, 0xc1, 0x0e, 0x1d, 0xaa, 0x2c, 0xb1,
0xa1, 0x8e, 0x5a, 0xb6, 0x6e, 0x98, 0x0a, 0xf1, 0x43, 0x82, 0xe2, 0x14, 0x90, 0x18, 0xb0, 0xce, 0x69, 0xd8, 0xd8, 0x08, 0x11, 0x7f, 0x07, 0x2a, 0x87, 0x3f, 0x82, 0xc5, 0x3a, 0xfb, 0xce, 0xce,
0xf1, 0xc5, 0x39, 0x6a, 0xdf, 0x45, 0xbe, 0x0b, 0x6d, 0xd9, 0xd8, 0x18, 0x3b, 0x76, 0xac, 0x98, 0x11, 0xfb, 0x2e, 0xf2, 0x9d, 0x49, 0xf9, 0x16, 0x1d, 0x3b, 0x76, 0xe4, 0x03, 0x20, 0xf1, 0x15,
0xf8, 0x03, 0xf8, 0x23, 0x3a, 0x56, 0x4c, 0x88, 0x21, 0xa0, 0x74, 0x61, 0xee, 0xc6, 0x86, 0x7c, 0xba, 0x20, 0x55, 0x4c, 0x88, 0xa1, 0xa0, 0x64, 0xe1, 0x63, 0x20, 0xdf, 0xd9, 0x2d, 0x6a, 0xa5,
0x77, 0x6e, 0xa3, 0x36, 0x45, 0xea, 0x94, 0xbc, 0xcf, 0xe7, 0xf3,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, 0x62, 0xc3, 0x30, 0xc1, 0xb2, 0x79, 0x79, 0x4c, 0xcf, 0xb5, 0x55, 0xfb, 0x30, 0xbc, 0xd2, 0x7c, 0xff, 0xfc, 0x93, 0x57, 0x39, 0x41, 0x43, 0x95,
0x55, 0xaf, 0x73, 0xe5, 0x21, 0xdc, 0xd1, 0x7b, 0xb8, 0xd4, 0xd9, 0xf1, 0xeb, 0x92, 0x7c, 0xa8, 0xfa, 0xe0, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0xbe, 0xf2, 0xba, 0x12, 0x04, 0x00, 0x00,
0xb9, 0x75, 0x49, 0xe5, 0x93, 0x31, 0x3e, 0x01, 0x58, 0xbf, 0x90, 0xa8, 0x5a, 0x97, 0xe7, 0x57,
0xf5, 0x36, 0xae, 0xdc, 0x8f, 0x75, 0x49, 0x3f, 0xca, 0xd6, 0xf1, 0x17, 0xce, 0x35, 0xa3, 0x70,
0xef, 0xe9, 0x97, 0xb1, 0x05, 0x0e, 0xc7, 0x16, 0x38, 0x1a, 0x5b, 0xe0, 0xd7, 0xd8, 0x02, 0x7b,
0xc7, 0x56, 0xe9, 0xe8, 0xd8, 0x2a, 0x7d, 0x3f, 0xb6, 0x4a, 0x6f, 0x96, 0xff, 0x59, 0x7e, 0xe7,
0xec, 0x9f, 0x50, 0x76, 0x12, 0xce, 0xca, 0xf5, 0xdd, 0xfb, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xad,
0x9c, 0x12, 0xda, 0x29, 0x05, 0x00, 0x00,
} }
func (this *ValidatorSigningInfo) Equal(that interface{}) bool { func (this *ValidatorSigningInfo) Equal(that interface{}) bool {

View File

@ -31,7 +31,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// MsgUnjail defines the Msg/Unjail request type // MsgUnjail defines the Msg/Unjail request type
type MsgUnjail struct { type MsgUnjail struct {
ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"address" yaml:"address"` ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"address"`
} }
func (m *MsgUnjail) Reset() { *m = MsgUnjail{} } func (m *MsgUnjail) Reset() { *m = MsgUnjail{} }
@ -112,26 +112,25 @@ func init() {
func init() { proto.RegisterFile("cosmos/slashing/v1beta1/tx.proto", fileDescriptor_3c5611c0c4a59d9d) } func init() { proto.RegisterFile("cosmos/slashing/v1beta1/tx.proto", fileDescriptor_3c5611c0c4a59d9d) }
var fileDescriptor_3c5611c0c4a59d9d = []byte{ var fileDescriptor_3c5611c0c4a59d9d = []byte{
// 292 bytes of a gzipped FileDescriptorProto // 279 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x48, 0xce, 0x2f, 0xce,
0xcd, 0x2f, 0xd6, 0x2f, 0xce, 0x49, 0x2c, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0x4c, 0x4a, 0xcd, 0x2f, 0xd6, 0x2f, 0xce, 0x49, 0x2c, 0xce, 0xc8, 0xcc, 0x4b, 0xd7, 0x2f, 0x33, 0x4c, 0x4a,
0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xa8, 0x2d, 0x49, 0x34, 0xd4, 0x2f, 0xa9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x87, 0xa8,
0xd0, 0x83, 0xa9, 0xd0, 0x83, 0xaa, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd1, 0x07, 0xd0, 0x83, 0xa9, 0xd0, 0x83, 0xaa, 0x90, 0x12, 0x49, 0xcf, 0x4f, 0xcf, 0x07, 0xab, 0xd1, 0x07,
0xb1, 0x20, 0xca, 0xa5, 0x24, 0x21, 0xca, 0xe3, 0x21, 0x12, 0x50, 0xbd, 0x60, 0x8e, 0x52, 0x31, 0xb1, 0x20, 0xca, 0xa5, 0x24, 0x21, 0xca, 0xe3, 0x21, 0x12, 0x50, 0xbd, 0x60, 0x8e, 0x52, 0x22,
0x17, 0xa7, 0x6f, 0x71, 0x7a, 0x68, 0x5e, 0x56, 0x62, 0x66, 0x8e, 0x50, 0x0c, 0x17, 0x5f, 0x59, 0x17, 0xa7, 0x6f, 0x71, 0x7a, 0x68, 0x5e, 0x56, 0x62, 0x66, 0x8e, 0x90, 0x17, 0x17, 0x5f, 0x59,
0x62, 0x4e, 0x66, 0x4a, 0x62, 0x49, 0x7e, 0x51, 0x7c, 0x62, 0x4a, 0x4a, 0x91, 0x04, 0xa3, 0x02, 0x62, 0x4e, 0x66, 0x4a, 0x62, 0x49, 0x7e, 0x51, 0x7c, 0x62, 0x4a, 0x4a, 0x91, 0x04, 0xa3, 0x02,
0xa3, 0x06, 0xa7, 0x93, 0xe9, 0xab, 0x7b, 0xf2, 0xec, 0x20, 0x7e, 0x6a, 0x71, 0xf1, 0xa7, 0x7b, 0xa3, 0x06, 0xa7, 0x93, 0xf2, 0xab, 0x7b, 0xf2, 0xec, 0x20, 0x7e, 0x6a, 0x71, 0xf1, 0xa5, 0x2d,
0xf2, 0x7c, 0x95, 0x89, 0xb9, 0x39, 0x56, 0x4a, 0x50, 0x01, 0xa5, 0x4b, 0x5b, 0x74, 0x45, 0xa0, 0xba, 0x22, 0x50, 0x13, 0x1c, 0x21, 0x22, 0xc1, 0x25, 0x45, 0x99, 0x79, 0xe9, 0x41, 0xbc, 0x70,
0x66, 0x3a, 0x42, 0x84, 0x82, 0x4b, 0x8a, 0x32, 0xf3, 0xd2, 0x83, 0x78, 0xe1, 0x86, 0x81, 0xc4, 0xad, 0x20, 0x71, 0x2b, 0x8e, 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x9c, 0x9f, 0x0b, 0xf3, 0x73, 0xa1, 0xe1, 0x01, 0xa5, 0x74, 0x8b, 0x53, 0xb2, 0xf5, 0x2b, 0x10, 0x41, 0x5f, 0x52,
0x0d, 0x21, 0x28, 0xa5, 0x5b, 0x9c, 0x92, 0xad, 0x5f, 0x81, 0x88, 0x8c, 0x92, 0xca, 0x82, 0xd4, 0x59, 0x90, 0x5a, 0x9c, 0xc4, 0x06, 0x0e, 0x2c, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x9f,
0xe2, 0x24, 0x36, 0x70, 0xf0, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xa7, 0x21, 0xb9, 0x58, 0x32, 0xcd, 0x3e, 0x9a, 0x01, 0x00, 0x00,
0xac, 0x01, 0x00, 0x00,
} }
func (this *MsgUnjail) Equal(that interface{}) bool { func (this *MsgUnjail) Equal(that interface{}) bool {

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"time" "time"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )

View File

@ -3,7 +3,7 @@ package types
import ( import (
"time" "time"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"
) )

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"

View File

@ -31,16 +31,16 @@ type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// last_total_power tracks the total amounts of bonded tokens recorded during // last_total_power tracks the total amounts of bonded tokens recorded during
// the previous end block. // the previous end block.
LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"` LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power"`
// last_validator_powers is a special index that provides a historical list // last_validator_powers is a special index that provides a historical list
// of the last-block's bonded validators. // of the last-block's bonded validators.
LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers" yaml:"last_validator_powers"` LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"`
// delegations defines the validator set at genesis. // delegations defines the validator set at genesis.
Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"` Validators []Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators"`
// delegations defines the delegations active at genesis. // delegations defines the delegations active at genesis.
Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"` Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
// unbonding_delegations defines the unbonding delegations active at genesis. // unbonding_delegations defines the unbonding delegations active at genesis.
UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations" yaml:"unbonding_delegations"` UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
// redelegations defines the redelegations active at genesis. // redelegations defines the redelegations active at genesis.
Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"` Redelegations []Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations"`
Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"` Exported bool `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
@ -179,40 +179,38 @@ func init() {
} }
var fileDescriptor_9b3dec8894f2831b = []byte{ var fileDescriptor_9b3dec8894f2831b = []byte{
// 519 bytes of a gzipped FileDescriptorProto // 483 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xc1, 0x6e, 0xd3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0x41, 0x6e, 0xd3, 0x40,
0x18, 0xc7, 0x63, 0xba, 0x76, 0xc5, 0x1d, 0x08, 0x99, 0x0e, 0x42, 0x85, 0x92, 0x12, 0x55, 0xa8, 0x14, 0x86, 0x6d, 0x92, 0xa6, 0x61, 0x52, 0x10, 0x1a, 0x52, 0x64, 0xb2, 0x70, 0x42, 0x54, 0xa1,
0x02, 0x96, 0x68, 0xe5, 0x36, 0x71, 0x21, 0x42, 0x4c, 0x43, 0x1c, 0xaa, 0x0c, 0x38, 0x70, 0xa9, 0x08, 0xa8, 0xad, 0x86, 0x1d, 0x62, 0x43, 0x84, 0xa8, 0x40, 0x2c, 0x22, 0x17, 0x10, 0x62, 0x13,
0xdc, 0xc5, 0xca, 0xa2, 0xa5, 0x71, 0x14, 0xbb, 0x63, 0xbb, 0x23, 0xc4, 0x91, 0x47, 0xd8, 0x43, 0x4d, 0xea, 0xc1, 0xb5, 0xea, 0x78, 0xac, 0x79, 0x2f, 0xa5, 0xdc, 0x80, 0x25, 0x47, 0xe8, 0x21,
0xf0, 0x10, 0x3b, 0x4e, 0x88, 0x03, 0xe2, 0x50, 0xa1, 0xf6, 0xc2, 0x79, 0x4f, 0x80, 0x62, 0x3b, 0x38, 0x44, 0x97, 0x15, 0x2b, 0x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fb, 0xc7, 0xc2, 0xb5, 0x3f, 0x2f, 0x5d, 0xeb, 0x62,
0x07, 0x51, 0x1b, 0xd6, 0xff, 0x8e, 0x71, 0xcd, 0x93, 0x8b, 0x9d, 0xe6, 0xe7, 0x33, 0x53, 0xfb, 0xe9, 0x5a, 0xdf, 0x96, 0xae, 0xf5, 0xee, 0xc1, 0x7f, 0x97, 0xf1, 0xb4, 0x78, 0x56, 0x6a, 0x2d,
0x7d, 0x66, 0x6a, 0xee, 0xcb, 0xf3, 0xb9, 0x01, 0x2e, 0xe6, 0x06, 0xf8, 0x35, 0x37, 0xc0, 0x97, 0xa7, 0x0d, 0xf5, 0x64, 0x1e, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x73, 0xbd, 0x93, 0xb3, 0xc9,
0x85, 0xa1, 0x5d, 0x2c, 0x0c, 0xed, 0xc7, 0xc2, 0xd0, 0xde, 0x3f, 0xf9, 0xef, 0xa4, 0x9f, 0x14, 0x03, 0x00, 0x00,
0x77, 0x56, 0xcc, 0xfc, 0xb8, 0x21, 0xee, 0xe3, 0xd3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x89,
0xb3, 0xaa, 0xf3, 0x26, 0x04, 0x00, 0x00,
} }
func (m *GenesisState) Marshal() (dAtA []byte, err error) { func (m *GenesisState) Marshal() (dAtA []byte, err error) {

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
yaml "gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types"

File diff suppressed because it is too large Load Diff

View File

@ -40,9 +40,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type MsgCreateValidator struct { type MsgCreateValidator struct {
Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
Commission CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` Commission CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"`
MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation"`
DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
Pubkey *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Pubkey *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Value types1.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"` Value types1.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"`
} }
@ -120,13 +120,13 @@ var xxx_messageInfo_MsgCreateValidatorResponse proto.InternalMessageInfo
// MsgEditValidator defines a SDK message for editing an existing validator. // MsgEditValidator defines a SDK message for editing an existing validator.
type MsgEditValidator struct { type MsgEditValidator struct {
Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"address"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
// We pass a reference to the new commission rate and min self delegation as // We pass a reference to the new commission rate and min self delegation as
// it's not mandatory to update. If not updated, the deserialized rate will be // it's not mandatory to update. If not updated, the deserialized rate will be
// zero with no way to distinguish if an update was intended. // zero with no way to distinguish if an update was intended.
// REF: #2373 // REF: #2373
CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission_rate,omitempty" yaml:"commission_rate"` CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission_rate,omitempty"`
MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty" yaml:"min_self_delegation"` MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty"`
} }
func (m *MsgEditValidator) Reset() { *m = MsgEditValidator{} } func (m *MsgEditValidator) Reset() { *m = MsgEditValidator{} }
@ -202,8 +202,8 @@ var xxx_messageInfo_MsgEditValidatorResponse proto.InternalMessageInfo
// MsgDelegate defines a SDK message for performing a delegation of coins // MsgDelegate defines a SDK message for performing a delegation of coins
// from a delegator to a validator. // from a delegator to a validator.
type MsgDelegate struct { type MsgDelegate struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
} }
@ -280,9 +280,9 @@ var xxx_messageInfo_MsgDelegateResponse proto.InternalMessageInfo
// MsgBeginRedelegate defines a SDK message for performing a redelegation // MsgBeginRedelegate defines a SDK message for performing a redelegation
// of coins from a delegator and source validator to a destination validator. // of coins from a delegator and source validator to a destination validator.
type MsgBeginRedelegate struct { type MsgBeginRedelegate struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty" yaml:"validator_src_address"` ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty" yaml:"validator_dst_address"` ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
Amount types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"` Amount types1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
} }
@ -367,8 +367,8 @@ func (m *MsgBeginRedelegateResponse) GetCompletionTime() time.Time {
// MsgUndelegate defines a SDK message for performing an undelegation from a // MsgUndelegate defines a SDK message for performing an undelegation from a
// delegate and a validator. // delegate and a validator.
type MsgUndelegate struct { type MsgUndelegate struct {
DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` Amount types1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
} }
@ -466,63 +466,59 @@ func init() {
func init() { proto.RegisterFile("cosmos/staking/v1beta1/tx.proto", fileDescriptor_0926ef28816b35ab) } func init() { proto.RegisterFile("cosmos/staking/v1beta1/tx.proto", fileDescriptor_0926ef28816b35ab) }
var fileDescriptor_0926ef28816b35ab = []byte{ var fileDescriptor_0926ef28816b35ab = []byte{
// 883 bytes of a gzipped FileDescriptorProto // 822 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcb, 0x6a, 0xc3, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0xcd, 0x4e, 0xdb, 0x4a,
0x14, 0xb5, 0x6c, 0xc7, 0x4d, 0x27, 0xe4, 0xa5, 0x3c, 0x70, 0x44, 0xb0, 0x82, 0xd3, 0x47, 0x48, 0x14, 0x8e, 0x43, 0xc8, 0xe5, 0x0e, 0xe2, 0x02, 0x06, 0xae, 0x82, 0x75, 0x95, 0xa0, 0x70, 0x7f,
0x1b, 0xb9, 0x49, 0x5b, 0x5a, 0xb2, 0x8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d, 0x32, 0x16, 0xfb, 0x1a, 0x95, 0xad, 0xd3, 0xab, 0xbc, 0x70, 0x76, 0x95, 0x17, 0x2e, 0xaf, 0xf2, 0xc2, 0xd1, 0x75, 0x3e,
0xcc, 0xc6, 0xc3, 0x79, 0x7b, 0xc2, 0xee, 0x08, 0x24, 0xbd, 0x37, 0x05, 0x28, 0x66, 0xbf, 0x02, 0x75, 0x76, 0x9d, 0x4f, 0x7d, 0xbc, 0xce, 0xa7, 0x5e, 0xfd, 0x3f, 0xf2, 0x49, 0x3a, 0xe4, 0xff,
0x8b, 0xe9, 0x51, 0x36, 0xc9, 0xbd, 0x14, 0x76, 0xa2, 0x7b, 0xe3, 0x5a, 0x51, 0x03, 0x20, 0xd1, 0x53, 0xd2, 0xc7, 0x49, 0xcb, 0x52, 0x4b, 0xde, 0xff, 0x16, 0x00, 0x00, 0xff, 0xff, 0x9a, 0xd5,
0x37, 0x6f, 0x4f, 0x60, 0xe8, 0xc3, 0xa4, 0xbd, 0xa9, 0x60, 0x91, 0x46, 0xf5, 0xe4, 0xfe, 0xb1, 0xae, 0x16, 0x38, 0x0b, 0x00, 0x00,
0x24, 0x3c, 0x3c, 0x96, 0x84, 0xbf, 0x1f, 0x4b, 0xc2, 0xed, 0x53, 0x29, 0xf3, 0xf0, 0x54, 0xca,
0xfc, 0xf1, 0x54, 0xca, 0x5c, 0xbe, 0x3f, 0xf1, 0xf2, 0xbd, 0x89, 0xbf, 0xe0, 0xd9, 0x35, 0xac,
0x15, 0x58, 0x49, 0x7e, 0xf8, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x6d, 0xbb, 0x83, 0xa6,
0x0c, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.

View File

@ -9,7 +9,7 @@ import (
abci "github.com/tendermint/tendermint/abci/types" abci "github.com/tendermint/tendermint/abci/types"
tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
"gopkg.in/yaml.v2" "sigs.k8s.io/yaml"
"github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types" codectypes "github.com/cosmos/cosmos-sdk/codec/types"
@ -62,7 +62,16 @@ func NewValidator(operator sdk.ValAddress, pubKey cryptotypes.PubKey, descriptio
// String implements the Stringer interface for a Validator object. // String implements the Stringer interface for a Validator object.
func (v Validator) String() string { func (v Validator) String() string {
out, _ := yaml.Marshal(v) bz, err := codec.ProtoMarshalJSON(&v, nil)
if err != nil {
panic(err)
}
out, err := yaml.JSONToYAML(bz)
if err != nil {
panic(err)
}
return string(out) return string(out)
} }

View File

@ -51,7 +51,7 @@ type Plan struct {
// Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been // Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
// moved to the IBC module in the sub module 02-client. // moved to the IBC module in the sub module 02-client.
// If this field is not empty, an error will be thrown. // If this field is not empty, an error will be thrown.
UpgradedClientState *types.Any `protobuf:"bytes,5,opt,name=upgraded_client_state,json=upgradedClientState,proto3" json:"upgraded_client_state,omitempty" yaml:"upgraded_client_state"` // Deprecated: Do not use. UpgradedClientState *types.Any `protobuf:"bytes,5,opt,name=upgraded_client_state,json=upgradedClientState,proto3" json:"upgraded_client_state,omitempty"` // Deprecated: Do not use.
} }
func (m *Plan) Reset() { *m = Plan{} } func (m *Plan) Reset() { *m = Plan{} }
@ -218,36 +218,36 @@ func init() {
} }
var fileDescriptor_ccf2a7d4d7b48dca = []byte{ var fileDescriptor_ccf2a7d4d7b48dca = []byte{
// 462 bytes of a gzipped FileDescriptorProto // 450 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x3d, 0x6f, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 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02, 0x56, 0x68, 0xfc, 0x62, 0xf1, 0x33,
0xf9, 0x69, 0xeb, 0x5a, 0x22, 0x60, 0x88, 0x46, 0xaf, 0x16, 0x3f, 0x42, 0x6f, 0xb1, 0x0a, 0xc1, 0x0a, 0x16, 0xcb, 0x08, 0x5c, 0x2f, 0x23, 0xf0, 0x63, 0x19, 0x81, 0xcb, 0x55, 0x14, 0x5c, 0xaf,
0xf5, 0x2a, 0x04, 0xdf, 0x57, 0x21, 0xb8, 0x5c, 0x87, 0xde, 0xf5, 0x3a, 0xf4, 0xbe, 0xae, 0x43, 0xa2, 0xe0, 0xcb, 0x2a, 0x0a, 0xde, 0x3d, 0x2a, 0xb8, 0x99, 0x35, 0x13, 0x92, 0xa9, 0x32, 0x69,
0xef, 0xfd, 0x93, 0x82, 0xe9, 0xe9, 0x6c, 0x8c, 0x33, 0x59, 0x26, 0xcd, 0x7f, 0xef, 0x3e, 0x4f, 0xef, 0xda, 0x7f, 0x1e, 0xeb, 0xfc, 0x7d, 0xf2, 0xf1, 0xcf, 0x91, 0x9b, 0x79, 0xc5, 0xf4, 0x64,
0x55, 0xfe, 0x21, 0xf9, 0xf4, 0xf7, 0x11, 0xe8, 0x79, 0x45, 0xd5, 0x78, 0xcf, 0x9e, 0xf7, 0xd9, 0xd7, 0xad, 0xef, 0xc9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x2b, 0xd1, 0x8c, 0x03, 0x03,
0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x67, 0xe1, 0x07, 0x23, 0x03, 0x00, 0x00, 0x00, 0x00,
} }
func (this *Plan) Equal(that interface{}) bool { func (this *Plan) Equal(that interface{}) bool {