diff --git a/package-lock.json b/package-lock.json index 73c1d8c..70afe3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sats-connect", - "version": "2.0.0", + "version": "2.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sats-connect", - "version": "2.0.0", + "version": "2.1.0", "license": "ISC", "dependencies": { "jsontokens": "^4.0.1", diff --git a/package.json b/package.json index df3e555..848adfd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sats-connect", - "version": "2.0.0", + "version": "2.1.0", "main": "dist/index.js", "files": [ "dist" diff --git a/src/request/types/btcMethods.ts b/src/request/types/btcMethods.ts index 3aa7412..5c24542 100644 --- a/src/request/types/btcMethods.ts +++ b/src/request/types/btcMethods.ts @@ -124,6 +124,21 @@ export type SignPsbtResult = { export type SignPsbt = MethodParamsAndResult; +export type GetAccountsParams = { + /** + * The purposes for which to generate addresses. + * possible values are "payment", "ordinals", ... + */ + purposes: Array; + /** + * a message to be displayed to the user in the request prompt. + */ + /** + * a message to be displayed to the user in the request prompt. + */ + message?: string; +}; + export type GetAccountResult = Address[]; -export type GetAccounts = MethodParamsAndResult; +export type GetAccounts = MethodParamsAndResult; diff --git a/src/request/types/stxMethods.ts b/src/request/types/stxMethods.ts index eb348cf..2f31186 100644 --- a/src/request/types/stxMethods.ts +++ b/src/request/types/stxMethods.ts @@ -247,11 +247,10 @@ export type DeployContractResult = TxId & Transaction; export type StxDeployContract = MethodParamsAndResult; // Types for `stx_getAccounts` request -export type GetAccountsParams = {}; export type GetAccountsResult = { addresses: Array
; }; -export type StxGetAccounts = MethodParamsAndResult; +export type StxGetAccounts = MethodParamsAndResult<{}, GetAccountsResult>; // Types for `stx_getAddresses` request export type GetAddressesParams = undefined | null;