types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeMicrotx = "microtx"

	MicrotxKeySender   = "sender"
	MicrotxKeyReceiver = "receiver"
	MicrotxKeyAmount   = "amount"

	EventTypeMicrotxFeeCollected = "microtx-fee-collected"
	MicrotxFeeCollectedKeySender = "sender"
	MicrotxFeeCollectedKeyFee    = "fee"

	EventTypeBalanceRedirect = "balance-redirect"
	RedirectKeyReceiver      = "receiver"
	RedirectKeyAmount        = "amount"

	EventTypeLiquify = "liquify"

	LiquifyKeyAccount    = "account"
	LiquifyKeyNFTAddress = "nft-address"
)
View Source
const (
	// ModuleName is the name of the module
	ModuleName = "microtx"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey is the module name router key
	RouterKey = ModuleName

	// QuerierRoute to be used for querierer msgs
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgMicrotx = "microtx"
	TypeMsgLiquify = "liquify"
)
View Source
const (
	// todo: implement oracle constants as params
	DefaultParamspace = ModuleName
)

DefaultParamspace defines the default auth module parameter subspace

Variables

View Source
var (
	ErrContractDeployment   = sdkerrors.Register(ModuleName, 1, "contract deploy failed")
	ErrContractCall         = sdkerrors.Register(ModuleName, 2, "contract call failed")
	ErrNoLiquidAccount      = sdkerrors.Register(ModuleName, 3, "account is not a liquid infrastructure account")
	ErrInvalidThresholds    = sdkerrors.Register(ModuleName, 4, "invalid liquid infrastructure account thresholds")
	ErrInvalidMicrotx       = sdkerrors.Register(ModuleName, 5, "invalid microtx")
	ErrInvalidContract      = sdkerrors.Register(ModuleName, 6, "invalid contract")
	ErrAccountAlreadyLiquid = sdkerrors.Register(ModuleName, 7, "account is already a liquid infrastructure account")
)
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 (
	// The Microtx Module's bech32 address
	ModuleAddress = authtypes.NewModuleAddress(ModuleName)
	// The Microtx Module's EVM address
	ModuleEVMAddress = common.BytesToAddress(ModuleAddress.Bytes())

	// LiquidAccountKey is the index for all Liquid Infrastructure Accounts, whose keys contain
	// a bech32 x/auth account address and values are EVM LiquidInfrastructureNFT contract addresses
	LiquidAccountKey = HashString("LiquidAccount")
)
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 (
	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 LiquidInfrastructureNFT = contracts.LiquidInfrastructureNFTContract

Redeclare the contract for package use

View Source
var ModuleCdc = codec.NewLegacyAmino()

ModuleCdc is the codec for the module

View Source
var (
	ParamsStoreKeyMicrotxFeeBasisPoints = "MicrotxFeeBasisPoints"
)

Functions

func AppendBytes

func AppendBytes(args ...[]byte) []byte

func GetAccountFromLiquidAccountKey

func GetAccountFromLiquidAccountKey(key []byte) sdk.AccAddress

func GetLiquidAccountKey

func GetLiquidAccountKey(address sdk.AccAddress) []byte

GetLiquidAccountKey returns the LiquidAccount key for the given bech32 address, the key's format is [ LiquidAccountKey | bech32 address ]

func HashString

func HashString(input string) []byte

Hashing string using cryptographic MD5 function returns 128bit(16byte) value

func NewEventBalanceRedirect

func NewEventBalanceRedirect(receiver string, amount sdk.Coin) sdk.Event

func NewEventLiquify

func NewEventLiquify(account string, nftAddress common.Address) sdk.Event

func NewEventMicrotx

func NewEventMicrotx(sender string, receiver string, amount sdk.Coin) sdk.Event

func NewEventMicrotxFeeCollected added in v1.1.0

func NewEventMicrotxFeeCollected(sender string, fee sdk.Coin) sdk.Event

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for auth module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

RegisterCodec registers concrete types on the Amino codec nolint: exhaustruct

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the interfaces for the proto stuff nolint: exhaustruct

func RegisterMsgHandler

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

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

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

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

func RegisterMsgHandlerFromEndpoint

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

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

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

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)

func UInt64Bytes

func UInt64Bytes(n uint64) []byte

UInt64Bytes uses the SDK byte marshaling to encode a uint64

func UInt64FromBytesUnsafe

func UInt64FromBytesUnsafe(s []byte) uint64

UInt64FromBytesUnsafe create uint from binary big endian representation Note: This is unsafe because the function will panic if provided over 8 bytes

func UInt64FromString

func UInt64FromString(s string) (uint64, error)

UInt64FromString to parse out a uint64 for a nonce

Types

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetDenomMetaData(ctx sdk.Context, denom string) bank.Metadata
}

BankKeeper defines the expected bank keeper methods

type EventAccountLiquified

type EventAccountLiquified struct {
	Owned      string `protobuf:"bytes,1,opt,name=owned,proto3" json:"owned,omitempty"`
	NftAddress string `protobuf:"bytes,2,opt,name=nft_address,json=nftAddress,proto3" json:"nft_address,omitempty"`
}

A type for the block's event log, every successful MsgLiquify must create one of these in the event log

func (*EventAccountLiquified) Descriptor

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

func (*EventAccountLiquified) GetNftAddress

func (m *EventAccountLiquified) GetNftAddress() string

func (*EventAccountLiquified) GetOwned

func (m *EventAccountLiquified) GetOwned() string

func (*EventAccountLiquified) Marshal

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

func (*EventAccountLiquified) MarshalTo

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

func (*EventAccountLiquified) MarshalToSizedBuffer

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

func (*EventAccountLiquified) ProtoMessage

func (*EventAccountLiquified) ProtoMessage()

func (*EventAccountLiquified) Reset

func (m *EventAccountLiquified) Reset()

func (*EventAccountLiquified) Size

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

func (*EventAccountLiquified) String

func (m *EventAccountLiquified) String() string

func (*EventAccountLiquified) Unmarshal

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

func (*EventAccountLiquified) XXX_DiscardUnknown

func (m *EventAccountLiquified) XXX_DiscardUnknown()

func (*EventAccountLiquified) XXX_Marshal

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

func (*EventAccountLiquified) XXX_Merge

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

func (*EventAccountLiquified) XXX_Size

func (m *EventAccountLiquified) XXX_Size() int

func (*EventAccountLiquified) XXX_Unmarshal

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

type EventBalanceRedirect

type EventBalanceRedirect struct {
	Account string     `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Amount  types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

A type for the block's event log recording when a Liquid Infrastructure account has a received balance redirected to its registered LiquidInfrastructureNFT

func (*EventBalanceRedirect) Descriptor

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

func (*EventBalanceRedirect) GetAccount

func (m *EventBalanceRedirect) GetAccount() string

func (*EventBalanceRedirect) GetAmount

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

func (*EventBalanceRedirect) Marshal

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

func (*EventBalanceRedirect) MarshalTo

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

func (*EventBalanceRedirect) MarshalToSizedBuffer

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

func (*EventBalanceRedirect) ProtoMessage

func (*EventBalanceRedirect) ProtoMessage()

func (*EventBalanceRedirect) Reset

func (m *EventBalanceRedirect) Reset()

func (*EventBalanceRedirect) Size

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

func (*EventBalanceRedirect) String

func (m *EventBalanceRedirect) String() string

func (*EventBalanceRedirect) Unmarshal

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

func (*EventBalanceRedirect) XXX_DiscardUnknown

func (m *EventBalanceRedirect) XXX_DiscardUnknown()

func (*EventBalanceRedirect) XXX_Marshal

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

func (*EventBalanceRedirect) XXX_Merge

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

func (*EventBalanceRedirect) XXX_Size

func (m *EventBalanceRedirect) XXX_Size() int

func (*EventBalanceRedirect) XXX_Unmarshal

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

type EventMicrotx

type EventMicrotx struct {
	Sender   string       `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver string       `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Amounts  []types.Coin `protobuf:"bytes,3,rep,name=amounts,proto3" json:"amounts"`
}

A type for the block's event log, every successful Microtx must create one of these in the event log

func (*EventMicrotx) Descriptor

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

func (*EventMicrotx) GetAmounts

func (m *EventMicrotx) GetAmounts() []types.Coin

func (*EventMicrotx) GetReceiver

func (m *EventMicrotx) GetReceiver() string

func (*EventMicrotx) GetSender

func (m *EventMicrotx) GetSender() string

func (*EventMicrotx) Marshal

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

func (*EventMicrotx) MarshalTo

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

func (*EventMicrotx) MarshalToSizedBuffer

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

func (*EventMicrotx) ProtoMessage

func (*EventMicrotx) ProtoMessage()

func (*EventMicrotx) Reset

func (m *EventMicrotx) Reset()

func (*EventMicrotx) Size

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

func (*EventMicrotx) String

func (m *EventMicrotx) String() string

func (*EventMicrotx) Unmarshal

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

func (*EventMicrotx) XXX_DiscardUnknown

func (m *EventMicrotx) XXX_DiscardUnknown()

func (*EventMicrotx) XXX_Marshal

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

func (*EventMicrotx) XXX_Merge

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

func (*EventMicrotx) XXX_Size

func (m *EventMicrotx) XXX_Size() int

func (*EventMicrotx) XXX_Unmarshal

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

type EventMicrotxFeeCollected added in v1.1.0

type EventMicrotxFeeCollected struct {
	Sender string       `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Fee    []types.Coin `protobuf:"bytes,2,rep,name=fee,proto3" json:"fee"`
}

A type for the block's event log, Microtx fees may be collected out-of-band and so this event may be emitted in an AnteHandler or during the Msg handler

func (*EventMicrotxFeeCollected) Descriptor added in v1.1.0

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

func (*EventMicrotxFeeCollected) GetFee added in v1.1.0

func (m *EventMicrotxFeeCollected) GetFee() []types.Coin

func (*EventMicrotxFeeCollected) GetSender added in v1.1.0

func (m *EventMicrotxFeeCollected) GetSender() string

func (*EventMicrotxFeeCollected) Marshal added in v1.1.0

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

func (*EventMicrotxFeeCollected) MarshalTo added in v1.1.0

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

func (*EventMicrotxFeeCollected) MarshalToSizedBuffer added in v1.1.0

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

func (*EventMicrotxFeeCollected) ProtoMessage added in v1.1.0

func (*EventMicrotxFeeCollected) ProtoMessage()

func (*EventMicrotxFeeCollected) Reset added in v1.1.0

func (m *EventMicrotxFeeCollected) Reset()

func (*EventMicrotxFeeCollected) Size added in v1.1.0

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

func (*EventMicrotxFeeCollected) String added in v1.1.0

func (m *EventMicrotxFeeCollected) String() string

func (*EventMicrotxFeeCollected) Unmarshal added in v1.1.0

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

func (*EventMicrotxFeeCollected) XXX_DiscardUnknown added in v1.1.0

func (m *EventMicrotxFeeCollected) XXX_DiscardUnknown()

func (*EventMicrotxFeeCollected) XXX_Marshal added in v1.1.0

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

func (*EventMicrotxFeeCollected) XXX_Merge added in v1.1.0

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

func (*EventMicrotxFeeCollected) XXX_Size added in v1.1.0

func (m *EventMicrotxFeeCollected) XXX_Size() int

func (*EventMicrotxFeeCollected) XXX_Unmarshal added in v1.1.0

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

type GenesisState

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

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns empty genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() *Params

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) ValidateBasic

func (s GenesisState) ValidateBasic() error

ValidateBasic validates genesis state by looping through the params and calling their validation functions

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 LiquidAccountThreshold

type LiquidAccountThreshold struct {
	Amount big.Int
	Token  common.Address
}

LiquidAccountThreshold stores the threshold limit for one token, used to control Liquid Infrastructure Accounts

func FindThresholdForERC20

func FindThresholdForERC20(thresholds []LiquidAccountThreshold, token common.Address) *LiquidAccountThreshold

FindThresholdForERC20 identifies which of `thresholds` corresponds to `token` Returns nil if none are found

func NewLiquidAccountThreshold

func NewLiquidAccountThreshold(token common.Address, amount big.Int) LiquidAccountThreshold

func NewLiquidAccountThresholds

func NewLiquidAccountThresholds(tokens []common.Address, amounts []big.Int) ([]LiquidAccountThreshold, error)

type LiquidInfrastructureAccount

type LiquidInfrastructureAccount struct {
	Owner      string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Account    string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	NftAddress string `protobuf:"bytes,3,opt,name=nft_address,json=nftAddress,proto3" json:"nft_address,omitempty"`
}

Records critical information about a Liquid Infrastructure Account ACCOUNT The bech32 address of the liquid infrastructure account OWNER The bech32 address of the account now in control of the liquid infrastructure NFT_ADDRESS The EVM address of the token contract in control of the liquid infrastructure account's accrued profits

func (*LiquidInfrastructureAccount) Descriptor

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

func (*LiquidInfrastructureAccount) GetAccount

func (m *LiquidInfrastructureAccount) GetAccount() string

func (*LiquidInfrastructureAccount) GetNftAddress

func (m *LiquidInfrastructureAccount) GetNftAddress() string

func (*LiquidInfrastructureAccount) GetOwner

func (m *LiquidInfrastructureAccount) GetOwner() string

func (*LiquidInfrastructureAccount) Marshal

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

func (*LiquidInfrastructureAccount) MarshalTo

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

func (*LiquidInfrastructureAccount) MarshalToSizedBuffer

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

func (*LiquidInfrastructureAccount) ProtoMessage

func (*LiquidInfrastructureAccount) ProtoMessage()

func (*LiquidInfrastructureAccount) Reset

func (m *LiquidInfrastructureAccount) Reset()

func (*LiquidInfrastructureAccount) Size

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

func (*LiquidInfrastructureAccount) String

func (m *LiquidInfrastructureAccount) String() string

func (*LiquidInfrastructureAccount) Unmarshal

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

func (*LiquidInfrastructureAccount) XXX_DiscardUnknown

func (m *LiquidInfrastructureAccount) XXX_DiscardUnknown()

func (*LiquidInfrastructureAccount) XXX_Marshal

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

func (*LiquidInfrastructureAccount) XXX_Merge

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

func (*LiquidInfrastructureAccount) XXX_Size

func (m *LiquidInfrastructureAccount) XXX_Size() int

func (*LiquidInfrastructureAccount) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// The Microtx service handles payments to Althea accounts
	Microtx(ctx context.Context, in *MsgMicrotx, opts ...grpc.CallOption) (*MsgMicrotxResponse, error)
	// The Liquify service converts an account into a piece of Liquid Infrastructure
	Liquify(ctx context.Context, in *MsgLiquify, opts ...grpc.CallOption) (*MsgLiquifyResponse, 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 MsgLiquify

type MsgLiquify struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgLiquify Converts the sender's account into a piece of Liquid Infrastructure, by creating a Non-fungible Token (NFT) within the Althea L1 EVM which will control all balances held by the Liquid Infrastructure Account (beyond a configurable threshold). The liquid infrastructure account itself will be the initial owner of the NFT, and must transfer control through the EVM NFT contract SENDER The bech32 address of the account to liquify, must also be the signer of the message

func NewMsgLiquify

func NewMsgLiquify(sender string) *MsgLiquify

NewMsgLiquify returns a new MsgLiquify

func (*MsgLiquify) Descriptor

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

func (*MsgLiquify) GetSender

func (m *MsgLiquify) GetSender() string

func (MsgLiquify) GetSignBytes

func (msg MsgLiquify) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (*MsgLiquify) GetSigners

func (msg *MsgLiquify) GetSigners() []sdk.AccAddress

GetSigners requires the Sender to be the signer

func (*MsgLiquify) Marshal

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

func (*MsgLiquify) MarshalTo

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

func (*MsgLiquify) MarshalToSizedBuffer

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

func (*MsgLiquify) ProtoMessage

func (*MsgLiquify) ProtoMessage()

func (*MsgLiquify) Reset

func (m *MsgLiquify) Reset()

func (*MsgLiquify) Route

func (msg *MsgLiquify) Route() string

Route should return the name of the module

func (*MsgLiquify) Size

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

func (*MsgLiquify) String

func (m *MsgLiquify) String() string

func (MsgLiquify) Type

func (msg MsgLiquify) Type() string

func (*MsgLiquify) Unmarshal

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

func (*MsgLiquify) ValidateBasic

func (msg *MsgLiquify) ValidateBasic() error

ValidateBasic checks for valid addresses

func (*MsgLiquify) XXX_DiscardUnknown

func (m *MsgLiquify) XXX_DiscardUnknown()

func (*MsgLiquify) XXX_Marshal

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

func (*MsgLiquify) XXX_Merge

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

func (*MsgLiquify) XXX_Size

func (m *MsgLiquify) XXX_Size() int

func (*MsgLiquify) XXX_Unmarshal

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

type MsgLiquifyResponse

type MsgLiquifyResponse struct {
	Account *LiquidInfrastructureAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

MsgLiquifyResponse potentially returns useful information from the liquification of an account

func (*MsgLiquifyResponse) Descriptor

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

func (*MsgLiquifyResponse) GetAccount

func (*MsgLiquifyResponse) Marshal

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

func (*MsgLiquifyResponse) MarshalTo

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

func (*MsgLiquifyResponse) MarshalToSizedBuffer

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

func (*MsgLiquifyResponse) ProtoMessage

func (*MsgLiquifyResponse) ProtoMessage()

func (*MsgLiquifyResponse) Reset

func (m *MsgLiquifyResponse) Reset()

func (*MsgLiquifyResponse) Size

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

func (*MsgLiquifyResponse) String

func (m *MsgLiquifyResponse) String() string

func (*MsgLiquifyResponse) Unmarshal

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

func (*MsgLiquifyResponse) XXX_DiscardUnknown

func (m *MsgLiquifyResponse) XXX_DiscardUnknown()

func (*MsgLiquifyResponse) XXX_Marshal

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

func (*MsgLiquifyResponse) XXX_Merge

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

func (*MsgLiquifyResponse) XXX_Size

func (m *MsgLiquifyResponse) XXX_Size() int

func (*MsgLiquifyResponse) XXX_Unmarshal

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

type MsgMicrotx

type MsgMicrotx struct {
	Sender   string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver string     `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Amount   types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgMicrotx A Msg used to send funds from one Althea network wallet to another, via an automated device. Facilitates Liquid Infrastructure by automatically redirecting funds received by Liquid Infrastructure beyond configured amounts to the EVM. SENDER The account sending funds to receiver, must also be the signer of the message RECEIVER The account receiving funds from sender AMOUNTS The tokens and their quantities which should be transferred, these must be Cosmos coins registered as ERC20s, or the Cosmos representation of ERC20s

func NewMsgMicrotx

func NewMsgMicrotx(sender string, reciever string, amount sdk.Coin) *MsgMicrotx

NewMsgMicrotx returns a new MsgMicrotx

func (*MsgMicrotx) Descriptor

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

func (*MsgMicrotx) GetAmount

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

func (*MsgMicrotx) GetReceiver

func (m *MsgMicrotx) GetReceiver() string

func (*MsgMicrotx) GetSender

func (m *MsgMicrotx) GetSender() string

func (MsgMicrotx) GetSignBytes

func (msg MsgMicrotx) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (*MsgMicrotx) GetSigners

func (msg *MsgMicrotx) GetSigners() []sdk.AccAddress

GetSigners requires the Sender to be the signer

func (*MsgMicrotx) Marshal

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

func (*MsgMicrotx) MarshalTo

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

func (*MsgMicrotx) MarshalToSizedBuffer

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

func (*MsgMicrotx) ProtoMessage

func (*MsgMicrotx) ProtoMessage()

func (*MsgMicrotx) Reset

func (m *MsgMicrotx) Reset()

func (*MsgMicrotx) Route

func (msg *MsgMicrotx) Route() string

Route should return the name of the module

func (*MsgMicrotx) Size

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

func (*MsgMicrotx) String

func (m *MsgMicrotx) String() string

func (MsgMicrotx) Type

func (msg MsgMicrotx) Type() string

func (*MsgMicrotx) Unmarshal

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

func (*MsgMicrotx) ValidateBasic

func (msg *MsgMicrotx) ValidateBasic() error

ValidateBasic checks for valid addresses and amounts

func (*MsgMicrotx) XXX_DiscardUnknown

func (m *MsgMicrotx) XXX_DiscardUnknown()

func (*MsgMicrotx) XXX_Marshal

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

func (*MsgMicrotx) XXX_Merge

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

func (*MsgMicrotx) XXX_Size

func (m *MsgMicrotx) XXX_Size() int

func (*MsgMicrotx) XXX_Unmarshal

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

type MsgMicrotxResponse

type MsgMicrotxResponse struct {
}

func (*MsgMicrotxResponse) Descriptor

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

func (*MsgMicrotxResponse) Marshal

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

func (*MsgMicrotxResponse) MarshalTo

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

func (*MsgMicrotxResponse) MarshalToSizedBuffer

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

func (*MsgMicrotxResponse) ProtoMessage

func (*MsgMicrotxResponse) ProtoMessage()

func (*MsgMicrotxResponse) Reset

func (m *MsgMicrotxResponse) Reset()

func (*MsgMicrotxResponse) Size

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

func (*MsgMicrotxResponse) String

func (m *MsgMicrotxResponse) String() string

func (*MsgMicrotxResponse) Unmarshal

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

func (*MsgMicrotxResponse) XXX_DiscardUnknown

func (m *MsgMicrotxResponse) XXX_DiscardUnknown()

func (*MsgMicrotxResponse) XXX_Marshal

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

func (*MsgMicrotxResponse) XXX_Merge

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

func (*MsgMicrotxResponse) XXX_Size

func (m *MsgMicrotxResponse) XXX_Size() int

func (*MsgMicrotxResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// The Microtx service handles payments to Althea accounts
	Microtx(context.Context, *MsgMicrotx) (*MsgMicrotxResponse, error)
	// The Liquify service converts an account into a piece of Liquid Infrastructure
	Liquify(context.Context, *MsgLiquify) (*MsgLiquifyResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	MicrotxFeeBasisPoints uint64 `` /* 129-byte string literal not displayed */
}

Params struct

func DefaultParams

func DefaultParams() *Params

DefaultParams returns a copy of the default params

func (*Params) Descriptor

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

func (Params) Equal

func (p Params) Equal(p2 Params) bool

Equal returns a boolean determining if two Params types are identical.

func (*Params) GetMicrotxFeeBasisPoints

func (m *Params) GetMicrotxFeeBasisPoints() uint64

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) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of auth module's parameters.

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) ValidateBasic

func (p Params) ValidateBasic() error

ValidateBasic checks that the parameters have valid values.

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 QueryClient

type QueryClient interface {
	// Query the current microtx params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Get an authoritative fee amount which must be paid on Microtx
	MicrotxFee(ctx context.Context, in *QueryMicrotxFeeRequest, opts ...grpc.CallOption) (*QueryMicrotxFeeResponse, error)
	// Get all of the Liquid Infrastructure accounts known to the module
	LiquidAccounts(ctx context.Context, in *QueryLiquidAccountsRequest, opts ...grpc.CallOption) (*QueryLiquidAccountsResponse, error)
	// Get info about one particular Liquid Infrastructure account by owner, bech32 address, or nft address
	// Make HTTP GET requests like:
	// * `GET /microtx/v1/liquid_account?owner=althea1...`
	// * `GET /microtx/v1/liquid_account?owner=0xABCDE...`
	// * `GET /microtx/v1/liquid_account?account=althea1...`
	// * `GET /microtx/v1/liquid_account?nft=0xABCDE...`
	LiquidAccount(ctx context.Context, in *QueryLiquidAccountRequest, opts ...grpc.CallOption) (*QueryLiquidAccountResponse, 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 QueryLiquidAccountRequest

type QueryLiquidAccountRequest struct {
	Owner   string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
	Nft     string `protobuf:"bytes,3,opt,name=nft,proto3" json:"nft,omitempty"`
}

Query for info about one particular Liquid Infrastructure account OWNER if a bech32 address is provided, potenitally many accounts will be returned ACCOUNT if a bech32 address is provided, the owner and nft contract address will be returned NFT if a EVM address is provided and happens to be a LiquidInfrastructureNFT contract, the owner and account will be returned

func (*QueryLiquidAccountRequest) Descriptor

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

func (*QueryLiquidAccountRequest) GetAccount

func (m *QueryLiquidAccountRequest) GetAccount() string

func (*QueryLiquidAccountRequest) GetNft

func (m *QueryLiquidAccountRequest) GetNft() string

func (*QueryLiquidAccountRequest) GetOwner

func (m *QueryLiquidAccountRequest) GetOwner() string

func (*QueryLiquidAccountRequest) Marshal

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

func (*QueryLiquidAccountRequest) MarshalTo

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

func (*QueryLiquidAccountRequest) MarshalToSizedBuffer

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

func (*QueryLiquidAccountRequest) ProtoMessage

func (*QueryLiquidAccountRequest) ProtoMessage()

func (*QueryLiquidAccountRequest) Reset

func (m *QueryLiquidAccountRequest) Reset()

func (*QueryLiquidAccountRequest) Size

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

func (*QueryLiquidAccountRequest) String

func (m *QueryLiquidAccountRequest) String() string

func (*QueryLiquidAccountRequest) Unmarshal

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

func (*QueryLiquidAccountRequest) XXX_DiscardUnknown

func (m *QueryLiquidAccountRequest) XXX_DiscardUnknown()

func (*QueryLiquidAccountRequest) XXX_Marshal

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

func (*QueryLiquidAccountRequest) XXX_Merge

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

func (*QueryLiquidAccountRequest) XXX_Size

func (m *QueryLiquidAccountRequest) XXX_Size() int

func (*QueryLiquidAccountRequest) XXX_Unmarshal

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

type QueryLiquidAccountResponse

type QueryLiquidAccountResponse struct {
	Accounts []*LiquidInfrastructureAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}

func (*QueryLiquidAccountResponse) Descriptor

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

func (*QueryLiquidAccountResponse) GetAccounts

func (*QueryLiquidAccountResponse) Marshal

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

func (*QueryLiquidAccountResponse) MarshalTo

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

func (*QueryLiquidAccountResponse) MarshalToSizedBuffer

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

func (*QueryLiquidAccountResponse) ProtoMessage

func (*QueryLiquidAccountResponse) ProtoMessage()

func (*QueryLiquidAccountResponse) Reset

func (m *QueryLiquidAccountResponse) Reset()

func (*QueryLiquidAccountResponse) Size

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

func (*QueryLiquidAccountResponse) String

func (m *QueryLiquidAccountResponse) String() string

func (*QueryLiquidAccountResponse) Unmarshal

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

func (*QueryLiquidAccountResponse) XXX_DiscardUnknown

func (m *QueryLiquidAccountResponse) XXX_DiscardUnknown()

func (*QueryLiquidAccountResponse) XXX_Marshal

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

func (*QueryLiquidAccountResponse) XXX_Merge

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

func (*QueryLiquidAccountResponse) XXX_Size

func (m *QueryLiquidAccountResponse) XXX_Size() int

func (*QueryLiquidAccountResponse) XXX_Unmarshal

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

type QueryLiquidAccountsRequest

type QueryLiquidAccountsRequest struct {
}

Query the Liquid Infrastructure accounts known to the module

func (*QueryLiquidAccountsRequest) Descriptor

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

func (*QueryLiquidAccountsRequest) Marshal

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

func (*QueryLiquidAccountsRequest) MarshalTo

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

func (*QueryLiquidAccountsRequest) MarshalToSizedBuffer

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

func (*QueryLiquidAccountsRequest) ProtoMessage

func (*QueryLiquidAccountsRequest) ProtoMessage()

func (*QueryLiquidAccountsRequest) Reset

func (m *QueryLiquidAccountsRequest) Reset()

func (*QueryLiquidAccountsRequest) Size

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

func (*QueryLiquidAccountsRequest) String

func (m *QueryLiquidAccountsRequest) String() string

func (*QueryLiquidAccountsRequest) Unmarshal

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

func (*QueryLiquidAccountsRequest) XXX_DiscardUnknown

func (m *QueryLiquidAccountsRequest) XXX_DiscardUnknown()

func (*QueryLiquidAccountsRequest) XXX_Marshal

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

func (*QueryLiquidAccountsRequest) XXX_Merge

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

func (*QueryLiquidAccountsRequest) XXX_Size

func (m *QueryLiquidAccountsRequest) XXX_Size() int

func (*QueryLiquidAccountsRequest) XXX_Unmarshal

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

type QueryLiquidAccountsResponse

type QueryLiquidAccountsResponse struct {
	Accounts []*LiquidInfrastructureAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}

func (*QueryLiquidAccountsResponse) Descriptor

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

func (*QueryLiquidAccountsResponse) GetAccounts

func (*QueryLiquidAccountsResponse) Marshal

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

func (*QueryLiquidAccountsResponse) MarshalTo

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

func (*QueryLiquidAccountsResponse) MarshalToSizedBuffer

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

func (*QueryLiquidAccountsResponse) ProtoMessage

func (*QueryLiquidAccountsResponse) ProtoMessage()

func (*QueryLiquidAccountsResponse) Reset

func (m *QueryLiquidAccountsResponse) Reset()

func (*QueryLiquidAccountsResponse) Size

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

func (*QueryLiquidAccountsResponse) String

func (m *QueryLiquidAccountsResponse) String() string

func (*QueryLiquidAccountsResponse) Unmarshal

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

func (*QueryLiquidAccountsResponse) XXX_DiscardUnknown

func (m *QueryLiquidAccountsResponse) XXX_DiscardUnknown()

func (*QueryLiquidAccountsResponse) XXX_Marshal

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

func (*QueryLiquidAccountsResponse) XXX_Merge

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

func (*QueryLiquidAccountsResponse) XXX_Size

func (m *QueryLiquidAccountsResponse) XXX_Size() int

func (*QueryLiquidAccountsResponse) XXX_Unmarshal

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

type QueryMicrotxFeeRequest

type QueryMicrotxFeeRequest struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

Query the additional fee paid on MsgMicrotx, determined by governance

func (*QueryMicrotxFeeRequest) Descriptor

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

func (*QueryMicrotxFeeRequest) GetAmount

func (m *QueryMicrotxFeeRequest) GetAmount() uint64

func (*QueryMicrotxFeeRequest) Marshal

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

func (*QueryMicrotxFeeRequest) MarshalTo

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

func (*QueryMicrotxFeeRequest) MarshalToSizedBuffer

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

func (*QueryMicrotxFeeRequest) ProtoMessage

func (*QueryMicrotxFeeRequest) ProtoMessage()

func (*QueryMicrotxFeeRequest) Reset

func (m *QueryMicrotxFeeRequest) Reset()

func (*QueryMicrotxFeeRequest) Size

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

func (*QueryMicrotxFeeRequest) String

func (m *QueryMicrotxFeeRequest) String() string

func (*QueryMicrotxFeeRequest) Unmarshal

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

func (*QueryMicrotxFeeRequest) XXX_DiscardUnknown

func (m *QueryMicrotxFeeRequest) XXX_DiscardUnknown()

func (*QueryMicrotxFeeRequest) XXX_Marshal

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

func (*QueryMicrotxFeeRequest) XXX_Merge

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

func (*QueryMicrotxFeeRequest) XXX_Size

func (m *QueryMicrotxFeeRequest) XXX_Size() int

func (*QueryMicrotxFeeRequest) XXX_Unmarshal

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

type QueryMicrotxFeeResponse

type QueryMicrotxFeeResponse struct {
	FeeAmount uint64 `protobuf:"varint,1,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
}

func (*QueryMicrotxFeeResponse) Descriptor

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

func (*QueryMicrotxFeeResponse) GetFeeAmount

func (m *QueryMicrotxFeeResponse) GetFeeAmount() uint64

func (*QueryMicrotxFeeResponse) Marshal

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

func (*QueryMicrotxFeeResponse) MarshalTo

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

func (*QueryMicrotxFeeResponse) MarshalToSizedBuffer

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

func (*QueryMicrotxFeeResponse) ProtoMessage

func (*QueryMicrotxFeeResponse) ProtoMessage()

func (*QueryMicrotxFeeResponse) Reset

func (m *QueryMicrotxFeeResponse) Reset()

func (*QueryMicrotxFeeResponse) Size

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

func (*QueryMicrotxFeeResponse) String

func (m *QueryMicrotxFeeResponse) String() string

func (*QueryMicrotxFeeResponse) Unmarshal

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

func (*QueryMicrotxFeeResponse) XXX_DiscardUnknown

func (m *QueryMicrotxFeeResponse) XXX_DiscardUnknown()

func (*QueryMicrotxFeeResponse) XXX_Marshal

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

func (*QueryMicrotxFeeResponse) XXX_Merge

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

func (*QueryMicrotxFeeResponse) XXX_Size

func (m *QueryMicrotxFeeResponse) XXX_Size() int

func (*QueryMicrotxFeeResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

Query the current microtx params

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"`
}

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 {
	// Query the current microtx params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Get an authoritative fee amount which must be paid on Microtx
	MicrotxFee(context.Context, *QueryMicrotxFeeRequest) (*QueryMicrotxFeeResponse, error)
	// Get all of the Liquid Infrastructure accounts known to the module
	LiquidAccounts(context.Context, *QueryLiquidAccountsRequest) (*QueryLiquidAccountsResponse, error)
	// Get info about one particular Liquid Infrastructure account by owner, bech32 address, or nft address
	// Make HTTP GET requests like:
	// * `GET /microtx/v1/liquid_account?owner=althea1...`
	// * `GET /microtx/v1/liquid_account?owner=0xABCDE...`
	// * `GET /microtx/v1/liquid_account?account=althea1...`
	// * `GET /microtx/v1/liquid_account?nft=0xABCDE...`
	LiquidAccount(context.Context, *QueryLiquidAccountRequest) (*QueryLiquidAccountResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Liquify

func (*UnimplementedMsgServer) Microtx

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) LiquidAccount

func (*UnimplementedQueryServer) LiquidAccounts

func (*UnimplementedQueryServer) MicrotxFee

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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