
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@edgeandnode/contract-utils
Advanced tools
Exposes contract utils to interact with The Graph Network contracts.
Exposes contract utils to interact with The Graph Network contracts.
# install the dependency
## pnpm
pnpm add @edgeandnode/contract-utils
## yarn
yarn add @edgeandnode/contract-utils
## bun
bun add @edgeandnode/contract-utils
Retrieve the contract address of a Graph Network contract on the specified network
import { resolveContractAddress } from '@edgeandnode/contract-utils'
// retrieve correct GNS address for arbitrum
const L2GNSAddress = resolveContractAddress({ network: 42161, contract: 'GNS' })
// retrieve correct GraphToken address for sepolia
const SepoliaGraphTokenAddress = resolveContractAddress({
network: 11155111,
contract: 'GraphToken',
})
Call the mintSignal L2GNS contract function from the generated actions.
import { createClient } from 'viem'
import { createConfig, http } from 'wagmi'
import { arbitrum, arbitrumSepolia, mainnet, sepolia } from 'wagmi/chains'
import { coinbaseWallet, injected, safe, walletConnect } from 'wagmi/connectors'
import { buildConfig, writeL2GnsMintSignal } from '@edgeandnode/contract-utils'
async function mint() {
const config = createConfig({
chains: [arbitrum, arbitrumSepolia, mainnet, sepolia],
ssr,
client({ chain }) {
return createClient({ chain, transport: http() })
},
connectors: [
coinbaseWallet({ appName: 'The Graph' }),
injected(),
safe({ allowedDomains: [/app.safe.global$/] }),
walletConnect({
projectId: 'WALLETCONNECT_PROJECT_ID',
metadata: {
name: 'The Graph',
description: 'The Graph Network suite of apps wallet integration',
url: 'https://thegraph.com',
icons: [''],
},
qrModalOptions: {
themeMode: 'dark',
},
}),
],
})
const mintTx = await writeL2GnsMintSignal(config, {
account: `0x`,
args: [0n, 0n, 0n],
})
}
# required a `.env.local` file with env vars (see below)
pnpm generate
# or
pnpm wagmi generate
You might get
Max calls per sec rate limit reached (5/sec)when running the commands above. Since wagmi CLI caches the contract ABIs you can just keep re-running the command and the CLI will fetch more and more ABIs and eventually generates the utils.
You can just create free API keys and they will work with wagmi CLI:
ARBISCAN_KEY -> api key for reading contract ABIs from arbiscan.ioETHERSCAN_KEY -> api key for reading contract ABIs from etherscan.ioFAQs
Exposes contract utils to interact with The Graph Network contracts.
The npm package @edgeandnode/contract-utils receives a total of 19 weekly downloads. As such, @edgeandnode/contract-utils popularity was classified as not popular.
We found that @edgeandnode/contract-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 18 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
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.