types

package
v0.0.0-...-c573acc Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "erc20contract"

	// Version defines the current version the samplemod
	// module supports
	Version = "erc20contract-1"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_capability"
)
View Source
const (
	TypeContractCallTx = "ContractCallTx"
)

msg types

Variables

View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

ModuleCdc references the global lp 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 x/ibc-transfer and defined at the application level.

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register the ibc transfer module interfaces to protobuf Any.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type ContractCallRequest

type ContractCallRequest struct {
	Method string   `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Args   []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
}

func NewContractCallRequest

func NewContractCallRequest(method string, args ...string) ContractCallRequest

NewContractCallRequest creates a new instance of ContractCallRequest

func (ContractCallRequest) ContractCallInfo

func (r ContractCallRequest) ContractCallInfo(m codec.Codec) txtypes.ContractCallInfo

ContractCallInfo converts the ContractCallRequest to a ContractCallInfo

func (*ContractCallRequest) Descriptor

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

func (*ContractCallRequest) Marshal

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

func (*ContractCallRequest) MarshalTo

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

func (*ContractCallRequest) MarshalToSizedBuffer

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

func (*ContractCallRequest) ProtoMessage

func (*ContractCallRequest) ProtoMessage()

func (*ContractCallRequest) Reset

func (m *ContractCallRequest) Reset()

func (*ContractCallRequest) Size

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

func (*ContractCallRequest) String

func (m *ContractCallRequest) String() string

func (*ContractCallRequest) Unmarshal

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

func (*ContractCallRequest) XXX_DiscardUnknown

func (m *ContractCallRequest) XXX_DiscardUnknown()

func (*ContractCallRequest) XXX_Marshal

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

func (*ContractCallRequest) XXX_Merge

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

func (*ContractCallRequest) XXX_Size

func (m *ContractCallRequest) XXX_Size() int

func (*ContractCallRequest) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
}

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns a GenesisState instance

func NewGenesisState

func NewGenesisState() *GenesisState

NewGenesisState creates a new cross module GenesisState instance.

func (*GenesisState) Descriptor

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

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 MsgClient

type MsgClient interface {
	ContractCallTx(ctx context.Context, in *MsgContractCallTx, opts ...grpc.CallOption) (*MsgContractCallTxResponse, 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 MsgContractCallTx

type MsgContractCallTx struct {
	Request *ContractCallRequest                                        `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	Signers []github_com_datachainlab_cross_x_core_auth_types.AccountID `` /* 134-byte string literal not displayed */
}

func NewMsgContractCallTx

func NewMsgContractCallTx(
	request *ContractCallRequest,
	signers []authtypes.AccountID,
) *MsgContractCallTx

func (*MsgContractCallTx) Descriptor

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

func (MsgContractCallTx) GetAccountIDs

func (msg MsgContractCallTx) GetAccountIDs() []authtypes.AccountID

func (MsgContractCallTx) GetSignBytes

func (msg MsgContractCallTx) GetSignBytes() []byte

GetSignBytes implements sdk.Msg.

func (MsgContractCallTx) GetSigners

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

GetSigners implements sdk.Msg GetSigners returns the addresses that must sign the transaction. Addresses are returned in a deterministic order. Duplicate addresses will be omitted.

func (*MsgContractCallTx) Marshal

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

func (*MsgContractCallTx) MarshalTo

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

func (*MsgContractCallTx) MarshalToSizedBuffer

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

func (*MsgContractCallTx) ProtoMessage

func (*MsgContractCallTx) ProtoMessage()

func (*MsgContractCallTx) Reset

func (m *MsgContractCallTx) Reset()

func (MsgContractCallTx) Route

func (MsgContractCallTx) Route() string

Route implements sdk.Msg

func (*MsgContractCallTx) Size

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

func (*MsgContractCallTx) String

func (m *MsgContractCallTx) String() string

func (MsgContractCallTx) Type

func (MsgContractCallTx) Type() string

Type implements sdk.Msg

func (*MsgContractCallTx) Unmarshal

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

func (MsgContractCallTx) ValidateBasic

func (msg MsgContractCallTx) ValidateBasic() error

ValidateBasic performs a basic check of the MsgContractCallTx fields.

func (*MsgContractCallTx) XXX_DiscardUnknown

func (m *MsgContractCallTx) XXX_DiscardUnknown()

func (*MsgContractCallTx) XXX_Marshal

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

func (*MsgContractCallTx) XXX_Merge

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

func (*MsgContractCallTx) XXX_Size

func (m *MsgContractCallTx) XXX_Size() int

func (*MsgContractCallTx) XXX_Unmarshal

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

type MsgContractCallTxResponse

type MsgContractCallTxResponse struct {
}

MsgSignTxResponse defines the Msg/SignTx response type.

func (*MsgContractCallTxResponse) Descriptor

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

func (*MsgContractCallTxResponse) Marshal

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

func (*MsgContractCallTxResponse) MarshalTo

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

func (*MsgContractCallTxResponse) MarshalToSizedBuffer

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

func (*MsgContractCallTxResponse) ProtoMessage

func (*MsgContractCallTxResponse) ProtoMessage()

func (*MsgContractCallTxResponse) Reset

func (m *MsgContractCallTxResponse) Reset()

func (*MsgContractCallTxResponse) Size

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

func (*MsgContractCallTxResponse) String

func (m *MsgContractCallTxResponse) String() string

func (*MsgContractCallTxResponse) Unmarshal

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

func (*MsgContractCallTxResponse) XXX_DiscardUnknown

func (m *MsgContractCallTxResponse) XXX_DiscardUnknown()

func (*MsgContractCallTxResponse) XXX_Marshal

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

func (*MsgContractCallTxResponse) XXX_Merge

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

func (*MsgContractCallTxResponse) XXX_Size

func (m *MsgContractCallTxResponse) XXX_Size() int

func (*MsgContractCallTxResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	ContractCallTx(context.Context, *MsgContractCallTx) (*MsgContractCallTxResponse, error)
}

MsgServer is the server API for Msg service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ContractCallTx

Jump to

Keyboard shortcuts

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