legacy

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeMsgStoreCode           = "store_code"
	TypeMsgMigrateCode         = "migrate_code"
	TypeMsgInstantiateContract = "instantiate_contract"
	TypeMsgExecuteContract     = "execute_contract"
	TypeMsgMigrateContract     = "migrate_contract"
	TypeMsgUpdateContractAdmin = "update_contract_admin"
	TypeMsgClearContractAdmin  = "clear_contract_admin"
)

wasm message types

View Source
const (
	EnforcedMaxContractSize    = uint64(3000 * 1024) // 3MB
	EnforcedMaxContractGas     = uint64(100_000_000) // 100,000,000
	EnforcedMaxContractMsgSize = uint64(20 * 1024)   // 10KB
)

from legacy x/wasm/types/params.go

Variables

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 (
	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")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the wasm types and interface

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type Code

type Code struct {
	CodeInfo  LegacyCodeInfo `protobuf:"bytes,1,opt,name=code_info,json=codeInfo,proto3" json:"code_info"`
	CodeBytes []byte         `protobuf:"bytes,2,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"`
}

Code struct encompasses CodeInfo and CodeBytes

func (*Code) Descriptor

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

func (*Code) GetCodeBytes

func (m *Code) GetCodeBytes() []byte

func (*Code) GetCodeInfo

func (m *Code) GetCodeInfo() LegacyCodeInfo

func (*Code) Marshal

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

func (*Code) MarshalTo

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

func (*Code) MarshalToSizedBuffer

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

func (*Code) ProtoMessage

func (*Code) ProtoMessage()

func (*Code) Reset

func (m *Code) Reset()

func (*Code) Size

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

func (*Code) String

func (m *Code) String() string

func (*Code) Unmarshal

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

func (*Code) XXX_DiscardUnknown

func (m *Code) XXX_DiscardUnknown()

func (*Code) XXX_Marshal

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

func (*Code) XXX_Merge

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

func (*Code) XXX_Size

func (m *Code) XXX_Size() int

func (*Code) XXX_Unmarshal

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

type Contract

type Contract struct {
	ContractInfo  LegacyContractInfo `protobuf:"bytes,1,opt,name=contract_info,json=contractInfo,proto3" json:"contract_info"`
	ContractStore []Model            `protobuf:"bytes,2,rep,name=contract_store,json=contractStore,proto3" json:"contract_store"`
}

Contract struct encompasses ContractAddress, ContractInfo, and ContractState

func (*Contract) Descriptor

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

func (*Contract) GetContractInfo

func (m *Contract) GetContractInfo() LegacyContractInfo

func (*Contract) GetContractStore

func (m *Contract) GetContractStore() []Model

func (*Contract) Marshal

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

func (*Contract) MarshalTo

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

func (*Contract) MarshalToSizedBuffer

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

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size

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

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal

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

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

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

func (*Contract) XXX_Merge

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

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type LegacyCodeInfo

type LegacyCodeInfo struct {
	// CodeID is the sequentially increasing unique identifier
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
	// CodeHash is the unique identifier created by wasmvm
	CodeHash []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty" yaml:"code_hash"`
	// Creator address who initially stored the code
	Creator string `protobuf:"bytes,3,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

CodeInfo is data for the uploaded contract WASM code

func (*LegacyCodeInfo) Descriptor

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

func (*LegacyCodeInfo) GetCodeHash

func (m *LegacyCodeInfo) GetCodeHash() []byte

func (*LegacyCodeInfo) GetCodeID

func (m *LegacyCodeInfo) GetCodeID() uint64

func (*LegacyCodeInfo) GetCreator

func (m *LegacyCodeInfo) GetCreator() string

func (*LegacyCodeInfo) Marshal

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

func (*LegacyCodeInfo) MarshalTo

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

func (*LegacyCodeInfo) MarshalToSizedBuffer

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

func (*LegacyCodeInfo) ProtoMessage

func (*LegacyCodeInfo) ProtoMessage()

func (*LegacyCodeInfo) Reset

func (m *LegacyCodeInfo) Reset()

func (*LegacyCodeInfo) Size

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

func (*LegacyCodeInfo) String

func (m *LegacyCodeInfo) String() string

func (*LegacyCodeInfo) Unmarshal

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

func (*LegacyCodeInfo) XXX_DiscardUnknown

func (m *LegacyCodeInfo) XXX_DiscardUnknown()

func (*LegacyCodeInfo) XXX_Marshal

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

func (*LegacyCodeInfo) XXX_Merge

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

func (*LegacyCodeInfo) XXX_Size

func (m *LegacyCodeInfo) XXX_Size() int

func (*LegacyCodeInfo) XXX_Unmarshal

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

type LegacyContractInfo

type LegacyContractInfo struct {
	// Address is the address of the contract
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// Creator is the contract creator address
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
	// Admin is who can execute the contract migration
	Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
	// CodeID is the reference to the stored Wasm code
	CodeID uint64 `protobuf:"varint,4,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
	// InitMsg is the raw message used when instantiating a contract
	InitMsg encoding_json.RawMessage `` /* 132-byte string literal not displayed */
}

ContractInfo stores a WASM contract instance

func (*LegacyContractInfo) Descriptor

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

func (*LegacyContractInfo) Equal

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

func (*LegacyContractInfo) GetAddress

func (m *LegacyContractInfo) GetAddress() string

func (*LegacyContractInfo) GetAdmin

func (m *LegacyContractInfo) GetAdmin() string

func (*LegacyContractInfo) GetCodeID

func (m *LegacyContractInfo) GetCodeID() uint64

func (*LegacyContractInfo) GetCreator

func (m *LegacyContractInfo) GetCreator() string

func (*LegacyContractInfo) GetInitMsg

func (*LegacyContractInfo) Marshal

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

func (*LegacyContractInfo) MarshalTo

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

func (*LegacyContractInfo) MarshalToSizedBuffer

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

func (*LegacyContractInfo) ProtoMessage

func (*LegacyContractInfo) ProtoMessage()

func (*LegacyContractInfo) Reset

func (m *LegacyContractInfo) Reset()

func (*LegacyContractInfo) Size

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

func (*LegacyContractInfo) String

func (m *LegacyContractInfo) String() string

func (*LegacyContractInfo) Unmarshal

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

func (*LegacyContractInfo) XXX_DiscardUnknown

func (m *LegacyContractInfo) XXX_DiscardUnknown()

func (*LegacyContractInfo) XXX_Marshal

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

func (*LegacyContractInfo) XXX_Merge

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

func (*LegacyContractInfo) XXX_Size

func (m *LegacyContractInfo) XXX_Size() int

func (*LegacyContractInfo) XXX_Unmarshal

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

type Model

type Model struct {
	Key   []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

Model is a struct that holds a KV pair

func (*Model) Descriptor

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

func (*Model) GetKey

func (m *Model) GetKey() []byte

func (*Model) GetValue

func (m *Model) GetValue() []byte

func (*Model) Marshal

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

func (*Model) MarshalTo

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

func (*Model) MarshalToSizedBuffer

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

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) Reset

func (m *Model) Reset()

func (*Model) Size

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

func (*Model) String

func (m *Model) String() string

func (*Model) Unmarshal

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

func (*Model) XXX_DiscardUnknown

func (m *Model) XXX_DiscardUnknown()

func (*Model) XXX_Marshal

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

func (*Model) XXX_Merge

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

func (*Model) XXX_Size

func (m *Model) XXX_Size() int

func (*Model) XXX_Unmarshal

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

type MsgClearContractAdmin

type MsgClearContractAdmin struct {
	// Admin is the current contract admin
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"`
}

MsgClearContractAdmin represents a message to clear admin address from a smart contract

func NewMsgClearContractAdmin

func NewMsgClearContractAdmin(admin, contract sdk.AccAddress) *MsgClearContractAdmin

NewMsgClearContractAdmin creates a MsgClearContractAdmin instance

func (*MsgClearContractAdmin) Descriptor

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

func (MsgClearContractAdmin) GetSignBytes

func (msg MsgClearContractAdmin) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgClearContractAdmin) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgClearContractAdmin) Marshal

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

func (*MsgClearContractAdmin) MarshalTo

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

func (*MsgClearContractAdmin) MarshalToSizedBuffer

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

func (*MsgClearContractAdmin) ProtoMessage

func (*MsgClearContractAdmin) ProtoMessage()

func (*MsgClearContractAdmin) Reset

func (m *MsgClearContractAdmin) Reset()

func (MsgClearContractAdmin) Route

func (msg MsgClearContractAdmin) Route() string

Route implements sdk.Msg

func (*MsgClearContractAdmin) Size

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

func (*MsgClearContractAdmin) String

func (m *MsgClearContractAdmin) String() string

func (MsgClearContractAdmin) Type

func (msg MsgClearContractAdmin) Type() string

Type implements sdk.Msg

func (*MsgClearContractAdmin) Unmarshal

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

func (MsgClearContractAdmin) ValidateBasic

func (msg MsgClearContractAdmin) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgClearContractAdmin) XXX_DiscardUnknown

func (m *MsgClearContractAdmin) XXX_DiscardUnknown()

func (*MsgClearContractAdmin) XXX_Marshal

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

func (*MsgClearContractAdmin) XXX_Merge

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

func (*MsgClearContractAdmin) XXX_Size

func (m *MsgClearContractAdmin) XXX_Size() int

func (*MsgClearContractAdmin) XXX_Unmarshal

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

type MsgClearContractAdminResponse

type MsgClearContractAdminResponse struct{}

MsgClearContractAdminResponse defines the Msg/ClearContractAdmin response type.

func (*MsgClearContractAdminResponse) Descriptor

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

func (*MsgClearContractAdminResponse) Marshal

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

func (*MsgClearContractAdminResponse) MarshalTo

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

func (*MsgClearContractAdminResponse) MarshalToSizedBuffer

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

func (*MsgClearContractAdminResponse) ProtoMessage

func (*MsgClearContractAdminResponse) ProtoMessage()

func (*MsgClearContractAdminResponse) Reset

func (m *MsgClearContractAdminResponse) Reset()

func (*MsgClearContractAdminResponse) Size

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

func (*MsgClearContractAdminResponse) String

func (*MsgClearContractAdminResponse) Unmarshal

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

func (*MsgClearContractAdminResponse) XXX_DiscardUnknown

func (m *MsgClearContractAdminResponse) XXX_DiscardUnknown()

func (*MsgClearContractAdminResponse) XXX_Marshal

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

func (*MsgClearContractAdminResponse) XXX_Merge

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

func (*MsgClearContractAdminResponse) XXX_Size

func (m *MsgClearContractAdminResponse) XXX_Size() int

func (*MsgClearContractAdminResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// StoreCode to submit Wasm code to the system
	StoreCode(ctx context.Context, in *MsgStoreCode, opts ...grpc.CallOption) (*MsgStoreCodeResponse, error)
	// MigrateCode to submit new version Wasm code to the system
	MigrateCode(ctx context.Context, in *MsgMigrateCode, opts ...grpc.CallOption) (*MsgMigrateCodeResponse, error)
	//  Instantiate creates a new smart contract instance for the given code id.
	InstantiateContract(ctx context.Context, in *MsgInstantiateContract, opts ...grpc.CallOption) (*MsgInstantiateContractResponse, error)
	// Execute submits the given message data to a smart contract
	ExecuteContract(ctx context.Context, in *MsgExecuteContract, opts ...grpc.CallOption) (*MsgExecuteContractResponse, error)
	// Migrate runs a code upgrade/ downgrade for a smart contract
	MigrateContract(ctx context.Context, in *MsgMigrateContract, opts ...grpc.CallOption) (*MsgMigrateContractResponse, error)
	// UpdateContractAdmin sets a new admin for a smart contract
	UpdateContractAdmin(ctx context.Context, in *MsgUpdateContractAdmin, opts ...grpc.CallOption) (*MsgUpdateContractAdminResponse, error)
	// ClearContractAdmin remove admin flag from a smart contract
	ClearContractAdmin(ctx context.Context, in *MsgClearContractAdmin, opts ...grpc.CallOption) (*MsgClearContractAdminResponse, 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 MsgExecuteContract

type MsgExecuteContract struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"`
	// ExecuteMsg json encoded message to be passed to the contract
	ExecuteMsg encoding_json.RawMessage `` /* 144-byte string literal not displayed */
	// Coins that are transferred to the contract on execution
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
}

MsgExecuteContract represents a message to submits the given message data to a smart contract.

func NewMsgExecuteContract

func NewMsgExecuteContract(sender sdk.AccAddress, contract sdk.AccAddress, execMsg []byte, coins sdk.Coins) *MsgExecuteContract

NewMsgExecuteContract creates a NewMsgExecuteContract instance

func (*MsgExecuteContract) Descriptor

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

func (MsgExecuteContract) GetSignBytes

func (msg MsgExecuteContract) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgExecuteContract) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgExecuteContract) Marshal

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

func (*MsgExecuteContract) MarshalTo

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

func (*MsgExecuteContract) MarshalToSizedBuffer

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

func (*MsgExecuteContract) ProtoMessage

func (*MsgExecuteContract) ProtoMessage()

func (*MsgExecuteContract) Reset

func (m *MsgExecuteContract) Reset()

func (MsgExecuteContract) Route

func (msg MsgExecuteContract) Route() string

Route implements sdk.Msg

func (*MsgExecuteContract) Size

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

func (*MsgExecuteContract) String

func (m *MsgExecuteContract) String() string

func (MsgExecuteContract) Type

func (msg MsgExecuteContract) Type() string

Type implements sdk.Msg

func (*MsgExecuteContract) Unmarshal

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

func (MsgExecuteContract) ValidateBasic

func (msg MsgExecuteContract) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgExecuteContract) XXX_DiscardUnknown

func (m *MsgExecuteContract) XXX_DiscardUnknown()

func (*MsgExecuteContract) XXX_Marshal

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

func (*MsgExecuteContract) XXX_Merge

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

func (*MsgExecuteContract) XXX_Size

func (m *MsgExecuteContract) XXX_Size() int

func (*MsgExecuteContract) XXX_Unmarshal

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

type MsgExecuteContractResponse

type MsgExecuteContractResponse struct {
	// Data contains base64-encoded bytes to returned from the contract
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

MsgExecuteContractResponse defines the Msg/ExecuteContract response type.

func (*MsgExecuteContractResponse) Descriptor

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

func (*MsgExecuteContractResponse) GetData

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

func (*MsgExecuteContractResponse) Marshal

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

func (*MsgExecuteContractResponse) MarshalTo

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

func (*MsgExecuteContractResponse) MarshalToSizedBuffer

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

func (*MsgExecuteContractResponse) ProtoMessage

func (*MsgExecuteContractResponse) ProtoMessage()

func (*MsgExecuteContractResponse) Reset

func (m *MsgExecuteContractResponse) Reset()

func (*MsgExecuteContractResponse) Size

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

func (*MsgExecuteContractResponse) String

func (m *MsgExecuteContractResponse) String() string

func (*MsgExecuteContractResponse) Unmarshal

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

func (*MsgExecuteContractResponse) XXX_DiscardUnknown

func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()

func (*MsgExecuteContractResponse) XXX_Marshal

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

func (*MsgExecuteContractResponse) XXX_Merge

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

func (*MsgExecuteContractResponse) XXX_Size

func (m *MsgExecuteContractResponse) XXX_Size() int

func (*MsgExecuteContractResponse) XXX_Unmarshal

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

type MsgInstantiateContract

type MsgInstantiateContract struct {
	// Sender is an sender address
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Admin is an optional admin address who can migrate the contract
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
	// InitMsg json encoded message to be passed to the contract on instantiation
	InitMsg encoding_json.RawMessage `` /* 132-byte string literal not displayed */
	// InitCoins that are transferred to the contract on execution
	InitCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}

MsgInstantiateContract represents a message to create a new smart contract instance for the given code id.

func NewMsgInstantiateContract

func NewMsgInstantiateContract(sender, admin sdk.AccAddress, codeID uint64, initMsg []byte, initCoins sdk.Coins) *MsgInstantiateContract

NewMsgInstantiateContract creates a MsgInstantiateContract instance

func (*MsgInstantiateContract) Descriptor

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

func (MsgInstantiateContract) GetSignBytes

func (msg MsgInstantiateContract) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgInstantiateContract) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgInstantiateContract) Marshal

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

func (*MsgInstantiateContract) MarshalTo

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

func (*MsgInstantiateContract) MarshalToSizedBuffer

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

func (*MsgInstantiateContract) ProtoMessage

func (*MsgInstantiateContract) ProtoMessage()

func (*MsgInstantiateContract) Reset

func (m *MsgInstantiateContract) Reset()

func (MsgInstantiateContract) Route

func (msg MsgInstantiateContract) Route() string

Route implements sdk.Msg

func (*MsgInstantiateContract) Size

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

func (*MsgInstantiateContract) String

func (m *MsgInstantiateContract) String() string

func (MsgInstantiateContract) Type

func (msg MsgInstantiateContract) Type() string

Type implements sdk.Msg

func (*MsgInstantiateContract) Unmarshal

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

func (MsgInstantiateContract) ValidateBasic

func (msg MsgInstantiateContract) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgInstantiateContract) XXX_DiscardUnknown

func (m *MsgInstantiateContract) XXX_DiscardUnknown()

func (*MsgInstantiateContract) XXX_Marshal

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

func (*MsgInstantiateContract) XXX_Merge

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

func (*MsgInstantiateContract) XXX_Size

func (m *MsgInstantiateContract) XXX_Size() int

func (*MsgInstantiateContract) XXX_Unmarshal

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

type MsgInstantiateContractResponse

type MsgInstantiateContractResponse struct {
	// ContractAddress is the bech32 address of the new contract instance.
	ContractAddress string `` /* 130-byte string literal not displayed */
	// Data contains base64-encoded bytes to returned from the contract
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

MsgInstantiateContractResponse defines the Msg/InstantiateContract response type.

func (*MsgInstantiateContractResponse) Descriptor

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

func (*MsgInstantiateContractResponse) GetContractAddress

func (m *MsgInstantiateContractResponse) GetContractAddress() string

func (*MsgInstantiateContractResponse) GetData

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

func (*MsgInstantiateContractResponse) Marshal

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

func (*MsgInstantiateContractResponse) MarshalTo

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

func (*MsgInstantiateContractResponse) MarshalToSizedBuffer

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

func (*MsgInstantiateContractResponse) ProtoMessage

func (*MsgInstantiateContractResponse) ProtoMessage()

func (*MsgInstantiateContractResponse) Reset

func (m *MsgInstantiateContractResponse) Reset()

func (*MsgInstantiateContractResponse) Size

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

func (*MsgInstantiateContractResponse) String

func (*MsgInstantiateContractResponse) Unmarshal

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

func (*MsgInstantiateContractResponse) XXX_DiscardUnknown

func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()

func (*MsgInstantiateContractResponse) XXX_Marshal

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

func (*MsgInstantiateContractResponse) XXX_Merge

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

func (*MsgInstantiateContractResponse) XXX_Size

func (m *MsgInstantiateContractResponse) XXX_Size() int

func (*MsgInstantiateContractResponse) XXX_Unmarshal

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

type MsgMigrateCode

type MsgMigrateCode struct {
	// CodeID is the migration target code id
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// WASMByteCode can be raw or gzip compressed
	WASMByteCode []byte `protobuf:"bytes,3,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty" yaml:"wasm_byte_code"`
}

MsgMigrateCode represents a message to submit Wasm code to the system

func NewMsgMigrateCode

func NewMsgMigrateCode(codeID uint64, sender sdk.AccAddress, wasmByteCode []byte) *MsgMigrateCode

NewMsgMigrateCode creates a MsgMigrateCode instance TODO - remove after columbus-5 update

func (*MsgMigrateCode) Descriptor

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

func (MsgMigrateCode) GetSignBytes

func (msg MsgMigrateCode) GetSignBytes() []byte

GetSignBytes Implements Msg

func (MsgMigrateCode) GetSigners

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

GetSigners Implements Msg

func (*MsgMigrateCode) Marshal

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

func (*MsgMigrateCode) MarshalTo

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

func (*MsgMigrateCode) MarshalToSizedBuffer

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

func (*MsgMigrateCode) ProtoMessage

func (*MsgMigrateCode) ProtoMessage()

func (*MsgMigrateCode) Reset

func (m *MsgMigrateCode) Reset()

func (MsgMigrateCode) Route

func (msg MsgMigrateCode) Route() string

Route implements sdk.Msg

func (*MsgMigrateCode) Size

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

func (*MsgMigrateCode) String

func (m *MsgMigrateCode) String() string

func (MsgMigrateCode) Type

func (msg MsgMigrateCode) Type() string

Type implements sdk.Msg

func (*MsgMigrateCode) Unmarshal

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

func (MsgMigrateCode) ValidateBasic

func (msg MsgMigrateCode) ValidateBasic() error

ValidateBasic Implements sdk.Msg

func (*MsgMigrateCode) XXX_DiscardUnknown

func (m *MsgMigrateCode) XXX_DiscardUnknown()

func (*MsgMigrateCode) XXX_Marshal

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

func (*MsgMigrateCode) XXX_Merge

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

func (*MsgMigrateCode) XXX_Size

func (m *MsgMigrateCode) XXX_Size() int

func (*MsgMigrateCode) XXX_Unmarshal

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

type MsgMigrateCodeResponse

type MsgMigrateCodeResponse struct{}

MsgMigrateCodeResponse defines the Msg/MigrateCode response type.

func (*MsgMigrateCodeResponse) Descriptor

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

func (*MsgMigrateCodeResponse) Marshal

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

func (*MsgMigrateCodeResponse) MarshalTo

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

func (*MsgMigrateCodeResponse) MarshalToSizedBuffer

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

func (*MsgMigrateCodeResponse) ProtoMessage

func (*MsgMigrateCodeResponse) ProtoMessage()

func (*MsgMigrateCodeResponse) Reset

func (m *MsgMigrateCodeResponse) Reset()

func (*MsgMigrateCodeResponse) Size

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

func (*MsgMigrateCodeResponse) String

func (m *MsgMigrateCodeResponse) String() string

func (*MsgMigrateCodeResponse) Unmarshal

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

func (*MsgMigrateCodeResponse) XXX_DiscardUnknown

func (m *MsgMigrateCodeResponse) XXX_DiscardUnknown()

func (*MsgMigrateCodeResponse) XXX_Marshal

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

func (*MsgMigrateCodeResponse) XXX_Merge

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

func (*MsgMigrateCodeResponse) XXX_Size

func (m *MsgMigrateCodeResponse) XXX_Size() int

func (*MsgMigrateCodeResponse) XXX_Unmarshal

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

type MsgMigrateContract

type MsgMigrateContract struct {
	// Admin is the current contract admin
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"`
	// NewCodeID references the new WASM code
	NewCodeID uint64 `protobuf:"varint,3,opt,name=new_code_id,json=newCodeId,proto3" json:"new_code_id,omitempty" yaml:"new_code_id"`
	// MigrateMsg is json encoded message to be passed to the contract on migration
	MigrateMsg encoding_json.RawMessage `` /* 144-byte string literal not displayed */
}

MsgMigrateContract represents a message to runs a code upgrade/ downgrade for a smart contract

func NewMsgMigrateContract

func NewMsgMigrateContract(admin, contract sdk.AccAddress, newCodeID uint64, migrateMsg json.RawMessage) *MsgMigrateContract

NewMsgMigrateContract creates a MsgMigrateContract instance

func (*MsgMigrateContract) Descriptor

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

func (MsgMigrateContract) GetSignBytes

func (msg MsgMigrateContract) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgMigrateContract) GetSigners

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

GetSigners implements sdk.Msg

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) Route

func (msg MsgMigrateContract) Route() string

Route implements sdk.Msg

func (*MsgMigrateContract) Size

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

func (*MsgMigrateContract) String

func (m *MsgMigrateContract) String() string

func (MsgMigrateContract) Type

func (msg MsgMigrateContract) Type() string

Type implements sdk.Msg

func (*MsgMigrateContract) Unmarshal

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

func (MsgMigrateContract) ValidateBasic

func (msg MsgMigrateContract) ValidateBasic() error

ValidateBasic implements sdk.Msg

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 {
	// Data contains base64-encoded bytes to returned from the contract
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

MsgMigrateContractResponse defines the Msg/MigrateContract response type.

func (*MsgMigrateContractResponse) Descriptor

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

func (*MsgMigrateContractResponse) GetData

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

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 MsgServer

type MsgServer interface {
	// StoreCode to submit Wasm code to the system
	StoreCode(context.Context, *MsgStoreCode) (*MsgStoreCodeResponse, error)
	// MigrateCode to submit new version Wasm code to the system
	MigrateCode(context.Context, *MsgMigrateCode) (*MsgMigrateCodeResponse, error)
	//  Instantiate creates a new smart contract instance for the given code id.
	InstantiateContract(context.Context, *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
	// Execute submits the given message data to a smart contract
	ExecuteContract(context.Context, *MsgExecuteContract) (*MsgExecuteContractResponse, error)
	// Migrate runs a code upgrade/ downgrade for a smart contract
	MigrateContract(context.Context, *MsgMigrateContract) (*MsgMigrateContractResponse, error)
	// UpdateContractAdmin sets a new admin for a smart contract
	UpdateContractAdmin(context.Context, *MsgUpdateContractAdmin) (*MsgUpdateContractAdminResponse, error)
	// ClearContractAdmin remove admin flag from a smart contract
	ClearContractAdmin(context.Context, *MsgClearContractAdmin) (*MsgClearContractAdminResponse, error)
}

MsgServer is the server API for Msg service.

type MsgStoreCode

type MsgStoreCode struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// WASMByteCode can be raw or gzip compressed
	WASMByteCode []byte `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty" yaml:"wasm_byte_code"`
}

MsgStoreCode represents a message to submit Wasm code to the system

func NewMsgStoreCode

func NewMsgStoreCode(sender sdk.AccAddress, wasmByteCode []byte) *MsgStoreCode

NewMsgStoreCode creates a MsgStoreCode instance

func (*MsgStoreCode) Descriptor

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

func (MsgStoreCode) GetSignBytes

func (msg MsgStoreCode) GetSignBytes() []byte

GetSignBytes Implements Msg

func (MsgStoreCode) GetSigners

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

GetSigners Implements Msg

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) Route

func (msg MsgStoreCode) Route() string

Route implements sdk.Msg

func (*MsgStoreCode) Size

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

func (*MsgStoreCode) String

func (m *MsgStoreCode) String() string

func (MsgStoreCode) Type

func (msg MsgStoreCode) Type() string

Type implements sdk.Msg

func (*MsgStoreCode) Unmarshal

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

func (MsgStoreCode) ValidateBasic

func (msg 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 {
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
}

MsgStoreCodeResponse defines the Msg/StoreCode response type.

func (*MsgStoreCodeResponse) Descriptor

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

func (*MsgStoreCodeResponse) GetCodeID

func (m *MsgStoreCodeResponse) GetCodeID() uint64

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 MsgUpdateContractAdmin

type MsgUpdateContractAdmin struct {
	// Admin is the current contract admin
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
	// NewAdmin is the new contract admin
	NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty" yaml:"new_admin"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"`
}

MsgUpdateContractAdmin represents a message to sets a new admin for a smart contract

func NewMsgUpdateContractAdmin

func NewMsgUpdateContractAdmin(admin, newAdmin, contract sdk.AccAddress) *MsgUpdateContractAdmin

NewMsgUpdateContractAdmin creates a MsgUpdateContractAdmin instance

func (*MsgUpdateContractAdmin) Descriptor

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

func (MsgUpdateContractAdmin) GetSignBytes

func (msg MsgUpdateContractAdmin) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgUpdateContractAdmin) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgUpdateContractAdmin) Marshal

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

func (*MsgUpdateContractAdmin) MarshalTo

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

func (*MsgUpdateContractAdmin) MarshalToSizedBuffer

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

func (*MsgUpdateContractAdmin) ProtoMessage

func (*MsgUpdateContractAdmin) ProtoMessage()

func (*MsgUpdateContractAdmin) Reset

func (m *MsgUpdateContractAdmin) Reset()

func (MsgUpdateContractAdmin) Route

func (msg MsgUpdateContractAdmin) Route() string

Route implements sdk.Msg

func (*MsgUpdateContractAdmin) Size

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

func (*MsgUpdateContractAdmin) String

func (m *MsgUpdateContractAdmin) String() string

func (MsgUpdateContractAdmin) Type

func (msg MsgUpdateContractAdmin) Type() string

Type implements sdk.Msg

func (*MsgUpdateContractAdmin) Unmarshal

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

func (MsgUpdateContractAdmin) ValidateBasic

func (msg MsgUpdateContractAdmin) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUpdateContractAdmin) XXX_DiscardUnknown

func (m *MsgUpdateContractAdmin) XXX_DiscardUnknown()

func (*MsgUpdateContractAdmin) XXX_Marshal

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

func (*MsgUpdateContractAdmin) XXX_Merge

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

func (*MsgUpdateContractAdmin) XXX_Size

func (m *MsgUpdateContractAdmin) XXX_Size() int

func (*MsgUpdateContractAdmin) XXX_Unmarshal

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

type MsgUpdateContractAdminResponse

type MsgUpdateContractAdminResponse struct{}

MsgUpdateContractAdminResponse defines the Msg/UpdateContractAdmin response type.

func (*MsgUpdateContractAdminResponse) Descriptor

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

func (*MsgUpdateContractAdminResponse) Marshal

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

func (*MsgUpdateContractAdminResponse) MarshalTo

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

func (*MsgUpdateContractAdminResponse) MarshalToSizedBuffer

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

func (*MsgUpdateContractAdminResponse) ProtoMessage

func (*MsgUpdateContractAdminResponse) ProtoMessage()

func (*MsgUpdateContractAdminResponse) Reset

func (m *MsgUpdateContractAdminResponse) Reset()

func (*MsgUpdateContractAdminResponse) Size

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

func (*MsgUpdateContractAdminResponse) String

func (*MsgUpdateContractAdminResponse) Unmarshal

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

func (*MsgUpdateContractAdminResponse) XXX_DiscardUnknown

func (m *MsgUpdateContractAdminResponse) XXX_DiscardUnknown()

func (*MsgUpdateContractAdminResponse) XXX_Marshal

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

func (*MsgUpdateContractAdminResponse) XXX_Merge

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

func (*MsgUpdateContractAdminResponse) XXX_Size

func (m *MsgUpdateContractAdminResponse) XXX_Size() int

func (*MsgUpdateContractAdminResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClearContractAdmin

func (*UnimplementedMsgServer) ExecuteContract

func (*UnimplementedMsgServer) InstantiateContract

func (*UnimplementedMsgServer) MigrateCode

func (*UnimplementedMsgServer) MigrateContract

func (*UnimplementedMsgServer) StoreCode

func (*UnimplementedMsgServer) UpdateContractAdmin

Jump to

Keyboard shortcuts

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