MCPcopy Create free account
hub / github.com/circlefin/arc-node / clients

Function clients

tests/simulation/ValidatorManager.test.ts:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26describe('ValidatorRegistry simulation', () => {
27 const clients = async () => {
28 const client = await hre.viem.getPublicClient({
29 chain: getChain(hre),
30 })
31 const validatorRegistry = ValidatorRegistry.attach(client)
32 const randomWallet = privateKeyToAccount(generatePrivateKey())
33 const extraAbi = parseAbi(['function upgradeTo(address newImplementation)'])
34
35 return { client, randomWallet, validatorRegistry, extraAbi }
36 }
37
38 // Reads at block 0 so the assertion is immune to validator registrations
39 // performed by the localdev test suite (which only grows _nextRegistrationId).

Callers 1

Calls 2

getChainFunction · 0.90
attachMethod · 0.45

Tested by

no test coverage detected