Versions in this module Expand all Collapse all v0 v0.0.2 Sep 4, 2024 Changes in this version + const BaseDenomUnit + const DefaultGasPrice + const DefaultRPCGasLimit + const RootCodespace + const RouterCoin + var BIP44HDPath = ethaccounts.DefaultBaseDerivationPath.String() + var Bip44CoinType uint32 = 60 + var ErrIntOverflowTxExt = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTxResponse = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTxService = fmt.Errorf("proto: integer overflow") + var ErrInvalidChainID = errorsmod.Register(RootCodespace, 3, "invalid chain ID") + var ErrInvalidLengthTxExt = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTxResponse = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTxService = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidValue = errorsmod.Register(RootCodespace, 2, "invalid value") + var ErrUnexpectedEndOfGroupTxExt = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTxResponse = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTxService = fmt.Errorf("proto: unexpected end of group") + var ErrVMExecution = errorsmod.Register(RootCodespace, 4, "error while executing evm transaction") + var MiddlewareContractType_name = map[int32]string + var MiddlewareContractType_value = map[string]int32 + var PowerReduction = sdkmath.NewIntFromBigInt(new(big.Int).Exp(big.NewInt(10), big.NewInt(BaseDenomUnit), nil)) + func GenerateRandomChainID() string + func IsValidChainID(chainID string) bool + func NewRouterCoin(amount sdkmath.Int) sdk.Coin + func NewRouterCoinInt64(amount int64) sdk.Coin + func NewRouterDecCoin(amount sdkmath.Int) sdk.DecCoin + func ParseChainID(chainID string) (*big.Int, error) + func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux) + func RegisterRouterTxRpcHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterRouterTxRpcHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RouterTxRpcClient) error + func RegisterRouterTxRpcHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterRouterTxRpcHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RouterTxRpcServer) error + func RegisterRouterTxRpcServer(s grpc1.Server, srv RouterTxRpcServer) + func RegisterRouterTxService(qrt gogogrpc.Server, clientCtx client.Context, simulateFn baseAppSimulateFn, ...) + type BroadcastTxRequest struct + ChainId uint64 + FeePayer string + FeePayerSig string + Mode string + Msgs [][]byte + PubKey *CosmosPubKey + Signature string + Tx []byte + func (*BroadcastTxRequest) Descriptor() ([]byte, []int) + func (*BroadcastTxRequest) ProtoMessage() + func (m *BroadcastTxRequest) GetChainId() uint64 + func (m *BroadcastTxRequest) GetFeePayer() string + func (m *BroadcastTxRequest) GetFeePayerSig() string + func (m *BroadcastTxRequest) GetMode() string + func (m *BroadcastTxRequest) GetMsgs() [][]byte + func (m *BroadcastTxRequest) GetPubKey() *CosmosPubKey + func (m *BroadcastTxRequest) GetSignature() string + func (m *BroadcastTxRequest) GetTx() []byte + func (m *BroadcastTxRequest) Marshal() (dAtA []byte, err error) + func (m *BroadcastTxRequest) MarshalTo(dAtA []byte) (int, error) + func (m *BroadcastTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BroadcastTxRequest) Reset() + func (m *BroadcastTxRequest) Size() (n int) + func (m *BroadcastTxRequest) String() string + func (m *BroadcastTxRequest) Unmarshal(dAtA []byte) error + func (m *BroadcastTxRequest) XXX_DiscardUnknown() + func (m *BroadcastTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BroadcastTxRequest) XXX_Merge(src proto.Message) + func (m *BroadcastTxRequest) XXX_Size() int + func (m *BroadcastTxRequest) XXX_Unmarshal(b []byte) error + type BroadcastTxResponse struct + Code uint32 + Codespace string + Data []byte + Height int64 + Index uint32 + RawLog string + Timestamp string + TxHash string + func (*BroadcastTxResponse) Descriptor() ([]byte, []int) + func (*BroadcastTxResponse) ProtoMessage() + func (m *BroadcastTxResponse) GetCode() uint32 + func (m *BroadcastTxResponse) GetCodespace() string + func (m *BroadcastTxResponse) GetData() []byte + func (m *BroadcastTxResponse) GetHeight() int64 + func (m *BroadcastTxResponse) GetIndex() uint32 + func (m *BroadcastTxResponse) GetRawLog() string + func (m *BroadcastTxResponse) GetTimestamp() string + func (m *BroadcastTxResponse) GetTxHash() string + func (m *BroadcastTxResponse) Marshal() (dAtA []byte, err error) + func (m *BroadcastTxResponse) MarshalTo(dAtA []byte) (int, error) + func (m *BroadcastTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *BroadcastTxResponse) Reset() + func (m *BroadcastTxResponse) Size() (n int) + func (m *BroadcastTxResponse) String() string + func (m *BroadcastTxResponse) Unmarshal(dAtA []byte) error + func (m *BroadcastTxResponse) XXX_DiscardUnknown() + func (m *BroadcastTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BroadcastTxResponse) XXX_Merge(src proto.Message) + func (m *BroadcastTxResponse) XXX_Size() int + func (m *BroadcastTxResponse) XXX_Unmarshal(b []byte) error + type CosmosCoin struct + Amount string + Denom string + func (*CosmosCoin) Descriptor() ([]byte, []int) + func (*CosmosCoin) ProtoMessage() + func (m *CosmosCoin) GetAmount() string + func (m *CosmosCoin) GetDenom() string + func (m *CosmosCoin) Marshal() (dAtA []byte, err error) + func (m *CosmosCoin) MarshalTo(dAtA []byte) (int, error) + func (m *CosmosCoin) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CosmosCoin) Reset() + func (m *CosmosCoin) Size() (n int) + func (m *CosmosCoin) String() string + func (m *CosmosCoin) Unmarshal(dAtA []byte) error + func (m *CosmosCoin) XXX_DiscardUnknown() + func (m *CosmosCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CosmosCoin) XXX_Merge(src proto.Message) + func (m *CosmosCoin) XXX_Size() int + func (m *CosmosCoin) XXX_Unmarshal(b []byte) error + type CosmosPubKey struct + Key string + Type string + func (*CosmosPubKey) Descriptor() ([]byte, []int) + func (*CosmosPubKey) ProtoMessage() + func (m *CosmosPubKey) GetKey() string + func (m *CosmosPubKey) GetType() string + func (m *CosmosPubKey) Marshal() (dAtA []byte, err error) + func (m *CosmosPubKey) MarshalTo(dAtA []byte) (int, error) + func (m *CosmosPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CosmosPubKey) Reset() + func (m *CosmosPubKey) Size() (n int) + func (m *CosmosPubKey) String() string + func (m *CosmosPubKey) Unmarshal(dAtA []byte) error + func (m *CosmosPubKey) XXX_DiscardUnknown() + func (m *CosmosPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CosmosPubKey) XXX_Merge(src proto.Message) + func (m *CosmosPubKey) XXX_Size() int + func (m *CosmosPubKey) XXX_Unmarshal(b []byte) error + type CosmosTxFee struct + DelegateFee bool + Gas uint64 + Price []*CosmosCoin + func (*CosmosTxFee) Descriptor() ([]byte, []int) + func (*CosmosTxFee) ProtoMessage() + func (m *CosmosTxFee) GetDelegateFee() bool + func (m *CosmosTxFee) GetGas() uint64 + func (m *CosmosTxFee) GetPrice() []*CosmosCoin + func (m *CosmosTxFee) Marshal() (dAtA []byte, err error) + func (m *CosmosTxFee) MarshalTo(dAtA []byte) (int, error) + func (m *CosmosTxFee) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CosmosTxFee) Reset() + func (m *CosmosTxFee) Size() (n int) + func (m *CosmosTxFee) String() string + func (m *CosmosTxFee) Unmarshal(dAtA []byte) error + func (m *CosmosTxFee) XXX_DiscardUnknown() + func (m *CosmosTxFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CosmosTxFee) XXX_Merge(src proto.Message) + func (m *CosmosTxFee) XXX_Size() int + func (m *CosmosTxFee) XXX_Unmarshal(b []byte) error + type ExtensionOptionsWeb3Tx struct + FeePayer string + FeePayerSig []byte + TypedDataChainID uint64 + func (*ExtensionOptionsWeb3Tx) Descriptor() ([]byte, []int) + func (*ExtensionOptionsWeb3Tx) ProtoMessage() + func (m *ExtensionOptionsWeb3Tx) Marshal() (dAtA []byte, err error) + func (m *ExtensionOptionsWeb3Tx) MarshalTo(dAtA []byte) (int, error) + func (m *ExtensionOptionsWeb3Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ExtensionOptionsWeb3Tx) Reset() + func (m *ExtensionOptionsWeb3Tx) Size() (n int) + func (m *ExtensionOptionsWeb3Tx) String() string + func (m *ExtensionOptionsWeb3Tx) Unmarshal(dAtA []byte) error + func (m *ExtensionOptionsWeb3Tx) XXX_DiscardUnknown() + func (m *ExtensionOptionsWeb3Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ExtensionOptionsWeb3Tx) XXX_Merge(src proto.Message) + func (m *ExtensionOptionsWeb3Tx) XXX_Size() int + func (m *ExtensionOptionsWeb3Tx) XXX_Unmarshal(b []byte) error + type GetTxRequest struct + Hash string + func (*GetTxRequest) Descriptor() ([]byte, []int) + func (*GetTxRequest) ProtoMessage() + func (m *GetTxRequest) GetHash() string + func (m *GetTxRequest) Marshal() (dAtA []byte, err error) + func (m *GetTxRequest) MarshalTo(dAtA []byte) (int, error) + func (m *GetTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetTxRequest) Reset() + func (m *GetTxRequest) Size() (n int) + func (m *GetTxRequest) String() string + func (m *GetTxRequest) Unmarshal(dAtA []byte) error + func (m *GetTxRequest) XXX_DiscardUnknown() + func (m *GetTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetTxRequest) XXX_Merge(src proto.Message) + func (m *GetTxRequest) XXX_Size() int + func (m *GetTxRequest) XXX_Unmarshal(b []byte) error + type GetTxResponse struct + Code uint32 + Codespace string + Data []byte + Height int64 + Index uint32 + RawLog string + Timestamp string + TxHash string + func (*GetTxResponse) Descriptor() ([]byte, []int) + func (*GetTxResponse) ProtoMessage() + func (m *GetTxResponse) GetCode() uint32 + func (m *GetTxResponse) GetCodespace() string + func (m *GetTxResponse) GetData() []byte + func (m *GetTxResponse) GetHeight() int64 + func (m *GetTxResponse) GetIndex() uint32 + func (m *GetTxResponse) GetRawLog() string + func (m *GetTxResponse) GetTimestamp() string + func (m *GetTxResponse) GetTxHash() string + func (m *GetTxResponse) Marshal() (dAtA []byte, err error) + func (m *GetTxResponse) MarshalTo(dAtA []byte) (int, error) + func (m *GetTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GetTxResponse) Reset() + func (m *GetTxResponse) Size() (n int) + func (m *GetTxResponse) String() string + func (m *GetTxResponse) Unmarshal(dAtA []byte) error + func (m *GetTxResponse) XXX_DiscardUnknown() + func (m *GetTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GetTxResponse) XXX_Merge(src proto.Message) + func (m *GetTxResponse) XXX_Size() int + func (m *GetTxResponse) XXX_Unmarshal(b []byte) error + type HDPathIterator func() ethaccounts.DerivationPath + func NewHDPathIterator(basePath string, ledgerIter bool) (HDPathIterator, error) + type MiddlewareContractType int32 + const MIDDLEWARE_COSMWASM + const MIDDLEWARE_SOLIDITY + func (MiddlewareContractType) EnumDescriptor() ([]byte, []int) + func (x MiddlewareContractType) String() string + type PrepareTxRequest struct + ChainId uint64 + Fee *CosmosTxFee + Memo string + Msgs [][]byte + Sequence uint64 + SignerAddress string + TimeoutHeight uint64 + func (*PrepareTxRequest) Descriptor() ([]byte, []int) + func (*PrepareTxRequest) ProtoMessage() + func (m *PrepareTxRequest) GetChainId() uint64 + func (m *PrepareTxRequest) GetFee() *CosmosTxFee + func (m *PrepareTxRequest) GetMemo() string + func (m *PrepareTxRequest) GetMsgs() [][]byte + func (m *PrepareTxRequest) GetSequence() uint64 + func (m *PrepareTxRequest) GetSignerAddress() string + func (m *PrepareTxRequest) GetTimeoutHeight() uint64 + func (m *PrepareTxRequest) Marshal() (dAtA []byte, err error) + func (m *PrepareTxRequest) MarshalTo(dAtA []byte) (int, error) + func (m *PrepareTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PrepareTxRequest) Reset() + func (m *PrepareTxRequest) Size() (n int) + func (m *PrepareTxRequest) String() string + func (m *PrepareTxRequest) Unmarshal(dAtA []byte) error + func (m *PrepareTxRequest) XXX_DiscardUnknown() + func (m *PrepareTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PrepareTxRequest) XXX_Merge(src proto.Message) + func (m *PrepareTxRequest) XXX_Size() int + func (m *PrepareTxRequest) XXX_Unmarshal(b []byte) error + type PrepareTxResponse struct + Data string + FeePayer string + FeePayerSig string + PubKeyType string + Sequence uint64 + SignMode string + func (*PrepareTxResponse) Descriptor() ([]byte, []int) + func (*PrepareTxResponse) ProtoMessage() + func (m *PrepareTxResponse) GetData() string + func (m *PrepareTxResponse) GetFeePayer() string + func (m *PrepareTxResponse) GetFeePayerSig() string + func (m *PrepareTxResponse) GetPubKeyType() string + func (m *PrepareTxResponse) GetSequence() uint64 + func (m *PrepareTxResponse) GetSignMode() string + func (m *PrepareTxResponse) Marshal() (dAtA []byte, err error) + func (m *PrepareTxResponse) MarshalTo(dAtA []byte) (int, error) + func (m *PrepareTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PrepareTxResponse) Reset() + func (m *PrepareTxResponse) Size() (n int) + func (m *PrepareTxResponse) String() string + func (m *PrepareTxResponse) Unmarshal(dAtA []byte) error + func (m *PrepareTxResponse) XXX_DiscardUnknown() + func (m *PrepareTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PrepareTxResponse) XXX_Merge(src proto.Message) + func (m *PrepareTxResponse) XXX_Size() int + func (m *PrepareTxResponse) XXX_Unmarshal(b []byte) error + type RouterTxRpcClient interface + BroadcastTx func(ctx context.Context, in *BroadcastTxRequest, opts ...grpc.CallOption) (*BroadcastTxResponse, error) + GetTx func(ctx context.Context, in *GetTxRequest, opts ...grpc.CallOption) (*GetTxResponse, error) + PrepareTx func(ctx context.Context, in *PrepareTxRequest, opts ...grpc.CallOption) (*PrepareTxResponse, error) + func NewRouterTxRpcClient(cc grpc1.ClientConn) RouterTxRpcClient + type RouterTxRpcServer interface + BroadcastTx func(context.Context, *BroadcastTxRequest) (*BroadcastTxResponse, error) + GetTx func(context.Context, *GetTxRequest) (*GetTxResponse, error) + PrepareTx func(context.Context, *PrepareTxRequest) (*PrepareTxResponse, error) + func NewRouterTxServer(clientCtx client.Context, simulate baseAppSimulateFn, ...) RouterTxRpcServer + type TxResponseData struct + Messages []*TxResponseGenericMessage + func (*TxResponseData) Descriptor() ([]byte, []int) + func (*TxResponseData) ProtoMessage() + func (m *TxResponseData) GetMessages() []*TxResponseGenericMessage + func (m *TxResponseData) Marshal() (dAtA []byte, err error) + func (m *TxResponseData) MarshalTo(dAtA []byte) (int, error) + func (m *TxResponseData) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TxResponseData) Reset() + func (m *TxResponseData) Size() (n int) + func (m *TxResponseData) String() string + func (m *TxResponseData) Unmarshal(dAtA []byte) error + func (m *TxResponseData) XXX_DiscardUnknown() + func (m *TxResponseData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TxResponseData) XXX_Merge(src proto.Message) + func (m *TxResponseData) XXX_Size() int + func (m *TxResponseData) XXX_Unmarshal(b []byte) error + type TxResponseGenericMessage struct + Data []byte + Header string + func (*TxResponseGenericMessage) Descriptor() ([]byte, []int) + func (*TxResponseGenericMessage) ProtoMessage() + func (m *TxResponseGenericMessage) GetData() []byte + func (m *TxResponseGenericMessage) GetHeader() string + func (m *TxResponseGenericMessage) Marshal() (dAtA []byte, err error) + func (m *TxResponseGenericMessage) MarshalTo(dAtA []byte) (int, error) + func (m *TxResponseGenericMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TxResponseGenericMessage) Reset() + func (m *TxResponseGenericMessage) Size() (n int) + func (m *TxResponseGenericMessage) String() string + func (m *TxResponseGenericMessage) Unmarshal(dAtA []byte) error + func (m *TxResponseGenericMessage) XXX_DiscardUnknown() + func (m *TxResponseGenericMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TxResponseGenericMessage) XXX_Merge(src proto.Message) + func (m *TxResponseGenericMessage) XXX_Size() int + func (m *TxResponseGenericMessage) XXX_Unmarshal(b []byte) error + type UnimplementedRouterTxRpcServer struct + func (*UnimplementedRouterTxRpcServer) BroadcastTx(ctx context.Context, req *BroadcastTxRequest) (*BroadcastTxResponse, error) + func (*UnimplementedRouterTxRpcServer) GetTx(ctx context.Context, req *GetTxRequest) (*GetTxResponse, error) + func (*UnimplementedRouterTxRpcServer) PrepareTx(ctx context.Context, req *PrepareTxRequest) (*PrepareTxResponse, error)