
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
@avalabs/avalanche-connector
Advanced tools
This is a connector for the upcoming release of `@web3-react/core`. This serves as an example of how to connect for versions older than `8.0.17-beta.0`. If you need help connecting to older versions feel free to reach out at `coreintegrations@avalabs.org`
This is a connector for the upcoming release of @web3-react/core
. This serves as an example of how to connect for versions older than 8.0.17-beta.0
. If you need help connecting to older versions feel free to reach out at coreintegrations@avalabs.org
There is a working example in this repo under the package avalanche connector example
import { createContext, useContext } from 'react';
import { initializeConnector, Web3ReactHooks } from '@web3-react/core';
import { Avalanche } from '@avalabs/avalanche-connector';
const Web3ConnectionContext = createContext<
{
connector: Avalanche;
} & Web3ReactHooks
>({} as any);
export function Web3ConnectionContextProvider({ children }: { children: any }) {
const [connector, hooks] = initializeConnector(
(actions) => new Avalanche(actions, true)
);
return (
<Web3ConnectionContext.Provider
value={{
connector,
...hooks,
}}
>
{children}
</Web3ConnectionContext.Provider>
);
}
export function useWeb3ConnectionContext() {
return useContext(Web3ConnectionContext);
}
<Web3ConnectionContextProvider>
<App />
</Web3ConnectionContextProvider>
import { useWeb3ConnectionContext } from 'your-path-here';
export function YourFancyComponent() {
const { provider, hooks } = useWeb3ConnectionContext();
}
FAQs
This is a connector for the upcoming release of `@web3-react/core`. This serves as an example of how to connect for versions older than `8.0.17-beta.0`. If you need help connecting to older versions feel free to reach out at `coreintegrations@avalabs.org`
We found that @avalabs/avalanche-connector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.