types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 33 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 (
	// 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"
)
View Source
const (
	QueryWallet       = "wallet"
	QueryWallets      = "wallets"
	QueryTransaction  = "transaction"
	QueryTransactions = "transactions"
)
View Source
const MultisigTransactionIDPrefix = "d0mstx"

MultisigTransactionIDPrefix is prefix for multisig transaction ID.

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyPrefixWallet      = []byte{prefixWallet}      // 0x01
	KeyPrefixTransaction = []byte{prefixTransaction} // 0x02

	KeyPrefixUniversalTransaction = []byte{prefixUniversalTransaction} // 0x02
	KeyPrefixCompletedTransaction = []byte{prefixCompleted}
)

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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

ModuleCdc references the global multisig 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/multisig and defined at the application level.

Functions

func ExtractSignerFromKey added in v0.0.8

func ExtractSignerFromKey(key []byte, txID string) string

func GetSignatureKey added in v0.0.8

func GetSignatureKey(txID string, signer string) []byte

func GetSignaturePrefixKey added in v0.0.8

func GetSignaturePrefixKey(txID string) []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers concrete implementations of specific interfaces.

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 EventCreateTransaction added in v0.0.8

type EventCreateTransaction struct {
	Sender      string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Wallet      string `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Transaction string `protobuf:"bytes,4,opt,name=transaction,proto3" json:"transaction,omitempty"`
}

EventCreateTransaction defines event emitted when new multisig transaction is created.

func (*EventCreateTransaction) Descriptor added in v0.0.8

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

func (*EventCreateTransaction) GetSender added in v0.0.8

func (m *EventCreateTransaction) GetSender() string

func (*EventCreateTransaction) GetTransaction added in v0.0.8

func (m *EventCreateTransaction) GetTransaction() string

func (*EventCreateTransaction) GetWallet added in v0.0.8

func (m *EventCreateTransaction) GetWallet() string

func (*EventCreateTransaction) Marshal added in v0.0.8

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

func (*EventCreateTransaction) MarshalTo added in v0.0.8

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

func (*EventCreateTransaction) MarshalToSizedBuffer added in v0.0.8

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

func (*EventCreateTransaction) ProtoMessage added in v0.0.8

func (*EventCreateTransaction) ProtoMessage()

func (*EventCreateTransaction) Reset added in v0.0.8

func (m *EventCreateTransaction) Reset()

func (*EventCreateTransaction) Size added in v0.0.8

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

func (*EventCreateTransaction) String added in v0.0.8

func (m *EventCreateTransaction) String() string

func (*EventCreateTransaction) Unmarshal added in v0.0.8

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

func (*EventCreateTransaction) XXX_DiscardUnknown added in v0.0.8

func (m *EventCreateTransaction) XXX_DiscardUnknown()

func (*EventCreateTransaction) XXX_Marshal added in v0.0.8

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

func (*EventCreateTransaction) XXX_Merge added in v0.0.8

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

func (*EventCreateTransaction) XXX_Size added in v0.0.8

func (m *EventCreateTransaction) XXX_Size() int

func (*EventCreateTransaction) XXX_Unmarshal added in v0.0.8

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

type EventCreateWallet added in v0.0.8

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

EventCreateWallet defines event emitted when new multisig wallet is created.

func (*EventCreateWallet) Descriptor added in v0.0.8

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

func (*EventCreateWallet) GetOwners added in v0.0.8

func (m *EventCreateWallet) GetOwners() []string

func (*EventCreateWallet) GetSender added in v0.0.8

func (m *EventCreateWallet) GetSender() string

func (*EventCreateWallet) GetThreshold added in v0.0.8

func (m *EventCreateWallet) GetThreshold() uint32

func (*EventCreateWallet) GetWallet added in v0.0.8

func (m *EventCreateWallet) GetWallet() string

func (*EventCreateWallet) GetWeights added in v0.0.8

func (m *EventCreateWallet) GetWeights() []uint32

func (*EventCreateWallet) Marshal added in v0.0.8

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

func (*EventCreateWallet) MarshalTo added in v0.0.8

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

func (*EventCreateWallet) MarshalToSizedBuffer added in v0.0.8

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

func (*EventCreateWallet) ProtoMessage added in v0.0.8

func (*EventCreateWallet) ProtoMessage()

func (*EventCreateWallet) Reset added in v0.0.8

func (m *EventCreateWallet) Reset()

func (*EventCreateWallet) Size added in v0.0.8

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

func (*EventCreateWallet) String added in v0.0.8

func (m *EventCreateWallet) String() string

func (*EventCreateWallet) Unmarshal added in v0.0.8

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

func (*EventCreateWallet) XXX_DiscardUnknown added in v0.0.8

func (m *EventCreateWallet) XXX_DiscardUnknown()

func (*EventCreateWallet) XXX_Marshal added in v0.0.8

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

func (*EventCreateWallet) XXX_Merge added in v0.0.8

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

func (*EventCreateWallet) XXX_Size added in v0.0.8

func (m *EventCreateWallet) XXX_Size() int

func (*EventCreateWallet) XXX_Unmarshal added in v0.0.8

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

type EventSignTransaction added in v0.0.8

type EventSignTransaction struct {
	Sender        string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Wallet        string `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Transaction   string `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"`
	SignerWeight  uint32 `protobuf:"varint,4,opt,name=signer_weight,json=signerWeight,proto3" json:"signer_weight,omitempty"`
	Confirmations uint32 `protobuf:"varint,5,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	Confirmed     bool   `protobuf:"varint,6,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
}

EventSignTransaction defines event emitted when existing multisig transaction is signed by another owner.

func (*EventSignTransaction) Descriptor added in v0.0.8

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

func (*EventSignTransaction) GetConfirmations added in v0.0.8

func (m *EventSignTransaction) GetConfirmations() uint32

func (*EventSignTransaction) GetConfirmed added in v0.0.8

func (m *EventSignTransaction) GetConfirmed() bool

func (*EventSignTransaction) GetSender added in v0.0.8

func (m *EventSignTransaction) GetSender() string

func (*EventSignTransaction) GetSignerWeight added in v0.0.8

func (m *EventSignTransaction) GetSignerWeight() uint32

func (*EventSignTransaction) GetTransaction added in v0.0.8

func (m *EventSignTransaction) GetTransaction() string

func (*EventSignTransaction) GetWallet added in v0.0.8

func (m *EventSignTransaction) GetWallet() string

func (*EventSignTransaction) Marshal added in v0.0.8

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

func (*EventSignTransaction) MarshalTo added in v0.0.8

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

func (*EventSignTransaction) MarshalToSizedBuffer added in v0.0.8

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

func (*EventSignTransaction) ProtoMessage added in v0.0.8

func (*EventSignTransaction) ProtoMessage()

func (*EventSignTransaction) Reset added in v0.0.8

func (m *EventSignTransaction) Reset()

func (*EventSignTransaction) Size added in v0.0.8

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

func (*EventSignTransaction) String added in v0.0.8

func (m *EventSignTransaction) String() string

func (*EventSignTransaction) Unmarshal added in v0.0.8

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

func (*EventSignTransaction) XXX_DiscardUnknown added in v0.0.8

func (m *EventSignTransaction) XXX_DiscardUnknown()

func (*EventSignTransaction) XXX_Marshal added in v0.0.8

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

func (*EventSignTransaction) XXX_Merge added in v0.0.8

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

func (*EventSignTransaction) XXX_Size added in v0.0.8

func (m *EventSignTransaction) XXX_Size() int

func (*EventSignTransaction) XXX_Unmarshal added in v0.0.8

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

type GenesisState

type GenesisState struct {
	// wallets defines all registered multisig wallets.
	Wallets []Wallet `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets"`
	// transactions defines all registered multisig transactions.
	Transactions []GenesisTransaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions"`
	// params defines all the module's parameters.
	Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"`
}

GenesisState defines the module's genesis state.

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) GetParams added in v0.0.8

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTransactions added in v0.0.8

func (m *GenesisState) GetTransactions() []GenesisTransaction

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 GenesisTransaction added in v0.1.0

type GenesisTransaction struct {
	Id        string                                   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Wallet    string                                   `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Receiver  string                                   `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	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"`
	Signers   []string                                 `protobuf:"bytes,5,rep,name=signers,proto3" json:"signers,omitempty"`
	CreatedAt int64                                    `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}

GenesisTransaction defines old multisig transaction (only send coins).

func (*GenesisTransaction) Descriptor added in v0.1.0

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

func (*GenesisTransaction) GetCoins added in v0.1.0

func (*GenesisTransaction) GetCreatedAt added in v0.1.0

func (m *GenesisTransaction) GetCreatedAt() int64

func (*GenesisTransaction) GetId added in v0.1.0

func (m *GenesisTransaction) GetId() string

func (*GenesisTransaction) GetReceiver added in v0.1.0

func (m *GenesisTransaction) GetReceiver() string

func (*GenesisTransaction) GetSigners added in v0.1.0

func (m *GenesisTransaction) GetSigners() []string

func (*GenesisTransaction) GetWallet added in v0.1.0

func (m *GenesisTransaction) GetWallet() string

func (*GenesisTransaction) Marshal added in v0.1.0

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

func (*GenesisTransaction) MarshalTo added in v0.1.0

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

func (*GenesisTransaction) MarshalToSizedBuffer added in v0.1.0

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

func (*GenesisTransaction) ProtoMessage added in v0.1.0

func (*GenesisTransaction) ProtoMessage()

func (*GenesisTransaction) Reset added in v0.1.0

func (m *GenesisTransaction) Reset()

func (*GenesisTransaction) Size added in v0.1.0

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

func (*GenesisTransaction) String added in v0.1.0

func (m *GenesisTransaction) String() string

func (*GenesisTransaction) Unmarshal added in v0.1.0

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

func (*GenesisTransaction) XXX_DiscardUnknown added in v0.1.0

func (m *GenesisTransaction) XXX_DiscardUnknown()

func (*GenesisTransaction) XXX_Marshal added in v0.1.0

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

func (*GenesisTransaction) XXX_Merge added in v0.1.0

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

func (*GenesisTransaction) XXX_Size added in v0.1.0

func (m *GenesisTransaction) XXX_Size() int

func (*GenesisTransaction) XXX_Unmarshal added in v0.1.0

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

type MsgClient

type MsgClient interface {
	// CreateWallet defines message for creating multisig wallet.
	CreateWallet(ctx context.Context, in *MsgCreateWallet, opts ...grpc.CallOption) (*MsgCreateWalletResponse, error)
	// CreateTransaction defines message for creating multisig transaction in existing wallet.
	CreateTransaction(ctx context.Context, in *MsgCreateTransaction, opts ...grpc.CallOption) (*MsgCreateTransactionResponse, error)
	// SignTransaction defines message for signing existing multisig transaction.
	SignTransaction(ctx context.Context, in *MsgSignTransaction, opts ...grpc.CallOption) (*MsgSignTransactionResponse, 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,omitempty"`
	Wallet  string     `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Content *types.Any `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
}

MsgCreateTransaction defines a SDK message for creating multisig transaction in existing wallet.

func NewMsgCreateTransaction

func NewMsgCreateTransaction(
	sender sdk.AccAddress,
	wallet string,
	content sdk.Msg,
) (*MsgCreateTransaction, error)

NewMsgCreateTransaction creates a new MsgCreateTransaction instance.

func (*MsgCreateTransaction) Descriptor

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

func (*MsgCreateTransaction) GetContent added in v0.0.8

func (m *MsgCreateTransaction) GetContent() *types.Any

func (*MsgCreateTransaction) GetSender added in v0.0.8

func (m *MsgCreateTransaction) GetSender() string

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) GetWallet added in v0.0.8

func (m *MsgCreateTransaction) GetWallet() string

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 {
	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

MsgCreateTransactionResponse defines the MsgCreateTransaction response type.

func (*MsgCreateTransactionResponse) Descriptor

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

func (*MsgCreateTransactionResponse) GetID added in v0.0.8

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,omitempty"`
	Owners    []string `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners,omitempty"`
	Weights   []uint32 `protobuf:"varint,3,rep,packed,name=weights,proto3" json:"weights,omitempty"`
	Threshold uint32   `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
}

MsgCreateWallet defines a SDK message for creating multisig wallet.

func NewMsgCreateWallet

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

func (*MsgCreateWallet) Descriptor

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

func (*MsgCreateWallet) GetOwners added in v0.0.8

func (m *MsgCreateWallet) GetOwners() []string

func (*MsgCreateWallet) GetSender added in v0.0.8

func (m *MsgCreateWallet) GetSender() string

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) GetThreshold added in v0.0.8

func (m *MsgCreateWallet) GetThreshold() uint32

func (*MsgCreateWallet) GetWeights added in v0.0.8

func (m *MsgCreateWallet) GetWeights() []uint32

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

MsgCreateWalletResponse defines the Msg/CreateWallet response type.

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

type MsgServer interface {
	// CreateWallet defines message for creating multisig wallet.
	CreateWallet(context.Context, *MsgCreateWallet) (*MsgCreateWalletResponse, error)
	// CreateTransaction defines message for creating multisig transaction in existing wallet.
	CreateTransaction(context.Context, *MsgCreateTransaction) (*MsgCreateTransactionResponse, error)
	// SignTransaction defines message for signing existing multisig transaction.
	SignTransaction(context.Context, *MsgSignTransaction) (*MsgSignTransactionResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSignTransaction

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

MsgSignTransaction defines a SDK message for signing existing multisig transaction.

func NewMsgSignTransaction

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

func (*MsgSignTransaction) Descriptor

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

func (*MsgSignTransaction) GetID added in v0.0.8

func (m *MsgSignTransaction) GetID() string

func (*MsgSignTransaction) GetSender added in v0.0.8

func (m *MsgSignTransaction) GetSender() string

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 {
}

MsgSignTransactionResponse defines the Msg/SignTransaction response type.

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 Params added in v0.0.8

type Params struct {
}

Params defines the parameters for the module.

func (*Params) Descriptor added in v0.0.8

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

func (*Params) Equal added in v0.0.8

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal added in v0.0.8

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

func (*Params) MarshalTo added in v0.0.8

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

func (*Params) MarshalToSizedBuffer added in v0.0.8

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

func (*Params) ProtoMessage added in v0.0.8

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.0.8

func (m *Params) Reset()

func (*Params) Size added in v0.0.8

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

func (*Params) String added in v0.0.8

func (m *Params) String() string

func (*Params) Unmarshal added in v0.0.8

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

func (*Params) XXX_DiscardUnknown added in v0.0.8

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.0.8

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

func (*Params) XXX_Merge added in v0.0.8

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

func (*Params) XXX_Size added in v0.0.8

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.0.8

func (m *Params) 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 wallet 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 wallet 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"`
}

QueryTransactionRequest is request type for the Query/Transaction RPC method.

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"`
	Signers     []string    `protobuf:"bytes,2,rep,name=signers,proto3" json:"signers,omitempty"`
	Completed   bool        `protobuf:"varint,3,opt,name=completed,proto3" json:"completed,omitempty"`
}

QueryTransactionResponse is response type for the Query/Transaction RPC method.

func (*QueryTransactionResponse) Descriptor

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

func (*QueryTransactionResponse) GetCompleted added in v0.0.8

func (m *QueryTransactionResponse) GetCompleted() bool

func (*QueryTransactionResponse) GetSigners added in v0.0.8

func (m *QueryTransactionResponse) GetSigners() []string

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 {
	Wallet     string             `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTransactionsRequest is request type for the Query/Transactions RPC method.

func (*QueryTransactionsRequest) Descriptor

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

func (*QueryTransactionsRequest) GetPagination

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

func (*QueryTransactionsRequest) GetWallet added in v0.0.8

func (m *QueryTransactionsRequest) GetWallet() string

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

QueryTransactionsResponse is response type for the Query/Transactions RPC method.

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 {
	Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet,omitempty"`
}

QueryWalletRequest is request type for the Query/Wallet RPC method.

func (*QueryWalletRequest) Descriptor

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

func (*QueryWalletRequest) GetWallet added in v0.0.8

func (m *QueryWalletRequest) GetWallet() 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"`
}

QueryWalletResponse is response type for the Query/Wallet RPC method.

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

QueryWalletsRequest is request type for the Query/Wallets RPC method.

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

QueryWalletsResponse is response type for the Query/Wallets RPC method.

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,omitempty"`
	Wallet    string    `protobuf:"bytes,2,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Message   types.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message"`
	CreatedAt int64     `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}

Transaction defines multisig transaction.

func NewTransaction

func NewTransaction(unpacker codectypes.AnyUnpacker, wallet string, txContent codectypes.Any, signersCount int, height int64, salt []byte) (*Transaction, error)

NewTransaction returns a new Transaction.

func (*Transaction) Descriptor

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

func (*Transaction) Equal added in v0.0.8

func (this *Transaction) Equal(that interface{}) bool

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) 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,omitempty"`
	Owners    []string `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners,omitempty"`
	Weights   []uint32 `protobuf:"varint,3,rep,packed,name=weights,proto3" json:"weights,omitempty"`
	Threshold uint32   `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
}

Wallet defines multisig wallet.

func NewWallet

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

NewWallet returns a new Wallet.

func (*Wallet) Descriptor

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

func (*Wallet) Equal added in v0.0.8

func (this *Wallet) Equal(that interface{}) bool

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