Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@1inch/solidity-utils
Advanced tools
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, optionalTraceFile) | returns all used operations in txHash transaction and their costs with option of writing all trace to optionalTraceFile |
...
FAQs
Solidity and TS utils
The npm package @1inch/solidity-utils receives a total of 0 weekly downloads. As such, @1inch/solidity-utils popularity was classified as not popular.
We found that @1inch/solidity-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.