Skip to content

Commit 243f81a

Browse files
Merge pull request #7305 from BitGo/WP-6403/add-address-typing
feat(sdk-core): add AddressQueryResult typing for addresses
2 parents 1871849 + f3dec74 commit 243f81a

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

modules/abstract-lightning/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
]
4040
},
4141
"dependencies": {
42-
"@bitgo/public-types": "5.31.0",
42+
"@bitgo/public-types": "5.34.0",
4343
"@bitgo/sdk-core": "^36.15.0",
4444
"@bitgo/statics": "^58.7.0",
4545
"@bitgo/utxo-lib": "^11.13.0",

modules/bitgo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"superagent": "^9.0.1"
139139
},
140140
"devDependencies": {
141-
"@bitgo/public-types": "5.31.0",
141+
"@bitgo/public-types": "5.34.0",
142142
"@bitgo/sdk-opensslbytes": "^2.1.0",
143143
"@bitgo/sdk-test": "^9.1.7",
144144
"@openpgp/web-stream-tools": "0.0.14",

modules/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"superagent": "^9.0.1"
5959
},
6060
"devDependencies": {
61-
"@bitgo/public-types": "5.31.0",
61+
"@bitgo/public-types": "5.34.0",
6262
"@bitgo/sdk-lib-mpc": "^10.8.1",
6363
"@bitgo/sdk-test": "^9.1.7",
6464
"@types/argparse": "^1.0.36",

modules/sdk-coin-sol/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
]
4141
},
4242
"dependencies": {
43-
"@bitgo/public-types": "5.31.0",
43+
"@bitgo/public-types": "5.34.0",
4444
"@bitgo/sdk-core": "^36.15.0",
4545
"@bitgo/sdk-lib-mpc": "^10.8.1",
4646
"@bitgo/statics": "^58.7.0",

modules/sdk-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
]
4141
},
4242
"dependencies": {
43-
"@bitgo/public-types": "5.31.0",
43+
"@bitgo/public-types": "5.34.0",
4444
"@bitgo/sdk-lib-mpc": "^10.8.1",
4545
"@bitgo/secp256k1": "^1.6.0",
4646
"@bitgo/sjcl": "^1.0.1",

modules/sdk-core/src/bitgo/wallet/iWallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
} from '../utils';
3232
import { SerializedNtilde } from '../../account-lib/mpc/tss/ecdsa/types';
3333
import { IAddressBook } from '../address-book';
34-
import { WalletUser } from '@bitgo/public-types';
34+
import { WalletUser, AddressQueryResult } from '@bitgo/public-types';
3535
import { SubmitTransactionResponse } from '../inscriptionBuilder';
3636

3737
export interface MaximumSpendableOptions {
@@ -944,7 +944,7 @@ export interface IWallet {
944944
sweep(params?: SweepOptions): Promise<any>;
945945
freeze(params?: FreezeOptions): Promise<any>;
946946
transferComment(params?: TransferCommentOptions): Promise<any>;
947-
addresses(params?: AddressesOptions): Promise<any>;
947+
addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
948948
getAddress(params?: GetAddressOptions): Promise<any>;
949949
createAddress(params?: CreateAddressOptions): Promise<any>;
950950
updateAddress(params?: UpdateAddressOptions): Promise<any>;

modules/sdk-core/src/bitgo/wallet/wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import { TxSendBody } from '@bitgo/public-types';
4+
import { TxSendBody, type AddressQueryResult } from '@bitgo/public-types';
55
import { CoinFamily } from '@bitgo/statics';
66
import assert from 'assert';
77
import BigNumber from 'bignumber.js';
@@ -1078,7 +1078,7 @@ export class Wallet implements IWallet {
10781078
* @param params
10791079
* @returns {*}
10801080
*/
1081-
async addresses(params: AddressesOptions = {}): Promise<any> {
1081+
async addresses(params: AddressesOptions = {}): Promise<AddressQueryResult> {
10821082
common.validateParams(params, [], []);
10831083

10841084
const query: AddressesOptions = {};

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,10 +944,10 @@
944944
"@scure/base" "1.1.5"
945945
micro-eth-signer "0.7.2"
946946

947-
"@bitgo/public-types@5.31.0":
948-
version "5.31.0"
949-
resolved "https://registry.npmjs.org/@bitgo/public-types/-/public-types-5.31.0.tgz#1af37545bdaaf6bb65de6a9c47cb38817d16472c"
950-
integrity sha512-4uiFZHcwVPwfDKLG/lNPy8zIfp8esVxAjXLWrx5LUHZBKguphWWgmx6RzP2LwFr6H4GZ7pxDO3xr7AF0RRL3Ug==
947+
"@bitgo/public-types@5.34.0":
948+
version "5.34.0"
949+
resolved "https://registry.npmjs.org/@bitgo/public-types/-/public-types-5.34.0.tgz#ffd7b8ac438ca70901ce904583c9a504dc5c5b4b"
950+
integrity sha512-HnCf9Mpoy3BoIDsaZvRQACBYbmLyt3tyWFIuR10T1Q3/LZnUeJYuYLIdprVp8vRAztqKwr9NRn3/V4Gg3gLccw==
951951
dependencies:
952952
fp-ts "^2.0.0"
953953
io-ts "npm:@bitgo-forks/[email protected]"

0 commit comments

Comments
 (0)