Get an instance of the vedor low-level contract object
Parameters
address (address) The address of the deployed smart contract
abi (string) ABI of the deployed smart contract
Returns
the vendor specific contract object
Method estimate_gas
Return an estimate of gas to be used in a transaction, as well as the price of the gas
Parameters
a (tuple) Length 2 tuple whose values are a web3 transactable object and a tx_opts dict. This is the common return of all Swivel.py H.O.C contract methods.
Returns
gas, gas_price
Method send
Convenience method which builds, signs and broadcasts a transaction
Method send_raw_transaction
Given a raw signed transaction, broadcast it
Parameters
t (transaction) A web3 transaction which has been signed
Returns
A transaction hash suitable for web3's ...wait_for_transaction_receipt method
Method sign_order
Sign an order, producing an EIP712 compliant signature
Parameters
o (dict) Swivel Order object
i (int) ChainId
a (string) Address of the deployed verifying contract
Returns
The signature hex
Method sign_transaction
Called after a transaction has been built with build_transaction
Parameters
t (dict) A built transaction object from build_transaction