Skip to content

Commit 8ab9651

Browse files
committed
deploy: base: RescueAirdrop implementation
1 parent 64a7d96 commit 8ab9651

File tree

8 files changed

+396
-0
lines changed

8 files changed

+396
-0
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ ARBITRUM_RPC_URL=
88
BASE_RPC_URL=
99
ETHERSCAN_API_KEY=
1010
ARBISCAN_API_KEY=
11+
BASESCAN_API_KEY=
1112
DEPLOYER_PRIVATE_KEY=0x......
1213
SENDER=

deploy/RescueAirdrop.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { HardhatRuntimeEnvironment, Network } from "hardhat/types";
2+
import { DeployFunction } from "hardhat-deploy/types";
3+
import { deployRescueAidrop } from "./modules/RescueAirdrop";
4+
5+
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
6+
const { rescueAirdropImpl } = await deployRescueAidrop({
7+
hre,
8+
});
9+
};
10+
export default func;
11+
func.tags = ["RescueAirdrop"];
12+
func.dependencies = [];

deploy/modules/RescueAirdrop.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { HardhatRuntimeEnvironment } from "hardhat/types";
2+
import { getConfig } from "../utils";
3+
4+
export const deployRescueAidrop = async ({
5+
hre,
6+
}: {
7+
hre: HardhatRuntimeEnvironment;
8+
}) => {
9+
const { deploy, deployer } = await getConfig(hre);
10+
11+
const rescueAirdropImpl = await deploy("RescueAirdropUpgradeable", {
12+
from: deployer,
13+
args: [],
14+
log: true,
15+
});
16+
17+
return {
18+
rescueAirdropImpl: rescueAirdropImpl.address,
19+
};
20+
};

deployments/base/.chainId

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8453

deployments/base/RescueAirdropUpgradeable.json

Lines changed: 233 additions & 0 deletions
Large diffs are not rendered by default.

deployments/base/solcInputs/b0e14ad2bc5c956706ef47424355ba00.json

Lines changed: 116 additions & 0 deletions
Large diffs are not rendered by default.

hardhat.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ const config: HardhatUserConfig = {
141141
},
142142
},
143143
},
144+
base: {
145+
url: process.env.BASE_RPC_URL!,
146+
accounts: [process.env.DEPLOYER_PRIVATE_KEY!],
147+
timeout: 600000,
148+
verify: {
149+
etherscan: {
150+
apiKey: process.env.BASESCAN_API_KEY,
151+
apiUrl: "https://api.basescan.org/",
152+
},
153+
},
154+
},
144155
},
145156
mocha: {
146157
timeout: 200000,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
"deploy:sepolia": "hardhat deploy --network sepolia",
1111
"deploy:mainnet": "hardhat deploy --network mainnet",
1212
"deploy:arbitrum": "hardhat deploy --network arbitrum",
13+
"deploy:base": "hardhat deploy --network base",
1314
"verify:goerli": "hardhat --network goerli etherscan-verify",
1415
"verify:sepolia": "hardhat --network sepolia etherscan-verify",
1516
"verify:mainnet": "hardhat --network mainnet etherscan-verify",
1617
"verify:arbitrum": "hardhat --network arbitrum etherscan-verify",
18+
"verify:base": "hardhat --network base etherscan-verify",
1719
"gen:addresses": "ts-node ./script/genAddressesJson.ts",
1820
"gen:readme": "ts-node ./script/genREADME.ts",
1921
"gen:addresses-and-readme": "yarn gen:addresses && yarn gen:readme"

0 commit comments

Comments
 (0)