Versions in this module Expand all Collapse all v1 v1.46.6 May 5, 2023 Changes in this version + const AttributeKeyAddress + const AttributeKeyAmount + const AttributeKeyBurnEthAddress + const AttributeKeyContractAddress + const AttributeKeyProposedCosmosCoin + const AttributeKeyRecipientCosmosAddress + const EventTypeBurn + const EventTypeTemplateCreation + const ModuleName + const ProposalTypeRegisterTokenMapping + const ProposalTypeResetHub + const RouterKey + const StoreKey + const TypeMsgMint + var DefaultGasLimit = uint64(100_000_000) + var ErrHubAlreadySet = sdkerrors.Register(ModuleName, 7, "hub already set") + var ErrInitHubABI = sdkerrors.Register(ModuleName, 5, "init hub abi error") + var ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInternalEthMinting = sdkerrors.Register(ModuleName, 4, "internal ethereum minting error") + var ErrInvalidErc20Address = sdkerrors.Register(ModuleName, 1, "invalid erc20 address") + var ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNotAllowedBridge = sdkerrors.Register(ModuleName, 3, "not allowed bridge") + var ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ErrUnmatchingCosmosDenom = sdkerrors.Register(ModuleName, 2, "unmatching cosmos denom") + var ErrWritingEthTxPayload = sdkerrors.Register(ModuleName, 6, "writing ethereum tx payload error") + var ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) + var ParamStoreKeyHubParams = []byte("hubparams") + func NewRegisterTokenMappingProposal(title, description string, mapping TokenMapping) gov.Content + func NewResetHubProposal(title, description string, hub string) gov.Content + func ParamKeyTable() paramtypes.KeyTable + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + 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 HubParams struct + HubAddress string + func (*HubParams) Descriptor() ([]byte, []int) + func (*HubParams) ProtoMessage() + func (m *HubParams) GetHubAddress() string + func (m *HubParams) Marshal() (dAtA []byte, err error) + func (m *HubParams) MarshalTo(dAtA []byte) (int, error) + func (m *HubParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *HubParams) Reset() + func (m *HubParams) Size() (n int) + func (m *HubParams) String() string + func (m *HubParams) Unmarshal(dAtA []byte) error + func (m *HubParams) XXX_DiscardUnknown() + func (m *HubParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *HubParams) XXX_Merge(src proto.Message) + func (m *HubParams) XXX_Size() int + func (m *HubParams) XXX_Unmarshal(b []byte) error + type MsgERC20BridgeMint struct + Address string + Amount string + MappingId string + Proposer github_com_cosmos_cosmos_sdk_types.AccAddress + func NewMsgERC20BridgeMint(mapping string, amount string, address string, proposer sdk.AccAddress) *MsgERC20BridgeMint + func (*MsgERC20BridgeMint) Descriptor() ([]byte, []int) + func (*MsgERC20BridgeMint) ProtoMessage() + func (m *MsgERC20BridgeMint) GetAddress() string + func (m *MsgERC20BridgeMint) GetAmount() string + func (m *MsgERC20BridgeMint) GetMappingId() string + func (m *MsgERC20BridgeMint) GetProposer() github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *MsgERC20BridgeMint) Marshal() (dAtA []byte, err error) + func (m *MsgERC20BridgeMint) MarshalTo(dAtA []byte) (int, error) + func (m *MsgERC20BridgeMint) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgERC20BridgeMint) Reset() + func (m *MsgERC20BridgeMint) Size() (n int) + func (m *MsgERC20BridgeMint) String() string + func (m *MsgERC20BridgeMint) Unmarshal(dAtA []byte) error + func (m *MsgERC20BridgeMint) XXX_DiscardUnknown() + func (m *MsgERC20BridgeMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgERC20BridgeMint) XXX_Merge(src proto.Message) + func (m *MsgERC20BridgeMint) XXX_Size() int + func (m *MsgERC20BridgeMint) XXX_Unmarshal(b []byte) error + func (msg *MsgERC20BridgeMint) GetSignBytes() []byte + func (msg MsgERC20BridgeMint) GetSigners() []sdk.AccAddress + func (msg MsgERC20BridgeMint) Route() string + func (msg MsgERC20BridgeMint) Type() string + func (msg MsgERC20BridgeMint) ValidateBasic() error + type MsgInitHub struct + HubAddress string + Proposer github_com_cosmos_cosmos_sdk_types.AccAddress + func NewMsgInitHub(hub string, proposer sdk.AccAddress) *MsgInitHub + func (*MsgInitHub) Descriptor() ([]byte, []int) + func (*MsgInitHub) ProtoMessage() + func (m *MsgInitHub) GetHubAddress() string + func (m *MsgInitHub) GetProposer() github_com_cosmos_cosmos_sdk_types.AccAddress + func (m *MsgInitHub) Marshal() (dAtA []byte, err error) + func (m *MsgInitHub) MarshalTo(dAtA []byte) (int, error) + func (m *MsgInitHub) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgInitHub) Reset() + func (m *MsgInitHub) Size() (n int) + func (m *MsgInitHub) String() string + func (m *MsgInitHub) Unmarshal(dAtA []byte) error + func (m *MsgInitHub) XXX_DiscardUnknown() + func (m *MsgInitHub) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgInitHub) XXX_Merge(src proto.Message) + func (m *MsgInitHub) XXX_Size() int + func (m *MsgInitHub) XXX_Unmarshal(b []byte) error + func (msg *MsgInitHub) GetSignBytes() []byte + func (msg MsgInitHub) GetSigners() []sdk.AccAddress + func (msg MsgInitHub) Route() string + func (msg MsgInitHub) Type() string + func (msg MsgInitHub) ValidateBasic() error + type Params struct + HubParams HubParams + func NewParams(hp HubParams) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetHubParams() HubParams + 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 (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) String() string + func (m *Params) Unmarshal(dAtA []byte) 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 + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + type QueryBridgesRequest struct + func (*QueryBridgesRequest) Descriptor() ([]byte, []int) + func (*QueryBridgesRequest) ProtoMessage() + func (m *QueryBridgesRequest) Marshal() (dAtA []byte, err error) + func (m *QueryBridgesRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryBridgesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryBridgesRequest) Reset() + func (m *QueryBridgesRequest) Size() (n int) + func (m *QueryBridgesRequest) String() string + func (m *QueryBridgesRequest) Unmarshal(dAtA []byte) error + func (m *QueryBridgesRequest) XXX_DiscardUnknown() + func (m *QueryBridgesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryBridgesRequest) XXX_Merge(src proto.Message) + func (m *QueryBridgesRequest) XXX_Size() int + func (m *QueryBridgesRequest) XXX_Unmarshal(b []byte) error + type QueryBridgesResponse struct + Data []TokenMapping + func (*QueryBridgesResponse) Descriptor() ([]byte, []int) + func (*QueryBridgesResponse) ProtoMessage() + func (m *QueryBridgesResponse) GetData() []TokenMapping + func (m *QueryBridgesResponse) Marshal() (dAtA []byte, err error) + func (m *QueryBridgesResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryBridgesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryBridgesResponse) Reset() + func (m *QueryBridgesResponse) Size() (n int) + func (m *QueryBridgesResponse) String() string + func (m *QueryBridgesResponse) Unmarshal(dAtA []byte) error + func (m *QueryBridgesResponse) XXX_DiscardUnknown() + func (m *QueryBridgesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryBridgesResponse) XXX_Merge(src proto.Message) + func (m *QueryBridgesResponse) XXX_Size() int + func (m *QueryBridgesResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + Bridges func(ctx context.Context, in *QueryBridgesRequest, opts ...grpc.CallOption) (*QueryBridgesResponse, error) + HubParams func(ctx context.Context, in *QueryHubParamsRequest, opts ...grpc.CallOption) (*QueryHubParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryHubParamsRequest struct + func (*QueryHubParamsRequest) Descriptor() ([]byte, []int) + func (*QueryHubParamsRequest) ProtoMessage() + func (m *QueryHubParamsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryHubParamsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryHubParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryHubParamsRequest) Reset() + func (m *QueryHubParamsRequest) Size() (n int) + func (m *QueryHubParamsRequest) String() string + func (m *QueryHubParamsRequest) Unmarshal(dAtA []byte) error + func (m *QueryHubParamsRequest) XXX_DiscardUnknown() + func (m *QueryHubParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryHubParamsRequest) XXX_Merge(src proto.Message) + func (m *QueryHubParamsRequest) XXX_Size() int + func (m *QueryHubParamsRequest) XXX_Unmarshal(b []byte) error + type QueryHubParamsResponse struct + Data HubParams + func (*QueryHubParamsResponse) Descriptor() ([]byte, []int) + func (*QueryHubParamsResponse) ProtoMessage() + func (m *QueryHubParamsResponse) GetData() HubParams + func (m *QueryHubParamsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryHubParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryHubParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryHubParamsResponse) Reset() + func (m *QueryHubParamsResponse) Size() (n int) + func (m *QueryHubParamsResponse) String() string + func (m *QueryHubParamsResponse) Unmarshal(dAtA []byte) error + func (m *QueryHubParamsResponse) XXX_DiscardUnknown() + func (m *QueryHubParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryHubParamsResponse) XXX_Merge(src proto.Message) + func (m *QueryHubParamsResponse) XXX_Size() int + func (m *QueryHubParamsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Bridges func(context.Context, *QueryBridgesRequest) (*QueryBridgesResponse, error) + HubParams func(context.Context, *QueryHubParamsRequest) (*QueryHubParamsResponse, error) + type RegisterTokenMappingProposal struct + Description string + Mapping TokenMapping + Title string + func (*RegisterTokenMappingProposal) Descriptor() ([]byte, []int) + func (*RegisterTokenMappingProposal) ProtoMessage() + func (m *RegisterTokenMappingProposal) GetDescription() string + func (m *RegisterTokenMappingProposal) GetMapping() TokenMapping + func (m *RegisterTokenMappingProposal) GetTitle() string + func (m *RegisterTokenMappingProposal) Marshal() (dAtA []byte, err error) + func (m *RegisterTokenMappingProposal) MarshalTo(dAtA []byte) (int, error) + func (m *RegisterTokenMappingProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RegisterTokenMappingProposal) Reset() + func (m *RegisterTokenMappingProposal) Size() (n int) + func (m *RegisterTokenMappingProposal) String() string + func (m *RegisterTokenMappingProposal) Unmarshal(dAtA []byte) error + func (m *RegisterTokenMappingProposal) XXX_DiscardUnknown() + func (m *RegisterTokenMappingProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RegisterTokenMappingProposal) XXX_Merge(src proto.Message) + func (m *RegisterTokenMappingProposal) XXX_Size() int + func (m *RegisterTokenMappingProposal) XXX_Unmarshal(b []byte) error + func (sup *RegisterTokenMappingProposal) ProposalRoute() string + func (sup *RegisterTokenMappingProposal) ProposalType() string + func (sup *RegisterTokenMappingProposal) ValidateBasic() error + func (this *RegisterTokenMappingProposal) Equal(that interface{}) bool + type ResetHubProposal struct + Description string + HubAddress string + Title string + func (*ResetHubProposal) Descriptor() ([]byte, []int) + func (*ResetHubProposal) ProtoMessage() + func (m *ResetHubProposal) GetDescription() string + func (m *ResetHubProposal) GetHubAddress() string + func (m *ResetHubProposal) GetTitle() string + func (m *ResetHubProposal) Marshal() (dAtA []byte, err error) + func (m *ResetHubProposal) MarshalTo(dAtA []byte) (int, error) + func (m *ResetHubProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ResetHubProposal) Reset() + func (m *ResetHubProposal) Size() (n int) + func (m *ResetHubProposal) String() string + func (m *ResetHubProposal) Unmarshal(dAtA []byte) error + func (m *ResetHubProposal) XXX_DiscardUnknown() + func (m *ResetHubProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ResetHubProposal) XXX_Merge(src proto.Message) + func (m *ResetHubProposal) XXX_Size() int + func (m *ResetHubProposal) XXX_Unmarshal(b []byte) error + func (rh *ResetHubProposal) ProposalRoute() string + func (rh *ResetHubProposal) ProposalType() string + func (rh *ResetHubProposal) ValidateBasic() error + func (this *ResetHubProposal) Equal(that interface{}) bool + type TokenMapping struct + CosmosDenom string + Enabled bool + Erc20Address string + Name string + func NewTokenMapping(name string, erc20Address string, cosmosDenom string, enabled bool) TokenMapping + func (*TokenMapping) Descriptor() ([]byte, []int) + func (*TokenMapping) ProtoMessage() + func (m *TokenMapping) GetCosmosDenom() string + func (m *TokenMapping) GetEnabled() bool + func (m *TokenMapping) GetErc20Address() string + func (m *TokenMapping) GetName() 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 (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 + func (this *TokenMapping) Equal(that interface{}) bool + func (v TokenMapping) ValidateBasic() error + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Bridges(ctx context.Context, req *QueryBridgesRequest) (*QueryBridgesResponse, error) + func (*UnimplementedQueryServer) HubParams(ctx context.Context, req *QueryHubParamsRequest) (*QueryHubParamsResponse, error)