UTXORedeemableToken
/contracts/token/UTXORedeemableToken.sol

Project Wyvern Developers

event

Approval 8c5be1e5

inputs0addressowner
inputs1addressspender
inputs2uint256value
event

Transfer ddf252ad

inputs0addressfrom
inputs1addressto
inputs2uint256value
event

UTXORedeemed 2475a9b3

inputs0bytes32txid
inputs1uint8outputIndex
inputs2uint256satoshis
inputs3bytesproof
inputs4bytespubKey
inputs5uint8v
inputs6bytes32r
inputs7bytes32s
inputs8addressredeemer
inputs9uint256numberOfTokens
function, constant

allowance dd62ed3e

Function to check the amount of tokens that an owner allowed to a spender.

inputs0address_owner

address The address which owns the funds.

inputs1address_spender

address The address which will spend the funds.

outputs0uint256
function

approve 095ea7b3

Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729

inputs0address_spender

The address which will spend the funds.

inputs1uint256_value

The amount of tokens to be spent.

function, constant

balanceOf 70a08231

Gets the balance of the specified address.

inputs0address_owner

The address to query the the balance of.

outputs0uint256balance
function, constant

canRedeemUTXO 06f84701

Convenience helper function to check if a UTXO can be redeemed

inputs0bytes32txid

Transaction hash

inputs1bytes20originalAddress

Raw Bitcoin address (no base58-check encoding)

inputs2uint8outputIndex

Output index of UTXO

inputs3uint256satoshis

Amount of UTXO in satoshis

inputs4bytesproof

Merkle tree proof

outputs0bool
function, constant

canRedeemUTXOHash a2d0f942

Verify that a UTXO with the specified Merkle leaf hash can be redeemed

inputs0bytes32merkleLeafHash

Merkle tree hash of the UTXO to be checked

inputs1bytesproof

Merkle tree proof

outputs0bool
function

decreaseApproval 66188463

inputs0address_spender
inputs1uint256_subtractedValue
function, constant

ecdsaVerify ce267b55

Validate that the hash of a provided address was signed by the ECDSA public key associated with the specified Ethereum address

inputs0addressaddr

Address signed

inputs1bytespubKey

Uncompressed ECDSA public key claiming to have created this signature

inputs2uint8v

v parameter of ECDSA signature

inputs3bytes32r

r parameter of ECDSA signature

inputs4bytes32s

s parameter of ECDSA signature

outputs0bool
function

increaseApproval d73dd623

approve should be called when allowed[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol

inputs0address_spender
inputs1uint256_addedValue
function, constant

maximumRedeemable 08b4312b

function, constant

multiplier 1b3ed722

function, constant

pubKeyToBitcoinAddress e073ef69

Calculate the Bitcoin-style address associated with an ECDSA public key

inputs0bytespubKey

ECDSA public key to convert

inputs1boolisCompressed

Whether or not the Bitcoin address was generated from a compressed key

outputs0bytes20
function, constant

pubKeyToEthereumAddress 5418796c

Convert an uncompressed ECDSA public key into an Ethereum address

inputs0bytespubKey

Uncompressed ECDSA public key to convert

outputs0address
function

redeemUTXO cce2771e

Redeem a UTXO, crediting a proportional amount of tokens (if valid) to the sending address

inputs0bytes32txid

Transaction hash

inputs1uint8outputIndex

Output index of the UTXO

inputs2uint256satoshis

Amount of UTXO in satoshis

inputs3bytesproof

Merkle tree proof

inputs4bytespubKey

Uncompressed ECDSA public key to which the UTXO was sent

inputs5boolisCompressed

Whether the Bitcoin address was generated from a compressed public key

inputs6uint8v

v parameter of ECDSA signature

inputs7bytes32r

r parameter of ECDSA signature

inputs8bytes32s

s parameter of ECDSA signature

outputs0uint256tokensRedeemed
function, constant

rootUTXOMerkleTreeHash e6997f6d

function, constant

totalRedeemed f35dad40

function, constant

totalSupply 18160ddd

function

transfer a9059cbb

transfer token for a specified address

inputs0address_to

The address to transfer to.

inputs1uint256_value

The amount to be transferred.

function

transferFrom 23b872dd

Transfer tokens from one address to another

inputs0address_from

address The address which you want to send tokens from

inputs1address_to

address The address which you want to transfer to

inputs2uint256_value

uint256 the amount of tokens to be transferred

function, constant

validateSignature af1d06e8

Validate that a provided ECSDA signature was signed by the specified address

inputs0bytes32hash

Hash of signed data

inputs1uint8v

v parameter of ECDSA signature

inputs2bytes32r

r parameter of ECDSA signature

inputs3bytes32s

s parameter of ECDSA signature

inputs4addressexpected

Address claiming to have created this signature

outputs0bool
function, constant

verifyProof 1858cb5b

Verify a Merkle proof using the UTXO Merkle tree

inputs0bytesproof

Generated Merkle tree proof

inputs1bytes32merkleLeafHash

Hash asserted to be present in the Merkle tree

outputs0bool