
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
advanced-weth
Advanced tools
A smart contract that adds functionality to the Wrapped Ether smart contract which allows users to interact with other smart contracts that consume WETH transparently as if they are using ETH directly.
Requires a single approval from the user for the AdvancedWETH contract to spend any amount of their WETH, and thus benefits from widespread use of a canonical advanced WETH contract. Because this approval never runs out or expires, this is a once-per-account requirement to permanently enhance the capabilities of WETH.
The benefit of removing special handling of ETH from your contract is that
you can reduce your interface size significantly, i.e. you can pretend that ETH
already implements the ERC20 interface and consume ETH via the AdvancedWETH
contract.
All methods are documented inline in the contract interface.
For unit tests, you can depend on the advanced-weth
npm package
for access to the contract interface and the build artifacts.
npm install --save advanced-weth
Use the bytecode stored in the import path
advanced-weth/build/contracts/AdvancedWETH.json
file to deploy the contract for unit tests.
Note only the interface solidity code is shared in the npm package. This is because to deploy the contract on a testnet, you should use the build artifact to get an exact copy of the AdvancedWETH contract regardless of local solc compiler settings.
The constructor has a single argument, the WETH contract address.
The build artifacts in the npm package contain the deployment addresses for programmatic consumption.
The AdvancedWETH contract is deployed and verified to the address 0x27E90122950c9E4E669edcC90Fac6c105770420b
on the networks:
This contract has not been audited, nor formally verified. Use at your own risk.
FAQs
Wrapped WETH contract that adds advanced functionality to WETH
The npm package advanced-weth receives a total of 7 weekly downloads. As such, advanced-weth popularity was classified as not popular.
We found that advanced-weth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.