Prathamesh Musale
aed2d6d4c6
- Rename RPC method to reserve authority from `ReserveName` to `ReserveAuthority` and `GetBondsModuleBalance` to `GetBondModuleBalance` - Run lint formatter - Fix proto lint errors and regenerate proto bindings Reviewed-on: deep-stack/laconic2d#17 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
34 lines
910 B
Protocol Buffer
34 lines
910 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cerc.bond.v1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
option go_package = "git.vdb.to/cerc-io/laconic2d/x/bond";
|
|
|
|
// Params defines the parameters of the bond module.
|
|
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;
|
|
|
|
// owner of the bond
|
|
string owner = 2;
|
|
|
|
// 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\""
|
|
];
|
|
}
|