types

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: AGPL-3.0, Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// The Account module uses "acc" as its module name.
	// KVStore keys cannot have other keys as prefixes so we prepend "dydx" to "accountplus"
	ModuleName = "dydxaccountplus"

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

Module name and store keys.

View Source
const (
	// SmartAccountKeyPrefix is the prefix key for all smart account store state.
	SmartAccountKeyPrefix = "SA/"

	// ParamsKeyPrefix is the prefix key for smart account params.
	ParamsKeyPrefix = SmartAccountKeyPrefix + "P/"

	// AuthenticatorKeyPrefix is the prefix key for all authenticators.
	AuthenticatorKeyPrefix = SmartAccountKeyPrefix + "A/"

	// AuthenticatorIdKeyPrefix is the prefix key for the next authenticator id.
	AuthenticatorIdKeyPrefix = SmartAccountKeyPrefix + "ID/"
)

Below key prefixes are for smart account implementation.

View Source
const AUTHENTICATOR_DATA_MAX_LENGTH = 1024

AUTHENTICATOR_DATA_MAX_LENGTH is the maximum length of the data field in an authenticator.

This is used as a light-weight spam mitigation measure to prevent users from adding arbitrarily complex authenticators that are too resource intensive.

View Source
const (
	AccountStateKeyPrefix = "AS/"
)

Prefix for account state.

Variables

View Source
var (
	ErrInvalidLengthAccountplus        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccountplus          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccountplus = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrAuthenticatorNotFound = errorsmod.Register(
		ModuleName,
		1,
		"Authenticator is not found",
	)
	ErrInvalidAccountAddress = errorsmod.Register(
		ModuleName,
		2,
		"Invalid account address",
	)
	ErrAuthenticatorDataExceedsMaximumLength = errorsmod.Register(
		ModuleName,
		3,
		"Authenticator data exceeds maximum length",
	)
	ErrSmartAccountNotActive = errorsmod.Register(
		ModuleName,
		4,
		"Smart account is not active",
	)
	ErrInitializingAuthenticator = errorsmod.Register(
		ModuleName,
		5,
		"Error initializing authenticator",
	)
	ErrTxnHasMultipleSigners = errorsmod.Register(
		ModuleName,
		6,
		"The transaction has multiple signers",
	)

	// Errors for failing authenticator validation
	ErrSignatureVerification = errorsmod.Register(
		ModuleName,
		100,
		"Signature verification failed",
	)
	ErrMessageTypeVerification = errorsmod.Register(
		ModuleName,
		101,
		"Message type verification failed",
	)
	ErrClobPairIdVerification = errorsmod.Register(
		ModuleName,
		102,
		"Clob pair id verification failed",
	)
	ErrSubaccountVerification = errorsmod.Register(
		ModuleName,
		103,
		"Subaccount verification failed",
	)
	ErrAllOfVerification = errorsmod.Register(
		ModuleName,
		104,
		"AllOf verification failed",
	)
	ErrAnyOfVerification = errorsmod.Register(
		ModuleName,
		105,
		"AnyOf verification failed",
	)
)
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 (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = 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")
)

Functions

func BuildKey

func BuildKey(elements ...interface{}) []byte

BuildKey creates a key by concatenating the provided elements with the key separator.

func KeyAccountId

func KeyAccountId(account sdk.AccAddress, id uint64) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 AccountAuthenticator

type AccountAuthenticator struct {
	// ID uniquely identifies the authenticator instance.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Type specifies the category of the AccountAuthenticator.
	// This type information is essential for differentiating authenticators
	// and ensuring precise data retrieval from the storage layer.
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// Config is a versatile field used in conjunction with the specific type of
	// account authenticator to facilitate complex authentication processes.
	// The interpretation of this field is overloaded, enabling multiple
	// authenticators to utilize it for their respective purposes.
	Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
}

AccountAuthenticator represents a foundational model for all authenticators. It provides extensibility by allowing concrete types to interpret and validate transactions based on the encapsulated data.

func (*AccountAuthenticator) Descriptor

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

func (*AccountAuthenticator) GetConfig

func (m *AccountAuthenticator) GetConfig() []byte

func (*AccountAuthenticator) GetId

func (m *AccountAuthenticator) GetId() uint64

func (*AccountAuthenticator) GetType

func (m *AccountAuthenticator) GetType() string

func (*AccountAuthenticator) Marshal

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

func (*AccountAuthenticator) MarshalTo

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

func (*AccountAuthenticator) MarshalToSizedBuffer

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

func (*AccountAuthenticator) ProtoMessage

func (*AccountAuthenticator) ProtoMessage()

func (*AccountAuthenticator) Reset

func (m *AccountAuthenticator) Reset()

func (*AccountAuthenticator) Size

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

func (*AccountAuthenticator) String

func (m *AccountAuthenticator) String() string

func (*AccountAuthenticator) Unmarshal

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

func (*AccountAuthenticator) XXX_DiscardUnknown

func (m *AccountAuthenticator) XXX_DiscardUnknown()

func (*AccountAuthenticator) XXX_Marshal

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

func (*AccountAuthenticator) XXX_Merge

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

func (*AccountAuthenticator) XXX_Size

func (m *AccountAuthenticator) XXX_Size() int

func (*AccountAuthenticator) XXX_Unmarshal

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

type AccountState

type AccountState struct {
	Address               string                `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	TimestampNonceDetails TimestampNonceDetails `protobuf:"bytes,2,opt,name=timestamp_nonce_details,json=timestampNonceDetails,proto3" json:"timestamp_nonce_details"`
}

Account State

func (*AccountState) Descriptor

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

func (*AccountState) GetAddress

func (m *AccountState) GetAddress() string

func (*AccountState) GetTimestampNonceDetails

func (m *AccountState) GetTimestampNonceDetails() TimestampNonceDetails

func (*AccountState) Marshal

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

func (*AccountState) MarshalTo

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

func (*AccountState) MarshalToSizedBuffer

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

func (*AccountState) ProtoMessage

func (*AccountState) ProtoMessage()

func (*AccountState) Reset

func (m *AccountState) Reset()

func (*AccountState) Size

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

func (*AccountState) String

func (m *AccountState) String() string

func (*AccountState) Unmarshal

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

func (*AccountState) XXX_DiscardUnknown

func (m *AccountState) XXX_DiscardUnknown()

func (*AccountState) XXX_Marshal

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

func (*AccountState) XXX_Merge

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

func (*AccountState) XXX_Size

func (m *AccountState) XXX_Size() int

func (*AccountState) XXX_Unmarshal

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

type AccountStateRequest

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

AccountStateRequest is request type for the Query/AccountState RPC method.

func (*AccountStateRequest) Descriptor

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

func (*AccountStateRequest) GetAddress

func (m *AccountStateRequest) GetAddress() string

func (*AccountStateRequest) Marshal

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

func (*AccountStateRequest) MarshalTo

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

func (*AccountStateRequest) MarshalToSizedBuffer

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

func (*AccountStateRequest) ProtoMessage

func (*AccountStateRequest) ProtoMessage()

func (*AccountStateRequest) Reset

func (m *AccountStateRequest) Reset()

func (*AccountStateRequest) Size

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

func (*AccountStateRequest) String

func (m *AccountStateRequest) String() string

func (*AccountStateRequest) Unmarshal

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

func (*AccountStateRequest) XXX_DiscardUnknown

func (m *AccountStateRequest) XXX_DiscardUnknown()

func (*AccountStateRequest) XXX_Marshal

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

func (*AccountStateRequest) XXX_Merge

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

func (*AccountStateRequest) XXX_Size

func (m *AccountStateRequest) XXX_Size() int

func (*AccountStateRequest) XXX_Unmarshal

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

type AccountStateResponse

type AccountStateResponse struct {
	AccountState *AccountState `protobuf:"bytes,1,opt,name=account_state,json=accountState,proto3" json:"account_state,omitempty"`
}

AccountStateResponse is response type for the Query/GetAccountState RPC method.

func (*AccountStateResponse) Descriptor

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

func (*AccountStateResponse) GetAccountState

func (m *AccountStateResponse) GetAccountState() *AccountState

func (*AccountStateResponse) Marshal

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

func (*AccountStateResponse) MarshalTo

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

func (*AccountStateResponse) MarshalToSizedBuffer

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

func (*AccountStateResponse) ProtoMessage

func (*AccountStateResponse) ProtoMessage()

func (*AccountStateResponse) Reset

func (m *AccountStateResponse) Reset()

func (*AccountStateResponse) Size

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

func (*AccountStateResponse) String

func (m *AccountStateResponse) String() string

func (*AccountStateResponse) Unmarshal

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

func (*AccountStateResponse) XXX_DiscardUnknown

func (m *AccountStateResponse) XXX_DiscardUnknown()

func (*AccountStateResponse) XXX_Marshal

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

func (*AccountStateResponse) XXX_Merge

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

func (*AccountStateResponse) XXX_Size

func (m *AccountStateResponse) XXX_Size() int

func (*AccountStateResponse) XXX_Unmarshal

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

type AuthenticationRequest

type AuthenticationRequest struct {
	AuthenticatorId string         `json:"authenticator_id"`
	Account         sdk.AccAddress `json:"account"`
	FeePayer        sdk.AccAddress `json:"fee_payer"`
	FeeGranter      sdk.AccAddress `json:"fee_granter,omitempty"`
	Fee             sdk.Coins      `json:"fee"`
	Msg             sdk.Msg        `json:"msg"`

	// Since array size is int, and size depends on the system architecture,
	// we use uint64 to cover all available architectures.
	// It is unsigned, so at this point, it can't be negative.
	MsgIndex uint64 `json:"msg_index"`

	// Only allowing messages with a single signer, so the signature can be a single byte array.
	Signature           []byte                  `json:"signature"`
	SignModeTxData      SignModeData            `json:"sign_mode_tx_data"`
	TxData              ExplicitTxData          `json:"tx_data"`
	SignatureData       SimplifiedSignatureData `json:"signature_data"`
	Simulate            bool                    `json:"simulate"`
	AuthenticatorParams []byte                  `json:"authenticator_params,omitempty"`
}

type Authenticator

type Authenticator interface {
	// Type returns the specific type of the authenticator, such as SignatureVerification.
	// This type is used for registering and identifying the authenticator within the AuthenticatorManager.
	Type() string

	// StaticGas provides the fixed gas amount consumed for each invocation of this authenticator.
	// This is used for managing gas consumption during transaction verification.
	StaticGas() uint64

	// Initialize prepares the authenticator with necessary data from storage, specific to an account-authenticator pair.
	// This method is used for setting up the authenticator with data like a PublicKey for signature verification.
	Initialize(config []byte) (Authenticator, error)

	// Authenticate confirms the validity of a message using the provided authentication data.
	// NOTE: Any state changes made by this function will be discarded.
	// It's a core function within an ante handler to ensure message authenticity and enforce gas consumption.
	Authenticate(ctx sdk.Context, request AuthenticationRequest) error

	// Track allows the authenticator to record information, regardless of the transaction's authentication method.
	// NOTE: Any state changes made by this function will be written to the store as long as Authenticate succeeds
	// and will not be reverted if the message execution fails.
	// This function is used for the authenticator to acknowledge the execution of specific messages by an account.
	Track(ctx sdk.Context, request AuthenticationRequest) error

	// ConfirmExecution enforces transaction rules post-transaction, like spending and transaction limits.
	// It is used to verify execution-specific state and values, to allow authentication to be dependent on the
	// effects of a transaction.
	ConfirmExecution(ctx sdk.Context, request AuthenticationRequest) error

	// OnAuthenticatorAdded handles the addition of an authenticator to an account.
	// It checks the data format and compatibility, to maintain account security and authenticator integrity.
	OnAuthenticatorAdded(ctx sdk.Context, account sdk.AccAddress, config []byte, authenticatorId string) error

	// OnAuthenticatorRemoved manages the removal of an authenticator from an account.
	// This function is used for updating global data or preventing removal when necessary to maintain system stability.
	OnAuthenticatorRemoved(ctx sdk.Context, account sdk.AccAddress, config []byte, authenticatorId string) error
}

Authenticator is an interface that encapsulates all authentication functionalities essential for verifying transactions, paying transaction fees, and managing gas consumption during verification.

type AuthenticatorData

type AuthenticatorData struct {
	// address is an account address, one address can have many authenticators
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// authenticators are the account's authenticators, these can be multiple
	// types including SignatureVerification, AllOfs, CosmWasmAuthenticators, etc
	Authenticators []AccountAuthenticator `protobuf:"bytes,2,rep,name=authenticators,proto3" json:"authenticators"`
}

AuthenticatorData represents a genesis exported account with Authenticators. The address is used as the key, and the account authenticators are stored in the authenticators field.

func (*AuthenticatorData) Descriptor

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

func (*AuthenticatorData) GetAddress

func (m *AuthenticatorData) GetAddress() string

func (*AuthenticatorData) GetAuthenticators

func (m *AuthenticatorData) GetAuthenticators() []AccountAuthenticator

func (*AuthenticatorData) Marshal

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

func (*AuthenticatorData) MarshalTo

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

func (*AuthenticatorData) MarshalToSizedBuffer

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

func (*AuthenticatorData) ProtoMessage

func (*AuthenticatorData) ProtoMessage()

func (*AuthenticatorData) Reset

func (m *AuthenticatorData) Reset()

func (*AuthenticatorData) Size

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

func (*AuthenticatorData) String

func (m *AuthenticatorData) String() string

func (*AuthenticatorData) Unmarshal

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

func (*AuthenticatorData) XXX_DiscardUnknown

func (m *AuthenticatorData) XXX_DiscardUnknown()

func (*AuthenticatorData) XXX_Marshal

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

func (*AuthenticatorData) XXX_Merge

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

func (*AuthenticatorData) XXX_Size

func (m *AuthenticatorData) XXX_Size() int

func (*AuthenticatorData) XXX_Unmarshal

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

type AuthenticatorTxOptions

type AuthenticatorTxOptions interface {
	GetSelectedAuthenticators() []uint64
}

AuthenticatorTxOptions

type ConfirmExecutionRequest

type ConfirmExecutionRequest struct {
	AuthenticatorId     string         `json:"authenticator_id"`
	Account             sdk.AccAddress `json:"account"`
	FeePayer            sdk.AccAddress `json:"fee_payer"`
	FeeGranter          sdk.AccAddress `json:"fee_granter,omitempty"`
	Fee                 sdk.Coins      `json:"fee"`
	Msg                 sdk.Msg        `json:"msg"`
	MsgIndex            uint64         `json:"msg_index"`
	AuthenticatorParams []byte         `json:"authenticator_params,omitempty"`
}

type ExplicitTxData

type ExplicitTxData struct {
	ChainID         string    `json:"chain_id"`
	AccountNumber   uint64    `json:"account_number"`
	AccountSequence uint64    `json:"sequence"`
	TimeoutHeight   uint64    `json:"timeout_height"`
	Msgs            []sdk.Msg `json:"msgs"`
	Memo            string    `json:"memo"`
}

ExplicitTxData encapsulates key transaction data like chain ID, account info, and messages.

type GenesisState

type GenesisState struct {
	Accounts []AccountState `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts"`
	// params define the parameters for the authenticator module.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
	// next_authenticator_id is the next available authenticator ID.
	NextAuthenticatorId uint64 `protobuf:"varint,3,opt,name=next_authenticator_id,json=nextAuthenticatorId,proto3" json:"next_authenticator_id,omitempty"`
	// authenticator_data contains the data for multiple accounts, each with their
	// authenticators.
	AuthenticatorData []AuthenticatorData `protobuf:"bytes,4,rep,name=authenticator_data,json=authenticatorData,proto3" json:"authenticator_data"`
}

Module genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAccounts

func (m *GenesisState) GetAccounts() []AccountState

func (*GenesisState) GetAuthenticatorData

func (m *GenesisState) GetAuthenticatorData() []AuthenticatorData

func (*GenesisState) GetNextAuthenticatorId

func (m *GenesisState) GetNextAuthenticatorId() uint64

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) 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 GetAuthenticatorRequest

type GetAuthenticatorRequest struct {
	Account         string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	AuthenticatorId uint64 `protobuf:"varint,2,opt,name=authenticator_id,json=authenticatorId,proto3" json:"authenticator_id,omitempty"`
}

MsgGetAuthenticatorRequest defines the Msg/GetAuthenticator request type.

func (*GetAuthenticatorRequest) Descriptor

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

func (*GetAuthenticatorRequest) GetAccount

func (m *GetAuthenticatorRequest) GetAccount() string

func (*GetAuthenticatorRequest) GetAuthenticatorId

func (m *GetAuthenticatorRequest) GetAuthenticatorId() uint64

func (*GetAuthenticatorRequest) Marshal

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

func (*GetAuthenticatorRequest) MarshalTo

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

func (*GetAuthenticatorRequest) MarshalToSizedBuffer

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

func (*GetAuthenticatorRequest) ProtoMessage

func (*GetAuthenticatorRequest) ProtoMessage()

func (*GetAuthenticatorRequest) Reset

func (m *GetAuthenticatorRequest) Reset()

func (*GetAuthenticatorRequest) Size

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

func (*GetAuthenticatorRequest) String

func (m *GetAuthenticatorRequest) String() string

func (*GetAuthenticatorRequest) Unmarshal

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

func (*GetAuthenticatorRequest) XXX_DiscardUnknown

func (m *GetAuthenticatorRequest) XXX_DiscardUnknown()

func (*GetAuthenticatorRequest) XXX_Marshal

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

func (*GetAuthenticatorRequest) XXX_Merge

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

func (*GetAuthenticatorRequest) XXX_Size

func (m *GetAuthenticatorRequest) XXX_Size() int

func (*GetAuthenticatorRequest) XXX_Unmarshal

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

type GetAuthenticatorResponse

type GetAuthenticatorResponse struct {
	AccountAuthenticator *AccountAuthenticator `protobuf:"bytes,1,opt,name=account_authenticator,json=accountAuthenticator,proto3" json:"account_authenticator,omitempty"`
}

MsgGetAuthenticatorResponse defines the Msg/GetAuthenticator response type.

func (*GetAuthenticatorResponse) Descriptor

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

func (*GetAuthenticatorResponse) GetAccountAuthenticator

func (m *GetAuthenticatorResponse) GetAccountAuthenticator() *AccountAuthenticator

func (*GetAuthenticatorResponse) Marshal

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

func (*GetAuthenticatorResponse) MarshalTo

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

func (*GetAuthenticatorResponse) MarshalToSizedBuffer

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

func (*GetAuthenticatorResponse) ProtoMessage

func (*GetAuthenticatorResponse) ProtoMessage()

func (*GetAuthenticatorResponse) Reset

func (m *GetAuthenticatorResponse) Reset()

func (*GetAuthenticatorResponse) Size

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

func (*GetAuthenticatorResponse) String

func (m *GetAuthenticatorResponse) String() string

func (*GetAuthenticatorResponse) Unmarshal

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

func (*GetAuthenticatorResponse) XXX_DiscardUnknown

func (m *GetAuthenticatorResponse) XXX_DiscardUnknown()

func (*GetAuthenticatorResponse) XXX_Marshal

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

func (*GetAuthenticatorResponse) XXX_Merge

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

func (*GetAuthenticatorResponse) XXX_Size

func (m *GetAuthenticatorResponse) XXX_Size() int

func (*GetAuthenticatorResponse) XXX_Unmarshal

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

type GetAuthenticatorsRequest

type GetAuthenticatorsRequest struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

MsgGetAuthenticatorsRequest defines the Msg/GetAuthenticators request type.

func (*GetAuthenticatorsRequest) Descriptor

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

func (*GetAuthenticatorsRequest) GetAccount

func (m *GetAuthenticatorsRequest) GetAccount() string

func (*GetAuthenticatorsRequest) Marshal

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

func (*GetAuthenticatorsRequest) MarshalTo

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

func (*GetAuthenticatorsRequest) MarshalToSizedBuffer

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

func (*GetAuthenticatorsRequest) ProtoMessage

func (*GetAuthenticatorsRequest) ProtoMessage()

func (*GetAuthenticatorsRequest) Reset

func (m *GetAuthenticatorsRequest) Reset()

func (*GetAuthenticatorsRequest) Size

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

func (*GetAuthenticatorsRequest) String

func (m *GetAuthenticatorsRequest) String() string

func (*GetAuthenticatorsRequest) Unmarshal

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

func (*GetAuthenticatorsRequest) XXX_DiscardUnknown

func (m *GetAuthenticatorsRequest) XXX_DiscardUnknown()

func (*GetAuthenticatorsRequest) XXX_Marshal

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

func (*GetAuthenticatorsRequest) XXX_Merge

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

func (*GetAuthenticatorsRequest) XXX_Size

func (m *GetAuthenticatorsRequest) XXX_Size() int

func (*GetAuthenticatorsRequest) XXX_Unmarshal

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

type GetAuthenticatorsResponse

type GetAuthenticatorsResponse struct {
	AccountAuthenticators []*AccountAuthenticator `protobuf:"bytes,1,rep,name=account_authenticators,json=accountAuthenticators,proto3" json:"account_authenticators,omitempty"`
}

MsgGetAuthenticatorsResponse defines the Msg/GetAuthenticators response type.

func (*GetAuthenticatorsResponse) Descriptor

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

func (*GetAuthenticatorsResponse) GetAccountAuthenticators

func (m *GetAuthenticatorsResponse) GetAccountAuthenticators() []*AccountAuthenticator

func (*GetAuthenticatorsResponse) Marshal

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

func (*GetAuthenticatorsResponse) MarshalTo

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

func (*GetAuthenticatorsResponse) MarshalToSizedBuffer

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

func (*GetAuthenticatorsResponse) ProtoMessage

func (*GetAuthenticatorsResponse) ProtoMessage()

func (*GetAuthenticatorsResponse) Reset

func (m *GetAuthenticatorsResponse) Reset()

func (*GetAuthenticatorsResponse) Size

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

func (*GetAuthenticatorsResponse) String

func (m *GetAuthenticatorsResponse) String() string

func (*GetAuthenticatorsResponse) Unmarshal

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

func (*GetAuthenticatorsResponse) XXX_DiscardUnknown

func (m *GetAuthenticatorsResponse) XXX_DiscardUnknown()

func (*GetAuthenticatorsResponse) XXX_Marshal

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

func (*GetAuthenticatorsResponse) XXX_Merge

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

func (*GetAuthenticatorsResponse) XXX_Size

func (m *GetAuthenticatorsResponse) XXX_Size() int

func (*GetAuthenticatorsResponse) XXX_Unmarshal

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

type InitializedAuthenticator

type InitializedAuthenticator struct {
	Id            uint64
	Authenticator Authenticator
}

InitializedAuthenticator denotes an authenticator fetched from the store and prepared for use.

type MsgAddAuthenticator

type MsgAddAuthenticator struct {
	Sender            string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	AuthenticatorType string `protobuf:"bytes,2,opt,name=authenticator_type,json=authenticatorType,proto3" json:"authenticator_type,omitempty"`
	Data              []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

MsgAddAuthenticatorRequest defines the Msg/AddAuthenticator request type.

func (*MsgAddAuthenticator) Descriptor

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

func (*MsgAddAuthenticator) GetAuthenticatorType

func (m *MsgAddAuthenticator) GetAuthenticatorType() string

func (*MsgAddAuthenticator) GetData

func (m *MsgAddAuthenticator) GetData() []byte

func (*MsgAddAuthenticator) GetSender

func (m *MsgAddAuthenticator) GetSender() string

func (*MsgAddAuthenticator) Marshal

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

func (*MsgAddAuthenticator) MarshalTo

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

func (*MsgAddAuthenticator) MarshalToSizedBuffer

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

func (*MsgAddAuthenticator) ProtoMessage

func (*MsgAddAuthenticator) ProtoMessage()

func (*MsgAddAuthenticator) Reset

func (m *MsgAddAuthenticator) Reset()

func (*MsgAddAuthenticator) Size

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

func (*MsgAddAuthenticator) String

func (m *MsgAddAuthenticator) String() string

func (*MsgAddAuthenticator) Unmarshal

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

func (*MsgAddAuthenticator) ValidateBasic

func (msg *MsgAddAuthenticator) ValidateBasic() (err error)

ValidateBasic performs stateless validation for the `MsgAddAuthenticator` msg.

func (*MsgAddAuthenticator) XXX_DiscardUnknown

func (m *MsgAddAuthenticator) XXX_DiscardUnknown()

func (*MsgAddAuthenticator) XXX_Marshal

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

func (*MsgAddAuthenticator) XXX_Merge

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

func (*MsgAddAuthenticator) XXX_Size

func (m *MsgAddAuthenticator) XXX_Size() int

func (*MsgAddAuthenticator) XXX_Unmarshal

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

type MsgAddAuthenticatorResponse

type MsgAddAuthenticatorResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

MsgAddAuthenticatorResponse defines the Msg/AddAuthenticator response type.

func (*MsgAddAuthenticatorResponse) Descriptor

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

func (*MsgAddAuthenticatorResponse) GetSuccess

func (m *MsgAddAuthenticatorResponse) GetSuccess() bool

func (*MsgAddAuthenticatorResponse) Marshal

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

func (*MsgAddAuthenticatorResponse) MarshalTo

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

func (*MsgAddAuthenticatorResponse) MarshalToSizedBuffer

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

func (*MsgAddAuthenticatorResponse) ProtoMessage

func (*MsgAddAuthenticatorResponse) ProtoMessage()

func (*MsgAddAuthenticatorResponse) Reset

func (m *MsgAddAuthenticatorResponse) Reset()

func (*MsgAddAuthenticatorResponse) Size

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

func (*MsgAddAuthenticatorResponse) String

func (m *MsgAddAuthenticatorResponse) String() string

func (*MsgAddAuthenticatorResponse) Unmarshal

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

func (*MsgAddAuthenticatorResponse) XXX_DiscardUnknown

func (m *MsgAddAuthenticatorResponse) XXX_DiscardUnknown()

func (*MsgAddAuthenticatorResponse) XXX_Marshal

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

func (*MsgAddAuthenticatorResponse) XXX_Merge

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

func (*MsgAddAuthenticatorResponse) XXX_Size

func (m *MsgAddAuthenticatorResponse) XXX_Size() int

func (*MsgAddAuthenticatorResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddAuthenticator adds an authenticator to an account.
	AddAuthenticator(ctx context.Context, in *MsgAddAuthenticator, opts ...grpc.CallOption) (*MsgAddAuthenticatorResponse, error)
	// RemoveAuthenticator removes an authenticator from an account.
	RemoveAuthenticator(ctx context.Context, in *MsgRemoveAuthenticator, opts ...grpc.CallOption) (*MsgRemoveAuthenticatorResponse, error)
	// SetActiveState sets the active state of the authenticator.
	// Primarily used for circuit breaking.
	SetActiveState(ctx context.Context, in *MsgSetActiveState, opts ...grpc.CallOption) (*MsgSetActiveStateResponse, 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 MsgRemoveAuthenticator

type MsgRemoveAuthenticator struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Id     uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

MsgRemoveAuthenticatorRequest defines the Msg/RemoveAuthenticator request type.

func (*MsgRemoveAuthenticator) Descriptor

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

func (*MsgRemoveAuthenticator) GetId

func (m *MsgRemoveAuthenticator) GetId() uint64

func (*MsgRemoveAuthenticator) GetSender

func (m *MsgRemoveAuthenticator) GetSender() string

func (*MsgRemoveAuthenticator) Marshal

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

func (*MsgRemoveAuthenticator) MarshalTo

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

func (*MsgRemoveAuthenticator) MarshalToSizedBuffer

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

func (*MsgRemoveAuthenticator) ProtoMessage

func (*MsgRemoveAuthenticator) ProtoMessage()

func (*MsgRemoveAuthenticator) Reset

func (m *MsgRemoveAuthenticator) Reset()

func (*MsgRemoveAuthenticator) Size

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

func (*MsgRemoveAuthenticator) String

func (m *MsgRemoveAuthenticator) String() string

func (*MsgRemoveAuthenticator) Unmarshal

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

func (*MsgRemoveAuthenticator) XXX_DiscardUnknown

func (m *MsgRemoveAuthenticator) XXX_DiscardUnknown()

func (*MsgRemoveAuthenticator) XXX_Marshal

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

func (*MsgRemoveAuthenticator) XXX_Merge

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

func (*MsgRemoveAuthenticator) XXX_Size

func (m *MsgRemoveAuthenticator) XXX_Size() int

func (*MsgRemoveAuthenticator) XXX_Unmarshal

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

type MsgRemoveAuthenticatorResponse

type MsgRemoveAuthenticatorResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

MsgRemoveAuthenticatorResponse defines the Msg/RemoveAuthenticator response type.

func (*MsgRemoveAuthenticatorResponse) Descriptor

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

func (*MsgRemoveAuthenticatorResponse) GetSuccess

func (m *MsgRemoveAuthenticatorResponse) GetSuccess() bool

func (*MsgRemoveAuthenticatorResponse) Marshal

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

func (*MsgRemoveAuthenticatorResponse) MarshalTo

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

func (*MsgRemoveAuthenticatorResponse) MarshalToSizedBuffer

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

func (*MsgRemoveAuthenticatorResponse) ProtoMessage

func (*MsgRemoveAuthenticatorResponse) ProtoMessage()

func (*MsgRemoveAuthenticatorResponse) Reset

func (m *MsgRemoveAuthenticatorResponse) Reset()

func (*MsgRemoveAuthenticatorResponse) Size

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

func (*MsgRemoveAuthenticatorResponse) String

func (*MsgRemoveAuthenticatorResponse) Unmarshal

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

func (*MsgRemoveAuthenticatorResponse) XXX_DiscardUnknown

func (m *MsgRemoveAuthenticatorResponse) XXX_DiscardUnknown()

func (*MsgRemoveAuthenticatorResponse) XXX_Marshal

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

func (*MsgRemoveAuthenticatorResponse) XXX_Merge

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

func (*MsgRemoveAuthenticatorResponse) XXX_Size

func (m *MsgRemoveAuthenticatorResponse) XXX_Size() int

func (*MsgRemoveAuthenticatorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AddAuthenticator adds an authenticator to an account.
	AddAuthenticator(context.Context, *MsgAddAuthenticator) (*MsgAddAuthenticatorResponse, error)
	// RemoveAuthenticator removes an authenticator from an account.
	RemoveAuthenticator(context.Context, *MsgRemoveAuthenticator) (*MsgRemoveAuthenticatorResponse, error)
	// SetActiveState sets the active state of the authenticator.
	// Primarily used for circuit breaking.
	SetActiveState(context.Context, *MsgSetActiveState) (*MsgSetActiveStateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetActiveState

type MsgSetActiveState struct {
	// Authority is the address that may send this message.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Active    bool   `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"`
}

MsgSetActiveState sets the active state of the module.

func (*MsgSetActiveState) Descriptor

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

func (*MsgSetActiveState) GetActive

func (m *MsgSetActiveState) GetActive() bool

func (*MsgSetActiveState) GetAuthority

func (m *MsgSetActiveState) GetAuthority() string

func (*MsgSetActiveState) Marshal

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

func (*MsgSetActiveState) MarshalTo

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

func (*MsgSetActiveState) MarshalToSizedBuffer

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

func (*MsgSetActiveState) ProtoMessage

func (*MsgSetActiveState) ProtoMessage()

func (*MsgSetActiveState) Reset

func (m *MsgSetActiveState) Reset()

func (*MsgSetActiveState) Size

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

func (*MsgSetActiveState) String

func (m *MsgSetActiveState) String() string

func (*MsgSetActiveState) Unmarshal

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

func (*MsgSetActiveState) XXX_DiscardUnknown

func (m *MsgSetActiveState) XXX_DiscardUnknown()

func (*MsgSetActiveState) XXX_Marshal

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

func (*MsgSetActiveState) XXX_Merge

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

func (*MsgSetActiveState) XXX_Size

func (m *MsgSetActiveState) XXX_Size() int

func (*MsgSetActiveState) XXX_Unmarshal

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

type MsgSetActiveStateResponse

type MsgSetActiveStateResponse struct {
}

MsgSetActiveStateResponse defines the Msg/SetActiveState response type.

func (*MsgSetActiveStateResponse) Descriptor

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

func (*MsgSetActiveStateResponse) Marshal

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

func (*MsgSetActiveStateResponse) MarshalTo

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

func (*MsgSetActiveStateResponse) MarshalToSizedBuffer

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

func (*MsgSetActiveStateResponse) ProtoMessage

func (*MsgSetActiveStateResponse) ProtoMessage()

func (*MsgSetActiveStateResponse) Reset

func (m *MsgSetActiveStateResponse) Reset()

func (*MsgSetActiveStateResponse) Size

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

func (*MsgSetActiveStateResponse) String

func (m *MsgSetActiveStateResponse) String() string

func (*MsgSetActiveStateResponse) Unmarshal

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

func (*MsgSetActiveStateResponse) XXX_DiscardUnknown

func (m *MsgSetActiveStateResponse) XXX_DiscardUnknown()

func (*MsgSetActiveStateResponse) XXX_Marshal

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

func (*MsgSetActiveStateResponse) XXX_Merge

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

func (*MsgSetActiveStateResponse) XXX_Size

func (m *MsgSetActiveStateResponse) XXX_Size() int

func (*MsgSetActiveStateResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// IsSmartAccountActive defines the state of the authenticator.
	// If set to false, the authenticator module will not be used
	// and the classic cosmos sdk authentication will be used instead.
	IsSmartAccountActive bool `` /* 157-byte string literal not displayed */
}

Params defines the parameters for the module.

func (*Params) Descriptor

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

func (*Params) GetIsSmartAccountActive

func (m *Params) GetIsSmartAccountActive() bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a single authenticator by account and authenticator ID.
	GetAuthenticator(ctx context.Context, in *GetAuthenticatorRequest, opts ...grpc.CallOption) (*GetAuthenticatorResponse, error)
	// Queries all authenticators for a given account.
	GetAuthenticators(ctx context.Context, in *GetAuthenticatorsRequest, opts ...grpc.CallOption) (*GetAuthenticatorsResponse, error)
	// Queries for an account state (timestamp nonce).
	AccountState(ctx context.Context, in *AccountStateRequest, opts ...grpc.CallOption) (*AccountStateResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a single authenticator by account and authenticator ID.
	GetAuthenticator(context.Context, *GetAuthenticatorRequest) (*GetAuthenticatorResponse, error)
	// Queries all authenticators for a given account.
	GetAuthenticators(context.Context, *GetAuthenticatorsRequest) (*GetAuthenticatorsResponse, error)
	// Queries for an account state (timestamp nonce).
	AccountState(context.Context, *AccountStateRequest) (*AccountStateResponse, error)
}

QueryServer is the server API for Query service.

type SignModeData

type SignModeData struct {
	Direct  []byte `json:"sign_mode_direct"`
	Textual string `json:"sign_mode_textual"`
}

SignModeData represents the signing modes with direct bytes and textual representation.

type SimplifiedSignatureData

type SimplifiedSignatureData struct {
	Signers    []sdk.AccAddress `json:"signers"`
	Signatures [][]byte         `json:"signatures"`
}

SimplifiedSignatureData contains lists of signers and their corresponding signatures.

type SubAuthenticatorInitData

type SubAuthenticatorInitData struct {
	Type   string `json:"type"`
	Config []byte `json:"config"`
}

type TimestampNonceDetails

type TimestampNonceDetails struct {
	// unsorted list of n most recent timestamp nonces
	TimestampNonces []uint64 `protobuf:"varint,1,rep,packed,name=timestamp_nonces,json=timestampNonces,proto3" json:"timestamp_nonces,omitempty"`
	// max timestamp nonce that was ejected from list above
	MaxEjectedNonce uint64 `protobuf:"varint,2,opt,name=max_ejected_nonce,json=maxEjectedNonce,proto3" json:"max_ejected_nonce,omitempty"`
}

Timestamp nonce details

func (*TimestampNonceDetails) Descriptor

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

func (*TimestampNonceDetails) GetMaxEjectedNonce

func (m *TimestampNonceDetails) GetMaxEjectedNonce() uint64

func (*TimestampNonceDetails) GetTimestampNonces

func (m *TimestampNonceDetails) GetTimestampNonces() []uint64

func (*TimestampNonceDetails) Marshal

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

func (*TimestampNonceDetails) MarshalTo

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

func (*TimestampNonceDetails) MarshalToSizedBuffer

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

func (*TimestampNonceDetails) ProtoMessage

func (*TimestampNonceDetails) ProtoMessage()

func (*TimestampNonceDetails) Reset

func (m *TimestampNonceDetails) Reset()

func (*TimestampNonceDetails) Size

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

func (*TimestampNonceDetails) String

func (m *TimestampNonceDetails) String() string

func (*TimestampNonceDetails) Unmarshal

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

func (*TimestampNonceDetails) XXX_DiscardUnknown

func (m *TimestampNonceDetails) XXX_DiscardUnknown()

func (*TimestampNonceDetails) XXX_Marshal

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

func (*TimestampNonceDetails) XXX_Merge

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

func (*TimestampNonceDetails) XXX_Size

func (m *TimestampNonceDetails) XXX_Size() int

func (*TimestampNonceDetails) XXX_Unmarshal

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

type TrackRequest

type TrackRequest struct {
	AuthenticatorId     string         `json:"authenticator_id"`
	Account             sdk.AccAddress `json:"account"`
	FeePayer            sdk.AccAddress `json:"fee_payer"`
	FeeGranter          sdk.AccAddress `json:"fee_granter,omitempty"`
	Fee                 sdk.Coins      `json:"fee"`
	Msg                 sdk.Msg        `json:"msg"`
	MsgIndex            uint64         `json:"msg_index"`
	AuthenticatorParams []byte         `json:"authenticator_params,omitempty"`
}

type TxExtension

type TxExtension struct {
	// selected_authenticators holds the authenticator_id for the chosen
	// authenticator per message.
	SelectedAuthenticators []uint64 `` /* 135-byte string literal not displayed */
}

TxExtension allows for additional authenticator-specific data in transactions.

func (*TxExtension) Descriptor

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

func (*TxExtension) GetSelectedAuthenticators

func (m *TxExtension) GetSelectedAuthenticators() []uint64

func (*TxExtension) Marshal

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

func (*TxExtension) MarshalTo

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

func (*TxExtension) MarshalToSizedBuffer

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

func (*TxExtension) ProtoMessage

func (*TxExtension) ProtoMessage()

func (*TxExtension) Reset

func (m *TxExtension) Reset()

func (*TxExtension) Size

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

func (*TxExtension) String

func (m *TxExtension) String() string

func (*TxExtension) Unmarshal

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

func (*TxExtension) XXX_DiscardUnknown

func (m *TxExtension) XXX_DiscardUnknown()

func (*TxExtension) XXX_Marshal

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

func (*TxExtension) XXX_Merge

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

func (*TxExtension) XXX_Size

func (m *TxExtension) XXX_Size() int

func (*TxExtension) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddAuthenticator

func (*UnimplementedMsgServer) RemoveAuthenticator

func (*UnimplementedMsgServer) SetActiveState

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountState

func (*UnimplementedQueryServer) GetAuthenticator

func (*UnimplementedQueryServer) GetAuthenticators

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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