
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@leap-network/pooltogether-rng-contracts
Advanced tools
The PoolTogether Prize Savings Protocol Ethereum smart contracts.
See the documentation
The RNGWitnet contract is a custom-built solution to request a random number from the Witnet oracle. It is hosted in a separate repository as it is built using the Python-based Brownie development suite.
Install Dependencies
$ yarn
Copy over .envrc.example to .envrc
$ cp .envrc.example .envrc
Make sure to update the enviroment variables with suitable values.
Now enable the env vars using direnv
$ direnv allow
You can interact with the contract using the buidler console:
$ npx hardhat console --network [network]
Then you can interact with deployed contracts:
> const signer = (await ethers.getSigners())[0]
> const d = await deployments.all()
> const chainlink = await ethers.getContractAt('RNGChainlink', d.RNGChainlink.address, signer)
> const link = await ethers.getContractAt('IERC20', (await chainlink.getLink()), signer)
You can deploy using the deploy script:
$ yarn deploy [network]
Where [network] can be mainnet, rinkeby, ropsten, or kovan.
Now you should verify the contracts on Etherscan:
$ yarn etherscan-verify [network]
The network option is the same as above.
Verify Codebase (hint + test)
$ yarn verify
Run Static Code Analysis
$ yarn hint
Run Tests
$ yarn test
Run Coverage
$ yarn coverage
Run Gas Report
$ yarn gas
Start Local TestRPC & Deploy
$ yarn start
Deploy to an Ethereum Network
FAQs
PoolTogether RNG Service Smart Contracts
We found that @leap-network/pooltogether-rng-contracts 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.