Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AdminToPermissionsKey(address sdk.AccAddress) []byte
- func ContractToDenomKey(contract []byte) []byte
- func DenomToAutoContractKey(denom string) []byte
- func DenomToExternalContractKey(denom string) []byte
- func GetContractAddressFromDenom(denom string) (string, error)
- func IsSourceCoin(denom string) bool
- func IsValidCoinDenom(denom string) bool
- func IsValidCronosDenom(denom string) bool
- func IsValidGravityDenom(denom string) bool
- func IsValidIBCDenom(denom string) bool
- func NewConvertVouchersEvent(sender string, amount fmt.Stringer) sdk.Event
- func NewTransferTokensEvent(sender, recipient string, amount fmt.Stringer) sdk.Event
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type ByteString
- type CompiledContract
- type ContractByDenomRequest
- func (*ContractByDenomRequest) Descriptor() ([]byte, []int)
- func (m *ContractByDenomRequest) Marshal() (dAtA []byte, err error)
- func (m *ContractByDenomRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractByDenomRequest) ProtoMessage()
- func (m *ContractByDenomRequest) Reset()
- func (m *ContractByDenomRequest) Size() (n int)
- func (m *ContractByDenomRequest) String() string
- func (m *ContractByDenomRequest) Unmarshal(dAtA []byte) error
- func (m *ContractByDenomRequest) XXX_DiscardUnknown()
- func (m *ContractByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractByDenomRequest) XXX_Merge(src proto.Message)
- func (m *ContractByDenomRequest) XXX_Size() int
- func (m *ContractByDenomRequest) XXX_Unmarshal(b []byte) error
- type ContractByDenomResponse
- func (*ContractByDenomResponse) Descriptor() ([]byte, []int)
- func (m *ContractByDenomResponse) GetAutoContract() string
- func (m *ContractByDenomResponse) GetContract() string
- func (m *ContractByDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *ContractByDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractByDenomResponse) ProtoMessage()
- func (m *ContractByDenomResponse) Reset()
- func (m *ContractByDenomResponse) Size() (n int)
- func (m *ContractByDenomResponse) String() string
- func (m *ContractByDenomResponse) Unmarshal(dAtA []byte) error
- func (m *ContractByDenomResponse) XXX_DiscardUnknown()
- func (m *ContractByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractByDenomResponse) XXX_Merge(src proto.Message)
- func (m *ContractByDenomResponse) XXX_Size() int
- func (m *ContractByDenomResponse) XXX_Unmarshal(b []byte) error
- type CronosKeeper
- type DenomByContractRequest
- func (*DenomByContractRequest) Descriptor() ([]byte, []int)
- func (m *DenomByContractRequest) Marshal() (dAtA []byte, err error)
- func (m *DenomByContractRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomByContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomByContractRequest) ProtoMessage()
- func (m *DenomByContractRequest) Reset()
- func (m *DenomByContractRequest) Size() (n int)
- func (m *DenomByContractRequest) String() string
- func (m *DenomByContractRequest) Unmarshal(dAtA []byte) error
- func (m *DenomByContractRequest) XXX_DiscardUnknown()
- func (m *DenomByContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomByContractRequest) XXX_Merge(src proto.Message)
- func (m *DenomByContractRequest) XXX_Size() int
- func (m *DenomByContractRequest) XXX_Unmarshal(b []byte) error
- type DenomByContractResponse
- func (*DenomByContractResponse) Descriptor() ([]byte, []int)
- func (m *DenomByContractResponse) GetDenom() string
- func (m *DenomByContractResponse) Marshal() (dAtA []byte, err error)
- func (m *DenomByContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomByContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomByContractResponse) ProtoMessage()
- func (m *DenomByContractResponse) Reset()
- func (m *DenomByContractResponse) Size() (n int)
- func (m *DenomByContractResponse) String() string
- func (m *DenomByContractResponse) Unmarshal(dAtA []byte) error
- func (m *DenomByContractResponse) XXX_DiscardUnknown()
- func (m *DenomByContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomByContractResponse) XXX_Merge(src proto.Message)
- func (m *DenomByContractResponse) XXX_Size() int
- func (m *DenomByContractResponse) XXX_Unmarshal(b []byte) error
- type DummyTracer
- func (dt DummyTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error)
- func (dt DummyTracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...)
- func (dt DummyTracer) CaptureStart(env *vm.EVM, from, to common.Address, create bool, input []byte, gas uint64, ...)
- func (dt DummyTracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...)
- type EvmKeeper
- type EvmLogHandler
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAutoContracts() []TokenMapping
- func (m *GenesisState) GetExternalContracts() []TokenMapping
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IbcKeeper
- type MsgClient
- type MsgConvertVouchers
- func (*MsgConvertVouchers) Descriptor() ([]byte, []int)
- func (m *MsgConvertVouchers) GetAddress() string
- func (m *MsgConvertVouchers) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgConvertVouchers) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertVouchers) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertVouchers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertVouchers) ProtoMessage()
- func (m *MsgConvertVouchers) Reset()
- func (m *MsgConvertVouchers) Size() (n int)
- func (m *MsgConvertVouchers) String() string
- func (m *MsgConvertVouchers) Unmarshal(dAtA []byte) error
- func (msg *MsgConvertVouchers) ValidateBasic() error
- func (m *MsgConvertVouchers) XXX_DiscardUnknown()
- func (m *MsgConvertVouchers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertVouchers) XXX_Merge(src proto.Message)
- func (m *MsgConvertVouchers) XXX_Size() int
- func (m *MsgConvertVouchers) XXX_Unmarshal(b []byte) error
- type MsgConvertVouchersResponse
- func (*MsgConvertVouchersResponse) Descriptor() ([]byte, []int)
- func (m *MsgConvertVouchersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertVouchersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertVouchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertVouchersResponse) ProtoMessage()
- func (m *MsgConvertVouchersResponse) Reset()
- func (m *MsgConvertVouchersResponse) Size() (n int)
- func (m *MsgConvertVouchersResponse) String() string
- func (m *MsgConvertVouchersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConvertVouchersResponse) XXX_DiscardUnknown()
- func (m *MsgConvertVouchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertVouchersResponse) XXX_Merge(src proto.Message)
- func (m *MsgConvertVouchersResponse) XXX_Size() int
- func (m *MsgConvertVouchersResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStoreBlockList
- func (*MsgStoreBlockList) Descriptor() ([]byte, []int)
- func (m *MsgStoreBlockList) GetBlob() []byte
- func (m *MsgStoreBlockList) GetFrom() string
- func (m *MsgStoreBlockList) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreBlockList) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreBlockList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreBlockList) ProtoMessage()
- func (m *MsgStoreBlockList) Reset()
- func (m *MsgStoreBlockList) Size() (n int)
- func (m *MsgStoreBlockList) String() string
- func (m *MsgStoreBlockList) Unmarshal(dAtA []byte) error
- func (msg *MsgStoreBlockList) ValidateBasic() error
- func (m *MsgStoreBlockList) XXX_DiscardUnknown()
- func (m *MsgStoreBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreBlockList) XXX_Merge(src proto.Message)
- func (m *MsgStoreBlockList) XXX_Size() int
- func (m *MsgStoreBlockList) XXX_Unmarshal(b []byte) error
- type MsgStoreBlockListResponse
- func (*MsgStoreBlockListResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreBlockListResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreBlockListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreBlockListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreBlockListResponse) ProtoMessage()
- func (m *MsgStoreBlockListResponse) Reset()
- func (m *MsgStoreBlockListResponse) Size() (n int)
- func (m *MsgStoreBlockListResponse) String() string
- func (m *MsgStoreBlockListResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreBlockListResponse) XXX_DiscardUnknown()
- func (m *MsgStoreBlockListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreBlockListResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreBlockListResponse) XXX_Size() int
- func (m *MsgStoreBlockListResponse) XXX_Unmarshal(b []byte) error
- type MsgTransferTokens
- func (*MsgTransferTokens) Descriptor() ([]byte, []int)
- func (m *MsgTransferTokens) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgTransferTokens) GetFrom() string
- func (m *MsgTransferTokens) GetTo() string
- func (m *MsgTransferTokens) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokens) ProtoMessage()
- func (m *MsgTransferTokens) Reset()
- func (m *MsgTransferTokens) Size() (n int)
- func (m *MsgTransferTokens) String() string
- func (m *MsgTransferTokens) Unmarshal(dAtA []byte) error
- func (msg *MsgTransferTokens) ValidateBasic() error
- func (m *MsgTransferTokens) XXX_DiscardUnknown()
- func (m *MsgTransferTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokens) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokens) XXX_Size() int
- func (m *MsgTransferTokens) XXX_Unmarshal(b []byte) error
- type MsgTransferTokensResponse
- func (*MsgTransferTokensResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokensResponse) ProtoMessage()
- func (m *MsgTransferTokensResponse) Reset()
- func (m *MsgTransferTokensResponse) Size() (n int)
- func (m *MsgTransferTokensResponse) String() string
- func (m *MsgTransferTokensResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferTokensResponse) XXX_DiscardUnknown()
- func (m *MsgTransferTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokensResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokensResponse) XXX_Size() int
- func (m *MsgTransferTokensResponse) XXX_Unmarshal(b []byte) error
- type MsgTurnBridge
- func (*MsgTurnBridge) Descriptor() ([]byte, []int)
- func (m *MsgTurnBridge) GetEnable() bool
- func (m *MsgTurnBridge) GetSender() string
- func (m *MsgTurnBridge) Marshal() (dAtA []byte, err error)
- func (m *MsgTurnBridge) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTurnBridge) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTurnBridge) ProtoMessage()
- func (m *MsgTurnBridge) Reset()
- func (m *MsgTurnBridge) Size() (n int)
- func (m *MsgTurnBridge) String() string
- func (m *MsgTurnBridge) Unmarshal(dAtA []byte) error
- func (msg *MsgTurnBridge) ValidateBasic() error
- func (m *MsgTurnBridge) XXX_DiscardUnknown()
- func (m *MsgTurnBridge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTurnBridge) XXX_Merge(src proto.Message)
- func (m *MsgTurnBridge) XXX_Size() int
- func (m *MsgTurnBridge) XXX_Unmarshal(b []byte) error
- type MsgTurnBridgeResponse
- func (*MsgTurnBridgeResponse) Descriptor() ([]byte, []int)
- func (m *MsgTurnBridgeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTurnBridgeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTurnBridgeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTurnBridgeResponse) ProtoMessage()
- func (m *MsgTurnBridgeResponse) Reset()
- func (m *MsgTurnBridgeResponse) Size() (n int)
- func (m *MsgTurnBridgeResponse) String() string
- func (m *MsgTurnBridgeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTurnBridgeResponse) XXX_DiscardUnknown()
- func (m *MsgTurnBridgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTurnBridgeResponse) XXX_Merge(src proto.Message)
- func (m *MsgTurnBridgeResponse) XXX_Size() int
- func (m *MsgTurnBridgeResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdatePermissions
- func (*MsgUpdatePermissions) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePermissions) GetAddress() string
- func (m *MsgUpdatePermissions) GetFrom() string
- func (m *MsgUpdatePermissions) GetPermissions() uint64
- func (m *MsgUpdatePermissions) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePermissions) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePermissions) ProtoMessage()
- func (m *MsgUpdatePermissions) Reset()
- func (m *MsgUpdatePermissions) Size() (n int)
- func (m *MsgUpdatePermissions) String() string
- func (m *MsgUpdatePermissions) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdatePermissions) ValidateBasic() error
- func (m *MsgUpdatePermissions) XXX_DiscardUnknown()
- func (m *MsgUpdatePermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePermissions) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePermissions) XXX_Size() int
- func (m *MsgUpdatePermissions) XXX_Unmarshal(b []byte) error
- type MsgUpdatePermissionsResponse
- func (*MsgUpdatePermissionsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdatePermissionsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdatePermissionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdatePermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdatePermissionsResponse) ProtoMessage()
- func (m *MsgUpdatePermissionsResponse) Reset()
- func (m *MsgUpdatePermissionsResponse) Size() (n int)
- func (m *MsgUpdatePermissionsResponse) String() string
- func (m *MsgUpdatePermissionsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdatePermissionsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdatePermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdatePermissionsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdatePermissionsResponse) XXX_Size() int
- func (m *MsgUpdatePermissionsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenMapping
- func (*MsgUpdateTokenMapping) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenMapping) GetContract() string
- func (m *MsgUpdateTokenMapping) GetDecimal() uint32
- func (m *MsgUpdateTokenMapping) GetDenom() string
- func (m *MsgUpdateTokenMapping) GetSender() string
- func (msg *MsgUpdateTokenMapping) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateTokenMapping) GetSymbol() string
- func (m *MsgUpdateTokenMapping) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenMapping) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenMapping) ProtoMessage()
- func (m *MsgUpdateTokenMapping) Reset()
- func (m *MsgUpdateTokenMapping) Size() (n int)
- func (m *MsgUpdateTokenMapping) String() string
- func (msg MsgUpdateTokenMapping) Type() string
- func (m *MsgUpdateTokenMapping) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateTokenMapping) ValidateBasic() error
- func (m *MsgUpdateTokenMapping) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenMapping) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenMapping) XXX_Size() int
- func (m *MsgUpdateTokenMapping) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenMappingResponse
- func (*MsgUpdateTokenMappingResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenMappingResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenMappingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenMappingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenMappingResponse) ProtoMessage()
- func (m *MsgUpdateTokenMappingResponse) Reset()
- func (m *MsgUpdateTokenMappingResponse) Size() (n int)
- func (m *MsgUpdateTokenMappingResponse) String() string
- func (m *MsgUpdateTokenMappingResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTokenMappingResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenMappingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenMappingResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenMappingResponse) XXX_Size() int
- func (m *MsgUpdateTokenMappingResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetCronosAdmin() string
- func (m *Params) GetEnableAutoDeployment() bool
- func (m *Params) GetIbcCroDenom() string
- func (m *Params) GetIbcTimeout() uint64
- func (m *Params) GetMaxCallbackGas() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryBlockListRequest
- func (*QueryBlockListRequest) Descriptor() ([]byte, []int)
- func (m *QueryBlockListRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBlockListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBlockListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBlockListRequest) ProtoMessage()
- func (m *QueryBlockListRequest) Reset()
- func (m *QueryBlockListRequest) Size() (n int)
- func (m *QueryBlockListRequest) String() string
- func (m *QueryBlockListRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBlockListRequest) XXX_DiscardUnknown()
- func (m *QueryBlockListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockListRequest) XXX_Merge(src proto.Message)
- func (m *QueryBlockListRequest) XXX_Size() int
- func (m *QueryBlockListRequest) XXX_Unmarshal(b []byte) error
- type QueryBlockListResponse
- func (*QueryBlockListResponse) Descriptor() ([]byte, []int)
- func (m *QueryBlockListResponse) GetBlob() []byte
- func (m *QueryBlockListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBlockListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBlockListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBlockListResponse) ProtoMessage()
- func (m *QueryBlockListResponse) Reset()
- func (m *QueryBlockListResponse) Size() (n int)
- func (m *QueryBlockListResponse) String() string
- func (m *QueryBlockListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBlockListResponse) XXX_DiscardUnknown()
- func (m *QueryBlockListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockListResponse) XXX_Merge(src proto.Message)
- func (m *QueryBlockListResponse) XXX_Size() int
- func (m *QueryBlockListResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPermissionsRequest
- func (*QueryPermissionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPermissionsRequest) GetAddress() string
- func (m *QueryPermissionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPermissionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPermissionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPermissionsRequest) ProtoMessage()
- func (m *QueryPermissionsRequest) Reset()
- func (m *QueryPermissionsRequest) Size() (n int)
- func (m *QueryPermissionsRequest) String() string
- func (m *QueryPermissionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPermissionsRequest) XXX_DiscardUnknown()
- func (m *QueryPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPermissionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPermissionsRequest) XXX_Size() int
- func (m *QueryPermissionsRequest) XXX_Unmarshal(b []byte) error
- type QueryPermissionsResponse
- func (*QueryPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPermissionsResponse) GetCanChangeTokenMapping() bool
- func (m *QueryPermissionsResponse) GetCanTurnBridge() bool
- func (m *QueryPermissionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPermissionsResponse) ProtoMessage()
- func (m *QueryPermissionsResponse) Reset()
- func (m *QueryPermissionsResponse) Size() (n int)
- func (m *QueryPermissionsResponse) String() string
- func (m *QueryPermissionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPermissionsResponse) XXX_DiscardUnknown()
- func (m *QueryPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPermissionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPermissionsResponse) XXX_Size() int
- func (m *QueryPermissionsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type ReplayBlockRequest
- func (*ReplayBlockRequest) Descriptor() ([]byte, []int)
- func (m *ReplayBlockRequest) Marshal() (dAtA []byte, err error)
- func (m *ReplayBlockRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ReplayBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReplayBlockRequest) ProtoMessage()
- func (m *ReplayBlockRequest) Reset()
- func (m *ReplayBlockRequest) Size() (n int)
- func (m *ReplayBlockRequest) String() string
- func (m *ReplayBlockRequest) Unmarshal(dAtA []byte) error
- func (m ReplayBlockRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *ReplayBlockRequest) XXX_DiscardUnknown()
- func (m *ReplayBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplayBlockRequest) XXX_Merge(src proto.Message)
- func (m *ReplayBlockRequest) XXX_Size() int
- func (m *ReplayBlockRequest) XXX_Unmarshal(b []byte) error
- type ReplayBlockResponse
- func (*ReplayBlockResponse) Descriptor() ([]byte, []int)
- func (m *ReplayBlockResponse) GetResponses() []*types.MsgEthereumTxResponse
- func (m *ReplayBlockResponse) Marshal() (dAtA []byte, err error)
- func (m *ReplayBlockResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ReplayBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReplayBlockResponse) ProtoMessage()
- func (m *ReplayBlockResponse) Reset()
- func (m *ReplayBlockResponse) Size() (n int)
- func (m *ReplayBlockResponse) String() string
- func (m *ReplayBlockResponse) Unmarshal(dAtA []byte) error
- func (m *ReplayBlockResponse) XXX_DiscardUnknown()
- func (m *ReplayBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplayBlockResponse) XXX_Merge(src proto.Message)
- func (m *ReplayBlockResponse) XXX_Size() int
- func (m *ReplayBlockResponse) XXX_Unmarshal(b []byte) error
- type TokenMapping
- func (*TokenMapping) Descriptor() ([]byte, []int)
- func (m *TokenMapping) GetContract() string
- func (m *TokenMapping) GetDenom() string
- func (m *TokenMapping) Marshal() (dAtA []byte, err error)
- func (m *TokenMapping) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenMapping) ProtoMessage()
- func (m *TokenMapping) Reset()
- func (m *TokenMapping) Size() (n int)
- func (m *TokenMapping) String() string
- func (m *TokenMapping) Unmarshal(dAtA []byte) error
- func (m *TokenMapping) XXX_DiscardUnknown()
- func (m *TokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenMapping) XXX_Merge(src proto.Message)
- func (m *TokenMapping) XXX_Size() int
- func (m *TokenMapping) XXX_Unmarshal(b []byte) error
- type TokenMappingChangeProposal
- func (*TokenMappingChangeProposal) Descriptor() ([]byte, []int)
- func (tcp *TokenMappingChangeProposal) GetDescription() string
- func (tcp *TokenMappingChangeProposal) GetTitle() string
- func (m *TokenMappingChangeProposal) Marshal() (dAtA []byte, err error)
- func (m *TokenMappingChangeProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenMappingChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (tcp *TokenMappingChangeProposal) ProposalRoute() string
- func (tcp *TokenMappingChangeProposal) ProposalType() string
- func (*TokenMappingChangeProposal) ProtoMessage()
- func (m *TokenMappingChangeProposal) Reset()
- func (m *TokenMappingChangeProposal) Size() (n int)
- func (tcp TokenMappingChangeProposal) String() string
- func (m *TokenMappingChangeProposal) Unmarshal(dAtA []byte) error
- func (tcp *TokenMappingChangeProposal) ValidateBasic() error
- func (m *TokenMappingChangeProposal) XXX_DiscardUnknown()
- func (m *TokenMappingChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenMappingChangeProposal) XXX_Merge(src proto.Message)
- func (m *TokenMappingChangeProposal) XXX_Size() int
- func (m *TokenMappingChangeProposal) XXX_Unmarshal(b []byte) error
- type TransferKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ConvertVouchers(ctx context.Context, req *MsgConvertVouchers) (*MsgConvertVouchersResponse, error)
- func (*UnimplementedMsgServer) StoreBlockList(ctx context.Context, req *MsgStoreBlockList) (*MsgStoreBlockListResponse, error)
- func (*UnimplementedMsgServer) TransferTokens(ctx context.Context, req *MsgTransferTokens) (*MsgTransferTokensResponse, error)
- func (*UnimplementedMsgServer) TurnBridge(ctx context.Context, req *MsgTurnBridge) (*MsgTurnBridgeResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdatePermissions(ctx context.Context, req *MsgUpdatePermissions) (*MsgUpdatePermissionsResponse, error)
- func (*UnimplementedMsgServer) UpdateTokenMapping(ctx context.Context, req *MsgUpdateTokenMapping) (*MsgUpdateTokenMappingResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) BlockList(ctx context.Context, req *QueryBlockListRequest) (*QueryBlockListResponse, error)
- func (*UnimplementedQueryServer) ContractByDenom(ctx context.Context, req *ContractByDenomRequest) (*ContractByDenomResponse, error)
- func (*UnimplementedQueryServer) DenomByContract(ctx context.Context, req *DenomByContractRequest) (*DenomByContractResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Permissions(ctx context.Context, req *QueryPermissionsRequest) (*QueryPermissionsResponse, error)
- func (*UnimplementedQueryServer) ReplayBlock(ctx context.Context, req *ReplayBlockRequest) (*ReplayBlockResponse, error)
Constants ¶
const ( AttributeValueCategory = ModuleName AttributeKeyRecipient = "recipient" AttributeKeySender = "sender" AttributeKeyAmount = "amount" AttributeKeyReceiver = "receiver" AttributeKeyEthereumTokenContract = "ethereum_token_contract" EventTypeConvertVouchers = "convert_vouchers" EventTypeTransferTokens = "transfer_tokens" EventTypeEthereumSendToCosmosHandled = "ethereum_send_to_cosmos_handled" )
const ( // ModuleName defines the module name ModuleName = "cronos" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_cronos" )
const ( IbcCroDenomDefaultValue = "ibc/6B5A664BF0AF4F71B2F0BAA33141E2F1321242FBD5D19762F541EC971ACB0865" IbcTimeoutDefaultValue = uint64(86400000000000) // 1 day MaxCallbackGasDefaultValue = uint64(50000) )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const EVMModuleName = "cronos-evm"
const (
// ProposalTypeTokenMappingChange defines the type for a TokenMappingChangeProposal
ProposalTypeTokenMappingChange = "TokenMappingChange"
)
const TypeMsgUpdateTokenMapping = "UpdateTokenMapping"
Variables ¶
var ( ErrInvalidLengthCronos = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCronos = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCronos = fmt.Errorf("proto: unexpected end of group") )
var ( ErrIbcCroDenomEmpty = errors.Register(ModuleName, codeErrIbcCroDenomEmpty, "ibc cro denom is not set") ErrIbcCroDenomInvalid = errors.Register(ModuleName, codeErrIbcCroDenomInvalid, "ibc cro denom is invalid") )
x/cronos module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyPrefixDenomToExternalContract = []byte{prefixDenomToExternalContract} KeyPrefixDenomToAutoContract = []byte{prefixDenomToAutoContract} KeyPrefixContractToDenom = []byte{prefixContractToDenom} // ParamsKey is the key for params. ParamsKey = []byte{paramsKey} KeyPrefixAdminToPermissions = []byte{prefixAdminToPermissions} KeyPrefixBlockList = []byte{prefixBlockList} )
KVStore key prefixes
var ( // KeyIbcCroDenom is store's key for the IBC Cro denomination KeyIbcCroDenom = []byte("IbcCroDenom") // KeyIbcTimeout is store's key for the IBC Timeout KeyIbcTimeout = []byte("IbcTimeout") // KeyCronosAdmin is store's key for the admin address KeyCronosAdmin = []byte("CronosAdmin") // KeyEnableAutoDeployment is store's key for the EnableAutoDeployment KeyEnableAutoDeployment = []byte("EnableAutoDeployment") // KeyMaxCallbackGas is store's key for the MaxCallbackGas KeyMaxCallbackGas = []byte("MaxCallbackGas") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
Functions ¶
func AdminToPermissionsKey ¶ added in v1.7.0
func AdminToPermissionsKey(address sdk.AccAddress) []byte
AdminToPermissionsKey defines the store key for admin to permissions mapping
func ContractToDenomKey ¶ added in v0.6.1
ContractToDenomKey defines the store key for contract to denom reverse index
func DenomToAutoContractKey ¶ added in v0.6.1
DenomToAutoContractKey defines the store key for denom to auto contract mapping
func DenomToExternalContractKey ¶ added in v0.6.1
DenomToExternalContractKey defines the store key for denom to contract mapping
func GetContractAddressFromDenom ¶ added in v1.0.0
GetContractAddressFromDenom get the contract address from the coin denom
func IsSourceCoin ¶ added in v1.0.0
IsSourceCoin returns true if denom is a coin originated from cronos
func IsValidCoinDenom ¶ added in v1.0.0
IsValidCoinDenom returns true if it's ok it is a valid coin denom
func IsValidCronosDenom ¶ added in v1.0.0
IsValidCronosDenom returns true if denom is a valid cronos denom
func IsValidGravityDenom ¶ added in v0.6.1
IsValidGravityDenom returns true if denom is a valid gravity denom
func IsValidIBCDenom ¶ added in v0.6.1
IsValidIBCDenom returns true if denom is a valid ibc denom
func NewConvertVouchersEvent ¶ added in v0.6.1
NewConvertVouchersEvent constructs a new voucher convert sdk.Event nolint: interfacer
func NewTransferTokensEvent ¶ added in v0.6.1
NewTransferTokensEvent constructs a new transfer sdk.Event
func ParamKeyTable ¶ added in v0.6.1
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶ added in v0.6.1
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.6.1
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 ¶ added in v0.6.1
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 ¶ added in v0.6.1
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 AccountKeeper ¶ added in v0.6.1
type AccountKeeper interface {
GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI
GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
SetAccount(ctx context.Context, account sdk.AccountI)
}
AccountKeeper defines the expected account keeper interface
type BankKeeper ¶ added in v0.6.1
type BankKeeper interface {
SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
SendCoins(ctx context.Context, senderAddr, recipientAddr sdk.AccAddress, amt sdk.Coins) error
GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool)
SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata)
}
BankKeeper defines the expected interface needed to retrieve account balances.
type ByteString ¶ added in v0.6.1
type ByteString []byte
ByteString is a byte array that serializes to hex
func (ByteString) MarshalJSON ¶ added in v0.6.1
func (s ByteString) MarshalJSON() ([]byte, error)
MarshalJSON serializes ByteArray to hex
func (*ByteString) UnmarshalJSON ¶ added in v0.6.1
func (s *ByteString) UnmarshalJSON(data []byte) error
UnmarshalJSON deserializes ByteArray to hex
type CompiledContract ¶ added in v0.6.1
type CompiledContract struct {
ABI abi.ABI
Bin ByteString
}
CompiledContract contains compiled bytecode and abi
var ( // ModuleCRC20Contract is the compiled cronos crc20 contract ModuleCRC20Contract CompiledContract // ModuleCRC21Contract is the compiled cronos crc21 contract ModuleCRC21Contract CompiledContract // EVMModuleAddress is the native module address for EVM EVMModuleAddress common.Address )
type ContractByDenomRequest ¶ added in v0.6.1
type ContractByDenomRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
ContractByDenomRequest is the request type of ContractByDenom call
func (*ContractByDenomRequest) Descriptor ¶ added in v0.6.1
func (*ContractByDenomRequest) Descriptor() ([]byte, []int)
func (*ContractByDenomRequest) Marshal ¶ added in v0.6.1
func (m *ContractByDenomRequest) Marshal() (dAtA []byte, err error)
func (*ContractByDenomRequest) MarshalTo ¶ added in v0.6.1
func (m *ContractByDenomRequest) MarshalTo(dAtA []byte) (int, error)
func (*ContractByDenomRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *ContractByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractByDenomRequest) ProtoMessage ¶ added in v0.6.1
func (*ContractByDenomRequest) ProtoMessage()
func (*ContractByDenomRequest) Reset ¶ added in v0.6.1
func (m *ContractByDenomRequest) Reset()
func (*ContractByDenomRequest) Size ¶ added in v0.6.1
func (m *ContractByDenomRequest) Size() (n int)
func (*ContractByDenomRequest) String ¶ added in v0.6.1
func (m *ContractByDenomRequest) String() string
func (*ContractByDenomRequest) Unmarshal ¶ added in v0.6.1
func (m *ContractByDenomRequest) Unmarshal(dAtA []byte) error
func (*ContractByDenomRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *ContractByDenomRequest) XXX_DiscardUnknown()
func (*ContractByDenomRequest) XXX_Marshal ¶ added in v0.6.1
func (m *ContractByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractByDenomRequest) XXX_Merge ¶ added in v0.6.1
func (m *ContractByDenomRequest) XXX_Merge(src proto.Message)
func (*ContractByDenomRequest) XXX_Size ¶ added in v0.6.1
func (m *ContractByDenomRequest) XXX_Size() int
func (*ContractByDenomRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *ContractByDenomRequest) XXX_Unmarshal(b []byte) error
type ContractByDenomResponse ¶ added in v0.6.1
type ContractByDenomResponse struct {
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
AutoContract string `protobuf:"bytes,2,opt,name=auto_contract,json=autoContract,proto3" json:"auto_contract,omitempty"`
}
ContractByDenomRequest is the response type of ContractByDenom call
func (*ContractByDenomResponse) Descriptor ¶ added in v0.6.1
func (*ContractByDenomResponse) Descriptor() ([]byte, []int)
func (*ContractByDenomResponse) GetAutoContract ¶ added in v0.6.1
func (m *ContractByDenomResponse) GetAutoContract() string
func (*ContractByDenomResponse) GetContract ¶ added in v0.6.1
func (m *ContractByDenomResponse) GetContract() string
func (*ContractByDenomResponse) Marshal ¶ added in v0.6.1
func (m *ContractByDenomResponse) Marshal() (dAtA []byte, err error)
func (*ContractByDenomResponse) MarshalTo ¶ added in v0.6.1
func (m *ContractByDenomResponse) MarshalTo(dAtA []byte) (int, error)
func (*ContractByDenomResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *ContractByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractByDenomResponse) ProtoMessage ¶ added in v0.6.1
func (*ContractByDenomResponse) ProtoMessage()
func (*ContractByDenomResponse) Reset ¶ added in v0.6.1
func (m *ContractByDenomResponse) Reset()
func (*ContractByDenomResponse) Size ¶ added in v0.6.1
func (m *ContractByDenomResponse) Size() (n int)
func (*ContractByDenomResponse) String ¶ added in v0.6.1
func (m *ContractByDenomResponse) String() string
func (*ContractByDenomResponse) Unmarshal ¶ added in v0.6.1
func (m *ContractByDenomResponse) Unmarshal(dAtA []byte) error
func (*ContractByDenomResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *ContractByDenomResponse) XXX_DiscardUnknown()
func (*ContractByDenomResponse) XXX_Marshal ¶ added in v0.6.1
func (m *ContractByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractByDenomResponse) XXX_Merge ¶ added in v0.6.1
func (m *ContractByDenomResponse) XXX_Merge(src proto.Message)
func (*ContractByDenomResponse) XXX_Size ¶ added in v0.6.1
func (m *ContractByDenomResponse) XXX_Size() int
func (*ContractByDenomResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *ContractByDenomResponse) XXX_Unmarshal(b []byte) error
type CronosKeeper ¶ added in v1.7.0
CronosKeeper defines the interface for cronos keeper
type DenomByContractRequest ¶ added in v0.6.1
type DenomByContractRequest struct {
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
}
DenomByContractRequest is the request type of DenomByContract call
func (*DenomByContractRequest) Descriptor ¶ added in v0.6.1
func (*DenomByContractRequest) Descriptor() ([]byte, []int)
func (*DenomByContractRequest) Marshal ¶ added in v0.6.1
func (m *DenomByContractRequest) Marshal() (dAtA []byte, err error)
func (*DenomByContractRequest) MarshalTo ¶ added in v0.6.1
func (m *DenomByContractRequest) MarshalTo(dAtA []byte) (int, error)
func (*DenomByContractRequest) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *DenomByContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomByContractRequest) ProtoMessage ¶ added in v0.6.1
func (*DenomByContractRequest) ProtoMessage()
func (*DenomByContractRequest) Reset ¶ added in v0.6.1
func (m *DenomByContractRequest) Reset()
func (*DenomByContractRequest) Size ¶ added in v0.6.1
func (m *DenomByContractRequest) Size() (n int)
func (*DenomByContractRequest) String ¶ added in v0.6.1
func (m *DenomByContractRequest) String() string
func (*DenomByContractRequest) Unmarshal ¶ added in v0.6.1
func (m *DenomByContractRequest) Unmarshal(dAtA []byte) error
func (*DenomByContractRequest) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *DenomByContractRequest) XXX_DiscardUnknown()
func (*DenomByContractRequest) XXX_Marshal ¶ added in v0.6.1
func (m *DenomByContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomByContractRequest) XXX_Merge ¶ added in v0.6.1
func (m *DenomByContractRequest) XXX_Merge(src proto.Message)
func (*DenomByContractRequest) XXX_Size ¶ added in v0.6.1
func (m *DenomByContractRequest) XXX_Size() int
func (*DenomByContractRequest) XXX_Unmarshal ¶ added in v0.6.1
func (m *DenomByContractRequest) XXX_Unmarshal(b []byte) error
type DenomByContractResponse ¶ added in v0.6.1
type DenomByContractResponse struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
DenomByContractResponse is the response type of DenomByContract call
func (*DenomByContractResponse) Descriptor ¶ added in v0.6.1
func (*DenomByContractResponse) Descriptor() ([]byte, []int)
func (*DenomByContractResponse) GetDenom ¶ added in v0.6.1
func (m *DenomByContractResponse) GetDenom() string
func (*DenomByContractResponse) Marshal ¶ added in v0.6.1
func (m *DenomByContractResponse) Marshal() (dAtA []byte, err error)
func (*DenomByContractResponse) MarshalTo ¶ added in v0.6.1
func (m *DenomByContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*DenomByContractResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *DenomByContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomByContractResponse) ProtoMessage ¶ added in v0.6.1
func (*DenomByContractResponse) ProtoMessage()
func (*DenomByContractResponse) Reset ¶ added in v0.6.1
func (m *DenomByContractResponse) Reset()
func (*DenomByContractResponse) Size ¶ added in v0.6.1
func (m *DenomByContractResponse) Size() (n int)
func (*DenomByContractResponse) String ¶ added in v0.6.1
func (m *DenomByContractResponse) String() string
func (*DenomByContractResponse) Unmarshal ¶ added in v0.6.1
func (m *DenomByContractResponse) Unmarshal(dAtA []byte) error
func (*DenomByContractResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *DenomByContractResponse) XXX_DiscardUnknown()
func (*DenomByContractResponse) XXX_Marshal ¶ added in v0.6.1
func (m *DenomByContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomByContractResponse) XXX_Merge ¶ added in v0.6.1
func (m *DenomByContractResponse) XXX_Merge(src proto.Message)
func (*DenomByContractResponse) XXX_Size ¶ added in v0.6.1
func (m *DenomByContractResponse) XXX_Size() int
func (*DenomByContractResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *DenomByContractResponse) XXX_Unmarshal(b []byte) error
type DummyTracer ¶ added in v0.6.1
type DummyTracer struct{}
func NewDummyTracer ¶ added in v0.6.1
func NewDummyTracer() *DummyTracer
func (DummyTracer) CaptureEnd ¶ added in v0.6.1
func (DummyTracer) CaptureFault ¶ added in v0.6.1
func (DummyTracer) CaptureStart ¶ added in v0.6.1
func (DummyTracer) CaptureState ¶ added in v0.6.1
type EvmKeeper ¶ added in v0.7.0
type EvmKeeper interface {
GetNonce(ctx sdk.Context, addr common.Address) uint64
ApplyMessage(ctx sdk.Context, msg *core.Message, tracer *tracing.Hooks, commit bool) (*evmtypes.EVMResult, error)
GetParams(ctx sdk.Context) evmtypes.Params
// to replay the messages
EthereumTx(goCtx context.Context, msg *evmtypes.MsgEthereumTx) (*evmtypes.MsgEthereumTxResponse, error)
GetBaseFee(ctx sdk.Context, ethCfg *params.ChainConfig) *big.Int
DeductTxCostsFromUserBalance(ctx sdk.Context, fees sdk.Coins, from common.Address) error
ChainID() *big.Int
}
EvmKeeper defines the interface for evm keeper
type EvmLogHandler ¶ added in v0.6.1
type EvmLogHandler interface {
// Return the id of the log signature it handles
EventID() common.Hash
// Process the log
Handle(ctx sdk.Context, contract common.Address, topics []common.Hash, data []byte,
addLogToReceipt func(contractAddress common.Address, logSig common.Hash, logData []byte)) error
}
EvmLogHandler defines the interface for evm log handler
type GenesisState ¶
type GenesisState struct {
// params defines all the paramaters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
ExternalContracts []TokenMapping `protobuf:"bytes,2,rep,name=external_contracts,json=externalContracts,proto3" json:"external_contracts"`
AutoContracts []TokenMapping `protobuf:"bytes,3,rep,name=auto_contracts,json=autoContracts,proto3" json:"auto_contracts"`
}
GenesisState defines the cronos module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAutoContracts ¶ added in v0.6.1
func (m *GenesisState) GetAutoContracts() []TokenMapping
func (*GenesisState) GetExternalContracts ¶ added in v0.6.1
func (m *GenesisState) GetExternalContracts() []TokenMapping
func (*GenesisState) GetParams ¶ added in v0.6.1
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type IbcKeeper ¶ added in v1.7.0
type IbcKeeper interface {
CreateClient(goCtx context.Context, msg *clienttypes.MsgCreateClient) (*clienttypes.MsgCreateClientResponse, error)
UpdateClient(goCtx context.Context, msg *clienttypes.MsgUpdateClient) (*clienttypes.MsgUpdateClientResponse, error)
UpgradeClient(goCtx context.Context, msg *clienttypes.MsgUpgradeClient) (*clienttypes.MsgUpgradeClientResponse, error)
ConnectionOpenInit(goCtx context.Context, msg *connectiontypes.MsgConnectionOpenInit) (*connectiontypes.MsgConnectionOpenInitResponse, error)
ConnectionOpenTry(goCtx context.Context, msg *connectiontypes.MsgConnectionOpenTry) (*connectiontypes.MsgConnectionOpenTryResponse, error)
ConnectionOpenAck(goCtx context.Context, msg *connectiontypes.MsgConnectionOpenAck) (*connectiontypes.MsgConnectionOpenAckResponse, error)
ConnectionOpenConfirm(goCtx context.Context, msg *connectiontypes.MsgConnectionOpenConfirm) (*connectiontypes.MsgConnectionOpenConfirmResponse, error)
ChannelOpenInit(goCtx context.Context, msg *channeltypes.MsgChannelOpenInit) (*channeltypes.MsgChannelOpenInitResponse, error)
ChannelOpenTry(goCtx context.Context, msg *channeltypes.MsgChannelOpenTry) (*channeltypes.MsgChannelOpenTryResponse, error)
ChannelOpenAck(goCtx context.Context, msg *channeltypes.MsgChannelOpenAck) (*channeltypes.MsgChannelOpenAckResponse, error)
ChannelOpenConfirm(goCtx context.Context, msg *channeltypes.MsgChannelOpenConfirm) (*channeltypes.MsgChannelOpenConfirmResponse, error)
ChannelCloseInit(goCtx context.Context, msg *channeltypes.MsgChannelCloseInit) (*channeltypes.MsgChannelCloseInitResponse, error)
ChannelCloseConfirm(goCtx context.Context, msg *channeltypes.MsgChannelCloseConfirm) (*channeltypes.MsgChannelCloseConfirmResponse, error)
RecvPacket(goCtx context.Context, msg *channeltypes.MsgRecvPacket) (*channeltypes.MsgRecvPacketResponse, error)
Acknowledgement(goCtx context.Context, msg *channeltypes.MsgAcknowledgement) (*channeltypes.MsgAcknowledgementResponse, error)
Timeout(goCtx context.Context, msg *channeltypes.MsgTimeout) (*channeltypes.MsgTimeoutResponse, error)
TimeoutOnClose(goCtx context.Context, msg *channeltypes.MsgTimeoutOnClose) (*channeltypes.MsgTimeoutOnCloseResponse, error)
}
IbcKeeper defines the interface for ibc keeper
type MsgClient ¶
type MsgClient interface {
// ConvertVouchers defines a method for converting ibc voucher to cronos evm
// coins.
ConvertVouchers(ctx context.Context, in *MsgConvertVouchers, opts ...grpc.CallOption) (*MsgConvertVouchersResponse, error)
// TransferTokens defines a method to transfer cronos evm coins to another
// chain through IBC
TransferTokens(ctx context.Context, in *MsgTransferTokens, opts ...grpc.CallOption) (*MsgTransferTokensResponse, error)
// UpdateTokenMapping defines a method to update token mapping
UpdateTokenMapping(ctx context.Context, in *MsgUpdateTokenMapping, opts ...grpc.CallOption) (*MsgUpdateTokenMappingResponse, error)
// TurnBridge defines a method to disable or enable the gravity bridge
TurnBridge(ctx context.Context, in *MsgTurnBridge, opts ...grpc.CallOption) (*MsgTurnBridgeResponse, error)
// UpdateParams defines a method to update cronos module params
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// UpdatePermissions defines a method to update cronos admins permissions
UpdatePermissions(ctx context.Context, in *MsgUpdatePermissions, opts ...grpc.CallOption) (*MsgUpdatePermissionsResponse, error)
// StoreBlockList
StoreBlockList(ctx context.Context, in *MsgStoreBlockList, opts ...grpc.CallOption) (*MsgStoreBlockListResponse, 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 MsgConvertVouchers ¶ added in v0.6.1
type MsgConvertVouchers struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}
MsgConvertVouchers represents a message to convert ibc voucher coins to cronos evm coins.
func NewMsgConvertVouchers ¶ added in v0.6.1
func NewMsgConvertVouchers(address string, coins sdk.Coins) *MsgConvertVouchers
func (*MsgConvertVouchers) Descriptor ¶ added in v0.6.1
func (*MsgConvertVouchers) Descriptor() ([]byte, []int)
func (*MsgConvertVouchers) GetAddress ¶ added in v0.6.1
func (m *MsgConvertVouchers) GetAddress() string
func (*MsgConvertVouchers) GetCoins ¶ added in v0.6.1
func (m *MsgConvertVouchers) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgConvertVouchers) Marshal ¶ added in v0.6.1
func (m *MsgConvertVouchers) Marshal() (dAtA []byte, err error)
func (*MsgConvertVouchers) MarshalTo ¶ added in v0.6.1
func (m *MsgConvertVouchers) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertVouchers) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgConvertVouchers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertVouchers) ProtoMessage ¶ added in v0.6.1
func (*MsgConvertVouchers) ProtoMessage()
func (*MsgConvertVouchers) Reset ¶ added in v0.6.1
func (m *MsgConvertVouchers) Reset()
func (*MsgConvertVouchers) Size ¶ added in v0.6.1
func (m *MsgConvertVouchers) Size() (n int)
func (*MsgConvertVouchers) String ¶ added in v0.6.1
func (m *MsgConvertVouchers) String() string
func (*MsgConvertVouchers) Unmarshal ¶ added in v0.6.1
func (m *MsgConvertVouchers) Unmarshal(dAtA []byte) error
func (*MsgConvertVouchers) ValidateBasic ¶ added in v0.6.1
func (msg *MsgConvertVouchers) ValidateBasic() error
ValidateBasic ...
func (*MsgConvertVouchers) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgConvertVouchers) XXX_DiscardUnknown()
func (*MsgConvertVouchers) XXX_Marshal ¶ added in v0.6.1
func (m *MsgConvertVouchers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertVouchers) XXX_Merge ¶ added in v0.6.1
func (m *MsgConvertVouchers) XXX_Merge(src proto.Message)
func (*MsgConvertVouchers) XXX_Size ¶ added in v0.6.1
func (m *MsgConvertVouchers) XXX_Size() int
func (*MsgConvertVouchers) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgConvertVouchers) XXX_Unmarshal(b []byte) error
type MsgConvertVouchersResponse ¶ added in v0.6.1
type MsgConvertVouchersResponse struct {
}
MsgConvertVouchersResponse defines the ConvertVouchers response type.
func (*MsgConvertVouchersResponse) Descriptor ¶ added in v0.6.1
func (*MsgConvertVouchersResponse) Descriptor() ([]byte, []int)
func (*MsgConvertVouchersResponse) Marshal ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) Marshal() (dAtA []byte, err error)
func (*MsgConvertVouchersResponse) MarshalTo ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertVouchersResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertVouchersResponse) ProtoMessage ¶ added in v0.6.1
func (*MsgConvertVouchersResponse) ProtoMessage()
func (*MsgConvertVouchersResponse) Reset ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) Reset()
func (*MsgConvertVouchersResponse) Size ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) Size() (n int)
func (*MsgConvertVouchersResponse) String ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) String() string
func (*MsgConvertVouchersResponse) Unmarshal ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) Unmarshal(dAtA []byte) error
func (*MsgConvertVouchersResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) XXX_DiscardUnknown()
func (*MsgConvertVouchersResponse) XXX_Marshal ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertVouchersResponse) XXX_Merge ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) XXX_Merge(src proto.Message)
func (*MsgConvertVouchersResponse) XXX_Size ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) XXX_Size() int
func (*MsgConvertVouchersResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgConvertVouchersResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
// ConvertVouchers defines a method for converting ibc voucher to cronos evm
// coins.
ConvertVouchers(context.Context, *MsgConvertVouchers) (*MsgConvertVouchersResponse, error)
// TransferTokens defines a method to transfer cronos evm coins to another
// chain through IBC
TransferTokens(context.Context, *MsgTransferTokens) (*MsgTransferTokensResponse, error)
// UpdateTokenMapping defines a method to update token mapping
UpdateTokenMapping(context.Context, *MsgUpdateTokenMapping) (*MsgUpdateTokenMappingResponse, error)
// TurnBridge defines a method to disable or enable the gravity bridge
TurnBridge(context.Context, *MsgTurnBridge) (*MsgTurnBridgeResponse, error)
// UpdateParams defines a method to update cronos module params
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// UpdatePermissions defines a method to update cronos admins permissions
UpdatePermissions(context.Context, *MsgUpdatePermissions) (*MsgUpdatePermissionsResponse, error)
// StoreBlockList
StoreBlockList(context.Context, *MsgStoreBlockList) (*MsgStoreBlockListResponse, error)
}
MsgServer is the server API for Msg service.
type MsgStoreBlockList ¶ added in v1.7.0
type MsgStoreBlockList struct {
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
Blob []byte `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"`
}
MsgStoreBlockList
func NewMsgStoreBlockList ¶ added in v1.7.0
func NewMsgStoreBlockList(from string, blob []byte) *MsgStoreBlockList
func (*MsgStoreBlockList) Descriptor ¶ added in v1.7.0
func (*MsgStoreBlockList) Descriptor() ([]byte, []int)
func (*MsgStoreBlockList) GetBlob ¶ added in v1.7.0
func (m *MsgStoreBlockList) GetBlob() []byte
func (*MsgStoreBlockList) GetFrom ¶ added in v1.7.0
func (m *MsgStoreBlockList) GetFrom() string
func (*MsgStoreBlockList) Marshal ¶ added in v1.7.0
func (m *MsgStoreBlockList) Marshal() (dAtA []byte, err error)
func (*MsgStoreBlockList) MarshalTo ¶ added in v1.7.0
func (m *MsgStoreBlockList) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreBlockList) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgStoreBlockList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreBlockList) ProtoMessage ¶ added in v1.7.0
func (*MsgStoreBlockList) ProtoMessage()
func (*MsgStoreBlockList) Reset ¶ added in v1.7.0
func (m *MsgStoreBlockList) Reset()
func (*MsgStoreBlockList) Size ¶ added in v1.7.0
func (m *MsgStoreBlockList) Size() (n int)
func (*MsgStoreBlockList) String ¶ added in v1.7.0
func (m *MsgStoreBlockList) String() string
func (*MsgStoreBlockList) Unmarshal ¶ added in v1.7.0
func (m *MsgStoreBlockList) Unmarshal(dAtA []byte) error
func (*MsgStoreBlockList) ValidateBasic ¶ added in v1.7.0
func (msg *MsgStoreBlockList) ValidateBasic() error
func (*MsgStoreBlockList) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgStoreBlockList) XXX_DiscardUnknown()
func (*MsgStoreBlockList) XXX_Marshal ¶ added in v1.7.0
func (m *MsgStoreBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreBlockList) XXX_Merge ¶ added in v1.7.0
func (m *MsgStoreBlockList) XXX_Merge(src proto.Message)
func (*MsgStoreBlockList) XXX_Size ¶ added in v1.7.0
func (m *MsgStoreBlockList) XXX_Size() int
func (*MsgStoreBlockList) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgStoreBlockList) XXX_Unmarshal(b []byte) error
type MsgStoreBlockListResponse ¶ added in v1.7.0
type MsgStoreBlockListResponse struct {
}
MsgStoreBlockListResponse
func (*MsgStoreBlockListResponse) Descriptor ¶ added in v1.7.0
func (*MsgStoreBlockListResponse) Descriptor() ([]byte, []int)
func (*MsgStoreBlockListResponse) Marshal ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) Marshal() (dAtA []byte, err error)
func (*MsgStoreBlockListResponse) MarshalTo ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreBlockListResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreBlockListResponse) ProtoMessage ¶ added in v1.7.0
func (*MsgStoreBlockListResponse) ProtoMessage()
func (*MsgStoreBlockListResponse) Reset ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) Reset()
func (*MsgStoreBlockListResponse) Size ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) Size() (n int)
func (*MsgStoreBlockListResponse) String ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) String() string
func (*MsgStoreBlockListResponse) Unmarshal ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) Unmarshal(dAtA []byte) error
func (*MsgStoreBlockListResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) XXX_DiscardUnknown()
func (*MsgStoreBlockListResponse) XXX_Marshal ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreBlockListResponse) XXX_Merge ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) XXX_Merge(src proto.Message)
func (*MsgStoreBlockListResponse) XXX_Size ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) XXX_Size() int
func (*MsgStoreBlockListResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgStoreBlockListResponse) XXX_Unmarshal(b []byte) error
type MsgTransferTokens ¶ added in v0.6.1
type MsgTransferTokens struct {
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}
MsgTransferTokens represents a message to transfer cronos evm coins through ibc.
func NewMsgTransferTokens ¶ added in v0.6.1
func NewMsgTransferTokens(from, to string, coins sdk.Coins) *MsgTransferTokens
func (*MsgTransferTokens) Descriptor ¶ added in v0.6.1
func (*MsgTransferTokens) Descriptor() ([]byte, []int)
func (*MsgTransferTokens) GetCoins ¶ added in v0.6.1
func (m *MsgTransferTokens) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgTransferTokens) GetFrom ¶ added in v0.6.1
func (m *MsgTransferTokens) GetFrom() string
func (*MsgTransferTokens) GetTo ¶ added in v0.6.1
func (m *MsgTransferTokens) GetTo() string
func (*MsgTransferTokens) Marshal ¶ added in v0.6.1
func (m *MsgTransferTokens) Marshal() (dAtA []byte, err error)
func (*MsgTransferTokens) MarshalTo ¶ added in v0.6.1
func (m *MsgTransferTokens) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferTokens) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgTransferTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferTokens) ProtoMessage ¶ added in v0.6.1
func (*MsgTransferTokens) ProtoMessage()
func (*MsgTransferTokens) Reset ¶ added in v0.6.1
func (m *MsgTransferTokens) Reset()
func (*MsgTransferTokens) Size ¶ added in v0.6.1
func (m *MsgTransferTokens) Size() (n int)
func (*MsgTransferTokens) String ¶ added in v0.6.1
func (m *MsgTransferTokens) String() string
func (*MsgTransferTokens) Unmarshal ¶ added in v0.6.1
func (m *MsgTransferTokens) Unmarshal(dAtA []byte) error
func (*MsgTransferTokens) ValidateBasic ¶ added in v0.6.1
func (msg *MsgTransferTokens) ValidateBasic() error
ValidateBasic ...
func (*MsgTransferTokens) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgTransferTokens) XXX_DiscardUnknown()
func (*MsgTransferTokens) XXX_Marshal ¶ added in v0.6.1
func (m *MsgTransferTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferTokens) XXX_Merge ¶ added in v0.6.1
func (m *MsgTransferTokens) XXX_Merge(src proto.Message)
func (*MsgTransferTokens) XXX_Size ¶ added in v0.6.1
func (m *MsgTransferTokens) XXX_Size() int
func (*MsgTransferTokens) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgTransferTokens) XXX_Unmarshal(b []byte) error
type MsgTransferTokensResponse ¶ added in v0.6.1
type MsgTransferTokensResponse struct {
}
MsgTransferTokensResponse defines the TransferTokens response type.
func (*MsgTransferTokensResponse) Descriptor ¶ added in v0.6.1
func (*MsgTransferTokensResponse) Descriptor() ([]byte, []int)
func (*MsgTransferTokensResponse) Marshal ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferTokensResponse) MarshalTo ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferTokensResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferTokensResponse) ProtoMessage ¶ added in v0.6.1
func (*MsgTransferTokensResponse) ProtoMessage()
func (*MsgTransferTokensResponse) Reset ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) Reset()
func (*MsgTransferTokensResponse) Size ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) Size() (n int)
func (*MsgTransferTokensResponse) String ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) String() string
func (*MsgTransferTokensResponse) Unmarshal ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferTokensResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) XXX_DiscardUnknown()
func (*MsgTransferTokensResponse) XXX_Marshal ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferTokensResponse) XXX_Merge ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) XXX_Merge(src proto.Message)
func (*MsgTransferTokensResponse) XXX_Size ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) XXX_Size() int
func (*MsgTransferTokensResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgTransferTokensResponse) XXX_Unmarshal(b []byte) error
type MsgTurnBridge ¶ added in v1.7.0
type MsgTurnBridge struct {
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
}
MsgTurnBridge defines the request type
func NewMsgTurnBridge ¶ added in v1.7.0
func NewMsgTurnBridge(admin string, enable bool) *MsgTurnBridge
NewMsgTurnBridge ...
func (*MsgTurnBridge) Descriptor ¶ added in v1.7.0
func (*MsgTurnBridge) Descriptor() ([]byte, []int)
func (*MsgTurnBridge) GetEnable ¶ added in v1.7.0
func (m *MsgTurnBridge) GetEnable() bool
func (*MsgTurnBridge) GetSender ¶ added in v1.7.0
func (m *MsgTurnBridge) GetSender() string
func (*MsgTurnBridge) Marshal ¶ added in v1.7.0
func (m *MsgTurnBridge) Marshal() (dAtA []byte, err error)
func (*MsgTurnBridge) MarshalTo ¶ added in v1.7.0
func (m *MsgTurnBridge) MarshalTo(dAtA []byte) (int, error)
func (*MsgTurnBridge) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgTurnBridge) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTurnBridge) ProtoMessage ¶ added in v1.7.0
func (*MsgTurnBridge) ProtoMessage()
func (*MsgTurnBridge) Reset ¶ added in v1.7.0
func (m *MsgTurnBridge) Reset()
func (*MsgTurnBridge) Size ¶ added in v1.7.0
func (m *MsgTurnBridge) Size() (n int)
func (*MsgTurnBridge) String ¶ added in v1.7.0
func (m *MsgTurnBridge) String() string
func (*MsgTurnBridge) Unmarshal ¶ added in v1.7.0
func (m *MsgTurnBridge) Unmarshal(dAtA []byte) error
func (*MsgTurnBridge) ValidateBasic ¶ added in v1.7.0
func (msg *MsgTurnBridge) ValidateBasic() error
ValidateBasic ...
func (*MsgTurnBridge) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgTurnBridge) XXX_DiscardUnknown()
func (*MsgTurnBridge) XXX_Marshal ¶ added in v1.7.0
func (m *MsgTurnBridge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTurnBridge) XXX_Merge ¶ added in v1.7.0
func (m *MsgTurnBridge) XXX_Merge(src proto.Message)
func (*MsgTurnBridge) XXX_Size ¶ added in v1.7.0
func (m *MsgTurnBridge) XXX_Size() int
func (*MsgTurnBridge) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgTurnBridge) XXX_Unmarshal(b []byte) error
type MsgTurnBridgeResponse ¶ added in v1.7.0
type MsgTurnBridgeResponse struct {
}
MsgTurnBridgeResponse defines the response type
func (*MsgTurnBridgeResponse) Descriptor ¶ added in v1.7.0
func (*MsgTurnBridgeResponse) Descriptor() ([]byte, []int)
func (*MsgTurnBridgeResponse) Marshal ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) Marshal() (dAtA []byte, err error)
func (*MsgTurnBridgeResponse) MarshalTo ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTurnBridgeResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTurnBridgeResponse) ProtoMessage ¶ added in v1.7.0
func (*MsgTurnBridgeResponse) ProtoMessage()
func (*MsgTurnBridgeResponse) Reset ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) Reset()
func (*MsgTurnBridgeResponse) Size ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) Size() (n int)
func (*MsgTurnBridgeResponse) String ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) String() string
func (*MsgTurnBridgeResponse) Unmarshal ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) Unmarshal(dAtA []byte) error
func (*MsgTurnBridgeResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) XXX_DiscardUnknown()
func (*MsgTurnBridgeResponse) XXX_Marshal ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTurnBridgeResponse) XXX_Merge ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) XXX_Merge(src proto.Message)
func (*MsgTurnBridgeResponse) XXX_Size ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) XXX_Size() int
func (*MsgTurnBridgeResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgTurnBridgeResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v1.7.0
type MsgUpdateParams struct {
// authority is the address of the governance account.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
MsgUpdateParams defines the request type for updating cronos params.
func NewMsgUpdateParams ¶ added in v1.7.0
func NewMsgUpdateParams(authority string, params Params) *MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶ added in v1.7.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v1.7.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v1.7.0
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v1.7.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v1.7.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v1.7.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v1.7.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v1.7.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v1.7.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v1.7.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v1.7.0
func (msg *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v1.7.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v1.7.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v1.7.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.7.0
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the response type.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.7.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.7.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdatePermissions ¶ added in v1.7.0
type MsgUpdatePermissions struct {
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Permissions uint64 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
}
MsgUpdatePermissions defines the request type for updating cronos permissions.
func NewMsgUpdatePermissions ¶ added in v1.7.0
func NewMsgUpdatePermissions(from, address string, permissions uint64) *MsgUpdatePermissions
NewMsgUpdatePermissions ...
func (*MsgUpdatePermissions) Descriptor ¶ added in v1.7.0
func (*MsgUpdatePermissions) Descriptor() ([]byte, []int)
func (*MsgUpdatePermissions) GetAddress ¶ added in v1.7.0
func (m *MsgUpdatePermissions) GetAddress() string
func (*MsgUpdatePermissions) GetFrom ¶ added in v1.7.0
func (m *MsgUpdatePermissions) GetFrom() string
func (*MsgUpdatePermissions) GetPermissions ¶ added in v1.7.0
func (m *MsgUpdatePermissions) GetPermissions() uint64
func (*MsgUpdatePermissions) Marshal ¶ added in v1.7.0
func (m *MsgUpdatePermissions) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePermissions) MarshalTo ¶ added in v1.7.0
func (m *MsgUpdatePermissions) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePermissions) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgUpdatePermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePermissions) ProtoMessage ¶ added in v1.7.0
func (*MsgUpdatePermissions) ProtoMessage()
func (*MsgUpdatePermissions) Reset ¶ added in v1.7.0
func (m *MsgUpdatePermissions) Reset()
func (*MsgUpdatePermissions) Size ¶ added in v1.7.0
func (m *MsgUpdatePermissions) Size() (n int)
func (*MsgUpdatePermissions) String ¶ added in v1.7.0
func (m *MsgUpdatePermissions) String() string
func (*MsgUpdatePermissions) Unmarshal ¶ added in v1.7.0
func (m *MsgUpdatePermissions) Unmarshal(dAtA []byte) error
func (*MsgUpdatePermissions) ValidateBasic ¶ added in v1.7.0
func (msg *MsgUpdatePermissions) ValidateBasic() error
ValidateBasic ...
func (*MsgUpdatePermissions) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgUpdatePermissions) XXX_DiscardUnknown()
func (*MsgUpdatePermissions) XXX_Marshal ¶ added in v1.7.0
func (m *MsgUpdatePermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePermissions) XXX_Merge ¶ added in v1.7.0
func (m *MsgUpdatePermissions) XXX_Merge(src proto.Message)
func (*MsgUpdatePermissions) XXX_Size ¶ added in v1.7.0
func (m *MsgUpdatePermissions) XXX_Size() int
func (*MsgUpdatePermissions) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgUpdatePermissions) XXX_Unmarshal(b []byte) error
type MsgUpdatePermissionsResponse ¶ added in v1.7.0
type MsgUpdatePermissionsResponse struct {
}
MsgUpdatePermissionsResponse defines the response type.
func (*MsgUpdatePermissionsResponse) Descriptor ¶ added in v1.7.0
func (*MsgUpdatePermissionsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdatePermissionsResponse) Marshal ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdatePermissionsResponse) MarshalTo ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdatePermissionsResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdatePermissionsResponse) ProtoMessage ¶ added in v1.7.0
func (*MsgUpdatePermissionsResponse) ProtoMessage()
func (*MsgUpdatePermissionsResponse) Reset ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) Reset()
func (*MsgUpdatePermissionsResponse) Size ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) Size() (n int)
func (*MsgUpdatePermissionsResponse) String ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) String() string
func (*MsgUpdatePermissionsResponse) Unmarshal ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdatePermissionsResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) XXX_DiscardUnknown()
func (*MsgUpdatePermissionsResponse) XXX_Marshal ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdatePermissionsResponse) XXX_Merge ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdatePermissionsResponse) XXX_Size ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) XXX_Size() int
func (*MsgUpdatePermissionsResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgUpdatePermissionsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateTokenMapping ¶ added in v0.6.1
type MsgUpdateTokenMapping struct {
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
// only when updating cronos (source) tokens
Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
Decimal uint32 `protobuf:"varint,5,opt,name=decimal,proto3" json:"decimal,omitempty"`
}
MsgUpdateTokenMapping defines the request type
func NewMsgUpdateTokenMapping ¶ added in v0.6.1
func NewMsgUpdateTokenMapping(admin, denom, contract, symbol string, decimal uint32) *MsgUpdateTokenMapping
NewMsgUpdateTokenMapping ...
func (*MsgUpdateTokenMapping) Descriptor ¶ added in v0.6.1
func (*MsgUpdateTokenMapping) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenMapping) GetContract ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) GetContract() string
func (*MsgUpdateTokenMapping) GetDecimal ¶ added in v1.0.0
func (m *MsgUpdateTokenMapping) GetDecimal() uint32
func (*MsgUpdateTokenMapping) GetDenom ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) GetDenom() string
func (*MsgUpdateTokenMapping) GetSender ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) GetSender() string
func (*MsgUpdateTokenMapping) GetSigners ¶ added in v0.6.1
func (msg *MsgUpdateTokenMapping) GetSigners() []sdk.AccAddress
GetSigners ...
func (*MsgUpdateTokenMapping) GetSymbol ¶ added in v1.0.0
func (m *MsgUpdateTokenMapping) GetSymbol() string
func (*MsgUpdateTokenMapping) Marshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenMapping) MarshalTo ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenMapping) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenMapping) ProtoMessage ¶ added in v0.6.1
func (*MsgUpdateTokenMapping) ProtoMessage()
func (*MsgUpdateTokenMapping) Reset ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) Reset()
func (*MsgUpdateTokenMapping) Size ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) Size() (n int)
func (*MsgUpdateTokenMapping) String ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) String() string
func (MsgUpdateTokenMapping) Type ¶ added in v0.6.1
func (msg MsgUpdateTokenMapping) Type() string
Type ...
func (*MsgUpdateTokenMapping) Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenMapping) ValidateBasic ¶ added in v0.6.1
func (msg *MsgUpdateTokenMapping) ValidateBasic() error
ValidateBasic ...
func (*MsgUpdateTokenMapping) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) XXX_DiscardUnknown()
func (*MsgUpdateTokenMapping) XXX_Marshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenMapping) XXX_Merge ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenMapping) XXX_Size ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) XXX_Size() int
func (*MsgUpdateTokenMapping) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMapping) XXX_Unmarshal(b []byte) error
type MsgUpdateTokenMappingResponse ¶ added in v0.6.1
type MsgUpdateTokenMappingResponse struct {
}
MsgUpdateTokenMappingResponse defines the response type
func (*MsgUpdateTokenMappingResponse) Descriptor ¶ added in v0.6.1
func (*MsgUpdateTokenMappingResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenMappingResponse) Marshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenMappingResponse) MarshalTo ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenMappingResponse) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenMappingResponse) ProtoMessage ¶ added in v0.6.1
func (*MsgUpdateTokenMappingResponse) ProtoMessage()
func (*MsgUpdateTokenMappingResponse) Reset ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) Reset()
func (*MsgUpdateTokenMappingResponse) Size ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) Size() (n int)
func (*MsgUpdateTokenMappingResponse) String ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) String() string
func (*MsgUpdateTokenMappingResponse) Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenMappingResponse) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) XXX_DiscardUnknown()
func (*MsgUpdateTokenMappingResponse) XXX_Marshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenMappingResponse) XXX_Merge ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenMappingResponse) XXX_Size ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) XXX_Size() int
func (*MsgUpdateTokenMappingResponse) XXX_Unmarshal ¶ added in v0.6.1
func (m *MsgUpdateTokenMappingResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v0.6.1
type Params struct {
IbcCroDenom string `` /* 127-byte string literal not displayed */
IbcTimeout uint64 `protobuf:"varint,2,opt,name=ibc_timeout,json=ibcTimeout,proto3" json:"ibc_timeout,omitempty"`
// the admin address who can update token mapping
CronosAdmin string `protobuf:"bytes,3,opt,name=cronos_admin,json=cronosAdmin,proto3" json:"cronos_admin,omitempty"`
EnableAutoDeployment bool `protobuf:"varint,4,opt,name=enable_auto_deployment,json=enableAutoDeployment,proto3" json:"enable_auto_deployment,omitempty"`
MaxCallbackGas uint64 `protobuf:"varint,5,opt,name=max_callback_gas,json=maxCallbackGas,proto3" json:"max_callback_gas,omitempty"`
}
Params defines the parameters for the cronos module.
func DefaultParams ¶ added in v0.6.1
func DefaultParams() Params
DefaultParams is the default parameter configuration for the cronos module
func NewParams ¶ added in v0.6.1
func NewParams(ibcCroDenom string, ibcTimeout uint64, cronosAdmin string, enableAutoDeployment bool, maxCallbackGas uint64) Params
NewParams creates a new parameter configuration for the cronos module
func (*Params) Descriptor ¶ added in v0.6.1
func (*Params) GetCronosAdmin ¶ added in v0.6.1
func (*Params) GetEnableAutoDeployment ¶ added in v0.6.1
func (*Params) GetIbcCroDenom ¶ added in v0.6.1
func (*Params) GetIbcTimeout ¶ added in v0.6.1
func (*Params) GetMaxCallbackGas ¶ added in v1.7.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.6.1
func (*Params) ParamSetPairs ¶ added in v0.6.1
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶ added in v0.6.1
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.6.1
func (*Params) XXX_Unmarshal ¶ added in v0.6.1
type QueryBlockListRequest ¶ added in v1.7.0
type QueryBlockListRequest struct {
}
QueryBlockListRequest
func (*QueryBlockListRequest) Descriptor ¶ added in v1.7.0
func (*QueryBlockListRequest) Descriptor() ([]byte, []int)
func (*QueryBlockListRequest) Marshal ¶ added in v1.7.0
func (m *QueryBlockListRequest) Marshal() (dAtA []byte, err error)
func (*QueryBlockListRequest) MarshalTo ¶ added in v1.7.0
func (m *QueryBlockListRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBlockListRequest) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *QueryBlockListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBlockListRequest) ProtoMessage ¶ added in v1.7.0
func (*QueryBlockListRequest) ProtoMessage()
func (*QueryBlockListRequest) Reset ¶ added in v1.7.0
func (m *QueryBlockListRequest) Reset()
func (*QueryBlockListRequest) Size ¶ added in v1.7.0
func (m *QueryBlockListRequest) Size() (n int)
func (*QueryBlockListRequest) String ¶ added in v1.7.0
func (m *QueryBlockListRequest) String() string
func (*QueryBlockListRequest) Unmarshal ¶ added in v1.7.0
func (m *QueryBlockListRequest) Unmarshal(dAtA []byte) error
func (*QueryBlockListRequest) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryBlockListRequest) XXX_DiscardUnknown()
func (*QueryBlockListRequest) XXX_Marshal ¶ added in v1.7.0
func (m *QueryBlockListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBlockListRequest) XXX_Merge ¶ added in v1.7.0
func (m *QueryBlockListRequest) XXX_Merge(src proto.Message)
func (*QueryBlockListRequest) XXX_Size ¶ added in v1.7.0
func (m *QueryBlockListRequest) XXX_Size() int
func (*QueryBlockListRequest) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryBlockListRequest) XXX_Unmarshal(b []byte) error
type QueryBlockListResponse ¶ added in v1.7.0
type QueryBlockListResponse struct {
Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"`
}
QueryBlockListResponse
func (*QueryBlockListResponse) Descriptor ¶ added in v1.7.0
func (*QueryBlockListResponse) Descriptor() ([]byte, []int)
func (*QueryBlockListResponse) GetBlob ¶ added in v1.7.0
func (m *QueryBlockListResponse) GetBlob() []byte
func (*QueryBlockListResponse) Marshal ¶ added in v1.7.0
func (m *QueryBlockListResponse) Marshal() (dAtA []byte, err error)
func (*QueryBlockListResponse) MarshalTo ¶ added in v1.7.0
func (m *QueryBlockListResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBlockListResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *QueryBlockListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBlockListResponse) ProtoMessage ¶ added in v1.7.0
func (*QueryBlockListResponse) ProtoMessage()
func (*QueryBlockListResponse) Reset ¶ added in v1.7.0
func (m *QueryBlockListResponse) Reset()
func (*QueryBlockListResponse) Size ¶ added in v1.7.0
func (m *QueryBlockListResponse) Size() (n int)
func (*QueryBlockListResponse) String ¶ added in v1.7.0
func (m *QueryBlockListResponse) String() string
func (*QueryBlockListResponse) Unmarshal ¶ added in v1.7.0
func (m *QueryBlockListResponse) Unmarshal(dAtA []byte) error
func (*QueryBlockListResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryBlockListResponse) XXX_DiscardUnknown()
func (*QueryBlockListResponse) XXX_Marshal ¶ added in v1.7.0
func (m *QueryBlockListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBlockListResponse) XXX_Merge ¶ added in v1.7.0
func (m *QueryBlockListResponse) XXX_Merge(src proto.Message)
func (*QueryBlockListResponse) XXX_Size ¶ added in v1.7.0
func (m *QueryBlockListResponse) XXX_Size() int
func (*QueryBlockListResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryBlockListResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// ContractByDenom queries contract addresses by native denom from a query string.
ContractByDenom(ctx context.Context, in *ContractByDenomRequest, opts ...grpc.CallOption) (*ContractByDenomResponse, error)
// DenomByContract queries native denom by contract address
DenomByContract(ctx context.Context, in *DenomByContractRequest, opts ...grpc.CallOption) (*DenomByContractResponse, error)
// ReplayBlock replay the eth messages in the block to recover the results of
// false-failed txs.
ReplayBlock(ctx context.Context, in *ReplayBlockRequest, opts ...grpc.CallOption) (*ReplayBlockResponse, error)
// Params queries all parameters.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// Params queries permissions for a specific address..
Permissions(ctx context.Context, in *QueryPermissionsRequest, opts ...grpc.CallOption) (*QueryPermissionsResponse, error)
// BlockList
BlockList(ctx context.Context, in *QueryBlockListRequest, opts ...grpc.CallOption) (*QueryBlockListResponse, error)
}
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 QueryParamsRequest ¶ added in v1.7.0
type QueryParamsRequest struct {
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v1.7.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v1.7.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v1.7.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v1.7.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v1.7.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v1.7.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v1.7.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v1.7.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v1.7.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v1.7.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v1.7.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v1.7.0
type QueryParamsResponse struct {
// params defines the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v1.7.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v1.7.0
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v1.7.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v1.7.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v1.7.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v1.7.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v1.7.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v1.7.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v1.7.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v1.7.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v1.7.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v1.7.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPermissionsRequest ¶ added in v1.7.0
type QueryPermissionsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
QueryPermissionsRequest is the request type for the Query/Permissions RPC method.
func (*QueryPermissionsRequest) Descriptor ¶ added in v1.7.0
func (*QueryPermissionsRequest) Descriptor() ([]byte, []int)
func (*QueryPermissionsRequest) GetAddress ¶ added in v1.7.0
func (m *QueryPermissionsRequest) GetAddress() string
func (*QueryPermissionsRequest) Marshal ¶ added in v1.7.0
func (m *QueryPermissionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPermissionsRequest) MarshalTo ¶ added in v1.7.0
func (m *QueryPermissionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPermissionsRequest) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *QueryPermissionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPermissionsRequest) ProtoMessage ¶ added in v1.7.0
func (*QueryPermissionsRequest) ProtoMessage()
func (*QueryPermissionsRequest) Reset ¶ added in v1.7.0
func (m *QueryPermissionsRequest) Reset()
func (*QueryPermissionsRequest) Size ¶ added in v1.7.0
func (m *QueryPermissionsRequest) Size() (n int)
func (*QueryPermissionsRequest) String ¶ added in v1.7.0
func (m *QueryPermissionsRequest) String() string
func (*QueryPermissionsRequest) Unmarshal ¶ added in v1.7.0
func (m *QueryPermissionsRequest) Unmarshal(dAtA []byte) error
func (*QueryPermissionsRequest) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryPermissionsRequest) XXX_DiscardUnknown()
func (*QueryPermissionsRequest) XXX_Marshal ¶ added in v1.7.0
func (m *QueryPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPermissionsRequest) XXX_Merge ¶ added in v1.7.0
func (m *QueryPermissionsRequest) XXX_Merge(src proto.Message)
func (*QueryPermissionsRequest) XXX_Size ¶ added in v1.7.0
func (m *QueryPermissionsRequest) XXX_Size() int
func (*QueryPermissionsRequest) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryPermissionsRequest) XXX_Unmarshal(b []byte) error
type QueryPermissionsResponse ¶ added in v1.7.0
type QueryPermissionsResponse struct {
CanChangeTokenMapping bool `` /* 129-byte string literal not displayed */
CanTurnBridge bool `protobuf:"varint,2,opt,name=can_turn_bridge,json=canTurnBridge,proto3" json:"can_turn_bridge,omitempty"`
}
QueryPermissionsResponse is the response type for the Query/Permissions RPC method.
func (*QueryPermissionsResponse) Descriptor ¶ added in v1.7.0
func (*QueryPermissionsResponse) Descriptor() ([]byte, []int)
func (*QueryPermissionsResponse) GetCanChangeTokenMapping ¶ added in v1.7.0
func (m *QueryPermissionsResponse) GetCanChangeTokenMapping() bool
func (*QueryPermissionsResponse) GetCanTurnBridge ¶ added in v1.7.0
func (m *QueryPermissionsResponse) GetCanTurnBridge() bool
func (*QueryPermissionsResponse) Marshal ¶ added in v1.7.0
func (m *QueryPermissionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPermissionsResponse) MarshalTo ¶ added in v1.7.0
func (m *QueryPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPermissionsResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *QueryPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPermissionsResponse) ProtoMessage ¶ added in v1.7.0
func (*QueryPermissionsResponse) ProtoMessage()
func (*QueryPermissionsResponse) Reset ¶ added in v1.7.0
func (m *QueryPermissionsResponse) Reset()
func (*QueryPermissionsResponse) Size ¶ added in v1.7.0
func (m *QueryPermissionsResponse) Size() (n int)
func (*QueryPermissionsResponse) String ¶ added in v1.7.0
func (m *QueryPermissionsResponse) String() string
func (*QueryPermissionsResponse) Unmarshal ¶ added in v1.7.0
func (m *QueryPermissionsResponse) Unmarshal(dAtA []byte) error
func (*QueryPermissionsResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryPermissionsResponse) XXX_DiscardUnknown()
func (*QueryPermissionsResponse) XXX_Marshal ¶ added in v1.7.0
func (m *QueryPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPermissionsResponse) XXX_Merge ¶ added in v1.7.0
func (m *QueryPermissionsResponse) XXX_Merge(src proto.Message)
func (*QueryPermissionsResponse) XXX_Size ¶ added in v1.7.0
func (m *QueryPermissionsResponse) XXX_Size() int
func (*QueryPermissionsResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryPermissionsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// ContractByDenom queries contract addresses by native denom from a query string.
ContractByDenom(context.Context, *ContractByDenomRequest) (*ContractByDenomResponse, error)
// DenomByContract queries native denom by contract address
DenomByContract(context.Context, *DenomByContractRequest) (*DenomByContractResponse, error)
// ReplayBlock replay the eth messages in the block to recover the results of
// false-failed txs.
ReplayBlock(context.Context, *ReplayBlockRequest) (*ReplayBlockResponse, error)
// Params queries all parameters.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// Params queries permissions for a specific address..
Permissions(context.Context, *QueryPermissionsRequest) (*QueryPermissionsResponse, error)
// BlockList
BlockList(context.Context, *QueryBlockListRequest) (*QueryBlockListResponse, error)
}
QueryServer is the server API for Query service.
type ReplayBlockRequest ¶ added in v0.6.10
type ReplayBlockRequest struct {
// the eth messages in the block
Msgs []*types.MsgEthereumTx `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"`
BlockNumber int64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"`
BlockHash string `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
BlockTime time.Time `protobuf:"bytes,4,opt,name=block_time,json=blockTime,proto3,stdtime" json:"block_time"`
}
ReplayBlockRequest
func (*ReplayBlockRequest) Descriptor ¶ added in v0.6.10
func (*ReplayBlockRequest) Descriptor() ([]byte, []int)
func (*ReplayBlockRequest) Marshal ¶ added in v0.6.10
func (m *ReplayBlockRequest) Marshal() (dAtA []byte, err error)
func (*ReplayBlockRequest) MarshalTo ¶ added in v0.6.10
func (m *ReplayBlockRequest) MarshalTo(dAtA []byte) (int, error)
func (*ReplayBlockRequest) MarshalToSizedBuffer ¶ added in v0.6.10
func (m *ReplayBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReplayBlockRequest) ProtoMessage ¶ added in v0.6.10
func (*ReplayBlockRequest) ProtoMessage()
func (*ReplayBlockRequest) Reset ¶ added in v0.6.10
func (m *ReplayBlockRequest) Reset()
func (*ReplayBlockRequest) Size ¶ added in v0.6.10
func (m *ReplayBlockRequest) Size() (n int)
func (*ReplayBlockRequest) String ¶ added in v0.6.10
func (m *ReplayBlockRequest) String() string
func (*ReplayBlockRequest) Unmarshal ¶ added in v0.6.10
func (m *ReplayBlockRequest) Unmarshal(dAtA []byte) error
func (ReplayBlockRequest) UnpackInterfaces ¶ added in v0.6.10
func (m ReplayBlockRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*ReplayBlockRequest) XXX_DiscardUnknown ¶ added in v0.6.10
func (m *ReplayBlockRequest) XXX_DiscardUnknown()
func (*ReplayBlockRequest) XXX_Marshal ¶ added in v0.6.10
func (m *ReplayBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplayBlockRequest) XXX_Merge ¶ added in v0.6.10
func (m *ReplayBlockRequest) XXX_Merge(src proto.Message)
func (*ReplayBlockRequest) XXX_Size ¶ added in v0.6.10
func (m *ReplayBlockRequest) XXX_Size() int
func (*ReplayBlockRequest) XXX_Unmarshal ¶ added in v0.6.10
func (m *ReplayBlockRequest) XXX_Unmarshal(b []byte) error
type ReplayBlockResponse ¶ added in v0.6.10
type ReplayBlockResponse struct {
Responses []*types.MsgEthereumTxResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
}
ReplayBlockResponse
func (*ReplayBlockResponse) Descriptor ¶ added in v0.6.10
func (*ReplayBlockResponse) Descriptor() ([]byte, []int)
func (*ReplayBlockResponse) GetResponses ¶ added in v0.6.10
func (m *ReplayBlockResponse) GetResponses() []*types.MsgEthereumTxResponse
func (*ReplayBlockResponse) Marshal ¶ added in v0.6.10
func (m *ReplayBlockResponse) Marshal() (dAtA []byte, err error)
func (*ReplayBlockResponse) MarshalTo ¶ added in v0.6.10
func (m *ReplayBlockResponse) MarshalTo(dAtA []byte) (int, error)
func (*ReplayBlockResponse) MarshalToSizedBuffer ¶ added in v0.6.10
func (m *ReplayBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReplayBlockResponse) ProtoMessage ¶ added in v0.6.10
func (*ReplayBlockResponse) ProtoMessage()
func (*ReplayBlockResponse) Reset ¶ added in v0.6.10
func (m *ReplayBlockResponse) Reset()
func (*ReplayBlockResponse) Size ¶ added in v0.6.10
func (m *ReplayBlockResponse) Size() (n int)
func (*ReplayBlockResponse) String ¶ added in v0.6.10
func (m *ReplayBlockResponse) String() string
func (*ReplayBlockResponse) Unmarshal ¶ added in v0.6.10
func (m *ReplayBlockResponse) Unmarshal(dAtA []byte) error
func (*ReplayBlockResponse) XXX_DiscardUnknown ¶ added in v0.6.10
func (m *ReplayBlockResponse) XXX_DiscardUnknown()
func (*ReplayBlockResponse) XXX_Marshal ¶ added in v0.6.10
func (m *ReplayBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplayBlockResponse) XXX_Merge ¶ added in v0.6.10
func (m *ReplayBlockResponse) XXX_Merge(src proto.Message)
func (*ReplayBlockResponse) XXX_Size ¶ added in v0.6.10
func (m *ReplayBlockResponse) XXX_Size() int
func (*ReplayBlockResponse) XXX_Unmarshal ¶ added in v0.6.10
func (m *ReplayBlockResponse) XXX_Unmarshal(b []byte) error
type TokenMapping ¶ added in v0.6.1
type TokenMapping struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
}
TokenMapping defines a mapping between native denom and contract
func (*TokenMapping) Descriptor ¶ added in v0.6.1
func (*TokenMapping) Descriptor() ([]byte, []int)
func (*TokenMapping) GetContract ¶ added in v0.6.1
func (m *TokenMapping) GetContract() string
func (*TokenMapping) GetDenom ¶ added in v0.6.1
func (m *TokenMapping) GetDenom() string
func (*TokenMapping) Marshal ¶ added in v0.6.1
func (m *TokenMapping) Marshal() (dAtA []byte, err error)
func (*TokenMapping) MarshalTo ¶ added in v0.6.1
func (m *TokenMapping) MarshalTo(dAtA []byte) (int, error)
func (*TokenMapping) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *TokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenMapping) ProtoMessage ¶ added in v0.6.1
func (*TokenMapping) ProtoMessage()
func (*TokenMapping) Reset ¶ added in v0.6.1
func (m *TokenMapping) Reset()
func (*TokenMapping) Size ¶ added in v0.6.1
func (m *TokenMapping) Size() (n int)
func (*TokenMapping) String ¶ added in v0.6.1
func (m *TokenMapping) String() string
func (*TokenMapping) Unmarshal ¶ added in v0.6.1
func (m *TokenMapping) Unmarshal(dAtA []byte) error
func (*TokenMapping) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *TokenMapping) XXX_DiscardUnknown()
func (*TokenMapping) XXX_Marshal ¶ added in v0.6.1
func (m *TokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenMapping) XXX_Merge ¶ added in v0.6.1
func (m *TokenMapping) XXX_Merge(src proto.Message)
func (*TokenMapping) XXX_Size ¶ added in v0.6.1
func (m *TokenMapping) XXX_Size() int
func (*TokenMapping) XXX_Unmarshal ¶ added in v0.6.1
func (m *TokenMapping) XXX_Unmarshal(b []byte) error
type TokenMappingChangeProposal ¶ added in v0.6.1
type TokenMappingChangeProposal struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
// only when updating cronos (source) tokens
Symbol string `protobuf:"bytes,5,opt,name=symbol,proto3" json:"symbol,omitempty"`
Decimal uint32 `protobuf:"varint,6,opt,name=decimal,proto3" json:"decimal,omitempty"`
}
TokenMappingChangeProposal defines a proposal to change one token mapping.
func NewTokenMappingChangeProposal ¶ added in v0.6.1
func NewTokenMappingChangeProposal(title, description, denom, symbol string, decimal uint32, contractAddr *common.Address) *TokenMappingChangeProposal
func (*TokenMappingChangeProposal) Descriptor ¶ added in v0.6.1
func (*TokenMappingChangeProposal) Descriptor() ([]byte, []int)
func (*TokenMappingChangeProposal) GetDescription ¶ added in v0.6.1
func (tcp *TokenMappingChangeProposal) GetDescription() string
GetDescription returns the description of a parameter change proposal.
func (*TokenMappingChangeProposal) GetTitle ¶ added in v0.6.1
func (tcp *TokenMappingChangeProposal) GetTitle() string
GetTitle returns the title of a parameter change proposal.
func (*TokenMappingChangeProposal) Marshal ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) Marshal() (dAtA []byte, err error)
func (*TokenMappingChangeProposal) MarshalTo ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) MarshalTo(dAtA []byte) (int, error)
func (*TokenMappingChangeProposal) MarshalToSizedBuffer ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenMappingChangeProposal) ProposalRoute ¶ added in v0.6.1
func (tcp *TokenMappingChangeProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (*TokenMappingChangeProposal) ProposalType ¶ added in v0.6.1
func (tcp *TokenMappingChangeProposal) ProposalType() string
ProposalType returns the type of a parameter change proposal.
func (*TokenMappingChangeProposal) ProtoMessage ¶ added in v0.6.1
func (*TokenMappingChangeProposal) ProtoMessage()
func (*TokenMappingChangeProposal) Reset ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) Reset()
func (*TokenMappingChangeProposal) Size ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) Size() (n int)
func (TokenMappingChangeProposal) String ¶ added in v0.6.1
func (tcp TokenMappingChangeProposal) String() string
String implements the Stringer interface.
func (*TokenMappingChangeProposal) Unmarshal ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) Unmarshal(dAtA []byte) error
func (*TokenMappingChangeProposal) ValidateBasic ¶ added in v0.6.1
func (tcp *TokenMappingChangeProposal) ValidateBasic() error
ValidateBasic validates the parameter change proposal
func (*TokenMappingChangeProposal) XXX_DiscardUnknown ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) XXX_DiscardUnknown()
func (*TokenMappingChangeProposal) XXX_Marshal ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenMappingChangeProposal) XXX_Merge ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) XXX_Merge(src proto.Message)
func (*TokenMappingChangeProposal) XXX_Size ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) XXX_Size() int
func (*TokenMappingChangeProposal) XXX_Unmarshal ¶ added in v0.6.1
func (m *TokenMappingChangeProposal) XXX_Unmarshal(b []byte) error
type TransferKeeper ¶ added in v0.6.1
type TransferKeeper interface {
Transfer(goCtx context.Context, msg *types.MsgTransfer) (*types.MsgTransferResponse, error)
GetDenom(ctx sdk.Context, denomTraceHash tmbytes.HexBytes) (types.Denom, bool)
}
TransferKeeper defines the expected interface needed to transfer coin through IBC.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ConvertVouchers ¶ added in v0.6.1
func (*UnimplementedMsgServer) ConvertVouchers(ctx context.Context, req *MsgConvertVouchers) (*MsgConvertVouchersResponse, error)
func (*UnimplementedMsgServer) StoreBlockList ¶ added in v1.7.0
func (*UnimplementedMsgServer) StoreBlockList(ctx context.Context, req *MsgStoreBlockList) (*MsgStoreBlockListResponse, error)
func (*UnimplementedMsgServer) TransferTokens ¶ added in v0.6.1
func (*UnimplementedMsgServer) TransferTokens(ctx context.Context, req *MsgTransferTokens) (*MsgTransferTokensResponse, error)
func (*UnimplementedMsgServer) TurnBridge ¶ added in v1.7.0
func (*UnimplementedMsgServer) TurnBridge(ctx context.Context, req *MsgTurnBridge) (*MsgTurnBridgeResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.7.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpdatePermissions ¶ added in v1.7.0
func (*UnimplementedMsgServer) UpdatePermissions(ctx context.Context, req *MsgUpdatePermissions) (*MsgUpdatePermissionsResponse, error)
func (*UnimplementedMsgServer) UpdateTokenMapping ¶ added in v0.6.1
func (*UnimplementedMsgServer) UpdateTokenMapping(ctx context.Context, req *MsgUpdateTokenMapping) (*MsgUpdateTokenMappingResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) BlockList ¶ added in v1.7.0
func (*UnimplementedQueryServer) BlockList(ctx context.Context, req *QueryBlockListRequest) (*QueryBlockListResponse, error)
func (*UnimplementedQueryServer) ContractByDenom ¶ added in v0.6.1
func (*UnimplementedQueryServer) ContractByDenom(ctx context.Context, req *ContractByDenomRequest) (*ContractByDenomResponse, error)
func (*UnimplementedQueryServer) DenomByContract ¶ added in v0.6.1
func (*UnimplementedQueryServer) DenomByContract(ctx context.Context, req *DenomByContractRequest) (*DenomByContractResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v1.7.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Permissions ¶ added in v1.7.0
func (*UnimplementedQueryServer) Permissions(ctx context.Context, req *QueryPermissionsRequest) (*QueryPermissionsResponse, error)
func (*UnimplementedQueryServer) ReplayBlock ¶ added in v0.6.10
func (*UnimplementedQueryServer) ReplayBlock(ctx context.Context, req *ReplayBlockRequest) (*ReplayBlockResponse, error)