Versions in this module Expand all Collapse all v0 v0.2.1 Nov 11, 2020 v0.1.1 May 30, 2020 v0.1.0 May 30, 2020 Changes in this version + const DefaultMetadata + const EthCurrency + const MaxOutputs + func BuildTransaction(b Builder) error + func SignTransaction(s Signer, sf SignerFunc) ([][]byte, error) + type Block struct + Blknum int + EthHeight int + Hash string + Timestamp int + type Builder interface + BuildTransaction func() error + type ChallengeUTXOData struct + Data struct{ ... } + Success bool + Version string + type Client struct + HttpClient HttpClient + Watcher *url.URL + func NewClient(watcher string, httpclient HttpClient) (*Client, error) + func (c *Client) GetBalance(address string) (*WatcherBalanceFromAddress, error) + func (c *Client) GetChallengeData(utxoPosition int) (*ChallengeUTXOData, error) + func (c *Client) GetTransaction(txHash string) (*TransactionGetResponse, error) + func (c *Client) GetUTXOExitData(utxoPosition int) (*StandardExitUTXOData, error) + func (c *Client) GetUTXOsFromAddress(address string) (*WatcherUTXOsFromAddress, error) + func (c *Client) GetWatcher() string + func (c *Client) GetWatcherStatus() (*WatcherStatus, error) + func (c *Client) NewPaymentTx(popts ...PaymentOption) (p *PaymentTx) + type ClientError struct + Data struct{ ... } + Success bool + Version string + type ContractAddr struct + Erc20Vault string + EthVault string + PaymentExitGame string + PlasmaFramework string + type CreateTransaction struct + Fee Fee + Metadata string + Owner common.Address + Payments []Payment + type CreateTransactionResponse struct + Data Data + Success bool + Version string + type Data struct + Code string + Description string + Object string + Result string + Transactions []Transactions + type Domain struct + Name string + Salt string + VerifyingContract string + Version string + type EIP712Domain struct + Name string + Type string + type Fee struct + Currency common.Address + type GetTxData struct + Block Block + Inputs []Inputs + Metadata string + Outputs []Outputs + Txbytes string + Txhash string + Txindex int + type HttpClient interface + Do func(req *http.Request) (*http.Response, error) + type Input struct + Name string + Type string + type Input0 struct + Blknum int + Oindex int + Txindex int + type Input1 struct + Blknum int + Oindex int + Txindex int + type Input2 struct + Blknum int + Oindex int + Txindex int + type Input3 struct + Blknum int + Oindex int + Txindex int + type Inputs struct + Amount json.Number + Blknum int + Currency string + Oindex int + Owner string + Txindex int + UtxoPos *big.Int + type Message struct + Input0 Input0 + Input1 Input1 + Input2 Input2 + Input3 Input3 + Metadata string + Output0 Output0 + Output1 Output1 + Output2 Output2 + Output3 Output3 + type Output struct + Name string + Type string + type Output0 struct + Amount json.Number + Currency string + Owner string + type Output1 struct + Amount json.Number + Currency string + Owner string + type Output2 struct + Amount json.Number + Currency string + Owner string + type Output3 struct + Amount json.Number + Currency string + Owner string + type Outputs struct + Amount json.Number + Currency string + Owner string + type Payment struct + Amount *big.Int + Currency common.Address + Owner common.Address + type PaymentOption func(*CreateTransaction) + func AddFee(curr common.Address) PaymentOption + func AddMetadata(m string) PaymentOption + func AddOwner(o common.Address) PaymentOption + func AddPayment(amount string, addr, curr common.Address) PaymentOption + type PaymentTx struct + Client *Client + CreateTransaction *CreateTransaction + CreateTransactionResponse *CreateTransactionResponse + Signatures [][]byte + TypedTransaction TypedTransaction + func (p *PaymentTx) BuildTransaction() error + func (p *PaymentTx) SignTransaction(signer SignerFunc) ([][]byte, error) + func (p *PaymentTx) SubmitTransaction() (*TransactionSubmitResponse, error) + type PlasmaTransaction interface + type Signer interface + SignTransaction func(SignerFunc) ([][]byte, error) + type SignerFunc func([]byte) ([][]byte, error) + func SignWithRawKeys(keys ...string) SignerFunc + type StandardExitUTXOData struct + Data struct{ ... } + Success bool + Version string + type Submitter interface + SubmitTransaction func() (*TransactionSubmitResponse, error) + type Transaction struct + Name string + Type string + type TransactionGetResponse struct + Data GetTxData + Success bool + Version string + type TransactionSubmitResponse struct + Data struct{ ... } + Success bool + Version string + func SubmitTransaction(s Submitter) (*TransactionSubmitResponse, error) + type Transactions struct + Fee Fee + Inputs []Inputs + Metadata string + Outputs []Outputs + SignHash string + Txbytes string + TypedData TypedData + type TypedData struct + Domain Domain + Message Message + PrimaryType string + Types Types + type TypedTransaction struct + Domain Domain + Message Message + Signatures []string + type Types struct + EIP712Domain []EIP712Domain + Input []Input + Output []Output + Transaction []Transaction + type WatcherBalanceFromAddress struct + Data []struct{ ... } + Success bool + Version string + type WatcherStatus struct + Data struct{ ... } + Success bool + Version string + type WatcherUTXOsFromAddress struct + Data []struct{ ... } + Success bool + Version string