types

package
v14.0.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeMsgSetCodeAuthorization    = "set_code_authorization"
	TypeMsgRemoveCodeAuthorization = "remove_code_authorization"
)

msg types

View Source
const (
	TypeMsgSetContractAuthorization    = "set_contract_authorization"
	TypeMsgRemoveContractAuthorization = "remove_contract_authorization"
)

msg types

View Source
const (
	// ModuleName is the module name.
	ModuleName = "globalfee"
	// StoreKey is the module KV storage prefix key.
	StoreKey = ModuleName
	// QuerierRoute is the querier route for the module.
	QuerierRoute = ModuleName
	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_globalfee"
	// RouterKey is the message route f
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgUpdateParams = "update_params"
)

msg types

Variables

View Source
var (
	DefaultCodespace    = ModuleName
	ErrInvalidMethods   = errorsmod.Register(DefaultCodespace, 2, "invalid method in code/contract authorization") // Code or Contract Authorizations have invalid methods configured
	ErrContractNotExist = errorsmod.Register(DefaultCodespace, 3, "contract with given address does not exist")
	ErrCodeIDNotExist   = errorsmod.Register(DefaultCodespace, 4, "code id does not exist")
	ErrUnauthorized     = errorsmod.Register(DefaultCodespace, 5, "sender is unauthorized to perform the operation")
)
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 (
	ErrInvalidLengthGlobalfee        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGlobalfee          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGlobalfee = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	CodeAuthorizationPrefix     = []byte{0x01}
	ContractAuthorizationPrefix = []byte{0x02}

	// ParamsKey stores the module params
	ParamsKey = []byte{0x03}
)
View Source
var (
	KeyPrivilegedAddresses = []byte("PrivilegedAddresses")
	KeyMinGasPrices        = []byte("MinimumGasPricesParam")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetCodeAuthorizationPrefix

func GetCodeAuthorizationPrefix(codeID uint64) []byte

func GetContractAuthorizationPrefix

func GetContractAuthorizationPrefix(contractAddress sdk.AccAddress) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers interfaces types with the interface registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type CodeAuthorization

type CodeAuthorization struct {
	// authorized code ids
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
	// authorized contract operation methods
	Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty" yaml:"methods"`
}

Configuration for code Ids which can have zero gas operations

func (*CodeAuthorization) Descriptor

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

func (*CodeAuthorization) GetCodeID

func (m *CodeAuthorization) GetCodeID() uint64

func (*CodeAuthorization) GetMethods

func (m *CodeAuthorization) GetMethods() []string

func (*CodeAuthorization) Marshal

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

func (*CodeAuthorization) MarshalTo

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

func (*CodeAuthorization) MarshalToSizedBuffer

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

func (*CodeAuthorization) ProtoMessage

func (*CodeAuthorization) ProtoMessage()

func (*CodeAuthorization) Reset

func (m *CodeAuthorization) Reset()

func (*CodeAuthorization) Size

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

func (*CodeAuthorization) String

func (m *CodeAuthorization) String() string

func (*CodeAuthorization) Unmarshal

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

func (CodeAuthorization) Validate

func (ca CodeAuthorization) Validate() error

Validate validates the values of code authorizations

func (*CodeAuthorization) XXX_DiscardUnknown

func (m *CodeAuthorization) XXX_DiscardUnknown()

func (*CodeAuthorization) XXX_Marshal

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

func (*CodeAuthorization) XXX_Merge

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

func (*CodeAuthorization) XXX_Size

func (m *CodeAuthorization) XXX_Size() int

func (*CodeAuthorization) XXX_Unmarshal

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

type ContractAuthorization

type ContractAuthorization struct {
	// authorized contract addresses
	ContractAddress string `` /* 130-byte string literal not displayed */
	// authorized contract operation methods
	Methods []string `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty" yaml:"methods"`
}

Configuration for contract addresses which can have zero gas operations

func (*ContractAuthorization) Descriptor

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

func (*ContractAuthorization) GetContractAddress

func (m *ContractAuthorization) GetContractAddress() string

func (*ContractAuthorization) GetMethods

func (m *ContractAuthorization) GetMethods() []string

func (*ContractAuthorization) Marshal

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

func (*ContractAuthorization) MarshalTo

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

func (*ContractAuthorization) MarshalToSizedBuffer

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

func (*ContractAuthorization) ProtoMessage

func (*ContractAuthorization) ProtoMessage()

func (*ContractAuthorization) Reset

func (m *ContractAuthorization) Reset()

func (*ContractAuthorization) Size

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

func (*ContractAuthorization) String

func (m *ContractAuthorization) String() string

func (*ContractAuthorization) Unmarshal

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

func (ContractAuthorization) Validate

func (ca ContractAuthorization) Validate() error

Validate validates the values of contract authorizations

func (*ContractAuthorization) XXX_DiscardUnknown

func (m *ContractAuthorization) XXX_DiscardUnknown()

func (*ContractAuthorization) XXX_Marshal

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

func (*ContractAuthorization) XXX_Merge

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

func (*ContractAuthorization) XXX_Size

func (m *ContractAuthorization) XXX_Size() int

func (*ContractAuthorization) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// Module params
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// Authorizations configured by code id
	CodeAuthorizations []CodeAuthorization `protobuf:"bytes,2,rep,name=code_authorizations,json=codeAuthorizations,proto3" json:"code_authorizations,omitempty"`
	// Authorizations configured by contract addresses
	ContractAuthorizations []ContractAuthorization `` /* 127-byte string literal not displayed */
}

GenesisState defines the globalfee module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesisState returns a default genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCodeAuthorizations

func (m *GenesisState) GetCodeAuthorizations() []CodeAuthorization

func (*GenesisState) GetContractAuthorizations

func (m *GenesisState) GetContractAuthorizations() []ContractAuthorization

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (m GenesisState) Validate() error

Validate perform object fields validation.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

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 MsgRemoveCodeAuthorization

type MsgRemoveCodeAuthorization struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}

func NewMsgRemoveCodeAuthorization

func NewMsgRemoveCodeAuthorization(sender string, codeID uint64) *MsgRemoveCodeAuthorization

func (*MsgRemoveCodeAuthorization) Descriptor

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

func (*MsgRemoveCodeAuthorization) GetCodeID

func (m *MsgRemoveCodeAuthorization) GetCodeID() uint64

func (*MsgRemoveCodeAuthorization) GetSender

func (m *MsgRemoveCodeAuthorization) GetSender() string

func (MsgRemoveCodeAuthorization) GetSignBytes

func (msg MsgRemoveCodeAuthorization) GetSignBytes() []byte

func (MsgRemoveCodeAuthorization) GetSigners

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

func (*MsgRemoveCodeAuthorization) Marshal

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

func (*MsgRemoveCodeAuthorization) MarshalTo

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

func (*MsgRemoveCodeAuthorization) MarshalToSizedBuffer

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

func (*MsgRemoveCodeAuthorization) ProtoMessage

func (*MsgRemoveCodeAuthorization) ProtoMessage()

func (*MsgRemoveCodeAuthorization) Reset

func (m *MsgRemoveCodeAuthorization) Reset()

func (MsgRemoveCodeAuthorization) Route

func (msg MsgRemoveCodeAuthorization) Route() string

func (*MsgRemoveCodeAuthorization) Size

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

func (*MsgRemoveCodeAuthorization) String

func (m *MsgRemoveCodeAuthorization) String() string

func (MsgRemoveCodeAuthorization) Type

func (*MsgRemoveCodeAuthorization) Unmarshal

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

func (MsgRemoveCodeAuthorization) ValidateBasic

func (msg MsgRemoveCodeAuthorization) ValidateBasic() error

func (*MsgRemoveCodeAuthorization) XXX_DiscardUnknown

func (m *MsgRemoveCodeAuthorization) XXX_DiscardUnknown()

func (*MsgRemoveCodeAuthorization) XXX_Marshal

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

func (*MsgRemoveCodeAuthorization) XXX_Merge

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

func (*MsgRemoveCodeAuthorization) XXX_Size

func (m *MsgRemoveCodeAuthorization) XXX_Size() int

func (*MsgRemoveCodeAuthorization) XXX_Unmarshal

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

type MsgRemoveCodeAuthorizationResponse

type MsgRemoveCodeAuthorizationResponse struct {
}

func (*MsgRemoveCodeAuthorizationResponse) Descriptor

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

func (*MsgRemoveCodeAuthorizationResponse) Marshal

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

func (*MsgRemoveCodeAuthorizationResponse) MarshalTo

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

func (*MsgRemoveCodeAuthorizationResponse) MarshalToSizedBuffer

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

func (*MsgRemoveCodeAuthorizationResponse) ProtoMessage

func (*MsgRemoveCodeAuthorizationResponse) ProtoMessage()

func (*MsgRemoveCodeAuthorizationResponse) Reset

func (*MsgRemoveCodeAuthorizationResponse) Size

func (*MsgRemoveCodeAuthorizationResponse) String

func (*MsgRemoveCodeAuthorizationResponse) Unmarshal

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

func (*MsgRemoveCodeAuthorizationResponse) XXX_DiscardUnknown

func (m *MsgRemoveCodeAuthorizationResponse) XXX_DiscardUnknown()

func (*MsgRemoveCodeAuthorizationResponse) XXX_Marshal

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

func (*MsgRemoveCodeAuthorizationResponse) XXX_Merge

func (*MsgRemoveCodeAuthorizationResponse) XXX_Size

func (*MsgRemoveCodeAuthorizationResponse) XXX_Unmarshal

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

type MsgRemoveContractAuthorization

type MsgRemoveContractAuthorization struct {
	Sender          string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func NewMsgRemoveContractAuthorization

func NewMsgRemoveContractAuthorization(sender string, contractAddress string) *MsgRemoveContractAuthorization

func (*MsgRemoveContractAuthorization) Descriptor

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

func (*MsgRemoveContractAuthorization) GetContractAddress

func (m *MsgRemoveContractAuthorization) GetContractAddress() string

func (*MsgRemoveContractAuthorization) GetSender

func (m *MsgRemoveContractAuthorization) GetSender() string

func (MsgRemoveContractAuthorization) GetSignBytes

func (msg MsgRemoveContractAuthorization) GetSignBytes() []byte

func (MsgRemoveContractAuthorization) GetSigners

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

func (*MsgRemoveContractAuthorization) Marshal

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

func (*MsgRemoveContractAuthorization) MarshalTo

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

func (*MsgRemoveContractAuthorization) MarshalToSizedBuffer

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

func (*MsgRemoveContractAuthorization) ProtoMessage

func (*MsgRemoveContractAuthorization) ProtoMessage()

func (*MsgRemoveContractAuthorization) Reset

func (m *MsgRemoveContractAuthorization) Reset()

func (MsgRemoveContractAuthorization) Route

func (*MsgRemoveContractAuthorization) Size

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

func (*MsgRemoveContractAuthorization) String

func (MsgRemoveContractAuthorization) Type

func (*MsgRemoveContractAuthorization) Unmarshal

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

func (MsgRemoveContractAuthorization) ValidateBasic

func (msg MsgRemoveContractAuthorization) ValidateBasic() error

func (*MsgRemoveContractAuthorization) XXX_DiscardUnknown

func (m *MsgRemoveContractAuthorization) XXX_DiscardUnknown()

func (*MsgRemoveContractAuthorization) XXX_Marshal

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

func (*MsgRemoveContractAuthorization) XXX_Merge

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

func (*MsgRemoveContractAuthorization) XXX_Size

func (m *MsgRemoveContractAuthorization) XXX_Size() int

func (*MsgRemoveContractAuthorization) XXX_Unmarshal

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

type MsgRemoveContractAuthorizationResponse

type MsgRemoveContractAuthorizationResponse struct {
}

func (*MsgRemoveContractAuthorizationResponse) Descriptor

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

func (*MsgRemoveContractAuthorizationResponse) Marshal

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

func (*MsgRemoveContractAuthorizationResponse) MarshalTo

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

func (*MsgRemoveContractAuthorizationResponse) MarshalToSizedBuffer

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

func (*MsgRemoveContractAuthorizationResponse) ProtoMessage

func (*MsgRemoveContractAuthorizationResponse) Reset

func (*MsgRemoveContractAuthorizationResponse) Size

func (*MsgRemoveContractAuthorizationResponse) String

func (*MsgRemoveContractAuthorizationResponse) Unmarshal

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

func (*MsgRemoveContractAuthorizationResponse) XXX_DiscardUnknown

func (m *MsgRemoveContractAuthorizationResponse) XXX_DiscardUnknown()

func (*MsgRemoveContractAuthorizationResponse) XXX_Marshal

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

func (*MsgRemoveContractAuthorizationResponse) XXX_Merge

func (*MsgRemoveContractAuthorizationResponse) XXX_Size

func (*MsgRemoveContractAuthorizationResponse) XXX_Unmarshal

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

type MsgSetCodeAuthorization

type MsgSetCodeAuthorization struct {
	Sender            string             `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	CodeAuthorization *CodeAuthorization `protobuf:"bytes,2,opt,name=code_authorization,json=codeAuthorization,proto3" json:"code_authorization,omitempty"`
}

func NewMsgSetCodeAuthorization

func NewMsgSetCodeAuthorization(sender string, codeID uint64, methods []string) *MsgSetCodeAuthorization

func (*MsgSetCodeAuthorization) Descriptor

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

func (*MsgSetCodeAuthorization) GetCodeAuthorization

func (m *MsgSetCodeAuthorization) GetCodeAuthorization() *CodeAuthorization

func (*MsgSetCodeAuthorization) GetSender

func (m *MsgSetCodeAuthorization) GetSender() string

func (MsgSetCodeAuthorization) GetSignBytes

func (msg MsgSetCodeAuthorization) GetSignBytes() []byte

func (MsgSetCodeAuthorization) GetSigners

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

func (*MsgSetCodeAuthorization) Marshal

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

func (*MsgSetCodeAuthorization) MarshalTo

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

func (*MsgSetCodeAuthorization) MarshalToSizedBuffer

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

func (*MsgSetCodeAuthorization) ProtoMessage

func (*MsgSetCodeAuthorization) ProtoMessage()

func (*MsgSetCodeAuthorization) Reset

func (m *MsgSetCodeAuthorization) Reset()

func (MsgSetCodeAuthorization) Route

func (msg MsgSetCodeAuthorization) Route() string

func (*MsgSetCodeAuthorization) Size

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

func (*MsgSetCodeAuthorization) String

func (m *MsgSetCodeAuthorization) String() string

func (MsgSetCodeAuthorization) Type

func (msg MsgSetCodeAuthorization) Type() string

func (*MsgSetCodeAuthorization) Unmarshal

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

func (MsgSetCodeAuthorization) ValidateBasic

func (msg MsgSetCodeAuthorization) ValidateBasic() error

func (*MsgSetCodeAuthorization) XXX_DiscardUnknown

func (m *MsgSetCodeAuthorization) XXX_DiscardUnknown()

func (*MsgSetCodeAuthorization) XXX_Marshal

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

func (*MsgSetCodeAuthorization) XXX_Merge

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

func (*MsgSetCodeAuthorization) XXX_Size

func (m *MsgSetCodeAuthorization) XXX_Size() int

func (*MsgSetCodeAuthorization) XXX_Unmarshal

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

type MsgSetCodeAuthorizationResponse

type MsgSetCodeAuthorizationResponse struct {
}

func (*MsgSetCodeAuthorizationResponse) Descriptor

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

func (*MsgSetCodeAuthorizationResponse) Marshal

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

func (*MsgSetCodeAuthorizationResponse) MarshalTo

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

func (*MsgSetCodeAuthorizationResponse) MarshalToSizedBuffer

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

func (*MsgSetCodeAuthorizationResponse) ProtoMessage

func (*MsgSetCodeAuthorizationResponse) ProtoMessage()

func (*MsgSetCodeAuthorizationResponse) Reset

func (*MsgSetCodeAuthorizationResponse) Size

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

func (*MsgSetCodeAuthorizationResponse) String

func (*MsgSetCodeAuthorizationResponse) Unmarshal

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

func (*MsgSetCodeAuthorizationResponse) XXX_DiscardUnknown

func (m *MsgSetCodeAuthorizationResponse) XXX_DiscardUnknown()

func (*MsgSetCodeAuthorizationResponse) XXX_Marshal

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

func (*MsgSetCodeAuthorizationResponse) XXX_Merge

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

func (*MsgSetCodeAuthorizationResponse) XXX_Size

func (m *MsgSetCodeAuthorizationResponse) XXX_Size() int

func (*MsgSetCodeAuthorizationResponse) XXX_Unmarshal

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

type MsgSetContractAuthorization

type MsgSetContractAuthorization struct {
	Sender                string                 `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ContractAuthorization *ContractAuthorization `protobuf:"bytes,2,opt,name=contract_authorization,json=contractAuthorization,proto3" json:"contract_authorization,omitempty"`
}

func NewMsgSetContractAuthorization

func NewMsgSetContractAuthorization(sender string, contractAddress string, methods []string) *MsgSetContractAuthorization

func (*MsgSetContractAuthorization) Descriptor

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

func (*MsgSetContractAuthorization) GetContractAuthorization

func (m *MsgSetContractAuthorization) GetContractAuthorization() *ContractAuthorization

func (*MsgSetContractAuthorization) GetSender

func (m *MsgSetContractAuthorization) GetSender() string

func (MsgSetContractAuthorization) GetSignBytes

func (msg MsgSetContractAuthorization) GetSignBytes() []byte

func (MsgSetContractAuthorization) GetSigners

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

func (*MsgSetContractAuthorization) Marshal

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

func (*MsgSetContractAuthorization) MarshalTo

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

func (*MsgSetContractAuthorization) MarshalToSizedBuffer

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

func (*MsgSetContractAuthorization) ProtoMessage

func (*MsgSetContractAuthorization) ProtoMessage()

func (*MsgSetContractAuthorization) Reset

func (m *MsgSetContractAuthorization) Reset()

func (MsgSetContractAuthorization) Route

func (msg MsgSetContractAuthorization) Route() string

func (*MsgSetContractAuthorization) Size

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

func (*MsgSetContractAuthorization) String

func (m *MsgSetContractAuthorization) String() string

func (MsgSetContractAuthorization) Type

func (*MsgSetContractAuthorization) Unmarshal

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

func (MsgSetContractAuthorization) ValidateBasic

func (msg MsgSetContractAuthorization) ValidateBasic() error

func (*MsgSetContractAuthorization) XXX_DiscardUnknown

func (m *MsgSetContractAuthorization) XXX_DiscardUnknown()

func (*MsgSetContractAuthorization) XXX_Marshal

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

func (*MsgSetContractAuthorization) XXX_Merge

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

func (*MsgSetContractAuthorization) XXX_Size

func (m *MsgSetContractAuthorization) XXX_Size() int

func (*MsgSetContractAuthorization) XXX_Unmarshal

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

type MsgSetContractAuthorizationResponse

type MsgSetContractAuthorizationResponse struct {
}

func (*MsgSetContractAuthorizationResponse) Descriptor

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

func (*MsgSetContractAuthorizationResponse) Marshal

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

func (*MsgSetContractAuthorizationResponse) MarshalTo

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

func (*MsgSetContractAuthorizationResponse) MarshalToSizedBuffer

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

func (*MsgSetContractAuthorizationResponse) ProtoMessage

func (*MsgSetContractAuthorizationResponse) ProtoMessage()

func (*MsgSetContractAuthorizationResponse) Reset

func (*MsgSetContractAuthorizationResponse) Size

func (*MsgSetContractAuthorizationResponse) String

func (*MsgSetContractAuthorizationResponse) Unmarshal

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

func (*MsgSetContractAuthorizationResponse) XXX_DiscardUnknown

func (m *MsgSetContractAuthorizationResponse) XXX_DiscardUnknown()

func (*MsgSetContractAuthorizationResponse) XXX_Marshal

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

func (*MsgSetContractAuthorizationResponse) XXX_Merge

func (*MsgSetContractAuthorizationResponse) XXX_Size

func (*MsgSetContractAuthorizationResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}

func NewMsgUpdateParams

func NewMsgUpdateParams(sender string, minimumGasPrices sdk.DecCoins, privilegedAddresses []string) *MsgUpdateParams

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSender

func (m *MsgUpdateParams) GetSender() string

func (MsgUpdateParams) GetSignBytes

func (msg MsgUpdateParams) GetSignBytes() []byte

func (MsgUpdateParams) GetSigners

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

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (MsgUpdateParams) Route

func (msg MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (msg MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal

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

func (MsgUpdateParams) ValidateBasic

func (msg MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// Addresses which are whitelisted to modify the gas free operations
	PrivilegedAddresses []string `protobuf:"bytes,1,rep,name=privileged_addresses,json=privilegedAddresses,proto3" json:"privileged_addresses,omitempty"`
	// Minimum stores the minimum gas price(s) for all TX on the chain.
	MinimumGasPrices github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 194-byte string literal not displayed */
}

Params holds parameters for the globalfee module.

func DefaultParams

func DefaultParams() Params

default module parameters

func NewParams

func NewParams(addresses []string) Params

func (*Params) Descriptor

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

func (*Params) GetMinimumGasPrices

func (m *Params) GetMinimumGasPrices() github_com_cosmos_cosmos_sdk_types.DecCoins

func (*Params) GetPrivilegedAddresses

func (m *Params) GetPrivilegedAddresses() []string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAuthorizationsRequest

type QueryAuthorizationsRequest struct {
}

func (*QueryAuthorizationsRequest) Descriptor

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

func (*QueryAuthorizationsRequest) Marshal

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

func (*QueryAuthorizationsRequest) MarshalTo

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

func (*QueryAuthorizationsRequest) MarshalToSizedBuffer

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

func (*QueryAuthorizationsRequest) ProtoMessage

func (*QueryAuthorizationsRequest) ProtoMessage()

func (*QueryAuthorizationsRequest) Reset

func (m *QueryAuthorizationsRequest) Reset()

func (*QueryAuthorizationsRequest) Size

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

func (*QueryAuthorizationsRequest) String

func (m *QueryAuthorizationsRequest) String() string

func (*QueryAuthorizationsRequest) Unmarshal

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

func (*QueryAuthorizationsRequest) XXX_DiscardUnknown

func (m *QueryAuthorizationsRequest) XXX_DiscardUnknown()

func (*QueryAuthorizationsRequest) XXX_Marshal

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

func (*QueryAuthorizationsRequest) XXX_Merge

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

func (*QueryAuthorizationsRequest) XXX_Size

func (m *QueryAuthorizationsRequest) XXX_Size() int

func (*QueryAuthorizationsRequest) XXX_Unmarshal

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

type QueryAuthorizationsResponse

type QueryAuthorizationsResponse struct {
	CodeAuthorizations     []*CodeAuthorization     `protobuf:"bytes,1,rep,name=code_authorizations,json=codeAuthorizations,proto3" json:"code_authorizations,omitempty"`
	ContractAuthorizations []*ContractAuthorization `` /* 127-byte string literal not displayed */
}

func (*QueryAuthorizationsResponse) Descriptor

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

func (*QueryAuthorizationsResponse) GetCodeAuthorizations

func (m *QueryAuthorizationsResponse) GetCodeAuthorizations() []*CodeAuthorization

func (*QueryAuthorizationsResponse) GetContractAuthorizations

func (m *QueryAuthorizationsResponse) GetContractAuthorizations() []*ContractAuthorization

func (*QueryAuthorizationsResponse) Marshal

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

func (*QueryAuthorizationsResponse) MarshalTo

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

func (*QueryAuthorizationsResponse) MarshalToSizedBuffer

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

func (*QueryAuthorizationsResponse) ProtoMessage

func (*QueryAuthorizationsResponse) ProtoMessage()

func (*QueryAuthorizationsResponse) Reset

func (m *QueryAuthorizationsResponse) Reset()

func (*QueryAuthorizationsResponse) Size

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

func (*QueryAuthorizationsResponse) String

func (m *QueryAuthorizationsResponse) String() string

func (*QueryAuthorizationsResponse) Unmarshal

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

func (*QueryAuthorizationsResponse) XXX_DiscardUnknown

func (m *QueryAuthorizationsResponse) XXX_DiscardUnknown()

func (*QueryAuthorizationsResponse) XXX_Marshal

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

func (*QueryAuthorizationsResponse) XXX_Merge

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

func (*QueryAuthorizationsResponse) XXX_Size

func (m *QueryAuthorizationsResponse) XXX_Size() int

func (*QueryAuthorizationsResponse) XXX_Unmarshal

func (m *QueryAuthorizationsResponse) 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 QueryCodeAuthorizationRequest

type QueryCodeAuthorizationRequest struct {
	CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}

func (*QueryCodeAuthorizationRequest) Descriptor

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

func (*QueryCodeAuthorizationRequest) GetCodeId

func (m *QueryCodeAuthorizationRequest) GetCodeId() uint64

func (*QueryCodeAuthorizationRequest) Marshal

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

func (*QueryCodeAuthorizationRequest) MarshalTo

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

func (*QueryCodeAuthorizationRequest) MarshalToSizedBuffer

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

func (*QueryCodeAuthorizationRequest) ProtoMessage

func (*QueryCodeAuthorizationRequest) ProtoMessage()

func (*QueryCodeAuthorizationRequest) Reset

func (m *QueryCodeAuthorizationRequest) Reset()

func (*QueryCodeAuthorizationRequest) Size

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

func (*QueryCodeAuthorizationRequest) String

func (*QueryCodeAuthorizationRequest) Unmarshal

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

func (*QueryCodeAuthorizationRequest) XXX_DiscardUnknown

func (m *QueryCodeAuthorizationRequest) XXX_DiscardUnknown()

func (*QueryCodeAuthorizationRequest) XXX_Marshal

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

func (*QueryCodeAuthorizationRequest) XXX_Merge

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

func (*QueryCodeAuthorizationRequest) XXX_Size

func (m *QueryCodeAuthorizationRequest) XXX_Size() int

func (*QueryCodeAuthorizationRequest) XXX_Unmarshal

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

type QueryCodeAuthorizationResponse

type QueryCodeAuthorizationResponse struct {
	Methods []string `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
}

func (*QueryCodeAuthorizationResponse) Descriptor

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

func (*QueryCodeAuthorizationResponse) GetMethods

func (m *QueryCodeAuthorizationResponse) GetMethods() []string

func (*QueryCodeAuthorizationResponse) Marshal

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

func (*QueryCodeAuthorizationResponse) MarshalTo

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

func (*QueryCodeAuthorizationResponse) MarshalToSizedBuffer

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

func (*QueryCodeAuthorizationResponse) ProtoMessage

func (*QueryCodeAuthorizationResponse) ProtoMessage()

func (*QueryCodeAuthorizationResponse) Reset

func (m *QueryCodeAuthorizationResponse) Reset()

func (*QueryCodeAuthorizationResponse) Size

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

func (*QueryCodeAuthorizationResponse) String

func (*QueryCodeAuthorizationResponse) Unmarshal

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

func (*QueryCodeAuthorizationResponse) XXX_DiscardUnknown

func (m *QueryCodeAuthorizationResponse) XXX_DiscardUnknown()

func (*QueryCodeAuthorizationResponse) XXX_Marshal

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

func (*QueryCodeAuthorizationResponse) XXX_Merge

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

func (*QueryCodeAuthorizationResponse) XXX_Size

func (m *QueryCodeAuthorizationResponse) XXX_Size() int

func (*QueryCodeAuthorizationResponse) XXX_Unmarshal

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

type QueryContractAuthorizationRequest

type QueryContractAuthorizationRequest struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*QueryContractAuthorizationRequest) Descriptor

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

func (*QueryContractAuthorizationRequest) GetContractAddress

func (m *QueryContractAuthorizationRequest) GetContractAddress() string

func (*QueryContractAuthorizationRequest) Marshal

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

func (*QueryContractAuthorizationRequest) MarshalTo

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

func (*QueryContractAuthorizationRequest) MarshalToSizedBuffer

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

func (*QueryContractAuthorizationRequest) ProtoMessage

func (*QueryContractAuthorizationRequest) ProtoMessage()

func (*QueryContractAuthorizationRequest) Reset

func (*QueryContractAuthorizationRequest) Size

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

func (*QueryContractAuthorizationRequest) String

func (*QueryContractAuthorizationRequest) Unmarshal

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

func (*QueryContractAuthorizationRequest) XXX_DiscardUnknown

func (m *QueryContractAuthorizationRequest) XXX_DiscardUnknown()

func (*QueryContractAuthorizationRequest) XXX_Marshal

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

func (*QueryContractAuthorizationRequest) XXX_Merge

func (*QueryContractAuthorizationRequest) XXX_Size

func (m *QueryContractAuthorizationRequest) XXX_Size() int

func (*QueryContractAuthorizationRequest) XXX_Unmarshal

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

type QueryContractAuthorizationResponse

type QueryContractAuthorizationResponse struct {
	Methods []string `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
}

func (*QueryContractAuthorizationResponse) Descriptor

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

func (*QueryContractAuthorizationResponse) GetMethods

func (m *QueryContractAuthorizationResponse) GetMethods() []string

func (*QueryContractAuthorizationResponse) Marshal

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

func (*QueryContractAuthorizationResponse) MarshalTo

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

func (*QueryContractAuthorizationResponse) MarshalToSizedBuffer

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

func (*QueryContractAuthorizationResponse) ProtoMessage

func (*QueryContractAuthorizationResponse) ProtoMessage()

func (*QueryContractAuthorizationResponse) Reset

func (*QueryContractAuthorizationResponse) Size

func (*QueryContractAuthorizationResponse) String

func (*QueryContractAuthorizationResponse) Unmarshal

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

func (*QueryContractAuthorizationResponse) XXX_DiscardUnknown

func (m *QueryContractAuthorizationResponse) XXX_DiscardUnknown()

func (*QueryContractAuthorizationResponse) XXX_Marshal

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

func (*QueryContractAuthorizationResponse) XXX_Merge

func (*QueryContractAuthorizationResponse) XXX_Size

func (*QueryContractAuthorizationResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type RemoveCodeAuthorizationProposal deprecated

type RemoveCodeAuthorizationProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	CodeID      uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
}

RemoveCodeAuthorizationProposal

Deprecated: Do not use.

func (*RemoveCodeAuthorizationProposal) Descriptor

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

func (*RemoveCodeAuthorizationProposal) GetCodeID

func (m *RemoveCodeAuthorizationProposal) GetCodeID() uint64

func (*RemoveCodeAuthorizationProposal) GetDescription

func (m *RemoveCodeAuthorizationProposal) GetDescription() string

func (*RemoveCodeAuthorizationProposal) GetTitle

func (*RemoveCodeAuthorizationProposal) Marshal

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

func (*RemoveCodeAuthorizationProposal) MarshalTo

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

func (*RemoveCodeAuthorizationProposal) MarshalToSizedBuffer

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

func (*RemoveCodeAuthorizationProposal) ProtoMessage

func (*RemoveCodeAuthorizationProposal) ProtoMessage()

func (*RemoveCodeAuthorizationProposal) Reset

func (*RemoveCodeAuthorizationProposal) Size

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

func (*RemoveCodeAuthorizationProposal) String

func (*RemoveCodeAuthorizationProposal) Unmarshal

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

func (*RemoveCodeAuthorizationProposal) XXX_DiscardUnknown

func (m *RemoveCodeAuthorizationProposal) XXX_DiscardUnknown()

func (*RemoveCodeAuthorizationProposal) XXX_Marshal

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

func (*RemoveCodeAuthorizationProposal) XXX_Merge

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

func (*RemoveCodeAuthorizationProposal) XXX_Size

func (m *RemoveCodeAuthorizationProposal) XXX_Size() int

func (*RemoveCodeAuthorizationProposal) XXX_Unmarshal

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

type RemoveContractAuthorizationProposal deprecated

type RemoveContractAuthorizationProposal struct {
	Title           string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description     string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	ContractAddress string `` /* 130-byte string literal not displayed */
}

RemoveCodeAuthorizationProposal ...

Deprecated: Do not use.

func (*RemoveContractAuthorizationProposal) Descriptor

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

func (*RemoveContractAuthorizationProposal) GetContractAddress

func (m *RemoveContractAuthorizationProposal) GetContractAddress() string

func (*RemoveContractAuthorizationProposal) GetDescription

func (m *RemoveContractAuthorizationProposal) GetDescription() string

func (*RemoveContractAuthorizationProposal) GetTitle

func (*RemoveContractAuthorizationProposal) Marshal

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

func (*RemoveContractAuthorizationProposal) MarshalTo

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

func (*RemoveContractAuthorizationProposal) MarshalToSizedBuffer

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

func (*RemoveContractAuthorizationProposal) ProtoMessage

func (*RemoveContractAuthorizationProposal) ProtoMessage()

func (*RemoveContractAuthorizationProposal) Reset

func (*RemoveContractAuthorizationProposal) Size

func (*RemoveContractAuthorizationProposal) String

func (*RemoveContractAuthorizationProposal) Unmarshal

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

func (*RemoveContractAuthorizationProposal) XXX_DiscardUnknown

func (m *RemoveContractAuthorizationProposal) XXX_DiscardUnknown()

func (*RemoveContractAuthorizationProposal) XXX_Marshal

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

func (*RemoveContractAuthorizationProposal) XXX_Merge

func (*RemoveContractAuthorizationProposal) XXX_Size

func (*RemoveContractAuthorizationProposal) XXX_Unmarshal

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

type SetCodeAuthorizationProposal deprecated

type SetCodeAuthorizationProposal struct {
	Title             string             `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description       string             `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	CodeAuthorization *CodeAuthorization `` /* 138-byte string literal not displayed */
}

SetCodeAuthorizationProposal ...

Deprecated: Do not use.

func (*SetCodeAuthorizationProposal) Descriptor

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

func (*SetCodeAuthorizationProposal) GetCodeAuthorization

func (m *SetCodeAuthorizationProposal) GetCodeAuthorization() *CodeAuthorization

func (*SetCodeAuthorizationProposal) GetDescription

func (m *SetCodeAuthorizationProposal) GetDescription() string

func (*SetCodeAuthorizationProposal) GetTitle

func (m *SetCodeAuthorizationProposal) GetTitle() string

func (*SetCodeAuthorizationProposal) Marshal

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

func (*SetCodeAuthorizationProposal) MarshalTo

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

func (*SetCodeAuthorizationProposal) MarshalToSizedBuffer

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

func (*SetCodeAuthorizationProposal) ProtoMessage

func (*SetCodeAuthorizationProposal) ProtoMessage()

func (*SetCodeAuthorizationProposal) Reset

func (m *SetCodeAuthorizationProposal) Reset()

func (*SetCodeAuthorizationProposal) Size

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

func (*SetCodeAuthorizationProposal) String

func (*SetCodeAuthorizationProposal) Unmarshal

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

func (*SetCodeAuthorizationProposal) XXX_DiscardUnknown

func (m *SetCodeAuthorizationProposal) XXX_DiscardUnknown()

func (*SetCodeAuthorizationProposal) XXX_Marshal

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

func (*SetCodeAuthorizationProposal) XXX_Merge

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

func (*SetCodeAuthorizationProposal) XXX_Size

func (m *SetCodeAuthorizationProposal) XXX_Size() int

func (*SetCodeAuthorizationProposal) XXX_Unmarshal

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

type SetContractAuthorizationProposal deprecated

type SetContractAuthorizationProposal struct {
	Title                 string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	Description           string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	ContractAuthorization *ContractAuthorization `` /* 154-byte string literal not displayed */
}

RemoveCodeAuthorizationProposal ...

Deprecated: Do not use.

func (*SetContractAuthorizationProposal) Descriptor

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

func (*SetContractAuthorizationProposal) GetContractAuthorization

func (m *SetContractAuthorizationProposal) GetContractAuthorization() *ContractAuthorization

func (*SetContractAuthorizationProposal) GetDescription

func (m *SetContractAuthorizationProposal) GetDescription() string

func (*SetContractAuthorizationProposal) GetTitle

func (*SetContractAuthorizationProposal) Marshal

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

func (*SetContractAuthorizationProposal) MarshalTo

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

func (*SetContractAuthorizationProposal) MarshalToSizedBuffer

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

func (*SetContractAuthorizationProposal) ProtoMessage

func (*SetContractAuthorizationProposal) ProtoMessage()

func (*SetContractAuthorizationProposal) Reset

func (*SetContractAuthorizationProposal) Size

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

func (*SetContractAuthorizationProposal) String

func (*SetContractAuthorizationProposal) Unmarshal

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

func (*SetContractAuthorizationProposal) XXX_DiscardUnknown

func (m *SetContractAuthorizationProposal) XXX_DiscardUnknown()

func (*SetContractAuthorizationProposal) XXX_Marshal

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

func (*SetContractAuthorizationProposal) XXX_Merge

func (*SetContractAuthorizationProposal) XXX_Size

func (m *SetContractAuthorizationProposal) XXX_Size() int

func (*SetContractAuthorizationProposal) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RemoveCodeAuthorization

func (*UnimplementedMsgServer) SetCodeAuthorization

func (*UnimplementedMsgServer) SetContractAuthorization

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Authorizations

func (*UnimplementedQueryServer) CodeAuthorization

func (*UnimplementedQueryServer) Params

type WasmKeeper

type WasmKeeper interface {
	GetCodeInfo(ctx context.Context, codeID uint64) *wasmtypes.CodeInfo
	// HasContractInfo checks if a contract with given address exists
	HasContractInfo(ctx context.Context, contractAddr sdk.AccAddress) bool
	GetContractInfo(ctx context.Context, contractAddress sdk.AccAddress) *wasmtypes.ContractInfo
}

WasmKeeper defines the expected interface needed to setup and execute privilege contracts.

Jump to

Keyboard shortcuts

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