
Security News
upm Launches as a Fast, Tiny Package Manager Written in TypeScript
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.
@chainsafe/web3-context
Advanced tools
A React Context wrapper for Blocknative OnbardJS with a couple of utility functions
A React Context wrapper for Blocknative OnbardJS
Wrap you application in a
<Web3Provider networkIds={[1]}>
{YOUR APP CODE}
</Web3Provider>
The following props can be passed in to configure the Web3 Provider:
onboardConfig?: OnboardConfig; // The OnboardJS Configuration object - See [here](https://docs.blocknative.com/onboard#built-in-modules)
networkIds?: number[]; // Defaults to 1 if nothing is provided
ethGasStationApiKey?: string;
gasPricePollingInterval?: number; //Seconds between gas price polls. Defaults to 0 - Disabled
gasPriceSetting?: EthGasStationSettings | EtherchainGasSettings;
tokensToWatch?: TokensToWatch; // Network-keyed collection of token addresses to watch
spenderAddress?: string;
cacheWalletSelection?: boolean;
checkNetwork?: boolean; // Defaults to true if networkIds are provided
children: React.ReactNode;
Anywhere further down the component tree, use:
const {address} = useWeb3();
Take a look at the example folder for a basic implementation of the components.
FAQs
A React Context wrapper for Blocknative OnbardJS with a couple of utility functions
The npm package @chainsafe/web3-context receives a total of 104 weekly downloads. As such, @chainsafe/web3-context popularity was classified as not popular.
We found that @chainsafe/web3-context demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.

Security News
upm uses Node.js to deliver fast npm installs in about 250 KB, with a JavaScript API and security defaults.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.