Skip to content

Commit

Permalink
remove unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammed-Mamoun98 committed Sep 30, 2024
1 parent 5a280f7 commit 38aaef8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/idos-sdk-js/src/lib/kwil-wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { KwilSigner, Utils as KwilUtils, WebKwil } from "@kwilteam/kwil-js";
import type { ActionBody, ActionInput } from "@kwilteam/kwil-js/dist/core/action";
import type { CustomSigner, EthSigner } from "@kwilteam/kwil-js/dist/core/builders.d";
import type { UserWallet, idOSHuman, idOSHumanAttribute } from "./types";
import type { idOSHuman, idOSHumanAttribute, idOSWallet } from "./types";

export class KwilWrapper {
static defaults = {
Expand Down Expand Up @@ -155,10 +155,10 @@ export class KwilWrapper {
}

async getUserWallets() {
return (await this.call("get_wallets", null)) as unknown as UserWallet[];
return (await this.call("get_wallets", null)) as unknown as idOSWallet[];
}
async getEvmUserWallets() {
const userWallets = (await this.getUserWallets()) as unknown as UserWallet[];
const userWallets = (await this.getUserWallets()) as unknown as idOSWallet[];
return userWallets.filter((wallet) => wallet.wallet_type === "EVM");
}
}
11 changes: 0 additions & 11 deletions packages/idos-sdk-js/src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,3 @@ export type idOSHumanAttribute = {
attribute_key: string;
value: string;
};

export type UserWallet = {
id: string;
human_id: string;
wallet_id: string;
wallet_type: string;
public_key: string;
signature: string;
inserter: string;
message: string;
};

0 comments on commit 38aaef8

Please sign in to comment.