types

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	CVMCodeTypeEVMCode   = 0
	CVMCodeTypeEWASMCode = 1
)

CVM code types

View Source
const (
	EventTypeCVMEvent              = "cvm-event"
	EventTypeCall                  = "call"
	EventTypeDeploy                = "deploy"
	EventTypeInternalCall          = "internal-call"
	AttributeKeyNewContractAddress = "new-contract-address"
	AttributeKeyRecipient          = "recipient"
	AttributeKeyValue              = "value"
)
View Source
const (
	// ModuleName is the name of the staking module.
	ModuleName = "cvm"

	// StoreKey is the string store representation.
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the staking module.
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the staking module.
	RouterKey = ModuleName

	// DefaultParamspace is the default name for parameter store.
	DefaultParamspace = ModuleName
)
View Source
const (
	TypeMsgDeploy = "deploy"
	TypeMsgCall   = "call"
)

Governance message types and routes

View Source
const (
	QueryCode     = "code"
	QueryStorage  = "storage"
	QueryAbi      = "abi"
	QueryAddrMeta = "address-meta"
	QueryMeta     = "meta"
	QueryView     = "view"
	QueryAccount  = "account"
)

querier keys

View Source
const BurrowErrorCodeStart = 200

BurrowErrorCodeStart is the default sdk code type.

View Source
const (
	DefaultGasRate uint64 = 1
)

Default parameter values

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 (
	// StorageStoreKeyPrefix is the prefix of CVM storage kv-store keys.
	StorageStoreKeyPrefix = []byte{0x00}

	// BlockHashStoreKeyPrefix is the prefix of block hash kv-store keys.
	BlockHashStoreKeyPrefix = []byte{0x01}

	// CodeStoreKeyPrefix is the prefix of code kv-store keys.
	CodeStoreKeyPrefix = []byte{0x02}

	// AbiStoreKeyPrefix is the prefix of code ABI kv-store keys.
	AbiStoreKeyPrefix = []byte{0x03}

	// MetaHashStoreKeyPrefix is the prefix of contract metadata hash kv-store keys.
	MetaHashStoreKeyPrefix = []byte{0x04}

	// AddressMetaHashStoreKeyPrefix is the prefix of contract metadata hash kv-store keys.
	AddressMetaHashStoreKeyPrefix = []byte{0x5}
)
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")
)
View Source
var (

	// ModuleCdc references the global x/cvm module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/cvm and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ParamStoreKeyGasRate = []byte("GasRate")
)

Parameter keys

Functions

func AbiStoreKey

func AbiStoreKey(addr crypto.Address) []byte

AbiStoreKey returns the kv-store key for the contract's code ABI key.

func AddressMetaStoreKey

func AddressMetaStoreKey(addr crypto.Address) []byte

AddressMetaStoreKey returns the kv-store key for the address-metahash key.

func BlockHashStoreKey

func BlockHashStoreKey(height int64) []byte

BlockHashStoreKey returns the kv-store key for the chain's block hashes.

func CodeStoreKey

func CodeStoreKey(addr crypto.Address) []byte

CodeStoreKey returns the kv-store key for the contract's storage key.

func ErrCodedError

func ErrCodedError(error errors.CodedError) *sdkerrors.Error

ErrCodedError wraps execution CodedError into sdk Error.

func MetaHashStoreKey

func MetaHashStoreKey(metahash acmstate.MetadataHash) []byte

metaHashStoreKey returns the kv-store key for the metahash key.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for auth module

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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)

func StorageStoreKey

func StorageStoreKey(addr crypto.Address, key binary.Word256) []byte

StorageStoreKey returns the kv-store key for the contract's storage key.

Types

type AccountKeeper

type AccountKeeper interface {
	IterateAccounts(ctx sdk.Context, process func(i authtypes.AccountI) (stop bool))
	GetAccount(ctx sdk.Context, address sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, account authtypes.AccountI)
	NewAccount(ctx sdk.Context, account authtypes.AccountI) authtypes.AccountI
	NewAccountWithAddress(sdk.Context, sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the expected account keeper (noalias)

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
}

BankKeeper defines the expected bank keeper (noalias)

type CVMAccount

type CVMAccount struct {
	*types.BaseAccount ``     /* 136-byte string literal not displayed */
	Code               string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty" yaml:"code"`
	Abi                string `protobuf:"bytes,3,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"`
}

func (*CVMAccount) Descriptor

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

func (*CVMAccount) GetAbi

func (m *CVMAccount) GetAbi() string

func (*CVMAccount) GetCode

func (m *CVMAccount) GetCode() string

func (*CVMAccount) Marshal

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

func (*CVMAccount) MarshalTo

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

func (*CVMAccount) MarshalToSizedBuffer

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

func (*CVMAccount) ProtoMessage

func (*CVMAccount) ProtoMessage()

func (*CVMAccount) Reset

func (m *CVMAccount) Reset()

func (*CVMAccount) Size

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

func (*CVMAccount) String

func (m *CVMAccount) String() string

func (*CVMAccount) Unmarshal

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

func (*CVMAccount) XXX_DiscardUnknown

func (m *CVMAccount) XXX_DiscardUnknown()

func (*CVMAccount) XXX_Marshal

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

func (*CVMAccount) XXX_Merge

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

func (*CVMAccount) XXX_Size

func (m *CVMAccount) XXX_Size() int

func (*CVMAccount) XXX_Unmarshal

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

type CVMCode

type CVMCode struct {
	CodeType int64                                      `protobuf:"varint,1,opt,name=code_type,json=codeType,proto3" json:"code_type,omitempty" yaml:"code_type"`
	Code     github_com_hyperledger_burrow_acm.Bytecode `protobuf:"bytes,2,opt,name=code,proto3,customtype=github.com/hyperledger/burrow/acm.Bytecode" json:"code" yaml:"code"`
}

func NewCVMCode

func NewCVMCode(codeType int64, code []byte) CVMCode

NewCVMCode returns a new CVM code instance.

func (*CVMCode) Descriptor

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

func (*CVMCode) GetCodeType

func (m *CVMCode) GetCodeType() int64

func (*CVMCode) Marshal

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

func (*CVMCode) MarshalTo

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

func (*CVMCode) MarshalToSizedBuffer

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

func (*CVMCode) ProtoMessage

func (*CVMCode) ProtoMessage()

func (*CVMCode) Reset

func (m *CVMCode) Reset()

func (*CVMCode) Size

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

func (*CVMCode) String

func (m *CVMCode) String() string

func (*CVMCode) Unmarshal

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

func (*CVMCode) XXX_DiscardUnknown

func (m *CVMCode) XXX_DiscardUnknown()

func (*CVMCode) XXX_Marshal

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

func (*CVMCode) XXX_Merge

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

func (*CVMCode) XXX_MessageName

func (*CVMCode) XXX_MessageName() string

func (*CVMCode) XXX_Size

func (m *CVMCode) XXX_Size() int

func (*CVMCode) XXX_Unmarshal

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

type CertKeeper

type CertKeeper interface {
	IsCertified(ctx sdk.Context, content string, certType string) bool
	IsContentCertified(ctx sdk.Context, content string) bool
	IsCertifier(ctx sdk.Context, addr sdk.AccAddress) bool
}

CertKeeper defines the expected cert keeper (noalias)

type Contract

type Contract struct {
	Address github_com_hyperledger_burrow_crypto.Address `` /* 128-byte string literal not displayed */
	Code    CVMCode                                      `protobuf:"bytes,2,opt,name=code,proto3" json:"code" yaml:"code"`
	Storage []Storage                                    `protobuf:"bytes,3,rep,name=storage,proto3" json:"storage" yaml:"storage"`
	Abi     []byte                                       `protobuf:"bytes,4,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"`
	Meta    []ContractMeta                               `protobuf:"bytes,5,rep,name=meta,proto3" json:"meta" yaml:"contract_meta"`
}

func (*Contract) Descriptor

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

func (*Contract) GetAbi

func (m *Contract) GetAbi() []byte

func (*Contract) GetCode

func (m *Contract) GetCode() CVMCode

func (*Contract) GetMeta

func (m *Contract) GetMeta() []ContractMeta

func (*Contract) GetStorage

func (m *Contract) GetStorage() []Storage

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_MessageName

func (*Contract) XXX_MessageName() string

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type ContractMeta

type ContractMeta struct {
	CodeHash     []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty" yaml:"code_hash"`
	MetadataHash []byte `protobuf:"bytes,2,opt,name=metadata_hash,json=metadataHash,proto3" json:"metadata_hash,omitempty" yaml:"metadata_hash"`
}

func (*ContractMeta) Descriptor

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

func (*ContractMeta) GetCodeHash

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

func (*ContractMeta) GetMetadataHash

func (m *ContractMeta) GetMetadataHash() []byte

func (*ContractMeta) Marshal

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

func (*ContractMeta) MarshalTo

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

func (*ContractMeta) MarshalToSizedBuffer

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

func (*ContractMeta) ProtoMessage

func (*ContractMeta) ProtoMessage()

func (*ContractMeta) Reset

func (m *ContractMeta) Reset()

func (*ContractMeta) Size

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

func (*ContractMeta) String

func (m *ContractMeta) String() string

func (*ContractMeta) Unmarshal

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

func (*ContractMeta) XXX_DiscardUnknown

func (m *ContractMeta) XXX_DiscardUnknown()

func (*ContractMeta) XXX_Marshal

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

func (*ContractMeta) XXX_Merge

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

func (*ContractMeta) XXX_MessageName

func (*ContractMeta) XXX_MessageName() string

func (*ContractMeta) XXX_Size

func (m *ContractMeta) XXX_Size() int

func (*ContractMeta) XXX_Unmarshal

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

type ContractMetas

type ContractMetas struct {
	Metas []*acm.ContractMeta `protobuf:"bytes,1,rep,name=metas,proto3" json:"metas,omitempty"`
}

func (*ContractMetas) Descriptor

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

func (*ContractMetas) GetMetas

func (m *ContractMetas) GetMetas() []*acm.ContractMeta

func (*ContractMetas) Marshal

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

func (*ContractMetas) MarshalTo

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

func (*ContractMetas) MarshalToSizedBuffer

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

func (*ContractMetas) ProtoMessage

func (*ContractMetas) ProtoMessage()

func (*ContractMetas) Reset

func (m *ContractMetas) Reset()

func (*ContractMetas) Size

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

func (*ContractMetas) String

func (m *ContractMetas) String() string

func (*ContractMetas) Unmarshal

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

func (*ContractMetas) XXX_DiscardUnknown

func (m *ContractMetas) XXX_DiscardUnknown()

func (*ContractMetas) XXX_Marshal

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

func (*ContractMetas) XXX_Merge

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

func (*ContractMetas) XXX_MessageName

func (*ContractMetas) XXX_MessageName() string

func (*ContractMetas) XXX_Size

func (m *ContractMetas) XXX_Size() int

func (*ContractMetas) XXX_Unmarshal

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

type Contracts

type Contracts = []Contract

type DistributionKeeper

type DistributionKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

DistributionKeeper defines the expected distribution keeper (noalias)

type GenesisState

type GenesisState struct {
	GasRate   uint64    `protobuf:"varint,1,opt,name=gas_rate,json=gasRate,proto3" json:"gas_rate,omitempty" yaml:"gas_rate"`
	Contracts Contracts `protobuf:"bytes,2,rep,name=contracts,proto3,castrepeated=Contracts" json:"contracts"`
	Metadatas Metadatas `protobuf:"bytes,3,rep,name=metadatas,proto3,castrepeated=Metadatas" json:"metadatas"`
}

GenesisState defines the gov module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object.

func NewGenesisState

func NewGenesisState(rate uint64) GenesisState

NewGenesisState creates a new GenesisState object.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetContracts

func (m *GenesisState) GetContracts() Contracts

func (*GenesisState) GetGasRate

func (m *GenesisState) GetGasRate() uint64

func (*GenesisState) GetMetadatas

func (m *GenesisState) GetMetadatas() Metadatas

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 validation of cvm genesis data.

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_MessageName

func (*GenesisState) XXX_MessageName() string

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type Metadata

type Metadata struct {
	Hash     []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" yaml:"hash"`
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty" yaml:"metadata"`
}

func (*Metadata) Descriptor

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

func (*Metadata) GetHash

func (m *Metadata) GetHash() []byte

func (*Metadata) GetMetadata

func (m *Metadata) GetMetadata() string

func (*Metadata) Marshal

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

func (*Metadata) MarshalTo

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

func (*Metadata) MarshalToSizedBuffer

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

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

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

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Unmarshal

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

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

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

func (*Metadata) XXX_MessageName

func (*Metadata) XXX_MessageName() string

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

type Metadatas

type Metadatas = []Metadata

type MsgCall

type MsgCall struct {
	Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty" yaml:"caller"`
	Callee string `protobuf:"bytes,2,opt,name=callee,proto3" json:"callee,omitempty" yaml:"callee"`
	Value  uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
	Data   []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

func NewMsgCall

func NewMsgCall(caller, callee string, value uint64, data []byte) MsgCall

NewMsgCall returns a new CVM call message.

func (*MsgCall) Descriptor

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

func (*MsgCall) GetCallee

func (m *MsgCall) GetCallee() string

func (*MsgCall) GetCaller

func (m *MsgCall) GetCaller() string

func (*MsgCall) GetData

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

func (MsgCall) GetSignBytes

func (m MsgCall) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgCall) GetSigners

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

GetSigners defines whose signature is required.

func (*MsgCall) GetValue

func (m *MsgCall) GetValue() uint64

func (*MsgCall) Marshal

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

func (*MsgCall) MarshalTo

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

func (*MsgCall) MarshalToSizedBuffer

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

func (*MsgCall) ProtoMessage

func (*MsgCall) ProtoMessage()

func (*MsgCall) Reset

func (m *MsgCall) Reset()

func (MsgCall) Route

func (m MsgCall) Route() string

Route returns the module name.

func (*MsgCall) Size

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

func (*MsgCall) String

func (m *MsgCall) String() string

func (MsgCall) Type

func (m MsgCall) Type() string

Type returns the action name.

func (*MsgCall) Unmarshal

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

func (MsgCall) ValidateBasic

func (m MsgCall) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgCall) XXX_DiscardUnknown

func (m *MsgCall) XXX_DiscardUnknown()

func (*MsgCall) XXX_Marshal

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

func (*MsgCall) XXX_Merge

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

func (*MsgCall) XXX_Size

func (m *MsgCall) XXX_Size() int

func (*MsgCall) XXX_Unmarshal

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

type MsgCallResponse

type MsgCallResponse struct {
	Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
}

func (*MsgCallResponse) Descriptor

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

func (*MsgCallResponse) GetResult

func (m *MsgCallResponse) GetResult() []byte

func (*MsgCallResponse) Marshal

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

func (*MsgCallResponse) MarshalTo

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

func (*MsgCallResponse) MarshalToSizedBuffer

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

func (*MsgCallResponse) ProtoMessage

func (*MsgCallResponse) ProtoMessage()

func (*MsgCallResponse) Reset

func (m *MsgCallResponse) Reset()

func (*MsgCallResponse) Size

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

func (*MsgCallResponse) String

func (m *MsgCallResponse) String() string

func (*MsgCallResponse) Unmarshal

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

func (*MsgCallResponse) XXX_DiscardUnknown

func (m *MsgCallResponse) XXX_DiscardUnknown()

func (*MsgCallResponse) XXX_Marshal

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

func (*MsgCallResponse) XXX_Merge

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

func (*MsgCallResponse) XXX_Size

func (m *MsgCallResponse) XXX_Size() int

func (*MsgCallResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Call(ctx context.Context, in *MsgCall, opts ...grpc.CallOption) (*MsgCallResponse, error)
	Deploy(ctx context.Context, in *MsgDeploy, opts ...grpc.CallOption) (*MsgDeployResponse, 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 MsgDeploy

type MsgDeploy struct {
	// Caller is the sender of the CVM-message.
	Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty" yaml:"caller"`
	// Value is the amount of CTK transferred with the call.
	Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
	// Code is the contract byte code.
	Code []byte `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty" yaml:"code"`
	// Abi is the Solidity ABI bytes for the contract code.
	Abi string `protobuf:"bytes,4,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"`
	// Meta is the metadata for the contract.
	Meta []*payload.ContractMeta `protobuf:"bytes,5,rep,name=meta,proto3" json:"meta,omitempty" yaml:"meta"`
	// is_eWASM is true if the code is EWASM code.
	IsEWASM bool `protobuf:"varint,6,opt,name=is_eWASM,json=isEWASM,proto3" json:"is_eWASM,omitempty" yaml:"is_EWASM"`
	// is_runtime is true if the code is runtime code.
	IsRuntime bool `protobuf:"varint,7,opt,name=is_runtime,json=isRuntime,proto3" json:"is_runtime,omitempty" yaml:"is_runtime"`
}

func NewMsgDeploy

func NewMsgDeploy(caller string, value uint64, code acm.Bytecode, abi string, meta []*payload.ContractMeta, isEWASM, isRuntime bool) MsgDeploy

NewMsgDeploy returns a new CVM deploy message.

func (*MsgDeploy) Descriptor

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

func (*MsgDeploy) GetAbi

func (m *MsgDeploy) GetAbi() string

func (*MsgDeploy) GetCaller

func (m *MsgDeploy) GetCaller() string

func (*MsgDeploy) GetCode

func (m *MsgDeploy) GetCode() []byte

func (*MsgDeploy) GetIsEWASM

func (m *MsgDeploy) GetIsEWASM() bool

func (*MsgDeploy) GetIsRuntime

func (m *MsgDeploy) GetIsRuntime() bool

func (*MsgDeploy) GetMeta

func (m *MsgDeploy) GetMeta() []*payload.ContractMeta

func (MsgDeploy) GetSignBytes

func (m MsgDeploy) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgDeploy) GetSigners

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

GetSigners defines whose signature is required.

func (*MsgDeploy) GetValue

func (m *MsgDeploy) GetValue() uint64

func (*MsgDeploy) Marshal

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

func (*MsgDeploy) MarshalTo

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

func (*MsgDeploy) MarshalToSizedBuffer

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

func (*MsgDeploy) ProtoMessage

func (*MsgDeploy) ProtoMessage()

func (*MsgDeploy) Reset

func (m *MsgDeploy) Reset()

func (MsgDeploy) Route

func (m MsgDeploy) Route() string

Route returns the module name.

func (*MsgDeploy) Size

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

func (*MsgDeploy) String

func (m *MsgDeploy) String() string

func (MsgDeploy) Type

func (m MsgDeploy) Type() string

Type returns the action name.

func (*MsgDeploy) Unmarshal

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

func (MsgDeploy) ValidateBasic

func (m MsgDeploy) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

func (*MsgDeploy) XXX_DiscardUnknown

func (m *MsgDeploy) XXX_DiscardUnknown()

func (*MsgDeploy) XXX_Marshal

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

func (*MsgDeploy) XXX_Merge

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

func (*MsgDeploy) XXX_Size

func (m *MsgDeploy) XXX_Size() int

func (*MsgDeploy) XXX_Unmarshal

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

type MsgDeployResponse

type MsgDeployResponse struct {
	Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
}

func (*MsgDeployResponse) Descriptor

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

func (*MsgDeployResponse) GetResult

func (m *MsgDeployResponse) GetResult() []byte

func (*MsgDeployResponse) Marshal

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

func (*MsgDeployResponse) MarshalTo

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

func (*MsgDeployResponse) MarshalToSizedBuffer

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

func (*MsgDeployResponse) ProtoMessage

func (*MsgDeployResponse) ProtoMessage()

func (*MsgDeployResponse) Reset

func (m *MsgDeployResponse) Reset()

func (*MsgDeployResponse) Size

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

func (*MsgDeployResponse) String

func (m *MsgDeployResponse) String() string

func (*MsgDeployResponse) Unmarshal

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

func (*MsgDeployResponse) XXX_DiscardUnknown

func (m *MsgDeployResponse) XXX_DiscardUnknown()

func (*MsgDeployResponse) XXX_Marshal

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

func (*MsgDeployResponse) XXX_Merge

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

func (*MsgDeployResponse) XXX_Size

func (m *MsgDeployResponse) XXX_Size() int

func (*MsgDeployResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	Call(context.Context, *MsgCall) (*MsgCallResponse, error)
	Deploy(context.Context, *MsgDeploy) (*MsgDeployResponse, error)
}

MsgServer is the server API for Msg service.

type ParamSubspace

type ParamSubspace interface {
	Get(ctx sdk.Context, key []byte, ptr interface{})
	Set(ctx sdk.Context, key []byte, param interface{})
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

type Params

type Params struct {
	GasRate uint64 `json:"gas_rate"`
}

Params defines the parameters for the cvm module.

func NewParams

func NewParams(gasRate uint64) Params

NewParams creates a new Params object.

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of cvm module's parameters.

func (Params) Validate

func (p Params) Validate() error

Validate checks that the parameters have valid values.

type QueryAbiRequest

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

func (*QueryAbiRequest) Descriptor

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

func (*QueryAbiRequest) GetAddress

func (m *QueryAbiRequest) GetAddress() string

func (*QueryAbiRequest) Marshal

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

func (*QueryAbiRequest) MarshalTo

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

func (*QueryAbiRequest) MarshalToSizedBuffer

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

func (*QueryAbiRequest) ProtoMessage

func (*QueryAbiRequest) ProtoMessage()

func (*QueryAbiRequest) Reset

func (m *QueryAbiRequest) Reset()

func (*QueryAbiRequest) Size

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

func (*QueryAbiRequest) String

func (m *QueryAbiRequest) String() string

func (*QueryAbiRequest) Unmarshal

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

func (*QueryAbiRequest) XXX_DiscardUnknown

func (m *QueryAbiRequest) XXX_DiscardUnknown()

func (*QueryAbiRequest) XXX_Marshal

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

func (*QueryAbiRequest) XXX_Merge

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

func (*QueryAbiRequest) XXX_Size

func (m *QueryAbiRequest) XXX_Size() int

func (*QueryAbiRequest) XXX_Unmarshal

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

type QueryAbiResponse

type QueryAbiResponse struct {
	Abi string `protobuf:"bytes,1,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"`
}

func (*QueryAbiResponse) Descriptor

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

func (*QueryAbiResponse) GetAbi

func (m *QueryAbiResponse) GetAbi() string

func (*QueryAbiResponse) Marshal

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

func (*QueryAbiResponse) MarshalTo

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

func (*QueryAbiResponse) MarshalToSizedBuffer

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

func (*QueryAbiResponse) ProtoMessage

func (*QueryAbiResponse) ProtoMessage()

func (*QueryAbiResponse) Reset

func (m *QueryAbiResponse) Reset()

func (*QueryAbiResponse) Size

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

func (*QueryAbiResponse) String

func (m *QueryAbiResponse) String() string

func (*QueryAbiResponse) Unmarshal

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

func (*QueryAbiResponse) XXX_DiscardUnknown

func (m *QueryAbiResponse) XXX_DiscardUnknown()

func (*QueryAbiResponse) XXX_Marshal

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

func (*QueryAbiResponse) XXX_Merge

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

func (*QueryAbiResponse) XXX_Size

func (m *QueryAbiResponse) XXX_Size() int

func (*QueryAbiResponse) XXX_Unmarshal

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

type QueryAccountRequest

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

func (*QueryAccountRequest) Descriptor

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

func (*QueryAccountRequest) GetAddress

func (m *QueryAccountRequest) GetAddress() string

func (*QueryAccountRequest) Marshal

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

func (*QueryAccountRequest) MarshalTo

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

func (*QueryAccountRequest) MarshalToSizedBuffer

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

func (*QueryAccountRequest) ProtoMessage

func (*QueryAccountRequest) ProtoMessage()

func (*QueryAccountRequest) Reset

func (m *QueryAccountRequest) Reset()

func (*QueryAccountRequest) Size

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

func (*QueryAccountRequest) String

func (m *QueryAccountRequest) String() string

func (*QueryAccountRequest) Unmarshal

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

func (*QueryAccountRequest) XXX_DiscardUnknown

func (m *QueryAccountRequest) XXX_DiscardUnknown()

func (*QueryAccountRequest) XXX_Marshal

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

func (*QueryAccountRequest) XXX_Merge

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

func (*QueryAccountRequest) XXX_Size

func (m *QueryAccountRequest) XXX_Size() int

func (*QueryAccountRequest) XXX_Unmarshal

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

type QueryAddressMetaRequest

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

func (*QueryAddressMetaRequest) Descriptor

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

func (*QueryAddressMetaRequest) GetAddress

func (m *QueryAddressMetaRequest) GetAddress() string

func (*QueryAddressMetaRequest) Marshal

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

func (*QueryAddressMetaRequest) MarshalTo

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

func (*QueryAddressMetaRequest) MarshalToSizedBuffer

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

func (*QueryAddressMetaRequest) ProtoMessage

func (*QueryAddressMetaRequest) ProtoMessage()

func (*QueryAddressMetaRequest) Reset

func (m *QueryAddressMetaRequest) Reset()

func (*QueryAddressMetaRequest) Size

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

func (*QueryAddressMetaRequest) String

func (m *QueryAddressMetaRequest) String() string

func (*QueryAddressMetaRequest) Unmarshal

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

func (*QueryAddressMetaRequest) XXX_DiscardUnknown

func (m *QueryAddressMetaRequest) XXX_DiscardUnknown()

func (*QueryAddressMetaRequest) XXX_Marshal

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

func (*QueryAddressMetaRequest) XXX_Merge

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

func (*QueryAddressMetaRequest) XXX_Size

func (m *QueryAddressMetaRequest) XXX_Size() int

func (*QueryAddressMetaRequest) XXX_Unmarshal

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

type QueryAddressMetaResponse

type QueryAddressMetaResponse struct {
	MetaHash string `protobuf:"bytes,1,opt,name=meta_hash,json=metaHash,proto3" json:"meta_hash,omitempty" yaml:"metaHash"`
}

func (*QueryAddressMetaResponse) Descriptor

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

func (*QueryAddressMetaResponse) GetMetaHash

func (m *QueryAddressMetaResponse) GetMetaHash() string

func (*QueryAddressMetaResponse) Marshal

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

func (*QueryAddressMetaResponse) MarshalTo

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

func (*QueryAddressMetaResponse) MarshalToSizedBuffer

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

func (*QueryAddressMetaResponse) ProtoMessage

func (*QueryAddressMetaResponse) ProtoMessage()

func (*QueryAddressMetaResponse) Reset

func (m *QueryAddressMetaResponse) Reset()

func (*QueryAddressMetaResponse) Size

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

func (*QueryAddressMetaResponse) String

func (m *QueryAddressMetaResponse) String() string

func (*QueryAddressMetaResponse) Unmarshal

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

func (*QueryAddressMetaResponse) XXX_DiscardUnknown

func (m *QueryAddressMetaResponse) XXX_DiscardUnknown()

func (*QueryAddressMetaResponse) XXX_Marshal

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

func (*QueryAddressMetaResponse) XXX_Merge

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

func (*QueryAddressMetaResponse) XXX_Size

func (m *QueryAddressMetaResponse) XXX_Size() int

func (*QueryAddressMetaResponse) XXX_Unmarshal

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

type QueryClient

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 QueryCodeRequest

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

func (*QueryCodeRequest) Descriptor

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

func (*QueryCodeRequest) GetAddress

func (m *QueryCodeRequest) GetAddress() string

func (*QueryCodeRequest) Marshal

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

func (*QueryCodeRequest) MarshalTo

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

func (*QueryCodeRequest) MarshalToSizedBuffer

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

func (*QueryCodeRequest) ProtoMessage

func (*QueryCodeRequest) ProtoMessage()

func (*QueryCodeRequest) Reset

func (m *QueryCodeRequest) Reset()

func (*QueryCodeRequest) Size

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

func (*QueryCodeRequest) String

func (m *QueryCodeRequest) String() string

func (*QueryCodeRequest) Unmarshal

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

func (*QueryCodeRequest) XXX_DiscardUnknown

func (m *QueryCodeRequest) XXX_DiscardUnknown()

func (*QueryCodeRequest) XXX_Marshal

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

func (*QueryCodeRequest) XXX_Merge

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

func (*QueryCodeRequest) XXX_Size

func (m *QueryCodeRequest) XXX_Size() int

func (*QueryCodeRequest) XXX_Unmarshal

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

type QueryCodeResponse

type QueryCodeResponse struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty" yaml:"code"`
}

func (*QueryCodeResponse) Descriptor

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

func (*QueryCodeResponse) GetCode

func (m *QueryCodeResponse) GetCode() string

func (*QueryCodeResponse) Marshal

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

func (*QueryCodeResponse) MarshalTo

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

func (*QueryCodeResponse) MarshalToSizedBuffer

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

func (*QueryCodeResponse) ProtoMessage

func (*QueryCodeResponse) ProtoMessage()

func (*QueryCodeResponse) Reset

func (m *QueryCodeResponse) Reset()

func (*QueryCodeResponse) Size

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

func (*QueryCodeResponse) String

func (m *QueryCodeResponse) String() string

func (*QueryCodeResponse) Unmarshal

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

func (*QueryCodeResponse) XXX_DiscardUnknown

func (m *QueryCodeResponse) XXX_DiscardUnknown()

func (*QueryCodeResponse) XXX_Marshal

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

func (*QueryCodeResponse) XXX_Merge

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

func (*QueryCodeResponse) XXX_Size

func (m *QueryCodeResponse) XXX_Size() int

func (*QueryCodeResponse) XXX_Unmarshal

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

type QueryMetaRequest

type QueryMetaRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" yaml:"hash"`
}

func (*QueryMetaRequest) Descriptor

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

func (*QueryMetaRequest) GetHash

func (m *QueryMetaRequest) GetHash() string

func (*QueryMetaRequest) Marshal

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

func (*QueryMetaRequest) MarshalTo

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

func (*QueryMetaRequest) MarshalToSizedBuffer

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

func (*QueryMetaRequest) ProtoMessage

func (*QueryMetaRequest) ProtoMessage()

func (*QueryMetaRequest) Reset

func (m *QueryMetaRequest) Reset()

func (*QueryMetaRequest) Size

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

func (*QueryMetaRequest) String

func (m *QueryMetaRequest) String() string

func (*QueryMetaRequest) Unmarshal

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

func (*QueryMetaRequest) XXX_DiscardUnknown

func (m *QueryMetaRequest) XXX_DiscardUnknown()

func (*QueryMetaRequest) XXX_Marshal

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

func (*QueryMetaRequest) XXX_Merge

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

func (*QueryMetaRequest) XXX_Size

func (m *QueryMetaRequest) XXX_Size() int

func (*QueryMetaRequest) XXX_Unmarshal

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

type QueryMetaResponse

type QueryMetaResponse struct {
	Meta string `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty" yaml:"meta"`
}

func (*QueryMetaResponse) Descriptor

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

func (*QueryMetaResponse) GetMeta

func (m *QueryMetaResponse) GetMeta() string

func (*QueryMetaResponse) Marshal

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

func (*QueryMetaResponse) MarshalTo

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

func (*QueryMetaResponse) MarshalToSizedBuffer

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

func (*QueryMetaResponse) ProtoMessage

func (*QueryMetaResponse) ProtoMessage()

func (*QueryMetaResponse) Reset

func (m *QueryMetaResponse) Reset()

func (*QueryMetaResponse) Size

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

func (*QueryMetaResponse) String

func (m *QueryMetaResponse) String() string

func (*QueryMetaResponse) Unmarshal

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

func (*QueryMetaResponse) XXX_DiscardUnknown

func (m *QueryMetaResponse) XXX_DiscardUnknown()

func (*QueryMetaResponse) XXX_Marshal

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

func (*QueryMetaResponse) XXX_Merge

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

func (*QueryMetaResponse) XXX_Size

func (m *QueryMetaResponse) XXX_Size() int

func (*QueryMetaResponse) XXX_Unmarshal

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

type QueryResAbi

type QueryResAbi struct {
	Abi []byte `json:"abi"`
}

QueryResAbi is the query result payload for a contract code ABI query.

func (QueryResAbi) String

func (q QueryResAbi) String() string

String implements fmt.Stringer.

type QueryResAddrMeta

type QueryResAddrMeta struct {
	Metahash string `json:"metahash"`
}

QueryResAddrMeta is the query result payload for a contract address meta query.

func (QueryResAddrMeta) String

func (q QueryResAddrMeta) String() string

String implements fmt.Stringer.

type QueryResCode

type QueryResCode struct {
	Code acm.Bytecode `json:"code"`
}

QueryResCode is the query result payload for a contract code query.

func (QueryResCode) String

func (q QueryResCode) String() string

String implements fmt.Stringer.

type QueryResMeta

type QueryResMeta struct {
	Meta string `json:"meta"`
}

QueryResMeta is the query result payload for a contract code ABI query.

type QueryResStorage

type QueryResStorage struct {
	Value []byte `json:"value"`
}

QueryResStorage is the query result payload for a storage query.

func (QueryResStorage) String

func (q QueryResStorage) String() string

String implements fmt.Stringer.

type QueryResView

type QueryResView struct {
	Ret []byte `json:"ret"`
}

QueryResView is the query result payload for a storage query.

type QueryStorageRequest

type QueryStorageRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	Key     string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty" yaml:"key"`
}

func (*QueryStorageRequest) Descriptor

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

func (*QueryStorageRequest) GetAddress

func (m *QueryStorageRequest) GetAddress() string

func (*QueryStorageRequest) GetKey

func (m *QueryStorageRequest) GetKey() string

func (*QueryStorageRequest) Marshal

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

func (*QueryStorageRequest) MarshalTo

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

func (*QueryStorageRequest) MarshalToSizedBuffer

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

func (*QueryStorageRequest) ProtoMessage

func (*QueryStorageRequest) ProtoMessage()

func (*QueryStorageRequest) Reset

func (m *QueryStorageRequest) Reset()

func (*QueryStorageRequest) Size

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

func (*QueryStorageRequest) String

func (m *QueryStorageRequest) String() string

func (*QueryStorageRequest) Unmarshal

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

func (*QueryStorageRequest) XXX_DiscardUnknown

func (m *QueryStorageRequest) XXX_DiscardUnknown()

func (*QueryStorageRequest) XXX_Marshal

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

func (*QueryStorageRequest) XXX_Merge

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

func (*QueryStorageRequest) XXX_Size

func (m *QueryStorageRequest) XXX_Size() int

func (*QueryStorageRequest) XXX_Unmarshal

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

type QueryStorageResponse

type QueryStorageResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
}

func (*QueryStorageResponse) Descriptor

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

func (*QueryStorageResponse) GetValue

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

func (*QueryStorageResponse) Marshal

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

func (*QueryStorageResponse) MarshalTo

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

func (*QueryStorageResponse) MarshalToSizedBuffer

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

func (*QueryStorageResponse) ProtoMessage

func (*QueryStorageResponse) ProtoMessage()

func (*QueryStorageResponse) Reset

func (m *QueryStorageResponse) Reset()

func (*QueryStorageResponse) Size

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

func (*QueryStorageResponse) String

func (m *QueryStorageResponse) String() string

func (*QueryStorageResponse) Unmarshal

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

func (*QueryStorageResponse) XXX_DiscardUnknown

func (m *QueryStorageResponse) XXX_DiscardUnknown()

func (*QueryStorageResponse) XXX_Marshal

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

func (*QueryStorageResponse) XXX_Merge

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

func (*QueryStorageResponse) XXX_Size

func (m *QueryStorageResponse) XXX_Size() int

func (*QueryStorageResponse) XXX_Unmarshal

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

type QueryViewRequest

type QueryViewRequest struct {
	Caller       string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty" yaml:"caller"`
	Callee       string `protobuf:"bytes,2,opt,name=callee,proto3" json:"callee,omitempty" yaml:"callee"`
	AbiSpec      []byte `protobuf:"bytes,3,opt,name=abi_spec,json=abiSpec,proto3" json:"abi_spec,omitempty" yaml:"abi_spec"`
	FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty" yaml:"function_name"`
	Data         []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

func (*QueryViewRequest) Descriptor

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

func (*QueryViewRequest) GetAbiSpec

func (m *QueryViewRequest) GetAbiSpec() []byte

func (*QueryViewRequest) GetCallee

func (m *QueryViewRequest) GetCallee() string

func (*QueryViewRequest) GetCaller

func (m *QueryViewRequest) GetCaller() string

func (*QueryViewRequest) GetData

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

func (*QueryViewRequest) GetFunctionName

func (m *QueryViewRequest) GetFunctionName() string

func (*QueryViewRequest) Marshal

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

func (*QueryViewRequest) MarshalTo

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

func (*QueryViewRequest) MarshalToSizedBuffer

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

func (*QueryViewRequest) ProtoMessage

func (*QueryViewRequest) ProtoMessage()

func (*QueryViewRequest) Reset

func (m *QueryViewRequest) Reset()

func (*QueryViewRequest) Size

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

func (*QueryViewRequest) String

func (m *QueryViewRequest) String() string

func (*QueryViewRequest) Unmarshal

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

func (*QueryViewRequest) XXX_DiscardUnknown

func (m *QueryViewRequest) XXX_DiscardUnknown()

func (*QueryViewRequest) XXX_Marshal

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

func (*QueryViewRequest) XXX_Merge

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

func (*QueryViewRequest) XXX_Size

func (m *QueryViewRequest) XXX_Size() int

func (*QueryViewRequest) XXX_Unmarshal

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

type QueryViewResponse

type QueryViewResponse struct {
	ReturnVars []*ReturnVars `protobuf:"bytes,1,rep,name=return_vars,json=returnVars,proto3" json:"return_vars,omitempty" yaml:"return_vars"`
}

func (*QueryViewResponse) Descriptor

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

func (*QueryViewResponse) GetReturnVars

func (m *QueryViewResponse) GetReturnVars() []*ReturnVars

func (*QueryViewResponse) Marshal

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

func (*QueryViewResponse) MarshalTo

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

func (*QueryViewResponse) MarshalToSizedBuffer

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

func (*QueryViewResponse) ProtoMessage

func (*QueryViewResponse) ProtoMessage()

func (*QueryViewResponse) Reset

func (m *QueryViewResponse) Reset()

func (*QueryViewResponse) Size

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

func (*QueryViewResponse) String

func (m *QueryViewResponse) String() string

func (*QueryViewResponse) Unmarshal

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

func (*QueryViewResponse) XXX_DiscardUnknown

func (m *QueryViewResponse) XXX_DiscardUnknown()

func (*QueryViewResponse) XXX_Marshal

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

func (*QueryViewResponse) XXX_Merge

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

func (*QueryViewResponse) XXX_Size

func (m *QueryViewResponse) XXX_Size() int

func (*QueryViewResponse) XXX_Unmarshal

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

type ReturnVars

type ReturnVars struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
}

func (*ReturnVars) Descriptor

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

func (*ReturnVars) GetName

func (m *ReturnVars) GetName() string

func (*ReturnVars) GetValue

func (m *ReturnVars) GetValue() string

func (*ReturnVars) Marshal

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

func (*ReturnVars) MarshalTo

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

func (*ReturnVars) MarshalToSizedBuffer

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

func (*ReturnVars) ProtoMessage

func (*ReturnVars) ProtoMessage()

func (*ReturnVars) Reset

func (m *ReturnVars) Reset()

func (*ReturnVars) Size

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

func (*ReturnVars) String

func (m *ReturnVars) String() string

func (*ReturnVars) Unmarshal

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

func (*ReturnVars) XXX_DiscardUnknown

func (m *ReturnVars) XXX_DiscardUnknown()

func (*ReturnVars) XXX_Marshal

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

func (*ReturnVars) XXX_Merge

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

func (*ReturnVars) XXX_Size

func (m *ReturnVars) XXX_Size() int

func (*ReturnVars) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
}

StakingKeeper defines the expected staking keeper

type Storage

type Storage struct {
	Key   github_com_hyperledger_burrow_binary.Word256 `protobuf:"bytes,1,opt,name=key,proto3,customtype=github.com/hyperledger/burrow/binary.Word256" json:"key" yaml:"key"`
	Value []byte                                       `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
}

func (*Storage) Descriptor

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

func (*Storage) GetValue

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

func (*Storage) Marshal

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

func (*Storage) MarshalTo

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

func (*Storage) MarshalToSizedBuffer

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

func (*Storage) ProtoMessage

func (*Storage) ProtoMessage()

func (*Storage) Reset

func (m *Storage) Reset()

func (*Storage) Size

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

func (*Storage) String

func (m *Storage) String() string

func (*Storage) Unmarshal

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

func (*Storage) XXX_DiscardUnknown

func (m *Storage) XXX_DiscardUnknown()

func (*Storage) XXX_Marshal

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

func (*Storage) XXX_Merge

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

func (*Storage) XXX_MessageName

func (*Storage) XXX_MessageName() string

func (*Storage) XXX_Size

func (m *Storage) XXX_Size() int

func (*Storage) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Call

func (*UnimplementedMsgServer) Deploy

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Abi

func (*UnimplementedQueryServer) Account

func (*UnimplementedQueryServer) AddressMeta

func (*UnimplementedQueryServer) Code

func (*UnimplementedQueryServer) Meta

func (*UnimplementedQueryServer) Storage

func (*UnimplementedQueryServer) View

Jump to

Keyboard shortcuts

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