From 9c69c1233a7f48f53191d40abb3410ba0c32f1b3 Mon Sep 17 00:00:00 2001 From: yoojinko Date: Tue, 30 Jan 2024 05:45:53 +0000 Subject: [PATCH 1/4] Upgrade version to 1.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2fee9e7..e4064d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ainize-team/ainize-js", - "version": "1.0.6", + "version": "1.1.0", "main": "dist/ainize.js", "types": "dist/ainize.d.ts", "scripts": { From ad595e89c68af95375cc315ac3798999941bdfca Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Tue, 30 Jan 2024 15:30:57 +0900 Subject: [PATCH 2/4] fix: remove log --- src/controllers/serviceController.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/controllers/serviceController.ts b/src/controllers/serviceController.ts index 9093cca..c08889d 100644 --- a/src/controllers/serviceController.ts +++ b/src/controllers/serviceController.ts @@ -67,7 +67,6 @@ export default class ServiceController { async getCreditBalance(serviceName: string): Promise { const userAddress = await this.ain.getAddress(); - console.log("userAddress in getCreditBalance", userAddress) const balancePath = Path.app(serviceName).balanceOfUser(userAddress); return await this.ain.getValue(balancePath) as number | 0; } From 5ba3fdc5a1afd6af4646c8d00e9ee3dd2ce5af87 Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Tue, 30 Jan 2024 17:23:11 +0900 Subject: [PATCH 3/4] docs: readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8373db3..f8cca66 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ You should login to ainize with AI Network account before deploy the container. ainize.login(); ``` +You can also login using [AIN Wallet](https://chromewebstore.google.com/detail/ain-wallet/hbdheoebpgogdkagfojahleegjfkhkpl) on the web. +```typescript +ainize.loginWithSigner(); +``` +This feature is supported from AIN Wallet version 2.1.0 or later. + ### Deploy You can deploy your AI service to ainize. ```typescript From 786969ebba752ae296f2a206e5526cd3b5e79a43 Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Wed, 31 Jan 2024 11:49:52 +0900 Subject: [PATCH 4/4] docs: readme wallet ver --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8cca66..55ca756 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ You can also login using [AIN Wallet](https://chromewebstore.google.com/detail/a ```typescript ainize.loginWithSigner(); ``` -This feature is supported from AIN Wallet version 2.1.0 or later. +This feature is supported from AIN Wallet version 2.0.5 or later. ### Deploy You can deploy your AI service to ainize.