@bitgo-beta/sdk-core 8.2.1-beta.76 → 8.2.1-beta.761

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/CHANGELOG.md +2637 -0
  2. package/dist/src/account-lib/baseCoin/baseTransaction.d.ts +0 -1
  3. package/dist/src/account-lib/baseCoin/baseTransaction.d.ts.map +1 -1
  4. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts +0 -1
  5. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts.map +1 -1
  6. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.js +1 -1
  7. package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts +0 -1
  8. package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts.map +1 -1
  9. package/dist/src/account-lib/baseCoin/blsKeyPair.js +43 -29
  10. package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts +1 -0
  11. package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts.map +1 -1
  12. package/dist/src/account-lib/baseCoin/ed25519KeyPair.js +41 -29
  13. package/dist/src/account-lib/baseCoin/enum.d.ts +14 -2
  14. package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
  15. package/dist/src/account-lib/baseCoin/enum.js +28 -6
  16. package/dist/src/account-lib/baseCoin/errors.js +1 -1
  17. package/dist/src/account-lib/baseCoin/iface.d.ts +18 -15
  18. package/dist/src/account-lib/baseCoin/iface.d.ts.map +1 -1
  19. package/dist/src/account-lib/baseCoin/iface.js +10 -7
  20. package/dist/src/account-lib/baseCoin/index.js +6 -2
  21. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts +1 -2
  22. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts.map +1 -1
  23. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.js +38 -26
  24. package/dist/src/account-lib/index.js +23 -9
  25. package/dist/src/account-lib/mpc/curves/ed25519.d.ts +4 -18
  26. package/dist/src/account-lib/mpc/curves/ed25519.d.ts.map +1 -1
  27. package/dist/src/account-lib/mpc/curves/ed25519.js +6 -60
  28. package/dist/src/account-lib/mpc/index.d.ts +4 -4
  29. package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
  30. package/dist/src/account-lib/mpc/index.js +11 -7
  31. package/dist/src/account-lib/mpc/shamir.d.ts +5 -37
  32. package/dist/src/account-lib/mpc/shamir.d.ts.map +1 -1
  33. package/dist/src/account-lib/mpc/shamir.js +6 -130
  34. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +38 -9
  35. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
  36. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +497 -349
  37. package/dist/src/account-lib/mpc/tss/ecdsa/index.js +23 -9
  38. package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts +2 -2
  39. package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts.map +1 -1
  40. package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.js +3 -3
  41. package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts +73 -52
  42. package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts.map +1 -1
  43. package/dist/src/account-lib/mpc/tss/ecdsa/types.js +1 -1
  44. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts +1 -2
  45. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts.map +1 -1
  46. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.js +66 -69
  47. package/dist/src/account-lib/mpc/tss/eddsa/index.js +23 -9
  48. package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts +1 -1
  49. package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts.map +1 -1
  50. package/dist/src/account-lib/mpc/tss/eddsa/types.js +1 -1
  51. package/dist/src/account-lib/mpc/tss/index.js +23 -9
  52. package/dist/src/account-lib/mpc/util.d.ts +7 -1
  53. package/dist/src/account-lib/mpc/util.d.ts.map +1 -1
  54. package/dist/src/account-lib/mpc/util.js +19 -1
  55. package/dist/src/account-lib/staking/index.js +6 -2
  56. package/dist/src/account-lib/staking/utils.js +3 -3
  57. package/dist/src/account-lib/util/crypto.d.ts +8 -2
  58. package/dist/src/account-lib/util/crypto.d.ts.map +1 -1
  59. package/dist/src/account-lib/util/crypto.js +61 -31
  60. package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts +2 -1
  61. package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +1 -1
  62. package/dist/src/account-lib/util/ed25519KeyDeriver.js +5 -3
  63. package/dist/src/api/bip32path.js +2 -3
  64. package/dist/src/api/index.js +6 -2
  65. package/dist/src/api/types.d.ts +1 -0
  66. package/dist/src/api/types.d.ts.map +1 -1
  67. package/dist/src/api/types.js +1 -1
  68. package/dist/src/bitgo/address-book/address-book.d.ts +61 -0
  69. package/dist/src/bitgo/address-book/address-book.d.ts.map +1 -0
  70. package/dist/src/bitgo/address-book/address-book.js +139 -0
  71. package/dist/src/bitgo/address-book/index.d.ts +3 -0
  72. package/dist/src/bitgo/address-book/index.d.ts.map +1 -0
  73. package/dist/src/bitgo/address-book/index.js +19 -0
  74. package/dist/src/bitgo/address-book/types.d.ts +170 -0
  75. package/dist/src/bitgo/address-book/types.d.ts.map +1 -0
  76. package/dist/src/bitgo/address-book/types.js +3 -0
  77. package/dist/src/bitgo/baseCoin/baseCoin.d.ts +64 -8
  78. package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
  79. package/dist/src/bitgo/baseCoin/baseCoin.js +109 -15
  80. package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +79 -19
  81. package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts.map +1 -1
  82. package/dist/src/bitgo/baseCoin/iBaseCoin.js +2 -2
  83. package/dist/src/bitgo/baseCoin/index.js +6 -2
  84. package/dist/src/bitgo/bip32util.d.ts +0 -1
  85. package/dist/src/bitgo/bip32util.d.ts.map +1 -1
  86. package/dist/src/bitgo/bip32util.js +25 -12
  87. package/dist/src/bitgo/bitcoin.d.ts +0 -1
  88. package/dist/src/bitgo/bitcoin.d.ts.map +1 -1
  89. package/dist/src/bitgo/bitcoin.js +26 -13
  90. package/dist/src/bitgo/bitgoBase.d.ts +4 -1
  91. package/dist/src/bitgo/bitgoBase.d.ts.map +1 -1
  92. package/dist/src/bitgo/bitgoBase.js +1 -1
  93. package/dist/src/bitgo/coinFactory.d.ts +1 -1
  94. package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
  95. package/dist/src/bitgo/coinFactory.js +1 -1
  96. package/dist/src/bitgo/config.d.ts +62 -20
  97. package/dist/src/bitgo/config.d.ts.map +1 -1
  98. package/dist/src/bitgo/config.js +26 -15
  99. package/dist/src/bitgo/ecdh.d.ts +0 -1
  100. package/dist/src/bitgo/ecdh.d.ts.map +1 -1
  101. package/dist/src/bitgo/ecdh.js +26 -13
  102. package/dist/src/bitgo/enterprise/enterprise.d.ts +16 -14
  103. package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
  104. package/dist/src/bitgo/enterprise/enterprise.js +64 -31
  105. package/dist/src/bitgo/enterprise/enterprises.d.ts +6 -0
  106. package/dist/src/bitgo/enterprise/enterprises.d.ts.map +1 -1
  107. package/dist/src/bitgo/enterprise/enterprises.js +48 -9
  108. package/dist/src/bitgo/enterprise/iEnterprise.d.ts +6 -7
  109. package/dist/src/bitgo/enterprise/iEnterprise.d.ts.map +1 -1
  110. package/dist/src/bitgo/enterprise/iEnterprise.js +1 -1
  111. package/dist/src/bitgo/enterprise/iEnterprises.d.ts +2 -0
  112. package/dist/src/bitgo/enterprise/iEnterprises.d.ts.map +1 -1
  113. package/dist/src/bitgo/enterprise/iEnterprises.js +1 -1
  114. package/dist/src/bitgo/enterprise/index.js +6 -2
  115. package/dist/src/bitgo/environments.d.ts +38 -5
  116. package/dist/src/bitgo/environments.d.ts.map +1 -1
  117. package/dist/src/bitgo/environments.js +65 -16
  118. package/dist/src/bitgo/errors.d.ts +3 -0
  119. package/dist/src/bitgo/errors.d.ts.map +1 -1
  120. package/dist/src/bitgo/errors.js +8 -2
  121. package/dist/src/bitgo/index.d.ts +2 -1
  122. package/dist/src/bitgo/index.d.ts.map +1 -1
  123. package/dist/src/bitgo/index.js +27 -11
  124. package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts +3 -3
  125. package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts.map +1 -1
  126. package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.js +1 -1
  127. package/dist/src/bitgo/inscriptionBuilder/index.js +6 -2
  128. package/dist/src/bitgo/internal/index.js +6 -2
  129. package/dist/src/bitgo/internal/internal.js +5 -6
  130. package/dist/src/bitgo/internal/keycard.js +6 -7
  131. package/dist/src/bitgo/keychain/decryptKeychain.d.ts +13 -0
  132. package/dist/src/bitgo/keychain/decryptKeychain.d.ts.map +1 -0
  133. package/dist/src/bitgo/keychain/decryptKeychain.js +35 -0
  134. package/dist/src/bitgo/keychain/iKeychains.d.ts +61 -4
  135. package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
  136. package/dist/src/bitgo/keychain/iKeychains.js +2 -2
  137. package/dist/src/bitgo/keychain/index.d.ts +1 -0
  138. package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
  139. package/dist/src/bitgo/keychain/index.js +7 -2
  140. package/dist/src/bitgo/keychain/keychains.d.ts +13 -3
  141. package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
  142. package/dist/src/bitgo/keychain/keychains.js +128 -30
  143. package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +3 -3
  144. package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
  145. package/dist/src/bitgo/keychain/ovcJsonCodec.js +23 -9
  146. package/dist/src/bitgo/legacyBitcoin.d.ts +0 -1
  147. package/dist/src/bitgo/legacyBitcoin.d.ts.map +1 -1
  148. package/dist/src/bitgo/legacyBitcoin.js +27 -13
  149. package/dist/src/bitgo/lightning/{iLightning.d.ts → custodial/iLightning.d.ts} +12 -12
  150. package/dist/src/bitgo/lightning/custodial/iLightning.d.ts.map +1 -0
  151. package/dist/src/bitgo/lightning/custodial/iLightning.js +120 -0
  152. package/dist/src/bitgo/lightning/custodial/index.d.ts.map +1 -0
  153. package/dist/src/bitgo/lightning/{index.js → custodial/index.js} +6 -2
  154. package/dist/src/bitgo/lightning/{lightning.d.ts → custodial/lightning.d.ts} +2 -2
  155. package/dist/src/bitgo/lightning/custodial/lightning.d.ts.map +1 -0
  156. package/dist/src/bitgo/lightning/custodial/lightning.js +111 -0
  157. package/dist/src/bitgo/lightning/{lightningUtils.d.ts → custodial/lightningUtils.d.ts} +1 -1
  158. package/dist/src/bitgo/lightning/custodial/lightningUtils.d.ts.map +1 -0
  159. package/dist/src/bitgo/lightning/custodial/lightningUtils.js +145 -0
  160. package/dist/src/bitgo/lightning/custodial/lnurlCodec.d.ts.map +1 -0
  161. package/dist/src/bitgo/lightning/custodial/lnurlCodec.js +27 -0
  162. package/dist/src/bitgo/market/iMarkets.d.ts +2 -2
  163. package/dist/src/bitgo/market/iMarkets.d.ts.map +1 -1
  164. package/dist/src/bitgo/market/index.js +6 -2
  165. package/dist/src/bitgo/market/markets.js +23 -9
  166. package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts +2 -0
  167. package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
  168. package/dist/src/bitgo/pendingApproval/iPendingApproval.js +4 -4
  169. package/dist/src/bitgo/pendingApproval/index.js +6 -2
  170. package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +20 -8
  171. package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
  172. package/dist/src/bitgo/pendingApproval/pendingApproval.js +216 -107
  173. package/dist/src/bitgo/pendingApproval/pendingApprovals.js +23 -9
  174. package/dist/src/bitgo/recovery/index.js +6 -2
  175. package/dist/src/bitgo/recovery/initiate.d.ts +8 -2
  176. package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
  177. package/dist/src/bitgo/recovery/initiate.js +7 -8
  178. package/dist/src/bitgo/staking/iStakingWallet.d.ts +120 -4
  179. package/dist/src/bitgo/staking/iStakingWallet.d.ts.map +1 -1
  180. package/dist/src/bitgo/staking/iStakingWallet.js +2 -2
  181. package/dist/src/bitgo/staking/index.js +6 -2
  182. package/dist/src/bitgo/staking/stakingWallet.d.ts +13 -2
  183. package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
  184. package/dist/src/bitgo/staking/stakingWallet.js +45 -4
  185. package/dist/src/bitgo/trading/iTradingAccount.d.ts +2 -32
  186. package/dist/src/bitgo/trading/iTradingAccount.d.ts.map +1 -1
  187. package/dist/src/bitgo/trading/iTradingAccount.js +1 -1
  188. package/dist/src/bitgo/trading/index.d.ts +1 -15
  189. package/dist/src/bitgo/trading/index.d.ts.map +1 -1
  190. package/dist/src/bitgo/trading/index.js +7 -17
  191. package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts +8 -0
  192. package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts.map +1 -0
  193. package/dist/src/bitgo/trading/network/decrypt-aes-gcm.js +31 -0
  194. package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts +8 -0
  195. package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts.map +1 -0
  196. package/dist/src/bitgo/trading/network/decrypt-rsa.js +23 -0
  197. package/dist/src/bitgo/trading/network/decrypt.d.ts +14 -0
  198. package/dist/src/bitgo/trading/network/decrypt.d.ts.map +1 -0
  199. package/dist/src/bitgo/trading/network/decrypt.js +23 -0
  200. package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts +8 -0
  201. package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts.map +1 -0
  202. package/dist/src/bitgo/trading/network/encrypt-aes-gcm.js +25 -0
  203. package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts +8 -0
  204. package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts.map +1 -0
  205. package/dist/src/bitgo/trading/network/encrypt-rsa-browser.js +65 -0
  206. package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts +8 -0
  207. package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts.map +1 -0
  208. package/dist/src/bitgo/trading/network/encrypt-rsa.js +23 -0
  209. package/dist/src/bitgo/trading/network/encrypt.d.ts +37 -0
  210. package/dist/src/bitgo/trading/network/encrypt.d.ts.map +1 -0
  211. package/dist/src/bitgo/trading/network/encrypt.js +58 -0
  212. package/dist/src/bitgo/trading/network/index.d.ts +5 -0
  213. package/dist/src/bitgo/trading/network/index.d.ts.map +1 -0
  214. package/dist/src/bitgo/trading/network/index.js +21 -0
  215. package/dist/src/bitgo/trading/network/network.d.ts +36 -0
  216. package/dist/src/bitgo/trading/network/network.d.ts.map +1 -0
  217. package/dist/src/bitgo/trading/network/network.js +101 -0
  218. package/dist/src/bitgo/trading/network/types.d.ts +277 -0
  219. package/dist/src/bitgo/trading/network/types.d.ts.map +1 -0
  220. package/dist/src/bitgo/trading/network/types.js +3 -0
  221. package/dist/src/bitgo/trading/network/utils.d.ts +20 -0
  222. package/dist/src/bitgo/trading/network/utils.d.ts.map +1 -0
  223. package/dist/src/bitgo/trading/network/utils.js +54 -0
  224. package/dist/src/bitgo/trading/tradingAccount.d.ts +11 -35
  225. package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
  226. package/dist/src/bitgo/trading/tradingAccount.js +9 -96
  227. package/dist/src/bitgo/tss/bitgoPubKeys.d.ts +27 -0
  228. package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
  229. package/dist/src/bitgo/tss/bitgoPubKeys.js +61 -0
  230. package/dist/src/bitgo/tss/common.d.ts +37 -5
  231. package/dist/src/bitgo/tss/common.d.ts.map +1 -1
  232. package/dist/src/bitgo/tss/common.js +103 -17
  233. package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +6 -4
  234. package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
  235. package/dist/src/bitgo/tss/ecdsa/ecdsa.js +78 -66
  236. package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts +15 -0
  237. package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
  238. package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.js +162 -0
  239. package/dist/src/bitgo/tss/ecdsa/index.d.ts +1 -0
  240. package/dist/src/bitgo/tss/ecdsa/index.d.ts.map +1 -1
  241. package/dist/src/bitgo/tss/ecdsa/index.js +25 -10
  242. package/dist/src/bitgo/tss/ecdsa/types.d.ts +27 -27
  243. package/dist/src/bitgo/tss/ecdsa/types.d.ts.map +1 -1
  244. package/dist/src/bitgo/tss/ecdsa/types.js +3 -3
  245. package/dist/src/bitgo/tss/eddsa/eddsa.d.ts +11 -8
  246. package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
  247. package/dist/src/bitgo/tss/eddsa/eddsa.js +38 -41
  248. package/dist/src/bitgo/tss/eddsa/index.js +23 -9
  249. package/dist/src/bitgo/tss/eddsa/types.d.ts +4 -4
  250. package/dist/src/bitgo/tss/eddsa/types.d.ts.map +1 -1
  251. package/dist/src/bitgo/tss/index.d.ts +3 -2
  252. package/dist/src/bitgo/tss/index.d.ts.map +1 -1
  253. package/dist/src/bitgo/tss/index.js +26 -10
  254. package/dist/src/bitgo/tss/types.d.ts +16 -1
  255. package/dist/src/bitgo/tss/types.d.ts.map +1 -1
  256. package/dist/src/bitgo/tss/types.js +2 -2
  257. package/dist/src/bitgo/types.d.ts +3 -3
  258. package/dist/src/bitgo/types.d.ts.map +1 -1
  259. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts +11 -0
  260. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
  261. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +66 -10
  262. package/dist/src/bitgo/utils/blsUtils.js +5 -5
  263. package/dist/src/bitgo/utils/codecProps.d.ts +7 -0
  264. package/dist/src/bitgo/utils/codecProps.d.ts.map +1 -0
  265. package/dist/src/bitgo/utils/codecProps.js +54 -0
  266. package/dist/src/bitgo/utils/decode.d.ts.map +1 -1
  267. package/dist/src/bitgo/utils/decode.js +30 -16
  268. package/dist/src/bitgo/utils/index.d.ts +2 -0
  269. package/dist/src/bitgo/utils/index.d.ts.map +1 -1
  270. package/dist/src/bitgo/utils/index.js +25 -9
  271. package/dist/src/bitgo/utils/mpcUtils.d.ts.map +1 -1
  272. package/dist/src/bitgo/utils/mpcUtils.js +17 -12
  273. package/dist/src/bitgo/utils/notEmpty.d.ts +2 -0
  274. package/dist/src/bitgo/utils/notEmpty.d.ts.map +1 -0
  275. package/dist/src/bitgo/utils/notEmpty.js +7 -0
  276. package/dist/src/bitgo/utils/opengpgUtils.d.ts +11 -4
  277. package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
  278. package/dist/src/bitgo/utils/opengpgUtils.js +76 -63
  279. package/dist/src/bitgo/utils/postWithCodec.d.ts +18 -0
  280. package/dist/src/bitgo/utils/postWithCodec.d.ts.map +1 -0
  281. package/dist/src/bitgo/utils/postWithCodec.js +25 -0
  282. package/dist/src/bitgo/utils/promise-utils.d.ts +1 -1
  283. package/dist/src/bitgo/utils/promise-utils.d.ts.map +1 -1
  284. package/dist/src/bitgo/utils/promise-utils.js +2 -3
  285. package/dist/src/bitgo/utils/triple.d.ts +1 -1
  286. package/dist/src/bitgo/utils/triple.d.ts.map +1 -1
  287. package/dist/src/bitgo/utils/triple.js +2 -3
  288. package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts +54 -8
  289. package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
  290. package/dist/src/bitgo/utils/tss/baseTSSUtils.js +170 -28
  291. package/dist/src/bitgo/utils/tss/baseTypes.d.ts +239 -31
  292. package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
  293. package/dist/src/bitgo/utils/tss/baseTypes.js +35 -19
  294. package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts +23 -0
  295. package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts.map +1 -0
  296. package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.js +157 -0
  297. package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts +30 -0
  298. package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts.map +1 -0
  299. package/dist/src/bitgo/utils/tss/ecdsa/base.js +55 -0
  300. package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts +48 -38
  301. package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
  302. package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +272 -184
  303. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +199 -0
  304. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
  305. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +930 -0
  306. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +8 -0
  307. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
  308. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +13 -0
  309. package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +4 -0
  310. package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
  311. package/dist/src/bitgo/utils/tss/ecdsa/index.js +10 -2
  312. package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts +15 -7
  313. package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts.map +1 -1
  314. package/dist/src/bitgo/utils/tss/ecdsa/types.js +1 -1
  315. package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts +107 -0
  316. package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts.map +1 -0
  317. package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.js +55 -0
  318. package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts +5 -3
  319. package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
  320. package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +75 -58
  321. package/dist/src/bitgo/utils/tss/eddsa/index.js +23 -9
  322. package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +7 -7
  323. package/dist/src/bitgo/utils/tss/eddsa/types.d.ts.map +1 -1
  324. package/dist/src/bitgo/utils/tss/index.js +23 -9
  325. package/dist/src/bitgo/utils/txRequest.d.ts +10 -0
  326. package/dist/src/bitgo/utils/txRequest.d.ts.map +1 -0
  327. package/dist/src/bitgo/utils/txRequest.js +47 -0
  328. package/dist/src/bitgo/utils/util.js +24 -10
  329. package/dist/src/bitgo/utils/wallet.d.ts +7 -0
  330. package/dist/src/bitgo/utils/wallet.d.ts.map +1 -0
  331. package/dist/src/bitgo/utils/wallet.js +48 -0
  332. package/dist/src/bitgo/wallet/BuildParams.d.ts +119 -0
  333. package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -0
  334. package/dist/src/bitgo/wallet/BuildParams.js +140 -0
  335. package/dist/src/bitgo/wallet/iWallet.d.ts +193 -16
  336. package/dist/src/bitgo/wallet/iWallet.d.ts.map +1 -1
  337. package/dist/src/bitgo/wallet/iWallet.js +1 -1
  338. package/dist/src/bitgo/wallet/iWallets.d.ts +64 -13
  339. package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
  340. package/dist/src/bitgo/wallet/iWallets.js +43 -2
  341. package/dist/src/bitgo/wallet/index.js +6 -2
  342. package/dist/src/bitgo/wallet/wallet.d.ts +167 -19
  343. package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
  344. package/dist/src/bitgo/wallet/wallet.js +838 -318
  345. package/dist/src/bitgo/wallet/wallets.d.ts +66 -8
  346. package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
  347. package/dist/src/bitgo/wallet/wallets.js +597 -189
  348. package/dist/src/bitgo/webhook/index.js +6 -2
  349. package/dist/src/bitgo/webhook/webhooks.js +23 -9
  350. package/dist/src/coins/fiateur.d.ts +0 -1
  351. package/dist/src/coins/fiateur.d.ts.map +1 -1
  352. package/dist/src/coins/fiatgbp.d.ts +0 -1
  353. package/dist/src/coins/fiatgbp.d.ts.map +1 -1
  354. package/dist/src/coins/fiatusd.d.ts +0 -1
  355. package/dist/src/coins/fiatusd.d.ts.map +1 -1
  356. package/dist/src/coins/index.js +6 -2
  357. package/dist/src/coins/ofc.d.ts +0 -1
  358. package/dist/src/coins/ofc.d.ts.map +1 -1
  359. package/dist/src/coins/ofc.js +2 -2
  360. package/dist/src/coins/ofcToken.js +2 -2
  361. package/dist/src/coins/susd.d.ts +0 -1
  362. package/dist/src/coins/susd.d.ts.map +1 -1
  363. package/dist/src/common.js +27 -13
  364. package/dist/src/index.d.ts +6 -1
  365. package/dist/src/index.d.ts.map +1 -1
  366. package/dist/src/index.js +28 -11
  367. package/dist/src/units.js +5 -6
  368. package/dist/test/node.utils.d.ts +2 -0
  369. package/dist/test/node.utils.d.ts.map +1 -0
  370. package/dist/test/node.utils.js +5 -0
  371. package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -0
  372. package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
  373. package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.js +233 -0
  374. package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts +3 -0
  375. package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts.map +1 -0
  376. package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.js +24 -0
  377. package/dist/test/unit/bitgo/trading/network/encrypt.d.ts +2 -0
  378. package/dist/test/unit/bitgo/trading/network/encrypt.d.ts.map +1 -0
  379. package/dist/test/unit/bitgo/trading/network/encrypt.js +71 -0
  380. package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts +2 -0
  381. package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -0
  382. package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +45 -0
  383. package/dist/test/unit/bitgo/utils/notEmpty.d.ts +2 -0
  384. package/dist/test/unit/bitgo/utils/notEmpty.d.ts.map +1 -0
  385. package/dist/test/unit/bitgo/utils/notEmpty.js +15 -0
  386. package/dist/test/unit/bitgo/utils/postWithCodec.d.ts +2 -0
  387. package/dist/test/unit/bitgo/utils/postWithCodec.d.ts.map +1 -0
  388. package/dist/test/unit/bitgo/utils/postWithCodec.js +73 -0
  389. package/dist/test/unit/bitgo/utils/txRequest.d.ts +2 -0
  390. package/dist/test/unit/bitgo/utils/txRequest.d.ts.map +1 -0
  391. package/dist/test/unit/bitgo/utils/txRequest.js +105 -0
  392. package/dist/test/unit/bitgo/wallet/BuildParams.d.ts +2 -0
  393. package/dist/test/unit/bitgo/wallet/BuildParams.d.ts.map +1 -0
  394. package/dist/test/unit/bitgo/wallet/BuildParams.js +68 -0
  395. package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts +2 -0
  396. package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts.map +1 -0
  397. package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +58 -0
  398. package/dist/test/unit/units.d.ts +2 -0
  399. package/dist/test/unit/units.d.ts.map +1 -0
  400. package/dist/test/unit/units.js +98 -0
  401. package/dist/tsconfig.tsbuildinfo +1 -1
  402. package/package.json +26 -20
  403. package/dist/src/account-lib/mpc/hdTree.d.ts +0 -31
  404. package/dist/src/account-lib/mpc/hdTree.d.ts.map +0 -1
  405. package/dist/src/account-lib/mpc/hdTree.js +0 -141
  406. package/dist/src/account-lib/mpc/types.d.ts +0 -5
  407. package/dist/src/account-lib/mpc/types.d.ts.map +0 -1
  408. package/dist/src/account-lib/mpc/types.js +0 -3
  409. package/dist/src/bitgo/lightning/iLightning.d.ts.map +0 -1
  410. package/dist/src/bitgo/lightning/iLightning.js +0 -106
  411. package/dist/src/bitgo/lightning/index.d.ts.map +0 -1
  412. package/dist/src/bitgo/lightning/lightning.d.ts.map +0 -1
  413. package/dist/src/bitgo/lightning/lightning.js +0 -111
  414. package/dist/src/bitgo/lightning/lightningUtils.d.ts.map +0 -1
  415. package/dist/src/bitgo/lightning/lightningUtils.js +0 -133
  416. package/dist/src/bitgo/lightning/lnurlCodec.d.ts.map +0 -1
  417. package/dist/src/bitgo/lightning/lnurlCodec.js +0 -28
  418. package/dist/src/bitgo/trading/affirmation.d.ts +0 -35
  419. package/dist/src/bitgo/trading/affirmation.d.ts.map +0 -1
  420. package/dist/src/bitgo/trading/affirmation.js +0 -53
  421. package/dist/src/bitgo/trading/affirmations.d.ts +0 -23
  422. package/dist/src/bitgo/trading/affirmations.d.ts.map +0 -1
  423. package/dist/src/bitgo/trading/affirmations.js +0 -45
  424. package/dist/src/bitgo/trading/iAffirmation.d.ts +0 -15
  425. package/dist/src/bitgo/trading/iAffirmation.d.ts.map +0 -1
  426. package/dist/src/bitgo/trading/iAffirmation.js +0 -13
  427. package/dist/src/bitgo/trading/iAffirmations.d.ts +0 -10
  428. package/dist/src/bitgo/trading/iAffirmations.d.ts.map +0 -1
  429. package/dist/src/bitgo/trading/iAffirmations.js +0 -3
  430. package/dist/src/bitgo/trading/iSettlement.d.ts +0 -25
  431. package/dist/src/bitgo/trading/iSettlement.d.ts.map +0 -1
  432. package/dist/src/bitgo/trading/iSettlement.js +0 -17
  433. package/dist/src/bitgo/trading/iSettlements.d.ts +0 -19
  434. package/dist/src/bitgo/trading/iSettlements.d.ts.map +0 -1
  435. package/dist/src/bitgo/trading/iSettlements.js +0 -3
  436. package/dist/src/bitgo/trading/iTradingPartner.d.ts +0 -14
  437. package/dist/src/bitgo/trading/iTradingPartner.d.ts.map +0 -1
  438. package/dist/src/bitgo/trading/iTradingPartner.js +0 -17
  439. package/dist/src/bitgo/trading/iTradingPartners.d.ts +0 -15
  440. package/dist/src/bitgo/trading/iTradingPartners.d.ts.map +0 -1
  441. package/dist/src/bitgo/trading/iTradingPartners.js +0 -9
  442. package/dist/src/bitgo/trading/lock.d.ts +0 -16
  443. package/dist/src/bitgo/trading/lock.d.ts.map +0 -1
  444. package/dist/src/bitgo/trading/lock.js +0 -12
  445. package/dist/src/bitgo/trading/payload.d.ts +0 -22
  446. package/dist/src/bitgo/trading/payload.d.ts.map +0 -1
  447. package/dist/src/bitgo/trading/payload.js +0 -3
  448. package/dist/src/bitgo/trading/settlement.d.ts +0 -16
  449. package/dist/src/bitgo/trading/settlement.d.ts.map +0 -1
  450. package/dist/src/bitgo/trading/settlement.js +0 -21
  451. package/dist/src/bitgo/trading/settlements.d.ts +0 -32
  452. package/dist/src/bitgo/trading/settlements.d.ts.map +0 -1
  453. package/dist/src/bitgo/trading/settlements.js +0 -61
  454. package/dist/src/bitgo/trading/trade.d.ts +0 -29
  455. package/dist/src/bitgo/trading/trade.d.ts.map +0 -1
  456. package/dist/src/bitgo/trading/trade.js +0 -11
  457. package/dist/src/bitgo/trading/tradingPartner.d.ts +0 -26
  458. package/dist/src/bitgo/trading/tradingPartner.d.ts.map +0 -1
  459. package/dist/src/bitgo/trading/tradingPartner.js +0 -31
  460. package/dist/src/bitgo/trading/tradingPartners.d.ts +0 -24
  461. package/dist/src/bitgo/trading/tradingPartners.d.ts.map +0 -1
  462. package/dist/src/bitgo/trading/tradingPartners.js +0 -32
  463. package/dist/src/openssl/index.d.ts +0 -5
  464. package/dist/src/openssl/index.d.ts.map +0 -1
  465. package/dist/src/openssl/index.js +0 -9
  466. /package/dist/src/bitgo/lightning/{index.d.ts → custodial/index.d.ts} +0 -0
  467. /package/dist/src/bitgo/lightning/{lnurlCodec.d.ts → custodial/lnurlCodec.d.ts} +0 -0
@@ -1,11 +1,14 @@
1
- import { IBaseCoin, SignedMessage, SignedTransaction } from '../baseCoin';
1
+ import { IBaseCoin, NFTTransferOptions, SignedMessage, SignedTransaction } from '../baseCoin';
2
2
  import { BitGoBase } from '../bitgoBase';
3
+ import { KeychainWithEncryptedPrv } from '../keychain';
3
4
  import { IPendingApproval } from '../pendingApproval';
4
- import { TradingAccount } from '../trading/tradingAccount';
5
+ import { TradingAccount } from '../trading';
5
6
  import { TxRequest } from '../utils';
6
- import { AccelerateTransactionOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildTokenEnablementOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreatePolicyRuleOptions, CreateShareOptions, CrossChainUTXO, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, IWallet, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendOptions, ShareWalletOptions, SimulateWebhookOptions, SubmitTransactionOptions, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions } from './iWallet';
7
- import { StakingWallet } from '../staking/stakingWallet';
8
- import { Lightning } from '../lightning';
7
+ import { AccelerateTransactionOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildTokenEnablementOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreatePolicyRuleOptions, CreateShareOptions, BulkCreateShareOption, BulkWalletShareOptions, CrossChainUTXO, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, IWallet, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, NftBalance, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendNFTOptions, SendNFTResult, SendOptions, ShareWalletOptions, SimulateWebhookOptions, SubmitTransactionOptions, SubWalletType, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, UpdateBuildDefaultOptions, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions, WalletType, CreateBulkWalletShareListResponse, SharedKeyChain, ManageUnspentReservationOptions, SignAndSendTxRequestOptions } from './iWallet';
8
+ import { StakingWallet } from '../staking';
9
+ import { Lightning } from '../lightning/custodial';
10
+ import { IAddressBook } from '../address-book';
11
+ import { IRequestTracer } from '../../api';
9
12
  export declare enum ManageUnspentsOptions {
10
13
  BUILD_ONLY = 0,
11
14
  BUILD_SIGN_SEND = 1
@@ -34,6 +37,7 @@ export declare class Wallet implements IWallet {
34
37
  * Get the current balance of this wallet
35
38
  */
36
39
  balance(): number;
40
+ /** @deprecated use codec instead: t.exact(BuildParams).encode(v) */
37
41
  prebuildWhitelistedParams(): string[];
38
42
  /**
39
43
  * This is a strict sub-set of prebuildWhitelistedParams
@@ -69,10 +73,19 @@ export declare class Wallet implements IWallet {
69
73
  * Get the coin identifier for the type of coin this wallet holds
70
74
  */
71
75
  coin(): string;
76
+ type(): WalletType;
77
+ multisigType(): 'onchain' | 'tss';
78
+ multisigTypeVersion(): 'MPCv2' | undefined;
79
+ subType(): SubWalletType | undefined;
72
80
  /**
73
81
  * Get the label (name) for this wallet
74
82
  */
75
83
  label(): string;
84
+ flags(): {
85
+ name: string;
86
+ value: string;
87
+ }[];
88
+ flag(name: string): string | undefined;
76
89
  /**
77
90
  * Get the public object ids for the keychains on this wallet.
78
91
  */
@@ -80,7 +93,7 @@ export declare class Wallet implements IWallet {
80
93
  /**
81
94
  * Get a receive address for this wallet
82
95
  */
83
- receiveAddress(): string;
96
+ receiveAddress(): string | undefined;
84
97
  /**
85
98
  * Get the wallet id of the wallet that this wallet was migrated from.
86
99
  *
@@ -113,6 +126,26 @@ export declare class Wallet implements IWallet {
113
126
  * @returns {*}
114
127
  */
115
128
  transactions(params?: PaginationOptions): Promise<any>;
129
+ /**
130
+ * Return a list of nft tokens for this wallet. Will always return undefined if the wallet
131
+ * was not initialized with the allTokens flag.
132
+ *
133
+ * @returns {NftBalance[] | undefined}
134
+ */
135
+ nftBalances(): NftBalance[] | undefined;
136
+ /**
137
+ * Return a list of unsupported nft tokens for this wallet. Will always return undefined if the wallet
138
+ * was not initialized with the allTokens flag.
139
+ *
140
+ * @returns {NftBalance[] | undefined}
141
+ */
142
+ unsupportedNftBalances(): NftBalance[] | undefined;
143
+ /**
144
+ * Returns a list of the wallets nft & unsupported nfts.
145
+ *
146
+ * @returns {NftBalance[]}
147
+ */
148
+ getNftBalances(): Promise<NftBalance[]>;
116
149
  /**
117
150
  * List the transactions for a given wallet
118
151
  * @param params
@@ -187,8 +220,25 @@ export declare class Wallet implements IWallet {
187
220
  * - maximum number of unspents you want to use in the transaction
188
221
  * Output parameters:
189
222
  * @param {Number} params.numUnspentsToMake - the number of new unspents to make
223
+ * @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
224
+ * with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
190
225
  */
191
226
  private manageUnspents;
227
+ /**
228
+ * Manage the unspent reservations on the wallet
229
+ *
230
+ * @param params.create - create a new reservation
231
+ * @param params.modify - modify an existing reservation
232
+ * @param params.delete - delete an existing reservation
233
+ */
234
+ manageUnspentReservations(params: ManageUnspentReservationOptions): Promise<{
235
+ unspents: {
236
+ id: string;
237
+ walletId: string;
238
+ expireTime: string;
239
+ userId?: string;
240
+ }[];
241
+ }>;
192
242
  /**
193
243
  * Consolidate unspents on a wallet
194
244
  *
@@ -207,9 +257,11 @@ export declare class Wallet implements IWallet {
207
257
  * @param {Number} params.limit for routeName === 'consolidate'
208
258
  * params.maxNumInputsToUse for routeName === 'fanout'
209
259
  * - maximum number of unspents you want to use in the transaction
210
- * @param {Number} params.numUnspentsToMake - the number of new unspents to make
260
+ * @param {Number} params.numUnspentsToMake - the number of new unspents to make. It is not applicable for if bulk consolidate.
261
+ * @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
262
+ * with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
211
263
  */
212
- consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<any>;
264
+ consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
213
265
  /**
214
266
  * Fanout unspents on a wallet
215
267
  *
@@ -226,8 +278,10 @@ export declare class Wallet implements IWallet {
226
278
  * @param {Number} params.maxFeeRate - The max limit for a fee rate in satoshis/kB
227
279
  * @param {Number} params.maxNumInputsToUse - the number of unspents you want to use in the transaction
228
280
  * @param {Number} params.numUnspentsToMake - the number of new unspents to make
281
+ *
282
+ * @param {ManageUnspentsOptions} option - flag to toggle build and send or build only
229
283
  */
230
- fanoutUnspents(params?: FanoutUnspentsOptions): Promise<any>;
284
+ fanoutUnspents(params?: FanoutUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
231
285
  /**
232
286
  * Set the token flush thresholds for the wallet. Updates the wallet.
233
287
  * Tokens will only be flushed from forwarder contracts if the balance is greater than the threshold defined here.
@@ -334,6 +388,7 @@ export declare class Wallet implements IWallet {
334
388
  * @returns {*}
335
389
  */
336
390
  updateAddress(params?: UpdateAddressOptions): Promise<any>;
391
+ updateWalletBuildDefaults(params: UpdateBuildDefaultOptions): Promise<unknown>;
337
392
  /**
338
393
  * List webhooks on this wallet
339
394
  * @param params
@@ -359,15 +414,12 @@ export declare class Wallet implements IWallet {
359
414
  */
360
415
  removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
361
416
  /**
362
- * Gets the user key chain for this wallet
417
+ * Gets the user keychain for this wallet
363
418
  *
364
- * The user key chain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
419
+ * The user keychain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
365
420
  * Useful when trying to get the users' keychain from the server before decrypting to sign a transaction.
366
- * @param params
367
421
  */
368
- getEncryptedUserKeychain(params?: Record<string, never>): Promise<{
369
- encryptedPrv: string;
370
- }>;
422
+ getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
371
423
  /**
372
424
  * Gets the unencrypted private key for this wallet (be careful!)
373
425
  * Requires wallet passphrase
@@ -380,6 +432,37 @@ export declare class Wallet implements IWallet {
380
432
  * @param params
381
433
  */
382
434
  createShare(params?: CreateShareOptions): Promise<any>;
435
+ /**
436
+ * Shares a wallet with multiple users by creating bulk wallet shares.
437
+ *
438
+ * @async
439
+ * @param {BulkWalletShareOptions} params - The options for sharing wallets in bulk.
440
+ * @param {Array<ShareOption>} params.shareOptions - An array of share option objects containing user and permissions information.
441
+ * @param {Object} [params.shareOptions[].keychain] - The keychain object used to share the wallet.
442
+ * @param {string} [params.shareOptions[].keychain.toPubKey] - The recipient's public key.
443
+ * @param {string} [params.shareOptions[].keychain.path] - The derivation path of the keychain.
444
+ * @param {string} params.shareOptions[].user - The user to share the wallet with.
445
+ * @param {string} params.shareOptions[].permissions - The permissions granted to the user.
446
+ * @param {string} [params.walletPassphrase] - The wallet passphrase used to decrypt the keychain.
447
+ * @throws {Error} If `shareOptions` is empty, or if required keychain parameters (`toPubKey` and `path`) are missing when needed.
448
+ * @throws {Error} If unable to decrypt the user keychain.
449
+ * @returns {Promise<CreateBulkWalletShareListResponse>} A promise that resolves with the response of the bulk wallet share creation.
450
+ */
451
+ createBulkWalletShare(params: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
452
+ /**
453
+ * Creates bulk wallet share entries for specified share options.
454
+ * Filters out share options that do not contain valid keychain information or have missing keychain fields.
455
+ * If all share options are invalid or empty, it throws an error.
456
+ * Sends a POST request to create the wallet shares for valid share options.
457
+ *
458
+ * @async
459
+ * @param {BulkCreateShareOption[]} [params=[]] - The array of share options to process.
460
+ * Keychain entries must include the following fields: `pub`, `encryptedPrv`, `fromPubKey`, `toPubKey`, and `path`.
461
+ * @returns {Promise<CreateBulkWalletShareListResponse>} A promise resolving to the result of the wallet shares creation.
462
+ * @throws {Error} Throws an error if no valid share options are provided.
463
+ */
464
+ createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
465
+ prepareSharedKeychain(walletPassphrase: string | undefined, pubkey: string, path: string): Promise<SharedKeyChain>;
383
466
  /**
384
467
  * Share this wallet with another BitGo user.
385
468
  * @param params
@@ -429,6 +512,16 @@ export declare class Wallet implements IWallet {
429
512
  * @returns {*}
430
513
  */
431
514
  prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
515
+ /**
516
+ * Gets the User Keychain and sign a TSS transaction
517
+ * @param txRequestId The transaction request id
518
+ * @param walletPassphrase The wallet passphrase
519
+ * @return Promise<SignedTransaction>
520
+ */
521
+ getUserKeyAndSignTssTransaction({ txRequestId, walletPassphrase, }: {
522
+ txRequestId: string;
523
+ walletPassphrase: string;
524
+ }): Promise<SignedTransaction>;
432
525
  /**
433
526
  * Sign a transaction
434
527
  * @param params
@@ -466,13 +559,17 @@ export declare class Wallet implements IWallet {
466
559
  * @param params
467
560
  */
468
561
  accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
562
+ private validateAccelerationParams;
563
+ private validateRbfParams;
564
+ private validateCpfpParams;
469
565
  /**
470
566
  * Submit a half-signed transaction to BitGo
471
567
  * @param params
472
568
  * - txHex: transaction hex to submit
473
569
  * - halfSigned: object containing transaction (txHex or txBase64) to submit
570
+ * @param reqId - request tracer request id
474
571
  */
475
- submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
572
+ submitTransaction(params?: SubmitTransactionOptions, reqId?: IRequestTracer): Promise<any>;
476
573
  /**
477
574
  * Send coins to a recipient
478
575
  * @param params
@@ -488,6 +585,19 @@ export declare class Wallet implements IWallet {
488
585
  * @returns {*}
489
586
  */
490
587
  send(params?: SendOptions): Promise<any>;
588
+ /**
589
+ * Send an ERC-721 NFT or ERC-1155 NFT(s).
590
+ *
591
+ * This function constructs the appropriate call data for an ERC-721/1155 token transfer,
592
+ * and calls the token contract with the data, and amount 0. This transaction will always produce
593
+ * a pending approval.
594
+ *
595
+ * @param sendOptions Options to specify how the transaction should be sent.
596
+ * @param sendNftOptions Options to specify the NFT(s) to be sent.
597
+ *
598
+ * @return A pending approval for the transaction.
599
+ */
600
+ sendNft(sendOptions: SendNFTOptions, sendNftOptions: NFTTransferOptions): Promise<SendNFTResult>;
491
601
  /**
492
602
  * Send money to multiple recipients
493
603
  * 1. Gets the user keychain by checking the wallet for a key which has an encrypted prv
@@ -610,6 +720,10 @@ export declare class Wallet implements IWallet {
610
720
  * Create a trading account from this wallet
611
721
  */
612
722
  toTradingAccount(): TradingAccount;
723
+ /**
724
+ * Get the address book for this wallet
725
+ */
726
+ toAddressBook(): IAddressBook;
613
727
  /**
614
728
  * Create a staking wallet from this wallet
615
729
  */
@@ -692,13 +806,36 @@ export declare class Wallet implements IWallet {
692
806
  *
693
807
  * @param params prebuild transaction options
694
808
  */
695
- private prebuildTransactionTss;
809
+ private prebuildTransactionTxRequests;
696
810
  /**
697
- * Signs a transaction from a TSS wallet using external signer.
811
+ * Signs a transaction from a TSS EdDSA wallet using external signer.
698
812
  *
699
813
  * @param params signing options
700
814
  */
701
815
  private signTransactionTssExternalSignerEdDSA;
816
+ /**
817
+ * Signs and sends a transaction request from a TSS (hot) wallet, or a SMC (cold) wallet with an external signer.
818
+ * Meant to be used for a transaction request where the signing process is aborted.
819
+ *
820
+ * @param params
821
+ * txRequestId - The ID of the transaction request.
822
+ * walletPassphrase - The passphrase for the wallet.
823
+ * isTxRequestFull - Flag indicating if the transaction request is full.
824
+ * @returns A promise that resolves to a SignedTransaction.
825
+ */
826
+ signAndSendTxRequest(params: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
827
+ /**
828
+ * Signs a transaction from a TSS ECDSA wallet using external signer.
829
+ *
830
+ * @param params signing options
831
+ */
832
+ private signTransactionTssExternalSignerECDSA;
833
+ /**
834
+ * Signs a transaction from a TSS ECDSA wallet using external signer.
835
+ *
836
+ * @param params signing options
837
+ */
838
+ private signTransactionTssExternalSignerECDSAMPCv2;
702
839
  /**
703
840
  * Signs a transaction from a TSS wallet.
704
841
  *
@@ -722,7 +859,7 @@ export declare class Wallet implements IWallet {
722
859
  *
723
860
  * @param params send options
724
861
  */
725
- private sendManyTss;
862
+ private sendManyTxRequests;
726
863
  /**
727
864
  * Send funds from a fee address to a forwarder. Only supports eth-like coins.
728
865
  *
@@ -747,5 +884,16 @@ export declare class Wallet implements IWallet {
747
884
  * @returns {Promise<WalletEcdsaChallenges>}
748
885
  */
749
886
  getChallengesForEcdsaSigning(): Promise<WalletEcdsaChallenges>;
887
+ private sendTransaction;
888
+ private initiateTransaction;
889
+ /**
890
+ * Get wallet keychains and validate passphrase if necessary
891
+ * @param {PrebuildTransactionOptions} params - prebuild transaction options
892
+ * @param {string} params.walletPassphrase - wallet passphrase
893
+ * @param {string} params.reqId - request id for tracing purposes
894
+ * @param {Function} params.customSigningFunction - custom signing function for external signing
895
+ * @returns {Promise<Keychain[]>}
896
+ */
897
+ private getKeychainsAndValidatePassphrase;
750
898
  }
751
899
  //# sourceMappingURL=wallet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../../src/bitgo/wallet/wallet.ts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