Skip to content

Commit

Permalink
Feat/mode (#60)
Browse files Browse the repository at this point in the history
* feat: add mode

* chore: change to old address

* feat: add astar and astar zke

---------

Co-authored-by: Picodes <[email protected]>
  • Loading branch information
BaptistG and Picodes authored May 3, 2024
1 parent 4f414bf commit 33a7e24
Show file tree
Hide file tree
Showing 28 changed files with 12,234 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@
#ARBITRUM_ETHERSCAN_API_KEY=""

# DEPLOYER_PRIVATE_KEY=""

# ETH_NODE_URI_MODE=https://mainnet.mode.network/
# ETHERSCAN_API_KEY_MODE=""
# MODE_ETHERSCAN_API_KEY=""

# ETH_NODE_URI_ASTAR=
# ETHERSCAN_API_KEY_ASTAR=""
# MODE_ETHERSCAN_API_ASTAR=""

# ETH_NODE_URI_ASTARZKEVM=
# ETHERSCAN_API_KEY_ASTARZKEVM=""
# MODE_ETHERSCAN_API_ASTARZKEVM=""
3 changes: 2 additions & 1 deletion deploy/0_distributor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChainId, CONTRACTS_ADDRESSES, registry } from '@angleprotocol/sdk';
import { DeployFunction } from 'hardhat-deploy/types';
import yargs from 'yargs';
import * as readline from 'readline';

import { Distributor, Distributor__factory } from '../typechain';
const argv = yargs.env('').boolean('ci').parseSync();
Expand Down Expand Up @@ -29,7 +30,7 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
}
*/

console.log('Let us get started with deployment');
console.log('Let us get started with deployment, deploying with this address');
console.log(deployer.address);

console.log('Now deploying Distributor');
Expand Down
1 change: 1 addition & 0 deletions deploy/1_distributionCreator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { DeployFunction } from 'hardhat-deploy/types';
import yargs from 'yargs';
import * as readline from 'readline';

import { DistributionCreator, DistributionCreator__factory } from '../typechain';
import { parseAmount } from '../utils/bignumber';
Expand Down
2 changes: 1 addition & 1 deletion deploy/aglaMerkl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
await deploy(implementationName, {
contract: implementationName,
from: deployer.address,
args: ["aglaMerkl","aglaMerkl",6],
args: ["aglaMerkl","aglaMerkl", 6],
log: !argv.ci,
});

Expand Down
1 change: 1 addition & 0 deletions deployments/astar/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
592
132 changes: 132 additions & 0 deletions deployments/astar/DistributionCreator.json

Large diffs are not rendered by default.

Loading

0 comments on commit 33a7e24

Please sign in to comment.