Skip to content

Commit

Permalink
fix: add typing for subwallets
Browse files Browse the repository at this point in the history
  • Loading branch information
fodder1997 committed Nov 26, 2021
1 parent 68ea644 commit d1d3ffe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trustology/trustvault-nodejs-sdk",
"version": "1.5.5",
"version": "1.5.6",
"description": "TrustVault Node.js SDK",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/ts/types/sub-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { GraphQLError } from "graphql";
import { HexString, Integer, IsoDateString, Nullable, NumString } from "./data";
import { UnverifiedReceiveAddressDetails } from "./graphql-client";

export const BLOCKCHAIN_TYPES = ["BTC", "ETH", "BINANCE", "RADIX", "XDCNETWORK"]; // NOTE: "BINANCE" is used rather than "BNB" on subWalletType
export const SUB_WALLET_TYPES = [...BLOCKCHAIN_TYPES];
export const BLOCKCHAIN_TYPES = ["BTC", "ETH", "BINANCE", "RADIX", "XDCNETWORK"] as const; // NOTE: "BINANCE" is used rather than "BNB" on subWalletType
export const SUB_WALLET_TYPES = [...BLOCKCHAIN_TYPES] as const;
export type SubWalletType = typeof SUB_WALLET_TYPES[number];

// Type with a verified address from the verified publicKey
Expand Down

0 comments on commit d1d3ffe

Please sign in to comment.