2024-02-01 10:58:34 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package cerc.bond.v1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
|
2024-02-15 07:08:32 +00:00
|
|
|
option go_package = "git.vdb.to/cerc-io/laconic2d/x/bond";
|
|
|
|
|
2024-02-01 10:58:34 +00:00
|
|
|
// Params defines the parameters of the bond module.
|
|
|
|
message Params {
|
|
|
|
// max_bond_amount is maximum amount to bond
|
2024-02-02 09:39:10 +00:00
|
|
|
cosmos.base.v1beta1.Coin max_bond_amount = 1 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.moretags) = "json:\"max_bond_amount\" yaml:\"max_bond_amount\""
|
|
|
|
];
|
2024-02-01 10:58:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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 [
|
2024-03-07 11:25:15 +00:00
|
|
|
(gogoproto.nullable) = false,
|
2024-02-01 10:58:34 +00:00
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
2024-03-07 11:25:15 +00:00
|
|
|
(gogoproto.moretags) = "json:\"balance\" yaml:\"balance\""
|
2024-02-01 10:58:34 +00:00
|
|
|
];
|
|
|
|
}
|