Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@1inch/1inch-solidity-utils
Advanced tools
This is package for deps in limit-order-protocol
v2.
The most actually npm package is solidity-utils
.
This repository contains frequently used smart contracts, libraries and interfaces. Also it contains utils which are used in tests.
directory | .sol | description |
---|---|---|
contracts | EthReceiver | |
contracts | Permitable | |
contracts | GasChecker | |
contracts/interfaces | IDaiLikePermit | Interface of token which has permit method like DAI token |
contracts/interfaces | IWETH | WETH token interface |
contracts/libraries | AddressArray | library for work with array of addresses |
contracts/libraries | AddressSet | library for work with set of addresses |
contracts/libraries | RevertReasonParser | library parse the message from reverted method to readble format |
contracts/libraries | StringUtil | optimized methods to convert data to hex |
contracts/libraries | UniERC20 |
module | function | descrption |
---|---|---|
asserts | assertThrowsAsync(action, msg) | checks the async function action() thrown with message msg |
asserts | assertRoughlyEqualValues(expected, actual, relativeDiff) | checks the expected value is equal to actual value with relativeDiff precision |
utils | timeIncreaseTo(seconds) | increases blockchain time to seconds sec |
utils | trackReceivedToken(token, wallet, txPromise, ...args) | returns amount of token which recieved the wallet in async method txPromise with arguments args |
utils | trackReceivedTokenAndTx(token, wallet, txPromise, ...args) | returns transaction info and amount of token which recieved the wallet in async method txPromise with arguments args |
utils | fixSignature(signature) | patchs ganache's signature to geth's version |
utils | signMessage(signer, messageHex) | signs messageHex with signer and patchs ganache's signature to geth's version |
utils | countInstructions(txHash, instruction) | counts amount of instruction in transaction with txHash hash |
profileEVM | profileEVM(txHash, instruction, optionalTraceFile) | the same as the countInstructions() with option of writing all trace to optionalTraceFile |
profileEVM | gasspectEVM(txHash, options, optionalTraceFile) | returns all used operations in txHash transaction with options and their costs with option of writing all trace to optionalTraceFile |
...
FAQs
Solidity and JS utils
We found that @1inch/1inch-solidity-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.