types

package
v9.0.0-...-e599657 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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")
)
View Source
var (
	ErrInvalidLengthWasm        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWasm          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWasm = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the tendermint concrete client-related implementations and interfaces.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type AppModule

type AppModule struct{}

AppModule defines the basic application module used by the tendermint light client. Only the RegisterInterfaces function needs to be implemented. All other function perform a no-op.

func (AppModule) DefaultGenesis

func (AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

DefaultGenesis performs a no-op. Genesis is not supported for the tendermint light client.

func (AppModule) GetQueryCmd

func (AppModule) GetQueryCmd() *cobra.Command

GetQueryCmd performs a no-op. Please see the 02-client cli commands.

func (AppModule) GetTxCmd

func (AppModule) GetTxCmd() *cobra.Command

GetTxCmd performs a no-op. Please see the 02-client cli commands.

func (AppModule) IsAppModule

func (a AppModule) IsAppModule()

IsAppModule implements module.AppModule.

func (AppModule) IsOnePerModuleType

func (a AppModule) IsOnePerModuleType()

IsOnePerModuleType implements module.AppModule.

func (AppModule) Name

func (AppModule) Name() string

Name returns the tendermint module name.

func (AppModule) RegisterGRPCGatewayRoutes

func (AppModule) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)

RegisterGRPCGatewayRoutes performs a no-op.

func (AppModule) RegisterInterfaces

func (AppModule) RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers module concrete types into protobuf Any. This allows core IBC to unmarshal wasm light client types.

func (AppModule) RegisterLegacyAminoCodec

func (AppModule) RegisterLegacyAminoCodec(*codec.LegacyAmino)

RegisterLegacyAminoCodec performs a no-op. The Wasm client does not support amino.

func (AppModule) ValidateGenesis

func (AppModule) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error

ValidateGenesis performs a no-op. Genesis is not supported for the tendermint light client.

type ClientMessage

type ClientMessage struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

Wasm light client message (either header(s) or misbehaviour)

func (ClientMessage) ClientType

func (c ClientMessage) ClientType() string

ClientType is a Wasm light client.

func (*ClientMessage) Descriptor

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

func (*ClientMessage) Marshal

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

func (*ClientMessage) MarshalTo

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

func (*ClientMessage) MarshalToSizedBuffer

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

func (*ClientMessage) ProtoMessage

func (*ClientMessage) ProtoMessage()

func (*ClientMessage) Reset

func (m *ClientMessage) Reset()

func (*ClientMessage) Size

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

func (*ClientMessage) String

func (m *ClientMessage) String() string

func (*ClientMessage) Unmarshal

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

func (ClientMessage) ValidateBasic

func (c ClientMessage) ValidateBasic() error

ValidateBasic defines a basic validation for the wasm client message.

func (*ClientMessage) XXX_DiscardUnknown

func (m *ClientMessage) XXX_DiscardUnknown()

func (*ClientMessage) XXX_Marshal

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

func (*ClientMessage) XXX_Merge

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

func (*ClientMessage) XXX_Size

func (m *ClientMessage) XXX_Size() int

func (*ClientMessage) XXX_Unmarshal

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

type ClientState

type ClientState struct {
	// bytes encoding the client state of the underlying light client
	// implemented as a Wasm contract.
	Data         []byte       `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Checksum     []byte       `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
	LatestHeight types.Height `protobuf:"bytes,3,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height"`
}

Wasm light client's Client state

func NewClientState

func NewClientState(latestSequence uint64, consensusState *ConsensusState) *ClientState

NewClientState creates a new ClientState instance.

func (ClientState) CheckForMisbehaviour

func (c ClientState) CheckForMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, msg exported.ClientMessage) bool

func (ClientState) CheckSubstituteAndUpdateState

func (c ClientState) CheckSubstituteAndUpdateState(
	ctx sdk.Context, cdc codec.BinaryCodec, subjectClientStore,
	substituteClientStore storetypes.KVStore, substituteClient exported.ClientState,
) error

func (ClientState) ClientType

func (c ClientState) ClientType() string

func (*ClientState) Descriptor

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

func (ClientState) ExportMetadata

func (c ClientState) ExportMetadata(store storetypes.KVStore) []exported.GenesisMetadata

func (ClientState) GetLatestHeight

func (c ClientState) GetLatestHeight() exported.Height

func (ClientState) GetTimestampAtHeight

func (c ClientState) GetTimestampAtHeight(
	ctx sdk.Context,
	clientStore storetypes.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
) (uint64, error)

func (ClientState) Initialize

func (c ClientState) Initialize(context sdk.Context, marshaler codec.BinaryCodec, store storetypes.KVStore, state exported.ConsensusState) error

func (*ClientState) Marshal

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

func (*ClientState) MarshalTo

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

func (*ClientState) MarshalToSizedBuffer

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

func (*ClientState) ProtoMessage

func (*ClientState) ProtoMessage()

func (*ClientState) Reset

func (m *ClientState) Reset()

func (*ClientState) Size

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

func (ClientState) Status

func (*ClientState) String

func (m *ClientState) String() string

func (*ClientState) Unmarshal

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

func (ClientState) UpdateState

func (c ClientState) UpdateState(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, clientMsg exported.ClientMessage) []exported.Height

func (ClientState) UpdateStateOnMisbehaviour

func (c ClientState) UpdateStateOnMisbehaviour(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, clientMsg exported.ClientMessage)

UpdateStateOnMisbehaviour should perform appropriate state changes on a client state given that misbehaviour has been detected and verified

func (ClientState) Validate

func (c ClientState) Validate() error

func (ClientState) VerifyClientMessage

func (c ClientState) VerifyClientMessage(ctx sdk.Context, cdc codec.BinaryCodec, clientStore storetypes.KVStore, clientMsg exported.ClientMessage) error

VerifyClientMessage must verify a ClientMessage. A ClientMessage could be a Header, Misbehaviour, or batch update. It must handle each type of ClientMessage appropriately. Calls to CheckForMisbehaviour, UpdateState, and UpdateStateOnMisbehaviour will assume that the content of the ClientMessage has been verified and can be trusted. An error should be returned if the ClientMessage fails to verify.

func (ClientState) VerifyMembership

func (c ClientState) VerifyMembership(
	ctx sdk.Context,
	clientStore storetypes.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
	value []byte,
) error

func (ClientState) VerifyNonMembership

func (c ClientState) VerifyNonMembership(
	ctx sdk.Context,
	clientStore storetypes.KVStore,
	cdc codec.BinaryCodec,
	height exported.Height,
	delayTimePeriod uint64,
	delayBlockPeriod uint64,
	proof []byte,
	path exported.Path,
) error

func (ClientState) VerifyUpgradeAndUpdateState

func (c ClientState) VerifyUpgradeAndUpdateState(
	ctx sdk.Context,
	cdc codec.BinaryCodec,
	store storetypes.KVStore,
	newClient exported.ClientState,
	newConsState exported.ConsensusState,
	proofUpgradeClient,
	proofUpgradeConsState []byte,
) error

func (*ClientState) XXX_DiscardUnknown

func (m *ClientState) XXX_DiscardUnknown()

func (*ClientState) XXX_Marshal

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

func (*ClientState) XXX_Merge

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

func (*ClientState) XXX_Size

func (m *ClientState) XXX_Size() int

func (*ClientState) XXX_Unmarshal

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

func (ClientState) ZeroCustomFields

func (c ClientState) ZeroCustomFields() exported.ClientState

type ConsensusState

type ConsensusState struct {
	// bytes encoding the consensus state of the underlying light client
	// implemented as a Wasm contract.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

Wasm light client's ConsensusState

func (ConsensusState) ClientType

func (m ConsensusState) ClientType() string

func (*ConsensusState) Descriptor

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

func (ConsensusState) GetTimestamp

func (m ConsensusState) GetTimestamp() uint64

func (*ConsensusState) Marshal

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

func (*ConsensusState) MarshalTo

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

func (*ConsensusState) MarshalToSizedBuffer

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

func (*ConsensusState) ProtoMessage

func (*ConsensusState) ProtoMessage()

func (*ConsensusState) Reset

func (m *ConsensusState) Reset()

func (*ConsensusState) Size

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

func (*ConsensusState) String

func (m *ConsensusState) String() string

func (*ConsensusState) Unmarshal

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

func (ConsensusState) ValidateBasic

func (m ConsensusState) ValidateBasic() error

func (*ConsensusState) XXX_DiscardUnknown

func (m *ConsensusState) XXX_DiscardUnknown()

func (*ConsensusState) XXX_Marshal

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

func (*ConsensusState) XXX_Merge

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

func (*ConsensusState) XXX_Size

func (m *ConsensusState) XXX_Size() int

func (*ConsensusState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// StoreCode defines a rpc handler method for MsgStoreCode.
	StoreCode(ctx context.Context, in *MsgStoreCode, opts ...grpc.CallOption) (*MsgStoreCodeResponse, error)
	// RemoveChecksum defines a rpc handler method for MsgRemoveChecksum.
	RemoveChecksum(ctx context.Context, in *MsgRemoveChecksum, opts ...grpc.CallOption) (*MsgRemoveChecksumResponse, error)
	// MigrateContract defines a rpc handler method for MsgMigrateContract.
	MigrateContract(ctx context.Context, in *MsgMigrateContract, opts ...grpc.CallOption) (*MsgMigrateContractResponse, 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 MsgMigrateContract

type MsgMigrateContract struct {
	// signer address
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// the client id of the contract
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// checksum is the sha256 hash of the new wasm byte code for the contract
	Checksum []byte `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// the json encoded message to be passed to the contract on migration
	Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
}

MsgMigrateContract defines the request type for the MigrateContract rpc.

func (*MsgMigrateContract) Descriptor

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

func (*MsgMigrateContract) GetChecksum

func (m *MsgMigrateContract) GetChecksum() []byte

func (*MsgMigrateContract) GetClientId

func (m *MsgMigrateContract) GetClientId() string

func (*MsgMigrateContract) GetMsg

func (m *MsgMigrateContract) GetMsg() []byte

func (*MsgMigrateContract) GetSigner

func (m *MsgMigrateContract) GetSigner() string

func (*MsgMigrateContract) Marshal

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

func (*MsgMigrateContract) MarshalTo

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

func (*MsgMigrateContract) MarshalToSizedBuffer

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

func (*MsgMigrateContract) ProtoMessage

func (*MsgMigrateContract) ProtoMessage()

func (*MsgMigrateContract) Reset

func (m *MsgMigrateContract) Reset()

func (*MsgMigrateContract) Size

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

func (*MsgMigrateContract) String

func (m *MsgMigrateContract) String() string

func (*MsgMigrateContract) Unmarshal

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

func (*MsgMigrateContract) XXX_DiscardUnknown

func (m *MsgMigrateContract) XXX_DiscardUnknown()

func (*MsgMigrateContract) XXX_Marshal

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

func (*MsgMigrateContract) XXX_Merge

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

func (*MsgMigrateContract) XXX_Size

func (m *MsgMigrateContract) XXX_Size() int

func (*MsgMigrateContract) XXX_Unmarshal

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

type MsgMigrateContractResponse

type MsgMigrateContractResponse struct {
}

MsgMigrateContractResponse defines the response type for the MigrateContract rpc

func (*MsgMigrateContractResponse) Descriptor

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

func (*MsgMigrateContractResponse) Marshal

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

func (*MsgMigrateContractResponse) MarshalTo

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

func (*MsgMigrateContractResponse) MarshalToSizedBuffer

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

func (*MsgMigrateContractResponse) ProtoMessage

func (*MsgMigrateContractResponse) ProtoMessage()

func (*MsgMigrateContractResponse) Reset

func (m *MsgMigrateContractResponse) Reset()

func (*MsgMigrateContractResponse) Size

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

func (*MsgMigrateContractResponse) String

func (m *MsgMigrateContractResponse) String() string

func (*MsgMigrateContractResponse) Unmarshal

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

func (*MsgMigrateContractResponse) XXX_DiscardUnknown

func (m *MsgMigrateContractResponse) XXX_DiscardUnknown()

func (*MsgMigrateContractResponse) XXX_Marshal

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

func (*MsgMigrateContractResponse) XXX_Merge

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

func (*MsgMigrateContractResponse) XXX_Size

func (m *MsgMigrateContractResponse) XXX_Size() int

func (*MsgMigrateContractResponse) XXX_Unmarshal

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

type MsgRemoveChecksum

type MsgRemoveChecksum struct {
	// signer address
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// checksum is the sha256 hash to be removed from the store
	Checksum []byte `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
}

MsgRemoveChecksum defines the request type for the MsgRemoveChecksum rpc.

func (*MsgRemoveChecksum) Descriptor

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

func (*MsgRemoveChecksum) GetChecksum

func (m *MsgRemoveChecksum) GetChecksum() []byte

func (*MsgRemoveChecksum) GetSigner

func (m *MsgRemoveChecksum) GetSigner() string

func (*MsgRemoveChecksum) Marshal

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

func (*MsgRemoveChecksum) MarshalTo

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

func (*MsgRemoveChecksum) MarshalToSizedBuffer

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

func (*MsgRemoveChecksum) ProtoMessage

func (*MsgRemoveChecksum) ProtoMessage()

func (*MsgRemoveChecksum) Reset

func (m *MsgRemoveChecksum) Reset()

func (*MsgRemoveChecksum) Size

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

func (*MsgRemoveChecksum) String

func (m *MsgRemoveChecksum) String() string

func (*MsgRemoveChecksum) Unmarshal

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

func (*MsgRemoveChecksum) XXX_DiscardUnknown

func (m *MsgRemoveChecksum) XXX_DiscardUnknown()

func (*MsgRemoveChecksum) XXX_Marshal

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

func (*MsgRemoveChecksum) XXX_Merge

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

func (*MsgRemoveChecksum) XXX_Size

func (m *MsgRemoveChecksum) XXX_Size() int

func (*MsgRemoveChecksum) XXX_Unmarshal

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

type MsgRemoveChecksumResponse

type MsgRemoveChecksumResponse struct {
}

MsgStoreChecksumResponse defines the response type for the StoreCode rpc

func (*MsgRemoveChecksumResponse) Descriptor

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

func (*MsgRemoveChecksumResponse) Marshal

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

func (*MsgRemoveChecksumResponse) MarshalTo

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

func (*MsgRemoveChecksumResponse) MarshalToSizedBuffer

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

func (*MsgRemoveChecksumResponse) ProtoMessage

func (*MsgRemoveChecksumResponse) ProtoMessage()

func (*MsgRemoveChecksumResponse) Reset

func (m *MsgRemoveChecksumResponse) Reset()

func (*MsgRemoveChecksumResponse) Size

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

func (*MsgRemoveChecksumResponse) String

func (m *MsgRemoveChecksumResponse) String() string

func (*MsgRemoveChecksumResponse) Unmarshal

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

func (*MsgRemoveChecksumResponse) XXX_DiscardUnknown

func (m *MsgRemoveChecksumResponse) XXX_DiscardUnknown()

func (*MsgRemoveChecksumResponse) XXX_Marshal

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

func (*MsgRemoveChecksumResponse) XXX_Merge

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

func (*MsgRemoveChecksumResponse) XXX_Size

func (m *MsgRemoveChecksumResponse) XXX_Size() int

func (*MsgRemoveChecksumResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// StoreCode defines a rpc handler method for MsgStoreCode.
	StoreCode(context.Context, *MsgStoreCode) (*MsgStoreCodeResponse, error)
	// RemoveChecksum defines a rpc handler method for MsgRemoveChecksum.
	RemoveChecksum(context.Context, *MsgRemoveChecksum) (*MsgRemoveChecksumResponse, error)
	// MigrateContract defines a rpc handler method for MsgMigrateContract.
	MigrateContract(context.Context, *MsgMigrateContract) (*MsgMigrateContractResponse, error)
}

MsgServer is the server API for Msg service.

type MsgStoreCode

type MsgStoreCode struct {
	// signer address
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// wasm byte code of light client contract. It can be raw or gzip compressed
	WasmByteCode []byte `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"`
}

MsgStoreCode defines the request type for the StoreCode rpc.

func NewMsgStoreCode

func NewMsgStoreCode(signer string, code []byte) *MsgStoreCode

MsgStoreCode creates a new MsgStoreCode instance

func (*MsgStoreCode) Descriptor

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

func (*MsgStoreCode) GetSigner

func (m *MsgStoreCode) GetSigner() string

func (MsgStoreCode) GetSigners

func (m MsgStoreCode) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgStoreCode) GetWasmByteCode

func (m *MsgStoreCode) GetWasmByteCode() []byte

func (*MsgStoreCode) Marshal

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

func (*MsgStoreCode) MarshalTo

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

func (*MsgStoreCode) MarshalToSizedBuffer

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

func (*MsgStoreCode) ProtoMessage

func (*MsgStoreCode) ProtoMessage()

func (*MsgStoreCode) Reset

func (m *MsgStoreCode) Reset()

func (*MsgStoreCode) Size

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

func (*MsgStoreCode) String

func (m *MsgStoreCode) String() string

func (*MsgStoreCode) Unmarshal

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

func (MsgStoreCode) ValidateBasic

func (m MsgStoreCode) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgStoreCode) XXX_DiscardUnknown

func (m *MsgStoreCode) XXX_DiscardUnknown()

func (*MsgStoreCode) XXX_Marshal

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

func (*MsgStoreCode) XXX_Merge

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

func (*MsgStoreCode) XXX_Size

func (m *MsgStoreCode) XXX_Size() int

func (*MsgStoreCode) XXX_Unmarshal

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

type MsgStoreCodeResponse

type MsgStoreCodeResponse struct {
	// checksum is the sha256 hash of the stored code
	Checksum []byte `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"`
}

MsgStoreCodeResponse defines the response type for the StoreCode rpc

func (*MsgStoreCodeResponse) Descriptor

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

func (*MsgStoreCodeResponse) GetChecksum

func (m *MsgStoreCodeResponse) GetChecksum() []byte

func (*MsgStoreCodeResponse) Marshal

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

func (*MsgStoreCodeResponse) MarshalTo

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

func (*MsgStoreCodeResponse) MarshalToSizedBuffer

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

func (*MsgStoreCodeResponse) ProtoMessage

func (*MsgStoreCodeResponse) ProtoMessage()

func (*MsgStoreCodeResponse) Reset

func (m *MsgStoreCodeResponse) Reset()

func (*MsgStoreCodeResponse) Size

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

func (*MsgStoreCodeResponse) String

func (m *MsgStoreCodeResponse) String() string

func (*MsgStoreCodeResponse) Unmarshal

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

func (*MsgStoreCodeResponse) XXX_DiscardUnknown

func (m *MsgStoreCodeResponse) XXX_DiscardUnknown()

func (*MsgStoreCodeResponse) XXX_Marshal

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

func (*MsgStoreCodeResponse) XXX_Merge

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

func (*MsgStoreCodeResponse) XXX_Size

func (m *MsgStoreCodeResponse) XXX_Size() int

func (*MsgStoreCodeResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) MigrateContract

func (*UnimplementedMsgServer) RemoveChecksum

func (*UnimplementedMsgServer) StoreCode

Jump to

Keyboard shortcuts

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