v1

package
v0.2.0-b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "bme"

	// StoreKey is the store key string for bme
	StoreKey = ModuleName

	// RouterKey is the message route for bme
	RouterKey = ModuleName
)
View Source
const (
	DefaultOracleOutlierThresholdBps   = uint32(150)
	DefaultSettlementEpochBlocks       = int64(1)
	DefaultCircuitBreakerWarnThreshold = uint32(9500)
	DefaultCircuitBreakerHaltThreshold = uint32(9000)
	DefaultMintSpreadBps               = uint32(25)
	DefaultSettleSpreadBps             = uint32(0)
	DefaultMinRunwayBlocks             = int64(7 * ((time.Hour * 24) / (6 * time.Second)))
	DefaultEnabled                     = true
)

Variables

View Source
var (
	ErrInvalidParams          = errors.Register(ModuleName, 2, "invalid parameters")
	ErrUnauthorized           = errors.Register(ModuleName, 3, "unauthorized")
	ErrModuleDisabled         = errors.Register(ModuleName, 4, "module is disabled")
	ErrOracleUnhealthy        = errors.Register(ModuleName, 5, "oracle is unhealthy")
	ErrCircuitBreakerActive   = errors.Register(ModuleName, 6, "circuit breaker is active")
	ErrInsufficientVaultFunds = errors.Register(ModuleName, 7, "insufficient vault funds")
	ErrInvalidAmount          = errors.Register(ModuleName, 8, "invalid amount")
	ErrInvalidDenom           = errors.Register(ModuleName, 9, "invalid denomination")
	ErrInvalidAddress         = errors.Register(ModuleName, 10, "invalid address")
	ErrInvalidSender          = errors.Register(ModuleName, 11, "invalid sender")
	ErrZeroPrice              = errors.Register(ModuleName, 12, "oracle price is zero")
	ErrRecordExists           = errors.Register(ModuleName, 13, "ledger record already exists")
	ErrMintFailed             = errors.Register(ModuleName, 14, "failed to mint tokens")
	ErrBurnFailed             = errors.Register(ModuleName, 15, "failed to burn tokens")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var CircuitBreakerStatus_name = map[int32]string{
	0: "CIRCUIT_BREAKER_STATUS_UNSPECIFIED",
	1: "CIRCUIT_BREAKER_STATUS_HEALTHY",
	2: "CIRCUIT_BREAKER_STATUS_WARNING",
	3: "CIRCUIT_BREAKER_STATUS_HALT",
}
View Source
var CircuitBreakerStatus_value = map[string]int32{
	"CIRCUIT_BREAKER_STATUS_UNSPECIFIED": 0,
	"CIRCUIT_BREAKER_STATUS_HEALTHY":     1,
	"CIRCUIT_BREAKER_STATUS_WARNING":     2,
	"CIRCUIT_BREAKER_STATUS_HALT":        3,
}
View Source
var DefaultOracleTWAPWindow = time.Hour
View Source
var (
	// ModuleCdc references the global bme module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to the bme module and
	// defined at the application level.
	//
	// Deprecated: ModuleCdc use is deprecated
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the bme module interfaces types with the interface registry

func RegisterLegacyAminoCodec deprecated

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec register concrete types on codec

Deprecated: RegisterLegacyAminoCodec is deprecated

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BMRecord

type BMRecord struct {
	// burned_from source address of the tokens burned
	BurnedFrom string `protobuf:"bytes,1,opt,name=burned_from,json=burnedFrom,proto3" json:"burned_from" yaml:"burned_from"`
	// minted_to destination address of the tokens minted
	MintedTo string `protobuf:"bytes,2,opt,name=minted_to,json=mintedTo,proto3" json:"minted_to" yaml:"minted_to"`
	// module is module account performing burn
	Burner string `protobuf:"bytes,3,opt,name=burner,proto3" json:"burner" yaml:"burner"`
	// module is module account performing mint
	Minter string `protobuf:"bytes,4,opt,name=minter,proto3" json:"minter" yaml:"minter"`
	// burned is the coin burned at price
	Burned CoinPrice `protobuf:"bytes,5,opt,name=burned,proto3" json:"burned" yaml:"burned"`
	// minted is coin minted at price
	Minted CoinPrice `protobuf:"bytes,6,opt,name=minted,proto3" json:"minted" yaml:"minted"`
}

BMRecord stores information of burn/mint event of token A burn to mint token B

func (*BMRecord) Descriptor

func (*BMRecord) Descriptor() ([]byte, []int)

func (*BMRecord) GetBurned

func (m *BMRecord) GetBurned() CoinPrice

func (*BMRecord) GetBurnedFrom

func (m *BMRecord) GetBurnedFrom() string

func (*BMRecord) GetBurner

func (m *BMRecord) GetBurner() string

func (*BMRecord) GetMinted

func (m *BMRecord) GetMinted() CoinPrice

func (*BMRecord) GetMintedTo

func (m *BMRecord) GetMintedTo() string

func (*BMRecord) GetMinter

func (m *BMRecord) GetMinter() string

func (*BMRecord) Marshal

func (m *BMRecord) Marshal() (dAtA []byte, err error)

func (*BMRecord) MarshalTo

func (m *BMRecord) MarshalTo(dAtA []byte) (int, error)

func (*BMRecord) MarshalToSizedBuffer

func (m *BMRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BMRecord) ProtoMessage

func (*BMRecord) ProtoMessage()

func (*BMRecord) Reset

func (m *BMRecord) Reset()

func (*BMRecord) Size

func (m *BMRecord) Size() (n int)

func (*BMRecord) String

func (m *BMRecord) String() string

func (*BMRecord) ToEvent

func (m *BMRecord) ToEvent() *EventBMRecord

ToEvent this function exists bc protobuf does not support typedefs

func (*BMRecord) Unmarshal

func (m *BMRecord) Unmarshal(dAtA []byte) error

func (*BMRecord) XXX_DiscardUnknown

func (m *BMRecord) XXX_DiscardUnknown()

func (*BMRecord) XXX_Marshal

func (m *BMRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BMRecord) XXX_Merge

func (m *BMRecord) XXX_Merge(src proto.Message)

func (*BMRecord) XXX_Size

func (m *BMRecord) XXX_Size() int

func (*BMRecord) XXX_Unmarshal

func (m *BMRecord) XXX_Unmarshal(b []byte) error

type BurnMintPair

type BurnMintPair struct {
	// burned is the coin burned
	Burned CoinPrice `protobuf:"bytes,1,opt,name=burned,proto3" json:"burned" yaml:"burned"`
	// minted is coin minted
	Minted CoinPrice `protobuf:"bytes,3,opt,name=minted,proto3" json:"minted" yaml:"minted"`
}

BurnMintPair represents a pair of burn and mint operations with their respective prices

func (*BurnMintPair) Descriptor

func (*BurnMintPair) Descriptor() ([]byte, []int)

func (*BurnMintPair) GetBurned

func (m *BurnMintPair) GetBurned() CoinPrice

func (*BurnMintPair) GetMinted

func (m *BurnMintPair) GetMinted() CoinPrice

func (*BurnMintPair) Marshal

func (m *BurnMintPair) Marshal() (dAtA []byte, err error)

func (*BurnMintPair) MarshalTo

func (m *BurnMintPair) MarshalTo(dAtA []byte) (int, error)

func (*BurnMintPair) MarshalToSizedBuffer

func (m *BurnMintPair) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BurnMintPair) ProtoMessage

func (*BurnMintPair) ProtoMessage()

func (*BurnMintPair) Reset

func (m *BurnMintPair) Reset()

func (*BurnMintPair) Size

func (m *BurnMintPair) Size() (n int)

func (*BurnMintPair) String

func (m *BurnMintPair) String() string

func (*BurnMintPair) Unmarshal

func (m *BurnMintPair) Unmarshal(dAtA []byte) error

func (*BurnMintPair) XXX_DiscardUnknown

func (m *BurnMintPair) XXX_DiscardUnknown()

func (*BurnMintPair) XXX_Marshal

func (m *BurnMintPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BurnMintPair) XXX_Merge

func (m *BurnMintPair) XXX_Merge(src proto.Message)

func (*BurnMintPair) XXX_Size

func (m *BurnMintPair) XXX_Size() int

func (*BurnMintPair) XXX_Unmarshal

func (m *BurnMintPair) XXX_Unmarshal(b []byte) error

type CircuitBreakerStatus

type CircuitBreakerStatus int32

CircuitBreakerStatus indicates the current state of circuit breakers

const (
	// CIRCUIT_BREAKER_STATUS_UNSPECIFIED is the default value
	CircuitBreakerStatusUnspecified CircuitBreakerStatus = 0
	// CIRCUIT_BREAKER_STATUS_HEALTHY indicates normal operation (CR > warn threshold)
	CircuitBreakerStatusHealthy CircuitBreakerStatus = 1
	// CIRCUIT_BREAKER_STATUS_WARNING indicates CR is below warning threshold
	CircuitBreakerStatusWarning CircuitBreakerStatus = 2
	// CIRCUIT_BREAKER_STATUS_HALT indicates CR is below halt threshold, mints paused
	CircuitBreakerStatusHalt CircuitBreakerStatus = 3
)

func (CircuitBreakerStatus) EnumDescriptor

func (CircuitBreakerStatus) EnumDescriptor() ([]byte, []int)

func (CircuitBreakerStatus) String

func (x CircuitBreakerStatus) String() string

type CoinPrice

type CoinPrice struct {
	// coin is the token amount
	Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin" yaml:"coin"`
	// price (at oracle) of the coin at burn/mint event
	Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price" yaml:"price"`
}

CoinPrice represents a coin amount with its associated oracle price at a specific point in time

func (*CoinPrice) Descriptor

func (*CoinPrice) Descriptor() ([]byte, []int)

func (*CoinPrice) GetCoin

func (m *CoinPrice) GetCoin() types.Coin

func (*CoinPrice) Marshal

func (m *CoinPrice) Marshal() (dAtA []byte, err error)

func (*CoinPrice) MarshalTo

func (m *CoinPrice) MarshalTo(dAtA []byte) (int, error)

func (*CoinPrice) MarshalToSizedBuffer

func (m *CoinPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CoinPrice) ProtoMessage

func (*CoinPrice) ProtoMessage()

func (*CoinPrice) Reset

func (m *CoinPrice) Reset()

func (*CoinPrice) Size

func (m *CoinPrice) Size() (n int)

func (*CoinPrice) String

func (m *CoinPrice) String() string

func (*CoinPrice) Unmarshal

func (m *CoinPrice) Unmarshal(dAtA []byte) error

func (*CoinPrice) XXX_DiscardUnknown

func (m *CoinPrice) XXX_DiscardUnknown()

func (*CoinPrice) XXX_Marshal

func (m *CoinPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CoinPrice) XXX_Merge

func (m *CoinPrice) XXX_Merge(src proto.Message)

func (*CoinPrice) XXX_Size

func (m *CoinPrice) XXX_Size() int

func (*CoinPrice) XXX_Unmarshal

func (m *CoinPrice) XXX_Unmarshal(b []byte) error

type CollateralRatio

type CollateralRatio struct {
	// ratio is CR = (VaultAKT * Price) / OutstandingACT
	Ratio cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=ratio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"ratio"`
	// status indicates the current circuit breaker status
	Status CircuitBreakerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=akash.bme.v1.CircuitBreakerStatus" json:"status,omitempty"`
	// reference_price is the price used to calculate CR
	ReferencePrice cosmossdk_io_math.LegacyDec `` /* 132-byte string literal not displayed */
}

CollateralRatio represents the current collateral ratio

func (*CollateralRatio) Descriptor

func (*CollateralRatio) Descriptor() ([]byte, []int)

func (*CollateralRatio) GetStatus

func (m *CollateralRatio) GetStatus() CircuitBreakerStatus

func (*CollateralRatio) Marshal

func (m *CollateralRatio) Marshal() (dAtA []byte, err error)

func (*CollateralRatio) MarshalTo

func (m *CollateralRatio) MarshalTo(dAtA []byte) (int, error)

func (*CollateralRatio) MarshalToSizedBuffer

func (m *CollateralRatio) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CollateralRatio) ProtoMessage

func (*CollateralRatio) ProtoMessage()

func (*CollateralRatio) Reset

func (m *CollateralRatio) Reset()

func (*CollateralRatio) Size

func (m *CollateralRatio) Size() (n int)

func (*CollateralRatio) String

func (m *CollateralRatio) String() string

func (*CollateralRatio) Unmarshal

func (m *CollateralRatio) Unmarshal(dAtA []byte) error

func (*CollateralRatio) XXX_DiscardUnknown

func (m *CollateralRatio) XXX_DiscardUnknown()

func (*CollateralRatio) XXX_Marshal

func (m *CollateralRatio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CollateralRatio) XXX_Merge

func (m *CollateralRatio) XXX_Merge(src proto.Message)

func (*CollateralRatio) XXX_Size

func (m *CollateralRatio) XXX_Size() int

func (*CollateralRatio) XXX_Unmarshal

func (m *CollateralRatio) XXX_Unmarshal(b []byte) error

type EventBMRecord

type EventBMRecord struct {
	// burned_from source address of the tokens burned
	BurnedFrom string `protobuf:"bytes,1,opt,name=burned_from,json=burnedFrom,proto3" json:"burned_from" yaml:"burned_from"`
	// minted_to destination address of the tokens minted
	MintedTo string `protobuf:"bytes,2,opt,name=minted_to,json=mintedTo,proto3" json:"minted_to" yaml:"minted_to"`
	// module is module account performing burn
	Burner string `protobuf:"bytes,3,opt,name=burner,proto3" json:"burner" yaml:"burner"`
	// module is module account performing mint
	Minter string `protobuf:"bytes,4,opt,name=minter,proto3" json:"minter" yaml:"minter"`
	// burned is the coin burned at price
	Burned CoinPrice `protobuf:"bytes,5,opt,name=burned,proto3" json:"burned" yaml:"burned"`
	// minted is coin minted at price
	Minted CoinPrice `protobuf:"bytes,6,opt,name=minted,proto3" json:"minted" yaml:"minted"`
}

EventBMRecord emitted information of burn/mint event of token A burn to mint token B

func (*EventBMRecord) Descriptor

func (*EventBMRecord) Descriptor() ([]byte, []int)

func (*EventBMRecord) GetBurned

func (m *EventBMRecord) GetBurned() CoinPrice

func (*EventBMRecord) GetBurnedFrom

func (m *EventBMRecord) GetBurnedFrom() string

func (*EventBMRecord) GetBurner

func (m *EventBMRecord) GetBurner() string

func (*EventBMRecord) GetMinted

func (m *EventBMRecord) GetMinted() CoinPrice

func (*EventBMRecord) GetMintedTo

func (m *EventBMRecord) GetMintedTo() string

func (*EventBMRecord) GetMinter

func (m *EventBMRecord) GetMinter() string

func (*EventBMRecord) Marshal

func (m *EventBMRecord) Marshal() (dAtA []byte, err error)

func (*EventBMRecord) MarshalTo

func (m *EventBMRecord) MarshalTo(dAtA []byte) (int, error)

func (*EventBMRecord) MarshalToSizedBuffer

func (m *EventBMRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBMRecord) ProtoMessage

func (*EventBMRecord) ProtoMessage()

func (*EventBMRecord) Reset

func (m *EventBMRecord) Reset()

func (*EventBMRecord) Size

func (m *EventBMRecord) Size() (n int)

func (*EventBMRecord) String

func (m *EventBMRecord) String() string

func (*EventBMRecord) Unmarshal

func (m *EventBMRecord) Unmarshal(dAtA []byte) error

func (*EventBMRecord) XXX_DiscardUnknown

func (m *EventBMRecord) XXX_DiscardUnknown()

func (*EventBMRecord) XXX_Marshal

func (m *EventBMRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBMRecord) XXX_Merge

func (m *EventBMRecord) XXX_Merge(src proto.Message)

func (*EventBMRecord) XXX_Size

func (m *EventBMRecord) XXX_Size() int

func (*EventBMRecord) XXX_Unmarshal

func (m *EventBMRecord) XXX_Unmarshal(b []byte) error

type EventCircuitBreakerStatusChange

type EventCircuitBreakerStatusChange struct {
	// previous_status is the previous status
	PreviousStatus CircuitBreakerStatus `` /* 143-byte string literal not displayed */
	// new_status is the new status
	NewStatus CircuitBreakerStatus `` /* 128-byte string literal not displayed */
	// collateral_ratio is the CR that triggered the change
	CollateralRatio cosmossdk_io_math.LegacyDec `` /* 135-byte string literal not displayed */
}

EventCircuitBreakerStatusChange is emitted when circuit breaker status changes

func (*EventCircuitBreakerStatusChange) Descriptor

func (*EventCircuitBreakerStatusChange) Descriptor() ([]byte, []int)

func (*EventCircuitBreakerStatusChange) GetNewStatus

func (*EventCircuitBreakerStatusChange) GetPreviousStatus

func (*EventCircuitBreakerStatusChange) Marshal

func (m *EventCircuitBreakerStatusChange) Marshal() (dAtA []byte, err error)

func (*EventCircuitBreakerStatusChange) MarshalTo

func (m *EventCircuitBreakerStatusChange) MarshalTo(dAtA []byte) (int, error)

func (*EventCircuitBreakerStatusChange) MarshalToSizedBuffer

func (m *EventCircuitBreakerStatusChange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCircuitBreakerStatusChange) ProtoMessage

func (*EventCircuitBreakerStatusChange) ProtoMessage()

func (*EventCircuitBreakerStatusChange) Reset

func (*EventCircuitBreakerStatusChange) Size

func (m *EventCircuitBreakerStatusChange) Size() (n int)

func (*EventCircuitBreakerStatusChange) String

func (*EventCircuitBreakerStatusChange) Unmarshal

func (m *EventCircuitBreakerStatusChange) Unmarshal(dAtA []byte) error

func (*EventCircuitBreakerStatusChange) XXX_DiscardUnknown

func (m *EventCircuitBreakerStatusChange) XXX_DiscardUnknown()

func (*EventCircuitBreakerStatusChange) XXX_Marshal

func (m *EventCircuitBreakerStatusChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCircuitBreakerStatusChange) XXX_Merge

func (m *EventCircuitBreakerStatusChange) XXX_Merge(src proto.Message)

func (*EventCircuitBreakerStatusChange) XXX_Size

func (m *EventCircuitBreakerStatusChange) XXX_Size() int

func (*EventCircuitBreakerStatusChange) XXX_Unmarshal

func (m *EventCircuitBreakerStatusChange) XXX_Unmarshal(b []byte) error

type EventVaultSeeded

type EventVaultSeeded struct {
	// amount is the AKT amount added to vault
	Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
	// source is where the funds came from
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// new_vault_balance is the new vault balance
	NewVaultBalance types.Coin `protobuf:"bytes,3,opt,name=new_vault_balance,json=newVaultBalance,proto3" json:"new_vault_balance"`
}

EventVaultSeeded is emitted when the vault is seeded with AKT

func (*EventVaultSeeded) Descriptor

func (*EventVaultSeeded) Descriptor() ([]byte, []int)

func (*EventVaultSeeded) GetAmount

func (m *EventVaultSeeded) GetAmount() types.Coin

func (*EventVaultSeeded) GetNewVaultBalance

func (m *EventVaultSeeded) GetNewVaultBalance() types.Coin

func (*EventVaultSeeded) GetSource

func (m *EventVaultSeeded) GetSource() string

func (*EventVaultSeeded) Marshal

func (m *EventVaultSeeded) Marshal() (dAtA []byte, err error)

func (*EventVaultSeeded) MarshalTo

func (m *EventVaultSeeded) MarshalTo(dAtA []byte) (int, error)

func (*EventVaultSeeded) MarshalToSizedBuffer

func (m *EventVaultSeeded) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventVaultSeeded) ProtoMessage

func (*EventVaultSeeded) ProtoMessage()

func (*EventVaultSeeded) Reset

func (m *EventVaultSeeded) Reset()

func (*EventVaultSeeded) Size

func (m *EventVaultSeeded) Size() (n int)

func (*EventVaultSeeded) String

func (m *EventVaultSeeded) String() string

func (*EventVaultSeeded) Unmarshal

func (m *EventVaultSeeded) Unmarshal(dAtA []byte) error

func (*EventVaultSeeded) XXX_DiscardUnknown

func (m *EventVaultSeeded) XXX_DiscardUnknown()

func (*EventVaultSeeded) XXX_Marshal

func (m *EventVaultSeeded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventVaultSeeded) XXX_Merge

func (m *EventVaultSeeded) XXX_Merge(src proto.Message)

func (*EventVaultSeeded) XXX_Size

func (m *EventVaultSeeded) XXX_Size() int

func (*EventVaultSeeded) XXX_Unmarshal

func (m *EventVaultSeeded) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// params defines the module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// vault_state is the initial vault state
	State State `protobuf:"bytes,2,opt,name=state,proto3" json:"state"`
}

GenesisState defines the BME module's genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the default genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetState

func (m *GenesisState) GetState() State

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) Validate

func (gs *GenesisState) Validate() error

Validate validates the genesis state.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type LedgerID

type LedgerID struct {
	// height is the block height when the ledger entry was created
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height" yaml:"height"`
	// sequence is the sequence number within the block (for ordering)
	Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence" yaml:"sequence"`
}

LedgerID uniquely identifies a ledger entry by block height and sequence number

func (*LedgerID) Descriptor

func (*LedgerID) Descriptor() ([]byte, []int)

func (*LedgerID) GetHeight

func (m *LedgerID) GetHeight() int64

func (*LedgerID) GetSequence

func (m *LedgerID) GetSequence() int64

func (*LedgerID) Marshal

func (m *LedgerID) Marshal() (dAtA []byte, err error)

func (*LedgerID) MarshalTo

func (m *LedgerID) MarshalTo(dAtA []byte) (int, error)

func (*LedgerID) MarshalToSizedBuffer

func (m *LedgerID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LedgerID) ProtoMessage

func (*LedgerID) ProtoMessage()

func (*LedgerID) Reset

func (m *LedgerID) Reset()

func (*LedgerID) Size

func (m *LedgerID) Size() (n int)

func (*LedgerID) String

func (m *LedgerID) String() string

func (*LedgerID) Unmarshal

func (m *LedgerID) Unmarshal(dAtA []byte) error

func (*LedgerID) XXX_DiscardUnknown

func (m *LedgerID) XXX_DiscardUnknown()

func (*LedgerID) XXX_Marshal

func (m *LedgerID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LedgerID) XXX_Merge

func (m *LedgerID) XXX_Merge(src proto.Message)

func (*LedgerID) XXX_Size

func (m *LedgerID) XXX_Size() int

func (*LedgerID) XXX_Unmarshal

func (m *LedgerID) XXX_Unmarshal(b []byte) error

type MsgBurnMint

type MsgBurnMint struct {
	// owner source of the coins to be burned
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
	// to destination of the minted coins.
	// if minted coin is ACT, "to" must be same as signer
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to" yaml:"to"`
	// coins_to_burn
	CoinsToBurn types.Coin `protobuf:"bytes,3,opt,name=coins_to_burn,json=coinsToBurn,proto3" json:"coins_to_burn" yaml:"coins_to_burn"`
	// denom_to_mint
	DenomToMint string `protobuf:"bytes,4,opt,name=denom_to_mint,json=denomToMint,proto3" json:"denom_to_mint" yaml:"denom_to_mint"`
}

MsgBurnMint defines the message for burning one token to mint another Allows burning AKT to mint ACT, or burning unused ACT back to AKT

func (*MsgBurnMint) Descriptor

func (*MsgBurnMint) Descriptor() ([]byte, []int)

func (*MsgBurnMint) GetCoinsToBurn

func (m *MsgBurnMint) GetCoinsToBurn() types.Coin

func (*MsgBurnMint) GetDenomToMint

func (m *MsgBurnMint) GetDenomToMint() string

func (*MsgBurnMint) GetOwner

func (m *MsgBurnMint) GetOwner() string

func (*MsgBurnMint) GetTo

func (m *MsgBurnMint) GetTo() string

func (*MsgBurnMint) Marshal

func (m *MsgBurnMint) Marshal() (dAtA []byte, err error)

func (*MsgBurnMint) MarshalTo

func (m *MsgBurnMint) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnMint) MarshalToSizedBuffer

func (m *MsgBurnMint) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnMint) ProtoMessage

func (*MsgBurnMint) ProtoMessage()

func (*MsgBurnMint) Reset

func (m *MsgBurnMint) Reset()

func (*MsgBurnMint) Size

func (m *MsgBurnMint) Size() (n int)

func (*MsgBurnMint) String

func (m *MsgBurnMint) String() string

func (*MsgBurnMint) Unmarshal

func (m *MsgBurnMint) Unmarshal(dAtA []byte) error

func (*MsgBurnMint) XXX_DiscardUnknown

func (m *MsgBurnMint) XXX_DiscardUnknown()

func (*MsgBurnMint) XXX_Marshal

func (m *MsgBurnMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnMint) XXX_Merge

func (m *MsgBurnMint) XXX_Merge(src proto.Message)

func (*MsgBurnMint) XXX_Size

func (m *MsgBurnMint) XXX_Size() int

func (*MsgBurnMint) XXX_Unmarshal

func (m *MsgBurnMint) XXX_Unmarshal(b []byte) error

type MsgBurnMintResponse

type MsgBurnMintResponse struct {
	// owner source of the coins to be burned
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"`
	// to destination of the minted coins.
	// if minted coin is ACT, "to" must be same as signer
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to" yaml:"to"`
	// burned is the coin burned
	Burned CoinPrice `protobuf:"bytes,3,opt,name=burned,proto3" json:"burned" yaml:"burned"`
	// minted is coin minted
	Minted CoinPrice `protobuf:"bytes,4,opt,name=minted,proto3" json:"minted" yaml:"minted"`
}

MsgBurnMintResponse is the response type for MsgBurnMint

func (*MsgBurnMintResponse) Descriptor

func (*MsgBurnMintResponse) Descriptor() ([]byte, []int)

func (*MsgBurnMintResponse) GetBurned

func (m *MsgBurnMintResponse) GetBurned() CoinPrice

func (*MsgBurnMintResponse) GetMinted

func (m *MsgBurnMintResponse) GetMinted() CoinPrice

func (*MsgBurnMintResponse) GetOwner

func (m *MsgBurnMintResponse) GetOwner() string

func (*MsgBurnMintResponse) GetTo

func (m *MsgBurnMintResponse) GetTo() string

func (*MsgBurnMintResponse) Marshal

func (m *MsgBurnMintResponse) Marshal() (dAtA []byte, err error)

func (*MsgBurnMintResponse) MarshalTo

func (m *MsgBurnMintResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBurnMintResponse) MarshalToSizedBuffer

func (m *MsgBurnMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBurnMintResponse) ProtoMessage

func (*MsgBurnMintResponse) ProtoMessage()

func (*MsgBurnMintResponse) Reset

func (m *MsgBurnMintResponse) Reset()

func (*MsgBurnMintResponse) Size

func (m *MsgBurnMintResponse) Size() (n int)

func (*MsgBurnMintResponse) String

func (m *MsgBurnMintResponse) String() string

func (*MsgBurnMintResponse) Unmarshal

func (m *MsgBurnMintResponse) Unmarshal(dAtA []byte) error

func (*MsgBurnMintResponse) XXX_DiscardUnknown

func (m *MsgBurnMintResponse) XXX_DiscardUnknown()

func (*MsgBurnMintResponse) XXX_Marshal

func (m *MsgBurnMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBurnMintResponse) XXX_Merge

func (m *MsgBurnMintResponse) XXX_Merge(src proto.Message)

func (*MsgBurnMintResponse) XXX_Size

func (m *MsgBurnMintResponse) XXX_Size() int

func (*MsgBurnMintResponse) XXX_Unmarshal

func (m *MsgBurnMintResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// UpdateParams updates the module parameters (governance only)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// BurnMint allows users to burn unused ACT back to AKT at current price
	BurnMint(ctx context.Context, in *MsgBurnMint, opts ...grpc.CallOption) (*MsgBurnMintResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgSeedVault

type MsgSeedVault struct {
	// authority is the address that controls the module (governance)
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// amount is the AKT amount to seed the vault with
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
	// source is the source of funds (e.g., community pool)
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
}

MsgSeedVault defines the message for seeding the BME vault with AKT This is used to provide an initial volatility buffer

func (*MsgSeedVault) Descriptor

func (*MsgSeedVault) Descriptor() ([]byte, []int)

func (*MsgSeedVault) GetAmount

func (m *MsgSeedVault) GetAmount() types.Coin

func (*MsgSeedVault) GetAuthority

func (m *MsgSeedVault) GetAuthority() string

func (MsgSeedVault) GetSigners

func (msg MsgSeedVault) GetSigners() []sdk.AccAddress

func (*MsgSeedVault) GetSource

func (m *MsgSeedVault) GetSource() string

func (*MsgSeedVault) Marshal

func (m *MsgSeedVault) Marshal() (dAtA []byte, err error)

func (*MsgSeedVault) MarshalTo

func (m *MsgSeedVault) MarshalTo(dAtA []byte) (int, error)

func (*MsgSeedVault) MarshalToSizedBuffer

func (m *MsgSeedVault) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSeedVault) ProtoMessage

func (*MsgSeedVault) ProtoMessage()

func (*MsgSeedVault) Reset

func (m *MsgSeedVault) Reset()

func (*MsgSeedVault) Size

func (m *MsgSeedVault) Size() (n int)

func (*MsgSeedVault) String

func (m *MsgSeedVault) String() string

func (*MsgSeedVault) Unmarshal

func (m *MsgSeedVault) Unmarshal(dAtA []byte) error

func (MsgSeedVault) ValidateBasic

func (msg MsgSeedVault) ValidateBasic() error

func (*MsgSeedVault) XXX_DiscardUnknown

func (m *MsgSeedVault) XXX_DiscardUnknown()

func (*MsgSeedVault) XXX_Marshal

func (m *MsgSeedVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSeedVault) XXX_Merge

func (m *MsgSeedVault) XXX_Merge(src proto.Message)

func (*MsgSeedVault) XXX_Size

func (m *MsgSeedVault) XXX_Size() int

func (*MsgSeedVault) XXX_Unmarshal

func (m *MsgSeedVault) XXX_Unmarshal(b []byte) error

type MsgSeedVaultResponse

type MsgSeedVaultResponse struct {
	// vault_akt is the new vault AKT balance
	VaultAkt cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=vault_akt,json=vaultAkt,proto3,customtype=cosmossdk.io/math.Int" json:"vault_akt"`
}

MsgSeedVaultResponse is the response type for MsgSeedVault

func (*MsgSeedVaultResponse) Descriptor

func (*MsgSeedVaultResponse) Descriptor() ([]byte, []int)

func (*MsgSeedVaultResponse) Marshal

func (m *MsgSeedVaultResponse) Marshal() (dAtA []byte, err error)

func (*MsgSeedVaultResponse) MarshalTo

func (m *MsgSeedVaultResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSeedVaultResponse) MarshalToSizedBuffer

func (m *MsgSeedVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSeedVaultResponse) ProtoMessage

func (*MsgSeedVaultResponse) ProtoMessage()

func (*MsgSeedVaultResponse) Reset

func (m *MsgSeedVaultResponse) Reset()

func (*MsgSeedVaultResponse) Size

func (m *MsgSeedVaultResponse) Size() (n int)

func (*MsgSeedVaultResponse) String

func (m *MsgSeedVaultResponse) String() string

func (*MsgSeedVaultResponse) Unmarshal

func (m *MsgSeedVaultResponse) Unmarshal(dAtA []byte) error

func (*MsgSeedVaultResponse) XXX_DiscardUnknown

func (m *MsgSeedVaultResponse) XXX_DiscardUnknown()

func (*MsgSeedVaultResponse) XXX_Marshal

func (m *MsgSeedVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSeedVaultResponse) XXX_Merge

func (m *MsgSeedVaultResponse) XXX_Merge(src proto.Message)

func (*MsgSeedVaultResponse) XXX_Size

func (m *MsgSeedVaultResponse) XXX_Size() int

func (*MsgSeedVaultResponse) XXX_Unmarshal

func (m *MsgSeedVaultResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// UpdateParams updates the module parameters (governance only)
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// BurnMint allows users to burn unused ACT back to AKT at current price
	BurnMint(context.Context, *MsgBurnMint) (*MsgBurnMintResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (governance)
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the updated parameters
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams defines the message for updating module parameters

func (*MsgUpdateParams) Descriptor

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSigners

func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress

func (*MsgUpdateParams) Marshal

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type

func (msg *MsgUpdateParams) Type() string

Type implements the sdk.Msg interface

func (*MsgUpdateParams) Unmarshal

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (MsgUpdateParams) ValidateBasic

func (msg MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParams) XXX_Merge

func (m *MsgUpdateParams) XXX_Merge(src proto.Message)

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse is the response type for MsgUpdateParams

func (*MsgUpdateParamsResponse) Descriptor

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateParamsResponse) XXX_Merge

func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	// enabled indicates if BME is enabled
	Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// oracle_twap_window is the time window for TWAP calculation
	OracleTwapWindow time.Duration `protobuf:"bytes,2,opt,name=oracle_twap_window,json=oracleTwapWindow,proto3,stdduration" json:"oracle_twap_window"`
	// oracle_outlier_threshold_bps is the threshold in basis points for
	// rejecting oracle price outliers (default: 150 = 1.5%)
	OracleOutlierThresholdBps uint32 `` /* 141-byte string literal not displayed */
	// circuit_breaker_warn_threshold is the CR below which warning is triggered
	// Stored as basis points * 100 (e.g., 9500 = 0.95)
	CircuitBreakerWarnThreshold uint32 `` /* 147-byte string literal not displayed */
	// circuit_breaker_halt_threshold is the CR below which mints are halted
	// Stored as basis points * 100 (e.g., 9000 = 0.90)
	CircuitBreakerHaltThreshold uint32 `` /* 147-byte string literal not displayed */
	// mint_spread_bps is the spread in basis points applied during ACT mint
	// (default: 25 bps = 0.25%)
	MintSpreadBps uint32 `protobuf:"varint,6,opt,name=mint_spread_bps,json=mintSpreadBps,proto3" json:"mint_spread_bps,omitempty"`
	// settle_spread_bps is the spread in basis points applied during settlement
	// (default: 0 for no provider tax)
	SettleSpreadBps uint32 `protobuf:"varint,7,opt,name=settle_spread_bps,json=settleSpreadBps,proto3" json:"settle_spread_bps,omitempty"`
	// settlement_epoch_blocks is the number of blocks between settlement epochs
	// Use 1 for per-block settlement, or higher for batched settlements
	SettlementEpochBlocks int64 `` /* 127-byte string literal not displayed */
	// min_runway_blocks is the minimum amount of blocks required for ACT mints
	// during circuit breaker warning mode
	MinRunwayBlocks int64 `protobuf:"varint,9,opt,name=min_runway_blocks,json=minRunwayBlocks,proto3" json:"min_runway_blocks,omitempty"`
	// snapshot_interval_blocks is the number of blocks between snapshots
	// for historical metrics tracking (e.g., 100 blocks)
	SnapshotIntervalBlocks int64 `` /* 131-byte string literal not displayed */
	// snapshot_retention_seconds is how long to retain snapshot data
	// (e.g., 2592000 = 30 days)
	SnapshotRetentionSeconds int64 `` /* 137-byte string literal not displayed */
	// snapshot_bucket_duration is the duration of each snapshot bucket in seconds
	// for aggregating metrics (e.g., 86400 = 1 day)
	SnapshotBucketDuration int64 `` /* 131-byte string literal not displayed */
}

Params defines the parameters for the BME module

func DefaultParams

func DefaultParams() Params

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetCircuitBreakerHaltThreshold

func (m *Params) GetCircuitBreakerHaltThreshold() uint32

func (*Params) GetCircuitBreakerWarnThreshold

func (m *Params) GetCircuitBreakerWarnThreshold() uint32

func (*Params) GetEnabled

func (m *Params) GetEnabled() bool

func (*Params) GetMinRunwayBlocks

func (m *Params) GetMinRunwayBlocks() int64

func (*Params) GetMintSpreadBps

func (m *Params) GetMintSpreadBps() uint32

func (*Params) GetOracleOutlierThresholdBps

func (m *Params) GetOracleOutlierThresholdBps() uint32

func (*Params) GetOracleTwapWindow

func (m *Params) GetOracleTwapWindow() time.Duration

func (*Params) GetSettleSpreadBps

func (m *Params) GetSettleSpreadBps() uint32

func (*Params) GetSettlementEpochBlocks

func (m *Params) GetSettlementEpochBlocks() int64

func (*Params) GetSnapshotBucketDuration

func (m *Params) GetSnapshotBucketDuration() int64

func (*Params) GetSnapshotIntervalBlocks

func (m *Params) GetSnapshotIntervalBlocks() int64

func (*Params) GetSnapshotRetentionSeconds

func (m *Params) GetSnapshotRetentionSeconds() int64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryCircuitBreakerStatusRequest

type QueryCircuitBreakerStatusRequest struct {
}

QueryCircuitBreakerStatusRequest is the request type for the circuit breaker status

func (*QueryCircuitBreakerStatusRequest) Descriptor

func (*QueryCircuitBreakerStatusRequest) Descriptor() ([]byte, []int)

func (*QueryCircuitBreakerStatusRequest) Marshal

func (m *QueryCircuitBreakerStatusRequest) Marshal() (dAtA []byte, err error)

func (*QueryCircuitBreakerStatusRequest) MarshalTo

func (m *QueryCircuitBreakerStatusRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCircuitBreakerStatusRequest) MarshalToSizedBuffer

func (m *QueryCircuitBreakerStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCircuitBreakerStatusRequest) ProtoMessage

func (*QueryCircuitBreakerStatusRequest) ProtoMessage()

func (*QueryCircuitBreakerStatusRequest) Reset

func (*QueryCircuitBreakerStatusRequest) Size

func (m *QueryCircuitBreakerStatusRequest) Size() (n int)

func (*QueryCircuitBreakerStatusRequest) String

func (*QueryCircuitBreakerStatusRequest) Unmarshal

func (m *QueryCircuitBreakerStatusRequest) Unmarshal(dAtA []byte) error

func (*QueryCircuitBreakerStatusRequest) XXX_DiscardUnknown

func (m *QueryCircuitBreakerStatusRequest) XXX_DiscardUnknown()

func (*QueryCircuitBreakerStatusRequest) XXX_Marshal

func (m *QueryCircuitBreakerStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCircuitBreakerStatusRequest) XXX_Merge

func (*QueryCircuitBreakerStatusRequest) XXX_Size

func (m *QueryCircuitBreakerStatusRequest) XXX_Size() int

func (*QueryCircuitBreakerStatusRequest) XXX_Unmarshal

func (m *QueryCircuitBreakerStatusRequest) XXX_Unmarshal(b []byte) error

type QueryCircuitBreakerStatusResponse

type QueryCircuitBreakerStatusResponse struct {
	// status is the current circuit breaker status
	Status CircuitBreakerStatus `protobuf:"varint,1,opt,name=status,proto3,enum=akash.bme.v1.CircuitBreakerStatus" json:"status,omitempty"`
	// collateral_ratio is the current CR
	CollateralRatio cosmossdk_io_math.LegacyDec `` /* 135-byte string literal not displayed */
	// warn_threshold is the warning threshold
	WarnThreshold cosmossdk_io_math.LegacyDec `` /* 129-byte string literal not displayed */
	// halt_threshold is the halt threshold
	HaltThreshold cosmossdk_io_math.LegacyDec `` /* 129-byte string literal not displayed */
	// mints_allowed indicates if new ACT mints are allowed
	MintsAllowed bool `protobuf:"varint,5,opt,name=mints_allowed,json=mintsAllowed,proto3" json:"mints_allowed,omitempty"`
	// settlements_allowed indicates if settlements are allowed
	SettlementsAllowed bool `protobuf:"varint,6,opt,name=settlements_allowed,json=settlementsAllowed,proto3" json:"settlements_allowed,omitempty"`
	// refunds_allowed indicates if ACT refunds are allowed
	RefundsAllowed bool `protobuf:"varint,7,opt,name=refunds_allowed,json=refundsAllowed,proto3" json:"refunds_allowed,omitempty"`
}

QueryCircuitBreakerStatusResponse is the response type for the circuit breaker status

func (*QueryCircuitBreakerStatusResponse) Descriptor

func (*QueryCircuitBreakerStatusResponse) Descriptor() ([]byte, []int)

func (*QueryCircuitBreakerStatusResponse) GetMintsAllowed

func (m *QueryCircuitBreakerStatusResponse) GetMintsAllowed() bool

func (*QueryCircuitBreakerStatusResponse) GetRefundsAllowed

func (m *QueryCircuitBreakerStatusResponse) GetRefundsAllowed() bool

func (*QueryCircuitBreakerStatusResponse) GetSettlementsAllowed

func (m *QueryCircuitBreakerStatusResponse) GetSettlementsAllowed() bool

func (*QueryCircuitBreakerStatusResponse) GetStatus

func (*QueryCircuitBreakerStatusResponse) Marshal

func (m *QueryCircuitBreakerStatusResponse) Marshal() (dAtA []byte, err error)

func (*QueryCircuitBreakerStatusResponse) MarshalTo

func (m *QueryCircuitBreakerStatusResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCircuitBreakerStatusResponse) MarshalToSizedBuffer

func (m *QueryCircuitBreakerStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCircuitBreakerStatusResponse) ProtoMessage

func (*QueryCircuitBreakerStatusResponse) ProtoMessage()

func (*QueryCircuitBreakerStatusResponse) Reset

func (*QueryCircuitBreakerStatusResponse) Size

func (m *QueryCircuitBreakerStatusResponse) Size() (n int)

func (*QueryCircuitBreakerStatusResponse) String

func (*QueryCircuitBreakerStatusResponse) Unmarshal

func (m *QueryCircuitBreakerStatusResponse) Unmarshal(dAtA []byte) error

func (*QueryCircuitBreakerStatusResponse) XXX_DiscardUnknown

func (m *QueryCircuitBreakerStatusResponse) XXX_DiscardUnknown()

func (*QueryCircuitBreakerStatusResponse) XXX_Marshal

func (m *QueryCircuitBreakerStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCircuitBreakerStatusResponse) XXX_Merge

func (*QueryCircuitBreakerStatusResponse) XXX_Size

func (m *QueryCircuitBreakerStatusResponse) XXX_Size() int

func (*QueryCircuitBreakerStatusResponse) XXX_Unmarshal

func (m *QueryCircuitBreakerStatusResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// Params returns the module parameters
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// VaultState returns the current vault state
	VaultState(ctx context.Context, in *QueryVaultStateRequest, opts ...grpc.CallOption) (*QueryVaultStateResponse, error)
	// CollateralRatio returns the current collateral ratio
	CollateralRatio(ctx context.Context, in *QueryCollateralRatioRequest, opts ...grpc.CallOption) (*QueryCollateralRatioResponse, error)
	// CircuitBreakerStatus returns the current circuit breaker status
	CircuitBreakerStatus(ctx context.Context, in *QueryCircuitBreakerStatusRequest, opts ...grpc.CallOption) (*QueryCircuitBreakerStatusResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCollateralRatioRequest

type QueryCollateralRatioRequest struct {
}

QueryCollateralRatioRequest is the request type for the Query/CollateralRatio RPC method

func (*QueryCollateralRatioRequest) Descriptor

func (*QueryCollateralRatioRequest) Descriptor() ([]byte, []int)

func (*QueryCollateralRatioRequest) Marshal

func (m *QueryCollateralRatioRequest) Marshal() (dAtA []byte, err error)

func (*QueryCollateralRatioRequest) MarshalTo

func (m *QueryCollateralRatioRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryCollateralRatioRequest) MarshalToSizedBuffer

func (m *QueryCollateralRatioRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCollateralRatioRequest) ProtoMessage

func (*QueryCollateralRatioRequest) ProtoMessage()

func (*QueryCollateralRatioRequest) Reset

func (m *QueryCollateralRatioRequest) Reset()

func (*QueryCollateralRatioRequest) Size

func (m *QueryCollateralRatioRequest) Size() (n int)

func (*QueryCollateralRatioRequest) String

func (m *QueryCollateralRatioRequest) String() string

func (*QueryCollateralRatioRequest) Unmarshal

func (m *QueryCollateralRatioRequest) Unmarshal(dAtA []byte) error

func (*QueryCollateralRatioRequest) XXX_DiscardUnknown

func (m *QueryCollateralRatioRequest) XXX_DiscardUnknown()

func (*QueryCollateralRatioRequest) XXX_Marshal

func (m *QueryCollateralRatioRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCollateralRatioRequest) XXX_Merge

func (m *QueryCollateralRatioRequest) XXX_Merge(src proto.Message)

func (*QueryCollateralRatioRequest) XXX_Size

func (m *QueryCollateralRatioRequest) XXX_Size() int

func (*QueryCollateralRatioRequest) XXX_Unmarshal

func (m *QueryCollateralRatioRequest) XXX_Unmarshal(b []byte) error

type QueryCollateralRatioResponse

type QueryCollateralRatioResponse struct {
	CollateralRatio CollateralRatio `protobuf:"bytes,1,opt,name=collateral_ratio,json=collateralRatio,proto3" json:"collateral_ratio"`
}

QueryCollateralRatioResponse is the response type for the Query/CollateralRatio RPC method

func (*QueryCollateralRatioResponse) Descriptor

func (*QueryCollateralRatioResponse) Descriptor() ([]byte, []int)

func (*QueryCollateralRatioResponse) GetCollateralRatio

func (m *QueryCollateralRatioResponse) GetCollateralRatio() CollateralRatio

func (*QueryCollateralRatioResponse) Marshal

func (m *QueryCollateralRatioResponse) Marshal() (dAtA []byte, err error)

func (*QueryCollateralRatioResponse) MarshalTo

func (m *QueryCollateralRatioResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryCollateralRatioResponse) MarshalToSizedBuffer

func (m *QueryCollateralRatioResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryCollateralRatioResponse) ProtoMessage

func (*QueryCollateralRatioResponse) ProtoMessage()

func (*QueryCollateralRatioResponse) Reset

func (m *QueryCollateralRatioResponse) Reset()

func (*QueryCollateralRatioResponse) Size

func (m *QueryCollateralRatioResponse) Size() (n int)

func (*QueryCollateralRatioResponse) String

func (*QueryCollateralRatioResponse) Unmarshal

func (m *QueryCollateralRatioResponse) Unmarshal(dAtA []byte) error

func (*QueryCollateralRatioResponse) XXX_DiscardUnknown

func (m *QueryCollateralRatioResponse) XXX_DiscardUnknown()

func (*QueryCollateralRatioResponse) XXX_Marshal

func (m *QueryCollateralRatioResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryCollateralRatioResponse) XXX_Merge

func (m *QueryCollateralRatioResponse) XXX_Merge(src proto.Message)

func (*QueryCollateralRatioResponse) XXX_Size

func (m *QueryCollateralRatioResponse) XXX_Size() int

func (*QueryCollateralRatioResponse) XXX_Unmarshal

func (m *QueryCollateralRatioResponse) XXX_Unmarshal(b []byte) error

type QueryNetBurnRequest

type QueryNetBurnRequest struct {
	// period can be "24h" or "30d"
	Period string `protobuf:"bytes,1,opt,name=period,proto3" json:"period,omitempty"`
}

QueryNetBurnRequest is the request type for the Query/NetBurn RPC method

func (*QueryNetBurnRequest) Descriptor

func (*QueryNetBurnRequest) Descriptor() ([]byte, []int)

func (*QueryNetBurnRequest) GetPeriod

func (m *QueryNetBurnRequest) GetPeriod() string

func (*QueryNetBurnRequest) Marshal

func (m *QueryNetBurnRequest) Marshal() (dAtA []byte, err error)

func (*QueryNetBurnRequest) MarshalTo

func (m *QueryNetBurnRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryNetBurnRequest) MarshalToSizedBuffer

func (m *QueryNetBurnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryNetBurnRequest) ProtoMessage

func (*QueryNetBurnRequest) ProtoMessage()

func (*QueryNetBurnRequest) Reset

func (m *QueryNetBurnRequest) Reset()

func (*QueryNetBurnRequest) Size

func (m *QueryNetBurnRequest) Size() (n int)

func (*QueryNetBurnRequest) String

func (m *QueryNetBurnRequest) String() string

func (*QueryNetBurnRequest) Unmarshal

func (m *QueryNetBurnRequest) Unmarshal(dAtA []byte) error

func (*QueryNetBurnRequest) XXX_DiscardUnknown

func (m *QueryNetBurnRequest) XXX_DiscardUnknown()

func (*QueryNetBurnRequest) XXX_Marshal

func (m *QueryNetBurnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryNetBurnRequest) XXX_Merge

func (m *QueryNetBurnRequest) XXX_Merge(src proto.Message)

func (*QueryNetBurnRequest) XXX_Size

func (m *QueryNetBurnRequest) XXX_Size() int

func (*QueryNetBurnRequest) XXX_Unmarshal

func (m *QueryNetBurnRequest) XXX_Unmarshal(b []byte) error

type QueryNetBurnResponse

type QueryNetBurnResponse struct {
	// net_burn is the net AKT burned in the period (positive = deflationary)
	NetBurn types.Coin `protobuf:"bytes,1,opt,name=net_burn,json=netBurn,proto3" json:"net_burn"`
	// total_burned is the total AKT burned in the period
	TotalBurned types.Coin `protobuf:"bytes,2,opt,name=total_burned,json=totalBurned,proto3" json:"total_burned"`
	// total_minted is the total AKT minted in the period
	TotalMinted types.Coin `protobuf:"bytes,3,opt,name=total_minted,json=totalMinted,proto3" json:"total_minted"`
}

QueryNetBurnResponse is the response type for the Query/NetBurn RPC method

func (*QueryNetBurnResponse) Descriptor

func (*QueryNetBurnResponse) Descriptor() ([]byte, []int)

func (*QueryNetBurnResponse) GetNetBurn

func (m *QueryNetBurnResponse) GetNetBurn() types.Coin

func (*QueryNetBurnResponse) GetTotalBurned

func (m *QueryNetBurnResponse) GetTotalBurned() types.Coin

func (*QueryNetBurnResponse) GetTotalMinted

func (m *QueryNetBurnResponse) GetTotalMinted() types.Coin

func (*QueryNetBurnResponse) Marshal

func (m *QueryNetBurnResponse) Marshal() (dAtA []byte, err error)

func (*QueryNetBurnResponse) MarshalTo

func (m *QueryNetBurnResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryNetBurnResponse) MarshalToSizedBuffer

func (m *QueryNetBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryNetBurnResponse) ProtoMessage

func (*QueryNetBurnResponse) ProtoMessage()

func (*QueryNetBurnResponse) Reset

func (m *QueryNetBurnResponse) Reset()

func (*QueryNetBurnResponse) Size

func (m *QueryNetBurnResponse) Size() (n int)

func (*QueryNetBurnResponse) String

func (m *QueryNetBurnResponse) String() string

func (*QueryNetBurnResponse) Unmarshal

func (m *QueryNetBurnResponse) Unmarshal(dAtA []byte) error

func (*QueryNetBurnResponse) XXX_DiscardUnknown

func (m *QueryNetBurnResponse) XXX_DiscardUnknown()

func (*QueryNetBurnResponse) XXX_Marshal

func (m *QueryNetBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryNetBurnResponse) XXX_Merge

func (m *QueryNetBurnResponse) XXX_Merge(src proto.Message)

func (*QueryNetBurnResponse) XXX_Size

func (m *QueryNetBurnResponse) XXX_Size() int

func (*QueryNetBurnResponse) XXX_Unmarshal

func (m *QueryNetBurnResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// Params returns the module parameters
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// VaultState returns the current vault state
	VaultState(context.Context, *QueryVaultStateRequest) (*QueryVaultStateResponse, error)
	// CollateralRatio returns the current collateral ratio
	CollateralRatio(context.Context, *QueryCollateralRatioRequest) (*QueryCollateralRatioResponse, error)
	// CircuitBreakerStatus returns the current circuit breaker status
	CircuitBreakerStatus(context.Context, *QueryCircuitBreakerStatusRequest) (*QueryCircuitBreakerStatusResponse, error)
}

QueryServer is the server API for Query service.

type QueryVaultStateRequest

type QueryVaultStateRequest struct {
}

QueryVaultStateRequest is the request type for the Query/VaultState RPC method

func (*QueryVaultStateRequest) Descriptor

func (*QueryVaultStateRequest) Descriptor() ([]byte, []int)

func (*QueryVaultStateRequest) Marshal

func (m *QueryVaultStateRequest) Marshal() (dAtA []byte, err error)

func (*QueryVaultStateRequest) MarshalTo

func (m *QueryVaultStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryVaultStateRequest) MarshalToSizedBuffer

func (m *QueryVaultStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVaultStateRequest) ProtoMessage

func (*QueryVaultStateRequest) ProtoMessage()

func (*QueryVaultStateRequest) Reset

func (m *QueryVaultStateRequest) Reset()

func (*QueryVaultStateRequest) Size

func (m *QueryVaultStateRequest) Size() (n int)

func (*QueryVaultStateRequest) String

func (m *QueryVaultStateRequest) String() string

func (*QueryVaultStateRequest) Unmarshal

func (m *QueryVaultStateRequest) Unmarshal(dAtA []byte) error

func (*QueryVaultStateRequest) XXX_DiscardUnknown

func (m *QueryVaultStateRequest) XXX_DiscardUnknown()

func (*QueryVaultStateRequest) XXX_Marshal

func (m *QueryVaultStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVaultStateRequest) XXX_Merge

func (m *QueryVaultStateRequest) XXX_Merge(src proto.Message)

func (*QueryVaultStateRequest) XXX_Size

func (m *QueryVaultStateRequest) XXX_Size() int

func (*QueryVaultStateRequest) XXX_Unmarshal

func (m *QueryVaultStateRequest) XXX_Unmarshal(b []byte) error

type QueryVaultStateResponse

type QueryVaultStateResponse struct {
	VaultState State `protobuf:"bytes,1,opt,name=vault_state,json=vaultState,proto3" json:"vault_state"`
}

QueryVaultStateResponse is the response type for the Query/VaultState RPC method

func (*QueryVaultStateResponse) Descriptor

func (*QueryVaultStateResponse) Descriptor() ([]byte, []int)

func (*QueryVaultStateResponse) GetVaultState

func (m *QueryVaultStateResponse) GetVaultState() State

func (*QueryVaultStateResponse) Marshal

func (m *QueryVaultStateResponse) Marshal() (dAtA []byte, err error)

func (*QueryVaultStateResponse) MarshalTo

func (m *QueryVaultStateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryVaultStateResponse) MarshalToSizedBuffer

func (m *QueryVaultStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryVaultStateResponse) ProtoMessage

func (*QueryVaultStateResponse) ProtoMessage()

func (*QueryVaultStateResponse) Reset

func (m *QueryVaultStateResponse) Reset()

func (*QueryVaultStateResponse) Size

func (m *QueryVaultStateResponse) Size() (n int)

func (*QueryVaultStateResponse) String

func (m *QueryVaultStateResponse) String() string

func (*QueryVaultStateResponse) Unmarshal

func (m *QueryVaultStateResponse) Unmarshal(dAtA []byte) error

func (*QueryVaultStateResponse) XXX_DiscardUnknown

func (m *QueryVaultStateResponse) XXX_DiscardUnknown()

func (*QueryVaultStateResponse) XXX_Marshal

func (m *QueryVaultStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryVaultStateResponse) XXX_Merge

func (m *QueryVaultStateResponse) XXX_Merge(src proto.Message)

func (*QueryVaultStateResponse) XXX_Size

func (m *QueryVaultStateResponse) XXX_Size() int

func (*QueryVaultStateResponse) XXX_Unmarshal

func (m *QueryVaultStateResponse) XXX_Unmarshal(b []byte) error

type State

type State struct {
	// last_updated is the block height when vault was last updated
	LastUpdated int64 `protobuf:"varint,1,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// burned is the cumulative burn for tracked tokens
	Burned github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=burned,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"burned"`
	// minted is the cumulative mint back for tracked tokens
	// minted is the cumulative mint back for tracked tokens
	Minted github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=minted,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"minted"`
	// balances tracks the current token balances held by the BME module
	Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"`
	// remint_credits tracks available credits for reminting tokens
	// (e.g., from previous burns that can be reminted without additional collateral)
	RemintCredits github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

State tracks net burn metrics since BME start

func (*State) Descriptor

func (*State) Descriptor() ([]byte, []int)

func (*State) GetBalances

func (*State) GetBurned

func (*State) GetLastUpdated

func (m *State) GetLastUpdated() int64

func (*State) GetMinted

func (*State) GetRemintCredits

func (m *State) GetRemintCredits() github_com_cosmos_cosmos_sdk_types.Coins

func (*State) Marshal

func (m *State) Marshal() (dAtA []byte, err error)

func (*State) MarshalTo

func (m *State) MarshalTo(dAtA []byte) (int, error)

func (*State) MarshalToSizedBuffer

func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

func (m *State) Size() (n int)

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

func (m *State) Unmarshal(dAtA []byte) error

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*State) XXX_Merge

func (m *State) XXX_Merge(src proto.Message)

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

func (m *State) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnMint

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CollateralRatio

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) VaultState

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL