Skip to content

Commit

Permalink
Chore/sei (#70)
Browse files Browse the repository at this point in the history
* chore: adding sei

* chore: adding moonbeam

* chore: fixing the deployment + adding sei and moonbeam
  • Loading branch information
Lamicham authored Jun 17, 2024
1 parent 5b5502b commit 09ecee6
Show file tree
Hide file tree
Showing 20 changed files with 9,120 additions and 20 deletions.
14 changes: 13 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@
# MODE_ETHERSCAN_API_ASTARZKEVM=""

#ETH_NODE_URI_ROOTSTOCK=
#ROOTSTOCK_ETHERSCAN_API_KEY="
#ROOTSTOCK_ETHERSCAN_API_KEY=""

#ETH_NODE_URI_TAIKO=
#TAIKO_ETHERSCAN_API_KEY=""

#ETH_NODE_URI_SEI=
#SEI_ETHERSCAN_API_KEY=""

#ETH_NODE_URI_MOONBEAM=
#MOONBEAM_ETHERSCAN_API_KEY=""



24 changes: 12 additions & 12 deletions deploy/0_distributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {
console.log('Now deploying Distributor');
console.log('Starting with the implementation');

// await deploy('Distributor_Implementation_V2_1', {
// contract: 'Distributor',
// from: deployer.address,
// log: !argv.ci,
// });
await deploy('Distributor_Implementation_V2_1', {
contract: 'Distributor',
from: deployer.address,
log: !argv.ci,
});

const implementationAddress = (await ethers.getContract('Distributor_Implementation_V2_1')).address;

Expand All @@ -52,18 +52,18 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => {

console.log('Now deploying the Proxy');

// await deploy('Distributor', {
// contract: 'ERC1967Proxy',
// from: deployer.address,
// args: [implementationAddress, '0x'],
// log: !argv.ci,
// });
await deploy('Distributor', {
contract: 'ERC1967Proxy',
from: deployer.address,
args: [implementationAddress, '0x'],
log: !argv.ci,
});

const distributor = (await deployments.get('Distributor')).address;
console.log(`Successfully deployed contract at the address ${distributor}`);
console.log('Initializing the contract');
const contract = new ethers.Contract(distributor, Distributor__factory.createInterface(), deployer) as Distributor;
// await (await contract.connect(deployer).initialize(core)).wait();
await (await contract.connect(deployer).initialize(core)).wait();
console.log('Contract successfully initialized');
console.log('');
};
Expand Down
1 change: 1 addition & 0 deletions deployments/moonbeam/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1284
132 changes: 132 additions & 0 deletions deployments/moonbeam/DistributionCreator.json

Large diffs are not rendered by default.

Loading

0 comments on commit 09ecee6

Please sign in to comment.