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

chore(grantee-sdk): rename server-dapp to grantee-sdk #391

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
run: pnpm install

- name: Build
run: pnpm build --filter=@idos-network/issuer-sdk-js --filter=@idos-network/idos-sdk --filter=@idos-network/idos-sdk-server-dapp
run: pnpm build --filter=@idos-network/issuer-sdk-js --filter=@idos-network/idos-sdk --filter=@idos-network/grantee-sdk-js

- name: Release
run: pnpx pkg-pr-new publish --pnpm './packages/issuer-sdk-js' './packages/idos-sdk-js' './packages/idos-sdk-server-dapp'
run: pnpx pkg-pr-new publish --pnpm './packages/issuer-sdk-js' './packages/idos-sdk-js' './packages/grantee-sdk-js'

2 changes: 1 addition & 1 deletion examples/idos-backend-demo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"dependencies": {
"@hono/node-server": "^1.12.0",
"@idos-network/idos-sdk-server-dapp": "workspace:*",
"@idos-network/grantee-sdk-js": "workspace:*",
"@idos-network/idos-sdk": "workspace:*",
"@idos-network/issuer-sdk-js": "workspace:*",
"ethers": "^6.13.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/idos-backend-demo-app/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { serve } from "@hono/node-server";
import { idOS } from "@idos-network/grantee-sdk-js";
import type { Grant } from "@idos-network/idos-sdk";
import { idOS } from "@idos-network/idos-sdk-server-dapp";
import { Hono } from "hono";
import type { FC } from "hono/jsx";
const app = new Hono();
Expand Down
2 changes: 1 addition & 1 deletion examples/idos-example-dapp/api/EVM.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { idOSGrantee } from "@idos-network/idos-sdk-server-dapp";
import { idOSGrantee } from "@idos-network/grantee-sdk-js";
import { ethers } from "ethers";

/* global crypto */
Expand Down
2 changes: 1 addition & 1 deletion examples/idos-example-dapp/api/NEAR.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { idOSGrantee } from "@idos-network/idos-sdk-server-dapp";
import { idOSGrantee } from "@idos-network/grantee-sdk-js";
import { KeyPair } from "near-api-js";

/* global crypto */
Expand Down
2 changes: 1 addition & 1 deletion examples/idos-example-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@idos-network/idos-sdk": "workspace:*",
"@idos-network/idos-sdk-server-dapp": "workspace:*",
"@idos-network/grantee-sdk-js": "workspace:*",
"@idos-network/idos-sdk-types": "workspace:*",
"@idos-network/issuer-sdk-js": "workspace:*",
"@kwilteam/kwil-js": "0.7.1",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# idOS JavaScript SDK for server dApps.
# idOS Grantee JavaScript SDK.

[![NPM](https://img.shields.io/npm/v/@idos-network/idos-sdk?logo=npm)](https://www.npmjs.com/package/@idos-network/idos-sdk) ![License](https://img.shields.io/badge/license-MIT-blue?&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NHB4IiBoZWlnaHQ9IjY0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGcgaWQ9IlNWR1JlcG9fYmdDYXJyaWVyIiBzdHJva2Utd2lkdGg9IjAiPjwvZz48ZyBpZD0iU1ZHUmVwb190cmFjZXJDYXJyaWVyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvZz48ZyBpZD0iU1ZHUmVwb19pY29uQ2FycmllciI+IDxwYXRoIGQ9Ik0xNiAxNmwzLTggMy4wMDEgOEE1LjAwMiA1LjAwMiAwIDAxMTYgMTZ6Ij48L3BhdGg+IDxwYXRoIGQ9Ik0yIDE2bDMtOCAzLjAwMSA4QTUuMDAyIDUuMDAyIDAgMDEyIDE2eiI+PC9wYXRoPiA8cGF0aCBkPSJNNyAyMWgxMCI+PC9wYXRoPiA8cGF0aCBkPSJNMTIgM3YxOCI+PC9wYXRoPiA8cGF0aCBkPSJNMyA3aDJjMiAwIDUtMSA3LTIgMiAxIDUgMiA3IDJoMiI+PC9wYXRoPiA8L2c+PC9zdmc+Cg==)

Expand All @@ -14,7 +14,7 @@ pnpm add @idos-network/idos-sdk-server-dapp ethers near-api-js
Import the SDK and initialize it:

```js
import { idOS } from "@idos-network/idos-sdk-server-dapp";
import { idOS } from "@idos-network/grantee-sdk-js";

export const sdk = await idOS.init(...options);
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idos-network/idos-sdk-server-dapp",
"description": "idOS JavaScript Server dApp SDK",
"name": "@idos-network/grantee-sdk-js",
"description": "idOS Grantee JavaScript SDK",
"version": "0.0.1",
"homepage": "https://idos.network",
"repository": "https://github.com/idos-network/idos-sdk-js",
Expand Down
4 changes: 2 additions & 2 deletions packages/idos-sdk-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ If you wish to consult it, you'll need to use the `grantee` and [`nacl.box.keyPa
Here's an example of how you could achieve that with [`📁 idos-sdk-server-dapp`](https://github.com/idos-network/idos-sdk-js/tree/main/packages/idos-sdk-server-dapp) for an EVM grantee:

```js
import { idOSGrantee } from "@idos-network/idos-sdk-server-dapp";
import { idOSGrantee } from "@idos-network/grantee-sdk-js";
import { ethers } from "ethers";

const granteeSigner = new ethers.Wallet(
Expand Down Expand Up @@ -628,7 +628,7 @@ const { signature } = await wallet.signMessage({ message, recipient, nonce });
*
* ⚠️ Notice: Not implemented for NEAR yet.
*/
import { idOSGrantee } from "@idos-network/idos-sdk-server-dapp";
import { idOSGrantee } from "@idos-network/grantee-sdk-js";
import { ethers } from "ethers";

const granteeSigner = new ethers.Wallet(
Expand Down
Loading
Loading