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: support ethers v5 and v6 for ethers-ext #7

Merged
merged 37 commits into from
Jul 30, 2024

Conversation

Sotatek-TanHoang
Copy link
Contributor

@Sotatek-TanHoang Sotatek-TanHoang commented Jul 1, 2024

  1. Add support for both ethers v5 and v6

  2. about ethers v6 updates

    • ethers-ext sdk support for ethers v6
    • examples for ethers-ext with ethers v6
    • unit-tests for ethers-ext with ethers v6
  3. Example usage of ethers-ext with ethers v5 and v6:

    • Using with ethers v5
     // commonjs
     const { Wallet } = require("@klaytn/ethers-ext")
     const { Wallet } = require("@klaytn/ethers-ext").v5
     const { Wallet } = require("@klaytn/ethers-ext/v5")
     
     // esm
     import { Wallet } from "@klaytn/ethers-ext";
     
     // esm
     import { v5 } from "@klaytn/ethers-ext";
     const { Wallet } = v5;
     
     // esm subpath import. If using typescript, add "moduleResolution": "nodenext" to tsconfig.json
     import { Wallet } from "@klaytn/ethers-ext/v5";
    • Using with ethers v6
     // commonjs
     const { Wallet } = require("@klaytn/ethers-ext").v6
     const { Wallet } = require("@klaytn/ethers-ext/v6")
     
     // esm
     import { v6 } from "@klaytn/ethers-ext";
     const { Wallet } = v6;
     
     // esm subpath import. If using typescript, add "moduleResolution": "nodenext" to tsconfig.json
     import { Wallet } from "@klaytn/ethers-ext/v6";

@Sotatek-TanHoang Sotatek-TanHoang changed the title Feat/update ethers v6 Feat: support ethers v5 and v6 for ethers-ext Jul 1, 2024
@Sotatek-TanHoang Sotatek-TanHoang merged commit 17250a8 into dev Jul 30, 2024
2 checks passed
@Sotatek-TanHoang Sotatek-TanHoang deleted the feat/update-ethers-v6 branch July 30, 2024 07:35
@kjeom kjeom mentioned this pull request Oct 4, 2024
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.

3 participants