0g-chain/proto/kava/swap/v1beta1/genesis.proto
2024-08-03 17:51:56 +08:00

24 lines
727 B
Protocol Buffer

syntax = "proto3";
package kava.swap.v1beta1;
import "gogoproto/gogo.proto";
import "kava/swap/v1beta1/swap.proto";
option go_package = "github.com/0glabs/0g-chain/x/swap/types";
// GenesisState defines the swap module's genesis state.
message GenesisState {
// params defines all the parameters related to swap
Params params = 1 [(gogoproto.nullable) = false];
// pool_records defines the available pools
repeated PoolRecord pool_records = 2 [
(gogoproto.castrepeated) = "PoolRecords",
(gogoproto.nullable) = false
];
// share_records defines the owned shares of each pool
repeated ShareRecord share_records = 3 [
(gogoproto.castrepeated) = "ShareRecords",
(gogoproto.nullable) = false
];
}