Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Athens 3 support #9

Merged
merged 38 commits into from
Jul 17, 2023
Merged

feat: Athens 3 support #9

merged 38 commits into from
Jul 17, 2023

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Jun 5, 2023

  • updated gas to uint256 crossChainGas = 2 * (10 ** 18);
  • migrated to using @zetachain/toolkit@athens3 for:
  • common tasks like balances, faucet, etc.
  • helper contracts like ZetaConnectorMock.sol and EthZetaMock.sol
  • helper functions like prepareParams
  • migrated to using @zetachain/protocol-contracts for getAddress
  • added the Multioutput contract example

All contracts have been tested to work with Athens 3: #11

@fadeev fadeev changed the title feat: import from zeta-chain/toolkit feat: Athens 3 support Jun 16, 2023
@fadeev fadeev linked an issue Jun 25, 2023 that may be closed by this pull request
@fadeev fadeev marked this pull request as ready for review July 6, 2023 16:40
task("deploy", descTask).addParam("networks", descNetworksFlag).setAction(main);
task("deploy", "Deploy the contract", main).addParam(
"networks",
"Comma separated list of networks to deploy to"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe can also list the options of networks here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! f2a5e67

@@ -4,7 +4,7 @@ import { HardhatRuntimeEnvironment } from "hardhat/types";
const contractName = "HelloZeta";

const main = async (args: any, hre: HardhatRuntimeEnvironment) => {
if (hre.network.name !== "athens") {
if (hre.network.name !== "zeta_testnet") {
throw new Error(
'🚨 Please use the "athens" network to deploy to ZetaChain.'
Copy link

@bbbeeeee bbbeeeee Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use "zeta_testnet" network...?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fadeev fadeev requested a review from bbbeeeee July 11, 2023 12:23
@fadeev fadeev merged commit cddf158 into main Jul 17, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update examples for Athens 3
2 participants