types

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 34 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	MinOwnerCount = 2
	MaxOwnerCount = 16
	MinWeight     = 1
	MaxWeight     = 1024
)

Multisignature wallet limitations.

View Source
const (
	// Default codespace
	DefaultCodespace string = ModuleName

	CodeInternal uint32 = 100

	// CreateWallet
	CodeInvalidSender         uint32 = 101
	CodeInvalidOwnerCount     uint32 = 102
	CodeInvalidOwner          uint32 = 103
	CodeInvalidWeightCount    uint32 = 104
	CodeInvalidWeight         uint32 = 105
	CodeInvalidThreshold      uint32 = 106
	CodeWalletAccountNotFound uint32 = 107
	CodeDuplicateOwner        uint32 = 108
	CodeInvalidWallet         uint32 = 109
	CodeUnableToCreateWallet  uint32 = 110
	CodeWalletAlreadyExists   uint32 = 111
	CodeAccountAlreadyExists  uint32 = 112

	// CreateTransaction
	CodeUnableToCreateTransaction  uint32 = 201
	CodeInvalidTransactionIDError  uint32 = 202
	CodeInvalidTransactionIDPrefix uint32 = 203
	CodeInvalidAmountToSend        uint32 = 204
	CodeInsufficientFunds          uint32 = 205
	CodeInvalidReceiver            uint32 = 206
	CodeTransactionNotFound        uint32 = 207
	CodeNoCoinsToSend              uint32 = 208

	// SignTransaction
	CodeAlreadyEnoughSignatures  uint32 = 301
	CodeTransactionAlreadySigned uint32 = 302
	CodeSignerIsNotOwner         uint32 = 303

	//Legacy addresees
	CodeInvalidPublicKeyLength         uint32 = 401
	CodeCannnotGetAddressFromPublicKey uint32 = 402
)
View Source
const (
	// Event attributes
	AttributeValueCategory = ModuleName

	// Common
	AttributeKeySender      = "sender"
	AttributeKeyWallet      = "wallet"
	AttributeKeyTransaction = "transaction"

	// CreateWallet
	AttributeKeyOwners    = "owners"
	AttributeKeyWeights   = "weights"
	AttributeKeyThreshold = "threshold"

	// CreateTransaction
	AttributeKeyReceiver = "receiver"
	AttributeKeyCoins    = "coins"

	// SignTransaction
	AttributeKeySignerWeight  = "signer_weight"
	AttributeKeyConfirmations = "confirmations"
	AttributeKeyConfirmed     = "confirmed"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "multisig"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_" + ModuleName

	// RouterKey defines module's messages routing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgCreateWallet           = "create_wallet"
	TypeMsgCreateTransaction      = "create_transaction"
	TypeMsgSignTransaction        = "sign_transaction"
	TypeMsgActualizeLegacyAddress = "actualize_legacy_address"
)
View Source
const (
	QueryWallet       = "wallet"
	QueryWallets      = "wallets"
	QueryTransaction  = "transaction"
	QueryTransactions = "transactions"
)
View Source
const MultisigTransactionIDPrefix = "dxmstx"

MultisigTransactionIDPrefix is prefix for multisig transaction ID.

Variables

ModuleCdc references the global coin module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding.

The actual codec used for serialization should be provided to modules/coin and defined at the application level.

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 (
	KeyPrefixWallet      = []byte{prefixWallet}      // 0x01
	KeyPrefixTransaction = []byte{prefixTransaction} // 0x02
)

KVStore key prefixes

View Source
var (
	ErrInvalidLengthMultisig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMultisig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMultisig = 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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ErrAccountAlreadyExists

func ErrAccountAlreadyExists(address string) *sdkerrors.Error

func ErrAlreadyEnoughSignatures

func ErrAlreadyEnoughSignatures(confirmations, threshold string) *sdkerrors.Error

func ErrCannnotGetAddressFromPublicKey

func ErrCannnotGetAddressFromPublicKey(err string) *sdkerrors.Error

func ErrDuplicateOwner

func ErrDuplicateOwner(address string) *sdkerrors.Error

func ErrInsufficientFunds

func ErrInsufficientFunds(funds, balance string) *sdkerrors.Error

func ErrInternal

func ErrInternal(err string) *sdkerrors.Error

func ErrInvalidAmount

func ErrInvalidAmount(coin, amount string) *sdkerrors.Error

func ErrInvalidOwner

func ErrInvalidOwner(address string) *sdkerrors.Error

func ErrInvalidOwnerCount

func ErrInvalidOwnerCount(count, minCount, maxCount string) *sdkerrors.Error

func ErrInvalidPublicKeyLength

func ErrInvalidPublicKeyLength(publicKeyLength string) *sdkerrors.Error

Legacy addresses

func ErrInvalidReceiver

func ErrInvalidReceiver(address string) *sdkerrors.Error

func ErrInvalidSender

func ErrInvalidSender(address string) *sdkerrors.Error

func ErrInvalidThreshold

func ErrInvalidThreshold(sumOfWeights, threshold string) *sdkerrors.Error

func ErrInvalidTransactionIDError

func ErrInvalidTransactionIDError(txID, err string) *sdkerrors.Error

func ErrInvalidTransactionIDPrefix

func ErrInvalidTransactionIDPrefix(txID, prefixWant, prefixGot string) *sdkerrors.Error

func ErrInvalidWallet

func ErrInvalidWallet(address string) *sdkerrors.Error

func ErrInvalidWeight

func ErrInvalidWeight(weight string, data string) *sdkerrors.Error

func ErrInvalidWeightCount

func ErrInvalidWeightCount(lenMsgWeights string, lenMsgOwners string) *sdkerrors.Error

func ErrNoCoinsToSend

func ErrNoCoinsToSend() *sdkerrors.Error

func ErrSignerIsNotOwner

func ErrSignerIsNotOwner(signer, wallet string) *sdkerrors.Error

func ErrTransactionAlreadySigned

func ErrTransactionAlreadySigned(signer string) *sdkerrors.Error

func ErrTransactionNotFound

func ErrTransactionNotFound(txID string) *sdkerrors.Error

func ErrUnablePreformTransaction

func ErrUnablePreformTransaction(txID, err string) *sdkerrors.Error

func ErrUnableToCreateTransaction

func ErrUnableToCreateTransaction(err string) *sdkerrors.Error

func ErrUnableToCreateWallet

func ErrUnableToCreateWallet(err string) *sdkerrors.Error

func ErrWalletAccountNotFound

func ErrWalletAccountNotFound(address string) *sdkerrors.Error

func ErrWalletAlreadyExists

func ErrWalletAlreadyExists(address string) *sdkerrors.Error

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

RegisterCodec registers concrete implementations of specific inferfaces.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers concrete implementations of specific inferfaces.

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 AccountKeeper

type AccountKeeper interface {
	// Return a new account with the next account number and the specified address. Does not save the new account to the store.
	NewAccountWithAddress(sdk.Context, sdk.AccAddress) types.AccountI

	// Return a new account with the next account number. Does not save the new account to the store.
	NewAccount(sdk.Context, types.AccountI) types.AccountI

	// Check if an account exists in the store.
	HasAccount(sdk.Context, sdk.AccAddress) bool

	// Retrieve an account from the store.
	GetAccount(sdk.Context, sdk.AccAddress) types.AccountI

	// Set an account in the store.
	SetAccount(sdk.Context, types.AccountI)

	// Remove an account from the store.
	RemoveAccount(sdk.Context, types.AccountI)

	// Iterate over all accounts, calling the provided function. Stop iteration when it returns true.
	IterateAccounts(sdk.Context, func(types.AccountI) bool)

	// Fetch the public key of an account at a specified address
	GetPubKey(sdk.Context, sdk.AccAddress) (cryptotypes.PubKey, error)

	// Fetch the sequence of an account at a specified address.
	GetSequence(sdk.Context, sdk.AccAddress) (uint64, error)

	// Fetch the next account number, and increment the internal counter.
	GetNextAccountNumber(sdk.Context) uint64
}

AccountKeeper defines the expected account keeper.

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper.

type GenesisState

type GenesisState struct {
	// registered multisig wallets
	Wallets []Wallet `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets" yaml:"wallets"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.

func NewGenesisState

func NewGenesisState(wallets []Wallet) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetWallets

func (m *GenesisState) GetWallets() []Wallet

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 performs basic genesis state validation returning an error upon any failure.

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 MsgActualizeLegacyAddress

type MsgActualizeLegacyAddress struct {
	Sender         string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"`
	PublicKeyBytes []byte `protobuf:"bytes,2,opt,name=publicKeyBytes,proto3" json:"public_key_bytes" yaml:"public_key_bytes"`
}

func NewMsgActualizeLegacyAddress

func NewMsgActualizeLegacyAddress(
	sender sdk.AccAddress,
	publicKeyBytes []byte,
) *MsgActualizeLegacyAddress

NewMsgActualizeLegacyAddress creates a new instance of MsgActualizeLegacyAddress.

func (*MsgActualizeLegacyAddress) Descriptor

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

func (*MsgActualizeLegacyAddress) GetSignBytes

func (msg *MsgActualizeLegacyAddress) GetSignBytes() []byte

GetSignBytes returns the canonical byte representation of the message used to generate a signature.

func (*MsgActualizeLegacyAddress) GetSigners

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

GetSigners returns the list of signers required to sign the message.

func (*MsgActualizeLegacyAddress) Marshal

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

func (*MsgActualizeLegacyAddress) MarshalTo

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

func (*MsgActualizeLegacyAddress) MarshalToSizedBuffer

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

func (*MsgActualizeLegacyAddress) ProtoMessage

func (*MsgActualizeLegacyAddress) ProtoMessage()

func (*MsgActualizeLegacyAddress) Reset

func (m *MsgActualizeLegacyAddress) Reset()

func (*MsgActualizeLegacyAddress) Route

func (msg *MsgActualizeLegacyAddress) Route() string

Route returns name of the route for the message.

func (*MsgActualizeLegacyAddress) Size

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

func (*MsgActualizeLegacyAddress) String

func (m *MsgActualizeLegacyAddress) String() string

func (*MsgActualizeLegacyAddress) Type

func (msg *MsgActualizeLegacyAddress) Type() string

Type returns the name of the type for the message.

func (*MsgActualizeLegacyAddress) Unmarshal

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

func (*MsgActualizeLegacyAddress) ValidateBasic

func (msg *MsgActualizeLegacyAddress) ValidateBasic() error

ValidateBasic performs basic validation of the message.

func (*MsgActualizeLegacyAddress) XXX_DiscardUnknown

func (m *MsgActualizeLegacyAddress) XXX_DiscardUnknown()

func (*MsgActualizeLegacyAddress) XXX_Marshal

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

func (*MsgActualizeLegacyAddress) XXX_Merge

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

func (*MsgActualizeLegacyAddress) XXX_Size

func (m *MsgActualizeLegacyAddress) XXX_Size() int

func (*MsgActualizeLegacyAddress) XXX_Unmarshal

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

type MsgActualizeLegacyAddressResponse

type MsgActualizeLegacyAddressResponse struct {
	WalletsAddresses []string `protobuf:"bytes,1,rep,name=walletsAddresses,proto3" json:"wallets_addresses" yaml:"wallets_addresses"`
}

func (*MsgActualizeLegacyAddressResponse) Descriptor

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

func (*MsgActualizeLegacyAddressResponse) GetWalletsAddresses

func (m *MsgActualizeLegacyAddressResponse) GetWalletsAddresses() []string

func (*MsgActualizeLegacyAddressResponse) Marshal

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

func (*MsgActualizeLegacyAddressResponse) MarshalTo

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

func (*MsgActualizeLegacyAddressResponse) MarshalToSizedBuffer

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

func (*MsgActualizeLegacyAddressResponse) ProtoMessage

func (*MsgActualizeLegacyAddressResponse) ProtoMessage()

func (*MsgActualizeLegacyAddressResponse) Reset

func (*MsgActualizeLegacyAddressResponse) Size

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

func (*MsgActualizeLegacyAddressResponse) String

func (*MsgActualizeLegacyAddressResponse) Unmarshal

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

func (*MsgActualizeLegacyAddressResponse) XXX_DiscardUnknown

func (m *MsgActualizeLegacyAddressResponse) XXX_DiscardUnknown()

func (*MsgActualizeLegacyAddressResponse) XXX_Marshal

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

func (*MsgActualizeLegacyAddressResponse) XXX_Merge

func (*MsgActualizeLegacyAddressResponse) XXX_Size

func (m *MsgActualizeLegacyAddressResponse) XXX_Size() int

func (*MsgActualizeLegacyAddressResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreateTransaction(ctx context.Context, in *MsgCreateTransaction, opts ...grpc.CallOption) (*MsgCreateTransactionResponse, error)
	CreateWallet(ctx context.Context, in *MsgCreateWallet, opts ...grpc.CallOption) (*MsgCreateWalletResponse, error)
	SignTransaction(ctx context.Context, in *MsgSignTransaction, opts ...grpc.CallOption) (*MsgSignTransactionResponse, error)
	ActualizeLegacyAddress(ctx context.Context, in *MsgActualizeLegacyAddress, opts ...grpc.CallOption) (*MsgActualizeLegacyAddressResponse, 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 MsgCreateTransaction

type MsgCreateTransaction struct {
	Sender   string                                   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"`
	Wallet   string                                   `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
	Receiver string                                   `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver" yaml:"receiver"`
	Coins    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
}

func NewMsgCreateTransaction

func NewMsgCreateTransaction(
	sender sdk.AccAddress,
	wallet string,
	receiver string,
	coins sdk.Coins,
) *MsgCreateTransaction

NewMsgCreateTransaction creates a new MsgCreateTransaction instance.

func (*MsgCreateTransaction) Descriptor

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

func (*MsgCreateTransaction) GetSignBytes

func (msg *MsgCreateTransaction) GetSignBytes() []byte

GetSignBytes returns the canonical byte representation of the message used to generate a signature.

func (*MsgCreateTransaction) GetSigners

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

GetSigners returns the list of signers required to sign the message.

func (*MsgCreateTransaction) Marshal

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

func (*MsgCreateTransaction) MarshalTo

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

func (*MsgCreateTransaction) MarshalToSizedBuffer

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

func (*MsgCreateTransaction) ProtoMessage

func (*MsgCreateTransaction) ProtoMessage()

func (*MsgCreateTransaction) Reset

func (m *MsgCreateTransaction) Reset()

func (*MsgCreateTransaction) Route

func (msg *MsgCreateTransaction) Route() string

Route returns name of the route for the message.

func (*MsgCreateTransaction) Size

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

func (*MsgCreateTransaction) String

func (m *MsgCreateTransaction) String() string

func (*MsgCreateTransaction) Type

func (msg *MsgCreateTransaction) Type() string

Type returns the name of the type for the message.

func (*MsgCreateTransaction) Unmarshal

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

func (*MsgCreateTransaction) ValidateBasic

func (msg *MsgCreateTransaction) ValidateBasic() error

ValidateBasic performs basic validation of the message.

func (*MsgCreateTransaction) XXX_DiscardUnknown

func (m *MsgCreateTransaction) XXX_DiscardUnknown()

func (*MsgCreateTransaction) XXX_Marshal

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

func (*MsgCreateTransaction) XXX_Merge

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

func (*MsgCreateTransaction) XXX_Size

func (m *MsgCreateTransaction) XXX_Size() int

func (*MsgCreateTransaction) XXX_Unmarshal

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

type MsgCreateTransactionResponse

type MsgCreateTransactionResponse struct {
	TxID string `protobuf:"bytes,1,opt,name=txID,proto3" json:"tx_id" yaml:"tx_id"`
}

func (*MsgCreateTransactionResponse) Descriptor

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

func (*MsgCreateTransactionResponse) GetTxID

func (m *MsgCreateTransactionResponse) GetTxID() string

func (*MsgCreateTransactionResponse) Marshal

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

func (*MsgCreateTransactionResponse) MarshalTo

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

func (*MsgCreateTransactionResponse) MarshalToSizedBuffer

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

func (*MsgCreateTransactionResponse) ProtoMessage

func (*MsgCreateTransactionResponse) ProtoMessage()

func (*MsgCreateTransactionResponse) Reset

func (m *MsgCreateTransactionResponse) Reset()

func (*MsgCreateTransactionResponse) Size

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

func (*MsgCreateTransactionResponse) String

func (*MsgCreateTransactionResponse) Unmarshal

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

func (*MsgCreateTransactionResponse) XXX_DiscardUnknown

func (m *MsgCreateTransactionResponse) XXX_DiscardUnknown()

func (*MsgCreateTransactionResponse) XXX_Marshal

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

func (*MsgCreateTransactionResponse) XXX_Merge

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

func (*MsgCreateTransactionResponse) XXX_Size

func (m *MsgCreateTransactionResponse) XXX_Size() int

func (*MsgCreateTransactionResponse) XXX_Unmarshal

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

type MsgCreateWallet

type MsgCreateWallet struct {
	Sender    string   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"`
	Owners    []string `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners" yaml:"owners"`
	Weights   []uint64 `protobuf:"varint,3,rep,packed,name=weights,proto3" json:"weights,omitempty" yaml:"weights"`
	Threshold uint64   `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold" yaml:"threshold"`
}

func NewMsgCreateWallet

func NewMsgCreateWallet(
	sender sdk.AccAddress,
	owners []string,
	weights []uint64,
	threshold uint64,
) *MsgCreateWallet

func (*MsgCreateWallet) Descriptor

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

func (*MsgCreateWallet) GetSignBytes

func (msg *MsgCreateWallet) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgCreateWallet) GetSigners

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

GetSigners defines whose signature is required.

func (*MsgCreateWallet) Marshal

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

func (*MsgCreateWallet) MarshalTo

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

func (*MsgCreateWallet) MarshalToSizedBuffer

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

func (*MsgCreateWallet) ProtoMessage

func (*MsgCreateWallet) ProtoMessage()

func (*MsgCreateWallet) Reset

func (m *MsgCreateWallet) Reset()

func (MsgCreateWallet) Route

func (msg MsgCreateWallet) Route() string

Route should return the name of the module.

func (*MsgCreateWallet) Size

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

func (*MsgCreateWallet) String

func (m *MsgCreateWallet) String() string

func (MsgCreateWallet) Type

func (msg MsgCreateWallet) Type() string

Type should return the action.

func (*MsgCreateWallet) Unmarshal

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

func (MsgCreateWallet) ValidateBasic

func (msg MsgCreateWallet) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCreateWallet) XXX_DiscardUnknown

func (m *MsgCreateWallet) XXX_DiscardUnknown()

func (*MsgCreateWallet) XXX_Marshal

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

func (*MsgCreateWallet) XXX_Merge

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

func (*MsgCreateWallet) XXX_Size

func (m *MsgCreateWallet) XXX_Size() int

func (*MsgCreateWallet) XXX_Unmarshal

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

type MsgCreateWalletResponse

type MsgCreateWalletResponse struct {
	Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
}

func (*MsgCreateWalletResponse) Descriptor

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

func (*MsgCreateWalletResponse) GetWallet

func (m *MsgCreateWalletResponse) GetWallet() string

func (*MsgCreateWalletResponse) Marshal

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

func (*MsgCreateWalletResponse) MarshalTo

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

func (*MsgCreateWalletResponse) MarshalToSizedBuffer

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

func (*MsgCreateWalletResponse) ProtoMessage

func (*MsgCreateWalletResponse) ProtoMessage()

func (*MsgCreateWalletResponse) Reset

func (m *MsgCreateWalletResponse) Reset()

func (*MsgCreateWalletResponse) Size

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

func (*MsgCreateWalletResponse) String

func (m *MsgCreateWalletResponse) String() string

func (*MsgCreateWalletResponse) Unmarshal

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

func (*MsgCreateWalletResponse) XXX_DiscardUnknown

func (m *MsgCreateWalletResponse) XXX_DiscardUnknown()

func (*MsgCreateWalletResponse) XXX_Marshal

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

func (*MsgCreateWalletResponse) XXX_Merge

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

func (*MsgCreateWalletResponse) XXX_Size

func (m *MsgCreateWalletResponse) XXX_Size() int

func (*MsgCreateWalletResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSignTransaction

type MsgSignTransaction struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender" yaml:"sender"`
	TxID   string `protobuf:"bytes,2,opt,name=txID,proto3" json:"tx_id" yaml:"tx_id"`
}

func NewMsgSignTransaction

func NewMsgSignTransaction(
	sender sdk.AccAddress,
	txID string,
) *MsgSignTransaction

func (*MsgSignTransaction) Descriptor

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

func (*MsgSignTransaction) GetSignBytes

func (msg *MsgSignTransaction) GetSignBytes() []byte

GetSignBytes returns the canonical byte representation of the message used to generate a signature.

func (*MsgSignTransaction) GetSigners

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

GetSigners returns the list of signers required to sign the message.

func (*MsgSignTransaction) Marshal

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

func (*MsgSignTransaction) MarshalTo

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

func (*MsgSignTransaction) MarshalToSizedBuffer

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

func (*MsgSignTransaction) ProtoMessage

func (*MsgSignTransaction) ProtoMessage()

func (*MsgSignTransaction) Reset

func (m *MsgSignTransaction) Reset()

func (*MsgSignTransaction) Route

func (msg *MsgSignTransaction) Route() string

Route returns name of the route for the message.

func (*MsgSignTransaction) Size

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

func (*MsgSignTransaction) String

func (m *MsgSignTransaction) String() string

func (*MsgSignTransaction) Type

func (msg *MsgSignTransaction) Type() string

Type returns the name of the type for the message.

func (*MsgSignTransaction) Unmarshal

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

func (*MsgSignTransaction) ValidateBasic

func (msg *MsgSignTransaction) ValidateBasic() error

ValidateBasic performs basic validation of the message.

func (*MsgSignTransaction) XXX_DiscardUnknown

func (m *MsgSignTransaction) XXX_DiscardUnknown()

func (*MsgSignTransaction) XXX_Marshal

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

func (*MsgSignTransaction) XXX_Merge

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

func (*MsgSignTransaction) XXX_Size

func (m *MsgSignTransaction) XXX_Size() int

func (*MsgSignTransaction) XXX_Unmarshal

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

type MsgSignTransactionResponse

type MsgSignTransactionResponse struct {
}

func (*MsgSignTransactionResponse) Descriptor

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

func (*MsgSignTransactionResponse) Marshal

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

func (*MsgSignTransactionResponse) MarshalTo

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

func (*MsgSignTransactionResponse) MarshalToSizedBuffer

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

func (*MsgSignTransactionResponse) ProtoMessage

func (*MsgSignTransactionResponse) ProtoMessage()

func (*MsgSignTransactionResponse) Reset

func (m *MsgSignTransactionResponse) Reset()

func (*MsgSignTransactionResponse) Size

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

func (*MsgSignTransactionResponse) String

func (m *MsgSignTransactionResponse) String() string

func (*MsgSignTransactionResponse) Unmarshal

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

func (*MsgSignTransactionResponse) XXX_DiscardUnknown

func (m *MsgSignTransactionResponse) XXX_DiscardUnknown()

func (*MsgSignTransactionResponse) XXX_Marshal

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

func (*MsgSignTransactionResponse) XXX_Merge

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

func (*MsgSignTransactionResponse) XXX_Size

func (m *MsgSignTransactionResponse) XXX_Size() int

func (*MsgSignTransactionResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Retrieves existing wallets by owner address.
	Wallets(ctx context.Context, in *QueryWalletsRequest, opts ...grpc.CallOption) (*QueryWalletsResponse, error)
	// Retrieves existing wallet by address.
	Wallet(ctx context.Context, in *QueryWalletRequest, opts ...grpc.CallOption) (*QueryWalletResponse, error)
	// Retrieves existing transactions by wallet address.
	Transactions(ctx context.Context, in *QueryTransactionsRequest, opts ...grpc.CallOption) (*QueryTransactionsResponse, error)
	// Retrieves existing transaction by id.
	Transaction(ctx context.Context, in *QueryTransactionRequest, opts ...grpc.CallOption) (*QueryTransactionResponse, 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 QueryServer

type QueryServer interface {
	// Retrieves existing wallets by owner address.
	Wallets(context.Context, *QueryWalletsRequest) (*QueryWalletsResponse, error)
	// Retrieves existing wallet by address.
	Wallet(context.Context, *QueryWalletRequest) (*QueryWalletResponse, error)
	// Retrieves existing transactions by wallet address.
	Transactions(context.Context, *QueryTransactionsRequest) (*QueryTransactionsResponse, error)
	// Retrieves existing transaction by id.
	Transaction(context.Context, *QueryTransactionRequest) (*QueryTransactionResponse, error)
}

QueryServer is the server API for Query service.

type QueryTransactionRequest

type QueryTransactionRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryTransactionRequest) Descriptor

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

func (*QueryTransactionRequest) GetId

func (m *QueryTransactionRequest) GetId() string

func (*QueryTransactionRequest) Marshal

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

func (*QueryTransactionRequest) MarshalTo

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

func (*QueryTransactionRequest) MarshalToSizedBuffer

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

func (*QueryTransactionRequest) ProtoMessage

func (*QueryTransactionRequest) ProtoMessage()

func (*QueryTransactionRequest) Reset

func (m *QueryTransactionRequest) Reset()

func (*QueryTransactionRequest) Size

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

func (*QueryTransactionRequest) String

func (m *QueryTransactionRequest) String() string

func (*QueryTransactionRequest) Unmarshal

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

func (*QueryTransactionRequest) XXX_DiscardUnknown

func (m *QueryTransactionRequest) XXX_DiscardUnknown()

func (*QueryTransactionRequest) XXX_Marshal

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

func (*QueryTransactionRequest) XXX_Merge

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

func (*QueryTransactionRequest) XXX_Size

func (m *QueryTransactionRequest) XXX_Size() int

func (*QueryTransactionRequest) XXX_Unmarshal

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

type QueryTransactionResponse

type QueryTransactionResponse struct {
	Transaction Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction"`
}

func (*QueryTransactionResponse) Descriptor

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

func (*QueryTransactionResponse) GetTransaction

func (m *QueryTransactionResponse) GetTransaction() Transaction

func (*QueryTransactionResponse) Marshal

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

func (*QueryTransactionResponse) MarshalTo

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

func (*QueryTransactionResponse) MarshalToSizedBuffer

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

func (*QueryTransactionResponse) ProtoMessage

func (*QueryTransactionResponse) ProtoMessage()

func (*QueryTransactionResponse) Reset

func (m *QueryTransactionResponse) Reset()

func (*QueryTransactionResponse) Size

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

func (*QueryTransactionResponse) String

func (m *QueryTransactionResponse) String() string

func (*QueryTransactionResponse) Unmarshal

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

func (*QueryTransactionResponse) XXX_DiscardUnknown

func (m *QueryTransactionResponse) XXX_DiscardUnknown()

func (*QueryTransactionResponse) XXX_Marshal

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

func (*QueryTransactionResponse) XXX_Merge

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

func (*QueryTransactionResponse) XXX_Size

func (m *QueryTransactionResponse) XXX_Size() int

func (*QueryTransactionResponse) XXX_Unmarshal

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

type QueryTransactionsRequest

type QueryTransactionsRequest struct {
	Address    string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryTransactionsRequest) Descriptor

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

func (*QueryTransactionsRequest) GetAddress

func (m *QueryTransactionsRequest) GetAddress() string

func (*QueryTransactionsRequest) GetPagination

func (m *QueryTransactionsRequest) GetPagination() *query.PageRequest

func (*QueryTransactionsRequest) Marshal

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

func (*QueryTransactionsRequest) MarshalTo

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

func (*QueryTransactionsRequest) MarshalToSizedBuffer

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

func (*QueryTransactionsRequest) ProtoMessage

func (*QueryTransactionsRequest) ProtoMessage()

func (*QueryTransactionsRequest) Reset

func (m *QueryTransactionsRequest) Reset()

func (*QueryTransactionsRequest) Size

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

func (*QueryTransactionsRequest) String

func (m *QueryTransactionsRequest) String() string

func (*QueryTransactionsRequest) Unmarshal

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

func (*QueryTransactionsRequest) XXX_DiscardUnknown

func (m *QueryTransactionsRequest) XXX_DiscardUnknown()

func (*QueryTransactionsRequest) XXX_Marshal

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

func (*QueryTransactionsRequest) XXX_Merge

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

func (*QueryTransactionsRequest) XXX_Size

func (m *QueryTransactionsRequest) XXX_Size() int

func (*QueryTransactionsRequest) XXX_Unmarshal

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

type QueryTransactionsResponse

type QueryTransactionsResponse struct {
	Transactions []Transaction       `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions"`
	Pagination   *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryTransactionsResponse) Descriptor

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

func (*QueryTransactionsResponse) GetPagination

func (m *QueryTransactionsResponse) GetPagination() *query.PageResponse

func (*QueryTransactionsResponse) GetTransactions

func (m *QueryTransactionsResponse) GetTransactions() []Transaction

func (*QueryTransactionsResponse) Marshal

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

func (*QueryTransactionsResponse) MarshalTo

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

func (*QueryTransactionsResponse) MarshalToSizedBuffer

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

func (*QueryTransactionsResponse) ProtoMessage

func (*QueryTransactionsResponse) ProtoMessage()

func (*QueryTransactionsResponse) Reset

func (m *QueryTransactionsResponse) Reset()

func (*QueryTransactionsResponse) Size

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

func (*QueryTransactionsResponse) String

func (m *QueryTransactionsResponse) String() string

func (*QueryTransactionsResponse) Unmarshal

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

func (*QueryTransactionsResponse) XXX_DiscardUnknown

func (m *QueryTransactionsResponse) XXX_DiscardUnknown()

func (*QueryTransactionsResponse) XXX_Marshal

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

func (*QueryTransactionsResponse) XXX_Merge

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

func (*QueryTransactionsResponse) XXX_Size

func (m *QueryTransactionsResponse) XXX_Size() int

func (*QueryTransactionsResponse) XXX_Unmarshal

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

type QueryWalletRequest

type QueryWalletRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryWalletRequest) Descriptor

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

func (*QueryWalletRequest) GetAddress

func (m *QueryWalletRequest) GetAddress() string

func (*QueryWalletRequest) Marshal

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

func (*QueryWalletRequest) MarshalTo

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

func (*QueryWalletRequest) MarshalToSizedBuffer

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

func (*QueryWalletRequest) ProtoMessage

func (*QueryWalletRequest) ProtoMessage()

func (*QueryWalletRequest) Reset

func (m *QueryWalletRequest) Reset()

func (*QueryWalletRequest) Size

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

func (*QueryWalletRequest) String

func (m *QueryWalletRequest) String() string

func (*QueryWalletRequest) Unmarshal

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

func (*QueryWalletRequest) XXX_DiscardUnknown

func (m *QueryWalletRequest) XXX_DiscardUnknown()

func (*QueryWalletRequest) XXX_Marshal

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

func (*QueryWalletRequest) XXX_Merge

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

func (*QueryWalletRequest) XXX_Size

func (m *QueryWalletRequest) XXX_Size() int

func (*QueryWalletRequest) XXX_Unmarshal

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

type QueryWalletResponse

type QueryWalletResponse struct {
	Wallet Wallet `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet"`
}

func (*QueryWalletResponse) Descriptor

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

func (*QueryWalletResponse) GetWallet

func (m *QueryWalletResponse) GetWallet() Wallet

func (*QueryWalletResponse) Marshal

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

func (*QueryWalletResponse) MarshalTo

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

func (*QueryWalletResponse) MarshalToSizedBuffer

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

func (*QueryWalletResponse) ProtoMessage

func (*QueryWalletResponse) ProtoMessage()

func (*QueryWalletResponse) Reset

func (m *QueryWalletResponse) Reset()

func (*QueryWalletResponse) Size

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

func (*QueryWalletResponse) String

func (m *QueryWalletResponse) String() string

func (*QueryWalletResponse) Unmarshal

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

func (*QueryWalletResponse) XXX_DiscardUnknown

func (m *QueryWalletResponse) XXX_DiscardUnknown()

func (*QueryWalletResponse) XXX_Marshal

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

func (*QueryWalletResponse) XXX_Merge

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

func (*QueryWalletResponse) XXX_Size

func (m *QueryWalletResponse) XXX_Size() int

func (*QueryWalletResponse) XXX_Unmarshal

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

type QueryWalletsRequest

type QueryWalletsRequest struct {
	Owner      string             `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryWalletsRequest) Descriptor

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

func (*QueryWalletsRequest) GetOwner

func (m *QueryWalletsRequest) GetOwner() string

func (*QueryWalletsRequest) GetPagination

func (m *QueryWalletsRequest) GetPagination() *query.PageRequest

func (*QueryWalletsRequest) Marshal

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

func (*QueryWalletsRequest) MarshalTo

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

func (*QueryWalletsRequest) MarshalToSizedBuffer

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

func (*QueryWalletsRequest) ProtoMessage

func (*QueryWalletsRequest) ProtoMessage()

func (*QueryWalletsRequest) Reset

func (m *QueryWalletsRequest) Reset()

func (*QueryWalletsRequest) Size

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

func (*QueryWalletsRequest) String

func (m *QueryWalletsRequest) String() string

func (*QueryWalletsRequest) Unmarshal

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

func (*QueryWalletsRequest) XXX_DiscardUnknown

func (m *QueryWalletsRequest) XXX_DiscardUnknown()

func (*QueryWalletsRequest) XXX_Marshal

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

func (*QueryWalletsRequest) XXX_Merge

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

func (*QueryWalletsRequest) XXX_Size

func (m *QueryWalletsRequest) XXX_Size() int

func (*QueryWalletsRequest) XXX_Unmarshal

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

type QueryWalletsResponse

type QueryWalletsResponse struct {
	Wallets    []Wallet            `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryWalletsResponse) Descriptor

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

func (*QueryWalletsResponse) GetPagination

func (m *QueryWalletsResponse) GetPagination() *query.PageResponse

func (*QueryWalletsResponse) GetWallets

func (m *QueryWalletsResponse) GetWallets() []Wallet

func (*QueryWalletsResponse) Marshal

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

func (*QueryWalletsResponse) MarshalTo

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

func (*QueryWalletsResponse) MarshalToSizedBuffer

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

func (*QueryWalletsResponse) ProtoMessage

func (*QueryWalletsResponse) ProtoMessage()

func (*QueryWalletsResponse) Reset

func (m *QueryWalletsResponse) Reset()

func (*QueryWalletsResponse) Size

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

func (*QueryWalletsResponse) String

func (m *QueryWalletsResponse) String() string

func (*QueryWalletsResponse) Unmarshal

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

func (*QueryWalletsResponse) XXX_DiscardUnknown

func (m *QueryWalletsResponse) XXX_DiscardUnknown()

func (*QueryWalletsResponse) XXX_Marshal

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

func (*QueryWalletsResponse) XXX_Merge

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

func (*QueryWalletsResponse) XXX_Size

func (m *QueryWalletsResponse) XXX_Size() int

func (*QueryWalletsResponse) XXX_Unmarshal

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

type Transaction

type Transaction struct {
	Id        string                                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
	Wallet    string                                   `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
	Receiver  string                                   `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver" yaml:"receiver"`
	Coins     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
	Signers   []string                                 `protobuf:"bytes,5,rep,name=signers,proto3" json:"signers" yaml:"signers"`
	CreatedAt int64                                    `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at" yaml:"created_at"`
}

func NewTransaction

func NewTransaction(wallet, receiver string, coins sdk.Coins, signersCount int, height int64, salt []byte) (*Transaction, error)

NewTransaction returns a new Transaction.

func (*Transaction) Descriptor

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

func (*Transaction) Marshal

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

func (*Transaction) MarshalTo

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

func (*Transaction) MarshalToSizedBuffer

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

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) Size

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

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

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

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

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

func (*Transaction) XXX_Merge

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

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ActualizeLegacyAddress

func (*UnimplementedMsgServer) CreateTransaction

func (*UnimplementedMsgServer) CreateWallet

func (*UnimplementedMsgServer) SignTransaction

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Transaction

func (*UnimplementedQueryServer) Transactions

func (*UnimplementedQueryServer) Wallet

func (*UnimplementedQueryServer) Wallets

type Wallet

type Wallet struct {
	Address      string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address" yaml:"address"`
	Owners       []string `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners" yaml:"owners"`
	Weights      []uint64 `protobuf:"varint,3,rep,packed,name=weights,proto3" json:"weights" yaml:"weights"`
	Threshold    uint64   `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold" yaml:"threshold"`
	LegacyOwners []string `protobuf:"bytes,5,rep,name=legacyOwners,proto3" json:"legacy_owners" yaml:"legacy_owners"`
}

func NewWallet

func NewWallet(owners []string, weights []uint64, threshold uint64, salt []byte) (*Wallet, error)

NewWallet returns a new Wallet.

func (*Wallet) Descriptor

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

func (*Wallet) Marshal

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

func (*Wallet) MarshalTo

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

func (*Wallet) MarshalToSizedBuffer

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

func (*Wallet) ProtoMessage

func (*Wallet) ProtoMessage()

func (*Wallet) Reset

func (m *Wallet) Reset()

func (*Wallet) Size

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

func (*Wallet) String

func (m *Wallet) String() string

func (*Wallet) Unmarshal

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

func (*Wallet) XXX_DiscardUnknown

func (m *Wallet) XXX_DiscardUnknown()

func (*Wallet) XXX_Marshal

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

func (*Wallet) XXX_Merge

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

func (*Wallet) XXX_Size

func (m *Wallet) XXX_Size() int

func (*Wallet) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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