Skip to content

Commit

Permalink
Merge pull request #1739 from api3dao/deploy-api3-chains
Browse files Browse the repository at this point in the history
Use @api3/chains in airnode-protocol
  • Loading branch information
bbenligiray authored Apr 17, 2023
2 parents 8d05fab + 680084c commit ffd8527
Show file tree
Hide file tree
Showing 141 changed files with 16,913 additions and 441 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-goats-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@api3/airnode-protocol': patch
---

Refer to @api3/chains for chain related information while deploying contracts
2 changes: 1 addition & 1 deletion .changeset/thick-pandas-battle.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@api3/airnode-protocol': minor
---

Add AirnodeRrpV0DryRun.sol
Add and deploy AirnodeRrpV0DryRun.sol
4 changes: 2 additions & 2 deletions packages/airnode-examples/src/scripts/choose-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ const defaultProviderUrl = (network: string): string => {
case 'localhost':
// Hardhat network default
return 'http://127.0.0.1:8545/';
case 'goerli':
case 'ethereum-goerli-testnet':
return getExamplePocketNetwork(network);
case 'polygon-testnet':
return `https://polygon-mumbai.g.alchemy.com/v2/`;
case 'sepolia':
case 'ethereum-sepolia-testnet':
return 'https://sepolia.infura.io/v3/<INFURA_ID>';
default:
return getExamplePocketNetwork(network);
Expand Down
2 changes: 1 addition & 1 deletion packages/airnode-examples/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import prompts, { PromptObject } from 'prompts';
import isWsl from 'is-wsl';
import references from '@api3/airnode-protocol/deployments/references.json';

export const supportedNetworks = ['sepolia', 'polygon-testnet', 'goerli'] as const;
export const supportedNetworks = ['ethereum-sepolia-testnet', 'polygon-testnet', 'ethereum-goerli-testnet'] as const;

export interface IntegrationInfo {
integration: string;
Expand Down
312 changes: 0 additions & 312 deletions packages/airnode-protocol/credentials.example.json

This file was deleted.

7 changes: 7 additions & 0 deletions packages/airnode-protocol/deploy/1_deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ module.exports = async ({ getUnnamedAccounts, deployments }) => {
deterministicDeployment: process.env.DETERMINISTIC ? hre.ethers.constants.HashZero : undefined,
});
log(`Deployed AirnodeRrpV0 at ${airnodeRrpV0.address}`);

const airnodeRrpV0DryRun = await deploy('AirnodeRrpV0DryRun', {
from: accounts[0],
log: true,
deterministicDeployment: process.env.DETERMINISTIC ? hre.ethers.constants.HashZero : undefined,
});
log(`Deployed AirnodeRrpV0DryRun at ${airnodeRrpV0DryRun.address}`);
};
module.exports.tags = ['deploy'];
6 changes: 6 additions & 0 deletions packages/airnode-protocol/deploy/2_verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ module.exports = async ({ deployments }) => {
address: AirnodeRrpV0.address,
constructorArguments: [],
});

const AirnodeRrpV0DryRun = await deployments.get('AirnodeRrpV0DryRun');
await hre.run('verify:verify', {
address: AirnodeRrpV0DryRun.address,
constructorArguments: [],
});
};
module.exports.tags = ['verify'];
Loading

0 comments on commit ffd8527

Please sign in to comment.