Skip to content

Commit

Permalink
Merge pull request #1 from kaiachain/klay-to-kaia
Browse files Browse the repository at this point in the history
Update klaytn to kaiachain
  • Loading branch information
Lewis authored Aug 19, 2024
2 parents cb1d33b + e9ba91e commit 22907d9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = {
"warn",
{
alphabetize: { order: "asc", caseInsensitive: true },
pathGroups: [{ pattern: "@klaytn/**", group: "parent", position: "after" }],
pathGroups: [{ pattern: "@kaiachain/**", group: "parent", position: "after" }],
"newlines-between": "always",
pathGroupsExcludedImportTypes: ["@klaytn/**"],
pathGroupsExcludedImportTypes: ["@kaiachain/**"],
},
],

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx pnpm --filter "@klaytn/*" -r publish --publish-branch main --no-git-check --access=public
npx pnpm --filter "@kaiachain/*" -r publish --publish-branch main --no-git-check --access=public
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)

# NO LONGER MAINTAINED

> [!IMPORTANT]
> Since the launch of Kaia Blockchain this repository has been parked in favour of the new open-source projects in [Kaia's Github](https://github.com/kaiachain). Contributors have now moved there continuing with massive open-source contributions to our blockchain ecosystem. A big thank you to everyone who has contributed to this repository.
>
> For future development and contributions, please refer to the new [zkauth-sdk repository](https://github.com/kaiachain/zkauth-sdk).
>
> For more information about Klaytn's chain merge with Finschia blockchain please refer to the launching of Kaia blockchain - [kaia.io](https://kaia.io/).
---

# Account Abstraction SDK for zkAuth Wallet

## 1. Introduction
Expand All @@ -20,7 +7,7 @@ This is a SDK for zkAuth wallet. It allows applications to interact with zkAuth
## 2. Installation

```sh
npm i @klaytn/zkauth-sdk
npm i @kaiachain/zkauth-sdk
```

## 3. Usage
Expand Down Expand Up @@ -72,7 +59,7 @@ Users can create their zkAuth wallet based on their OAuth2 idToken.

3. Deploy Wallet (Strongly recommended)

The AA wallet can be deployed by i) `Factory.createAccount` or ii) First `UserOp` with `initCode` in the transaction data. Since the owner address needs to be funded with KLAY for first method, it's recommended to use second method, which is more user-friendly.
The AA wallet can be deployed by i) `Factory.createAccount` or ii) First `UserOp` with `initCode` in the transaction data. Since the owner address needs to be funded with KAIA for first method, it's recommended to use second method, which is more user-friendly.
```js
const signer = new ethers.Wallet(ownerKey, JsonRpcProvider);
Expand Down Expand Up @@ -280,7 +267,7 @@ If user wallet is `ghost` wallet, user can't recover it, so delete it and create
// Note that subSigner is an optional signer which is owned by the service provider
// The subSigner sends transaction on behalf of the user to improve user experience
// Without subSigner, user needs to fund KLAY to the new owner address
// Without subSigner, user needs to fund KAIA to the new owner address
await scw.requestRecover(newOwnerAddress, auth, subSigner);
}
...
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "@klaytn/zkauth-sdk",
"name": "@kaiachain/zkauth-sdk",
"version": "0.1.0",
"license": "MIT",
"description": "SDK for zkAuth wallet",
"keywords": [
"klaytn",
"kaiachain",
"kaia",
"zkAuth",
"zkAuth sdk"
],
"repository": {
"type": "git",
"url": "git+https://github.com/klaytn/zkauth-sdk"
"url": "git+https://github.com/kaiachain/zkauth-sdk"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -61,11 +62,10 @@
"lodash": "^4.17.21"
},
"bugs": {
"url": "https://github.com/klaytn/zkauth-sdk"
"url": "https://github.com/kaiachain/zkauth-sdk"
},
"homepage": "https://github.com/klaytn/zkauth-sdk#readme",
"homepage": "https://github.com/kaiachain/zkauth-sdk#readme",
"directories": {
"test": "test"
}
}

0 comments on commit 22907d9

Please sign in to comment.