ex_plasma v0.1.0 ExPlasma.Client.State
Module to fetch all the contract configurations and current 'state' available.
Link to this section Summary
Functions
Returns the authority address.
Returns the child block interval, which controls the incrementing block number for each child block.
Returns a ExPlasma.Block for the given block number.
Returns the exit game address for the given transaction type id.
Returns the exit id for the given tx_bytes and utxo_pos.
Returns whether the exit queue has been added for a given vault_id and token.
Returns the next child block to be mined.
Returns the next deposit block to be mined.
Returns the existing standard exit for the given exit id. The exit id is connected to a specific UTXO existing in the contract.
Link to this section Functions
Returns the authority address.
Example
iex> ExPlasma.Client.authority() "ffcf8fdee72ac11b5c542428b35eef5769c409f0"
Returns the child block interval, which controls the incrementing block number for each child block.
Returns a ExPlasma.Block for the given block number.
get_exit_game_address(txn_type_id)
Returns the exit game address for the given transaction type id.
get_standard_exit_id(is_deposit, tx_bytes, utxo_pos)
Returns the exit id for the given tx_bytes and utxo_pos.
has_exit_queue(vault_id, token_address)
has_exit_queue(non_neg_integer(), String.t()) :: tuple()
Returns whether the exit queue has been added for a given vault_id and token.
Returns the next child block to be mined.
Returns the next deposit block to be mined.
Examples
iex> ExPlasma.Client.next_deposit_block() 1
standard_exit_bond_size()
standard_exits(exit_id)
Returns the existing standard exit for the given exit id. The exit id is connected to a specific UTXO existing in the contract.