mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-10-04 08:25:18 +00:00
ae181604ff
* Add basic earn types and interfaces * Add VaultStrategy type * Update params with allowedVaults, deposit/withdraw msgs * Fill in Deposit method, add keeper methods * Add testutil, params, codec * Add withdraw * emit vault events * Implement vault viewer methods * Update doc comments, strategies * Add earn cli query/tx commands * Add successfull balance withdraw tests * Add ukava vault to dev genesis * Add vault keeper method doc comments * Update stablecoin strategy to only accept usdx * Vault state tests * VaultTotalSupplied tests * msg server test
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 "kava/earn/v1beta1/vault.proto";
|
|
import "kava/earn/v1beta1/params.proto";
|
|
import "gogoproto/gogo.proto";
|
|
|
|
// GenesisState defines the swap 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];
|
|
}
|