Documentation ¶
Index ¶
- type Client
- func (c *Client) GetAddressUTXOs(ctx context.Context, addr common.Address) ([]types.Position, error)
- func (c *Client) GetBlock(ctx context.Context, blkNum uint64) (*types.Block, error)
- func (c *Client) GetTx(ctx context.Context, txPos types.Position) (*types.Tx, error)
- func (c *Client) GetTxProof(ctx context.Context, txPos types.Position) ([]byte, error)
- func (c *Client) PostBlock(ctx context.Context) (uint64, error)
- func (c *Client) PostDeposit(ctx context.Context, ownerAddr common.Address, amount *big.Int) (uint64, error)
- func (c *Client) PostTx(ctx context.Context, tx *types.Tx) error
- func (c *Client) PutTxIn(ctx context.Context, txInPos types.Position, confSig types.Signature) error
- func (c *Client) PutTxOut(ctx context.Context, txOutPos types.Position, isExited bool) error
- type ErrorResponse
- type GetAddressUTXOsResponse
- type GetBlockResponse
- type GetTxProofResponse
- type GetTxResponse
- type PostBlockResponse
- type PostDepositResponse
- type PostTxResponse
- type PutTxInResponse
- type PutTxOutResponse
- type ResponseBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetAddressUTXOs ¶
func (*Client) GetTxProof ¶
func (*Client) PostDeposit ¶ added in v0.3.0
type ErrorResponse ¶
type ErrorResponse struct { *ResponseBase Result *app.Error `json:"result"` }
type GetAddressUTXOsResponse ¶
type GetAddressUTXOsResponse struct { *ResponseBase Result struct { UTXOs []types.Position `json:"utxos"` } `json:"result"` }
type GetBlockResponse ¶
type GetBlockResponse struct { *ResponseBase Result struct { BlockStr string `json:"blk"` } `json:"result"` }
type GetTxProofResponse ¶
type GetTxProofResponse struct { *ResponseBase Result struct { ProofStr string `json:"proof"` } `json:"result"` }
type GetTxResponse ¶
type GetTxResponse struct { *ResponseBase Result struct { TxStr string `json:"tx"` } `json:"result"` }
type PostBlockResponse ¶
type PostBlockResponse struct { *ResponseBase Result struct { BlockNumber uint64 `json:"blknum"` } `json:"result"` }
type PostDepositResponse ¶ added in v0.3.0
type PostDepositResponse struct { *ResponseBase Result struct { BlockNumber uint64 `json:"blknum"` } `json:"result"` }
type PostTxResponse ¶
type PostTxResponse struct { *ResponseBase Result struct{} `json:"result"` }
type PutTxInResponse ¶
type PutTxInResponse struct { *ResponseBase Result struct{} `json:"result"` }
type PutTxOutResponse ¶ added in v0.4.0
type PutTxOutResponse struct { *ResponseBase Result struct{} `json:"result"` }
type ResponseBase ¶
type ResponseBase struct {
State string `json:"state"`
}
Click to show internal directories.
Click to hide internal directories.