Skip to content

Commit

Permalink
fix: add back overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Nov 17, 2023
1 parent 5cb9f61 commit 9602869
Showing 1 changed file with 103 additions and 4 deletions.
107 changes: 103 additions & 4 deletions scripts/deploy/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,107 @@ export const overrides = (
gasLimit?: BigNumberish | undefined;
gasPrice?: BigNumberish | undefined;
} => {
if (chainConfig[chain] && chainConfig[chain].overrides)
return chainConfig[chain].overrides!;

return { type, gasLimit, gasPrice };
if (chain == ChainSlug.ARBITRUM) {
return {
type,
gasLimit: 20_000_000,
gasPrice,
};
} else if (chain == ChainSlug.ARBITRUM_GOERLI) {
return {
// type,
// gasLimit: 20_000_000,
// gasPrice,
};
} else if (chain == ChainSlug.OPTIMISM) {
return {
type,
gasLimit: 2_000_000,
gasPrice,
};
} else if (chain == ChainSlug.OPTIMISM_GOERLI) {
return {
// type,
// gasLimit: 20_000_000,
// gasPrice,
};
} else if (chain == ChainSlug.BSC) {
return {
type,
gasLimit,
gasPrice,
};
} else if (chain == ChainSlug.BSC_TESTNET) {
return {
type,
gasLimit,
gasPrice,
};
} else if (chain == ChainSlug.MAINNET) {
return {
type,
gasLimit,
gasPrice,
};
} else if (chain == ChainSlug.GOERLI) {
return {
type,
gasLimit: 3_000_000,
gasPrice,
};
} else if (chain == ChainSlug.POLYGON_MAINNET) {
return {
type,
gasLimit,
gasPrice: 250_000_000_000,
};
} else if (chain == ChainSlug.POLYGON_MUMBAI) {
return {
type: 0,
gasLimit: 2_000_000,
gasPrice,
};
} else if (chain == ChainSlug.SEPOLIA) {
return {
type,
gasLimit,
gasPrice,
};
} else if (chain == ChainSlug.AEVO_TESTNET) {
return {
type: 2,
// gasLimit,
// gasPrice,
};
} else if (chain == ChainSlug.AEVO) {
return {
type: 1,
// gasLimit,
gasPrice: 100_000_000,
};
} else if (chain == ChainSlug.LYRA_TESTNET) {
return {
type: 2,
// gasLimit,
// gasPrice: 100_000_000,
};
} else if (chain == ChainSlug.LYRA) {
return {
// type: 1,
// gasLimit,
// gasPrice: 100_000_000,
};
} else if (chain == ChainSlug.XAI_TESTNET) {
return {
// type: 1,
// gasLimit,
// gasPrice: 100_000_000,
};
} else if (chain == ChainSlug.SX_NETWORK_TESTNET) {
return {
// type: 1,
// gasLimit,
// gasPrice: 100_000_000,
};
} else return { type, gasLimit, gasPrice };
};

0 comments on commit 9602869

Please sign in to comment.