registry-sdk/proto/cerc/bond/v1/bond.proto

34 lines
909 B
Protocol Buffer
Raw Permalink Normal View History

2022-03-31 10:00:02 +00:00
syntax = "proto3";
package cerc.bond.v1;
2022-03-31 10:00:02 +00:00
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
option go_package = "git.vdb.to/cerc-io/laconicd/x/bond";
// Params defines the parameters of the bond module.
2022-03-31 10:00:02 +00:00
message Params {
// max_bond_amount is maximum amount to bond
cosmos.base.v1beta1.Coin max_bond_amount = 1 [
(gogoproto.nullable) = false,
(gogoproto.moretags) = "json:\"max_bond_amount\" yaml:\"max_bond_amount\""
];
}
// Bond represents funds deposited by an account for record rent payments.
message Bond {
// id is unique identifier of the bond
string id = 1;
2022-03-31 10:00:02 +00:00
// owner of the bond
string owner = 2;
2022-03-31 10:00:02 +00:00
// balance of the bond
repeated cosmos.base.v1beta1.Coin balance = 3 [
(gogoproto.nullable) = false,
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
2022-03-31 10:00:02 +00:00
];
}