MCPcopy Create free account
hub / github.com/api3dao/airnode / main

Function main

packages/airnode-examples/src/scripts/deploy-requester.ts:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { readIntegrationInfo, deployContract, getDeployedContract, runAndHandleErrors, cliPrint } from '../';
2
3const main = async () => {
4 const integrationInfo = readIntegrationInfo();
5 const airnodeRrp = await getDeployedContract('@api3/airnode-protocol/contracts/rrp/AirnodeRrpV0.sol');
6
7 const requester = await deployContract(`contracts/${integrationInfo.integration}/Requester.sol`, [
8 airnodeRrp.address,
9 ]);
10 cliPrint.info(`Requester deployed to address: ${requester.address}`);
11};
12
13runAndHandleErrors(main);

Callers

nothing calls this directly

Calls 4

readIntegrationInfoFunction · 0.85
getDeployedContractFunction · 0.85
deployContractFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected