1ba2df8024e20c8aaf61c4ed27aa95a7ced515e2
On TestRPC, I'm seeing a particular transaction that is taking 47275 gas instead of the predefined 47155. It's not at all obvious to me why this transaction is taking an extra 120 gas, and I've been unable to reproduce the issue in the 0x.js test suite, but bumping the gas allowance has resolved the issue for me. The transactions in question are trying to set an unlimited proxy allowance on either the WETH or ZRX tokens in the testrpc snapshot, but run out of gas.
0x is an open protocol that facilitates trustless, low friction exchange of Ethereum-based assets. A full description of the protocol may be found in our whitepaper.
This repository contains a Javascript library that makes it easy to build Relayers and other DApps that use the 0x protocol.
Installation
0x.js ships as both a UMD module and a CommonJS package.
CommonJS (recommended):
Install
npm install 0x.js --save
Import
import {ZeroEx} from '0x.js';
UMD:
Install
Download the UMD module from our releases page and add it to your project.
Import
<script type="text/javascript" src="0x.js"></script>
Documentation
Extensive documentation of 0x.js can be found on our website.
Description
Languages
TypeScript
59.4%
Solidity
31.6%
MDX
9%