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

Function clients

tests/simulation/ProtocolConfig.upgrade.test.ts:44–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 // ============ Test Setup ============
43
44 const clients = async () => {
45 const client = await hre.viem.getPublicClient({
46 chain: getChain(hre),
47 })
48 const protocolConfig = ProtocolConfig.attach(client)
49
50 const upgradeAbi = parseAbi([
51 'function upgradeTo(address newImplementation)',
52 'function upgradeToAndCall(address newImplementation, bytes memory data)',
53 'function implementation() view returns (address)',
54 'function admin() view returns (address)',
55 ])
56
57 return { client, protocolConfig, upgradeAbi }
58 }
59
60 /**
61 * Get new implementation address from environment

Callers 1

Calls 2

getChainFunction · 0.90
attachMethod · 0.45

Tested by

no test coverage detected