From 966150c1e15b2b39fa576ca6ce24b42838b4aa89 Mon Sep 17 00:00:00 2001 From: aboudjem Date: Thu, 9 Nov 2023 01:39:41 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20unused=20comments=20fro?= =?UTF-8?q?m=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy-arbitrum-goerli.ts | 7 ------- scripts/deploy-arbitrum-one-mainnet.ts | 10 ++++------ scripts/deploy-avalanche-mainnet.ts | 10 ++++------ scripts/deploy-avalanche-testnet.ts | 10 ++++------ scripts/deploy-base-goerli.ts | 10 ++++------ scripts/deploy-bnb-mainnet.ts | 10 ++++------ scripts/deploy-bnb-testnet.ts | 10 ++++------ scripts/deploy-eth-mainnet.ts | 10 ++++------ scripts/deploy-goerli.ts | 10 ++++------ scripts/deploy-moonbeam-mainnet.ts | 10 ++++------ scripts/deploy-mumbai.ts | 10 ++++------ scripts/deploy-optimism-goerli.ts | 10 ++++------ scripts/deploy-optimism-mainnet.ts | 6 +++--- scripts/deploy-polygon-mainnet.ts | 10 ++++------ scripts/deploy-sepolia.ts | 10 ++++------ 15 files changed, 55 insertions(+), 88 deletions(-) diff --git a/scripts/deploy-arbitrum-goerli.ts b/scripts/deploy-arbitrum-goerli.ts index aad3ddd..922ecf3 100644 --- a/scripts/deploy-arbitrum-goerli.ts +++ b/scripts/deploy-arbitrum-goerli.ts @@ -85,7 +85,6 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); return oracleAggregatorComputedAddr; } } else { @@ -147,7 +146,6 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); return tokenPaymasterComputedAddr; } } else { @@ -217,7 +215,6 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); return derivedPriceFeedBComputedAddr; } } else { @@ -468,10 +465,6 @@ async function main() { console.log( "==================tokenPaymasterInstance=======================" ); - - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); } } diff --git a/scripts/deploy-arbitrum-one-mainnet.ts b/scripts/deploy-arbitrum-one-mainnet.ts index eadeeb8..15f0085 100644 --- a/scripts/deploy-arbitrum-one-mainnet.ts +++ b/scripts/deploy-arbitrum-one-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -476,9 +476,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-avalanche-mainnet.ts b/scripts/deploy-avalanche-mainnet.ts index cca63b3..ca21dff 100644 --- a/scripts/deploy-avalanche-mainnet.ts +++ b/scripts/deploy-avalanche-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-avalanche-testnet.ts b/scripts/deploy-avalanche-testnet.ts index 57614b1..c86603f 100644 --- a/scripts/deploy-avalanche-testnet.ts +++ b/scripts/deploy-avalanche-testnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-base-goerli.ts b/scripts/deploy-base-goerli.ts index 5a4b450..79a01a7 100644 --- a/scripts/deploy-base-goerli.ts +++ b/scripts/deploy-base-goerli.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-bnb-mainnet.ts b/scripts/deploy-bnb-mainnet.ts index a86fd8f..a35cbab 100644 --- a/scripts/deploy-bnb-mainnet.ts +++ b/scripts/deploy-bnb-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -476,9 +476,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-bnb-testnet.ts b/scripts/deploy-bnb-testnet.ts index 8c9dc0b..8b1f732 100644 --- a/scripts/deploy-bnb-testnet.ts +++ b/scripts/deploy-bnb-testnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-eth-mainnet.ts b/scripts/deploy-eth-mainnet.ts index 27f0cef..6e6ecda 100644 --- a/scripts/deploy-eth-mainnet.ts +++ b/scripts/deploy-eth-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -470,9 +470,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-goerli.ts b/scripts/deploy-goerli.ts index e503b54..5891a28 100644 --- a/scripts/deploy-goerli.ts +++ b/scripts/deploy-goerli.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-moonbeam-mainnet.ts b/scripts/deploy-moonbeam-mainnet.ts index ac80e97..a463de7 100644 --- a/scripts/deploy-moonbeam-mainnet.ts +++ b/scripts/deploy-moonbeam-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-mumbai.ts b/scripts/deploy-mumbai.ts index 9d17fd2..d42b894 100644 --- a/scripts/deploy-mumbai.ts +++ b/scripts/deploy-mumbai.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-optimism-goerli.ts b/scripts/deploy-optimism-goerli.ts index 682fdfb..b1886fd 100644 --- a/scripts/deploy-optimism-goerli.ts +++ b/scripts/deploy-optimism-goerli.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-optimism-mainnet.ts b/scripts/deploy-optimism-mainnet.ts index d5936ba..7672ad2 100644 --- a/scripts/deploy-optimism-mainnet.ts +++ b/scripts/deploy-optimism-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { diff --git a/scripts/deploy-polygon-mainnet.ts b/scripts/deploy-polygon-mainnet.ts index aaa1706..ae79527 100644 --- a/scripts/deploy-polygon-mainnet.ts +++ b/scripts/deploy-polygon-mainnet.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -476,9 +476,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } } diff --git a/scripts/deploy-sepolia.ts b/scripts/deploy-sepolia.ts index 286eb78..e4a197b 100644 --- a/scripts/deploy-sepolia.ts +++ b/scripts/deploy-sepolia.ts @@ -88,7 +88,7 @@ async function deployChainlinkOracleAggregatorContract( }); } catch (err) { console.log("issue with the verification ", oracleAggregatorComputedAddr); - // console.log(err); + return oracleAggregatorComputedAddr; } } else { @@ -150,7 +150,7 @@ async function deployTokenPaymasterContract( }); } catch (err) { console.log("issue with the verification ", tokenPaymasterComputedAddr); - // console.log(err); + return tokenPaymasterComputedAddr; } } else { @@ -220,7 +220,7 @@ async function deployDerivedPriceFeed( "issue with the verification ", derivedPriceFeedBComputedAddr ); - // console.log(err); + return derivedPriceFeedBComputedAddr; } } else { @@ -473,9 +473,7 @@ async function main() { "==================tokenPaymasterInstance=======================" ); - // tx = await tokenPaymasterInstance.transferOwnership(owner) - // receipt = await tx.wait() - // console.log("tokenPaymasterInstance ownership transferred to %s", owner); + } }