@bitgo/sdk-core 1.0.2-rc.0 → 1.1.0-dev.0

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 (363) hide show
  1. package/dist/src/account-lib/baseCoin/baseKeyPair.d.ts +27 -0
  2. package/dist/src/account-lib/baseCoin/baseKeyPair.d.ts.map +1 -0
  3. package/dist/src/account-lib/baseCoin/baseKeyPair.js +3 -0
  4. package/dist/src/account-lib/baseCoin/baseTransaction.d.ts +71 -0
  5. package/dist/src/account-lib/baseCoin/baseTransaction.d.ts.map +1 -0
  6. package/dist/src/account-lib/baseCoin/baseTransaction.js +69 -0
  7. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts +128 -0
  8. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts.map +1 -0
  9. package/dist/src/account-lib/baseCoin/baseTransactionBuilder.js +138 -0
  10. package/dist/src/account-lib/baseCoin/baseTransactionBuilderFactory.d.ts +29 -0
  11. package/dist/src/account-lib/baseCoin/baseTransactionBuilderFactory.d.ts.map +1 -0
  12. package/dist/src/account-lib/baseCoin/baseTransactionBuilderFactory.js +19 -0
  13. package/dist/src/account-lib/baseCoin/baseUtils.d.ts +45 -0
  14. package/dist/src/account-lib/baseCoin/baseUtils.d.ts.map +1 -0
  15. package/dist/src/account-lib/baseCoin/baseUtils.js +3 -0
  16. package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts +75 -0
  17. package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts.map +1 -0
  18. package/dist/src/account-lib/baseCoin/blsKeyPair.js +179 -0
  19. package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts +50 -0
  20. package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts.map +1 -0
  21. package/dist/src/account-lib/baseCoin/ed25519KeyPair.js +145 -0
  22. package/dist/src/account-lib/baseCoin/enum.d.ts +45 -0
  23. package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -0
  24. package/dist/src/account-lib/baseCoin/enum.js +74 -0
  25. package/dist/src/account-lib/baseCoin/errors.d.ts +59 -0
  26. package/dist/src/account-lib/baseCoin/errors.d.ts.map +1 -0
  27. package/dist/src/account-lib/baseCoin/errors.js +105 -0
  28. package/dist/src/account-lib/baseCoin/iface.d.ts +155 -0
  29. package/dist/src/account-lib/baseCoin/iface.d.ts.map +1 -0
  30. package/dist/src/account-lib/baseCoin/iface.js +38 -0
  31. package/dist/src/account-lib/baseCoin/index.d.ts +12 -0
  32. package/dist/src/account-lib/baseCoin/index.d.ts.map +1 -0
  33. package/dist/src/account-lib/baseCoin/index.js +31 -0
  34. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts +55 -0
  35. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts.map +1 -0
  36. package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.js +124 -0
  37. package/dist/src/account-lib/index.d.ts +5 -0
  38. package/dist/src/account-lib/index.d.ts.map +1 -0
  39. package/dist/src/account-lib/index.js +17 -0
  40. package/dist/src/account-lib/mpc/curves/baseCurve.d.ts +19 -0
  41. package/dist/src/account-lib/mpc/curves/baseCurve.d.ts.map +1 -0
  42. package/dist/src/account-lib/mpc/curves/baseCurve.js +6 -0
  43. package/dist/src/account-lib/mpc/curves/ed25519.d.ts +17 -0
  44. package/dist/src/account-lib/mpc/curves/ed25519.d.ts.map +1 -0
  45. package/dist/src/account-lib/mpc/curves/ed25519.js +57 -0
  46. package/dist/src/account-lib/mpc/curves/index.d.ts +6 -0
  47. package/dist/src/account-lib/mpc/curves/index.d.ts.map +1 -0
  48. package/dist/src/account-lib/mpc/curves/index.js +8 -0
  49. package/dist/src/account-lib/mpc/curves/secp256k1.d.ts +17 -0
  50. package/dist/src/account-lib/mpc/curves/secp256k1.d.ts.map +1 -0
  51. package/dist/src/account-lib/mpc/curves/secp256k1.js +70 -0
  52. package/dist/src/account-lib/mpc/hdTree.d.ts +24 -0
  53. package/dist/src/account-lib/mpc/hdTree.d.ts.map +1 -0
  54. package/dist/src/account-lib/mpc/hdTree.js +94 -0
  55. package/dist/src/account-lib/mpc/index.d.ts +8 -0
  56. package/dist/src/account-lib/mpc/index.d.ts.map +1 -0
  57. package/dist/src/account-lib/mpc/index.js +23 -0
  58. package/dist/src/account-lib/mpc/shamir.d.ts +26 -0
  59. package/dist/src/account-lib/mpc/shamir.d.ts.map +1 -0
  60. package/dist/src/account-lib/mpc/shamir.js +86 -0
  61. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +25 -0
  62. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
  63. package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +121 -0
  64. package/dist/src/account-lib/mpc/tss/ecdsa/index.d.ts +4 -0
  65. package/dist/src/account-lib/mpc/tss/ecdsa/index.d.ts.map +1 -0
  66. package/dist/src/account-lib/mpc/tss/ecdsa/index.js +29 -0
  67. package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts +40 -0
  68. package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts.map +1 -0
  69. package/dist/src/account-lib/mpc/tss/ecdsa/types.js +3 -0
  70. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts +29 -0
  71. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts.map +1 -0
  72. package/dist/src/account-lib/mpc/tss/eddsa/eddsa.js +276 -0
  73. package/dist/src/account-lib/mpc/tss/eddsa/index.d.ts +4 -0
  74. package/dist/src/account-lib/mpc/tss/eddsa/index.d.ts.map +1 -0
  75. package/dist/src/account-lib/mpc/tss/eddsa/index.js +30 -0
  76. package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts +70 -0
  77. package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts.map +1 -0
  78. package/dist/src/account-lib/mpc/tss/eddsa/types.js +3 -0
  79. package/dist/src/account-lib/mpc/tss/index.d.ts +6 -0
  80. package/dist/src/account-lib/mpc/tss/index.d.ts.map +1 -0
  81. package/dist/src/account-lib/mpc/tss/index.js +35 -0
  82. package/dist/src/account-lib/mpc/util.d.ts +8 -0
  83. package/dist/src/account-lib/mpc/util.d.ts.map +1 -0
  84. package/dist/src/account-lib/mpc/util.js +42 -0
  85. package/dist/src/account-lib/util/crypto.d.ts +106 -0
  86. package/dist/src/account-lib/util/crypto.d.ts.map +1 -0
  87. package/dist/src/account-lib/util/crypto.js +269 -0
  88. package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts +49 -0
  89. package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +1 -0
  90. package/dist/src/account-lib/util/ed25519KeyDeriver.js +87 -0
  91. package/dist/src/api/bip32path.d.ts +24 -0
  92. package/dist/src/api/bip32path.d.ts.map +1 -0
  93. package/dist/src/api/bip32path.js +45 -0
  94. package/dist/src/api/index.d.ts +3 -0
  95. package/dist/src/api/index.d.ts.map +1 -0
  96. package/dist/src/{v2 → api}/index.js +2 -2
  97. package/dist/src/api/types.d.ts +20 -0
  98. package/dist/src/api/types.d.ts.map +1 -0
  99. package/dist/src/api/types.js +3 -0
  100. package/dist/src/bitgo/baseCoin/baseCoin.d.ts +230 -0
  101. package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -0
  102. package/dist/src/bitgo/baseCoin/baseCoin.js +292 -0
  103. package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +257 -0
  104. package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts.map +1 -0
  105. package/dist/src/bitgo/baseCoin/iBaseCoin.js +3 -0
  106. package/dist/src/bitgo/baseCoin/index.d.ts +3 -0
  107. package/dist/src/bitgo/baseCoin/index.d.ts.map +1 -0
  108. package/dist/src/bitgo/baseCoin/index.js +15 -0
  109. package/dist/src/bitgo/bip32util.d.ts +17 -0
  110. package/dist/src/bitgo/bip32util.d.ts.map +1 -0
  111. package/dist/src/bitgo/bip32util.js +59 -0
  112. package/dist/src/bitgo/bitcoin.d.ts +16 -0
  113. package/dist/src/bitgo/bitcoin.d.ts.map +1 -0
  114. package/dist/src/bitgo/bitcoin.js +52 -0
  115. package/dist/src/bitgo/bitgoBase.d.ts +22 -0
  116. package/dist/src/bitgo/bitgoBase.d.ts.map +1 -0
  117. package/dist/src/bitgo/bitgoBase.js +3 -0
  118. package/dist/src/bitgo/coinFactory.d.ts +31 -0
  119. package/dist/src/bitgo/coinFactory.d.ts.map +1 -0
  120. package/dist/src/bitgo/coinFactory.js +59 -0
  121. package/dist/src/bitgo/config.d.ts +8 -0
  122. package/dist/src/bitgo/config.d.ts.map +1 -0
  123. package/dist/src/bitgo/config.js +25 -0
  124. package/dist/src/bitgo/ecdh.d.ts +24 -0
  125. package/dist/src/bitgo/ecdh.d.ts.map +1 -0
  126. package/dist/src/bitgo/ecdh.js +80 -0
  127. package/dist/src/bitgo/enterprise/enterprise.d.ts +64 -0
  128. package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -0
  129. package/dist/src/bitgo/enterprise/enterprise.js +120 -0
  130. package/dist/src/bitgo/enterprise/enterprises.d.ts +25 -0
  131. package/dist/src/bitgo/enterprise/enterprises.d.ts.map +1 -0
  132. package/dist/src/bitgo/enterprise/enterprises.js +70 -0
  133. package/dist/src/bitgo/enterprise/iEnterprise.d.ts +15 -0
  134. package/dist/src/bitgo/enterprise/iEnterprise.d.ts.map +1 -0
  135. package/dist/src/bitgo/enterprise/iEnterprise.js +3 -0
  136. package/dist/src/bitgo/enterprise/iEnterprises.d.ts +10 -0
  137. package/dist/src/bitgo/enterprise/iEnterprises.d.ts.map +1 -0
  138. package/dist/src/bitgo/enterprise/iEnterprises.js +3 -0
  139. package/dist/src/bitgo/enterprise/index.d.ts +5 -0
  140. package/dist/src/bitgo/enterprise/index.d.ts.map +1 -0
  141. package/dist/src/bitgo/enterprise/index.js +17 -0
  142. package/dist/src/{v2 → bitgo}/environments.d.ts +0 -0
  143. package/dist/src/bitgo/environments.d.ts.map +1 -0
  144. package/dist/src/bitgo/environments.js +142 -0
  145. package/dist/src/bitgo/errors.d.ts +83 -0
  146. package/dist/src/bitgo/errors.d.ts.map +1 -0
  147. package/dist/src/bitgo/errors.js +163 -0
  148. package/dist/src/bitgo/index.d.ts +26 -0
  149. package/dist/src/bitgo/index.d.ts.map +1 -0
  150. package/dist/src/bitgo/index.js +51 -0
  151. package/dist/src/bitgo/internal/index.d.ts +3 -0
  152. package/dist/src/bitgo/internal/index.d.ts.map +1 -0
  153. package/dist/src/bitgo/internal/index.js +15 -0
  154. package/dist/src/bitgo/internal/internal.d.ts +19 -0
  155. package/dist/src/bitgo/internal/internal.d.ts.map +1 -0
  156. package/dist/src/bitgo/internal/internal.js +33 -0
  157. package/dist/src/bitgo/internal/keycard.d.ts +33 -0
  158. package/dist/src/bitgo/internal/keycard.d.ts.map +1 -0
  159. package/dist/src/bitgo/internal/keycard.js +304 -0
  160. package/dist/src/bitgo/keychain/iKeychains.d.ts +118 -0
  161. package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -0
  162. package/dist/src/bitgo/keychain/iKeychains.js +10 -0
  163. package/dist/src/bitgo/keychain/index.d.ts +3 -0
  164. package/dist/src/bitgo/keychain/index.d.ts.map +1 -0
  165. package/dist/src/bitgo/keychain/index.js +15 -0
  166. package/dist/src/bitgo/keychain/keychains.d.ts +90 -0
  167. package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -0
  168. package/dist/src/bitgo/keychain/keychains.js +280 -0
  169. package/dist/src/bitgo/market/iMarkets.d.ts +12 -0
  170. package/dist/src/bitgo/market/iMarkets.d.ts.map +1 -0
  171. package/dist/src/bitgo/market/iMarkets.js +3 -0
  172. package/dist/src/bitgo/market/index.d.ts +3 -0
  173. package/dist/src/bitgo/market/index.d.ts.map +1 -0
  174. package/dist/src/bitgo/market/index.js +15 -0
  175. package/dist/src/bitgo/market/markets.d.ts +29 -0
  176. package/dist/src/bitgo/market/markets.d.ts.map +1 -0
  177. package/dist/src/bitgo/market/markets.js +70 -0
  178. package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts +73 -0
  179. package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -0
  180. package/dist/src/bitgo/pendingApproval/iPendingApproval.js +28 -0
  181. package/dist/src/bitgo/pendingApproval/iPendingApprovals.d.ts +16 -0
  182. package/dist/src/bitgo/pendingApproval/iPendingApprovals.d.ts.map +1 -0
  183. package/dist/src/bitgo/pendingApproval/iPendingApprovals.js +3 -0
  184. package/dist/src/bitgo/pendingApproval/index.d.ts +5 -0
  185. package/dist/src/bitgo/pendingApproval/index.d.ts.map +1 -0
  186. package/dist/src/bitgo/pendingApproval/index.js +17 -0
  187. package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +99 -0
  188. package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -0
  189. package/dist/src/bitgo/pendingApproval/pendingApproval.js +319 -0
  190. package/dist/src/bitgo/pendingApproval/pendingApprovals.d.ts +19 -0
  191. package/dist/src/bitgo/pendingApproval/pendingApprovals.d.ts.map +1 -0
  192. package/dist/src/bitgo/pendingApproval/pendingApprovals.js +76 -0
  193. package/dist/src/bitgo/recovery/index.d.ts +2 -0
  194. package/dist/src/bitgo/recovery/index.d.ts.map +1 -0
  195. package/dist/src/bitgo/recovery/index.js +14 -0
  196. package/dist/src/bitgo/recovery/initiate.d.ts +49 -0
  197. package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -0
  198. package/dist/src/bitgo/recovery/initiate.js +119 -0
  199. package/dist/src/bitgo/trading/affirmation.d.ts +35 -0
  200. package/dist/src/bitgo/trading/affirmation.d.ts.map +1 -0
  201. package/dist/src/bitgo/trading/affirmation.js +53 -0
  202. package/dist/src/bitgo/trading/affirmations.d.ts +23 -0
  203. package/dist/src/bitgo/trading/affirmations.d.ts.map +1 -0
  204. package/dist/src/bitgo/trading/affirmations.js +45 -0
  205. package/dist/src/bitgo/trading/iAffirmation.d.ts +15 -0
  206. package/dist/src/bitgo/trading/iAffirmation.d.ts.map +1 -0
  207. package/dist/src/bitgo/trading/iAffirmation.js +13 -0
  208. package/dist/src/bitgo/trading/iAffirmations.d.ts +10 -0
  209. package/dist/src/bitgo/trading/iAffirmations.d.ts.map +1 -0
  210. package/dist/src/bitgo/trading/iAffirmations.js +3 -0
  211. package/dist/src/bitgo/trading/iSettlement.d.ts +25 -0
  212. package/dist/src/bitgo/trading/iSettlement.d.ts.map +1 -0
  213. package/dist/src/bitgo/trading/iSettlement.js +17 -0
  214. package/dist/src/bitgo/trading/iSettlements.d.ts +19 -0
  215. package/dist/src/bitgo/trading/iSettlements.d.ts.map +1 -0
  216. package/dist/src/bitgo/trading/iSettlements.js +3 -0
  217. package/dist/src/bitgo/trading/iTradingAccount.d.ts +41 -0
  218. package/dist/src/bitgo/trading/iTradingAccount.d.ts.map +1 -0
  219. package/dist/src/bitgo/trading/iTradingAccount.js +3 -0
  220. package/dist/src/bitgo/trading/iTradingPartner.d.ts +14 -0
  221. package/dist/src/bitgo/trading/iTradingPartner.d.ts.map +1 -0
  222. package/dist/src/bitgo/trading/iTradingPartner.js +17 -0
  223. package/dist/src/bitgo/trading/iTradingPartners.d.ts +15 -0
  224. package/dist/src/bitgo/trading/iTradingPartners.d.ts.map +1 -0
  225. package/dist/src/bitgo/trading/iTradingPartners.js +9 -0
  226. package/dist/src/bitgo/trading/index.d.ts +18 -0
  227. package/dist/src/bitgo/trading/index.d.ts.map +1 -0
  228. package/dist/src/bitgo/trading/index.js +30 -0
  229. package/dist/src/bitgo/trading/lock.d.ts +16 -0
  230. package/dist/src/bitgo/trading/lock.d.ts.map +1 -0
  231. package/dist/src/bitgo/trading/lock.js +12 -0
  232. package/dist/src/bitgo/trading/payload.d.ts +22 -0
  233. package/dist/src/bitgo/trading/payload.d.ts.map +1 -0
  234. package/dist/src/bitgo/trading/payload.js +3 -0
  235. package/dist/src/bitgo/trading/settlement.d.ts +16 -0
  236. package/dist/src/bitgo/trading/settlement.d.ts.map +1 -0
  237. package/dist/src/bitgo/trading/settlement.js +21 -0
  238. package/dist/src/bitgo/trading/settlements.d.ts +32 -0
  239. package/dist/src/bitgo/trading/settlements.d.ts.map +1 -0
  240. package/dist/src/bitgo/trading/settlements.js +61 -0
  241. package/dist/src/bitgo/trading/trade.d.ts +29 -0
  242. package/dist/src/bitgo/trading/trade.d.ts.map +1 -0
  243. package/dist/src/bitgo/trading/trade.js +11 -0
  244. package/dist/src/bitgo/trading/tradingAccount.d.ts +53 -0
  245. package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -0
  246. package/dist/src/bitgo/trading/tradingAccount.js +127 -0
  247. package/dist/src/bitgo/trading/tradingPartner.d.ts +26 -0
  248. package/dist/src/bitgo/trading/tradingPartner.d.ts.map +1 -0
  249. package/dist/src/bitgo/trading/tradingPartner.js +31 -0
  250. package/dist/src/bitgo/trading/tradingPartners.d.ts +24 -0
  251. package/dist/src/bitgo/trading/tradingPartners.d.ts.map +1 -0
  252. package/dist/src/bitgo/trading/tradingPartners.js +32 -0
  253. package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +35 -0
  254. package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -0
  255. package/dist/src/bitgo/tss/ecdsa/ecdsa.js +95 -0
  256. package/dist/src/bitgo/tss/ecdsa/index.d.ts +4 -0
  257. package/dist/src/bitgo/tss/ecdsa/index.d.ts.map +1 -0
  258. package/dist/src/bitgo/tss/ecdsa/index.js +26 -0
  259. package/dist/src/bitgo/tss/ecdsa/types.d.ts +30 -0
  260. package/dist/src/bitgo/tss/ecdsa/types.d.ts.map +1 -0
  261. package/dist/src/bitgo/tss/ecdsa/types.js +3 -0
  262. package/dist/src/bitgo/tss/eddsa/eddsa.d.ts +102 -0
  263. package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -0
  264. package/dist/src/bitgo/tss/eddsa/eddsa.js +256 -0
  265. package/dist/src/bitgo/tss/eddsa/index.d.ts +6 -0
  266. package/dist/src/bitgo/tss/eddsa/index.d.ts.map +1 -0
  267. package/dist/src/bitgo/tss/eddsa/index.js +37 -0
  268. package/dist/src/bitgo/tss/eddsa/types.d.ts +23 -0
  269. package/dist/src/bitgo/tss/eddsa/types.d.ts.map +1 -0
  270. package/dist/src/bitgo/tss/eddsa/types.js +3 -0
  271. package/dist/src/bitgo/tss/index.d.ts +6 -0
  272. package/dist/src/bitgo/tss/index.d.ts.map +1 -0
  273. package/dist/src/bitgo/tss/index.js +42 -0
  274. package/dist/src/bitgo/tss/types.d.ts +6 -0
  275. package/dist/src/bitgo/tss/types.d.ts.map +1 -0
  276. package/dist/src/bitgo/tss/types.js +10 -0
  277. package/dist/src/bitgo/types.d.ts +4 -0
  278. package/dist/src/bitgo/types.d.ts.map +1 -0
  279. package/dist/src/bitgo/types.js +3 -0
  280. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts +6 -0
  281. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -0
  282. package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +30 -0
  283. package/dist/src/bitgo/utils/blsUtils.d.ts +51 -0
  284. package/dist/src/bitgo/utils/blsUtils.d.ts.map +1 -0
  285. package/dist/src/bitgo/utils/blsUtils.js +166 -0
  286. package/dist/src/bitgo/utils/iBlsUtils.d.ts +14 -0
  287. package/dist/src/bitgo/utils/iBlsUtils.d.ts.map +1 -0
  288. package/dist/src/bitgo/utils/iBlsUtils.js +3 -0
  289. package/dist/src/bitgo/utils/index.d.ts +12 -0
  290. package/dist/src/bitgo/utils/index.d.ts.map +1 -0
  291. package/dist/src/bitgo/utils/index.js +37 -0
  292. package/dist/src/bitgo/utils/mpcUtils.d.ts +31 -0
  293. package/dist/src/bitgo/utils/mpcUtils.d.ts.map +1 -0
  294. package/dist/src/bitgo/utils/mpcUtils.js +55 -0
  295. package/dist/src/bitgo/utils/opengpgUtils.d.ts +51 -0
  296. package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -0
  297. package/dist/src/bitgo/utils/opengpgUtils.js +136 -0
  298. package/dist/src/bitgo/utils/promise-utils.d.ts +5 -0
  299. package/dist/src/bitgo/utils/promise-utils.d.ts.map +1 -0
  300. package/dist/src/bitgo/utils/promise-utils.js +12 -0
  301. package/dist/src/bitgo/utils/triple.d.ts +3 -0
  302. package/dist/src/bitgo/utils/triple.d.ts.map +1 -0
  303. package/dist/src/bitgo/utils/triple.js +8 -0
  304. package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts +117 -0
  305. package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -0
  306. package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +351 -0
  307. package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +5 -0
  308. package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -0
  309. package/dist/src/bitgo/utils/tss/eddsa/index.js +29 -0
  310. package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +72 -0
  311. package/dist/src/bitgo/utils/tss/eddsa/types.d.ts.map +1 -0
  312. package/dist/src/bitgo/utils/tss/eddsa/types.js +10 -0
  313. package/dist/src/bitgo/utils/tss/index.d.ts +4 -0
  314. package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -0
  315. package/dist/src/bitgo/utils/tss/index.js +29 -0
  316. package/dist/src/bitgo/utils/util.d.ts +77 -0
  317. package/dist/src/bitgo/utils/util.d.ts.map +1 -0
  318. package/dist/src/bitgo/utils/util.js +198 -0
  319. package/dist/src/bitgo/wallet/iWallet.d.ts +510 -0
  320. package/dist/src/bitgo/wallet/iWallet.d.ts.map +1 -0
  321. package/dist/src/bitgo/wallet/iWallet.js +3 -0
  322. package/dist/src/bitgo/wallet/iWallets.d.ts +105 -0
  323. package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -0
  324. package/dist/src/bitgo/wallet/iWallets.js +3 -0
  325. package/dist/src/bitgo/wallet/index.d.ts +5 -0
  326. package/dist/src/bitgo/wallet/index.d.ts.map +1 -0
  327. package/dist/src/bitgo/wallet/index.js +17 -0
  328. package/dist/src/bitgo/wallet/wallet.d.ts +650 -0
  329. package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -0
  330. package/dist/src/bitgo/wallet/wallet.js +2039 -0
  331. package/dist/src/bitgo/wallet/wallets.d.ts +134 -0
  332. package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -0
  333. package/dist/src/bitgo/wallet/wallets.js +605 -0
  334. package/dist/src/bitgo/webhook/iWebhooks.d.ts +26 -0
  335. package/dist/src/bitgo/webhook/iWebhooks.d.ts.map +1 -0
  336. package/dist/src/bitgo/webhook/iWebhooks.js +3 -0
  337. package/dist/src/bitgo/webhook/index.d.ts +3 -0
  338. package/dist/src/bitgo/webhook/index.d.ts.map +1 -0
  339. package/dist/src/bitgo/webhook/index.js +15 -0
  340. package/dist/src/bitgo/webhook/webhooks.d.ts +43 -0
  341. package/dist/src/bitgo/webhook/webhooks.d.ts.map +1 -0
  342. package/dist/src/bitgo/webhook/webhooks.js +102 -0
  343. package/dist/src/{bigojsError.d.ts → bitgojsError.d.ts} +1 -1
  344. package/dist/src/bitgojsError.d.ts.map +1 -0
  345. package/dist/src/bitgojsError.js +11 -0
  346. package/dist/src/common.d.ts +1 -1
  347. package/dist/src/common.d.ts.map +1 -1
  348. package/dist/src/common.js +3 -3
  349. package/dist/src/index.d.ts +4 -2
  350. package/dist/src/index.d.ts.map +1 -1
  351. package/dist/src/index.js +6 -5
  352. package/dist/tsconfig.tsbuildinfo +3501 -150
  353. package/package.json +28 -4
  354. package/CHANGELOG.md +0 -8
  355. package/dist/src/bigojsError.d.ts.map +0 -1
  356. package/dist/src/bigojsError.js +0 -11
  357. package/dist/src/v2/environments.d.ts.map +0 -1
  358. package/dist/src/v2/environments.js +0 -142
  359. package/dist/src/v2/index.d.ts +0 -3
  360. package/dist/src/v2/index.d.ts.map +0 -1
  361. package/dist/src/v2/types.d.ts +0 -2
  362. package/dist/src/v2/types.d.ts.map +0 -1
  363. package/dist/src/v2/types.js +0 -3
@@ -0,0 +1,650 @@
1
+ /**
2
+ * @prettier
3
+ */
4
+ import { IBaseCoin, SignedTransaction } from '../baseCoin';
5
+ import { BitGoBase } from '../bitgoBase';
6
+ import { IPendingApproval } from '../pendingApproval';
7
+ import { TradingAccount } from '../trading/tradingAccount';
8
+ import { AccelerateTransactionOptions, AddressesOptions, BuildConsolidationTransactionOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreatePolicyRuleOptions, CreateShareOptions, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FlushForwarderTokenOptions, FreezeOptions, 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, WalletSignTransactionOptions } from './iWallet';
9
+ export declare class Wallet implements IWallet {
10
+ readonly bitgo: BitGoBase;
11
+ readonly baseCoin: IBaseCoin;
12
+ private _wallet;
13
+ private readonly tssUtils;
14
+ private readonly _permissions?;
15
+ constructor(bitgo: BitGoBase, baseCoin: IBaseCoin, walletData: any);
16
+ /**
17
+ * Build a URL using this wallet's id which can be used for BitGo API operations
18
+ * @param extra API specific string to append to the wallet id
19
+ */
20
+ url(extra?: string): string;
21
+ /**
22
+ * Get this wallet's id
23
+ */
24
+ id(): string;
25
+ /**
26
+ * Get the number of approvals required for spending funds from this wallet
27
+ */
28
+ approvalsRequired(): number;
29
+ /**
30
+ * Get the current balance of this wallet
31
+ */
32
+ balance(): number;
33
+ prebuildWhitelistedParams(): string[];
34
+ /**
35
+ * This is a strict sub-set of prebuildWhitelistedParams
36
+ */
37
+ prebuildConsolidateAccountParams(): string[];
38
+ /**
39
+ * Get the confirmed balance of this wallet
40
+ */
41
+ confirmedBalance(): number;
42
+ /**
43
+ * Get the spendable balance of this wallet
44
+ */
45
+ spendableBalance(): number;
46
+ /**
47
+ * Get a string representation of the balance of this wallet
48
+ *
49
+ * This is useful when balances have the potential to overflow standard javascript numbers
50
+ */
51
+ balanceString(): string;
52
+ /**
53
+ * Get a string representation of the confirmed balance of this wallet
54
+ *
55
+ * This is useful when balances have the potential to overflow standard javascript numbers
56
+ */
57
+ confirmedBalanceString(): string;
58
+ /**
59
+ * Get a string representation of the spendable balance of this wallet
60
+ *
61
+ * This is useful when balances have the potential to overflow standard javascript numbers
62
+ */
63
+ spendableBalanceString(): string;
64
+ /**
65
+ * Get the coin identifier for the type of coin this wallet holds
66
+ */
67
+ coin(): string;
68
+ /**
69
+ * Get the label (name) for this wallet
70
+ */
71
+ label(): string;
72
+ /**
73
+ * Get the public object ids for the keychains on this wallet.
74
+ */
75
+ keyIds(): string[];
76
+ /**
77
+ * Get a receive address for this wallet
78
+ */
79
+ receiveAddress(): string;
80
+ /**
81
+ * Get the wallet id of the wallet that this wallet was migrated from.
82
+ *
83
+ * For example, if this is a BCH wallet that was created from a BTC wallet,
84
+ * the BCH wallet migrated from field would have the BTC wallet id.
85
+ */
86
+ migratedFrom(): string | undefined;
87
+ /**
88
+ * Return the token flush thresholds for this wallet
89
+ * @return {*|Object} pairs of { [tokenName]: thresholds } base units
90
+ */
91
+ tokenFlushThresholds(): any;
92
+ /**
93
+ * Get wallet properties which are specific to certain coin implementations
94
+ */
95
+ coinSpecific(): WalletCoinSpecific | undefined;
96
+ /**
97
+ * Get all pending approvals on this wallet
98
+ */
99
+ pendingApprovals(): IPendingApproval[];
100
+ /**
101
+ * Refresh the wallet object by syncing with the back-end
102
+ * @param params
103
+ * @returns {Wallet}
104
+ */
105
+ refresh(params?: Record<string, never>): Promise<Wallet>;
106
+ /**
107
+ * List the transactions for a given wallet
108
+ * @param params
109
+ * @returns {*}
110
+ */
111
+ transactions(params?: PaginationOptions): Promise<any>;
112
+ /**
113
+ * List the transactions for a given wallet
114
+ * @param params
115
+ * - txHash the transaction hash to search for
116
+ * @returns {*}
117
+ */
118
+ getTransaction(params?: GetTransactionOptions): Promise<any>;
119
+ /**
120
+ * List the transfers for a given wallet
121
+ * @param params
122
+ * @returns {*}
123
+ */
124
+ transfers(params?: TransfersOptions): Promise<any>;
125
+ /**
126
+ * Get transfers on this wallet
127
+ * @param params
128
+ */
129
+ getTransfer(params?: GetTransferOptions): Promise<any>;
130
+ /**
131
+ * Get a transaction by sequence id for a given wallet
132
+ * @param params
133
+ */
134
+ transferBySequenceId(params?: TransferBySequenceIdOptions): Promise<any>;
135
+ /**
136
+ * Get the maximum amount you can spend in a single transaction
137
+ *
138
+ * @param {Object} params - parameters object
139
+ * @param {Number} params.limit - maximum number of selectable unspents
140
+ * @param {Number} params.minValue - the minimum value of unspents to use in satoshis
141
+ * @param {Number} params.maxValue - the maximum value of unspents to use in satoshis
142
+ * @param {Number} params.minHeight - the minimum height of unspents on the block chain to use
143
+ * @param {Number} params.minConfirms - all selected unspents will have at least this many confirmations
144
+ * @param {Boolean} params.enforceMinConfirmsForChange - Enforces minConfirms on change inputs
145
+ * @param {Number} params.feeRate - fee rate to use in calculation of maximum spendable in satoshis/kB
146
+ * @param {Number} params.maxFeeRate - upper limit for feeRate in satoshis/kB
147
+ * @param {String} params.recipientAddress - recipient addresses for a more accurate calculation of the maximum available to send
148
+ * @returns {{maximumSpendable: Number, coin: String}}
149
+ * NOTE : feeTxConfirmTarget omitted on purpose because gauging the maximum spendable amount with dynamic fees does not make sense
150
+ */
151
+ maximumSpendable(params?: MaximumSpendableOptions): Promise<MaximumSpendable>;
152
+ /**
153
+ * List the unspents for a given wallet
154
+ * @param params
155
+ * @returns {*}
156
+ */
157
+ unspents(params?: UnspentsOptions): Promise<any>;
158
+ /**
159
+ * Consolidate or fanout unspents on a wallet
160
+ *
161
+ * @param {String} routeName - either `consolidate` or `fanout`
162
+ *
163
+ * @param {Object} params - parameters object
164
+ *
165
+ * Wallet parameters:
166
+ * @param {String} params.walletPassphrase - the users wallet passphrase
167
+ * @param {String} params.xprv - the private key in string form if the walletPassphrase is not available
168
+ *
169
+ * Fee parameters:
170
+ * @param {Number} params.feeRate - The fee rate to use for the consolidation in satoshis/kB
171
+ * @param {Number} params.maxFeeRate - upper limit for feeRate in satoshis/kB
172
+ * @param {Number} params.maxFeePercentage - the maximum relative portion that you're willing to spend towards fees
173
+ * @param {Number} params.feeTxConfirmTarget - estimate the fees to aim for first confirmation with this number of blocks
174
+ *
175
+ * Input parameters:
176
+ * @param {Number} params.minValue - the minimum value of unspents to use in satoshis
177
+ * @param {Number} params.maxValue - the maximum value of unspents to use in satoshis
178
+ * @param {Number} params.minHeight - the minimum height of unspents on the block chain to use
179
+ * @param {Number} params.minConfirms - all selected unspents will have at least this many confirmations
180
+ * @param {Boolean} params.enforceMinConfirmsForChange - if true, minConfirms also applies to change outputs
181
+ * @param {Number} params.limit for routeName === 'consolidate'
182
+ * params.maxNumInputsToUse for routeName === 'fanout'
183
+ * - maximum number of unspents you want to use in the transaction
184
+ * Output parameters:
185
+ * @param {Number} params.numUnspentsToMake - the number of new unspents to make
186
+ */
187
+ private manageUnspents;
188
+ /**
189
+ * Consolidate unspents on a wallet
190
+ *
191
+ * @param {Object} params - parameters object
192
+ * @param {String} params.walletPassphrase - the users wallet passphrase
193
+ * @param {String} params.xprv - the private key in string form if the walletPassphrase is not available
194
+ * @param {Number} params.feeRate - The fee rate to use for the consolidation in satoshis/kB
195
+ * @param {Number} params.maxFeeRate - upper limit for feeRate in satoshis/kB
196
+ * @param {Number} params.maxFeePercentage - the maximum relative portion that you're willing to spend towards fees
197
+ * @param {Number} params.feeTxConfirmTarget - estimate the fees to aim for first confirmation with this number of blocks
198
+ * @param {Number} params.minValue - the minimum value of unspents to use in satoshis
199
+ * @param {Number} params.maxValue - the maximum value of unspents to use in satoshis
200
+ * @param {Number} params.minHeight - the minimum height of unspents on the block chain to use
201
+ * @param {Number} params.minConfirms - all selected unspents will have at least this many confirmations
202
+ * @param {Boolean} params.enforceMinConfirmsForChange - if true, minConfirms also applies to change outputs
203
+ * @param {Number} params.limit for routeName === 'consolidate'
204
+ * params.maxNumInputsToUse for routeName === 'fanout'
205
+ * - maximum number of unspents you want to use in the transaction
206
+ * @param {Number} params.numUnspentsToMake - the number of new unspents to make
207
+ */
208
+ consolidateUnspents(params?: ConsolidateUnspentsOptions): Promise<any>;
209
+ /**
210
+ * Fanout unspents on a wallet
211
+ *
212
+ * @param {Object} params - parameters object
213
+ * @param {String} params.walletPassphrase - the users wallet passphrase
214
+ * @param {String} params.xprv - the private key in string form if the walletPassphrase is not available
215
+ * @param {Number} params.minValue - the minimum value of unspents to use
216
+ * @param {Number} params.maxValue - the maximum value of unspents to use
217
+ * @param {Number} params.minHeight - the minimum height of unspents on the block chain to use
218
+ * @param {Number} params.minConfirms - all selected unspents will have at least this many confirmations
219
+ * @param {Number} params.maxFeePercentage - the maximum proportion of an unspent you are willing to lose to fees
220
+ * @param {Number} params.feeTxConfirmTarget - estimate the fees to aim for first confirmation with this number of blocks
221
+ * @param {Number} params.feeRate - The desired fee rate for the transaction in satoshis/kB
222
+ * @param {Number} params.maxFeeRate - The max limit for a fee rate in satoshis/kB
223
+ * @param {Number} params.maxNumInputsToUse - the number of unspents you want to use in the transaction
224
+ * @param {Number} params.numUnspentsToMake - the number of new unspents to make
225
+ */
226
+ fanoutUnspents(params?: FanoutUnspentsOptions): Promise<any>;
227
+ /**
228
+ * Set the token flush thresholds for the wallet. Updates the wallet.
229
+ * Tokens will only be flushed from forwarder contracts if the balance is greater than the threshold defined here.
230
+ * @param thresholds {Object} - pairs of { [tokenName]: threshold } (base units)
231
+ */
232
+ updateTokenFlushThresholds(thresholds?: any): Promise<any>;
233
+ /**
234
+ * Updates the wallet. Sets flags for deployForwardersManually and flushForwardersManually of the wallet.
235
+ * @param forwarderFlags {Object} - {
236
+ "coinSpecific": {
237
+ [coinName]: {
238
+ "deployForwardersManually": {Boolean},
239
+ "flushForwardersManually": {Boolean}
240
+ }
241
+ }
242
+ }
243
+ */
244
+ updateForwarders(forwarderFlags?: any): Promise<any>;
245
+ /**
246
+ * To manually deploy an ETH address
247
+ *
248
+ * @param {Object} params - parameters object
249
+ * @param {String} [params.address] - addressId
250
+ * @param {String} [params.id] - addressId could be received also as id
251
+ * @returns {Object} Http response
252
+ */
253
+ deployForwarders(params: DeployForwardersOptions): Promise<any>;
254
+ /**
255
+ * To manually forward tokens from an ETH or CELO address
256
+ *
257
+ * @param {Object} params - parameters object
258
+ * @param {String} params.tokenName - Name of token that needs to be forwarded from the address
259
+ * @param {String} [params.address] -
260
+ * @param {String} [params.address] - addressId
261
+ * @param {String} [params.id] - addressId could be received also as id
262
+ * @param {String} [params.gasPrice] - Explicit gas price to use when forwarding token from the forwarder contract (ETH and Celo only). If not given, defaults to the current estimated network gas price.
263
+ * @param {String} [params.eip1559] - Specify eip1559 fee parameters in token forwarding transaction.
264
+ * @returns {Object} Http response
265
+ */
266
+ flushForwarderToken(params: FlushForwarderTokenOptions): Promise<any>;
267
+ /**
268
+ * Sweep funds for a wallet
269
+ *
270
+ * @param {Object} params - parameters object
271
+ * @param {String} params.address - The address to send all the funds in the wallet to
272
+ * @param {String} params.walletPassphrase - the users wallet passphrase
273
+ * @param {String} params.xprv - the private key in string form if the walletPassphrase is not available
274
+ * @param {String} params.otp - Two factor auth code to enable sending the transaction
275
+ * @param {Number} params.feeTxConfirmTarget - Estimate the fees to aim for first confirmation within this number of blocks
276
+ * @param {Number} params.feeRate - The desired fee rate for the transaction in satoshis/kB
277
+ * @param {Number} [params.maxFeeRate] - upper limit for feeRate in satoshis/kB
278
+ * @param {Boolean} [params.allowPartialSweep] - allows sweeping 200 unspents when the wallet has more than that
279
+ * @returns txHex {String} the txHex of the signed transaction
280
+ */
281
+ sweep(params?: SweepOptions): Promise<any>;
282
+ /**
283
+ * Freeze a given wallet
284
+ * @param params
285
+ * @returns {*}
286
+ */
287
+ freeze(params?: FreezeOptions): Promise<any>;
288
+ /**
289
+ * Update comment of a transfer
290
+ * @param params
291
+ * @returns {*}
292
+ */
293
+ transferComment(params?: TransferCommentOptions): Promise<any>;
294
+ /**
295
+ * List the addresses for a given wallet
296
+ * @param params
297
+ * @returns {*}
298
+ */
299
+ addresses(params?: AddressesOptions): Promise<any>;
300
+ /**
301
+ * Get a single wallet address by its id
302
+ * @param params
303
+ * @returns {*}
304
+ */
305
+ getAddress(params?: GetAddressOptions): Promise<any>;
306
+ /**
307
+ * Create one or more new address(es) for use with this wallet.
308
+ *
309
+ * If the `count` field is defined and greater than 1, an object with a single
310
+ * array property named `addresses` containing `count` address objects
311
+ * will be returned. Otherwise, a single address object is returned.
312
+ *
313
+ * @param params
314
+ * @param {Number} params.chain on which the new address should be created
315
+ * @param {(Number|String)} params.gasPrice gas price for new address creation, if applicable
316
+ * @param {String} params.label label for the new address(es)
317
+ * @param {String} params.label label for the new address(es)
318
+ * @param {Number} params.count=1 number of new addresses which should be created (maximum 250)
319
+ * @param {Number} params.forwarderVersion The version of address to create, if applicable
320
+ * @param {Boolean} params.lowPriority Ethereum-specific param to create address using low priority fee address
321
+ * @param {String} params.baseAddress base address of the wallet(optional parameter)
322
+ * @param {Boolean} params.allowSkipVerifyAddress When set to false, it throws error if address verification is skipped for any reason. Default is true.
323
+ * @param {String} [params.derivedAddress] Derived address
324
+ * @param {Number} [params.index] Index of the derived address
325
+ * @param {String} [params.passphrase] passphrase
326
+ * Address verification can be skipped when forwarderVersion is 0 and pendingChainInitialization is true OR
327
+ * if 'coinSpecific' is not part of the response from api call to create address
328
+ */
329
+ createAddress(params?: CreateAddressOptions): Promise<any>;
330
+ /**
331
+ * Update properties on an address
332
+ * @param params
333
+ * @returns {*}
334
+ */
335
+ updateAddress(params?: UpdateAddressOptions): Promise<any>;
336
+ /**
337
+ * List webhooks on this wallet
338
+ * @param params
339
+ */
340
+ listWebhooks(params?: PaginationOptions): Promise<any>;
341
+ /**
342
+ * Simulate wallet webhook, currently for webhooks of type transfer and pending approval
343
+ * @param params
344
+ * - webhookId (required) id of the webhook to be simulated
345
+ * - transferId (optional but required for transfer webhooks) id of the simulated transfer
346
+ * - pendingApprovalId (optional but required for pending approval webhooks) id of the simulated pending approval
347
+ * @returns {*}
348
+ */
349
+ simulateWebhook(params?: SimulateWebhookOptions): Promise<any>;
350
+ /**
351
+ * Add a webhook to this wallet
352
+ * @param params
353
+ */
354
+ addWebhook(params?: ModifyWebhookOptions): Promise<any>;
355
+ /**
356
+ * Remove a webhook from this wallet
357
+ * @param params
358
+ */
359
+ removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
360
+ /**
361
+ * Gets the user key chain for this wallet
362
+ *
363
+ * The user key chain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
364
+ * Useful when trying to get the users' keychain from the server before decrypting to sign a transaction.
365
+ * @param params
366
+ */
367
+ getEncryptedUserKeychain(params?: Record<string, never>): Promise<{
368
+ encryptedPrv: string;
369
+ }>;
370
+ /**
371
+ * Gets the unencrypted private key for this wallet (be careful!)
372
+ * Requires wallet passphrase
373
+ *
374
+ * @param params
375
+ */
376
+ getPrv(params?: GetPrvOptions): Promise<any>;
377
+ /**
378
+ * Send an encrypted wallet share to BitGo.
379
+ * @param params
380
+ */
381
+ createShare(params?: CreateShareOptions): Promise<any>;
382
+ /**
383
+ * Share this wallet with another BitGo user.
384
+ * @param params
385
+ * @returns {*}
386
+ */
387
+ shareWallet(params?: ShareWalletOptions): Promise<any>;
388
+ /**
389
+ * Remove user from wallet
390
+ * @param params
391
+ * - userId Id of the user to remove
392
+ * @return {*}
393
+ */
394
+ removeUser(params?: RemoveUserOptions): Promise<any>;
395
+ /**
396
+ * Fetch a transaction prebuild (unsigned transaction) from BitGo
397
+ *
398
+ * @param {Object} params
399
+ * @param {{address: string, amount: string}} params.recipients - list of recipients and necessary recipient information
400
+ * @param {Number} params.numBlocks - Estimates the approximate fee per kilobyte necessary for a transaction confirmation within numBlocks blocks
401
+ * @param {Number} params.feeRate - the desired feeRate for the transaction in base units/kB
402
+ * @param {Number} params.maxFeeRate - upper limit for feeRate in base units/kB
403
+ * @param {Number} params.minConfirms - Minimum number of confirmations unspents going into this transaction should have
404
+ * @param {Boolean} params.enforceMinConfirmsForChange - Enforce minimum number of confirmations on change (internal) inputs.
405
+ * @param {Number} params.targetWalletUnspents - The desired count of unspents in the wallet. If the wallet’s current unspent count is lower than the target, up to four additional change outputs will be added to the transaction.
406
+ * @param {Number} params.minValue - Ignore unspents smaller than this amount of base units
407
+ * @param {Number} params.maxValue - Ignore unspents larger than this amount of base units
408
+ * @param {Number} params.sequenceId - The sequence ID of the transaction
409
+ * @param {Number} params.lastLedgerSequence - Absolute max ledger the transaction should be accepted in, whereafter it will be rejected.
410
+ * @param {Number} params.ledgerSequenceDelta - Relative ledger height (in relation to the current ledger) that the transaction should be accepted in, whereafter it will be rejected.
411
+ * @param {Number} params.gasPrice - Custom gas price to be used for sending the transaction
412
+ * @param {Number} params.gasLimit - Custom gas limit to be used for sending the transaction
413
+ * @param {Boolean} params.noSplitChange - Set to true to disable automatic change splitting for purposes of unspent management
414
+ * @param {Array} params.unspents - The unspents to use in the transaction. Each unspent should be in the form prevTxId:nOutput
415
+ * @param {String} params.changeAddress - Specifies the destination of the change output
416
+ * @param {Boolean} params.nonParticipation - (Algorand) Non participating key reg transaction
417
+ * @param {Number} params.validFromBlock - (Algorand) The minimum round this will run on
418
+ * @param {Number} params.validToBlock - (Algorand) The maximum round this will run on
419
+ * @param {Boolean} params.instant - Build this transaction to conform with instant sending coin-specific method (if available)
420
+ * @param {{value: String, type: String}} params.memo - Memo to use in transaction (supported by Stellar)
421
+ * @param {String} param.transferId - transfer Id to use in transaction (supported by casper)
422
+ * @param {String} params.addressType - The type of address to create for change. One of `p2sh`, `p2shP2wsh`, and `p2wsh`. Case-sensitive.
423
+ * @param {Boolean} params.hop - Build this as an Ethereum hop transaction
424
+ * @param {Object} params.reservation - Object to reserve the unspents that this tx build uses. Format is reservation = { expireTime: ISODateString, pendingApprovalId: String }
425
+ * @param {String} params.walletPassphrase The passphrase to the wallet user key, to sign commitment data for Ethereum hop transactions
426
+ * @param {String} params.walletContractAddress - The contract address used as the "to" field of a transaction
427
+ * @returns {*}
428
+ */
429
+ prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
430
+ /**
431
+ * Sign a transaction
432
+ * @param params
433
+ * - txPrebuild
434
+ * - [keychain / key] (object) or prv (string)
435
+ * - walletPassphrase
436
+ * @return {*}
437
+ */
438
+ signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction>;
439
+ /**
440
+ * Get the user private key from either a derivation or an encrypted keychain
441
+ * @param [params.keychain / params.key] (object) or params.prv (string)
442
+ * @param params.walletPassphrase (string)
443
+ */
444
+ getUserPrv(params?: GetUserPrvOptions): string;
445
+ /**
446
+ * Get a transaction prebuild from BitGo, validate it, and then decrypt the user key and sign the transaction
447
+ * @param params
448
+ */
449
+ prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
450
+ /**
451
+ * Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP)
452
+ * @param params
453
+ */
454
+ accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
455
+ /**
456
+ * Submit a half-signed transaction to BitGo
457
+ * @param params
458
+ * - txHex: transaction hex to submit
459
+ * - halfSigned: object containing transaction (txHex or txBase64) to submit
460
+ */
461
+ submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
462
+ /**
463
+ * Send coins to a recipient
464
+ * @param params
465
+ * @param params.address - the destination address
466
+ * @param params.amount - the amount in satoshis/wei/base value to be sent
467
+ * @param params.message - optional message to attach to transaction
468
+ * @param params.data - [Ethereum Specific] optional data to pass to transaction
469
+ * @param params.custodianTransactionId - [Ethereum/MMI Specific] id of transaction created via metamask
470
+ * @param params.walletPassphrase - the passphrase to be used to decrypt the user key on this wallet
471
+ * @param params.prv - the private key in string form, if walletPassphrase is not available
472
+ * @param params.minConfirms - the minimum confirmation threshold for inputs
473
+ * @param params.enforceMinConfirmsForChange - whether to enforce minConfirms for change inputs
474
+ * @returns {*}
475
+ */
476
+ send(params?: SendOptions): Promise<any>;
477
+ /**
478
+ * Send money to multiple recipients
479
+ * 1. Gets the user keychain by checking the wallet for a key which has an encrypted prv
480
+ * 2. Decrypts user key
481
+ * 3. Creates the transaction with default fee
482
+ * 4. Signs transaction with decrypted user key
483
+ * 5. Sends the transaction to BitGo
484
+ * @param {object} params
485
+ * @param {{address: string, amount: string}} params.recipients - list of recipients and necessary recipient information
486
+ * @param {Number} params.numBlocks - Estimates the approximate fee per kilobyte necessary for a transaction confirmation within numBlocks blocks
487
+ * @param {Number} params.feeRate - the desired feeRate for the transaction in satothis/kB
488
+ * @param {Number} params.maxFeeRate - upper limit for feeRate in satoshis/kB
489
+ * @param {Number} params.minConfirms - all selected unspents will have at least this many confirmations
490
+ * @param {Boolean} params.enforceMinConfirmsForChange - Enforces minConfirms on change inputs
491
+ * @param {Number} params.targetWalletUnspents - The desired count of unspents in the wallet
492
+ * @param {String} params.message - optional message to attach to transaction
493
+ * @param {Number} params.minValue - Ignore unspents smaller than this amount of satoshis
494
+ * @param {Number} params.maxValue - Ignore unspents larger than this amount of satoshis
495
+ * @param {Number} params.sequenceId - The sequence ID of the transaction
496
+ * @param {Number} params.lastLedgerSequence - Absolute max ledger the transaction should be accepted in, whereafter it will be rejected.
497
+ * @param {Number} params.ledgerSequenceDelta - Relative ledger height (in relation to the current ledger) that the transaction should be accepted in, whereafter it will be rejected.
498
+ * @param {Number} params.gasPrice - Custom gas price to be used for sending the transaction
499
+ * @param {Boolean} params.noSplitChange - Set to true to disable automatic change splitting for purposes of unspent management
500
+ * @param {Array} params.unspents - The unspents to use in the transaction. Each unspent should be in the form prevTxId:nOutput
501
+ * @param {String} params.comment - Any additional comment to attach to the transaction
502
+ * @param {String} params.otp - Two factor auth code to enable sending the transaction
503
+ * @param {String} params.changeAddress - Specifies the destination of the change output
504
+ * @param {Boolean} params.instant - Send this transaction using coin-specific instant sending method (if available)
505
+ * @param {{value: String, type: String}} params.memo - Memo to use in transaction (supported by Stellar)
506
+ * @param {String} params.type - Type of the transaction (e.g. trustline)
507
+ * @param {{token: params, action: String, limit: String}[]} options.trustlines - Array of trustlines to manage (supported by Stellar)
508
+ * @returns {*}
509
+ */
510
+ sendMany(params?: SendManyOptions): Promise<any>;
511
+ /**
512
+ * Recover an unsupported token from a BitGo multisig wallet
513
+ * params are validated in Eth.prototype.recoverToken
514
+ * @param params
515
+ * @param params.tokenContractAddress the contract address of the unsupported token
516
+ * @param params.recipient the destination address recovered tokens should be sent to
517
+ * @param params.walletPassphrase the wallet passphrase
518
+ * @param params.prv the xprv
519
+ */
520
+ recoverToken(params?: RecoverTokenOptions): Promise<any>;
521
+ /**
522
+ * Get transaction metadata for the oldest transaction that is still pending or attempted
523
+ * @param params
524
+ * @returns {Object} Object with txid, walletId, tx, and fee (if supported for coin)
525
+ */
526
+ getFirstPendingTransaction(params?: Record<string, never>): Promise<any>;
527
+ /**
528
+ * Change the fee on the pending transaction that corresponds to the given txid to the given new fee
529
+ * @param params
530
+ * @param {String} params.txid The transaction Id corresponding to the transaction whose fee is to be changed
531
+ * @param {String} params.fee The new fee to apply to the denoted transaction
532
+ * @returns {String} The transaction ID of the new transaction that contains the new fee rate
533
+ */
534
+ changeFee(params?: ChangeFeeOptions): Promise<any>;
535
+ /**
536
+ * Fetch info from merchant server
537
+ * @param {Object} params The params passed into the function
538
+ * @param {String} params.url The Url to retrieve info from
539
+ * @returns {Object} The info returned from the merchant server
540
+ * @deprecated
541
+ */
542
+ getPaymentInfo(params?: {
543
+ url?: string;
544
+ }): Promise<any>;
545
+ /**
546
+ * Send json payment response
547
+ * @param {Object} params The params passed into the function
548
+ * @param {String} params.paymentUrl - The url to send the fully signed transaction to
549
+ * @param {String} params.txHex - The transaction hex of the payment
550
+ * @param {String} params.memo {String} - A memo supplied by the merchant, to be inserted into the transfer as the comment
551
+ * @param {String} params.expires {String} - ISO Date format of when the payment request expires
552
+ * @returns {Object} The info returned from the merchant server Payment Ack
553
+ * @deprecated
554
+ */
555
+ sendPaymentResponse(params?: any): Promise<any>;
556
+ /**
557
+ * Create a policy rule
558
+ * @param params
559
+ * @param params.condition condition object
560
+ * @param params.action action object
561
+ * @returns {*}
562
+ */
563
+ createPolicyRule(params?: CreatePolicyRuleOptions): Promise<any>;
564
+ /**
565
+ * Update a policy rule
566
+ * @param params
567
+ * @param params.condition condition object
568
+ * @param params.action action object
569
+ * @returns {*}
570
+ */
571
+ setPolicyRule(params?: any): Promise<any>;
572
+ /**
573
+ * Remove Policy Rule
574
+ * @param params
575
+ * @returns {*}
576
+ */
577
+ removePolicyRule(params?: RemovePolicyRuleOptions): Promise<any>;
578
+ /**
579
+ * Remove this wallet
580
+ * @param params
581
+ * @returns {*}
582
+ */
583
+ remove(params?: Record<string, never>): Promise<any>;
584
+ /**
585
+ * Extract a JSON representable version of this wallet
586
+ */
587
+ toJSON(): WalletData;
588
+ /**
589
+ * Create a trading account from this wallet
590
+ */
591
+ toTradingAccount(): TradingAccount;
592
+ /**
593
+ * Creates and downloads PDF keycard for wallet (requires response from wallets.generateWallet)
594
+ *
595
+ * Note: this is example code and is not the version used on bitgo.com
596
+ *
597
+ * @param params
598
+ * * jsPDF - an instance of the jsPDF library
599
+ * * QRCode - an instance of the QRious library
600
+ * * userKeychain - a wallet's private user keychain
601
+ * * backupKeychain - a wallet's private backup keychain
602
+ * * bitgoKeychain - a wallet's private bitgo keychain
603
+ * * passphrase - the wallet passphrase
604
+ * * passcodeEncryptionCode - the encryption secret used for Box D
605
+ * * activationCode - a randomly generated six-digit activation code
606
+ * * walletKeyID - the Key ID used for deriving a cold wallet's signing key
607
+ * * backupKeyID - the Key ID used for deriving a cold wallet's backup key
608
+ * @returns {*}
609
+ */
610
+ downloadKeycard(params?: DownloadKeycardOptions): void;
611
+ /**
612
+ * Builds a set of consolidation transactions for a wallet.
613
+ * @param params
614
+ * consolidateAddresses - these are the on-chain receive addresses we want to pick a consolidation amount from
615
+ */
616
+ buildAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<PrebuildTransactionResult[]>;
617
+ /**
618
+ * Builds and sends a set of consolidation transactions for a wallet.
619
+ * @param params
620
+ * prebuildTx - this is the pre-build consolidation tx. this is a normally built tx with
621
+ * an additional parameter of consolidateId.
622
+ * verification - normal keychains, etc. for verification
623
+ */
624
+ sendAccountConsolidation(params?: PrebuildAndSignTransactionOptions): Promise<any>;
625
+ /**
626
+ * Builds and sends a set of account consolidations. This is intended to flush many balances to the root wallet balance.
627
+ * @param params -
628
+ * consolidateAddresses - these are the on-chain receive addresses we want to pick a consolidation amount from
629
+ */
630
+ sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
631
+ /**
632
+ * Prebuilds a transaction for a TSS wallet.
633
+ *
634
+ * @param params prebuild transaction options
635
+ */
636
+ private prebuildTransactionTss;
637
+ /**
638
+ * Signs a transaction from a TSS wallet.
639
+ *
640
+ * @param params signing options
641
+ */
642
+ private signTransactionTss;
643
+ /**
644
+ * Builds, signs, and sends a transaction from a TSS wallet.
645
+ *
646
+ * @param params send options
647
+ */
648
+ private sendManyTss;
649
+ }
650
+ //# sourceMappingURL=wallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../../../src/bitgo/wallet/wallet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EACL,SAAS,EACT,iBAAiB,EAIlB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,OAAO,EAAE,gBAAgB,EAAmB,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EACL,4BAA4B,EAC5B,gBAAgB,EAChB,oCAAoC,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