Encodes the replacementPattern for a supplied ABI and replace kind
Computes the default value for a type
The ABI type to calculate a default value for
The default value for that type
Waits for a transaction to be mined and returns the transaction receipt.
Transaction hash
How often (in ms) should we check if the transaction is mined.
How long (in ms) to poll for transaction mined until aborting.
Transaction receipt with decoded log args.
Gets the authenticated proxy contract for a specific account address
address to retrieve the proxy contract from
Get user Ethereum addresses available through the supplied web3 provider available for sending transactions.
An array of available user Ethereum addresses.
Sets a new web3 provider for wyvernProtocol.js. Updating the provider will stop all subscriptions so you will need to re-subscribe to all events relevant to your app after this call.
The Web3Provider you would like the wyvernProtocol.js library to use from now on.
The id of the network your provider is connected to
Signs an orderHash and returns its elliptic curve signature. This method currently supports TestRPC, Geth and Parity above and below V1.6.6
Hex encoded orderHash to sign.
The hex encoded Ethereum address you wish to sign it with. This address must be available via the Web3.Provider supplied to wyvernProtocol.js.
An object containing the Elliptic curve signature parameters generated by signing the orderHash.
Generates a pseudo-random 256-bit salt. The salt can be included in an 0x order, ensuring that the order generates a unique orderHash and will not collide with other outstanding orders that are identical in all other parameters.
A pseudo-random 256-bit number that can be used as a salt.
Computes the assetHash for a supplied asset.
Computes the orderHash for a supplied order.
An object that conforms to the Order or SignedOrder interface definitions.
The resulting orderHash from hashing the supplied order.
Checks if the supplied hex encoded order hash is valid. Note: Valid means it has the expected format, not that an order with the orderHash exists. Use this method when processing orderHashes submitted as user input.
Hex encoded orderHash.
Whether the supplied orderHash has the expected format.
Verifies that the elliptic curve signature signature
was generated
by signing data
with the private key corresponding to the signerAddress
address.
The hex encoded data signed by the supplied signature.
An object containing the elliptic curve signature parameters.
The hex encoded address that signed the data, producing the supplied signature.
Whether the signature is valid for the supplied signerAddress and data.
A baseUnit is defined as the smallest denomination of a token. An amount expressed in baseUnits is the amount expressed in the smallest denomination. E.g: 1 unit of a token with 18 decimal places is expressed in baseUnits as 1000000000000000000
The amount of units that you would like converted to baseUnits.
The number of decimal places the unit amount has.
The amount in baseUnits.
A unit amount is defined as the amount of a token above the specified decimal places (integer part). E.g: If a currency has 18 decimal places, 1e18 or one quintillion of the currency is equivalent to 1 unit.
The amount in baseUnits that you would like converted to units.
The number of decimal places the unit amount has.
The amount in units.
Generated using TypeDoc
Encodes the atomicized replacementPattern for a supplied ABI and replace kind
array of AnnotatedFunctionABI
Parameter kind to replace
The resulting encoded replacementPattern