Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BtcTxid(hash []byte) string
- func DecodeBtcAddress(address string, netwk *chaincfg.Params) ([]byte, error)
- func DecodeEthAddress(address string) ([]byte, error)
- func DepositAddressV0(pubkey *relayer.PublicKey, evmAddress []byte, netwk *chaincfg.Params) (btcutil.Address, error)
- func DepositAddressV1(pubkey *relayer.PublicKey, magicPrefix, evmAddress []byte, ...) (btcutil.Address, []byte, error)
- func NewBitcoinHashEthTx(seq uint64, hash []byte) *ethtypes.Transaction
- func NewBlockHashEvent(height uint64, hash []byte) sdktypes.Event
- func NewConsolidationEvent(hash []byte) sdktypes.Event
- func NewDepositEvent(deposit *DepositExecReceipt) sdktypes.Event
- func NewKeyEvent(key *relayertypes.PublicKey) sdktypes.Event
- func NewRejectEthTx(wid, seq uint64) *ethtypes.Transaction
- func NewWithdrawalFinalizedEvent(id uint64, hash []byte) sdktypes.Event
- func NewWithdrawalInitEvent(address string, id, txPrice, amount uint64) sdktypes.Event
- func NewWithdrawalProcessingEvent(id uint64, hash []byte) sdktypes.Event
- func NewWithdrawalRelayerCancelEvent(id uint64) sdktypes.Event
- func NewWithdrawalRelayerReplaceEvent(id uint64, hash []byte) sdktypes.Event
- func NewWithdrawalUserCancelEvent(id uint64) sdktypes.Event
- func NewWithdrawalUserReplaceEvent(id, txPrice uint64) sdktypes.Event
- 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)
- func UpdateConfirmationNumberEvent(value uint64) sdktypes.Event
- func UpdateMinDepositEvent(value uint64) sdktypes.Event
- func VerifyDespositScriptV0(pubkey *relayer.PublicKey, evmAddress, txout []byte) error
- func VerifyDespositScriptV1(pubkey *relayer.PublicKey, magicPrefix, evmAddress, txout0, txout1 []byte) error
- func VerifyMerkelProof(txid, root, proof []byte, index uint32) bool
- func VerifySystemAddressScript(pubkey *relayer.PublicKey, script []byte) bool
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetHeight() uint64
- func (m *BlockHeader) GetRaw() []byte
- func (m *BlockHeader) Marshal() (dAtA []byte, err error)
- func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) Size() (n int)
- func (m *BlockHeader) String() string
- func (m *BlockHeader) Unmarshal(dAtA []byte) error
- func (m *BlockHeader) XXX_DiscardUnknown()
- func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockHeader) XXX_Merge(src proto.Message)
- func (m *BlockHeader) XXX_Size() int
- func (m *BlockHeader) XXX_Unmarshal(b []byte) error
- type Deposit
- func (*Deposit) Descriptor() ([]byte, []int)
- func (m *Deposit) GetBlockNumber() uint64
- func (m *Deposit) GetEvmAddress() []byte
- func (m *Deposit) GetIntermediateProof() []byte
- func (m *Deposit) GetNoWitnessTx() []byte
- func (m *Deposit) GetOutputIndex() uint32
- func (m *Deposit) GetRelayerPubkey() *types.PublicKey
- func (m *Deposit) GetTxIndex() uint32
- func (m *Deposit) GetVersion() uint32
- func (m *Deposit) Marshal() (dAtA []byte, err error)
- func (m *Deposit) MarshalTo(dAtA []byte) (int, error)
- func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Deposit) ProtoMessage()
- func (m *Deposit) Reset()
- func (m *Deposit) Size() (n int)
- func (m *Deposit) String() string
- func (m *Deposit) Unmarshal(dAtA []byte) error
- func (req *Deposit) Validate() error
- func (m *Deposit) XXX_DiscardUnknown()
- func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Deposit) XXX_Merge(src proto.Message)
- func (m *Deposit) XXX_Size() int
- func (m *Deposit) XXX_Unmarshal(b []byte) error
- type DepositExecReceipt
- func (*DepositExecReceipt) Descriptor() ([]byte, []int)
- func (d *DepositExecReceipt) EthTx(seq uint64) *ethtypes.Transaction
- func (m *DepositExecReceipt) GetAddress() []byte
- func (m *DepositExecReceipt) GetAmount() uint64
- func (m *DepositExecReceipt) GetTax() uint64
- func (m *DepositExecReceipt) GetTxid() []byte
- func (m *DepositExecReceipt) GetTxout() uint32
- func (m *DepositExecReceipt) Marshal() (dAtA []byte, err error)
- func (m *DepositExecReceipt) MarshalTo(dAtA []byte) (int, error)
- func (m *DepositExecReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DepositExecReceipt) ProtoMessage()
- func (m *DepositExecReceipt) Reset()
- func (m *DepositExecReceipt) Size() (n int)
- func (m *DepositExecReceipt) String() string
- func (m *DepositExecReceipt) Unmarshal(dAtA []byte) error
- func (m *DepositExecReceipt) XXX_DiscardUnknown()
- func (m *DepositExecReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DepositExecReceipt) XXX_Merge(src proto.Message)
- func (m *DepositExecReceipt) XXX_Size() int
- func (m *DepositExecReceipt) XXX_Unmarshal(b []byte) error
- type DepositGenesis
- func (*DepositGenesis) Descriptor() ([]byte, []int)
- func (m *DepositGenesis) GetAmount() uint64
- func (m *DepositGenesis) GetTxid() []byte
- func (m *DepositGenesis) GetTxout() uint32
- func (m *DepositGenesis) Marshal() (dAtA []byte, err error)
- func (m *DepositGenesis) MarshalTo(dAtA []byte) (int, error)
- func (m *DepositGenesis) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DepositGenesis) ProtoMessage()
- func (m *DepositGenesis) Reset()
- func (m *DepositGenesis) Size() (n int)
- func (m *DepositGenesis) String() string
- func (m *DepositGenesis) Unmarshal(dAtA []byte) error
- func (m *DepositGenesis) XXX_DiscardUnknown()
- func (m *DepositGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DepositGenesis) XXX_Merge(src proto.Message)
- func (m *DepositGenesis) XXX_Size() int
- func (m *DepositGenesis) XXX_Unmarshal(b []byte) error
- type EthTxQueue
- func (*EthTxQueue) Descriptor() ([]byte, []int)
- func (m *EthTxQueue) GetBlockNumber() uint64
- func (m *EthTxQueue) GetDeposits() []*DepositExecReceipt
- func (m *EthTxQueue) GetPaidWithdrawals() []*WithdrawalExecReceipt
- func (m *EthTxQueue) GetRejectedWithdrawals() []uint64
- func (m *EthTxQueue) Marshal() (dAtA []byte, err error)
- func (m *EthTxQueue) MarshalTo(dAtA []byte) (int, error)
- func (m *EthTxQueue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EthTxQueue) ProtoMessage()
- func (m *EthTxQueue) Reset()
- func (m *EthTxQueue) Size() (n int)
- func (m *EthTxQueue) String() string
- func (m *EthTxQueue) Unmarshal(dAtA []byte) error
- func (m *EthTxQueue) XXX_DiscardUnknown()
- func (m *EthTxQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EthTxQueue) XXX_Merge(src proto.Message)
- func (m *EthTxQueue) XXX_Size() int
- func (m *EthTxQueue) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBlockHashes() [][]byte
- func (m *GenesisState) GetBlockTip() uint64
- func (m *GenesisState) GetDeposits() []DepositGenesis
- func (m *GenesisState) GetEthTxNonce() uint64
- func (m *GenesisState) GetEthTxQueue() EthTxQueue
- func (m *GenesisState) GetLatestProcessId() uint64
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetProcessing() []ProcessingGenesis
- func (m *GenesisState) GetPubkey() *types.PublicKey
- func (m *GenesisState) GetWithdrawals() []WithdrawalGenesis
- 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 MsgApproveCancellation
- func (*MsgApproveCancellation) Descriptor() ([]byte, []int)
- func (m *MsgApproveCancellation) GetId() []uint64
- func (m *MsgApproveCancellation) GetProposer() string
- func (m *MsgApproveCancellation) Marshal() (dAtA []byte, err error)
- func (m *MsgApproveCancellation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgApproveCancellation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgApproveCancellation) ProtoMessage()
- func (m *MsgApproveCancellation) Reset()
- func (m *MsgApproveCancellation) Size() (n int)
- func (m *MsgApproveCancellation) String() string
- func (m *MsgApproveCancellation) Unmarshal(dAtA []byte) error
- func (req *MsgApproveCancellation) Validate() error
- func (m *MsgApproveCancellation) XXX_DiscardUnknown()
- func (m *MsgApproveCancellation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgApproveCancellation) XXX_Merge(src proto.Message)
- func (m *MsgApproveCancellation) XXX_Size() int
- func (m *MsgApproveCancellation) XXX_Unmarshal(b []byte) error
- type MsgApproveCancellationResponse
- func (*MsgApproveCancellationResponse) Descriptor() ([]byte, []int)
- func (m *MsgApproveCancellationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgApproveCancellationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgApproveCancellationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgApproveCancellationResponse) ProtoMessage()
- func (m *MsgApproveCancellationResponse) Reset()
- func (m *MsgApproveCancellationResponse) Size() (n int)
- func (m *MsgApproveCancellationResponse) String() string
- func (m *MsgApproveCancellationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgApproveCancellationResponse) XXX_DiscardUnknown()
- func (m *MsgApproveCancellationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgApproveCancellationResponse) XXX_Merge(src proto.Message)
- func (m *MsgApproveCancellationResponse) XXX_Size() int
- func (m *MsgApproveCancellationResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgFinalizeWithdrawal
- func (*MsgFinalizeWithdrawal) Descriptor() ([]byte, []int)
- func (m *MsgFinalizeWithdrawal) GetBlockHeader() []byte
- func (m *MsgFinalizeWithdrawal) GetBlockNumber() uint64
- func (m *MsgFinalizeWithdrawal) GetIntermediateProof() []byte
- func (m *MsgFinalizeWithdrawal) GetPid() uint64
- func (m *MsgFinalizeWithdrawal) GetProposer() string
- func (m *MsgFinalizeWithdrawal) GetTxIndex() uint32
- func (m *MsgFinalizeWithdrawal) GetTxid() []byte
- func (m *MsgFinalizeWithdrawal) Marshal() (dAtA []byte, err error)
- func (m *MsgFinalizeWithdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFinalizeWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFinalizeWithdrawal) ProtoMessage()
- func (m *MsgFinalizeWithdrawal) Reset()
- func (m *MsgFinalizeWithdrawal) Size() (n int)
- func (m *MsgFinalizeWithdrawal) String() string
- func (m *MsgFinalizeWithdrawal) Unmarshal(dAtA []byte) error
- func (req *MsgFinalizeWithdrawal) Validate() error
- func (m *MsgFinalizeWithdrawal) XXX_DiscardUnknown()
- func (m *MsgFinalizeWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFinalizeWithdrawal) XXX_Merge(src proto.Message)
- func (m *MsgFinalizeWithdrawal) XXX_Size() int
- func (m *MsgFinalizeWithdrawal) XXX_Unmarshal(b []byte) error
- type MsgFinalizeWithdrawalResponse
- func (*MsgFinalizeWithdrawalResponse) Descriptor() ([]byte, []int)
- func (m *MsgFinalizeWithdrawalResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFinalizeWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFinalizeWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFinalizeWithdrawalResponse) ProtoMessage()
- func (m *MsgFinalizeWithdrawalResponse) Reset()
- func (m *MsgFinalizeWithdrawalResponse) Size() (n int)
- func (m *MsgFinalizeWithdrawalResponse) String() string
- func (m *MsgFinalizeWithdrawalResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFinalizeWithdrawalResponse) XXX_DiscardUnknown()
- func (m *MsgFinalizeWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFinalizeWithdrawalResponse) XXX_Merge(src proto.Message)
- func (m *MsgFinalizeWithdrawalResponse) XXX_Size() int
- func (m *MsgFinalizeWithdrawalResponse) XXX_Unmarshal(b []byte) error
- type MsgNewBlockHashes
- func (*MsgNewBlockHashes) Descriptor() ([]byte, []int)
- func (m *MsgNewBlockHashes) GetBlockHash() [][]byte
- func (m *MsgNewBlockHashes) GetProposer() string
- func (m *MsgNewBlockHashes) GetStartBlockNumber() uint64
- func (m *MsgNewBlockHashes) GetVote() *types.Votes
- func (m *MsgNewBlockHashes) Marshal() (dAtA []byte, err error)
- func (m *MsgNewBlockHashes) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewBlockHashes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (req *MsgNewBlockHashes) MethodName() string
- func (*MsgNewBlockHashes) ProtoMessage()
- func (m *MsgNewBlockHashes) Reset()
- func (m *MsgNewBlockHashes) Size() (n int)
- func (m *MsgNewBlockHashes) String() string
- func (m *MsgNewBlockHashes) Unmarshal(dAtA []byte) error
- func (req *MsgNewBlockHashes) Validate() error
- func (req *MsgNewBlockHashes) VoteSigDoc() []byte
- func (m *MsgNewBlockHashes) XXX_DiscardUnknown()
- func (m *MsgNewBlockHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewBlockHashes) XXX_Merge(src proto.Message)
- func (m *MsgNewBlockHashes) XXX_Size() int
- func (m *MsgNewBlockHashes) XXX_Unmarshal(b []byte) error
- type MsgNewBlockHashesResponse
- func (*MsgNewBlockHashesResponse) Descriptor() ([]byte, []int)
- func (m *MsgNewBlockHashesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgNewBlockHashesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewBlockHashesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewBlockHashesResponse) ProtoMessage()
- func (m *MsgNewBlockHashesResponse) Reset()
- func (m *MsgNewBlockHashesResponse) Size() (n int)
- func (m *MsgNewBlockHashesResponse) String() string
- func (m *MsgNewBlockHashesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgNewBlockHashesResponse) XXX_DiscardUnknown()
- func (m *MsgNewBlockHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewBlockHashesResponse) XXX_Merge(src proto.Message)
- func (m *MsgNewBlockHashesResponse) XXX_Size() int
- func (m *MsgNewBlockHashesResponse) XXX_Unmarshal(b []byte) error
- type MsgNewConsolidation
- func (*MsgNewConsolidation) Descriptor() ([]byte, []int)
- func (m *MsgNewConsolidation) GetNoWitnessTx() []byte
- func (m *MsgNewConsolidation) GetProposer() string
- func (m *MsgNewConsolidation) GetVote() *types.Votes
- func (m *MsgNewConsolidation) Marshal() (dAtA []byte, err error)
- func (m *MsgNewConsolidation) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewConsolidation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (req *MsgNewConsolidation) MethodName() string
- func (*MsgNewConsolidation) ProtoMessage()
- func (m *MsgNewConsolidation) Reset()
- func (m *MsgNewConsolidation) Size() (n int)
- func (m *MsgNewConsolidation) String() string
- func (m *MsgNewConsolidation) Unmarshal(dAtA []byte) error
- func (req *MsgNewConsolidation) Validate() error
- func (req *MsgNewConsolidation) VoteSigDoc() []byte
- func (m *MsgNewConsolidation) XXX_DiscardUnknown()
- func (m *MsgNewConsolidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewConsolidation) XXX_Merge(src proto.Message)
- func (m *MsgNewConsolidation) XXX_Size() int
- func (m *MsgNewConsolidation) XXX_Unmarshal(b []byte) error
- type MsgNewConsolidationResponse
- func (*MsgNewConsolidationResponse) Descriptor() ([]byte, []int)
- func (m *MsgNewConsolidationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgNewConsolidationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewConsolidationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewConsolidationResponse) ProtoMessage()
- func (m *MsgNewConsolidationResponse) Reset()
- func (m *MsgNewConsolidationResponse) Size() (n int)
- func (m *MsgNewConsolidationResponse) String() string
- func (m *MsgNewConsolidationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgNewConsolidationResponse) XXX_DiscardUnknown()
- func (m *MsgNewConsolidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewConsolidationResponse) XXX_Merge(src proto.Message)
- func (m *MsgNewConsolidationResponse) XXX_Size() int
- func (m *MsgNewConsolidationResponse) XXX_Unmarshal(b []byte) error
- type MsgNewDeposits
- func (req *MsgNewDeposits) BlockHeadersMap() (map[uint64][]byte, error)
- func (*MsgNewDeposits) Descriptor() ([]byte, []int)
- func (m *MsgNewDeposits) GetBlockHeaders() []*BlockHeader
- func (m *MsgNewDeposits) GetDeposits() []*Deposit
- func (m *MsgNewDeposits) GetProposer() string
- func (m *MsgNewDeposits) Marshal() (dAtA []byte, err error)
- func (m *MsgNewDeposits) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewDeposits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewDeposits) ProtoMessage()
- func (m *MsgNewDeposits) Reset()
- func (m *MsgNewDeposits) Size() (n int)
- func (m *MsgNewDeposits) String() string
- func (m *MsgNewDeposits) Unmarshal(dAtA []byte) error
- func (req *MsgNewDeposits) Validate() error
- func (m *MsgNewDeposits) XXX_DiscardUnknown()
- func (m *MsgNewDeposits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewDeposits) XXX_Merge(src proto.Message)
- func (m *MsgNewDeposits) XXX_Size() int
- func (m *MsgNewDeposits) XXX_Unmarshal(b []byte) error
- type MsgNewDepositsResponse
- func (*MsgNewDepositsResponse) Descriptor() ([]byte, []int)
- func (m *MsgNewDepositsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgNewDepositsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewDepositsResponse) ProtoMessage()
- func (m *MsgNewDepositsResponse) Reset()
- func (m *MsgNewDepositsResponse) Size() (n int)
- func (m *MsgNewDepositsResponse) String() string
- func (m *MsgNewDepositsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgNewDepositsResponse) XXX_DiscardUnknown()
- func (m *MsgNewDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewDepositsResponse) XXX_Merge(src proto.Message)
- func (m *MsgNewDepositsResponse) XXX_Size() int
- func (m *MsgNewDepositsResponse) XXX_Unmarshal(b []byte) error
- type MsgNewPubkey
- func (*MsgNewPubkey) Descriptor() ([]byte, []int)
- func (m *MsgNewPubkey) GetProposer() string
- func (m *MsgNewPubkey) GetPubkey() *types.PublicKey
- func (m *MsgNewPubkey) GetVote() *types.Votes
- func (m *MsgNewPubkey) Marshal() (dAtA []byte, err error)
- func (m *MsgNewPubkey) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (req *MsgNewPubkey) MethodName() string
- func (*MsgNewPubkey) ProtoMessage()
- func (m *MsgNewPubkey) Reset()
- func (m *MsgNewPubkey) Size() (n int)
- func (m *MsgNewPubkey) String() string
- func (m *MsgNewPubkey) Unmarshal(dAtA []byte) error
- func (req *MsgNewPubkey) Validate() error
- func (req *MsgNewPubkey) VoteSigDoc() []byte
- func (m *MsgNewPubkey) XXX_DiscardUnknown()
- func (m *MsgNewPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewPubkey) XXX_Merge(src proto.Message)
- func (m *MsgNewPubkey) XXX_Size() int
- func (m *MsgNewPubkey) XXX_Unmarshal(b []byte) error
- type MsgNewPubkeyResponse
- func (*MsgNewPubkeyResponse) Descriptor() ([]byte, []int)
- func (m *MsgNewPubkeyResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgNewPubkeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgNewPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgNewPubkeyResponse) ProtoMessage()
- func (m *MsgNewPubkeyResponse) Reset()
- func (m *MsgNewPubkeyResponse) Size() (n int)
- func (m *MsgNewPubkeyResponse) String() string
- func (m *MsgNewPubkeyResponse) Unmarshal(dAtA []byte) error
- func (m *MsgNewPubkeyResponse) XXX_DiscardUnknown()
- func (m *MsgNewPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgNewPubkeyResponse) XXX_Merge(src proto.Message)
- func (m *MsgNewPubkeyResponse) XXX_Size() int
- func (m *MsgNewPubkeyResponse) XXX_Unmarshal(b []byte) error
- type MsgProcessWithdrawal
- func (*MsgProcessWithdrawal) Descriptor() ([]byte, []int)
- func (m *MsgProcessWithdrawal) GetId() []uint64
- func (m *MsgProcessWithdrawal) GetNoWitnessTx() []byte
- func (m *MsgProcessWithdrawal) GetProposer() string
- func (m *MsgProcessWithdrawal) GetTxFee() uint64
- func (m *MsgProcessWithdrawal) GetVote() *types.Votes
- func (m *MsgProcessWithdrawal) Marshal() (dAtA []byte, err error)
- func (m *MsgProcessWithdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProcessWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (req *MsgProcessWithdrawal) MethodName() string
- func (*MsgProcessWithdrawal) ProtoMessage()
- func (m *MsgProcessWithdrawal) Reset()
- func (m *MsgProcessWithdrawal) Size() (n int)
- func (m *MsgProcessWithdrawal) String() string
- func (m *MsgProcessWithdrawal) Unmarshal(dAtA []byte) error
- func (req *MsgProcessWithdrawal) Validate() error
- func (req *MsgProcessWithdrawal) VoteSigDoc() []byte
- func (m *MsgProcessWithdrawal) XXX_DiscardUnknown()
- func (m *MsgProcessWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProcessWithdrawal) XXX_Merge(src proto.Message)
- func (m *MsgProcessWithdrawal) XXX_Size() int
- func (m *MsgProcessWithdrawal) XXX_Unmarshal(b []byte) error
- type MsgProcessWithdrawalResponse
- func (*MsgProcessWithdrawalResponse) Descriptor() ([]byte, []int)
- func (m *MsgProcessWithdrawalResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgProcessWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProcessWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProcessWithdrawalResponse) ProtoMessage()
- func (m *MsgProcessWithdrawalResponse) Reset()
- func (m *MsgProcessWithdrawalResponse) Size() (n int)
- func (m *MsgProcessWithdrawalResponse) String() string
- func (m *MsgProcessWithdrawalResponse) Unmarshal(dAtA []byte) error
- func (m *MsgProcessWithdrawalResponse) XXX_DiscardUnknown()
- func (m *MsgProcessWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProcessWithdrawalResponse) XXX_Merge(src proto.Message)
- func (m *MsgProcessWithdrawalResponse) XXX_Size() int
- func (m *MsgProcessWithdrawalResponse) XXX_Unmarshal(b []byte) error
- type MsgReplaceWithdrawal
- func (*MsgReplaceWithdrawal) Descriptor() ([]byte, []int)
- func (m *MsgReplaceWithdrawal) GetNewNoWitnessTx() []byte
- func (m *MsgReplaceWithdrawal) GetNewTxFee() uint64
- func (m *MsgReplaceWithdrawal) GetPid() uint64
- func (m *MsgReplaceWithdrawal) GetProposer() string
- func (m *MsgReplaceWithdrawal) GetVote() *types.Votes
- func (m *MsgReplaceWithdrawal) Marshal() (dAtA []byte, err error)
- func (m *MsgReplaceWithdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgReplaceWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (req *MsgReplaceWithdrawal) MethodName() string
- func (*MsgReplaceWithdrawal) ProtoMessage()
- func (m *MsgReplaceWithdrawal) Reset()
- func (m *MsgReplaceWithdrawal) Size() (n int)
- func (m *MsgReplaceWithdrawal) String() string
- func (m *MsgReplaceWithdrawal) Unmarshal(dAtA []byte) error
- func (req *MsgReplaceWithdrawal) Validate() error
- func (req *MsgReplaceWithdrawal) VoteSigDoc() []byte
- func (m *MsgReplaceWithdrawal) XXX_DiscardUnknown()
- func (m *MsgReplaceWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgReplaceWithdrawal) XXX_Merge(src proto.Message)
- func (m *MsgReplaceWithdrawal) XXX_Size() int
- func (m *MsgReplaceWithdrawal) XXX_Unmarshal(b []byte) error
- type MsgReplaceWithdrawalResponse
- func (*MsgReplaceWithdrawalResponse) Descriptor() ([]byte, []int)
- func (m *MsgReplaceWithdrawalResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgReplaceWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgReplaceWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgReplaceWithdrawalResponse) ProtoMessage()
- func (m *MsgReplaceWithdrawalResponse) Reset()
- func (m *MsgReplaceWithdrawalResponse) Size() (n int)
- func (m *MsgReplaceWithdrawalResponse) String() string
- func (m *MsgReplaceWithdrawalResponse) Unmarshal(dAtA []byte) error
- func (m *MsgReplaceWithdrawalResponse) XXX_DiscardUnknown()
- func (m *MsgReplaceWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgReplaceWithdrawalResponse) XXX_Merge(src proto.Message)
- func (m *MsgReplaceWithdrawalResponse) XXX_Size() int
- func (m *MsgReplaceWithdrawalResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetConfirmationNumber() uint64
- func (m *Params) GetDepositMagicPrefix() []byte
- func (m *Params) GetDepositTaxRate() uint64
- func (m *Params) GetMaxDepositTax() uint64
- func (m *Params) GetMinDepositAmount() uint64
- func (m *Params) GetNetworkName() string
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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 Processing
- func (*Processing) Descriptor() ([]byte, []int)
- func (m *Processing) GetFee() uint64
- func (m *Processing) GetOutput() []TxOuptut
- func (m *Processing) GetTxid() [][]byte
- func (m *Processing) GetWithdrawals() []uint64
- func (m *Processing) Marshal() (dAtA []byte, err error)
- func (m *Processing) MarshalTo(dAtA []byte) (int, error)
- func (m *Processing) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Processing) ProtoMessage()
- func (m *Processing) Reset()
- func (m *Processing) Size() (n int)
- func (m *Processing) String() string
- func (m *Processing) Unmarshal(dAtA []byte) error
- func (m *Processing) XXX_DiscardUnknown()
- func (m *Processing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Processing) XXX_Merge(src proto.Message)
- func (m *Processing) XXX_Size() int
- func (m *Processing) XXX_Unmarshal(b []byte) error
- type ProcessingGenesis
- func (*ProcessingGenesis) Descriptor() ([]byte, []int)
- func (m *ProcessingGenesis) GetId() uint64
- func (m *ProcessingGenesis) GetProcessing() Processing
- func (m *ProcessingGenesis) Marshal() (dAtA []byte, err error)
- func (m *ProcessingGenesis) MarshalTo(dAtA []byte) (int, error)
- func (m *ProcessingGenesis) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProcessingGenesis) ProtoMessage()
- func (m *ProcessingGenesis) Reset()
- func (m *ProcessingGenesis) Size() (n int)
- func (m *ProcessingGenesis) String() string
- func (m *ProcessingGenesis) Unmarshal(dAtA []byte) error
- func (m *ProcessingGenesis) XXX_DiscardUnknown()
- func (m *ProcessingGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessingGenesis) XXX_Merge(src proto.Message)
- func (m *ProcessingGenesis) XXX_Size() int
- func (m *ProcessingGenesis) XXX_Unmarshal(b []byte) error
- type QueryBlockTipRequest
- func (*QueryBlockTipRequest) Descriptor() ([]byte, []int)
- func (m *QueryBlockTipRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBlockTipRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBlockTipRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBlockTipRequest) ProtoMessage()
- func (m *QueryBlockTipRequest) Reset()
- func (m *QueryBlockTipRequest) Size() (n int)
- func (m *QueryBlockTipRequest) String() string
- func (m *QueryBlockTipRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBlockTipRequest) XXX_DiscardUnknown()
- func (m *QueryBlockTipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockTipRequest) XXX_Merge(src proto.Message)
- func (m *QueryBlockTipRequest) XXX_Size() int
- func (m *QueryBlockTipRequest) XXX_Unmarshal(b []byte) error
- type QueryBlockTipResponse
- func (*QueryBlockTipResponse) Descriptor() ([]byte, []int)
- func (m *QueryBlockTipResponse) GetHash() string
- func (m *QueryBlockTipResponse) GetHeight() uint64
- func (m *QueryBlockTipResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBlockTipResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBlockTipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBlockTipResponse) ProtoMessage()
- func (m *QueryBlockTipResponse) Reset()
- func (m *QueryBlockTipResponse) Size() (n int)
- func (m *QueryBlockTipResponse) String() string
- func (m *QueryBlockTipResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBlockTipResponse) XXX_DiscardUnknown()
- func (m *QueryBlockTipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBlockTipResponse) XXX_Merge(src proto.Message)
- func (m *QueryBlockTipResponse) XXX_Size() int
- func (m *QueryBlockTipResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDepositAddress
- func (*QueryDepositAddress) Descriptor() ([]byte, []int)
- func (m *QueryDepositAddress) GetEvmAddress() string
- func (m *QueryDepositAddress) GetVersion() uint32
- func (m *QueryDepositAddress) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositAddress) ProtoMessage()
- func (m *QueryDepositAddress) Reset()
- func (m *QueryDepositAddress) Size() (n int)
- func (m *QueryDepositAddress) String() string
- func (m *QueryDepositAddress) Unmarshal(dAtA []byte) error
- func (m *QueryDepositAddress) XXX_DiscardUnknown()
- func (m *QueryDepositAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositAddress) XXX_Merge(src proto.Message)
- func (m *QueryDepositAddress) XXX_Size() int
- func (m *QueryDepositAddress) XXX_Unmarshal(b []byte) error
- type QueryDepositAddressResponse
- func (*QueryDepositAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryDepositAddressResponse) GetAddress() string
- func (m *QueryDepositAddressResponse) GetNetworkName() string
- func (m *QueryDepositAddressResponse) GetOpReturnScript() []byte
- func (m *QueryDepositAddressResponse) GetPublicKey() *types.PublicKey
- func (m *QueryDepositAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositAddressResponse) ProtoMessage()
- func (m *QueryDepositAddressResponse) Reset()
- func (m *QueryDepositAddressResponse) Size() (n int)
- func (m *QueryDepositAddressResponse) String() string
- func (m *QueryDepositAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDepositAddressResponse) XXX_DiscardUnknown()
- func (m *QueryDepositAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryDepositAddressResponse) XXX_Size() int
- func (m *QueryDepositAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryHasDeposited
- func (*QueryHasDeposited) Descriptor() ([]byte, []int)
- func (m *QueryHasDeposited) GetTxid() string
- func (m *QueryHasDeposited) GetTxout() uint32
- func (m *QueryHasDeposited) Marshal() (dAtA []byte, err error)
- func (m *QueryHasDeposited) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHasDeposited) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHasDeposited) ProtoMessage()
- func (m *QueryHasDeposited) Reset()
- func (m *QueryHasDeposited) Size() (n int)
- func (m *QueryHasDeposited) String() string
- func (m *QueryHasDeposited) Unmarshal(dAtA []byte) error
- func (m *QueryHasDeposited) XXX_DiscardUnknown()
- func (m *QueryHasDeposited) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHasDeposited) XXX_Merge(src proto.Message)
- func (m *QueryHasDeposited) XXX_Size() int
- func (m *QueryHasDeposited) XXX_Unmarshal(b []byte) error
- type QueryHasDepositedResponse
- func (*QueryHasDepositedResponse) Descriptor() ([]byte, []int)
- func (m *QueryHasDepositedResponse) GetYes() bool
- func (m *QueryHasDepositedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryHasDepositedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHasDepositedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHasDepositedResponse) ProtoMessage()
- func (m *QueryHasDepositedResponse) Reset()
- func (m *QueryHasDepositedResponse) Size() (n int)
- func (m *QueryHasDepositedResponse) String() string
- func (m *QueryHasDepositedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryHasDepositedResponse) XXX_DiscardUnknown()
- func (m *QueryHasDepositedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHasDepositedResponse) XXX_Merge(src proto.Message)
- func (m *QueryHasDepositedResponse) XXX_Size() int
- func (m *QueryHasDepositedResponse) XXX_Unmarshal(b []byte) error
- 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 QueryPubkeyRequest
- func (*QueryPubkeyRequest) Descriptor() ([]byte, []int)
- func (m *QueryPubkeyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPubkeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPubkeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPubkeyRequest) ProtoMessage()
- func (m *QueryPubkeyRequest) Reset()
- func (m *QueryPubkeyRequest) Size() (n int)
- func (m *QueryPubkeyRequest) String() string
- func (m *QueryPubkeyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPubkeyRequest) XXX_DiscardUnknown()
- func (m *QueryPubkeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPubkeyRequest) XXX_Merge(src proto.Message)
- func (m *QueryPubkeyRequest) XXX_Size() int
- func (m *QueryPubkeyRequest) XXX_Unmarshal(b []byte) error
- type QueryPubkeyResponse
- func (*QueryPubkeyResponse) Descriptor() ([]byte, []int)
- func (m *QueryPubkeyResponse) GetPublicKey() types.PublicKey
- func (m *QueryPubkeyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPubkeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPubkeyResponse) ProtoMessage()
- func (m *QueryPubkeyResponse) Reset()
- func (m *QueryPubkeyResponse) Size() (n int)
- func (m *QueryPubkeyResponse) String() string
- func (m *QueryPubkeyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPubkeyResponse) XXX_DiscardUnknown()
- func (m *QueryPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPubkeyResponse) XXX_Merge(src proto.Message)
- func (m *QueryPubkeyResponse) XXX_Size() int
- func (m *QueryPubkeyResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryWithdrawalRequest
- func (*QueryWithdrawalRequest) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalRequest) GetId() uint64
- func (m *QueryWithdrawalRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalRequest) ProtoMessage()
- func (m *QueryWithdrawalRequest) Reset()
- func (m *QueryWithdrawalRequest) Size() (n int)
- func (m *QueryWithdrawalRequest) String() string
- func (m *QueryWithdrawalRequest) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalRequest) XXX_DiscardUnknown()
- func (m *QueryWithdrawalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalRequest) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalRequest) XXX_Size() int
- func (m *QueryWithdrawalRequest) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalResponse
- func (*QueryWithdrawalResponse) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalResponse) GetWithdrawal() Withdrawal
- func (m *QueryWithdrawalResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalResponse) ProtoMessage()
- func (m *QueryWithdrawalResponse) Reset()
- func (m *QueryWithdrawalResponse) Size() (n int)
- func (m *QueryWithdrawalResponse) String() string
- func (m *QueryWithdrawalResponse) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalResponse) XXX_DiscardUnknown()
- func (m *QueryWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalResponse) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalResponse) XXX_Size() int
- func (m *QueryWithdrawalResponse) XXX_Unmarshal(b []byte) error
- type RelayerKeeper
- type TxOuptut
- func (*TxOuptut) Descriptor() ([]byte, []int)
- func (m *TxOuptut) GetValues() []uint64
- func (m *TxOuptut) Marshal() (dAtA []byte, err error)
- func (m *TxOuptut) MarshalTo(dAtA []byte) (int, error)
- func (m *TxOuptut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxOuptut) ProtoMessage()
- func (m *TxOuptut) Reset()
- func (m *TxOuptut) Size() (n int)
- func (m *TxOuptut) String() string
- func (m *TxOuptut) Unmarshal(dAtA []byte) error
- func (m *TxOuptut) XXX_DiscardUnknown()
- func (m *TxOuptut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxOuptut) XXX_Merge(src proto.Message)
- func (m *TxOuptut) XXX_Size() int
- func (m *TxOuptut) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ApproveCancellation(ctx context.Context, req *MsgApproveCancellation) (*MsgApproveCancellationResponse, error)
- func (*UnimplementedMsgServer) FinalizeWithdrawal(ctx context.Context, req *MsgFinalizeWithdrawal) (*MsgFinalizeWithdrawalResponse, error)
- func (*UnimplementedMsgServer) NewBlockHashes(ctx context.Context, req *MsgNewBlockHashes) (*MsgNewBlockHashesResponse, error)
- func (*UnimplementedMsgServer) NewConsolidation(ctx context.Context, req *MsgNewConsolidation) (*MsgNewConsolidationResponse, error)
- func (*UnimplementedMsgServer) NewDeposits(ctx context.Context, req *MsgNewDeposits) (*MsgNewDepositsResponse, error)
- func (*UnimplementedMsgServer) NewPubkey(ctx context.Context, req *MsgNewPubkey) (*MsgNewPubkeyResponse, error)
- func (*UnimplementedMsgServer) ProcessWithdrawal(ctx context.Context, req *MsgProcessWithdrawal) (*MsgProcessWithdrawalResponse, error)
- func (*UnimplementedMsgServer) ReplaceWithdrawal(ctx context.Context, req *MsgReplaceWithdrawal) (*MsgReplaceWithdrawalResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) BlockTip(ctx context.Context, req *QueryBlockTipRequest) (*QueryBlockTipResponse, error)
- func (*UnimplementedQueryServer) DepositAddress(ctx context.Context, req *QueryDepositAddress) (*QueryDepositAddressResponse, error)
- func (*UnimplementedQueryServer) HasDeposited(ctx context.Context, req *QueryHasDeposited) (*QueryHasDepositedResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Pubkey(ctx context.Context, req *QueryPubkeyRequest) (*QueryPubkeyResponse, error)
- func (*UnimplementedQueryServer) Withdrawal(ctx context.Context, req *QueryWithdrawalRequest) (*QueryWithdrawalResponse, error)
- type Withdrawal
- func (*Withdrawal) Descriptor() ([]byte, []int)
- func (m *Withdrawal) GetAddress() string
- func (m *Withdrawal) GetMaxTxPrice() uint64
- func (m *Withdrawal) GetReceipt() *WithdrawalReceipt
- func (m *Withdrawal) GetRequestAmount() uint64
- func (m *Withdrawal) GetStatus() WithdrawalStatus
- func (m *Withdrawal) Marshal() (dAtA []byte, err error)
- func (m *Withdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Withdrawal) ProtoMessage()
- func (m *Withdrawal) Reset()
- func (m *Withdrawal) Size() (n int)
- func (m *Withdrawal) String() string
- func (m *Withdrawal) Unmarshal(dAtA []byte) error
- func (m *Withdrawal) XXX_DiscardUnknown()
- func (m *Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Withdrawal) XXX_Merge(src proto.Message)
- func (m *Withdrawal) XXX_Size() int
- func (m *Withdrawal) XXX_Unmarshal(b []byte) error
- type WithdrawalExecReceipt
- func (*WithdrawalExecReceipt) Descriptor() ([]byte, []int)
- func (d *WithdrawalExecReceipt) EthTx(seq uint64) *ethtypes.Transaction
- func (m *WithdrawalExecReceipt) GetId() uint64
- func (m *WithdrawalExecReceipt) GetReceipt() *WithdrawalReceipt
- func (m *WithdrawalExecReceipt) Marshal() (dAtA []byte, err error)
- func (m *WithdrawalExecReceipt) MarshalTo(dAtA []byte) (int, error)
- func (m *WithdrawalExecReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WithdrawalExecReceipt) ProtoMessage()
- func (m *WithdrawalExecReceipt) Reset()
- func (m *WithdrawalExecReceipt) Size() (n int)
- func (m *WithdrawalExecReceipt) String() string
- func (m *WithdrawalExecReceipt) Unmarshal(dAtA []byte) error
- func (m *WithdrawalExecReceipt) XXX_DiscardUnknown()
- func (m *WithdrawalExecReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WithdrawalExecReceipt) XXX_Merge(src proto.Message)
- func (m *WithdrawalExecReceipt) XXX_Size() int
- func (m *WithdrawalExecReceipt) XXX_Unmarshal(b []byte) error
- type WithdrawalGenesis
- func (*WithdrawalGenesis) Descriptor() ([]byte, []int)
- func (m *WithdrawalGenesis) GetId() uint64
- func (m *WithdrawalGenesis) GetWithdrawal() Withdrawal
- func (m *WithdrawalGenesis) Marshal() (dAtA []byte, err error)
- func (m *WithdrawalGenesis) MarshalTo(dAtA []byte) (int, error)
- func (m *WithdrawalGenesis) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WithdrawalGenesis) ProtoMessage()
- func (m *WithdrawalGenesis) Reset()
- func (m *WithdrawalGenesis) Size() (n int)
- func (m *WithdrawalGenesis) String() string
- func (m *WithdrawalGenesis) Unmarshal(dAtA []byte) error
- func (m *WithdrawalGenesis) XXX_DiscardUnknown()
- func (m *WithdrawalGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WithdrawalGenesis) XXX_Merge(src proto.Message)
- func (m *WithdrawalGenesis) XXX_Size() int
- func (m *WithdrawalGenesis) XXX_Unmarshal(b []byte) error
- type WithdrawalReceipt
- func (*WithdrawalReceipt) Descriptor() ([]byte, []int)
- func (m *WithdrawalReceipt) GetAmount() uint64
- func (m *WithdrawalReceipt) GetTxid() []byte
- func (m *WithdrawalReceipt) GetTxout() uint32
- func (m *WithdrawalReceipt) Marshal() (dAtA []byte, err error)
- func (m *WithdrawalReceipt) MarshalTo(dAtA []byte) (int, error)
- func (m *WithdrawalReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WithdrawalReceipt) ProtoMessage()
- func (m *WithdrawalReceipt) Reset()
- func (m *WithdrawalReceipt) Size() (n int)
- func (m *WithdrawalReceipt) String() string
- func (m *WithdrawalReceipt) Unmarshal(dAtA []byte) error
- func (m *WithdrawalReceipt) XXX_DiscardUnknown()
- func (m *WithdrawalReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WithdrawalReceipt) XXX_Merge(src proto.Message)
- func (m *WithdrawalReceipt) XXX_Size() int
- func (m *WithdrawalReceipt) XXX_Unmarshal(b []byte) error
- type WithdrawalStatus
Constants ¶
const ( EventTypeNewKey = "new_key" EventTypeNewDeposit = "new_deposit" EventTypeNewBlockHash = "new_block_hash" EventTypeNewConsolidation = "new_consolidation" EventTypeWithdrawalInit = "withdrawal_init" EventTypeWithdrawalProcessing = "withdrawal_processing" EventTypeWithdrawalFinalized = "withdrawal_finalized" EventTypeWithdrawalUserReplace = "withdrawal_user_rbf" EventTypeWithdrawalUserCancel = "withdrawal_user_cancel" EventTypeWithdrawalRelayerReplace = "withdrawal_relayer_rbf" EventTypeWithdrawalRelayerCancel = "withdrawal_relayer_cancel" EventTypeUpdateMinDeposit = "param_update_min_deposit" EventTypeUpdateConfirmationNumber = "param_update_confirmation_number" )
const ( Secp256K1Name = "secp256k1" SchnorrName = "schnorr" )
const ( // ModuleName defines the module name ModuleName = "bitcoin" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_bitcoin" )
const ( NewPubkeyMethodSigName = "Bitcoin/NewPubkey" NewBlocksMethodSigName = "Bitcoin/NewBlocks" ProcessWithdrawalMethodSigName = "Bitcoin/ProcessWithdrawal" ReplaceWithdrawalMethodSigName = "Bitcoin/ReplaceWithdrawal" NewConsolidationMethodSigName = "Bitcoin/NewConsolidation" )
const ( DepositMagicLen = 4 DustTxoutAmount = 1e3 // the current dust value is 546, we use a slightly larger value here RawBtcHeaderSize = 80 P2TRScriptSize = 34 P2WSHScriptSize = 34 P2WPKHScriptSize = 22 MinBtcTxSize = 4 + 1 + 32 + 4 + 1 + 0 + 4 + 1 + 8 + 1 + 22 + 4 DepositV1TxoutSize = 26 // 4 version // 1 input length // 41 = 32 prevTxid + 4 prevTxOut + 1 sigScriptLength + 0 sigScript(witness) + 4 sequence // 1 output length // 8 value + 1 pkScriptLength + 34 p2wsh/p2tr // || 8 value + 1 pkScriptLength + 22 p2wph + 8 value + 1 pkScriptLength + 26 data OP_RETURN // 4 lockTime MinDepositTxSize = 4 + 1 + 32 + 4 + 1 + 0 + 4 + 1 + 8 + 1 + 34 + 4 MaxAllowedBtcTxSize = 32 * 1024 MaxTaxBP = 1e4 )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
Variables ¶
var ( ErrInvalidLengthBitcoin = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBitcoin = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBitcoin = fmt.Errorf("proto: unexpected end of group") )
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 ( ParamsKey = collections.NewPrefix(0) LatestPubkeyKey = collections.NewPrefix(1) LatestHeightKey = collections.NewPrefix(2) BlockHashsKey = collections.NewPrefix(3) DepositedKey = collections.NewPrefix(4) EthTxQueueKey = collections.NewPrefix(5) EthTxNonceKey = collections.NewPrefix(6) WithdrawalKey = collections.NewPrefix(7) ProcessingKey = collections.NewPrefix(8) ProcessIDKey = collections.NewPrefix(9) )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var BitcoinNetworks = map[string]*chaincfg.Params{ chaincfg.MainNetParams.Name: &chaincfg.MainNetParams, chaincfg.TestNet3Params.Name: &chaincfg.TestNet3Params, chaincfg.SigNetParams.Name: &chaincfg.SigNetParams, chaincfg.RegressionNetParams.Name: &chaincfg.RegressionNetParams, }
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
var WithdrawalStatus_name = map[int32]string{
0: "WITHDRAWAL_STATUS_UNSPECIFIED",
1: "WITHDRAWAL_STATUS_PENDING",
2: "WITHDRAWAL_STATUS_PROCESSING",
3: "WITHDRAWAL_STATUS_CANCELING",
4: "WITHDRAWAL_STATUS_CANCELED",
5: "WITHDRAWAL_STATUS_PAID",
}
var WithdrawalStatus_value = map[string]int32{
"WITHDRAWAL_STATUS_UNSPECIFIED": 0,
"WITHDRAWAL_STATUS_PENDING": 1,
"WITHDRAWAL_STATUS_PROCESSING": 2,
"WITHDRAWAL_STATUS_CANCELING": 3,
"WITHDRAWAL_STATUS_CANCELED": 4,
"WITHDRAWAL_STATUS_PAID": 5,
}
Functions ¶
func DecodeBtcAddress ¶
DecodeBtcAddress verifies if the address is valid and returns its payment script for later verification
func DecodeEthAddress ¶
func DepositAddressV0 ¶
func DepositAddressV1 ¶
func NewBitcoinHashEthTx ¶
func NewBitcoinHashEthTx(seq uint64, hash []byte) *ethtypes.Transaction
func NewConsolidationEvent ¶
func NewDepositEvent ¶
func NewDepositEvent(deposit *DepositExecReceipt) sdktypes.Event
func NewKeyEvent ¶
func NewKeyEvent(key *relayertypes.PublicKey) sdktypes.Event
func NewRejectEthTx ¶
func NewRejectEthTx(wid, seq uint64) *ethtypes.Transaction
func NewWithdrawalInitEvent ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func UpdateMinDepositEvent ¶
func VerifyDespositScriptV0 ¶
func VerifyDespositScriptV1 ¶
func VerifyMerkelProof ¶
Types ¶
type BlockHeader ¶
type BlockHeader struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3" json:"raw,omitempty"` }
the bitcoin height and its raw header pair
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetHeight ¶
func (m *BlockHeader) GetHeight() uint64
func (*BlockHeader) GetRaw ¶
func (m *BlockHeader) GetRaw() []byte
func (*BlockHeader) Marshal ¶
func (m *BlockHeader) Marshal() (dAtA []byte, err error)
func (*BlockHeader) MarshalToSizedBuffer ¶
func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) Size ¶
func (m *BlockHeader) Size() (n int)
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
func (*BlockHeader) Unmarshal ¶
func (m *BlockHeader) Unmarshal(dAtA []byte) error
func (*BlockHeader) XXX_DiscardUnknown ¶
func (m *BlockHeader) XXX_DiscardUnknown()
func (*BlockHeader) XXX_Marshal ¶
func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeader) XXX_Merge ¶
func (m *BlockHeader) XXX_Merge(src proto.Message)
func (*BlockHeader) XXX_Size ¶
func (m *BlockHeader) XXX_Size() int
func (*BlockHeader) XXX_Unmarshal ¶
func (m *BlockHeader) XXX_Unmarshal(b []byte) error
type Deposit ¶
type Deposit struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // block_number the block number that transaction located at BlockNumber uint64 `protobuf:"varint,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // tx_index is the index of transaction in the block TxIndex uint32 `protobuf:"varint,3,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` // tx is the raw transaction withtout witness NoWitnessTx []byte `protobuf:"bytes,4,opt,name=no_witness_tx,json=noWitnessTx,proto3" json:"no_witness_tx,omitempty"` OutputIndex uint32 `protobuf:"varint,5,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"` // intermediate proof is the proof without the txid and merkel root IntermediateProof []byte `protobuf:"bytes,6,opt,name=intermediate_proof,json=intermediateProof,proto3" json:"intermediate_proof,omitempty"` // evm_address is the user wallet address in goat evm EvmAddress []byte `protobuf:"bytes,7,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"` // relayer_pubkey is the compressed secp256k1 public key which managed by the // relayer group RelayerPubkey *types.PublicKey `protobuf:"bytes,8,opt,name=relayer_pubkey,json=relayerPubkey,proto3" json:"relayer_pubkey,omitempty"` }
Deposit defines the deposit transaction and its proof
func (*Deposit) Descriptor ¶
func (*Deposit) GetBlockNumber ¶
func (*Deposit) GetEvmAddress ¶
func (*Deposit) GetIntermediateProof ¶
func (*Deposit) GetNoWitnessTx ¶
func (*Deposit) GetOutputIndex ¶
func (*Deposit) GetRelayerPubkey ¶
func (*Deposit) GetTxIndex ¶
func (*Deposit) GetVersion ¶
func (*Deposit) MarshalToSizedBuffer ¶
func (*Deposit) ProtoMessage ¶
func (*Deposit) ProtoMessage()
func (*Deposit) XXX_DiscardUnknown ¶
func (m *Deposit) XXX_DiscardUnknown()
func (*Deposit) XXX_Marshal ¶
func (*Deposit) XXX_Unmarshal ¶
type DepositExecReceipt ¶
type DepositExecReceipt struct { Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Txout uint32 `protobuf:"varint,2,opt,name=txout,proto3" json:"txout,omitempty"` Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` Tax uint64 `protobuf:"varint,5,opt,name=tax,proto3" json:"tax,omitempty"` }
DepositReceipt
func (*DepositExecReceipt) Descriptor ¶
func (*DepositExecReceipt) Descriptor() ([]byte, []int)
func (*DepositExecReceipt) EthTx ¶
func (d *DepositExecReceipt) EthTx(seq uint64) *ethtypes.Transaction
func (*DepositExecReceipt) GetAddress ¶
func (m *DepositExecReceipt) GetAddress() []byte
func (*DepositExecReceipt) GetAmount ¶
func (m *DepositExecReceipt) GetAmount() uint64
func (*DepositExecReceipt) GetTax ¶
func (m *DepositExecReceipt) GetTax() uint64
func (*DepositExecReceipt) GetTxid ¶
func (m *DepositExecReceipt) GetTxid() []byte
func (*DepositExecReceipt) GetTxout ¶
func (m *DepositExecReceipt) GetTxout() uint32
func (*DepositExecReceipt) Marshal ¶
func (m *DepositExecReceipt) Marshal() (dAtA []byte, err error)
func (*DepositExecReceipt) MarshalTo ¶
func (m *DepositExecReceipt) MarshalTo(dAtA []byte) (int, error)
func (*DepositExecReceipt) MarshalToSizedBuffer ¶
func (m *DepositExecReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DepositExecReceipt) ProtoMessage ¶
func (*DepositExecReceipt) ProtoMessage()
func (*DepositExecReceipt) Reset ¶
func (m *DepositExecReceipt) Reset()
func (*DepositExecReceipt) Size ¶
func (m *DepositExecReceipt) Size() (n int)
func (*DepositExecReceipt) String ¶
func (m *DepositExecReceipt) String() string
func (*DepositExecReceipt) Unmarshal ¶
func (m *DepositExecReceipt) Unmarshal(dAtA []byte) error
func (*DepositExecReceipt) XXX_DiscardUnknown ¶
func (m *DepositExecReceipt) XXX_DiscardUnknown()
func (*DepositExecReceipt) XXX_Marshal ¶
func (m *DepositExecReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DepositExecReceipt) XXX_Merge ¶
func (m *DepositExecReceipt) XXX_Merge(src proto.Message)
func (*DepositExecReceipt) XXX_Size ¶
func (m *DepositExecReceipt) XXX_Size() int
func (*DepositExecReceipt) XXX_Unmarshal ¶
func (m *DepositExecReceipt) XXX_Unmarshal(b []byte) error
type DepositGenesis ¶
type DepositGenesis struct { Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Txout uint32 `protobuf:"varint,2,opt,name=txout,proto3" json:"txout,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` }
DepositGenesis
func (*DepositGenesis) Descriptor ¶
func (*DepositGenesis) Descriptor() ([]byte, []int)
func (*DepositGenesis) GetAmount ¶
func (m *DepositGenesis) GetAmount() uint64
func (*DepositGenesis) GetTxid ¶
func (m *DepositGenesis) GetTxid() []byte
func (*DepositGenesis) GetTxout ¶
func (m *DepositGenesis) GetTxout() uint32
func (*DepositGenesis) Marshal ¶
func (m *DepositGenesis) Marshal() (dAtA []byte, err error)
func (*DepositGenesis) MarshalToSizedBuffer ¶
func (m *DepositGenesis) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DepositGenesis) ProtoMessage ¶
func (*DepositGenesis) ProtoMessage()
func (*DepositGenesis) Reset ¶
func (m *DepositGenesis) Reset()
func (*DepositGenesis) Size ¶
func (m *DepositGenesis) Size() (n int)
func (*DepositGenesis) String ¶
func (m *DepositGenesis) String() string
func (*DepositGenesis) Unmarshal ¶
func (m *DepositGenesis) Unmarshal(dAtA []byte) error
func (*DepositGenesis) XXX_DiscardUnknown ¶
func (m *DepositGenesis) XXX_DiscardUnknown()
func (*DepositGenesis) XXX_Marshal ¶
func (m *DepositGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DepositGenesis) XXX_Merge ¶
func (m *DepositGenesis) XXX_Merge(src proto.Message)
func (*DepositGenesis) XXX_Size ¶
func (m *DepositGenesis) XXX_Size() int
func (*DepositGenesis) XXX_Unmarshal ¶
func (m *DepositGenesis) XXX_Unmarshal(b []byte) error
type EthTxQueue ¶
type EthTxQueue struct { BlockNumber uint64 `protobuf:"varint,1,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` Deposits []*DepositExecReceipt `protobuf:"bytes,2,rep,name=deposits,proto3" json:"deposits,omitempty"` PaidWithdrawals []*WithdrawalExecReceipt `protobuf:"bytes,3,rep,name=paid_withdrawals,json=paidWithdrawals,proto3" json:"paid_withdrawals,omitempty"` RejectedWithdrawals []uint64 `` /* 126-byte string literal not displayed */ }
EthTxQueue
func (*EthTxQueue) Descriptor ¶
func (*EthTxQueue) Descriptor() ([]byte, []int)
func (*EthTxQueue) GetBlockNumber ¶
func (m *EthTxQueue) GetBlockNumber() uint64
func (*EthTxQueue) GetDeposits ¶
func (m *EthTxQueue) GetDeposits() []*DepositExecReceipt
func (*EthTxQueue) GetPaidWithdrawals ¶
func (m *EthTxQueue) GetPaidWithdrawals() []*WithdrawalExecReceipt
func (*EthTxQueue) GetRejectedWithdrawals ¶
func (m *EthTxQueue) GetRejectedWithdrawals() []uint64
func (*EthTxQueue) Marshal ¶
func (m *EthTxQueue) Marshal() (dAtA []byte, err error)
func (*EthTxQueue) MarshalToSizedBuffer ¶
func (m *EthTxQueue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EthTxQueue) ProtoMessage ¶
func (*EthTxQueue) ProtoMessage()
func (*EthTxQueue) Reset ¶
func (m *EthTxQueue) Reset()
func (*EthTxQueue) Size ¶
func (m *EthTxQueue) Size() (n int)
func (*EthTxQueue) String ¶
func (m *EthTxQueue) String() string
func (*EthTxQueue) Unmarshal ¶
func (m *EthTxQueue) Unmarshal(dAtA []byte) error
func (*EthTxQueue) XXX_DiscardUnknown ¶
func (m *EthTxQueue) XXX_DiscardUnknown()
func (*EthTxQueue) XXX_Marshal ¶
func (m *EthTxQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EthTxQueue) XXX_Merge ¶
func (m *EthTxQueue) XXX_Merge(src proto.Message)
func (*EthTxQueue) XXX_Size ¶
func (m *EthTxQueue) XXX_Size() int
func (*EthTxQueue) XXX_Unmarshal ¶
func (m *EthTxQueue) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` BlockTip uint64 `protobuf:"varint,2,opt,name=block_tip,json=blockTip,proto3" json:"block_tip,omitempty"` BlockHashes [][]byte `protobuf:"bytes,3,rep,name=block_hashes,json=blockHashes,proto3" json:"block_hashes,omitempty"` EthTxNonce uint64 `protobuf:"varint,4,opt,name=eth_tx_nonce,json=ethTxNonce,proto3" json:"eth_tx_nonce,omitempty"` EthTxQueue EthTxQueue `protobuf:"bytes,5,opt,name=eth_tx_queue,json=ethTxQueue,proto3" json:"eth_tx_queue"` Pubkey *types.PublicKey `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Deposits []DepositGenesis `protobuf:"bytes,7,rep,name=deposits,proto3" json:"deposits"` Withdrawals []WithdrawalGenesis `protobuf:"bytes,8,rep,name=withdrawals,proto3" json:"withdrawals"` Processing []ProcessingGenesis `protobuf:"bytes,9,rep,name=processing,proto3" json:"processing"` LatestProcessId uint64 `protobuf:"varint,10,opt,name=latest_process_id,json=latestProcessId,proto3" json:"latest_process_id,omitempty"` }
GenesisState defines the bitcoin module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBlockHashes ¶
func (m *GenesisState) GetBlockHashes() [][]byte
func (*GenesisState) GetBlockTip ¶
func (m *GenesisState) GetBlockTip() uint64
func (*GenesisState) GetDeposits ¶
func (m *GenesisState) GetDeposits() []DepositGenesis
func (*GenesisState) GetEthTxNonce ¶
func (m *GenesisState) GetEthTxNonce() uint64
func (*GenesisState) GetEthTxQueue ¶
func (m *GenesisState) GetEthTxQueue() EthTxQueue
func (*GenesisState) GetLatestProcessId ¶
func (m *GenesisState) GetLatestProcessId() uint64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetProcessing ¶
func (m *GenesisState) GetProcessing() []ProcessingGenesis
func (*GenesisState) GetPubkey ¶
func (m *GenesisState) GetPubkey() *types.PublicKey
func (*GenesisState) GetWithdrawals ¶
func (m *GenesisState) GetWithdrawals() []WithdrawalGenesis
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 MsgApproveCancellation ¶
type MsgApproveCancellation struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` Id []uint64 `protobuf:"varint,2,rep,packed,name=id,proto3" json:"id,omitempty"` }
MsgApproveCancellation
func (*MsgApproveCancellation) Descriptor ¶
func (*MsgApproveCancellation) Descriptor() ([]byte, []int)
func (*MsgApproveCancellation) GetId ¶
func (m *MsgApproveCancellation) GetId() []uint64
func (*MsgApproveCancellation) GetProposer ¶
func (m *MsgApproveCancellation) GetProposer() string
func (*MsgApproveCancellation) Marshal ¶
func (m *MsgApproveCancellation) Marshal() (dAtA []byte, err error)
func (*MsgApproveCancellation) MarshalTo ¶
func (m *MsgApproveCancellation) MarshalTo(dAtA []byte) (int, error)
func (*MsgApproveCancellation) MarshalToSizedBuffer ¶
func (m *MsgApproveCancellation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgApproveCancellation) ProtoMessage ¶
func (*MsgApproveCancellation) ProtoMessage()
func (*MsgApproveCancellation) Reset ¶
func (m *MsgApproveCancellation) Reset()
func (*MsgApproveCancellation) Size ¶
func (m *MsgApproveCancellation) Size() (n int)
func (*MsgApproveCancellation) String ¶
func (m *MsgApproveCancellation) String() string
func (*MsgApproveCancellation) Unmarshal ¶
func (m *MsgApproveCancellation) Unmarshal(dAtA []byte) error
func (*MsgApproveCancellation) Validate ¶
func (req *MsgApproveCancellation) Validate() error
func (*MsgApproveCancellation) XXX_DiscardUnknown ¶
func (m *MsgApproveCancellation) XXX_DiscardUnknown()
func (*MsgApproveCancellation) XXX_Marshal ¶
func (m *MsgApproveCancellation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgApproveCancellation) XXX_Merge ¶
func (m *MsgApproveCancellation) XXX_Merge(src proto.Message)
func (*MsgApproveCancellation) XXX_Size ¶
func (m *MsgApproveCancellation) XXX_Size() int
func (*MsgApproveCancellation) XXX_Unmarshal ¶
func (m *MsgApproveCancellation) XXX_Unmarshal(b []byte) error
type MsgApproveCancellationResponse ¶
type MsgApproveCancellationResponse struct { }
MsgApproveCancellationResponse
func (*MsgApproveCancellationResponse) Descriptor ¶
func (*MsgApproveCancellationResponse) Descriptor() ([]byte, []int)
func (*MsgApproveCancellationResponse) Marshal ¶
func (m *MsgApproveCancellationResponse) Marshal() (dAtA []byte, err error)
func (*MsgApproveCancellationResponse) MarshalTo ¶
func (m *MsgApproveCancellationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgApproveCancellationResponse) MarshalToSizedBuffer ¶
func (m *MsgApproveCancellationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgApproveCancellationResponse) ProtoMessage ¶
func (*MsgApproveCancellationResponse) ProtoMessage()
func (*MsgApproveCancellationResponse) Reset ¶
func (m *MsgApproveCancellationResponse) Reset()
func (*MsgApproveCancellationResponse) Size ¶
func (m *MsgApproveCancellationResponse) Size() (n int)
func (*MsgApproveCancellationResponse) String ¶
func (m *MsgApproveCancellationResponse) String() string
func (*MsgApproveCancellationResponse) Unmarshal ¶
func (m *MsgApproveCancellationResponse) Unmarshal(dAtA []byte) error
func (*MsgApproveCancellationResponse) XXX_DiscardUnknown ¶
func (m *MsgApproveCancellationResponse) XXX_DiscardUnknown()
func (*MsgApproveCancellationResponse) XXX_Marshal ¶
func (m *MsgApproveCancellationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgApproveCancellationResponse) XXX_Merge ¶
func (m *MsgApproveCancellationResponse) XXX_Merge(src proto.Message)
func (*MsgApproveCancellationResponse) XXX_Size ¶
func (m *MsgApproveCancellationResponse) XXX_Size() int
func (*MsgApproveCancellationResponse) XXX_Unmarshal ¶
func (m *MsgApproveCancellationResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // NewBlockHashs adds new bitcoin block hashes // the block hashes are not only for deposit/withdrawal spv, but also a // on-chain oracle for dapps // ** it requires off-chain vote by relayer group // ** the block should have a hard confirmation number which incosistent with // the param. // ** every block after startBlockNumber in the geneis should be submitted on // chain NewBlockHashes(ctx context.Context, in *MsgNewBlockHashes, opts ...grpc.CallOption) (*MsgNewBlockHashesResponse, error) // NewDeposit adds new deposits // ** it doesn't need off-chain vote process since we have spv NewDeposits(ctx context.Context, in *MsgNewDeposits, opts ...grpc.CallOption) (*MsgNewDepositsResponse, error) // NewPubkey adds new deposit public key // ** it requires off-chain vote by relayer group NewPubkey(ctx context.Context, in *MsgNewPubkey, opts ...grpc.CallOption) (*MsgNewPubkeyResponse, error) // ProcessWithdrawal submits a non-signed raw tx and its vote for the // withdrawal requests. This is the first step to process withdrawals // ** it requires off-chain vote by relayer group // ** the output index and withdrawal id list are in one-to-one correspondence // ** the tx price should not be larger than withdrawal request // // It informs every voter that the proposal has been approved and they can // process signing then. The most relayer member can construct the final // signed transaction and submit the transaction to the bitcoin chain when the // signing process is finished Since the signing is an off chain process, so // relayer proposer doesn't need to submit the signed transaction to the chain ProcessWithdrawal(ctx context.Context, in *MsgProcessWithdrawal, opts ...grpc.CallOption) (*MsgProcessWithdrawalResponse, error) // ReplaceWithdrawal replaces a withdrawal by increasing fee // ** the output for the withdrawal should be not changed, but you can change // the value // ** the new tx fee should be larger than before // ** it requires off-chain vote by relayer group ReplaceWithdrawal(ctx context.Context, in *MsgReplaceWithdrawal, opts ...grpc.CallOption) (*MsgReplaceWithdrawalResponse, error) // FinalizeWithdrawal finlizes withdrawals and informs the chain to create the // withdrawal receipts This is the final step to process withdrawals // // ** proposer should provide spv to prove the withdarwal is confirmed // ** it doesn't need off-chain vote process FinalizeWithdrawal(ctx context.Context, in *MsgFinalizeWithdrawal, opts ...grpc.CallOption) (*MsgFinalizeWithdrawalResponse, error) // ApproveCancellation approves cancelation requests ApproveCancellation(ctx context.Context, in *MsgApproveCancellation, opts ...grpc.CallOption) (*MsgApproveCancellationResponse, error) // NewConsolidation initializes a consolidation request to aggregate utxo set // ** it requires off-chain vote by relayer group NewConsolidation(ctx context.Context, in *MsgNewConsolidation, opts ...grpc.CallOption) (*MsgNewConsolidationResponse, 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 MsgFinalizeWithdrawal ¶
type MsgFinalizeWithdrawal struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // the process id of the withdrawals to finalize Pid uint64 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // the final confirmed txid for the withdrawal proposal Txid []byte `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"` // block_number the block number that transaction located at BlockNumber uint64 `protobuf:"varint,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // tx_index is the index of transaction in the block TxIndex uint32 `protobuf:"varint,5,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` // intermediate proof is the proof without the txid and merkel root IntermediateProof []byte `protobuf:"bytes,6,opt,name=intermediate_proof,json=intermediateProof,proto3" json:"intermediate_proof,omitempty"` // block_header is the raw bitcoin block header bytes BlockHeader []byte `protobuf:"bytes,7,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"` }
MsgFinalizeWithdrawal
func (*MsgFinalizeWithdrawal) Descriptor ¶
func (*MsgFinalizeWithdrawal) Descriptor() ([]byte, []int)
func (*MsgFinalizeWithdrawal) GetBlockHeader ¶
func (m *MsgFinalizeWithdrawal) GetBlockHeader() []byte
func (*MsgFinalizeWithdrawal) GetBlockNumber ¶
func (m *MsgFinalizeWithdrawal) GetBlockNumber() uint64
func (*MsgFinalizeWithdrawal) GetIntermediateProof ¶
func (m *MsgFinalizeWithdrawal) GetIntermediateProof() []byte
func (*MsgFinalizeWithdrawal) GetPid ¶
func (m *MsgFinalizeWithdrawal) GetPid() uint64
func (*MsgFinalizeWithdrawal) GetProposer ¶
func (m *MsgFinalizeWithdrawal) GetProposer() string
func (*MsgFinalizeWithdrawal) GetTxIndex ¶
func (m *MsgFinalizeWithdrawal) GetTxIndex() uint32
func (*MsgFinalizeWithdrawal) GetTxid ¶
func (m *MsgFinalizeWithdrawal) GetTxid() []byte
func (*MsgFinalizeWithdrawal) Marshal ¶
func (m *MsgFinalizeWithdrawal) Marshal() (dAtA []byte, err error)
func (*MsgFinalizeWithdrawal) MarshalTo ¶
func (m *MsgFinalizeWithdrawal) MarshalTo(dAtA []byte) (int, error)
func (*MsgFinalizeWithdrawal) MarshalToSizedBuffer ¶
func (m *MsgFinalizeWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFinalizeWithdrawal) ProtoMessage ¶
func (*MsgFinalizeWithdrawal) ProtoMessage()
func (*MsgFinalizeWithdrawal) Reset ¶
func (m *MsgFinalizeWithdrawal) Reset()
func (*MsgFinalizeWithdrawal) Size ¶
func (m *MsgFinalizeWithdrawal) Size() (n int)
func (*MsgFinalizeWithdrawal) String ¶
func (m *MsgFinalizeWithdrawal) String() string
func (*MsgFinalizeWithdrawal) Unmarshal ¶
func (m *MsgFinalizeWithdrawal) Unmarshal(dAtA []byte) error
func (*MsgFinalizeWithdrawal) Validate ¶
func (req *MsgFinalizeWithdrawal) Validate() error
func (*MsgFinalizeWithdrawal) XXX_DiscardUnknown ¶
func (m *MsgFinalizeWithdrawal) XXX_DiscardUnknown()
func (*MsgFinalizeWithdrawal) XXX_Marshal ¶
func (m *MsgFinalizeWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFinalizeWithdrawal) XXX_Merge ¶
func (m *MsgFinalizeWithdrawal) XXX_Merge(src proto.Message)
func (*MsgFinalizeWithdrawal) XXX_Size ¶
func (m *MsgFinalizeWithdrawal) XXX_Size() int
func (*MsgFinalizeWithdrawal) XXX_Unmarshal ¶
func (m *MsgFinalizeWithdrawal) XXX_Unmarshal(b []byte) error
type MsgFinalizeWithdrawalResponse ¶
type MsgFinalizeWithdrawalResponse struct { }
MsgFinalizeWithdrawalResponse
func (*MsgFinalizeWithdrawalResponse) Descriptor ¶
func (*MsgFinalizeWithdrawalResponse) Descriptor() ([]byte, []int)
func (*MsgFinalizeWithdrawalResponse) Marshal ¶
func (m *MsgFinalizeWithdrawalResponse) Marshal() (dAtA []byte, err error)
func (*MsgFinalizeWithdrawalResponse) MarshalTo ¶
func (m *MsgFinalizeWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFinalizeWithdrawalResponse) MarshalToSizedBuffer ¶
func (m *MsgFinalizeWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFinalizeWithdrawalResponse) ProtoMessage ¶
func (*MsgFinalizeWithdrawalResponse) ProtoMessage()
func (*MsgFinalizeWithdrawalResponse) Reset ¶
func (m *MsgFinalizeWithdrawalResponse) Reset()
func (*MsgFinalizeWithdrawalResponse) Size ¶
func (m *MsgFinalizeWithdrawalResponse) Size() (n int)
func (*MsgFinalizeWithdrawalResponse) String ¶
func (m *MsgFinalizeWithdrawalResponse) String() string
func (*MsgFinalizeWithdrawalResponse) Unmarshal ¶
func (m *MsgFinalizeWithdrawalResponse) Unmarshal(dAtA []byte) error
func (*MsgFinalizeWithdrawalResponse) XXX_DiscardUnknown ¶
func (m *MsgFinalizeWithdrawalResponse) XXX_DiscardUnknown()
func (*MsgFinalizeWithdrawalResponse) XXX_Marshal ¶
func (m *MsgFinalizeWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFinalizeWithdrawalResponse) XXX_Merge ¶
func (m *MsgFinalizeWithdrawalResponse) XXX_Merge(src proto.Message)
func (*MsgFinalizeWithdrawalResponse) XXX_Size ¶
func (m *MsgFinalizeWithdrawalResponse) XXX_Size() int
func (*MsgFinalizeWithdrawalResponse) XXX_Unmarshal ¶
func (m *MsgFinalizeWithdrawalResponse) XXX_Unmarshal(b []byte) error
type MsgNewBlockHashes ¶
type MsgNewBlockHashes struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` Vote *types.Votes `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` StartBlockNumber uint64 `protobuf:"varint,3,opt,name=start_block_number,json=startBlockNumber,proto3" json:"start_block_number,omitempty"` BlockHash [][]byte `protobuf:"bytes,4,rep,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` }
MsgNewBlockHashes represents a solid block header is confirmed by relayer group
func (*MsgNewBlockHashes) Descriptor ¶
func (*MsgNewBlockHashes) Descriptor() ([]byte, []int)
func (*MsgNewBlockHashes) GetBlockHash ¶
func (m *MsgNewBlockHashes) GetBlockHash() [][]byte
func (*MsgNewBlockHashes) GetProposer ¶
func (m *MsgNewBlockHashes) GetProposer() string
func (*MsgNewBlockHashes) GetStartBlockNumber ¶
func (m *MsgNewBlockHashes) GetStartBlockNumber() uint64
func (*MsgNewBlockHashes) GetVote ¶
func (m *MsgNewBlockHashes) GetVote() *types.Votes
func (*MsgNewBlockHashes) Marshal ¶
func (m *MsgNewBlockHashes) Marshal() (dAtA []byte, err error)
func (*MsgNewBlockHashes) MarshalTo ¶
func (m *MsgNewBlockHashes) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewBlockHashes) MarshalToSizedBuffer ¶
func (m *MsgNewBlockHashes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewBlockHashes) MethodName ¶
func (req *MsgNewBlockHashes) MethodName() string
func (*MsgNewBlockHashes) ProtoMessage ¶
func (*MsgNewBlockHashes) ProtoMessage()
func (*MsgNewBlockHashes) Reset ¶
func (m *MsgNewBlockHashes) Reset()
func (*MsgNewBlockHashes) Size ¶
func (m *MsgNewBlockHashes) Size() (n int)
func (*MsgNewBlockHashes) String ¶
func (m *MsgNewBlockHashes) String() string
func (*MsgNewBlockHashes) Unmarshal ¶
func (m *MsgNewBlockHashes) Unmarshal(dAtA []byte) error
func (*MsgNewBlockHashes) Validate ¶
func (req *MsgNewBlockHashes) Validate() error
func (*MsgNewBlockHashes) VoteSigDoc ¶
func (req *MsgNewBlockHashes) VoteSigDoc() []byte
func (*MsgNewBlockHashes) XXX_DiscardUnknown ¶
func (m *MsgNewBlockHashes) XXX_DiscardUnknown()
func (*MsgNewBlockHashes) XXX_Marshal ¶
func (m *MsgNewBlockHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewBlockHashes) XXX_Merge ¶
func (m *MsgNewBlockHashes) XXX_Merge(src proto.Message)
func (*MsgNewBlockHashes) XXX_Size ¶
func (m *MsgNewBlockHashes) XXX_Size() int
func (*MsgNewBlockHashes) XXX_Unmarshal ¶
func (m *MsgNewBlockHashes) XXX_Unmarshal(b []byte) error
type MsgNewBlockHashesResponse ¶
type MsgNewBlockHashesResponse struct { }
MsgNewBlockHashesResponse defines the Msg/NewHeaders response type.
func (*MsgNewBlockHashesResponse) Descriptor ¶
func (*MsgNewBlockHashesResponse) Descriptor() ([]byte, []int)
func (*MsgNewBlockHashesResponse) Marshal ¶
func (m *MsgNewBlockHashesResponse) Marshal() (dAtA []byte, err error)
func (*MsgNewBlockHashesResponse) MarshalTo ¶
func (m *MsgNewBlockHashesResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewBlockHashesResponse) MarshalToSizedBuffer ¶
func (m *MsgNewBlockHashesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewBlockHashesResponse) ProtoMessage ¶
func (*MsgNewBlockHashesResponse) ProtoMessage()
func (*MsgNewBlockHashesResponse) Reset ¶
func (m *MsgNewBlockHashesResponse) Reset()
func (*MsgNewBlockHashesResponse) Size ¶
func (m *MsgNewBlockHashesResponse) Size() (n int)
func (*MsgNewBlockHashesResponse) String ¶
func (m *MsgNewBlockHashesResponse) String() string
func (*MsgNewBlockHashesResponse) Unmarshal ¶
func (m *MsgNewBlockHashesResponse) Unmarshal(dAtA []byte) error
func (*MsgNewBlockHashesResponse) XXX_DiscardUnknown ¶
func (m *MsgNewBlockHashesResponse) XXX_DiscardUnknown()
func (*MsgNewBlockHashesResponse) XXX_Marshal ¶
func (m *MsgNewBlockHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewBlockHashesResponse) XXX_Merge ¶
func (m *MsgNewBlockHashesResponse) XXX_Merge(src proto.Message)
func (*MsgNewBlockHashesResponse) XXX_Size ¶
func (m *MsgNewBlockHashesResponse) XXX_Size() int
func (*MsgNewBlockHashesResponse) XXX_Unmarshal ¶
func (m *MsgNewBlockHashesResponse) XXX_Unmarshal(b []byte) error
type MsgNewConsolidation ¶
type MsgNewConsolidation struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` NoWitnessTx []byte `protobuf:"bytes,2,opt,name=no_witness_tx,json=noWitnessTx,proto3" json:"no_witness_tx,omitempty"` Vote *types.Votes `protobuf:"bytes,3,opt,name=vote,proto3" json:"vote,omitempty"` }
MsgNewConsolidation
func (*MsgNewConsolidation) Descriptor ¶
func (*MsgNewConsolidation) Descriptor() ([]byte, []int)
func (*MsgNewConsolidation) GetNoWitnessTx ¶
func (m *MsgNewConsolidation) GetNoWitnessTx() []byte
func (*MsgNewConsolidation) GetProposer ¶
func (m *MsgNewConsolidation) GetProposer() string
func (*MsgNewConsolidation) GetVote ¶
func (m *MsgNewConsolidation) GetVote() *types.Votes
func (*MsgNewConsolidation) Marshal ¶
func (m *MsgNewConsolidation) Marshal() (dAtA []byte, err error)
func (*MsgNewConsolidation) MarshalTo ¶
func (m *MsgNewConsolidation) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewConsolidation) MarshalToSizedBuffer ¶
func (m *MsgNewConsolidation) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewConsolidation) MethodName ¶
func (req *MsgNewConsolidation) MethodName() string
func (*MsgNewConsolidation) ProtoMessage ¶
func (*MsgNewConsolidation) ProtoMessage()
func (*MsgNewConsolidation) Reset ¶
func (m *MsgNewConsolidation) Reset()
func (*MsgNewConsolidation) Size ¶
func (m *MsgNewConsolidation) Size() (n int)
func (*MsgNewConsolidation) String ¶
func (m *MsgNewConsolidation) String() string
func (*MsgNewConsolidation) Unmarshal ¶
func (m *MsgNewConsolidation) Unmarshal(dAtA []byte) error
func (*MsgNewConsolidation) Validate ¶
func (req *MsgNewConsolidation) Validate() error
func (*MsgNewConsolidation) VoteSigDoc ¶
func (req *MsgNewConsolidation) VoteSigDoc() []byte
func (*MsgNewConsolidation) XXX_DiscardUnknown ¶
func (m *MsgNewConsolidation) XXX_DiscardUnknown()
func (*MsgNewConsolidation) XXX_Marshal ¶
func (m *MsgNewConsolidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewConsolidation) XXX_Merge ¶
func (m *MsgNewConsolidation) XXX_Merge(src proto.Message)
func (*MsgNewConsolidation) XXX_Size ¶
func (m *MsgNewConsolidation) XXX_Size() int
func (*MsgNewConsolidation) XXX_Unmarshal ¶
func (m *MsgNewConsolidation) XXX_Unmarshal(b []byte) error
type MsgNewConsolidationResponse ¶
type MsgNewConsolidationResponse struct { }
MsgNewConsolidationResponse
func (*MsgNewConsolidationResponse) Descriptor ¶
func (*MsgNewConsolidationResponse) Descriptor() ([]byte, []int)
func (*MsgNewConsolidationResponse) Marshal ¶
func (m *MsgNewConsolidationResponse) Marshal() (dAtA []byte, err error)
func (*MsgNewConsolidationResponse) MarshalTo ¶
func (m *MsgNewConsolidationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewConsolidationResponse) MarshalToSizedBuffer ¶
func (m *MsgNewConsolidationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewConsolidationResponse) ProtoMessage ¶
func (*MsgNewConsolidationResponse) ProtoMessage()
func (*MsgNewConsolidationResponse) Reset ¶
func (m *MsgNewConsolidationResponse) Reset()
func (*MsgNewConsolidationResponse) Size ¶
func (m *MsgNewConsolidationResponse) Size() (n int)
func (*MsgNewConsolidationResponse) String ¶
func (m *MsgNewConsolidationResponse) String() string
func (*MsgNewConsolidationResponse) Unmarshal ¶
func (m *MsgNewConsolidationResponse) Unmarshal(dAtA []byte) error
func (*MsgNewConsolidationResponse) XXX_DiscardUnknown ¶
func (m *MsgNewConsolidationResponse) XXX_DiscardUnknown()
func (*MsgNewConsolidationResponse) XXX_Marshal ¶
func (m *MsgNewConsolidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewConsolidationResponse) XXX_Merge ¶
func (m *MsgNewConsolidationResponse) XXX_Merge(src proto.Message)
func (*MsgNewConsolidationResponse) XXX_Size ¶
func (m *MsgNewConsolidationResponse) XXX_Size() int
func (*MsgNewConsolidationResponse) XXX_Unmarshal ¶
func (m *MsgNewConsolidationResponse) XXX_Unmarshal(b []byte) error
type MsgNewDeposits ¶
type MsgNewDeposits struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // block_headers is an array which includes a height and raw header pair // the raw block header is always 80 bytes // https://github.com/btcsuite/btcd/blob/24eb815168f49dea84767817717a11bd7928eb23/wire/blockheader.go#L65 BlockHeaders []*BlockHeader `protobuf:"bytes,2,rep,name=block_headers,json=blockHeaders,proto3" json:"block_headers,omitempty"` Deposits []*Deposit `protobuf:"bytes,3,rep,name=deposits,proto3" json:"deposits,omitempty"` }
MsgNewDeposits represents new deposits
func (*MsgNewDeposits) BlockHeadersMap ¶
func (req *MsgNewDeposits) BlockHeadersMap() (map[uint64][]byte, error)
func (*MsgNewDeposits) Descriptor ¶
func (*MsgNewDeposits) Descriptor() ([]byte, []int)
func (*MsgNewDeposits) GetBlockHeaders ¶
func (m *MsgNewDeposits) GetBlockHeaders() []*BlockHeader
func (*MsgNewDeposits) GetDeposits ¶
func (m *MsgNewDeposits) GetDeposits() []*Deposit
func (*MsgNewDeposits) GetProposer ¶
func (m *MsgNewDeposits) GetProposer() string
func (*MsgNewDeposits) Marshal ¶
func (m *MsgNewDeposits) Marshal() (dAtA []byte, err error)
func (*MsgNewDeposits) MarshalToSizedBuffer ¶
func (m *MsgNewDeposits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewDeposits) ProtoMessage ¶
func (*MsgNewDeposits) ProtoMessage()
func (*MsgNewDeposits) Reset ¶
func (m *MsgNewDeposits) Reset()
func (*MsgNewDeposits) Size ¶
func (m *MsgNewDeposits) Size() (n int)
func (*MsgNewDeposits) String ¶
func (m *MsgNewDeposits) String() string
func (*MsgNewDeposits) Unmarshal ¶
func (m *MsgNewDeposits) Unmarshal(dAtA []byte) error
func (*MsgNewDeposits) Validate ¶
func (req *MsgNewDeposits) Validate() error
func (*MsgNewDeposits) XXX_DiscardUnknown ¶
func (m *MsgNewDeposits) XXX_DiscardUnknown()
func (*MsgNewDeposits) XXX_Marshal ¶
func (m *MsgNewDeposits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewDeposits) XXX_Merge ¶
func (m *MsgNewDeposits) XXX_Merge(src proto.Message)
func (*MsgNewDeposits) XXX_Size ¶
func (m *MsgNewDeposits) XXX_Size() int
func (*MsgNewDeposits) XXX_Unmarshal ¶
func (m *MsgNewDeposits) XXX_Unmarshal(b []byte) error
type MsgNewDepositsResponse ¶
type MsgNewDepositsResponse struct { }
MsgNewDepositsResponse defines the Msg/NewDeposits response type.
func (*MsgNewDepositsResponse) Descriptor ¶
func (*MsgNewDepositsResponse) Descriptor() ([]byte, []int)
func (*MsgNewDepositsResponse) Marshal ¶
func (m *MsgNewDepositsResponse) Marshal() (dAtA []byte, err error)
func (*MsgNewDepositsResponse) MarshalTo ¶
func (m *MsgNewDepositsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewDepositsResponse) MarshalToSizedBuffer ¶
func (m *MsgNewDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewDepositsResponse) ProtoMessage ¶
func (*MsgNewDepositsResponse) ProtoMessage()
func (*MsgNewDepositsResponse) Reset ¶
func (m *MsgNewDepositsResponse) Reset()
func (*MsgNewDepositsResponse) Size ¶
func (m *MsgNewDepositsResponse) Size() (n int)
func (*MsgNewDepositsResponse) String ¶
func (m *MsgNewDepositsResponse) String() string
func (*MsgNewDepositsResponse) Unmarshal ¶
func (m *MsgNewDepositsResponse) Unmarshal(dAtA []byte) error
func (*MsgNewDepositsResponse) XXX_DiscardUnknown ¶
func (m *MsgNewDepositsResponse) XXX_DiscardUnknown()
func (*MsgNewDepositsResponse) XXX_Marshal ¶
func (m *MsgNewDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewDepositsResponse) XXX_Merge ¶
func (m *MsgNewDepositsResponse) XXX_Merge(src proto.Message)
func (*MsgNewDepositsResponse) XXX_Size ¶
func (m *MsgNewDepositsResponse) XXX_Size() int
func (*MsgNewDepositsResponse) XXX_Unmarshal ¶
func (m *MsgNewDepositsResponse) XXX_Unmarshal(b []byte) error
type MsgNewPubkey ¶
type MsgNewPubkey struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` Vote *types.Votes `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` Pubkey *types.PublicKey `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` }
MsgNewPubkey is the Msg/NewPubkey request type.
func (*MsgNewPubkey) Descriptor ¶
func (*MsgNewPubkey) Descriptor() ([]byte, []int)
func (*MsgNewPubkey) GetProposer ¶
func (m *MsgNewPubkey) GetProposer() string
func (*MsgNewPubkey) GetPubkey ¶
func (m *MsgNewPubkey) GetPubkey() *types.PublicKey
func (*MsgNewPubkey) GetVote ¶
func (m *MsgNewPubkey) GetVote() *types.Votes
func (*MsgNewPubkey) Marshal ¶
func (m *MsgNewPubkey) Marshal() (dAtA []byte, err error)
func (*MsgNewPubkey) MarshalToSizedBuffer ¶
func (m *MsgNewPubkey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewPubkey) MethodName ¶
func (req *MsgNewPubkey) MethodName() string
func (*MsgNewPubkey) ProtoMessage ¶
func (*MsgNewPubkey) ProtoMessage()
func (*MsgNewPubkey) Reset ¶
func (m *MsgNewPubkey) Reset()
func (*MsgNewPubkey) Size ¶
func (m *MsgNewPubkey) Size() (n int)
func (*MsgNewPubkey) String ¶
func (m *MsgNewPubkey) String() string
func (*MsgNewPubkey) Unmarshal ¶
func (m *MsgNewPubkey) Unmarshal(dAtA []byte) error
func (*MsgNewPubkey) Validate ¶
func (req *MsgNewPubkey) Validate() error
func (*MsgNewPubkey) VoteSigDoc ¶
func (req *MsgNewPubkey) VoteSigDoc() []byte
func (*MsgNewPubkey) XXX_DiscardUnknown ¶
func (m *MsgNewPubkey) XXX_DiscardUnknown()
func (*MsgNewPubkey) XXX_Marshal ¶
func (m *MsgNewPubkey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewPubkey) XXX_Merge ¶
func (m *MsgNewPubkey) XXX_Merge(src proto.Message)
func (*MsgNewPubkey) XXX_Size ¶
func (m *MsgNewPubkey) XXX_Size() int
func (*MsgNewPubkey) XXX_Unmarshal ¶
func (m *MsgNewPubkey) XXX_Unmarshal(b []byte) error
type MsgNewPubkeyResponse ¶
type MsgNewPubkeyResponse struct { }
MsgNewPubkeyResponse is the Msg/NewPubkey response type.
func (*MsgNewPubkeyResponse) Descriptor ¶
func (*MsgNewPubkeyResponse) Descriptor() ([]byte, []int)
func (*MsgNewPubkeyResponse) Marshal ¶
func (m *MsgNewPubkeyResponse) Marshal() (dAtA []byte, err error)
func (*MsgNewPubkeyResponse) MarshalTo ¶
func (m *MsgNewPubkeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgNewPubkeyResponse) MarshalToSizedBuffer ¶
func (m *MsgNewPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgNewPubkeyResponse) ProtoMessage ¶
func (*MsgNewPubkeyResponse) ProtoMessage()
func (*MsgNewPubkeyResponse) Reset ¶
func (m *MsgNewPubkeyResponse) Reset()
func (*MsgNewPubkeyResponse) Size ¶
func (m *MsgNewPubkeyResponse) Size() (n int)
func (*MsgNewPubkeyResponse) String ¶
func (m *MsgNewPubkeyResponse) String() string
func (*MsgNewPubkeyResponse) Unmarshal ¶
func (m *MsgNewPubkeyResponse) Unmarshal(dAtA []byte) error
func (*MsgNewPubkeyResponse) XXX_DiscardUnknown ¶
func (m *MsgNewPubkeyResponse) XXX_DiscardUnknown()
func (*MsgNewPubkeyResponse) XXX_Marshal ¶
func (m *MsgNewPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgNewPubkeyResponse) XXX_Merge ¶
func (m *MsgNewPubkeyResponse) XXX_Merge(src proto.Message)
func (*MsgNewPubkeyResponse) XXX_Size ¶
func (m *MsgNewPubkeyResponse) XXX_Size() int
func (*MsgNewPubkeyResponse) XXX_Unmarshal ¶
func (m *MsgNewPubkeyResponse) XXX_Unmarshal(b []byte) error
type MsgProcessWithdrawal ¶
type MsgProcessWithdrawal struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` Vote *types.Votes `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` // the withdraw id list Id []uint64 `protobuf:"varint,3,rep,packed,name=id,proto3" json:"id,omitempty"` NoWitnessTx []byte `protobuf:"bytes,4,opt,name=no_witness_tx,json=noWitnessTx,proto3" json:"no_witness_tx,omitempty"` // tx fee in satoshi TxFee uint64 `protobuf:"varint,5,opt,name=tx_fee,json=txFee,proto3" json:"tx_fee,omitempty"` }
MsgProcessWithdrawal
func (*MsgProcessWithdrawal) Descriptor ¶
func (*MsgProcessWithdrawal) Descriptor() ([]byte, []int)
func (*MsgProcessWithdrawal) GetId ¶
func (m *MsgProcessWithdrawal) GetId() []uint64
func (*MsgProcessWithdrawal) GetNoWitnessTx ¶
func (m *MsgProcessWithdrawal) GetNoWitnessTx() []byte
func (*MsgProcessWithdrawal) GetProposer ¶
func (m *MsgProcessWithdrawal) GetProposer() string
func (*MsgProcessWithdrawal) GetTxFee ¶
func (m *MsgProcessWithdrawal) GetTxFee() uint64
func (*MsgProcessWithdrawal) GetVote ¶
func (m *MsgProcessWithdrawal) GetVote() *types.Votes
func (*MsgProcessWithdrawal) Marshal ¶
func (m *MsgProcessWithdrawal) Marshal() (dAtA []byte, err error)
func (*MsgProcessWithdrawal) MarshalTo ¶
func (m *MsgProcessWithdrawal) MarshalTo(dAtA []byte) (int, error)
func (*MsgProcessWithdrawal) MarshalToSizedBuffer ¶
func (m *MsgProcessWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProcessWithdrawal) MethodName ¶
func (req *MsgProcessWithdrawal) MethodName() string
func (*MsgProcessWithdrawal) ProtoMessage ¶
func (*MsgProcessWithdrawal) ProtoMessage()
func (*MsgProcessWithdrawal) Reset ¶
func (m *MsgProcessWithdrawal) Reset()
func (*MsgProcessWithdrawal) Size ¶
func (m *MsgProcessWithdrawal) Size() (n int)
func (*MsgProcessWithdrawal) String ¶
func (m *MsgProcessWithdrawal) String() string
func (*MsgProcessWithdrawal) Unmarshal ¶
func (m *MsgProcessWithdrawal) Unmarshal(dAtA []byte) error
func (*MsgProcessWithdrawal) Validate ¶
func (req *MsgProcessWithdrawal) Validate() error
func (*MsgProcessWithdrawal) VoteSigDoc ¶
func (req *MsgProcessWithdrawal) VoteSigDoc() []byte
func (*MsgProcessWithdrawal) XXX_DiscardUnknown ¶
func (m *MsgProcessWithdrawal) XXX_DiscardUnknown()
func (*MsgProcessWithdrawal) XXX_Marshal ¶
func (m *MsgProcessWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProcessWithdrawal) XXX_Merge ¶
func (m *MsgProcessWithdrawal) XXX_Merge(src proto.Message)
func (*MsgProcessWithdrawal) XXX_Size ¶
func (m *MsgProcessWithdrawal) XXX_Size() int
func (*MsgProcessWithdrawal) XXX_Unmarshal ¶
func (m *MsgProcessWithdrawal) XXX_Unmarshal(b []byte) error
type MsgProcessWithdrawalResponse ¶
type MsgProcessWithdrawalResponse struct { }
MsgProcessWithdrawalResponse
func (*MsgProcessWithdrawalResponse) Descriptor ¶
func (*MsgProcessWithdrawalResponse) Descriptor() ([]byte, []int)
func (*MsgProcessWithdrawalResponse) Marshal ¶
func (m *MsgProcessWithdrawalResponse) Marshal() (dAtA []byte, err error)
func (*MsgProcessWithdrawalResponse) MarshalTo ¶
func (m *MsgProcessWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgProcessWithdrawalResponse) MarshalToSizedBuffer ¶
func (m *MsgProcessWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProcessWithdrawalResponse) ProtoMessage ¶
func (*MsgProcessWithdrawalResponse) ProtoMessage()
func (*MsgProcessWithdrawalResponse) Reset ¶
func (m *MsgProcessWithdrawalResponse) Reset()
func (*MsgProcessWithdrawalResponse) Size ¶
func (m *MsgProcessWithdrawalResponse) Size() (n int)
func (*MsgProcessWithdrawalResponse) String ¶
func (m *MsgProcessWithdrawalResponse) String() string
func (*MsgProcessWithdrawalResponse) Unmarshal ¶
func (m *MsgProcessWithdrawalResponse) Unmarshal(dAtA []byte) error
func (*MsgProcessWithdrawalResponse) XXX_DiscardUnknown ¶
func (m *MsgProcessWithdrawalResponse) XXX_DiscardUnknown()
func (*MsgProcessWithdrawalResponse) XXX_Marshal ¶
func (m *MsgProcessWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProcessWithdrawalResponse) XXX_Merge ¶
func (m *MsgProcessWithdrawalResponse) XXX_Merge(src proto.Message)
func (*MsgProcessWithdrawalResponse) XXX_Size ¶
func (m *MsgProcessWithdrawalResponse) XXX_Size() int
func (*MsgProcessWithdrawalResponse) XXX_Unmarshal ¶
func (m *MsgProcessWithdrawalResponse) XXX_Unmarshal(b []byte) error
type MsgReplaceWithdrawal ¶
type MsgReplaceWithdrawal struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` Vote *types.Votes `protobuf:"bytes,2,opt,name=vote,proto3" json:"vote,omitempty"` // the process id of the withdrawals to replace Pid uint64 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` // the new tx for the withdrawal proposal NewNoWitnessTx []byte `protobuf:"bytes,4,opt,name=new_no_witness_tx,json=newNoWitnessTx,proto3" json:"new_no_witness_tx,omitempty"` // tx fee in satoshi NewTxFee uint64 `protobuf:"varint,5,opt,name=new_tx_fee,json=newTxFee,proto3" json:"new_tx_fee,omitempty"` }
MsgReplaceWithdrawal
func (*MsgReplaceWithdrawal) Descriptor ¶
func (*MsgReplaceWithdrawal) Descriptor() ([]byte, []int)
func (*MsgReplaceWithdrawal) GetNewNoWitnessTx ¶
func (m *MsgReplaceWithdrawal) GetNewNoWitnessTx() []byte
func (*MsgReplaceWithdrawal) GetNewTxFee ¶
func (m *MsgReplaceWithdrawal) GetNewTxFee() uint64
func (*MsgReplaceWithdrawal) GetPid ¶
func (m *MsgReplaceWithdrawal) GetPid() uint64
func (*MsgReplaceWithdrawal) GetProposer ¶
func (m *MsgReplaceWithdrawal) GetProposer() string
func (*MsgReplaceWithdrawal) GetVote ¶
func (m *MsgReplaceWithdrawal) GetVote() *types.Votes
func (*MsgReplaceWithdrawal) Marshal ¶
func (m *MsgReplaceWithdrawal) Marshal() (dAtA []byte, err error)
func (*MsgReplaceWithdrawal) MarshalTo ¶
func (m *MsgReplaceWithdrawal) MarshalTo(dAtA []byte) (int, error)
func (*MsgReplaceWithdrawal) MarshalToSizedBuffer ¶
func (m *MsgReplaceWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgReplaceWithdrawal) MethodName ¶
func (req *MsgReplaceWithdrawal) MethodName() string
func (*MsgReplaceWithdrawal) ProtoMessage ¶
func (*MsgReplaceWithdrawal) ProtoMessage()
func (*MsgReplaceWithdrawal) Reset ¶
func (m *MsgReplaceWithdrawal) Reset()
func (*MsgReplaceWithdrawal) Size ¶
func (m *MsgReplaceWithdrawal) Size() (n int)
func (*MsgReplaceWithdrawal) String ¶
func (m *MsgReplaceWithdrawal) String() string
func (*MsgReplaceWithdrawal) Unmarshal ¶
func (m *MsgReplaceWithdrawal) Unmarshal(dAtA []byte) error
func (*MsgReplaceWithdrawal) Validate ¶
func (req *MsgReplaceWithdrawal) Validate() error
func (*MsgReplaceWithdrawal) VoteSigDoc ¶
func (req *MsgReplaceWithdrawal) VoteSigDoc() []byte
func (*MsgReplaceWithdrawal) XXX_DiscardUnknown ¶
func (m *MsgReplaceWithdrawal) XXX_DiscardUnknown()
func (*MsgReplaceWithdrawal) XXX_Marshal ¶
func (m *MsgReplaceWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgReplaceWithdrawal) XXX_Merge ¶
func (m *MsgReplaceWithdrawal) XXX_Merge(src proto.Message)
func (*MsgReplaceWithdrawal) XXX_Size ¶
func (m *MsgReplaceWithdrawal) XXX_Size() int
func (*MsgReplaceWithdrawal) XXX_Unmarshal ¶
func (m *MsgReplaceWithdrawal) XXX_Unmarshal(b []byte) error
type MsgReplaceWithdrawalResponse ¶
type MsgReplaceWithdrawalResponse struct { }
MsgReplaceWithdrawalResponse
func (*MsgReplaceWithdrawalResponse) Descriptor ¶
func (*MsgReplaceWithdrawalResponse) Descriptor() ([]byte, []int)
func (*MsgReplaceWithdrawalResponse) Marshal ¶
func (m *MsgReplaceWithdrawalResponse) Marshal() (dAtA []byte, err error)
func (*MsgReplaceWithdrawalResponse) MarshalTo ¶
func (m *MsgReplaceWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgReplaceWithdrawalResponse) MarshalToSizedBuffer ¶
func (m *MsgReplaceWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgReplaceWithdrawalResponse) ProtoMessage ¶
func (*MsgReplaceWithdrawalResponse) ProtoMessage()
func (*MsgReplaceWithdrawalResponse) Reset ¶
func (m *MsgReplaceWithdrawalResponse) Reset()
func (*MsgReplaceWithdrawalResponse) Size ¶
func (m *MsgReplaceWithdrawalResponse) Size() (n int)
func (*MsgReplaceWithdrawalResponse) String ¶
func (m *MsgReplaceWithdrawalResponse) String() string
func (*MsgReplaceWithdrawalResponse) Unmarshal ¶
func (m *MsgReplaceWithdrawalResponse) Unmarshal(dAtA []byte) error
func (*MsgReplaceWithdrawalResponse) XXX_DiscardUnknown ¶
func (m *MsgReplaceWithdrawalResponse) XXX_DiscardUnknown()
func (*MsgReplaceWithdrawalResponse) XXX_Marshal ¶
func (m *MsgReplaceWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgReplaceWithdrawalResponse) XXX_Merge ¶
func (m *MsgReplaceWithdrawalResponse) XXX_Merge(src proto.Message)
func (*MsgReplaceWithdrawalResponse) XXX_Size ¶
func (m *MsgReplaceWithdrawalResponse) XXX_Size() int
func (*MsgReplaceWithdrawalResponse) XXX_Unmarshal ¶
func (m *MsgReplaceWithdrawalResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // NewBlockHashs adds new bitcoin block hashes // the block hashes are not only for deposit/withdrawal spv, but also a // on-chain oracle for dapps // ** it requires off-chain vote by relayer group // ** the block should have a hard confirmation number which incosistent with // the param. // ** every block after startBlockNumber in the geneis should be submitted on // chain NewBlockHashes(context.Context, *MsgNewBlockHashes) (*MsgNewBlockHashesResponse, error) // NewDeposit adds new deposits // ** it doesn't need off-chain vote process since we have spv NewDeposits(context.Context, *MsgNewDeposits) (*MsgNewDepositsResponse, error) // NewPubkey adds new deposit public key // ** it requires off-chain vote by relayer group NewPubkey(context.Context, *MsgNewPubkey) (*MsgNewPubkeyResponse, error) // ProcessWithdrawal submits a non-signed raw tx and its vote for the // withdrawal requests. This is the first step to process withdrawals // ** it requires off-chain vote by relayer group // ** the output index and withdrawal id list are in one-to-one correspondence // ** the tx price should not be larger than withdrawal request // // It informs every voter that the proposal has been approved and they can // process signing then. The most relayer member can construct the final // signed transaction and submit the transaction to the bitcoin chain when the // signing process is finished Since the signing is an off chain process, so // relayer proposer doesn't need to submit the signed transaction to the chain ProcessWithdrawal(context.Context, *MsgProcessWithdrawal) (*MsgProcessWithdrawalResponse, error) // ReplaceWithdrawal replaces a withdrawal by increasing fee // ** the output for the withdrawal should be not changed, but you can change // the value // ** the new tx fee should be larger than before // ** it requires off-chain vote by relayer group ReplaceWithdrawal(context.Context, *MsgReplaceWithdrawal) (*MsgReplaceWithdrawalResponse, error) // FinalizeWithdrawal finlizes withdrawals and informs the chain to create the // withdrawal receipts This is the final step to process withdrawals // // ** proposer should provide spv to prove the withdarwal is confirmed // ** it doesn't need off-chain vote process FinalizeWithdrawal(context.Context, *MsgFinalizeWithdrawal) (*MsgFinalizeWithdrawalResponse, error) // ApproveCancellation approves cancelation requests ApproveCancellation(context.Context, *MsgApproveCancellation) (*MsgApproveCancellationResponse, error) // NewConsolidation initializes a consolidation request to aggregate utxo set // ** it requires off-chain vote by relayer group NewConsolidation(context.Context, *MsgNewConsolidation) (*MsgNewConsolidationResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { NetworkName string `protobuf:"bytes,1,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"` // A block has the number should be considered as a finalized block ConfirmationNumber uint64 `protobuf:"varint,2,opt,name=confirmation_number,json=confirmationNumber,proto3" json:"confirmation_number,omitempty"` // min deposit amount in satoshi MinDepositAmount uint64 `protobuf:"varint,3,opt,name=min_deposit_amount,json=minDepositAmount,proto3" json:"min_deposit_amount,omitempty"` DepositMagicPrefix []byte `protobuf:"bytes,4,opt,name=deposit_magic_prefix,json=depositMagicPrefix,proto3" json:"deposit_magic_prefix,omitempty"` DepositTaxRate uint64 `protobuf:"varint,5,opt,name=deposit_tax_rate,json=depositTaxRate,proto3" json:"deposit_tax_rate,omitempty"` // max deposit tax in satoshi MaxDepositTax uint64 `protobuf:"varint,6,opt,name=max_deposit_tax,json=maxDepositTax,proto3" json:"max_deposit_tax,omitempty"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetConfirmationNumber ¶
func (*Params) GetDepositMagicPrefix ¶
func (*Params) GetDepositTaxRate ¶
func (*Params) GetMaxDepositTax ¶
func (*Params) GetMinDepositAmount ¶
func (*Params) GetNetworkName ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Processing ¶
type Processing struct { // txid list, the last item is the latest tx Txid [][]byte `protobuf:"bytes,1,rep,name=txid,proto3" json:"txid,omitempty"` // the actual amount for the tx Output []TxOuptut `protobuf:"bytes,2,rep,name=output,proto3" json:"output"` // the withdrawal id list, should not be updated Withdrawals []uint64 `protobuf:"varint,3,rep,packed,name=withdrawals,proto3" json:"withdrawals,omitempty"` // fee in satoshi Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` }
Processing
func (*Processing) Descriptor ¶
func (*Processing) Descriptor() ([]byte, []int)
func (*Processing) GetFee ¶
func (m *Processing) GetFee() uint64
func (*Processing) GetOutput ¶
func (m *Processing) GetOutput() []TxOuptut
func (*Processing) GetTxid ¶
func (m *Processing) GetTxid() [][]byte
func (*Processing) GetWithdrawals ¶
func (m *Processing) GetWithdrawals() []uint64
func (*Processing) Marshal ¶
func (m *Processing) Marshal() (dAtA []byte, err error)
func (*Processing) MarshalToSizedBuffer ¶
func (m *Processing) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Processing) ProtoMessage ¶
func (*Processing) ProtoMessage()
func (*Processing) Reset ¶
func (m *Processing) Reset()
func (*Processing) Size ¶
func (m *Processing) Size() (n int)
func (*Processing) String ¶
func (m *Processing) String() string
func (*Processing) Unmarshal ¶
func (m *Processing) Unmarshal(dAtA []byte) error
func (*Processing) XXX_DiscardUnknown ¶
func (m *Processing) XXX_DiscardUnknown()
func (*Processing) XXX_Marshal ¶
func (m *Processing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Processing) XXX_Merge ¶
func (m *Processing) XXX_Merge(src proto.Message)
func (*Processing) XXX_Size ¶
func (m *Processing) XXX_Size() int
func (*Processing) XXX_Unmarshal ¶
func (m *Processing) XXX_Unmarshal(b []byte) error
type ProcessingGenesis ¶
type ProcessingGenesis struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Processing Processing `protobuf:"bytes,2,opt,name=processing,proto3" json:"processing"` }
ProcessingGenesis
func (*ProcessingGenesis) Descriptor ¶
func (*ProcessingGenesis) Descriptor() ([]byte, []int)
func (*ProcessingGenesis) GetId ¶
func (m *ProcessingGenesis) GetId() uint64
func (*ProcessingGenesis) GetProcessing ¶
func (m *ProcessingGenesis) GetProcessing() Processing
func (*ProcessingGenesis) Marshal ¶
func (m *ProcessingGenesis) Marshal() (dAtA []byte, err error)
func (*ProcessingGenesis) MarshalTo ¶
func (m *ProcessingGenesis) MarshalTo(dAtA []byte) (int, error)
func (*ProcessingGenesis) MarshalToSizedBuffer ¶
func (m *ProcessingGenesis) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProcessingGenesis) ProtoMessage ¶
func (*ProcessingGenesis) ProtoMessage()
func (*ProcessingGenesis) Reset ¶
func (m *ProcessingGenesis) Reset()
func (*ProcessingGenesis) Size ¶
func (m *ProcessingGenesis) Size() (n int)
func (*ProcessingGenesis) String ¶
func (m *ProcessingGenesis) String() string
func (*ProcessingGenesis) Unmarshal ¶
func (m *ProcessingGenesis) Unmarshal(dAtA []byte) error
func (*ProcessingGenesis) XXX_DiscardUnknown ¶
func (m *ProcessingGenesis) XXX_DiscardUnknown()
func (*ProcessingGenesis) XXX_Marshal ¶
func (m *ProcessingGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProcessingGenesis) XXX_Merge ¶
func (m *ProcessingGenesis) XXX_Merge(src proto.Message)
func (*ProcessingGenesis) XXX_Size ¶
func (m *ProcessingGenesis) XXX_Size() int
func (*ProcessingGenesis) XXX_Unmarshal ¶
func (m *ProcessingGenesis) XXX_Unmarshal(b []byte) error
type QueryBlockTipRequest ¶
type QueryBlockTipRequest struct { }
QueryBlockTipRequest
func (*QueryBlockTipRequest) Descriptor ¶
func (*QueryBlockTipRequest) Descriptor() ([]byte, []int)
func (*QueryBlockTipRequest) Marshal ¶
func (m *QueryBlockTipRequest) Marshal() (dAtA []byte, err error)
func (*QueryBlockTipRequest) MarshalTo ¶
func (m *QueryBlockTipRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBlockTipRequest) MarshalToSizedBuffer ¶
func (m *QueryBlockTipRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBlockTipRequest) ProtoMessage ¶
func (*QueryBlockTipRequest) ProtoMessage()
func (*QueryBlockTipRequest) Reset ¶
func (m *QueryBlockTipRequest) Reset()
func (*QueryBlockTipRequest) Size ¶
func (m *QueryBlockTipRequest) Size() (n int)
func (*QueryBlockTipRequest) String ¶
func (m *QueryBlockTipRequest) String() string
func (*QueryBlockTipRequest) Unmarshal ¶
func (m *QueryBlockTipRequest) Unmarshal(dAtA []byte) error
func (*QueryBlockTipRequest) XXX_DiscardUnknown ¶
func (m *QueryBlockTipRequest) XXX_DiscardUnknown()
func (*QueryBlockTipRequest) XXX_Marshal ¶
func (m *QueryBlockTipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBlockTipRequest) XXX_Merge ¶
func (m *QueryBlockTipRequest) XXX_Merge(src proto.Message)
func (*QueryBlockTipRequest) XXX_Size ¶
func (m *QueryBlockTipRequest) XXX_Size() int
func (*QueryBlockTipRequest) XXX_Unmarshal ¶
func (m *QueryBlockTipRequest) XXX_Unmarshal(b []byte) error
type QueryBlockTipResponse ¶
type QueryBlockTipResponse struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` }
QueryBlockTipResponse
func (*QueryBlockTipResponse) Descriptor ¶
func (*QueryBlockTipResponse) Descriptor() ([]byte, []int)
func (*QueryBlockTipResponse) GetHash ¶
func (m *QueryBlockTipResponse) GetHash() string
func (*QueryBlockTipResponse) GetHeight ¶
func (m *QueryBlockTipResponse) GetHeight() uint64
func (*QueryBlockTipResponse) Marshal ¶
func (m *QueryBlockTipResponse) Marshal() (dAtA []byte, err error)
func (*QueryBlockTipResponse) MarshalTo ¶
func (m *QueryBlockTipResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBlockTipResponse) MarshalToSizedBuffer ¶
func (m *QueryBlockTipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBlockTipResponse) ProtoMessage ¶
func (*QueryBlockTipResponse) ProtoMessage()
func (*QueryBlockTipResponse) Reset ¶
func (m *QueryBlockTipResponse) Reset()
func (*QueryBlockTipResponse) Size ¶
func (m *QueryBlockTipResponse) Size() (n int)
func (*QueryBlockTipResponse) String ¶
func (m *QueryBlockTipResponse) String() string
func (*QueryBlockTipResponse) Unmarshal ¶
func (m *QueryBlockTipResponse) Unmarshal(dAtA []byte) error
func (*QueryBlockTipResponse) XXX_DiscardUnknown ¶
func (m *QueryBlockTipResponse) XXX_DiscardUnknown()
func (*QueryBlockTipResponse) XXX_Marshal ¶
func (m *QueryBlockTipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBlockTipResponse) XXX_Merge ¶
func (m *QueryBlockTipResponse) XXX_Merge(src proto.Message)
func (*QueryBlockTipResponse) XXX_Size ¶
func (m *QueryBlockTipResponse) XXX_Size() int
func (*QueryBlockTipResponse) XXX_Unmarshal ¶
func (m *QueryBlockTipResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Pubkeys queries current public key for deposit Pubkey(ctx context.Context, in *QueryPubkeyRequest, opts ...grpc.CallOption) (*QueryPubkeyResponse, error) // DepositAddress queries current address for deposit DepositAddress(ctx context.Context, in *QueryDepositAddress, opts ...grpc.CallOption) (*QueryDepositAddressResponse, error) // HasDeposited checks if a deposit transaction is confirmed on chain HasDeposited(ctx context.Context, in *QueryHasDeposited, opts ...grpc.CallOption) (*QueryHasDepositedResponse, error) // Withdrawal queries the withdrawal status and receipt Withdrawal(ctx context.Context, in *QueryWithdrawalRequest, opts ...grpc.CallOption) (*QueryWithdrawalResponse, error) // BlockTip queries current the latest confirmed bitcoin height by relayer BlockTip(ctx context.Context, in *QueryBlockTipRequest, opts ...grpc.CallOption) (*QueryBlockTipResponse, 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 QueryDepositAddress ¶
type QueryDepositAddress struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // evm_address is an eth address to deposit EvmAddress string `protobuf:"bytes,2,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"` }
QueryDepositAddress is request type for the Query/DepositAddress RPC method
func (*QueryDepositAddress) Descriptor ¶
func (*QueryDepositAddress) Descriptor() ([]byte, []int)
func (*QueryDepositAddress) GetEvmAddress ¶
func (m *QueryDepositAddress) GetEvmAddress() string
func (*QueryDepositAddress) GetVersion ¶
func (m *QueryDepositAddress) GetVersion() uint32
func (*QueryDepositAddress) Marshal ¶
func (m *QueryDepositAddress) Marshal() (dAtA []byte, err error)
func (*QueryDepositAddress) MarshalTo ¶
func (m *QueryDepositAddress) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositAddress) MarshalToSizedBuffer ¶
func (m *QueryDepositAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositAddress) ProtoMessage ¶
func (*QueryDepositAddress) ProtoMessage()
func (*QueryDepositAddress) Reset ¶
func (m *QueryDepositAddress) Reset()
func (*QueryDepositAddress) Size ¶
func (m *QueryDepositAddress) Size() (n int)
func (*QueryDepositAddress) String ¶
func (m *QueryDepositAddress) String() string
func (*QueryDepositAddress) Unmarshal ¶
func (m *QueryDepositAddress) Unmarshal(dAtA []byte) error
func (*QueryDepositAddress) XXX_DiscardUnknown ¶
func (m *QueryDepositAddress) XXX_DiscardUnknown()
func (*QueryDepositAddress) XXX_Marshal ¶
func (m *QueryDepositAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositAddress) XXX_Merge ¶
func (m *QueryDepositAddress) XXX_Merge(src proto.Message)
func (*QueryDepositAddress) XXX_Size ¶
func (m *QueryDepositAddress) XXX_Size() int
func (*QueryDepositAddress) XXX_Unmarshal ¶
func (m *QueryDepositAddress) XXX_Unmarshal(b []byte) error
type QueryDepositAddressResponse ¶
type QueryDepositAddressResponse struct { NetworkName string `protobuf:"bytes,1,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` PublicKey *types.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` OpReturnScript []byte `protobuf:"bytes,4,opt,name=op_return_script,json=opReturnScript,proto3" json:"op_return_script,omitempty"` }
QueryDepositAddressResponse is response type for the Query/DepositAddress RPC method
func (*QueryDepositAddressResponse) Descriptor ¶
func (*QueryDepositAddressResponse) Descriptor() ([]byte, []int)
func (*QueryDepositAddressResponse) GetAddress ¶
func (m *QueryDepositAddressResponse) GetAddress() string
func (*QueryDepositAddressResponse) GetNetworkName ¶
func (m *QueryDepositAddressResponse) GetNetworkName() string
func (*QueryDepositAddressResponse) GetOpReturnScript ¶
func (m *QueryDepositAddressResponse) GetOpReturnScript() []byte
func (*QueryDepositAddressResponse) GetPublicKey ¶
func (m *QueryDepositAddressResponse) GetPublicKey() *types.PublicKey
func (*QueryDepositAddressResponse) Marshal ¶
func (m *QueryDepositAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryDepositAddressResponse) MarshalTo ¶
func (m *QueryDepositAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryDepositAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositAddressResponse) ProtoMessage ¶
func (*QueryDepositAddressResponse) ProtoMessage()
func (*QueryDepositAddressResponse) Reset ¶
func (m *QueryDepositAddressResponse) Reset()
func (*QueryDepositAddressResponse) Size ¶
func (m *QueryDepositAddressResponse) Size() (n int)
func (*QueryDepositAddressResponse) String ¶
func (m *QueryDepositAddressResponse) String() string
func (*QueryDepositAddressResponse) Unmarshal ¶
func (m *QueryDepositAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryDepositAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryDepositAddressResponse) XXX_DiscardUnknown()
func (*QueryDepositAddressResponse) XXX_Marshal ¶
func (m *QueryDepositAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositAddressResponse) XXX_Merge ¶
func (m *QueryDepositAddressResponse) XXX_Merge(src proto.Message)
func (*QueryDepositAddressResponse) XXX_Size ¶
func (m *QueryDepositAddressResponse) XXX_Size() int
func (*QueryDepositAddressResponse) XXX_Unmarshal ¶
func (m *QueryDepositAddressResponse) XXX_Unmarshal(b []byte) error
type QueryHasDeposited ¶
type QueryHasDeposited struct { Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Txout uint32 `protobuf:"varint,2,opt,name=txout,proto3" json:"txout,omitempty"` }
QueryHasDeposited
func (*QueryHasDeposited) Descriptor ¶
func (*QueryHasDeposited) Descriptor() ([]byte, []int)
func (*QueryHasDeposited) GetTxid ¶
func (m *QueryHasDeposited) GetTxid() string
func (*QueryHasDeposited) GetTxout ¶
func (m *QueryHasDeposited) GetTxout() uint32
func (*QueryHasDeposited) Marshal ¶
func (m *QueryHasDeposited) Marshal() (dAtA []byte, err error)
func (*QueryHasDeposited) MarshalTo ¶
func (m *QueryHasDeposited) MarshalTo(dAtA []byte) (int, error)
func (*QueryHasDeposited) MarshalToSizedBuffer ¶
func (m *QueryHasDeposited) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHasDeposited) ProtoMessage ¶
func (*QueryHasDeposited) ProtoMessage()
func (*QueryHasDeposited) Reset ¶
func (m *QueryHasDeposited) Reset()
func (*QueryHasDeposited) Size ¶
func (m *QueryHasDeposited) Size() (n int)
func (*QueryHasDeposited) String ¶
func (m *QueryHasDeposited) String() string
func (*QueryHasDeposited) Unmarshal ¶
func (m *QueryHasDeposited) Unmarshal(dAtA []byte) error
func (*QueryHasDeposited) XXX_DiscardUnknown ¶
func (m *QueryHasDeposited) XXX_DiscardUnknown()
func (*QueryHasDeposited) XXX_Marshal ¶
func (m *QueryHasDeposited) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHasDeposited) XXX_Merge ¶
func (m *QueryHasDeposited) XXX_Merge(src proto.Message)
func (*QueryHasDeposited) XXX_Size ¶
func (m *QueryHasDeposited) XXX_Size() int
func (*QueryHasDeposited) XXX_Unmarshal ¶
func (m *QueryHasDeposited) XXX_Unmarshal(b []byte) error
type QueryHasDepositedResponse ¶
type QueryHasDepositedResponse struct {
Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
}
QueryHasDepositedResponse
func (*QueryHasDepositedResponse) Descriptor ¶
func (*QueryHasDepositedResponse) Descriptor() ([]byte, []int)
func (*QueryHasDepositedResponse) GetYes ¶
func (m *QueryHasDepositedResponse) GetYes() bool
func (*QueryHasDepositedResponse) Marshal ¶
func (m *QueryHasDepositedResponse) Marshal() (dAtA []byte, err error)
func (*QueryHasDepositedResponse) MarshalTo ¶
func (m *QueryHasDepositedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryHasDepositedResponse) MarshalToSizedBuffer ¶
func (m *QueryHasDepositedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHasDepositedResponse) ProtoMessage ¶
func (*QueryHasDepositedResponse) ProtoMessage()
func (*QueryHasDepositedResponse) Reset ¶
func (m *QueryHasDepositedResponse) Reset()
func (*QueryHasDepositedResponse) Size ¶
func (m *QueryHasDepositedResponse) Size() (n int)
func (*QueryHasDepositedResponse) String ¶
func (m *QueryHasDepositedResponse) String() string
func (*QueryHasDepositedResponse) Unmarshal ¶
func (m *QueryHasDepositedResponse) Unmarshal(dAtA []byte) error
func (*QueryHasDepositedResponse) XXX_DiscardUnknown ¶
func (m *QueryHasDepositedResponse) XXX_DiscardUnknown()
func (*QueryHasDepositedResponse) XXX_Marshal ¶
func (m *QueryHasDepositedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHasDepositedResponse) XXX_Merge ¶
func (m *QueryHasDepositedResponse) XXX_Merge(src proto.Message)
func (*QueryHasDepositedResponse) XXX_Size ¶
func (m *QueryHasDepositedResponse) XXX_Size() int
func (*QueryHasDepositedResponse) XXX_Unmarshal ¶
func (m *QueryHasDepositedResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPubkeyRequest ¶
type QueryPubkeyRequest struct { }
QueryPubkeyRequest is request type for the Query/Pubkey RPC method
func (*QueryPubkeyRequest) Descriptor ¶
func (*QueryPubkeyRequest) Descriptor() ([]byte, []int)
func (*QueryPubkeyRequest) Marshal ¶
func (m *QueryPubkeyRequest) Marshal() (dAtA []byte, err error)
func (*QueryPubkeyRequest) MarshalTo ¶
func (m *QueryPubkeyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPubkeyRequest) MarshalToSizedBuffer ¶
func (m *QueryPubkeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPubkeyRequest) ProtoMessage ¶
func (*QueryPubkeyRequest) ProtoMessage()
func (*QueryPubkeyRequest) Reset ¶
func (m *QueryPubkeyRequest) Reset()
func (*QueryPubkeyRequest) Size ¶
func (m *QueryPubkeyRequest) Size() (n int)
func (*QueryPubkeyRequest) String ¶
func (m *QueryPubkeyRequest) String() string
func (*QueryPubkeyRequest) Unmarshal ¶
func (m *QueryPubkeyRequest) Unmarshal(dAtA []byte) error
func (*QueryPubkeyRequest) XXX_DiscardUnknown ¶
func (m *QueryPubkeyRequest) XXX_DiscardUnknown()
func (*QueryPubkeyRequest) XXX_Marshal ¶
func (m *QueryPubkeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPubkeyRequest) XXX_Merge ¶
func (m *QueryPubkeyRequest) XXX_Merge(src proto.Message)
func (*QueryPubkeyRequest) XXX_Size ¶
func (m *QueryPubkeyRequest) XXX_Size() int
func (*QueryPubkeyRequest) XXX_Unmarshal ¶
func (m *QueryPubkeyRequest) XXX_Unmarshal(b []byte) error
type QueryPubkeyResponse ¶
type QueryPubkeyResponse struct {
PublicKey types.PublicKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key"`
}
QueryPubkeyResponse is response type for the Query/Pubkey RPC method
func (*QueryPubkeyResponse) Descriptor ¶
func (*QueryPubkeyResponse) Descriptor() ([]byte, []int)
func (*QueryPubkeyResponse) GetPublicKey ¶
func (m *QueryPubkeyResponse) GetPublicKey() types.PublicKey
func (*QueryPubkeyResponse) Marshal ¶
func (m *QueryPubkeyResponse) Marshal() (dAtA []byte, err error)
func (*QueryPubkeyResponse) MarshalTo ¶
func (m *QueryPubkeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPubkeyResponse) MarshalToSizedBuffer ¶
func (m *QueryPubkeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPubkeyResponse) ProtoMessage ¶
func (*QueryPubkeyResponse) ProtoMessage()
func (*QueryPubkeyResponse) Reset ¶
func (m *QueryPubkeyResponse) Reset()
func (*QueryPubkeyResponse) Size ¶
func (m *QueryPubkeyResponse) Size() (n int)
func (*QueryPubkeyResponse) String ¶
func (m *QueryPubkeyResponse) String() string
func (*QueryPubkeyResponse) Unmarshal ¶
func (m *QueryPubkeyResponse) Unmarshal(dAtA []byte) error
func (*QueryPubkeyResponse) XXX_DiscardUnknown ¶
func (m *QueryPubkeyResponse) XXX_DiscardUnknown()
func (*QueryPubkeyResponse) XXX_Marshal ¶
func (m *QueryPubkeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPubkeyResponse) XXX_Merge ¶
func (m *QueryPubkeyResponse) XXX_Merge(src proto.Message)
func (*QueryPubkeyResponse) XXX_Size ¶
func (m *QueryPubkeyResponse) XXX_Size() int
func (*QueryPubkeyResponse) XXX_Unmarshal ¶
func (m *QueryPubkeyResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Pubkeys queries current public key for deposit Pubkey(context.Context, *QueryPubkeyRequest) (*QueryPubkeyResponse, error) // DepositAddress queries current address for deposit DepositAddress(context.Context, *QueryDepositAddress) (*QueryDepositAddressResponse, error) // HasDeposited checks if a deposit transaction is confirmed on chain HasDeposited(context.Context, *QueryHasDeposited) (*QueryHasDepositedResponse, error) // Withdrawal queries the withdrawal status and receipt Withdrawal(context.Context, *QueryWithdrawalRequest) (*QueryWithdrawalResponse, error) // BlockTip queries current the latest confirmed bitcoin height by relayer BlockTip(context.Context, *QueryBlockTipRequest) (*QueryBlockTipResponse, error) }
QueryServer is the server API for Query service.
type QueryWithdrawalRequest ¶
type QueryWithdrawalRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryWithdrawalRequest
func (*QueryWithdrawalRequest) Descriptor ¶
func (*QueryWithdrawalRequest) Descriptor() ([]byte, []int)
func (*QueryWithdrawalRequest) GetId ¶
func (m *QueryWithdrawalRequest) GetId() uint64
func (*QueryWithdrawalRequest) Marshal ¶
func (m *QueryWithdrawalRequest) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalRequest) MarshalTo ¶
func (m *QueryWithdrawalRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalRequest) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalRequest) ProtoMessage ¶
func (*QueryWithdrawalRequest) ProtoMessage()
func (*QueryWithdrawalRequest) Reset ¶
func (m *QueryWithdrawalRequest) Reset()
func (*QueryWithdrawalRequest) Size ¶
func (m *QueryWithdrawalRequest) Size() (n int)
func (*QueryWithdrawalRequest) String ¶
func (m *QueryWithdrawalRequest) String() string
func (*QueryWithdrawalRequest) Unmarshal ¶
func (m *QueryWithdrawalRequest) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalRequest) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalRequest) XXX_DiscardUnknown()
func (*QueryWithdrawalRequest) XXX_Marshal ¶
func (m *QueryWithdrawalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalRequest) XXX_Merge ¶
func (m *QueryWithdrawalRequest) XXX_Merge(src proto.Message)
func (*QueryWithdrawalRequest) XXX_Size ¶
func (m *QueryWithdrawalRequest) XXX_Size() int
func (*QueryWithdrawalRequest) XXX_Unmarshal ¶
func (m *QueryWithdrawalRequest) XXX_Unmarshal(b []byte) error
type QueryWithdrawalResponse ¶
type QueryWithdrawalResponse struct {
Withdrawal Withdrawal `protobuf:"bytes,1,opt,name=withdrawal,proto3" json:"withdrawal"`
}
QueryWithdrawalResponse
func (*QueryWithdrawalResponse) Descriptor ¶
func (*QueryWithdrawalResponse) Descriptor() ([]byte, []int)
func (*QueryWithdrawalResponse) GetWithdrawal ¶
func (m *QueryWithdrawalResponse) GetWithdrawal() Withdrawal
func (*QueryWithdrawalResponse) Marshal ¶
func (m *QueryWithdrawalResponse) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalResponse) MarshalTo ¶
func (m *QueryWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalResponse) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalResponse) ProtoMessage ¶
func (*QueryWithdrawalResponse) ProtoMessage()
func (*QueryWithdrawalResponse) Reset ¶
func (m *QueryWithdrawalResponse) Reset()
func (*QueryWithdrawalResponse) Size ¶
func (m *QueryWithdrawalResponse) Size() (n int)
func (*QueryWithdrawalResponse) String ¶
func (m *QueryWithdrawalResponse) String() string
func (*QueryWithdrawalResponse) Unmarshal ¶
func (m *QueryWithdrawalResponse) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalResponse) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalResponse) XXX_DiscardUnknown()
func (*QueryWithdrawalResponse) XXX_Marshal ¶
func (m *QueryWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalResponse) XXX_Merge ¶
func (m *QueryWithdrawalResponse) XXX_Merge(src proto.Message)
func (*QueryWithdrawalResponse) XXX_Size ¶
func (m *QueryWithdrawalResponse) XXX_Size() int
func (*QueryWithdrawalResponse) XXX_Unmarshal ¶
func (m *QueryWithdrawalResponse) XXX_Unmarshal(b []byte) error
type RelayerKeeper ¶
type RelayerKeeper interface { VerifyProposal(ctx context.Context, req relayer.IVoteMsg, verifyFn ...func(sigdoc []byte) error) (uint64, error) VerifyNonProposal(ctx context.Context, req relayer.INonVoteMsg) (relayer.IRelayer, error) UpdateRandao(ctx context.Context, req relayer.IVoteMsg) error HasPubkey(ctx context.Context, raw []byte) (bool, error) AddNewKey(ctx context.Context, raw []byte) error SetProposalSeq(ctx context.Context, seq uint64) error }
type TxOuptut ¶
type TxOuptut struct {
Values []uint64 `protobuf:"varint,3,rep,packed,name=values,proto3" json:"values,omitempty"`
}
TxOuptut
func (*TxOuptut) Descriptor ¶
func (*TxOuptut) MarshalToSizedBuffer ¶
func (*TxOuptut) ProtoMessage ¶
func (*TxOuptut) ProtoMessage()
func (*TxOuptut) XXX_DiscardUnknown ¶
func (m *TxOuptut) XXX_DiscardUnknown()
func (*TxOuptut) XXX_Marshal ¶
func (*TxOuptut) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ApproveCancellation ¶
func (*UnimplementedMsgServer) ApproveCancellation(ctx context.Context, req *MsgApproveCancellation) (*MsgApproveCancellationResponse, error)
func (*UnimplementedMsgServer) FinalizeWithdrawal ¶
func (*UnimplementedMsgServer) FinalizeWithdrawal(ctx context.Context, req *MsgFinalizeWithdrawal) (*MsgFinalizeWithdrawalResponse, error)
func (*UnimplementedMsgServer) NewBlockHashes ¶
func (*UnimplementedMsgServer) NewBlockHashes(ctx context.Context, req *MsgNewBlockHashes) (*MsgNewBlockHashesResponse, error)
func (*UnimplementedMsgServer) NewConsolidation ¶
func (*UnimplementedMsgServer) NewConsolidation(ctx context.Context, req *MsgNewConsolidation) (*MsgNewConsolidationResponse, error)
func (*UnimplementedMsgServer) NewDeposits ¶
func (*UnimplementedMsgServer) NewDeposits(ctx context.Context, req *MsgNewDeposits) (*MsgNewDepositsResponse, error)
func (*UnimplementedMsgServer) NewPubkey ¶
func (*UnimplementedMsgServer) NewPubkey(ctx context.Context, req *MsgNewPubkey) (*MsgNewPubkeyResponse, error)
func (*UnimplementedMsgServer) ProcessWithdrawal ¶
func (*UnimplementedMsgServer) ProcessWithdrawal(ctx context.Context, req *MsgProcessWithdrawal) (*MsgProcessWithdrawalResponse, error)
func (*UnimplementedMsgServer) ReplaceWithdrawal ¶
func (*UnimplementedMsgServer) ReplaceWithdrawal(ctx context.Context, req *MsgReplaceWithdrawal) (*MsgReplaceWithdrawalResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) BlockTip ¶
func (*UnimplementedQueryServer) BlockTip(ctx context.Context, req *QueryBlockTipRequest) (*QueryBlockTipResponse, error)
func (*UnimplementedQueryServer) DepositAddress ¶
func (*UnimplementedQueryServer) DepositAddress(ctx context.Context, req *QueryDepositAddress) (*QueryDepositAddressResponse, error)
func (*UnimplementedQueryServer) HasDeposited ¶
func (*UnimplementedQueryServer) HasDeposited(ctx context.Context, req *QueryHasDeposited) (*QueryHasDepositedResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Pubkey ¶
func (*UnimplementedQueryServer) Pubkey(ctx context.Context, req *QueryPubkeyRequest) (*QueryPubkeyResponse, error)
func (*UnimplementedQueryServer) Withdrawal ¶
func (*UnimplementedQueryServer) Withdrawal(ctx context.Context, req *QueryWithdrawalRequest) (*QueryWithdrawalResponse, error)
type Withdrawal ¶
type Withdrawal struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` RequestAmount uint64 `protobuf:"varint,2,opt,name=request_amount,json=requestAmount,proto3" json:"request_amount,omitempty"` MaxTxPrice uint64 `protobuf:"varint,3,opt,name=max_tx_price,json=maxTxPrice,proto3" json:"max_tx_price,omitempty"` Status WithdrawalStatus `protobuf:"varint,4,opt,name=status,proto3,enum=goat.bitcoin.v1.WithdrawalStatus" json:"status,omitempty"` Receipt *WithdrawalReceipt `protobuf:"bytes,5,opt,name=receipt,proto3" json:"receipt,omitempty"` }
Withdrawal
func (*Withdrawal) Descriptor ¶
func (*Withdrawal) Descriptor() ([]byte, []int)
func (*Withdrawal) GetAddress ¶
func (m *Withdrawal) GetAddress() string
func (*Withdrawal) GetMaxTxPrice ¶
func (m *Withdrawal) GetMaxTxPrice() uint64
func (*Withdrawal) GetReceipt ¶
func (m *Withdrawal) GetReceipt() *WithdrawalReceipt
func (*Withdrawal) GetRequestAmount ¶
func (m *Withdrawal) GetRequestAmount() uint64
func (*Withdrawal) GetStatus ¶
func (m *Withdrawal) GetStatus() WithdrawalStatus
func (*Withdrawal) Marshal ¶
func (m *Withdrawal) Marshal() (dAtA []byte, err error)
func (*Withdrawal) MarshalToSizedBuffer ¶
func (m *Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Withdrawal) ProtoMessage ¶
func (*Withdrawal) ProtoMessage()
func (*Withdrawal) Reset ¶
func (m *Withdrawal) Reset()
func (*Withdrawal) Size ¶
func (m *Withdrawal) Size() (n int)
func (*Withdrawal) String ¶
func (m *Withdrawal) String() string
func (*Withdrawal) Unmarshal ¶
func (m *Withdrawal) Unmarshal(dAtA []byte) error
func (*Withdrawal) XXX_DiscardUnknown ¶
func (m *Withdrawal) XXX_DiscardUnknown()
func (*Withdrawal) XXX_Marshal ¶
func (m *Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Withdrawal) XXX_Merge ¶
func (m *Withdrawal) XXX_Merge(src proto.Message)
func (*Withdrawal) XXX_Size ¶
func (m *Withdrawal) XXX_Size() int
func (*Withdrawal) XXX_Unmarshal ¶
func (m *Withdrawal) XXX_Unmarshal(b []byte) error
type WithdrawalExecReceipt ¶
type WithdrawalExecReceipt struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Receipt *WithdrawalReceipt `protobuf:"bytes,2,opt,name=receipt,proto3" json:"receipt,omitempty"` }
WithdrawalExecReceipt
func (*WithdrawalExecReceipt) Descriptor ¶
func (*WithdrawalExecReceipt) Descriptor() ([]byte, []int)
func (*WithdrawalExecReceipt) EthTx ¶
func (d *WithdrawalExecReceipt) EthTx(seq uint64) *ethtypes.Transaction
func (*WithdrawalExecReceipt) GetId ¶
func (m *WithdrawalExecReceipt) GetId() uint64
func (*WithdrawalExecReceipt) GetReceipt ¶
func (m *WithdrawalExecReceipt) GetReceipt() *WithdrawalReceipt
func (*WithdrawalExecReceipt) Marshal ¶
func (m *WithdrawalExecReceipt) Marshal() (dAtA []byte, err error)
func (*WithdrawalExecReceipt) MarshalTo ¶
func (m *WithdrawalExecReceipt) MarshalTo(dAtA []byte) (int, error)
func (*WithdrawalExecReceipt) MarshalToSizedBuffer ¶
func (m *WithdrawalExecReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WithdrawalExecReceipt) ProtoMessage ¶
func (*WithdrawalExecReceipt) ProtoMessage()
func (*WithdrawalExecReceipt) Reset ¶
func (m *WithdrawalExecReceipt) Reset()
func (*WithdrawalExecReceipt) Size ¶
func (m *WithdrawalExecReceipt) Size() (n int)
func (*WithdrawalExecReceipt) String ¶
func (m *WithdrawalExecReceipt) String() string
func (*WithdrawalExecReceipt) Unmarshal ¶
func (m *WithdrawalExecReceipt) Unmarshal(dAtA []byte) error
func (*WithdrawalExecReceipt) XXX_DiscardUnknown ¶
func (m *WithdrawalExecReceipt) XXX_DiscardUnknown()
func (*WithdrawalExecReceipt) XXX_Marshal ¶
func (m *WithdrawalExecReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WithdrawalExecReceipt) XXX_Merge ¶
func (m *WithdrawalExecReceipt) XXX_Merge(src proto.Message)
func (*WithdrawalExecReceipt) XXX_Size ¶
func (m *WithdrawalExecReceipt) XXX_Size() int
func (*WithdrawalExecReceipt) XXX_Unmarshal ¶
func (m *WithdrawalExecReceipt) XXX_Unmarshal(b []byte) error
type WithdrawalGenesis ¶
type WithdrawalGenesis struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Withdrawal Withdrawal `protobuf:"bytes,2,opt,name=withdrawal,proto3" json:"withdrawal"` }
WithdrawalGeneis
func (*WithdrawalGenesis) Descriptor ¶
func (*WithdrawalGenesis) Descriptor() ([]byte, []int)
func (*WithdrawalGenesis) GetId ¶
func (m *WithdrawalGenesis) GetId() uint64
func (*WithdrawalGenesis) GetWithdrawal ¶
func (m *WithdrawalGenesis) GetWithdrawal() Withdrawal
func (*WithdrawalGenesis) Marshal ¶
func (m *WithdrawalGenesis) Marshal() (dAtA []byte, err error)
func (*WithdrawalGenesis) MarshalTo ¶
func (m *WithdrawalGenesis) MarshalTo(dAtA []byte) (int, error)
func (*WithdrawalGenesis) MarshalToSizedBuffer ¶
func (m *WithdrawalGenesis) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WithdrawalGenesis) ProtoMessage ¶
func (*WithdrawalGenesis) ProtoMessage()
func (*WithdrawalGenesis) Reset ¶
func (m *WithdrawalGenesis) Reset()
func (*WithdrawalGenesis) Size ¶
func (m *WithdrawalGenesis) Size() (n int)
func (*WithdrawalGenesis) String ¶
func (m *WithdrawalGenesis) String() string
func (*WithdrawalGenesis) Unmarshal ¶
func (m *WithdrawalGenesis) Unmarshal(dAtA []byte) error
func (*WithdrawalGenesis) XXX_DiscardUnknown ¶
func (m *WithdrawalGenesis) XXX_DiscardUnknown()
func (*WithdrawalGenesis) XXX_Marshal ¶
func (m *WithdrawalGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WithdrawalGenesis) XXX_Merge ¶
func (m *WithdrawalGenesis) XXX_Merge(src proto.Message)
func (*WithdrawalGenesis) XXX_Size ¶
func (m *WithdrawalGenesis) XXX_Size() int
func (*WithdrawalGenesis) XXX_Unmarshal ¶
func (m *WithdrawalGenesis) XXX_Unmarshal(b []byte) error
type WithdrawalReceipt ¶
type WithdrawalReceipt struct { Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Txout uint32 `protobuf:"varint,2,opt,name=txout,proto3" json:"txout,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` }
WithdrawalReceipt
func (*WithdrawalReceipt) Descriptor ¶
func (*WithdrawalReceipt) Descriptor() ([]byte, []int)
func (*WithdrawalReceipt) GetAmount ¶
func (m *WithdrawalReceipt) GetAmount() uint64
func (*WithdrawalReceipt) GetTxid ¶
func (m *WithdrawalReceipt) GetTxid() []byte
func (*WithdrawalReceipt) GetTxout ¶
func (m *WithdrawalReceipt) GetTxout() uint32
func (*WithdrawalReceipt) Marshal ¶
func (m *WithdrawalReceipt) Marshal() (dAtA []byte, err error)
func (*WithdrawalReceipt) MarshalTo ¶
func (m *WithdrawalReceipt) MarshalTo(dAtA []byte) (int, error)
func (*WithdrawalReceipt) MarshalToSizedBuffer ¶
func (m *WithdrawalReceipt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WithdrawalReceipt) ProtoMessage ¶
func (*WithdrawalReceipt) ProtoMessage()
func (*WithdrawalReceipt) Reset ¶
func (m *WithdrawalReceipt) Reset()
func (*WithdrawalReceipt) Size ¶
func (m *WithdrawalReceipt) Size() (n int)
func (*WithdrawalReceipt) String ¶
func (m *WithdrawalReceipt) String() string
func (*WithdrawalReceipt) Unmarshal ¶
func (m *WithdrawalReceipt) Unmarshal(dAtA []byte) error
func (*WithdrawalReceipt) XXX_DiscardUnknown ¶
func (m *WithdrawalReceipt) XXX_DiscardUnknown()
func (*WithdrawalReceipt) XXX_Marshal ¶
func (m *WithdrawalReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WithdrawalReceipt) XXX_Merge ¶
func (m *WithdrawalReceipt) XXX_Merge(src proto.Message)
func (*WithdrawalReceipt) XXX_Size ¶
func (m *WithdrawalReceipt) XXX_Size() int
func (*WithdrawalReceipt) XXX_Unmarshal ¶
func (m *WithdrawalReceipt) XXX_Unmarshal(b []byte) error
type WithdrawalStatus ¶
type WithdrawalStatus int32
WithdrawalStatus is the status of a withdrawal.
const ( // WITHDRAWAL_STATUS_UNSPECIFIED defines an invalid status. WITHDRAWAL_STATUS_UNSPECIFIED WithdrawalStatus = 0 // WITHDRAWAL_STATUS_PENDING WITHDRAWAL_STATUS_PENDING WithdrawalStatus = 1 // WITHDRAWAL_STATUS_PROCESSING WITHDRAWAL_STATUS_PROCESSING WithdrawalStatus = 2 // WITHDRAWAL_STATUS_CANCELING WITHDRAWAL_STATUS_CANCELING WithdrawalStatus = 3 // WITHDRAWAL_STATUS_CANCELED WITHDRAWAL_STATUS_CANCELED WithdrawalStatus = 4 // WITHDRAWAL_STATUS_PAID WITHDRAWAL_STATUS_PAID WithdrawalStatus = 5 )
func (WithdrawalStatus) EnumDescriptor ¶
func (WithdrawalStatus) EnumDescriptor() ([]byte, []int)
func (WithdrawalStatus) String ¶
func (x WithdrawalStatus) String() string