mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +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
19 lines
524 B
Protocol Buffer
19 lines
524 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 "cosmos/base/v1beta1/coin.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
enum StrategyType {
|
|
option (gogoproto.goproto_enum_prefix) = false;
|
|
|
|
STRATEGY_TYPE_UNKNOWN = 0;
|
|
STRATEGY_TYPE_KAVA_STAKERS = 1;
|
|
// USDC / BUSD vaults use the same strategy but with the denom set in VaultRecord
|
|
STRATEGY_TYPE_STABLECOIN_STAKERS = 2;
|
|
STRATEGY_TYPE_KAVA_FOUNDATION = 3;
|
|
}
|