Skip to content

Commit

Permalink
restore files
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello committed Mar 18, 2024
1 parent 1c518d0 commit 1dc5888
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
4 changes: 2 additions & 2 deletions scripts/deployments/core/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const networkName = network.name;
async function main() {
if (!isProtocolNetworkName(networkName)) throw new Error("Invalid network name");

// await deterministicDeployZetaToken();
// await deterministicDeployZetaConnector();
await deterministicDeployZetaToken();
await deterministicDeployZetaConnector();
await deterministicDeployERC20Custody();
}

Expand Down
12 changes: 1 addition & 11 deletions scripts/deployments/core/deterministic-deploy-erc20-custody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const deterministicDeployERC20Custody = async () => {
const zetaTokenAddress = getAddress("zetaToken", network.name);
const tssAddress = getAddress("tss", network.name);
const tssUpdaterAddress = getAddress("tssUpdater", network.name);
const immutableCreate2FactoryAddress = "0x095a03c6a68137fE9a566bBc3e552F299d8b886d"; //getAddress("immutableCreate2Factory", network.name);
const immutableCreate2FactoryAddress = getAddress("immutableCreate2Factory", network.name);

const saltNumber = getSaltNumber("zetaERC20Custody", network.name);
const saltStr = BigNumber.from(saltNumber).toHexString();
Expand All @@ -38,16 +38,6 @@ export const deterministicDeployERC20Custody = async () => {
const constructorArgs = [tssAddress, tssUpdaterAddress, zetaFee.toString(), zetaMaxFee.toString(), zetaTokenAddress];
const contractBytecode = ERC20Custody__factory.bytecode;

// console.log("Deploying ERC20 Custody with the following parameters:");
// console.log("tssAddress:", tssAddress);
// console.log("tssUpdaterAddress:", tssUpdaterAddress);
// console.log("zetaFee:", zetaFee.toString());
// console.log("zetaMaxFee:", zetaMaxFee.toString());
// console.log("zetaTokenAddress:", zetaTokenAddress);
// console.log("immutableCreate2FactoryAddress:", immutableCreate2FactoryAddress);
// console.log("salt:", salthex);

// return;
const { address } = await deployContractToAddress({
constructorArgs,
constructorTypes,
Expand Down
10 changes: 1 addition & 9 deletions scripts/deployments/core/deterministic-deploy-zeta-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const deterministicDeployZetaConnector = async () => {
const zetaTokenAddress = getAddress("zetaToken", network.name);
const tssAddress = getAddress("tss", network.name);
const tssUpdaterAddress = getAddress("tssUpdater", network.name);
const immutableCreate2FactoryAddress = "0x095a03c6a68137fE9a566bBc3e552F299d8b886d"; //getAddress("immutableCreate2Factory", network.name);
const immutableCreate2FactoryAddress = getAddress("immutableCreate2Factory", network.name);

const saltNumber = getSaltNumber("zetaConnector", network.name);
const saltStr = BigNumber.from(saltNumber).toHexString();
Expand All @@ -33,14 +33,6 @@ export const deterministicDeployZetaConnector = async () => {
const constructorTypes = ["address", "address", "address", "address"];
const constructorArgs = [zetaTokenAddress, tssAddress, tssUpdaterAddress, tssUpdaterAddress];

console.log("Deploying ZetaConnector with the following parameters:");
console.log("zetaTokenAddress:", zetaTokenAddress);
console.log("tssAddress:", tssAddress);
console.log("tssUpdaterAddress:", tssUpdaterAddress);
console.log("immutableCreate2FactoryAddress:", immutableCreate2FactoryAddress);
console.log("salt:", salthex);

// return;
let contractBytecode;
if (isEthNetworkName(network.name)) {
contractBytecode = ZetaConnectorEth__factory.bytecode;
Expand Down

0 comments on commit 1dc5888

Please sign in to comment.