ABI 编码,快速

时间:2021-06-28 19:30:52
【文件属性】:
文件名称:ABI 编码,快速
文件大小:36KB
文件格式:ZIP
更新时间:2021-06-28 19:30:52
fast-abi 斋戒快速编码和解码 abi 数据。用法constRUST_ENCODER=newFastABI(ABIasMethodAbi[]);constcallData=RUST_ENCODER.encodeInput('sampleSellsFromUniswapV2',[ ...values]);// 0x.....// Decode the output of a method callconstoutput=RUST_ENCODER.decodeOutput('sampleSellsFromUniswapV2',callData);// {// router: '0x6b175474e89094c44da98b954eedeac495271d0f',// path: [ '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' ],// takerTokenAmounts: [ 1, 2, 3 ]// }性能 Uniswap ABI 13 input encode ✓ ZeroEx - optimized (2
【文件预览】:
fast-abi-master
----.gitignore(101B)
----package.json(1KB)
----src()
--------fast_abi.ts(4KB)
--------index.ts(38B)
----native()
--------src()
--------Cargo.lock(15KB)
--------Cargo.toml(357B)
--------build.rs(144B)
----CHANGELOG.md(101B)
----tsconfig.json(591B)
----.github()
--------workflows()
----README.md(2KB)
----.prettierrc(126B)
----yarn.lock(63KB)

网友评论