mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
82e2f26e14
* Add query methods * Add TotalDeposited rpc query * All accounts and all denoms query wip * Add query deposits * Remove IsDenomSupported strategy method This is not necessary and is already set in params allowed vaults * Add Vaults, TotalDeposited queries * Deposits query tests and fixes * proto lints * Add earn swagger docs * Add cli query cmds * Update init-new-chain.sh with usdx strategy and funds * Add denom url query path for vaults * Return a list of coins for each depositor instead of multiple deposit entries
20 lines
772 B
Protocol Buffer
20 lines
772 B
Protocol Buffer
syntax = "proto3";
|
|
package kava.earn.v1beta1;
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/earn/types";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "kava/earn/v1beta1/params.proto";
|
|
import "kava/earn/v1beta1/vault.proto";
|
|
|
|
// GenesisState defines the earn module's genesis state.
|
|
message GenesisState {
|
|
// params defines all the paramaters related to earn
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
// vault_records defines the available vaults
|
|
repeated VaultRecord vault_records = 2 [(gogoproto.castrepeated) = "VaultRecords", (gogoproto.nullable) = false];
|
|
// share_records defines the owned shares of each vault
|
|
repeated VaultShareRecord vault_share_records = 3
|
|
[(gogoproto.castrepeated) = "VaultShareRecords", (gogoproto.nullable) = false];
|
|
}
|