MCPcopy Create free account
hub / github.com/across-protocol/relayer / deploySpokePoolWithToken

Function deploySpokePoolWithToken

test/utils/utils.ts:125–131  ·  view source on GitHub ↗
(fromChainId = 0)

Source from the content-addressed store, hash-verified

123}
124
125export async function deploySpokePoolWithToken(fromChainId = 0): Promise<SpokePoolDeploymentResult> {
126 const { weth, erc20, spokePool, unwhitelistedErc20, destErc20 } = await utils.deploySpokePool(ethers);
127 const receipt = await spokePool.deployTransaction.wait();
128
129 await spokePool.setChainId(fromChainId == 0 ? utils.originChainId : fromChainId);
130 return { weth, erc20, spokePool, unwhitelistedErc20, destErc20, deploymentBlock: receipt.blockNumber };
131}
132
133export async function deployMulticall3(signer: SignerWithAddress) {
134 return sdkUtils.deploy(signer);

Calls

no outgoing calls

Tested by

no test coverage detected