@bitgo/sdk-core 1.1.0-rc.2 → 1.1.0-rc.22

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