The token address
Closes the database connection. NOTE: Should be only used in tests.
Confirms an outgoing payment
The payment ID
Cooperatively withdraw from a payment channel.
The channel ID.
The amount to be withdrawn from the channel, in wei
The deposit transaction hash
Deposits into a payment channel.
The channel ID.
The token type, currently supporting ETH and ERC20
The amount to be deposited into the channel, in wei
The deposit transaction hash
Generates a and stores a hash lock condition for a payment.
A hash lock condition
Gets all payment channel IDs for a token
The token address
The payment channel IDs
Gets the IDs of all incoming payments on a channel
The channel ID
The list of IDs for all incoming payments
Gets the IDs of all outgoing payments on a channel
The channel ID
The list of IDs for all outgoing payments
Gets the info about a payment channel
The channel ID
The payment channel info
Gets the info about a payment
The payment ID
The payment info
Opens a payment channel.
The token type, currently supporting ETH and ERC20
The token address
The amount to be deposited into the channel, in wei
The amount to be deposited into the channel by the counterparty, in wei
The channel ID
Rejects an incoming payment
The payment ID
Removes a hash lock condition from storage.
A hash lock condition
Sends a conditional payment.
The token type, currently supporting ETH and ERC20
The token address (only used for ERC20 payments)
The ETH address of the recipient
The amount to be sent, in wei
The type of the transfer logic. Currently only supporting BOOLEAN_AND
The list of Condition objects
The number of blocks after which the payment expires
An optional payment note with additional information for the recipient
The payment ID
Sends a payment with a single hash lock condition.
The token type, currently supporting ETH and ERC20
The token address
The ETH address of the recipient
The amount to be sent, in wei
An optional payment note with additional information for the recipient
The payment ID
Creates a Celer Light Client instance.
One of:
One of:
The addresses of the Celer contracts
The configuration object
Approves the CelerLedger contract to spend an ERC-20 token.