@bitgo-beta/sdk-core 8.2.1-beta.18 → 8.2.1-beta.1800

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 (682) hide show
  1. package/dist/src/account-lib/baseCoin/baseTransaction.d.ts +0 -1
  2. package/dist/src/account-lib/baseCoin/baseTransaction.d.ts.map +1 -1
  3. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts +3 -3
  4. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts.map +1 -1
  5. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.js +4 -3
  6. package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts +1 -0
  7. package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts.map +1 -1
  8. package/dist/src/account-lib/baseCoin/ed25519KeyPair.js +41 -29
  9. package/dist/src/account-lib/baseCoin/enum.d.ts +52 -2
  10. package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
  11. package/dist/src/account-lib/baseCoin/enum.js +96 -6
  12. package/dist/src/account-lib/baseCoin/errors.d.ts +3 -0
  13. package/dist/src/account-lib/baseCoin/errors.d.ts.map +1 -1
  14. package/dist/src/account-lib/baseCoin/errors.js +8 -2
  15. package/dist/src/account-lib/baseCoin/iface.d.ts +19 -35
  16. package/dist/src/account-lib/baseCoin/iface.d.ts.map +1 -1
  17. package/dist/src/account-lib/baseCoin/iface.js +26 -18
  18. package/dist/src/account-lib/baseCoin/index.d.ts +1 -1
  19. package/dist/src/account-lib/baseCoin/index.d.ts.map +1 -1
  20. package/dist/src/account-lib/baseCoin/index.js +8 -5
  21. package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts +88 -0
  22. package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
  23. package/dist/src/account-lib/baseCoin/messages/baseMessage.js +154 -0
  24. package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +67 -0
  25. package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
  26. package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.js +144 -0
  27. package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +33 -0
  28. package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
  29. package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +45 -0
  30. package/dist/src/account-lib/baseCoin/messages/iface.d.ts +164 -0
  31. package/dist/src/account-lib/baseCoin/messages/iface.d.ts.map +1 -0
  32. package/dist/src/account-lib/baseCoin/messages/iface.js +3 -0
  33. package/dist/src/account-lib/baseCoin/messages/index.d.ts +6 -0
  34. package/dist/src/account-lib/baseCoin/messages/index.d.ts.map +1 -0
  35. package/dist/src/account-lib/baseCoin/messages/index.js +22 -0
  36. package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts +3 -0
  37. package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts.map +1 -0
  38. package/dist/src/account-lib/baseCoin/messages/simple/index.js +19 -0
  39. package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts +13 -0
  40. package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts.map +1 -0
  41. package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.js +28 -0
  42. package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts +21 -0
  43. package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts.map +1 -0
  44. package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.js +28 -0
  45. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts +1 -2
  46. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts.map +1 -1
  47. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.js +38 -26
  48. package/dist/src/account-lib/index.js +23 -9
  49. package/dist/src/account-lib/mpc/curves/ed25519.d.ts +4 -18
  50. package/dist/src/account-lib/mpc/curves/ed25519.d.ts.map +1 -1
  51. package/dist/src/account-lib/mpc/curves/ed25519.js +6 -60
  52. package/dist/src/account-lib/mpc/index.d.ts +4 -4
  53. package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
  54. package/dist/src/account-lib/mpc/index.js +11 -7
  55. package/dist/src/account-lib/mpc/shamir.d.ts +5 -37
  56. package/dist/src/account-lib/mpc/shamir.d.ts.map +1 -1
  57. package/dist/src/account-lib/mpc/shamir.js +6 -130
  58. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +44 -12
  59. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
  60. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +541 -356
  61. package/dist/src/account-lib/mpc/tss/ecdsa/index.js +23 -9
  62. package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts +2 -2
  63. package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts.map +1 -1
  64. package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.js +3 -3
  65. package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts +73 -52
  66. package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts.map +1 -1
  67. package/dist/src/account-lib/mpc/tss/ecdsa/types.js +1 -1
  68. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts +1 -2
  69. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts.map +1 -1
  70. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.js +66 -69
  71. package/dist/src/account-lib/mpc/tss/eddsa/index.js +23 -9
  72. package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts +1 -4
  73. package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts.map +1 -1
  74. package/dist/src/account-lib/mpc/tss/eddsa/types.js +1 -1
  75. package/dist/src/account-lib/mpc/tss/index.js +23 -9
  76. package/dist/src/account-lib/mpc/util.d.ts +7 -1
  77. package/dist/src/account-lib/mpc/util.d.ts.map +1 -1
  78. package/dist/src/account-lib/mpc/util.js +24 -1
  79. package/dist/src/account-lib/staking/index.js +6 -2
  80. package/dist/src/account-lib/staking/utils.js +3 -3
  81. package/dist/src/account-lib/util/crypto.d.ts +8 -2
  82. package/dist/src/account-lib/util/crypto.d.ts.map +1 -1
  83. package/dist/src/account-lib/util/crypto.js +69 -38
  84. package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts +2 -1
  85. package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +1 -1
  86. package/dist/src/account-lib/util/ed25519KeyDeriver.js +5 -3
  87. package/dist/src/api/bip32path.js +2 -3
  88. package/dist/src/api/index.js +6 -2
  89. package/dist/src/api/types.d.ts +30 -0
  90. package/dist/src/api/types.d.ts.map +1 -1
  91. package/dist/src/api/types.js +1 -1
  92. package/dist/src/bitgo/address-book/address-book.d.ts +61 -0
  93. package/dist/src/bitgo/address-book/address-book.d.ts.map +1 -0
  94. package/dist/src/bitgo/address-book/address-book.js +139 -0
  95. package/dist/src/bitgo/address-book/index.d.ts +3 -0
  96. package/dist/src/bitgo/address-book/index.d.ts.map +1 -0
  97. package/dist/src/{openssl → bitgo/address-book}/index.js +8 -3
  98. package/dist/src/bitgo/address-book/types.d.ts +170 -0
  99. package/dist/src/bitgo/address-book/types.d.ts.map +1 -0
  100. package/dist/src/bitgo/address-book/types.js +3 -0
  101. package/dist/src/bitgo/baseCoin/baseCoin.d.ts +115 -11
  102. package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
  103. package/dist/src/bitgo/baseCoin/baseCoin.js +182 -16
  104. package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +208 -28
  105. package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts.map +1 -1
  106. package/dist/src/bitgo/baseCoin/iBaseCoin.js +14 -3
  107. package/dist/src/bitgo/baseCoin/index.js +6 -2
  108. package/dist/src/bitgo/bip32util.d.ts +3 -16
  109. package/dist/src/bitgo/bip32util.d.ts.map +1 -1
  110. package/dist/src/bitgo/bip32util.js +4 -56
  111. package/dist/src/bitgo/bitcoin.d.ts +0 -1
  112. package/dist/src/bitgo/bitcoin.d.ts.map +1 -1
  113. package/dist/src/bitgo/bitcoin.js +26 -13
  114. package/dist/src/bitgo/bitgoBase.d.ts +10 -2
  115. package/dist/src/bitgo/bitgoBase.d.ts.map +1 -1
  116. package/dist/src/bitgo/bitgoBase.js +1 -1
  117. package/dist/src/bitgo/coinFactory.d.ts +17 -3
  118. package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
  119. package/dist/src/bitgo/coinFactory.js +26 -3
  120. package/dist/src/bitgo/config.d.ts +3 -89
  121. package/dist/src/bitgo/config.d.ts.map +1 -1
  122. package/dist/src/bitgo/config.js +26 -15
  123. package/dist/src/bitgo/ecdh.d.ts +0 -1
  124. package/dist/src/bitgo/ecdh.d.ts.map +1 -1
  125. package/dist/src/bitgo/ecdh.js +26 -13
  126. package/dist/src/bitgo/enterprise/enterprise.d.ts +16 -14
  127. package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
  128. package/dist/src/bitgo/enterprise/enterprise.js +64 -31
  129. package/dist/src/bitgo/enterprise/enterprises.d.ts +6 -0
  130. package/dist/src/bitgo/enterprise/enterprises.d.ts.map +1 -1
  131. package/dist/src/bitgo/enterprise/enterprises.js +48 -9
  132. package/dist/src/bitgo/enterprise/iEnterprise.d.ts +6 -7
  133. package/dist/src/bitgo/enterprise/iEnterprise.d.ts.map +1 -1
  134. package/dist/src/bitgo/enterprise/iEnterprise.js +1 -1
  135. package/dist/src/bitgo/enterprise/iEnterprises.d.ts +2 -0
  136. package/dist/src/bitgo/enterprise/iEnterprises.d.ts.map +1 -1
  137. package/dist/src/bitgo/enterprise/iEnterprises.js +1 -1
  138. package/dist/src/bitgo/enterprise/index.js +6 -2
  139. package/dist/src/bitgo/environments.d.ts +83 -5
  140. package/dist/src/bitgo/environments.d.ts.map +1 -1
  141. package/dist/src/bitgo/environments.js +421 -30
  142. package/dist/src/bitgo/errors.d.ts +175 -0
  143. package/dist/src/bitgo/errors.d.ts.map +1 -1
  144. package/dist/src/bitgo/errors.js +166 -2
  145. package/dist/src/bitgo/evm/evmUtils.d.ts +26 -0
  146. package/dist/src/bitgo/evm/evmUtils.d.ts.map +1 -0
  147. package/dist/src/bitgo/evm/evmUtils.js +50 -0
  148. package/dist/src/bitgo/index.d.ts +3 -1
  149. package/dist/src/bitgo/index.d.ts.map +1 -1
  150. package/dist/src/bitgo/index.js +29 -11
  151. package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts +3 -3
  152. package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts.map +1 -1
  153. package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.js +1 -1
  154. package/dist/src/bitgo/inscriptionBuilder/index.js +6 -2
  155. package/dist/src/bitgo/internal/index.js +6 -2
  156. package/dist/src/bitgo/internal/internal.js +5 -6
  157. package/dist/src/bitgo/internal/keycard.d.ts +18 -6
  158. package/dist/src/bitgo/internal/keycard.d.ts.map +1 -1
  159. package/dist/src/bitgo/internal/keycard.js +102 -44
  160. package/dist/src/bitgo/keychain/decryptKeychain.d.ts +24 -0
  161. package/dist/src/bitgo/keychain/decryptKeychain.d.ts.map +1 -0
  162. package/dist/src/bitgo/keychain/decryptKeychain.js +67 -0
  163. package/dist/src/bitgo/keychain/iKeychains.d.ts +101 -8
  164. package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
  165. package/dist/src/bitgo/keychain/iKeychains.js +2 -2
  166. package/dist/src/bitgo/keychain/index.d.ts +1 -0
  167. package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
  168. package/dist/src/bitgo/keychain/index.js +7 -2
  169. package/dist/src/bitgo/keychain/keychains.d.ts +48 -6
  170. package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
  171. package/dist/src/bitgo/keychain/keychains.js +272 -67
  172. package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +126 -91
  173. package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
  174. package/dist/src/bitgo/keychain/ovcJsonCodec.js +53 -32
  175. package/dist/src/bitgo/legacyBitcoin.d.ts +0 -1
  176. package/dist/src/bitgo/legacyBitcoin.d.ts.map +1 -1
  177. package/dist/src/bitgo/legacyBitcoin.js +27 -13
  178. package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts +7 -0
  179. package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts.map +1 -0
  180. package/dist/src/bitgo/lightning/lightningWalletUtil.js +25 -0
  181. package/dist/src/bitgo/market/iMarkets.d.ts +2 -2
  182. package/dist/src/bitgo/market/iMarkets.d.ts.map +1 -1
  183. package/dist/src/bitgo/market/index.js +6 -2
  184. package/dist/src/bitgo/market/markets.js +23 -9
  185. package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts +3 -0
  186. package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
  187. package/dist/src/bitgo/pendingApproval/iPendingApproval.js +4 -4
  188. package/dist/src/bitgo/pendingApproval/index.js +6 -2
  189. package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +20 -8
  190. package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
  191. package/dist/src/bitgo/pendingApproval/pendingApproval.js +233 -102
  192. package/dist/src/bitgo/pendingApproval/pendingApprovals.js +23 -9
  193. package/dist/src/bitgo/proofs/WalletProofs.d.ts +19 -0
  194. package/dist/src/bitgo/proofs/WalletProofs.d.ts.map +1 -0
  195. package/dist/src/bitgo/proofs/WalletProofs.js +37 -0
  196. package/dist/src/bitgo/proofs/index.d.ts +2 -0
  197. package/dist/src/bitgo/proofs/index.d.ts.map +1 -0
  198. package/dist/src/bitgo/proofs/index.js +6 -0
  199. package/dist/src/bitgo/proofs/types.d.ts +80 -0
  200. package/dist/src/bitgo/proofs/types.d.ts.map +1 -0
  201. package/dist/src/bitgo/proofs/types.js +80 -0
  202. package/dist/src/bitgo/recovery/index.js +6 -2
  203. package/dist/src/bitgo/recovery/initiate.d.ts +31 -2
  204. package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
  205. package/dist/src/bitgo/recovery/initiate.js +88 -40
  206. package/dist/src/bitgo/staking/goStakingInterfaces.d.ts +132 -0
  207. package/dist/src/bitgo/staking/goStakingInterfaces.d.ts.map +1 -0
  208. package/dist/src/bitgo/staking/goStakingInterfaces.js +3 -0
  209. package/dist/src/bitgo/staking/goStakingWallet.d.ts +62 -0
  210. package/dist/src/bitgo/staking/goStakingWallet.d.ts.map +1 -0
  211. package/dist/src/bitgo/staking/goStakingWallet.js +141 -0
  212. package/dist/src/bitgo/staking/iGoStakingWallet.d.ts +17 -0
  213. package/dist/src/bitgo/staking/iGoStakingWallet.d.ts.map +1 -0
  214. package/dist/src/bitgo/staking/iGoStakingWallet.js +3 -0
  215. package/dist/src/bitgo/staking/iStakingWallet.d.ts +184 -8
  216. package/dist/src/bitgo/staking/iStakingWallet.d.ts.map +1 -1
  217. package/dist/src/bitgo/staking/iStakingWallet.js +2 -2
  218. package/dist/src/bitgo/staking/index.d.ts +3 -0
  219. package/dist/src/bitgo/staking/index.d.ts.map +1 -1
  220. package/dist/src/bitgo/staking/index.js +9 -2
  221. package/dist/src/bitgo/staking/stakingWallet.d.ts +27 -8
  222. package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
  223. package/dist/src/bitgo/staking/stakingWallet.js +148 -7
  224. package/dist/src/bitgo/trading/iTradingAccount.d.ts +15 -33
  225. package/dist/src/bitgo/trading/iTradingAccount.d.ts.map +1 -1
  226. package/dist/src/bitgo/trading/iTradingAccount.js +1 -1
  227. package/dist/src/bitgo/trading/index.d.ts +1 -15
  228. package/dist/src/bitgo/trading/index.d.ts.map +1 -1
  229. package/dist/src/bitgo/trading/index.js +7 -17
  230. package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts +8 -0
  231. package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts.map +1 -0
  232. package/dist/src/bitgo/trading/network/decrypt-aes-gcm.js +31 -0
  233. package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts +8 -0
  234. package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts.map +1 -0
  235. package/dist/src/bitgo/trading/network/decrypt-rsa.js +23 -0
  236. package/dist/src/bitgo/trading/network/decrypt.d.ts +14 -0
  237. package/dist/src/bitgo/trading/network/decrypt.d.ts.map +1 -0
  238. package/dist/src/bitgo/trading/network/decrypt.js +23 -0
  239. package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts +8 -0
  240. package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts.map +1 -0
  241. package/dist/src/bitgo/trading/network/encrypt-aes-gcm.js +25 -0
  242. package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts +8 -0
  243. package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts.map +1 -0
  244. package/dist/src/bitgo/trading/network/encrypt-rsa-browser.js +65 -0
  245. package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts +8 -0
  246. package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts.map +1 -0
  247. package/dist/src/bitgo/trading/network/encrypt-rsa.js +23 -0
  248. package/dist/src/bitgo/trading/network/encrypt.d.ts +37 -0
  249. package/dist/src/bitgo/trading/network/encrypt.d.ts.map +1 -0
  250. package/dist/src/bitgo/trading/network/encrypt.js +58 -0
  251. package/dist/src/bitgo/trading/network/index.d.ts +5 -0
  252. package/dist/src/bitgo/trading/network/index.d.ts.map +1 -0
  253. package/dist/src/bitgo/trading/network/index.js +21 -0
  254. package/dist/src/bitgo/trading/network/network.d.ts +36 -0
  255. package/dist/src/bitgo/trading/network/network.d.ts.map +1 -0
  256. package/dist/src/bitgo/trading/network/network.js +99 -0
  257. package/dist/src/bitgo/trading/network/types.d.ts +277 -0
  258. package/dist/src/bitgo/trading/network/types.d.ts.map +1 -0
  259. package/dist/src/bitgo/trading/network/types.js +3 -0
  260. package/dist/src/bitgo/trading/network/utils.d.ts +20 -0
  261. package/dist/src/bitgo/trading/network/utils.d.ts.map +1 -0
  262. package/dist/src/bitgo/trading/network/utils.js +54 -0
  263. package/dist/src/bitgo/trading/tradingAccount.d.ts +23 -33
  264. package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
  265. package/dist/src/bitgo/trading/tradingAccount.js +58 -97
  266. package/dist/src/bitgo/tss/bitgoPubKeys.d.ts +38 -0
  267. package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
  268. package/dist/src/bitgo/tss/bitgoPubKeys.js +72 -0
  269. package/dist/src/bitgo/tss/common.d.ts +51 -7
  270. package/dist/src/bitgo/tss/common.d.ts.map +1 -1
  271. package/dist/src/bitgo/tss/common.js +133 -23
  272. package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +13 -8
  273. package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
  274. package/dist/src/bitgo/tss/ecdsa/ecdsa.js +93 -74
  275. package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts +15 -0
  276. package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
  277. package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.js +167 -0
  278. package/dist/src/bitgo/tss/ecdsa/index.d.ts +1 -0
  279. package/dist/src/bitgo/tss/ecdsa/index.d.ts.map +1 -1
  280. package/dist/src/bitgo/tss/ecdsa/index.js +25 -10
  281. package/dist/src/bitgo/tss/ecdsa/types.d.ts +27 -27
  282. package/dist/src/bitgo/tss/ecdsa/types.d.ts.map +1 -1
  283. package/dist/src/bitgo/tss/ecdsa/types.js +3 -3
  284. package/dist/src/bitgo/tss/eddsa/eddsa.d.ts +19 -9
  285. package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
  286. package/dist/src/bitgo/tss/eddsa/eddsa.js +56 -38
  287. package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts +37 -0
  288. package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
  289. package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.js +95 -0
  290. package/dist/src/bitgo/tss/eddsa/index.js +23 -9
  291. package/dist/src/bitgo/tss/eddsa/types.d.ts +4 -4
  292. package/dist/src/bitgo/tss/eddsa/types.d.ts.map +1 -1
  293. package/dist/src/bitgo/tss/index.d.ts +3 -2
  294. package/dist/src/bitgo/tss/index.d.ts.map +1 -1
  295. package/dist/src/bitgo/tss/index.js +26 -10
  296. package/dist/src/bitgo/tss/types.d.ts +19 -0
  297. package/dist/src/bitgo/tss/types.d.ts.map +1 -1
  298. package/dist/src/bitgo/tss/types.js +2 -2
  299. package/dist/src/bitgo/types.d.ts +3 -3
  300. package/dist/src/bitgo/types.d.ts.map +1 -1
  301. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts +12 -0
  302. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
  303. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +67 -10
  304. package/dist/src/bitgo/utils/codecProps.d.ts +7 -0
  305. package/dist/src/bitgo/utils/codecProps.d.ts.map +1 -0
  306. package/dist/src/bitgo/utils/codecProps.js +54 -0
  307. package/dist/src/bitgo/utils/codecs.d.ts +11 -0
  308. package/dist/src/bitgo/utils/codecs.d.ts.map +1 -0
  309. package/dist/src/bitgo/utils/codecs.js +59 -0
  310. package/dist/src/bitgo/utils/decode.d.ts.map +1 -1
  311. package/dist/src/bitgo/utils/decode.js +30 -16
  312. package/dist/src/bitgo/utils/index.d.ts +4 -2
  313. package/dist/src/bitgo/utils/index.d.ts.map +1 -1
  314. package/dist/src/bitgo/utils/index.js +27 -11
  315. package/dist/src/bitgo/utils/messageTypes.d.ts +38 -0
  316. package/dist/src/bitgo/utils/messageTypes.d.ts.map +1 -0
  317. package/dist/src/bitgo/utils/messageTypes.js +15 -0
  318. package/dist/src/bitgo/utils/mpcUtils.d.ts +4 -4
  319. package/dist/src/bitgo/utils/mpcUtils.d.ts.map +1 -1
  320. package/dist/src/bitgo/utils/mpcUtils.js +109 -14
  321. package/dist/src/bitgo/utils/notEmpty.d.ts +2 -0
  322. package/dist/src/bitgo/utils/notEmpty.d.ts.map +1 -0
  323. package/dist/src/bitgo/utils/notEmpty.js +7 -0
  324. package/dist/src/bitgo/utils/opengpgUtils.d.ts +12 -9
  325. package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
  326. package/dist/src/bitgo/utils/opengpgUtils.js +83 -73
  327. package/dist/src/bitgo/utils/postWithCodec.d.ts +18 -0
  328. package/dist/src/bitgo/utils/postWithCodec.d.ts.map +1 -0
  329. package/dist/src/bitgo/utils/postWithCodec.js +25 -0
  330. package/dist/src/bitgo/utils/promise-utils.d.ts +1 -1
  331. package/dist/src/bitgo/utils/promise-utils.d.ts.map +1 -1
  332. package/dist/src/bitgo/utils/promise-utils.js +2 -3
  333. package/dist/src/bitgo/utils/transactionUtils.d.ts +9 -0
  334. package/dist/src/bitgo/utils/transactionUtils.d.ts.map +1 -0
  335. package/dist/src/bitgo/utils/transactionUtils.js +29 -0
  336. package/dist/src/bitgo/utils/triple.d.ts +1 -1
  337. package/dist/src/bitgo/utils/triple.d.ts.map +1 -1
  338. package/dist/src/bitgo/utils/triple.js +2 -3
  339. package/dist/src/bitgo/utils/tss/addressVerification.d.ts +37 -0
  340. package/dist/src/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
  341. package/dist/src/bitgo/utils/tss/addressVerification.js +82 -0
  342. package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts +148 -28
  343. package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
  344. package/dist/src/bitgo/utils/tss/baseTSSUtils.js +338 -43
  345. package/dist/src/bitgo/utils/tss/baseTypes.d.ts +526 -38
  346. package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
  347. package/dist/src/bitgo/utils/tss/baseTypes.js +60 -10
  348. package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts +23 -0
  349. package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts.map +1 -0
  350. package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.js +157 -0
  351. package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts +28 -0
  352. package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts.map +1 -0
  353. package/dist/src/bitgo/utils/tss/ecdsa/base.js +53 -0
  354. package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts +60 -50
  355. package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
  356. package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +364 -320
  357. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +203 -0
  358. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
  359. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1075 -0
  360. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +8 -0
  361. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
  362. package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +13 -0
  363. package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +4 -0
  364. package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
  365. package/dist/src/bitgo/utils/tss/ecdsa/index.js +10 -2
  366. package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts +15 -9
  367. package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts.map +1 -1
  368. package/dist/src/bitgo/utils/tss/ecdsa/types.js +1 -1
  369. package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts +107 -0
  370. package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts.map +1 -0
  371. package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.js +55 -0
  372. package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts +21 -0
  373. package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts.map +1 -0
  374. package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.js +118 -0
  375. package/dist/src/bitgo/utils/tss/eddsa/base.d.ts +18 -0
  376. package/dist/src/bitgo/utils/tss/eddsa/base.d.ts.map +1 -0
  377. package/dist/src/bitgo/utils/tss/eddsa/base.js +64 -0
  378. package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts +44 -14
  379. package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
  380. package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +262 -103
  381. package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +88 -0
  382. package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
  383. package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +565 -0
  384. package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +6 -0
  385. package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
  386. package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +13 -0
  387. package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +4 -0
  388. package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -1
  389. package/dist/src/bitgo/utils/tss/eddsa/index.js +29 -8
  390. package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +7 -7
  391. package/dist/src/bitgo/utils/tss/eddsa/types.d.ts.map +1 -1
  392. package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts +40 -0
  393. package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts.map +1 -0
  394. package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.js +44 -0
  395. package/dist/src/bitgo/utils/tss/index.d.ts +1 -0
  396. package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
  397. package/dist/src/bitgo/utils/tss/index.js +24 -9
  398. package/dist/src/bitgo/utils/txRequest.d.ts +10 -0
  399. package/dist/src/bitgo/utils/txRequest.d.ts.map +1 -0
  400. package/dist/src/bitgo/utils/txRequest.js +49 -0
  401. package/dist/src/bitgo/utils/util.js +24 -10
  402. package/dist/src/bitgo/utils/wallet.d.ts +7 -0
  403. package/dist/src/bitgo/utils/wallet.d.ts.map +1 -0
  404. package/dist/src/bitgo/utils/wallet.js +48 -0
  405. package/dist/src/bitgo/wallet/BuildParams.d.ts +161 -0
  406. package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -0
  407. package/dist/src/bitgo/wallet/BuildParams.js +168 -0
  408. package/dist/src/bitgo/wallet/iWallet.d.ts +490 -21
  409. package/dist/src/bitgo/wallet/iWallet.d.ts.map +1 -1
  410. package/dist/src/bitgo/wallet/iWallet.js +1 -1
  411. package/dist/src/bitgo/wallet/iWallets.d.ts +146 -19
  412. package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
  413. package/dist/src/bitgo/wallet/iWallets.js +63 -3
  414. package/dist/src/bitgo/wallet/index.js +6 -2
  415. package/dist/src/bitgo/wallet/wallet.d.ts +391 -26
  416. package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
  417. package/dist/src/bitgo/wallet/wallet.js +2090 -438
  418. package/dist/src/bitgo/wallet/wallets.d.ts +103 -9
  419. package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
  420. package/dist/src/bitgo/wallet/wallets.js +1049 -198
  421. package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts +12 -0
  422. package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts.map +1 -0
  423. package/dist/src/bitgo/walletUtil/iMessageProvider.js +3 -0
  424. package/dist/src/bitgo/walletUtil/index.d.ts +3 -0
  425. package/dist/src/bitgo/walletUtil/index.d.ts.map +1 -0
  426. package/dist/src/bitgo/walletUtil/index.js +19 -0
  427. package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts +22 -0
  428. package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts.map +1 -0
  429. package/dist/src/bitgo/walletUtil/midnightMessageProvider.js +95 -0
  430. package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts +9 -0
  431. package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts.map +1 -0
  432. package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.js +72 -0
  433. package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts +15 -0
  434. package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts.map +1 -0
  435. package/dist/src/bitgo/walletUtil/utxoMessageProof.js +40 -0
  436. package/dist/src/bitgo/webhook/index.js +6 -2
  437. package/dist/src/bitgo/webhook/webhooks.js +23 -9
  438. package/dist/src/coins/fiat.d.ts +45 -0
  439. package/dist/src/coins/fiat.d.ts.map +1 -0
  440. package/dist/src/coins/fiat.js +94 -0
  441. package/dist/src/coins/index.d.ts +1 -6
  442. package/dist/src/coins/index.d.ts.map +1 -1
  443. package/dist/src/coins/index.js +7 -8
  444. package/dist/src/coins/ofc.d.ts +17 -2
  445. package/dist/src/coins/ofc.d.ts.map +1 -1
  446. package/dist/src/coins/ofc.js +13 -2
  447. package/dist/src/coins/ofcToken.d.ts +15 -4
  448. package/dist/src/coins/ofcToken.d.ts.map +1 -1
  449. package/dist/src/coins/ofcToken.js +43 -5
  450. package/dist/src/coins/susd.d.ts +3 -2
  451. package/dist/src/coins/susd.d.ts.map +1 -1
  452. package/dist/src/coins/susd.js +5 -1
  453. package/dist/src/common.js +27 -13
  454. package/dist/src/index.d.ts +10 -1
  455. package/dist/src/index.d.ts.map +1 -1
  456. package/dist/src/index.js +34 -11
  457. package/dist/src/lightning.d.ts +20 -0
  458. package/dist/src/lightning.d.ts.map +1 -0
  459. package/dist/src/lightning.js +13 -0
  460. package/dist/src/units.js +5 -6
  461. package/dist/test/node.utils.d.ts +2 -0
  462. package/dist/test/node.utils.d.ts.map +1 -0
  463. package/dist/test/node.utils.js +5 -0
  464. package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts +2 -0
  465. package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
  466. package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.js +207 -0
  467. package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +2 -0
  468. package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
  469. package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.js +174 -0
  470. package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +2 -0
  471. package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
  472. package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +108 -0
  473. package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts +46 -0
  474. package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts.map +1 -0
  475. package/dist/test/unit/account-lib/baseCoin/messages/fixtures.js +69 -0
  476. package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -0
  477. package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
  478. package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.js +279 -0
  479. package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts +3 -0
  480. package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts.map +1 -0
  481. package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.js +24 -0
  482. package/dist/test/unit/account-lib/mpc/util.d.ts +2 -0
  483. package/dist/test/unit/account-lib/mpc/util.d.ts.map +1 -0
  484. package/dist/test/unit/account-lib/mpc/util.js +53 -0
  485. package/dist/test/unit/bitgo/environment.d.ts +2 -0
  486. package/dist/test/unit/bitgo/environment.d.ts.map +1 -0
  487. package/dist/test/unit/bitgo/environment.js +38 -0
  488. package/dist/test/unit/bitgo/errors.d.ts +2 -0
  489. package/dist/test/unit/bitgo/errors.d.ts.map +1 -0
  490. package/dist/test/unit/bitgo/errors.js +262 -0
  491. package/dist/test/unit/bitgo/recovery/initiate.d.ts +2 -0
  492. package/dist/test/unit/bitgo/recovery/initiate.d.ts.map +1 -0
  493. package/dist/test/unit/bitgo/recovery/initiate.js +230 -0
  494. package/dist/test/unit/bitgo/trading/network/encrypt.d.ts +2 -0
  495. package/dist/test/unit/bitgo/trading/network/encrypt.d.ts.map +1 -0
  496. package/dist/test/unit/bitgo/trading/network/encrypt.js +71 -0
  497. package/dist/test/unit/bitgo/trading/tradingAccount.d.ts +2 -0
  498. package/dist/test/unit/bitgo/trading/tradingAccount.d.ts.map +1 -0
  499. package/dist/test/unit/bitgo/trading/tradingAccount.js +192 -0
  500. package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts +2 -0
  501. package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -0
  502. package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +45 -0
  503. package/dist/test/unit/bitgo/utils/messageTypes.d.ts +2 -0
  504. package/dist/test/unit/bitgo/utils/messageTypes.d.ts.map +1 -0
  505. package/dist/test/unit/bitgo/utils/messageTypes.js +64 -0
  506. package/dist/test/unit/bitgo/utils/notEmpty.d.ts +2 -0
  507. package/dist/test/unit/bitgo/utils/notEmpty.d.ts.map +1 -0
  508. package/dist/test/unit/bitgo/utils/notEmpty.js +15 -0
  509. package/dist/test/unit/bitgo/utils/postWithCodec.d.ts +2 -0
  510. package/dist/test/unit/bitgo/utils/postWithCodec.d.ts.map +1 -0
  511. package/dist/test/unit/bitgo/utils/postWithCodec.js +73 -0
  512. package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts +2 -0
  513. package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
  514. package/dist/test/unit/bitgo/utils/tss/addressVerification.js +203 -0
  515. package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts +2 -0
  516. package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -0
  517. package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.js +316 -0
  518. package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +2 -0
  519. package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
  520. package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +826 -0
  521. package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts +5 -0
  522. package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts.map +1 -0
  523. package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.js +36 -0
  524. package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +2 -0
  525. package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
  526. package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.js +1185 -0
  527. package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts +2 -0
  528. package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts.map +1 -0
  529. package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.js +311 -0
  530. package/dist/test/unit/bitgo/utils/txRequest.d.ts +2 -0
  531. package/dist/test/unit/bitgo/utils/txRequest.d.ts.map +1 -0
  532. package/dist/test/unit/bitgo/utils/txRequest.js +179 -0
  533. package/dist/test/unit/bitgo/wallet/BuildParams.d.ts +2 -0
  534. package/dist/test/unit/bitgo/wallet/BuildParams.d.ts.map +1 -0
  535. package/dist/test/unit/bitgo/wallet/BuildParams.js +97 -0
  536. package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts +2 -0
  537. package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts.map +1 -0
  538. package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +58 -0
  539. package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts +2 -0
  540. package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts.map +1 -0
  541. package/dist/test/unit/bitgo/wallet/getAccountResources.js +133 -0
  542. package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts +2 -0
  543. package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts.map +1 -0
  544. package/dist/test/unit/bitgo/wallet/getResourceDelegations.js +118 -0
  545. package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts +2 -0
  546. package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts.map +1 -0
  547. package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.js +185 -0
  548. package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts +3 -0
  549. package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts.map +1 -0
  550. package/dist/test/unit/bitgo/wallet/resourceManagement.js +441 -0
  551. package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts +2 -0
  552. package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts.map +1 -0
  553. package/dist/test/unit/bitgo/wallet/tokenApproval.js +135 -0
  554. package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts +2 -0
  555. package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts.map +1 -0
  556. package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.js +181 -0
  557. package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts +2 -0
  558. package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts.map +1 -0
  559. package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.js +43 -0
  560. package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts +2 -0
  561. package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts.map +1 -0
  562. package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.js +320 -0
  563. package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts +2 -0
  564. package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts.map +1 -0
  565. package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.js +216 -0
  566. package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts +2 -0
  567. package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts.map +1 -0
  568. package/dist/test/unit/bitgo/wallet/walletsWebauthn.js +200 -0
  569. package/dist/test/unit/coins/ofc.d.ts +2 -0
  570. package/dist/test/unit/coins/ofc.d.ts.map +1 -0
  571. package/dist/test/unit/coins/ofc.js +124 -0
  572. package/dist/test/unit/lightning.d.ts +2 -0
  573. package/dist/test/unit/lightning.d.ts.map +1 -0
  574. package/dist/test/unit/lightning.js +23 -0
  575. package/dist/test/unit/units.d.ts +2 -0
  576. package/dist/test/unit/units.d.ts.map +1 -0
  577. package/dist/test/unit/units.js +98 -0
  578. package/dist/tsconfig.tsbuildinfo +1 -8339
  579. package/package.json +29 -23
  580. package/.eslintignore +0 -5
  581. package/CHANGELOG.md +0 -662
  582. package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts +0 -77
  583. package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts.map +0 -1
  584. package/dist/src/account-lib/baseCoin/blsKeyPair.js +0 -209
  585. package/dist/src/account-lib/mpc/hdTree.d.ts +0 -31
  586. package/dist/src/account-lib/mpc/hdTree.d.ts.map +0 -1
  587. package/dist/src/account-lib/mpc/hdTree.js +0 -141
  588. package/dist/src/account-lib/mpc/types.d.ts +0 -5
  589. package/dist/src/account-lib/mpc/types.d.ts.map +0 -1
  590. package/dist/src/account-lib/mpc/types.js +0 -3
  591. package/dist/src/bitgo/lightning/iLightning.d.ts +0 -186
  592. package/dist/src/bitgo/lightning/iLightning.d.ts.map +0 -1
  593. package/dist/src/bitgo/lightning/iLightning.js +0 -106
  594. package/dist/src/bitgo/lightning/index.d.ts +0 -5
  595. package/dist/src/bitgo/lightning/index.d.ts.map +0 -1
  596. package/dist/src/bitgo/lightning/index.js +0 -17
  597. package/dist/src/bitgo/lightning/lightning.d.ts +0 -25
  598. package/dist/src/bitgo/lightning/lightning.d.ts.map +0 -1
  599. package/dist/src/bitgo/lightning/lightning.js +0 -111
  600. package/dist/src/bitgo/lightning/lightningUtils.d.ts +0 -46
  601. package/dist/src/bitgo/lightning/lightningUtils.d.ts.map +0 -1
  602. package/dist/src/bitgo/lightning/lightningUtils.js +0 -133
  603. package/dist/src/bitgo/lightning/lnurlCodec.d.ts +0 -3
  604. package/dist/src/bitgo/lightning/lnurlCodec.d.ts.map +0 -1
  605. package/dist/src/bitgo/lightning/lnurlCodec.js +0 -28
  606. package/dist/src/bitgo/trading/affirmation.d.ts +0 -35
  607. package/dist/src/bitgo/trading/affirmation.d.ts.map +0 -1
  608. package/dist/src/bitgo/trading/affirmation.js +0 -53
  609. package/dist/src/bitgo/trading/affirmations.d.ts +0 -23
  610. package/dist/src/bitgo/trading/affirmations.d.ts.map +0 -1
  611. package/dist/src/bitgo/trading/affirmations.js +0 -45
  612. package/dist/src/bitgo/trading/iAffirmation.d.ts +0 -15
  613. package/dist/src/bitgo/trading/iAffirmation.d.ts.map +0 -1
  614. package/dist/src/bitgo/trading/iAffirmation.js +0 -13
  615. package/dist/src/bitgo/trading/iAffirmations.d.ts +0 -10
  616. package/dist/src/bitgo/trading/iAffirmations.d.ts.map +0 -1
  617. package/dist/src/bitgo/trading/iAffirmations.js +0 -3
  618. package/dist/src/bitgo/trading/iSettlement.d.ts +0 -25
  619. package/dist/src/bitgo/trading/iSettlement.d.ts.map +0 -1
  620. package/dist/src/bitgo/trading/iSettlement.js +0 -17
  621. package/dist/src/bitgo/trading/iSettlements.d.ts +0 -19
  622. package/dist/src/bitgo/trading/iSettlements.d.ts.map +0 -1
  623. package/dist/src/bitgo/trading/iSettlements.js +0 -3
  624. package/dist/src/bitgo/trading/iTradingPartner.d.ts +0 -14
  625. package/dist/src/bitgo/trading/iTradingPartner.d.ts.map +0 -1
  626. package/dist/src/bitgo/trading/iTradingPartner.js +0 -17
  627. package/dist/src/bitgo/trading/iTradingPartners.d.ts +0 -15
  628. package/dist/src/bitgo/trading/iTradingPartners.d.ts.map +0 -1
  629. package/dist/src/bitgo/trading/iTradingPartners.js +0 -9
  630. package/dist/src/bitgo/trading/lock.d.ts +0 -16
  631. package/dist/src/bitgo/trading/lock.d.ts.map +0 -1
  632. package/dist/src/bitgo/trading/lock.js +0 -12
  633. package/dist/src/bitgo/trading/payload.d.ts +0 -22
  634. package/dist/src/bitgo/trading/payload.d.ts.map +0 -1
  635. package/dist/src/bitgo/trading/payload.js +0 -3
  636. package/dist/src/bitgo/trading/settlement.d.ts +0 -16
  637. package/dist/src/bitgo/trading/settlement.d.ts.map +0 -1
  638. package/dist/src/bitgo/trading/settlement.js +0 -21
  639. package/dist/src/bitgo/trading/settlements.d.ts +0 -32
  640. package/dist/src/bitgo/trading/settlements.d.ts.map +0 -1
  641. package/dist/src/bitgo/trading/settlements.js +0 -61
  642. package/dist/src/bitgo/trading/trade.d.ts +0 -29
  643. package/dist/src/bitgo/trading/trade.d.ts.map +0 -1
  644. package/dist/src/bitgo/trading/trade.js +0 -11
  645. package/dist/src/bitgo/trading/tradingPartner.d.ts +0 -26
  646. package/dist/src/bitgo/trading/tradingPartner.d.ts.map +0 -1
  647. package/dist/src/bitgo/trading/tradingPartner.js +0 -31
  648. package/dist/src/bitgo/trading/tradingPartners.d.ts +0 -24
  649. package/dist/src/bitgo/trading/tradingPartners.d.ts.map +0 -1
  650. package/dist/src/bitgo/trading/tradingPartners.js +0 -32
  651. package/dist/src/bitgo/utils/blsUtils.d.ts +0 -52
  652. package/dist/src/bitgo/utils/blsUtils.d.ts.map +0 -1
  653. package/dist/src/bitgo/utils/blsUtils.js +0 -237
  654. package/dist/src/bitgo/utils/iBlsUtils.d.ts +0 -14
  655. package/dist/src/bitgo/utils/iBlsUtils.d.ts.map +0 -1
  656. package/dist/src/bitgo/utils/iBlsUtils.js +0 -3
  657. package/dist/src/coins/fiateur.d.ts +0 -31
  658. package/dist/src/coins/fiateur.d.ts.map +0 -1
  659. package/dist/src/coins/fiateur.js +0 -57
  660. package/dist/src/coins/fiatgbp.d.ts +0 -31
  661. package/dist/src/coins/fiatgbp.d.ts.map +0 -1
  662. package/dist/src/coins/fiatgbp.js +0 -57
  663. package/dist/src/coins/fiatusd.d.ts +0 -31
  664. package/dist/src/coins/fiatusd.d.ts.map +0 -1
  665. package/dist/src/coins/fiatusd.js +0 -57
  666. package/dist/src/coins/tfiateur.d.ts +0 -11
  667. package/dist/src/coins/tfiateur.d.ts.map +0 -1
  668. package/dist/src/coins/tfiateur.js +0 -17
  669. package/dist/src/coins/tfiatgbp.d.ts +0 -11
  670. package/dist/src/coins/tfiatgbp.d.ts.map +0 -1
  671. package/dist/src/coins/tfiatgbp.js +0 -17
  672. package/dist/src/coins/tfiatusd.d.ts +0 -11
  673. package/dist/src/coins/tfiatusd.d.ts.map +0 -1
  674. package/dist/src/coins/tfiatusd.js +0 -17
  675. package/dist/src/openssl/index.d.ts +0 -2
  676. package/dist/src/openssl/index.d.ts.map +0 -1
  677. package/dist/src/openssl/openssl.d.ts +0 -12
  678. package/dist/src/openssl/openssl.d.ts.map +0 -1
  679. package/dist/src/openssl/openssl.js +0 -48
  680. package/dist/src/openssl/opensslbytes.d.ts +0 -4
  681. package/dist/src/openssl/opensslbytes.d.ts.map +0 -1
  682. package/dist/src/openssl/opensslbytes.js +0 -20
@@ -1,11 +1,19 @@
1
- import { IBaseCoin, SignedMessage, SignedTransaction } from '../baseCoin';
1
+ /**
2
+ * @prettier
3
+ */
4
+ import { type AddressQueryResult } from '@bitgo/public-types';
5
+ import { IRequestTracer } from '../../api';
6
+ import { IAddressBook } from '../address-book';
7
+ import { IBaseCoin, NFTTransferOptions, SignedMessage, SignedTransaction } from '../baseCoin';
2
8
  import { BitGoBase } from '../bitgoBase';
9
+ import { SubmitTransactionResponse } from '../inscriptionBuilder';
10
+ import { KeychainWithEncryptedPrv } from '../keychain';
11
+ import { CreateLightningInvoiceParams, LightningInvoiceResponse } from '../../lightning';
3
12
  import { IPendingApproval } from '../pendingApproval';
4
- import { TradingAccount } from '../trading/tradingAccount';
13
+ import { GoStakingWallet, StakingWallet } from '../staking';
14
+ import { TradingAccount } from '../trading';
5
15
  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';
16
+ import { AccelerateTransactionOptions, AddressesByBalanceOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildResourceDelegationTransactionOptions, BuildResourceManagementTransactionResult, BuildResourceUndelegationTransactionOptions, ResourceManagementSendResult, BuildTokenEnablementOptions, BulkCreateShareOption, BulkWalletShareKeychain, BulkWalletShareOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreateBulkWalletShareListResponse, CreatePolicyRuleOptions, CreateShareOptions, CrossChainUTXO, DecryptedKeychainData, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwarderParams, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, type IWallet, ManageUnspentReservationOptions, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, NftBalance, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendNFTOptions, SendNFTResult, SendOptions, SharedKeyChain, ShareWalletOptions, SignAndSendTxRequestOptions, SimulateWebhookOptions, SubmitTransactionOptions, SubWalletType, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, UpdateBuildDefaultOptions, UpdateWalletOptions, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions, WalletType, BuildTokenApprovalResponse, WalletInitResult, GetAccountResourcesOptions, GetAccountResourcesResponse, GetResourceDelegationsOptions, GetResourceDelegationsResponse } from './iWallet';
9
17
  export declare enum ManageUnspentsOptions {
10
18
  BUILD_ONLY = 0,
11
19
  BUILD_SIGN_SEND = 1
@@ -34,6 +42,7 @@ export declare class Wallet implements IWallet {
34
42
  * Get the current balance of this wallet
35
43
  */
36
44
  balance(): number;
45
+ /** @deprecated use codec instead: t.exact(BuildParams).encode(v) */
37
46
  prebuildWhitelistedParams(): string[];
38
47
  /**
39
48
  * This is a strict sub-set of prebuildWhitelistedParams
@@ -69,10 +78,19 @@ export declare class Wallet implements IWallet {
69
78
  * Get the coin identifier for the type of coin this wallet holds
70
79
  */
71
80
  coin(): string;
81
+ type(): WalletType;
82
+ multisigType(): 'onchain' | 'tss';
83
+ multisigTypeVersion(): 'MPCv2' | undefined;
84
+ subType(): SubWalletType | undefined;
72
85
  /**
73
86
  * Get the label (name) for this wallet
74
87
  */
75
88
  label(): string;
89
+ flags(): {
90
+ name: string;
91
+ value: string;
92
+ }[];
93
+ flag(name: string): string | undefined;
76
94
  /**
77
95
  * Get the public object ids for the keychains on this wallet.
78
96
  */
@@ -80,7 +98,7 @@ export declare class Wallet implements IWallet {
80
98
  /**
81
99
  * Get a receive address for this wallet
82
100
  */
83
- receiveAddress(): string;
101
+ receiveAddress(): string | undefined;
84
102
  /**
85
103
  * Get the wallet id of the wallet that this wallet was migrated from.
86
104
  *
@@ -113,6 +131,26 @@ export declare class Wallet implements IWallet {
113
131
  * @returns {*}
114
132
  */
115
133
  transactions(params?: PaginationOptions): Promise<any>;
134
+ /**
135
+ * Return a list of nft tokens for this wallet. Will always return undefined if the wallet
136
+ * was not initialized with the allTokens flag.
137
+ *
138
+ * @returns {NftBalance[] | undefined}
139
+ */
140
+ nftBalances(): NftBalance[] | undefined;
141
+ /**
142
+ * Return a list of unsupported nft tokens for this wallet. Will always return undefined if the wallet
143
+ * was not initialized with the allTokens flag.
144
+ *
145
+ * @returns {NftBalance[] | undefined}
146
+ */
147
+ unsupportedNftBalances(): NftBalance[] | undefined;
148
+ /**
149
+ * Returns a list of the wallets nft & unsupported nfts.
150
+ *
151
+ * @returns {NftBalance[]}
152
+ */
153
+ getNftBalances(): Promise<NftBalance[]>;
116
154
  /**
117
155
  * List the transactions for a given wallet
118
156
  * @param params
@@ -187,8 +225,25 @@ export declare class Wallet implements IWallet {
187
225
  * - maximum number of unspents you want to use in the transaction
188
226
  * Output parameters:
189
227
  * @param {Number} params.numUnspentsToMake - the number of new unspents to make
228
+ * @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
229
+ * with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
190
230
  */
191
231
  private manageUnspents;
232
+ /**
233
+ * Manage the unspent reservations on the wallet
234
+ *
235
+ * @param params.create - create a new reservation
236
+ * @param params.modify - modify an existing reservation
237
+ * @param params.delete - delete an existing reservation
238
+ */
239
+ manageUnspentReservations(params: ManageUnspentReservationOptions): Promise<{
240
+ unspents: {
241
+ id: string;
242
+ walletId: string;
243
+ expireTime: string;
244
+ userId?: string;
245
+ }[];
246
+ }>;
192
247
  /**
193
248
  * Consolidate unspents on a wallet
194
249
  *
@@ -207,9 +262,11 @@ export declare class Wallet implements IWallet {
207
262
  * @param {Number} params.limit for routeName === 'consolidate'
208
263
  * params.maxNumInputsToUse for routeName === 'fanout'
209
264
  * - maximum number of unspents you want to use in the transaction
210
- * @param {Number} params.numUnspentsToMake - the number of new unspents to make
265
+ * @param {Number} params.numUnspentsToMake - the number of new unspents to make. It is not applicable for if bulk consolidate.
266
+ * @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
267
+ * with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
211
268
  */
212
- consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<any>;
269
+ consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
213
270
  /**
214
271
  * Fanout unspents on a wallet
215
272
  *
@@ -226,8 +283,10 @@ export declare class Wallet implements IWallet {
226
283
  * @param {Number} params.maxFeeRate - The max limit for a fee rate in satoshis/kB
227
284
  * @param {Number} params.maxNumInputsToUse - the number of unspents you want to use in the transaction
228
285
  * @param {Number} params.numUnspentsToMake - the number of new unspents to make
286
+ *
287
+ * @param {ManageUnspentsOptions} option - flag to toggle build and send or build only
229
288
  */
230
- fanoutUnspents(params?: FanoutUnspentsOptions): Promise<any>;
289
+ fanoutUnspents(params?: FanoutUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
231
290
  /**
232
291
  * Set the token flush thresholds for the wallet. Updates the wallet.
233
292
  * Tokens will only be flushed from forwarder contracts if the balance is greater than the threshold defined here.
@@ -300,7 +359,13 @@ export declare class Wallet implements IWallet {
300
359
  * @param params
301
360
  * @returns {*}
302
361
  */
303
- addresses(params?: AddressesOptions): Promise<any>;
362
+ addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
363
+ /**
364
+ * List the addresses sorted by balance for a given wallet
365
+ * @param params
366
+ * @returns {*}
367
+ */
368
+ addressesByBalance(params: AddressesByBalanceOptions): Promise<any>;
304
369
  /**
305
370
  * Get a single wallet address by its id
306
371
  * @param params
@@ -334,6 +399,20 @@ export declare class Wallet implements IWallet {
334
399
  * @returns {*}
335
400
  */
336
401
  updateAddress(params?: UpdateAddressOptions): Promise<any>;
402
+ /**
403
+ * Get account resources for the given addresses
404
+ * @param params - options object containing addresses and optional destinationAddress
405
+ * @returns {Promise<GetAccountResourcesResponse>} - response from WP API
406
+ */
407
+ getAccountResources(params: GetAccountResourcesOptions): Promise<GetAccountResourcesResponse>;
408
+ /**
409
+ * Get resource delegations for this wallet
410
+ * @param params - optional filters: type, resource, limit, nextBatchPrevId
411
+ * @returns {Promise<GetResourceDelegationsResponse>} - response from WP API
412
+ */
413
+ getResourceDelegations(params?: GetResourceDelegationsOptions): Promise<GetResourceDelegationsResponse>;
414
+ updateWalletBuildDefaults(params: UpdateBuildDefaultOptions): Promise<unknown>;
415
+ updateWallet(params: UpdateWalletOptions): Promise<unknown>;
337
416
  /**
338
417
  * List webhooks on this wallet
339
418
  * @param params
@@ -359,15 +438,12 @@ export declare class Wallet implements IWallet {
359
438
  */
360
439
  removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
361
440
  /**
362
- * Gets the user key chain for this wallet
441
+ * Gets the user keychain for this wallet
363
442
  *
364
- * The user key chain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
443
+ * The user keychain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
365
444
  * Useful when trying to get the users' keychain from the server before decrypting to sign a transaction.
366
- * @param params
367
445
  */
368
- getEncryptedUserKeychain(params?: Record<string, never>): Promise<{
369
- encryptedPrv: string;
370
- }>;
446
+ getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
371
447
  /**
372
448
  * Gets the unencrypted private key for this wallet (be careful!)
373
449
  * Requires wallet passphrase
@@ -375,11 +451,81 @@ export declare class Wallet implements IWallet {
375
451
  * @param params
376
452
  */
377
453
  getPrv(params?: GetPrvOptions): Promise<any>;
454
+ private isMultiUserKeyWallet;
378
455
  /**
379
456
  * Send an encrypted wallet share to BitGo.
380
457
  * @param params
381
458
  */
382
459
  createShare(params?: CreateShareOptions): Promise<any>;
460
+ /**
461
+ * Shares a wallet with multiple users by creating bulk wallet shares.
462
+ *
463
+ * @async
464
+ * @param {BulkWalletShareOptions} params - The options for sharing wallets in bulk.
465
+ * @param {Array<ShareOption>} params.shareOptions - An array of share option objects containing user and permissions information.
466
+ * @param {Object} [params.shareOptions[].keychain] - The keychain object used to share the wallet.
467
+ * @param {string} [params.shareOptions[].keychain.toPubKey] - The recipient's public key.
468
+ * @param {string} [params.shareOptions[].keychain.path] - The derivation path of the keychain.
469
+ * @param {string} params.shareOptions[].user - The user to share the wallet with.
470
+ * @param {string} params.shareOptions[].permissions - The permissions granted to the user.
471
+ * @param {string} [params.walletPassphrase] - The wallet passphrase used to decrypt the keychain.
472
+ * @throws {Error} If `shareOptions` is empty, or if required keychain parameters (`toPubKey` and `path`) are missing when needed.
473
+ * @throws {Error} If unable to decrypt the user keychain.
474
+ * @returns {Promise<CreateBulkWalletShareListResponse>} A promise that resolves with the response of the bulk wallet share creation.
475
+ */
476
+ createBulkWalletShare(params: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
477
+ /**
478
+ * Creates bulk wallet share entries for specified share options.
479
+ * Filters out share options that do not contain valid keychain information or have missing keychain fields.
480
+ * If all share options are invalid or empty, it throws an error.
481
+ * Sends a POST request to create the wallet shares for valid share options.
482
+ *
483
+ * @async
484
+ * @param {BulkCreateShareOption[]} [params=[]] - The array of share options to process.
485
+ * Keychain entries must include the following fields: `pub`, `encryptedPrv`, `fromPubKey`, `toPubKey`, and `path`.
486
+ * @returns {Promise<CreateBulkWalletShareListResponse>} A promise resolving to the result of the wallet shares creation.
487
+ * @throws {Error} Throws an error if no valid share options are provided.
488
+ */
489
+ createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
490
+ /**
491
+ * Gets keychain with encrypted private key to be shared for wallet sharing.
492
+ */
493
+ private getEncryptedWalletKeychainForWalletSharing;
494
+ /**
495
+ * Fetches and decrypts the wallet keychain for sharing.
496
+ * This method fetches the keychain once and decrypts it, returning the decrypted
497
+ * private key and public key info needed for sharing with multiple users.
498
+ *
499
+ * @param walletPassphrase - The passphrase to decrypt the keychain
500
+ * @returns Object containing decrypted prv and pub, or undefined for cold wallets
501
+ */
502
+ getDecryptedKeychainForSharing(walletPassphrase: string | undefined): Promise<DecryptedKeychainData | undefined>;
503
+ /**
504
+ * TODO: Deprecate this function in favour of encryptPrvForUserAsync when v2 encryption is the default.
505
+ * Encrypts a decrypted private key for sharing with a specific user.
506
+ * This is the pure encryption step - no API calls, no decryption.
507
+ *
508
+ * @param decryptedPrv - The already-decrypted private key
509
+ * @param pub - The wallet's public key
510
+ * @param userPubkey - The recipient user's public key
511
+ * @param path - The key path
512
+ * @returns The encrypted keychain for the recipient with all required fields
513
+ */
514
+ encryptPrvForUser(decryptedPrv: string, pub: string, userPubkey: string, path: string): BulkWalletShareKeychain;
515
+ /**
516
+ * Async version of encryptPrvForUser with v2 encrypt/decrypt support.
517
+ */
518
+ encryptPrvForUserAsync(decryptedPrv: string, pub: string, userPubkey: string, path: string): Promise<BulkWalletShareKeychain>;
519
+ /**
520
+ * Prepares a keychain for sharing with another user.
521
+ * Fetches the wallet keychain, decrypts it, and encrypts it for the recipient.
522
+ *
523
+ * @param walletPassphrase - The passphrase to decrypt the keychain
524
+ * @param pubkey - The recipient's public key
525
+ * @param path - The key path
526
+ * @returns The encrypted keychain for the recipient
527
+ */
528
+ prepareSharedKeychain(walletPassphrase: string | undefined, pubkey: string, path: string): Promise<SharedKeyChain>;
383
529
  /**
384
530
  * Share this wallet with another BitGo user.
385
531
  * @param params
@@ -429,12 +575,25 @@ export declare class Wallet implements IWallet {
429
575
  * @returns {*}
430
576
  */
431
577
  prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
578
+ /**
579
+ * Gets the User Keychain and sign a TSS transaction
580
+ * @param txRequestId The transaction request id
581
+ * @param walletPassphrase The wallet passphrase
582
+ * @return Promise<SignedTransaction>
583
+ */
584
+ getUserKeyAndSignTssTransaction({ txRequestId, walletPassphrase, }: {
585
+ txRequestId: string;
586
+ walletPassphrase: string;
587
+ }): Promise<SignedTransaction>;
432
588
  /**
433
589
  * Sign a transaction
434
590
  * @param params
435
591
  * - txPrebuild
436
592
  * - [keychain / key] (object) or prv (string)
437
- * - walletPassphrase
593
+ * - walletPassphrase (optional ONLY for OFC wallets with userKeySigningRequired = false)
594
+ * - verifyTxParams (optional) - when provided, the transaction will be verified before signing
595
+ * - txParams: transaction parameters used for verification
596
+ * - verification: optional verification options
438
597
  * @return {*}
439
598
  */
440
599
  signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
@@ -451,28 +610,45 @@ export declare class Wallet implements IWallet {
451
610
  */
452
611
  signMessage(params?: WalletSignMessageOptions): Promise<SignedMessage>;
453
612
  /**
454
- * Get the user private key from either a derivation or an encrypted keychain
613
+ * Prepares and creates a sign message request for TSS wallets, that can be used later for signing.
614
+ *
615
+ * @param params - Parameters for creating the sign message request
616
+ * @returns Promise<TxRequest> - The created transaction request for signing a message
617
+ */
618
+ buildSignMessageRequest(params: WalletSignMessageOptions): Promise<TxRequest>;
619
+ /**
620
+ * Get the user private key from either a derivation or an encrypted keychain (sync, v1 only).
455
621
  * @param [params.keychain / params.key] (object) or params.prv (string)
456
622
  * @param params.walletPassphrase (string)
457
623
  */
458
624
  getUserPrv(params?: GetUserPrvOptions): string;
625
+ /**
626
+ * Async version of getUserPrv that supports both v1 (SJCL) and v2 (Argon2id) envelopes.
627
+ * @param [params.keychain / params.key] (object) or params.prv (string)
628
+ * @param params.walletPassphrase (string)
629
+ */
630
+ getUserPrvAsync(params?: GetUserPrvOptions): Promise<string>;
459
631
  /**
460
632
  * Get a transaction prebuild from BitGo, validate it, and then decrypt the user key and sign the transaction
461
633
  * @param params
462
634
  */
463
635
  prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
464
636
  /**
465
- * Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP)
637
+ * Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP) or Replace-By-Fee (RBF)
466
638
  * @param params
467
639
  */
468
640
  accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
641
+ private validateAccelerationParams;
642
+ private validateRbfParams;
643
+ private validateCpfpParams;
469
644
  /**
470
645
  * Submit a half-signed transaction to BitGo
471
646
  * @param params
472
647
  * - txHex: transaction hex to submit
473
648
  * - halfSigned: object containing transaction (txHex or txBase64) to submit
649
+ * @param reqId - request tracer request id
474
650
  */
475
- submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
651
+ submitTransaction(params?: SubmitTransactionOptions, reqId?: IRequestTracer): Promise<any>;
476
652
  /**
477
653
  * Send coins to a recipient
478
654
  * @param params
@@ -488,6 +664,19 @@ export declare class Wallet implements IWallet {
488
664
  * @returns {*}
489
665
  */
490
666
  send(params?: SendOptions): Promise<any>;
667
+ /**
668
+ * Send an ERC-721 NFT or ERC-1155 NFT(s).
669
+ *
670
+ * This function constructs the appropriate call data for an ERC-721/1155 token transfer,
671
+ * and calls the token contract with the data, and amount 0. This transaction will always produce
672
+ * a pending approval.
673
+ *
674
+ * @param sendOptions Options to specify how the transaction should be sent.
675
+ * @param sendNftOptions Options to specify the NFT(s) to be sent.
676
+ *
677
+ * @return A pending approval for the transaction.
678
+ */
679
+ sendNft(sendOptions: SendNFTOptions, sendNftOptions: NFTTransferOptions): Promise<SendNFTResult>;
491
680
  /**
492
681
  * Send money to multiple recipients
493
682
  * 1. Gets the user keychain by checking the wallet for a key which has an encrypted prv
@@ -606,15 +795,33 @@ export declare class Wallet implements IWallet {
606
795
  * Extract a JSON representable version of this wallet
607
796
  */
608
797
  toJSON(): WalletData;
798
+ /**
799
+ * Create a lightning invoice for this wallet.
800
+ * Supported for OFC (trading) and BTC wallets.
801
+ * Uses the same wallet-platform endpoint as lnbtc wallets.
802
+ * @param params.valueSat - Invoice value in satoshis - if not provided, a zero-value invoice is created
803
+ * @param params.memo - Optional memo/description
804
+ * @param params.expiry - Optional expiry in seconds (not supported for trading wallets)
805
+ */
806
+ createLightningInvoice(params: CreateLightningInvoiceParams): Promise<LightningInvoiceResponse>;
609
807
  /**
610
808
  * Create a trading account from this wallet
611
809
  */
612
810
  toTradingAccount(): TradingAccount;
811
+ /**
812
+ * Get the address book for this wallet
813
+ */
814
+ toAddressBook(): IAddressBook;
613
815
  /**
614
816
  * Create a staking wallet from this wallet
615
817
  */
616
818
  toStakingWallet(): StakingWallet;
617
819
  /**
820
+ * Create a go staking wallet from this wallet
821
+ */
822
+ toGoStakingWallet(): GoStakingWallet;
823
+ /**
824
+ * TODO: Deprecate this function in favour of downloadKeycardAsync when v2 encryption is the default.
618
825
  * Creates and downloads PDF keycard for wallet (requires response from wallets.generateWallet)
619
826
  *
620
827
  * Note: this is example code and is not the version used on bitgo.com
@@ -633,6 +840,10 @@ export declare class Wallet implements IWallet {
633
840
  * @returns {*}
634
841
  */
635
842
  downloadKeycard(params?: DownloadKeycardOptions): void;
843
+ /**
844
+ * Async version of downloadKeycard with v2 encrypt/decrypt support.
845
+ */
846
+ downloadKeycardAsync(params?: DownloadKeycardOptions): Promise<void>;
636
847
  /**
637
848
  * Builds a set of consolidation transactions for a wallet.
638
849
  * @param params
@@ -653,6 +864,75 @@ export declare class Wallet implements IWallet {
653
864
  * consolidateAddresses - these are the on-chain receive addresses we want to pick a consolidation amount from
654
865
  */
655
866
  sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
867
+ /**
868
+ * Shared build logic for resource delegation and undelegation.
869
+ * POSTs to the given endpoint and post-processes each prebuild.
870
+ */
871
+ private buildResourceManagementTransactions;
872
+ /**
873
+ * Shared signing logic for a single resource management transaction (delegation or undelegation).
874
+ * Signing flow by wallet type (mirrors sendAccountConsolidation):
875
+ * - TSS (hot or custodial) → sendManyTxRequests (requires txRequestId on prebuildTx)
876
+ * - Custodial non-TSS → initiateTransaction (BitGo auto-signs with its key)
877
+ * - Hot non-TSS → prebuildAndSignTransaction + submitTransaction
878
+ */
879
+ private sendResourceManagementTransaction;
880
+ /**
881
+ * Shared build → sign → send loop for resource delegation and undelegation.
882
+ * Validates the wallet passphrase upfront, then sends each transaction individually.
883
+ * Returns { success, failure } so partial success is handled gracefully.
884
+ */
885
+ private sendResourceManagementTransactions;
886
+ /**
887
+ * Builds a set of resource delegation transactions for the given delegation entries.
888
+ * Each entry delegates resources (e.g. ENERGY, BANDWIDTH) from this wallet's root address
889
+ * to a receiver address. Modelled after buildAccountConsolidations.
890
+ *
891
+ * @param params.delegations - Array of { receiverAddress, amount, resource } entries
892
+ * @returns Unsigned prebuild transaction results, one per delegation entry
893
+ */
894
+ buildResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
895
+ /**
896
+ * Signs and sends a single resource delegation transaction.
897
+ * @param params.prebuildTx - A single prebuild result from buildResourceDelegations
898
+ */
899
+ sendResourceDelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
900
+ /**
901
+ * Builds, signs, and sends all resource delegation transactions in a single call.
902
+ * @param params.delegations - Array of { receiverAddress, amount, resource } entries
903
+ */
904
+ sendResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<{
905
+ success: ResourceManagementSendResult[];
906
+ failure: {
907
+ message: string;
908
+ receiverAddress?: string;
909
+ }[];
910
+ }>;
911
+ /**
912
+ * Builds a set of resource undelegation transactions for the given entries.
913
+ * Each entry reclaims delegated resources from this wallet's root address back from
914
+ * a receiver address. Modelled after buildResourceDelegations.
915
+ *
916
+ * @param params.undelegations - Array of { receiverAddress, amount, resource } entries
917
+ * @returns Unsigned prebuild transaction results, one per undelegation entry
918
+ */
919
+ buildResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
920
+ /**
921
+ * Signs and sends a single resource undelegation transaction.
922
+ * @param params.prebuildTx - A single prebuild result from buildResourceUndelegations
923
+ */
924
+ sendResourceUndelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
925
+ /**
926
+ * Builds, signs, and sends all resource undelegation transactions in a single call.
927
+ * @param params.undelegations - Array of { receiverAddress, amount, resource } entries
928
+ */
929
+ sendResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<{
930
+ success: ResourceManagementSendResult[];
931
+ failure: {
932
+ message: string;
933
+ receiverAddress?: string;
934
+ }[];
935
+ }>;
656
936
  /**
657
937
  * Builds a set of transactions that enables the specified tokens
658
938
  * @param params -
@@ -660,6 +940,12 @@ export declare class Wallet implements IWallet {
660
940
  * @returns Unsigned transactions that enables the specified tokens
661
941
  */
662
942
  buildTokenEnablements(params?: BuildTokenEnablementOptions): Promise<PrebuildTransactionResult[]>;
943
+ /**
944
+ * Builds wallet initialization
945
+ * @param {PrebuildTransactionOptions} params
946
+ * @returns {Promise<PrebuildTransactionResult>}
947
+ */
948
+ buildWalletInitialization(params: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
663
949
  /**
664
950
  * Signs and sends a single unsigned token enablement transaction
665
951
  * @param params
@@ -684,21 +970,63 @@ export declare class Wallet implements IWallet {
684
970
  failure: Error[];
685
971
  }>;
686
972
  /**
687
- * Create lightning for btc/tbtc from this wallet
973
+ * The chain canton, requires the wallet to be initialized by sending out a transaction
974
+ * to be onboarded onto the validator.
975
+ * Builds, Signs and sends a transaction that initializes the canton wallet
976
+ * @param params
688
977
  */
689
- lightning(): Lightning;
978
+ sendWalletInitialization(params?: PrebuildTransactionOptions): Promise<WalletInitResult>;
690
979
  /**
691
980
  * Prebuilds a transaction for a TSS wallet.
692
981
  *
693
982
  * @param params prebuild transaction options
694
983
  */
695
- private prebuildTransactionTss;
984
+ private prebuildTransactionTxRequests;
696
985
  /**
697
- * Signs a transaction from a TSS wallet using external signer.
986
+ * Signs a transaction from a TSS EdDSA wallet using external signer.
698
987
  *
699
988
  * @param params signing options
700
989
  */
701
990
  private signTransactionTssExternalSignerEdDSA;
991
+ /**
992
+ * Signs and sends a transaction request from a TSS (hot) wallet, or a SMC (cold) wallet with an external signer.
993
+ * Meant to be used for a transaction request where the signing process is aborted.
994
+ *
995
+ * @param params
996
+ * txRequestId - The ID of the transaction request.
997
+ * walletPassphrase - The passphrase for the wallet.
998
+ * isTxRequestFull - Flag indicating if the transaction request is full.
999
+ * @returns A promise that resolves to a SignedTransaction.
1000
+ */
1001
+ signAndSendTxRequest(params: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
1002
+ /**
1003
+ * Ensures signature shares are in a clean state before signing a transaction.
1004
+ * Automatically deletes signature shares for Full TxRequests before signing to prevent
1005
+ * issues with stale or partial signatures.
1006
+ * Use this for Express API and other integrations that need automatic cleanup of signatures.
1007
+ *
1008
+ * @param params - signing options
1009
+ * @returns signed transaction
1010
+ */
1011
+ ensureCleanSigSharesAndSignTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
1012
+ /**
1013
+ * Signs a transaction from a TSS ECDSA wallet using external signer.
1014
+ *
1015
+ * @param params signing options
1016
+ */
1017
+ private signTransactionTssExternalSignerECDSA;
1018
+ /**
1019
+ * Signs a transaction from a TSS EdDSA MPCv2 wallet using external signer.
1020
+ *
1021
+ * @param params signing options
1022
+ */
1023
+ private signTransactionTssExternalSignerEdDSAMPCv2;
1024
+ /**
1025
+ * Signs a transaction from a TSS ECDSA wallet using external signer.
1026
+ *
1027
+ * @param params signing options
1028
+ */
1029
+ private signTransactionTssExternalSignerECDSAMPCv2;
702
1030
  /**
703
1031
  * Signs a transaction from a TSS wallet.
704
1032
  *
@@ -722,7 +1050,7 @@ export declare class Wallet implements IWallet {
722
1050
  *
723
1051
  * @param params send options
724
1052
  */
725
- private sendManyTss;
1053
+ private sendManyTxRequests;
726
1054
  /**
727
1055
  * Send funds from a fee address to a forwarder. Only supports eth-like coins.
728
1056
  *
@@ -731,7 +1059,15 @@ export declare class Wallet implements IWallet {
731
1059
  * @param {String} params.amount - Amount to send the forwarder (optional). If not given, defaults to sending an estimate of the amount needed for a fund recovery
732
1060
  * @returns {*}
733
1061
  */
734
- fundForwarder(params: FundForwardersOptions): Promise<any>;
1062
+ fundForwarder(params: FundForwardersOptions): Promise<WalletData>;
1063
+ /**
1064
+ * Send funds from a fee address to a forwarder.
1065
+ *
1066
+ * @param {Object} params - parameters object
1067
+ * @param {List} params.forwarders - list of fund forwarder options
1068
+ * @returns {*}
1069
+ */
1070
+ fundForwarders(params: FundForwarderParams): Promise<WalletData>;
735
1071
  /**
736
1072
  * Gets forwarder's balance
737
1073
  * @param params - optional query parameters
@@ -747,5 +1083,34 @@ export declare class Wallet implements IWallet {
747
1083
  * @returns {Promise<WalletEcdsaChallenges>}
748
1084
  */
749
1085
  getChallengesForEcdsaSigning(): Promise<WalletEcdsaChallenges>;
1086
+ private sendTransaction;
1087
+ private initiateTransaction;
1088
+ /**
1089
+ * Get wallet keychains and validate passphrase if necessary
1090
+ * @param {PrebuildTransactionOptions} params - prebuild transaction options
1091
+ * @param {string} params.walletPassphrase - wallet passphrase
1092
+ * @param {string} params.reqId - request id for tracing purposes
1093
+ * @param {Function} params.customSigningFunction - custom signing function for external signing
1094
+ * @returns {Promise<Keychain[]>}
1095
+ */
1096
+ private getKeychainsAndValidatePassphrase;
1097
+ /**
1098
+ * Approve token for use with a batcher contract
1099
+ * This function builds, signs, and sends a token approval transaction
1100
+ *
1101
+ * @param {string} walletPassphrase - The passphrase to be used to decrypt the user key
1102
+ * @param {string} tokenName - The name of the token to be approved
1103
+ * @returns {Promise<any>} The transaction details
1104
+ */
1105
+ approveErc20Token(walletPassphrase: string, tokenName: string): Promise<SubmitTransactionResponse>;
1106
+ /**
1107
+ * Build token approval transaction for ERC20 tokens
1108
+ * If walletPassphrase is provided, also signs and sends the transaction
1109
+ *
1110
+ * @param {string} tokenName - The name of the token to be approved
1111
+ * @param {string} [walletPassphrase] - Optional wallet passphrase for signing and sending
1112
+ * @returns {Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>} The token approval build response or transaction details if signed
1113
+ */
1114
+ buildErc20TokenApproval(tokenName: string, walletPassphrase?: string): Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>;
750
1115
  }
751
1116
  //# sourceMappingURL=wallet.d.ts.map