@cobo/cobo-waas2 1.2.1 → 1.4.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 (364) hide show
  1. package/README.md +44 -11
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/PreRequestScript.js +3 -3
  4. package/dist/api/DevelopersWebhooksApi.js +1 -1
  5. package/dist/api/OAuthApi.js +15 -15
  6. package/dist/api/StakingsApi.js +538 -0
  7. package/dist/api/TransactionsApi.js +113 -11
  8. package/dist/api/WalletsApi.js +3 -62
  9. package/dist/api/WalletsExchangeWalletApi.js +5 -5
  10. package/dist/api/WalletsMPCWalletsApi.js +3 -3
  11. package/dist/index.js +161 -0
  12. package/dist/model/Activity.js +21 -12
  13. package/dist/model/ActivityAction.js +1 -1
  14. package/dist/model/ActivityInitiator.js +8 -8
  15. package/dist/model/ActivityStatus.js +1 -1
  16. package/dist/model/ActivityTimeline.js +4 -2
  17. package/dist/model/ActivityType.js +1 -16
  18. package/dist/model/AddressBook.js +202 -0
  19. package/dist/model/AddressEncoding.js +1 -1
  20. package/dist/model/AddressInfo.js +40 -1
  21. package/dist/model/AddressTransferDestination.js +4 -4
  22. package/dist/model/AddressTransferDestinationAccountOutput.js +3 -3
  23. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +2 -2
  24. package/dist/model/AmountDetailsInner.js +1 -14
  25. package/dist/model/AmountStatus.js +1 -1
  26. package/dist/model/AssetBalance.js +1 -1
  27. package/dist/model/AssetInfo.js +1 -1
  28. package/dist/model/BabylonStakeExtra.js +10 -10
  29. package/dist/model/BabylonStakingExtra.js +175 -0
  30. package/dist/model/BabylonValidator.js +35 -15
  31. package/dist/model/BaseContractCallSource.js +2 -2
  32. package/dist/model/BaseEstimateStakingFee.js +1 -1
  33. package/dist/model/BaseStakeExtra.js +2 -2
  34. package/dist/model/BaseStakeSource.js +137 -0
  35. package/dist/model/BookkeepingRecord.js +243 -0
  36. package/dist/model/BookkeepingSummary.js +150 -0
  37. package/dist/model/BroadcastSignedTransactions201ResponseInner.js +125 -0
  38. package/dist/model/BroadcastSignedTransactionsRequest.js +87 -0
  39. package/dist/model/ChainInfo.js +10 -1
  40. package/dist/model/CheckAddressValidity200Response.js +1 -1
  41. package/dist/model/CheckAddressesValidity200ResponseInner.js +1 -1
  42. package/dist/model/CheckLoopTransfers200ResponseInner.js +2 -2
  43. package/dist/model/CoboSafeDelegate.js +1 -1
  44. package/dist/model/CoboSafeDelegateType.js +1 -1
  45. package/dist/model/ContractCallDestination.js +3 -3
  46. package/dist/model/ContractCallDestinationType.js +1 -1
  47. package/dist/model/ContractCallParams.js +1 -1
  48. package/dist/model/ContractCallSource.js +1 -7
  49. package/dist/model/ContractCallSourceType.js +1 -1
  50. package/dist/model/CreateAddressRequest.js +1 -1
  51. package/dist/model/CreateCustodialWalletParams.js +1 -1
  52. package/dist/model/CreateExchangeWalletParams.js +1 -1
  53. package/dist/model/CreateKeyShareHolder.js +3 -3
  54. package/dist/model/CreateKeyShareHolderGroupRequest.js +1 -1
  55. package/dist/model/CreateMpcProjectRequest.js +1 -1
  56. package/dist/model/CreateMpcVaultRequest.js +1 -1
  57. package/dist/model/CreateMpcWalletParams.js +1 -1
  58. package/dist/model/CreateSafeWalletParams.js +1 -1
  59. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  60. package/dist/model/CreateStakeActivity.js +5 -5
  61. package/dist/model/CreateStakeActivity201Response.js +123 -0
  62. package/dist/model/CreateStakeActivityExtra.js +14 -82
  63. package/dist/model/CreateStakeActivityRequest.js +246 -0
  64. package/dist/model/CreateTransferTransaction201Response.js +1 -1
  65. package/dist/model/CreateTssRequestRequest.js +1 -1
  66. package/dist/model/CreateUnstakeActivity.js +4 -4
  67. package/dist/model/CreateUnstakeActivityRequest.js +200 -0
  68. package/dist/model/CreateWalletParams.js +1 -1
  69. package/dist/model/CreateWebhookEndpointRequest.js +1 -1
  70. package/dist/model/CreateWithdrawActivity.js +5 -5
  71. package/dist/model/CreateWithdrawActivityRequest.js +220 -0
  72. package/dist/model/CreatedWalletInfo.js +1 -1
  73. package/dist/model/CurveType.js +1 -1
  74. package/dist/model/CustodialTransferSource.js +2 -2
  75. package/dist/model/CustodialWalletInfo.js +1 -1
  76. package/dist/model/DeleteKeyShareHolderGroupById201Response.js +1 -1
  77. package/dist/model/DeleteWalletById201Response.js +1 -1
  78. package/dist/model/EigenLayerLstStakeExtra.js +2 -2
  79. package/dist/model/EigenLayerNativeStakeExtra.js +1 -1
  80. package/dist/model/EigenlayerValidator.js +1 -1
  81. package/dist/model/ErrorResponse.js +1 -1
  82. package/dist/model/EstimateContractCallFeeParams.js +1 -1
  83. package/dist/model/EstimateFeeParams.js +2 -2
  84. package/dist/model/EstimateFeeRequestType.js +1 -1
  85. package/dist/model/EstimateStakeFee.js +7 -7
  86. package/dist/model/EstimateTransferFeeParams.js +1 -1
  87. package/dist/model/EstimateUnstakeFee.js +6 -6
  88. package/dist/model/EstimateWithdrawFee.js +8 -8
  89. package/dist/model/EstimatedEvmEip1559Fee.js +1 -1
  90. package/dist/model/EstimatedEvmEip1559FeeSlow.js +1 -1
  91. package/dist/model/EstimatedEvmLegacyFee.js +1 -1
  92. package/dist/model/EstimatedEvmLegacyFeeSlow.js +1 -1
  93. package/dist/model/EstimatedFee.js +1 -1
  94. package/dist/model/EstimatedFixedFee.js +1 -1
  95. package/dist/model/EstimatedUtxoFee.js +1 -1
  96. package/dist/model/EstimatedUtxoFeeSlow.js +1 -1
  97. package/dist/model/EvmContractCallDestination.js +9 -5
  98. package/dist/model/EvmEIP191MessageSignDestination.js +2 -2
  99. package/dist/model/EvmEIP712MessageSignDestination.js +2 -2
  100. package/dist/model/EvmEip1559FeeBasePrice.js +1 -1
  101. package/dist/model/EvmEip1559FeeRate.js +1 -1
  102. package/dist/model/EvmLegacyFeeBasePrice.js +1 -1
  103. package/dist/model/EvmLegacyFeeRate.js +1 -1
  104. package/dist/model/ExchangeId.js +1 -1
  105. package/dist/model/ExchangeTransferDestination.js +4 -4
  106. package/dist/model/ExchangeTransferSource.js +2 -2
  107. package/dist/model/ExchangeWalletInfo.js +1 -1
  108. package/dist/model/ExtendedTokenInfo.js +37 -1
  109. package/dist/model/FeeAmount.js +1 -1
  110. package/dist/model/FeeGasLimit.js +1 -1
  111. package/dist/model/FeeRate.js +1 -1
  112. package/dist/model/FeeType.js +1 -1
  113. package/dist/model/FixedFeeRate.js +1 -1
  114. package/dist/model/GetStakingEstimationFee201Response.js +109 -0
  115. package/dist/model/GetStakingEstimationFeeRequest.js +256 -0
  116. package/dist/model/GetToken200Response.js +5 -5
  117. package/dist/model/GetToken4XXResponse.js +1 -1
  118. package/dist/model/KeyShareHolder.js +2 -2
  119. package/dist/model/KeyShareHolderGroup.js +1 -1
  120. package/dist/model/KeyShareHolderGroupStatus.js +1 -1
  121. package/dist/model/KeyShareHolderGroupType.js +1 -1
  122. package/dist/model/KeyShareHolderStatus.js +1 -1
  123. package/dist/model/KeyShareHolderType.js +1 -1
  124. package/dist/model/ListAddresses200Response.js +1 -1
  125. package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +1 -1
  126. package/dist/model/ListExchanges200ResponseInner.js +1 -1
  127. package/dist/model/ListKeyShareHolderGroups200Response.js +1 -1
  128. package/dist/model/ListMpcProjects200Response.js +1 -1
  129. package/dist/model/ListMpcVaults200Response.js +1 -1
  130. package/dist/model/ListStakingActivities200Response.js +123 -0
  131. package/dist/model/ListStakingPools200Response.js +123 -0
  132. package/dist/model/ListStakings200Response.js +123 -0
  133. package/dist/model/ListSupportedAssetsForExchange200Response.js +1 -1
  134. package/dist/model/ListSupportedChains200Response.js +1 -1
  135. package/dist/model/ListSupportedTokens200Response.js +1 -1
  136. package/dist/model/ListTokenBalancesForAddress200Response.js +1 -1
  137. package/dist/model/ListTransactions200Response.js +1 -1
  138. package/dist/model/ListTssRequests200Response.js +1 -1
  139. package/dist/model/ListUtxos200Response.js +1 -1
  140. package/dist/model/ListWallets200Response.js +1 -1
  141. package/dist/model/ListWebhookEndpoints200Response.js +1 -1
  142. package/dist/model/ListWebhookEventDefinitions200ResponseInner.js +1 -1
  143. package/dist/model/ListWebhookEventLogs200Response.js +1 -1
  144. package/dist/model/ListWebhookEvents200Response.js +1 -1
  145. package/dist/model/LockUtxos201Response.js +1 -1
  146. package/dist/model/LockUtxosRequest.js +1 -1
  147. package/dist/model/LockUtxosRequestUtxosInner.js +1 -1
  148. package/dist/model/MPCDelegate.js +1 -1
  149. package/dist/model/MPCProject.js +1 -1
  150. package/dist/model/MPCVault.js +1 -1
  151. package/dist/model/MPCVaultType.js +1 -1
  152. package/dist/model/MPCWalletInfo.js +1 -1
  153. package/dist/model/MaxFeeAmount.js +1 -1
  154. package/dist/model/MaxTransferableValue.js +1 -1
  155. package/dist/model/MessageSignDestination.js +3 -3
  156. package/dist/model/MessageSignDestinationType.js +1 -1
  157. package/dist/model/MessageSignParams.js +2 -2
  158. package/dist/model/MessageSignSource.js +1 -1
  159. package/dist/model/MessageSignSourceType.js +1 -1
  160. package/dist/model/MpcContractCallSource.js +1 -10
  161. package/dist/model/MpcMessageSignSource.js +1 -1
  162. package/dist/model/MpcSigningGroup.js +1 -1
  163. package/dist/model/MpcStakeSource.js +156 -0
  164. package/dist/model/MpcTransferSource.js +2 -2
  165. package/dist/model/Pagination.js +1 -1
  166. package/dist/model/PoolDetails.js +27 -27
  167. package/dist/model/PoolDetailsAllOfValidatorsInfo.js +35 -46
  168. package/dist/model/PoolSummary.js +14 -14
  169. package/dist/model/RawMessageSignDestination.js +122 -0
  170. package/dist/model/RefreshToken200Response.js +5 -5
  171. package/dist/model/RefreshTokenRequest.js +3 -3
  172. package/dist/model/ReplaceType.js +1 -1
  173. package/dist/model/RetryWebhookEventById201Response.js +1 -1
  174. package/dist/model/RootPubkey.js +1 -1
  175. package/dist/model/SafeContractCallSource.js +2 -2
  176. package/dist/model/SafeTransferSource.js +2 -2
  177. package/dist/model/SafeWallet.js +1 -1
  178. package/dist/model/SmartContractInitiator.js +1 -1
  179. package/dist/model/SmartContractWalletInfo.js +1 -1
  180. package/dist/model/SmartContractWalletOperationType.js +1 -1
  181. package/dist/model/SmartContractWalletType.js +1 -1
  182. package/dist/model/SourceGroup.js +1 -1
  183. package/dist/model/StakeSourceType.js +56 -0
  184. package/dist/model/StakingPoolType.js +1 -11
  185. package/dist/model/StakingSource.js +24 -68
  186. package/dist/model/Stakings.js +35 -63
  187. package/dist/model/StakingsExtra.js +182 -0
  188. package/dist/model/StakingsValidatorInfo.js +7 -2
  189. package/dist/model/SubWalletAssetBalance.js +1 -1
  190. package/dist/model/TSSGroups.js +1 -1
  191. package/dist/model/TSSRequest.js +1 -1
  192. package/dist/model/TSSRequestStatus.js +6 -1
  193. package/dist/model/TSSRequestType.js +1 -1
  194. package/dist/model/TSSRequestWebhookEventData.js +1 -1
  195. package/dist/model/TokenBalance.js +1 -1
  196. package/dist/model/TokenBalanceBalance.js +1 -1
  197. package/dist/model/TokenInfo.js +27 -1
  198. package/dist/model/Transaction.js +1 -1
  199. package/dist/model/TransactionApprover.js +1 -1
  200. package/dist/model/TransactionBlockInfo.js +1 -1
  201. package/dist/model/TransactionCustodialAssetWalletSource.js +2 -2
  202. package/dist/model/TransactionDepositFromAddressSource.js +2 -2
  203. package/dist/model/TransactionDepositFromLoopSource.js +2 -2
  204. package/dist/model/TransactionDepositFromWalletSource.js +2 -2
  205. package/dist/model/TransactionDepositToAddressDestination.js +4 -4
  206. package/dist/model/TransactionDepositToWalletDestination.js +4 -4
  207. package/dist/model/TransactionDestination.js +3 -3
  208. package/dist/model/TransactionDestinationType.js +1 -1
  209. package/dist/model/TransactionDetail.js +1 -1
  210. package/dist/model/TransactionDetails.js +1 -1
  211. package/dist/model/TransactionEvmContractDestination.js +9 -5
  212. package/dist/model/TransactionEvmEip1559Fee.js +2 -2
  213. package/dist/model/TransactionEvmLegacyFee.js +2 -2
  214. package/dist/model/TransactionExchangeWalletSource.js +2 -2
  215. package/dist/model/TransactionFee.js +1 -1
  216. package/dist/model/TransactionFeeStationWalletSource.js +1 -1
  217. package/dist/model/TransactionFixedFee.js +2 -2
  218. package/dist/model/TransactionInitiatorType.js +1 -1
  219. package/dist/model/TransactionMPCWalletSource.js +2 -2
  220. package/dist/model/TransactionMessageSignEIP191Destination.js +2 -2
  221. package/dist/model/TransactionMessageSignEIP712Destination.js +2 -2
  222. package/dist/model/TransactionRawTxInfo.js +1 -1
  223. package/dist/model/TransactionRbf.js +1 -1
  224. package/dist/model/TransactionRbfSource.js +1 -1
  225. package/dist/model/TransactionReplacement.js +1 -1
  226. package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
  227. package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
  228. package/dist/model/TransactionRequestFee.js +1 -1
  229. package/dist/model/TransactionRequestFixedFee.js +2 -2
  230. package/dist/model/TransactionRequestUtxoFee.js +2 -2
  231. package/dist/model/TransactionResend.js +1 -1
  232. package/dist/model/TransactionResult.js +1 -1
  233. package/dist/model/TransactionResultType.js +1 -1
  234. package/dist/model/TransactionSignatureResult.js +2 -2
  235. package/dist/model/TransactionSigner.js +1 -1
  236. package/dist/model/TransactionSmartContractSafeWalletSource.js +2 -2
  237. package/dist/model/TransactionSource.js +1 -1
  238. package/dist/model/TransactionSourceType.js +1 -1
  239. package/dist/model/TransactionStatus.js +1 -6
  240. package/dist/model/TransactionSubStatus.js +41 -6
  241. package/dist/model/TransactionTimeline.js +1 -1
  242. package/dist/model/TransactionTokeApproval.js +37 -1
  243. package/dist/model/TransactionTokenAmount.js +1 -1
  244. package/dist/model/TransactionTransferToAddressDestination.js +2 -2
  245. package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +2 -2
  246. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +2 -2
  247. package/dist/model/TransactionTransferToWalletDestination.js +4 -4
  248. package/dist/model/TransactionType.js +11 -1
  249. package/dist/model/TransactionUtxo.js +1 -1
  250. package/dist/model/TransactionUtxoFee.js +2 -2
  251. package/dist/model/TransactionWebhookEventData.js +1 -1
  252. package/dist/model/TransferDestination.js +4 -4
  253. package/dist/model/TransferDestinationType.js +1 -1
  254. package/dist/model/TransferParams.js +1 -1
  255. package/dist/model/TransferSource.js +1 -1
  256. package/dist/model/UTXO.js +1 -1
  257. package/dist/model/UpdateCustodialWalletParams.js +1 -1
  258. package/dist/model/UpdateExchangeWalletParams.js +1 -1
  259. package/dist/model/UpdateGroupAction.js +1 -1
  260. package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +1 -1
  261. package/dist/model/UpdateMpcProjectByIdRequest.js +1 -1
  262. package/dist/model/UpdateMpcVaultByIdRequest.js +1 -1
  263. package/dist/model/UpdateMpcWalletParams.js +1 -1
  264. package/dist/model/UpdateSmartContractWalletParams.js +1 -1
  265. package/dist/model/UpdateWalletParams.js +1 -1
  266. package/dist/model/UpdateWebhookEndpointByIdRequest.js +1 -1
  267. package/dist/model/UtxoFeeBasePrice.js +1 -1
  268. package/dist/model/UtxoFeeRate.js +1 -1
  269. package/dist/model/WalletBalanceSnapshot.js +120 -0
  270. package/dist/model/WalletBalanceSnapshotRecord.js +163 -0
  271. package/dist/model/WalletInfo.js +1 -1
  272. package/dist/model/WalletSubtype.js +1 -1
  273. package/dist/model/WalletType.js +1 -1
  274. package/dist/model/WebhookEndpoint.js +1 -1
  275. package/dist/model/WebhookEndpointStatus.js +1 -1
  276. package/dist/model/WebhookEvent.js +1 -1
  277. package/dist/model/WebhookEventData.js +1 -1
  278. package/dist/model/WebhookEventDataType.js +1 -1
  279. package/dist/model/WebhookEventLog.js +1 -1
  280. package/dist/model/WebhookEventStatus.js +1 -1
  281. package/dist/model/WebhookEventType.js +1 -1
  282. package/docs/Activity.md +9 -8
  283. package/docs/ActivityInitiator.md +1 -1
  284. package/docs/ActivityTimeline.md +3 -3
  285. package/docs/ActivityType.md +0 -6
  286. package/docs/AddressBook.md +16 -0
  287. package/docs/AddressInfo.md +3 -0
  288. package/docs/AddressTransferDestination.md +2 -2
  289. package/docs/AddressTransferDestinationAccountOutput.md +1 -1
  290. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
  291. package/docs/AmountDetailsInner.md +0 -1
  292. package/docs/BabylonStakeExtra.md +3 -3
  293. package/docs/BabylonStakingExtra.md +14 -0
  294. package/docs/BabylonValidator.md +6 -5
  295. package/docs/BaseStakeSource.md +11 -0
  296. package/docs/BookkeepingRecord.md +19 -0
  297. package/docs/BookkeepingSummary.md +12 -0
  298. package/docs/BroadcastSignedTransactions201ResponseInner.md +10 -0
  299. package/docs/BroadcastSignedTransactionsRequest.md +9 -0
  300. package/docs/ChainInfo.md +1 -0
  301. package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
  302. package/docs/ContractCallDestination.md +1 -1
  303. package/docs/ContractCallSource.md +0 -1
  304. package/docs/CreateKeyShareHolder.md +2 -2
  305. package/docs/CreateStakeActivity.md +2 -2
  306. package/docs/CreateStakeActivity201Response.md +10 -0
  307. package/docs/CreateStakeActivityExtra.md +3 -5
  308. package/docs/CreateStakeActivityRequest.md +15 -0
  309. package/docs/CreateUnstakeActivity.md +2 -2
  310. package/docs/CreateUnstakeActivityRequest.md +13 -0
  311. package/docs/CreateWithdrawActivity.md +3 -3
  312. package/docs/CreateWithdrawActivityRequest.md +14 -0
  313. package/docs/EigenLayerLstStakeExtra.md +1 -1
  314. package/docs/EstimateStakeFee.md +2 -2
  315. package/docs/EstimateUnstakeFee.md +2 -2
  316. package/docs/EstimateWithdrawFee.md +3 -3
  317. package/docs/EvmContractCallDestination.md +1 -1
  318. package/docs/ExchangeTransferDestination.md +1 -1
  319. package/docs/ExtendedTokenInfo.md +2 -0
  320. package/docs/GetStakingEstimationFee201Response.md +11 -0
  321. package/docs/GetStakingEstimationFeeRequest.md +17 -0
  322. package/docs/GetToken200Response.md +4 -4
  323. package/docs/KeyShareHolder.md +1 -1
  324. package/docs/ListStakingActivities200Response.md +10 -0
  325. package/docs/ListStakingPools200Response.md +10 -0
  326. package/docs/ListStakings200Response.md +10 -0
  327. package/docs/MessageSignParams.md +1 -1
  328. package/docs/MpcContractCallSource.md +0 -1
  329. package/docs/MpcStakeSource.md +11 -0
  330. package/docs/OAuthApi.md +9 -9
  331. package/docs/PoolDetails.md +13 -13
  332. package/docs/PoolDetailsAllOfValidatorsInfo.md +6 -6
  333. package/docs/PoolSummary.md +6 -6
  334. package/docs/RawMessageSignDestination.md +10 -0
  335. package/docs/RefreshToken200Response.md +4 -4
  336. package/docs/RefreshTokenRequest.md +2 -2
  337. package/docs/StakeSourceType.md +10 -0
  338. package/docs/StakingPoolType.md +0 -4
  339. package/docs/StakingSource.md +1 -3
  340. package/docs/Stakings.md +10 -13
  341. package/docs/StakingsApi.md +570 -0
  342. package/docs/StakingsExtra.md +14 -0
  343. package/docs/StakingsValidatorInfo.md +5 -5
  344. package/docs/TSSRequestStatus.md +2 -0
  345. package/docs/TokenInfo.md +2 -0
  346. package/docs/TransactionDepositToAddressDestination.md +1 -1
  347. package/docs/TransactionDepositToWalletDestination.md +1 -1
  348. package/docs/TransactionDestination.md +2 -2
  349. package/docs/TransactionEvmContractDestination.md +1 -1
  350. package/docs/TransactionStatus.md +0 -2
  351. package/docs/TransactionSubStatus.md +16 -2
  352. package/docs/TransactionTokeApproval.md +2 -0
  353. package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
  354. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
  355. package/docs/TransactionTransferToWalletDestination.md +1 -1
  356. package/docs/TransactionType.md +4 -0
  357. package/docs/TransactionsApi.md +111 -3
  358. package/docs/TransferDestination.md +3 -3
  359. package/docs/WalletBalanceSnapshot.md +10 -0
  360. package/docs/WalletBalanceSnapshotRecord.md +13 -0
  361. package/docs/WalletsApi.md +1 -56
  362. package/docs/WalletsExchangeWalletApi.md +2 -2
  363. package/docs/WalletsMPCWalletsApi.md +1 -1
  364. package/package.json +2 -2
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _WalletType = _interopRequireDefault(require("./WalletType"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
+ * Cobo Wallet as a Service 2.0
20
+ *
21
+ * Contact: help@cobo.com
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The AddressBook model module.
30
+ * @module model/AddressBook
31
+ */
32
+ var AddressBook = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>AddressBook</code>.
35
+ * The data for address book entry information.
36
+ * @alias module:model/AddressBook
37
+ * @param org_id {String}
38
+ * @param entry_id {String}
39
+ * @param address {String} address.
40
+ * @param label {String} The label to address.
41
+ */
42
+ function AddressBook(org_id, entry_id, address, label) {
43
+ _classCallCheck(this, AddressBook);
44
+ AddressBook.initialize(this, org_id, entry_id, address, label);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(AddressBook, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, org_id, entry_id, address, label) {
55
+ obj['org_id'] = org_id;
56
+ obj['entry_id'] = entry_id;
57
+ obj['address'] = address;
58
+ obj['label'] = label;
59
+ }
60
+
61
+ /**
62
+ * Constructs a <code>AddressBook</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
65
+ * @param {module:model/AddressBook} obj Optional instance to populate.
66
+ * @return {module:model/AddressBook} The populated <code>AddressBook</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new AddressBook();
73
+ if (data.hasOwnProperty('org_id')) {
74
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'String');
75
+ }
76
+ if (data.hasOwnProperty('entry_id')) {
77
+ obj['entry_id'] = _ApiClient["default"].convertToType(data['entry_id'], 'String');
78
+ }
79
+ if (data.hasOwnProperty('address')) {
80
+ obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
81
+ }
82
+ if (data.hasOwnProperty('memo')) {
83
+ obj['memo'] = _ApiClient["default"].convertToType(data['memo'], 'String');
84
+ }
85
+ if (data.hasOwnProperty('wallet_name')) {
86
+ obj['wallet_name'] = _ApiClient["default"].convertToType(data['wallet_name'], 'String');
87
+ }
88
+ if (data.hasOwnProperty('wallet_type')) {
89
+ obj['wallet_type'] = _WalletType["default"].constructFromObject(data['wallet_type']);
90
+ }
91
+ if (data.hasOwnProperty('label')) {
92
+ obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
93
+ }
94
+ if (data.hasOwnProperty('email')) {
95
+ obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
96
+ }
97
+ }
98
+ return obj;
99
+ }
100
+
101
+ /**
102
+ * Validates the JSON data with respect to <code>AddressBook</code>.
103
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
104
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>AddressBook</code>.
105
+ */
106
+ }, {
107
+ key: "validateJSON",
108
+ value: function validateJSON(data) {
109
+ // check to make sure all required properties are present in the JSON string
110
+ var _iterator = _createForOfIteratorHelper(AddressBook.RequiredProperties),
111
+ _step;
112
+ try {
113
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
114
+ var property = _step.value;
115
+ if (!data.hasOwnProperty(property)) {
116
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
117
+ }
118
+ }
119
+ // ensure the json data is a string
120
+ } catch (err) {
121
+ _iterator.e(err);
122
+ } finally {
123
+ _iterator.f();
124
+ }
125
+ if (data['org_id'] && !(typeof data['org_id'] === 'string' || data['org_id'] instanceof String)) {
126
+ throw new Error("Expected the field `org_id` to be a primitive type in the JSON string but got " + data['org_id']);
127
+ }
128
+ // ensure the json data is a string
129
+ if (data['entry_id'] && !(typeof data['entry_id'] === 'string' || data['entry_id'] instanceof String)) {
130
+ throw new Error("Expected the field `entry_id` to be a primitive type in the JSON string but got " + data['entry_id']);
131
+ }
132
+ // ensure the json data is a string
133
+ if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
134
+ throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
135
+ }
136
+ // ensure the json data is a string
137
+ if (data['memo'] && !(typeof data['memo'] === 'string' || data['memo'] instanceof String)) {
138
+ throw new Error("Expected the field `memo` to be a primitive type in the JSON string but got " + data['memo']);
139
+ }
140
+ // ensure the json data is a string
141
+ if (data['wallet_name'] && !(typeof data['wallet_name'] === 'string' || data['wallet_name'] instanceof String)) {
142
+ throw new Error("Expected the field `wallet_name` to be a primitive type in the JSON string but got " + data['wallet_name']);
143
+ }
144
+ // ensure the json data is a string
145
+ if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
146
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
147
+ }
148
+ // ensure the json data is a string
149
+ if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
150
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
151
+ }
152
+ return true;
153
+ }
154
+ }]);
155
+ }();
156
+ AddressBook.RequiredProperties = ["org_id", "entry_id", "address", "label"];
157
+
158
+ /**
159
+ * @member {String} org_id
160
+ */
161
+ AddressBook.prototype['org_id'] = undefined;
162
+
163
+ /**
164
+ * @member {String} entry_id
165
+ */
166
+ AddressBook.prototype['entry_id'] = undefined;
167
+
168
+ /**
169
+ * address.
170
+ * @member {String} address
171
+ */
172
+ AddressBook.prototype['address'] = undefined;
173
+
174
+ /**
175
+ * memo.
176
+ * @member {String} memo
177
+ */
178
+ AddressBook.prototype['memo'] = undefined;
179
+
180
+ /**
181
+ * wallet name.
182
+ * @member {String} wallet_name
183
+ */
184
+ AddressBook.prototype['wallet_name'] = undefined;
185
+
186
+ /**
187
+ * @member {module:model/WalletType} wallet_type
188
+ */
189
+ AddressBook.prototype['wallet_type'] = undefined;
190
+
191
+ /**
192
+ * The label to address.
193
+ * @member {String} label
194
+ */
195
+ AddressBook.prototype['label'] = undefined;
196
+
197
+ /**
198
+ * email.
199
+ * @member {String} email
200
+ */
201
+ AddressBook.prototype['email'] = undefined;
202
+ var _default = exports["default"] = AddressBook;
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
16
  * Cobo Wallet as a Service 2.0
17
17
  *
18
- * Contact: support@cobo.com
18
+ * Contact: help@cobo.com
19
19
  *
20
20
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
21
  * https://openapi-generator.tech
@@ -18,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
18
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
19
  * Cobo Wallet as a Service 2.0
20
20
  *
21
- * Contact: support@cobo.com
21
+ * Contact: help@cobo.com
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
24
  * https://openapi-generator.tech
@@ -84,6 +84,15 @@ var AddressInfo = /*#__PURE__*/function () {
84
84
  if (data.hasOwnProperty('pubkey')) {
85
85
  obj['pubkey'] = _ApiClient["default"].convertToType(data['pubkey'], 'String');
86
86
  }
87
+ if (data.hasOwnProperty('x_only_pubkey')) {
88
+ obj['x_only_pubkey'] = _ApiClient["default"].convertToType(data['x_only_pubkey'], 'String');
89
+ }
90
+ if (data.hasOwnProperty('taproot_script_tree_hash')) {
91
+ obj['taproot_script_tree_hash'] = _ApiClient["default"].convertToType(data['taproot_script_tree_hash'], 'String');
92
+ }
93
+ if (data.hasOwnProperty('taproot_internal_address')) {
94
+ obj['taproot_internal_address'] = _ApiClient["default"].convertToType(data['taproot_internal_address'], 'String');
95
+ }
87
96
  }
88
97
  return obj;
89
98
  }
@@ -131,6 +140,18 @@ var AddressInfo = /*#__PURE__*/function () {
131
140
  if (data['pubkey'] && !(typeof data['pubkey'] === 'string' || data['pubkey'] instanceof String)) {
132
141
  throw new Error("Expected the field `pubkey` to be a primitive type in the JSON string but got " + data['pubkey']);
133
142
  }
143
+ // ensure the json data is a string
144
+ if (data['x_only_pubkey'] && !(typeof data['x_only_pubkey'] === 'string' || data['x_only_pubkey'] instanceof String)) {
145
+ throw new Error("Expected the field `x_only_pubkey` to be a primitive type in the JSON string but got " + data['x_only_pubkey']);
146
+ }
147
+ // ensure the json data is a string
148
+ if (data['taproot_script_tree_hash'] && !(typeof data['taproot_script_tree_hash'] === 'string' || data['taproot_script_tree_hash'] instanceof String)) {
149
+ throw new Error("Expected the field `taproot_script_tree_hash` to be a primitive type in the JSON string but got " + data['taproot_script_tree_hash']);
150
+ }
151
+ // ensure the json data is a string
152
+ if (data['taproot_internal_address'] && !(typeof data['taproot_internal_address'] === 'string' || data['taproot_internal_address'] instanceof String)) {
153
+ throw new Error("Expected the field `taproot_internal_address` to be a primitive type in the JSON string but got " + data['taproot_internal_address']);
154
+ }
134
155
  return true;
135
156
  }
136
157
  }]);
@@ -171,4 +192,22 @@ AddressInfo.prototype['encoding'] = undefined;
171
192
  * @member {String} pubkey
172
193
  */
173
194
  AddressInfo.prototype['pubkey'] = undefined;
195
+
196
+ /**
197
+ * The 32-byte x-only public key in hexadecimal format after tweaking.
198
+ * @member {String} x_only_pubkey
199
+ */
200
+ AddressInfo.prototype['x_only_pubkey'] = undefined;
201
+
202
+ /**
203
+ * The information about the new address.
204
+ * @member {String} taproot_script_tree_hash
205
+ */
206
+ AddressInfo.prototype['taproot_script_tree_hash'] = undefined;
207
+
208
+ /**
209
+ * The Taproot address before tweaking.
210
+ * @member {String} taproot_internal_address
211
+ */
212
+ AddressInfo.prototype['taproot_internal_address'] = undefined;
174
213
  var _default = exports["default"] = AddressInfo;
@@ -20,7 +20,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
20
20
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
21
21
  * Cobo Wallet as a Service 2.0
22
22
  *
23
- * Contact: support@cobo.com
23
+ * Contact: help@cobo.com
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
26
  * https://openapi-generator.tech
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
34
34
  var AddressTransferDestination = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>AddressTransferDestination</code>.
37
- * The information about the transaction destination type &#x60;Address&#x60;. Specify either the &#x60;account_output&#x60; property or the &#x60;utxo_outputs&#x60; property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the &#x60;utxo_outputs&#x60; property to specify the destination addresses.
37
+ * The information about the transaction destination type &#x60;Address&#x60;. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Specify either the &#x60;account_output&#x60; property or the &#x60;utxo_outputs&#x60; property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the &#x60;utxo_outputs&#x60; property to specify the destination addresses. Switch between the tabs to display the properties for different transaction destinations.
38
38
  * @alias module:model/AddressTransferDestination
39
39
  * @param destination_type {module:model/TransferDestinationType}
40
40
  */
@@ -171,13 +171,13 @@ AddressTransferDestination.prototype['utxo_outputs'] = undefined;
171
171
  AddressTransferDestination.prototype['change_address'] = undefined;
172
172
 
173
173
  /**
174
- * Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer. <Note>Please do not set both `force_internal` and `force_internal` as `true`.</Note>
174
+ * Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must be executed as a Loop transfer. - `false`: The transaction request may not be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
175
175
  * @member {Boolean} force_internal
176
176
  */
177
177
  AddressTransferDestination.prototype['force_internal'] = undefined;
178
178
 
179
179
  /**
180
- * Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer. <Note>Please do not set both `force_internal` and `force_internal` as `true`.</Note>
180
+ * Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop's website](https://loop.top/). - `true`: The transaction request must not be executed as a Loop transfer. - `false`: The transaction request can be executed as a Loop transfer. Please do not set both `force_internal` and `force_internal` as `true`.
181
181
  * @member {Boolean} force_external
182
182
  */
183
183
  AddressTransferDestination.prototype['force_external'] = undefined;
@@ -17,7 +17,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * Cobo Wallet as a Service 2.0
19
19
  *
20
- * Contact: support@cobo.com
20
+ * Contact: help@cobo.com
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
23
  * https://openapi-generator.tech
@@ -33,7 +33,7 @@ var AddressTransferDestinationAccountOutput = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>AddressTransferDestinationAccountOutput</code>.
34
34
  * @alias module:model/AddressTransferDestinationAccountOutput
35
35
  * @param address {String} The destination address.
36
- * @param amount {String} The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
36
+ * @param amount {String} The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
37
37
  */
38
38
  function AddressTransferDestinationAccountOutput(address, amount) {
39
39
  _classCallCheck(this, AddressTransferDestinationAccountOutput);
@@ -131,7 +131,7 @@ AddressTransferDestinationAccountOutput.prototype['address'] = undefined;
131
131
  AddressTransferDestinationAccountOutput.prototype['memo'] = undefined;
132
132
 
133
133
  /**
134
- * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
134
+ * The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
135
135
  * @member {String} amount
136
136
  */
137
137
  AddressTransferDestinationAccountOutput.prototype['amount'] = undefined;
@@ -17,7 +17,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * Cobo Wallet as a Service 2.0
19
19
  *
20
- * Contact: support@cobo.com
20
+ * Contact: help@cobo.com
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
23
  * https://openapi-generator.tech
@@ -123,7 +123,7 @@ AddressTransferDestinationUtxoOutputsInner.RequiredProperties = ["address"];
123
123
  AddressTransferDestinationUtxoOutputsInner.prototype['address'] = undefined;
124
124
 
125
125
  /**
126
- * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
126
+ * The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`.
127
127
  * @member {String} amount
128
128
  */
129
129
  AddressTransferDestinationUtxoOutputsInner.prototype['amount'] = undefined;
@@ -18,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
18
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
19
  * Cobo Wallet as a Service 2.0
20
20
  *
21
- * Contact: support@cobo.com
21
+ * Contact: help@cobo.com
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
24
  * https://openapi-generator.tech
@@ -71,9 +71,6 @@ var AmountDetailsInner = /*#__PURE__*/function () {
71
71
  if (data.hasOwnProperty('amount')) {
72
72
  obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'String');
73
73
  }
74
- if (data.hasOwnProperty('activity_id')) {
75
- obj['activity_id'] = _ApiClient["default"].convertToType(data['activity_id'], 'String');
76
- }
77
74
  }
78
75
  return obj;
79
76
  }
@@ -105,10 +102,6 @@ var AmountDetailsInner = /*#__PURE__*/function () {
105
102
  if (data['amount'] && !(typeof data['amount'] === 'string' || data['amount'] instanceof String)) {
106
103
  throw new Error("Expected the field `amount` to be a primitive type in the JSON string but got " + data['amount']);
107
104
  }
108
- // ensure the json data is a string
109
- if (data['activity_id'] && !(typeof data['activity_id'] === 'string' || data['activity_id'] instanceof String)) {
110
- throw new Error("Expected the field `activity_id` to be a primitive type in the JSON string but got " + data['activity_id']);
111
- }
112
105
  return true;
113
106
  }
114
107
  }]);
@@ -125,10 +118,4 @@ AmountDetailsInner.prototype['status'] = undefined;
125
118
  * @member {String} amount
126
119
  */
127
120
  AmountDetailsInner.prototype['amount'] = undefined;
128
-
129
- /**
130
- * The related staking activity ID.
131
- * @member {String} activity_id
132
- */
133
- AmountDetailsInner.prototype['activity_id'] = undefined;
134
121
  var _default = exports["default"] = AmountDetailsInner;
@@ -15,7 +15,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
16
  * Cobo Wallet as a Service 2.0
17
17
  *
18
- * Contact: support@cobo.com
18
+ * Contact: help@cobo.com
19
19
  *
20
20
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
21
21
  * https://openapi-generator.tech
@@ -18,7 +18,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
18
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
19
  * Cobo Wallet as a Service 2.0
20
20
  *
21
- * Contact: support@cobo.com
21
+ * Contact: help@cobo.com
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
24
  * https://openapi-generator.tech
@@ -17,7 +17,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * Cobo Wallet as a Service 2.0
19
19
  *
20
- * Contact: support@cobo.com
20
+ * Contact: help@cobo.com
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
23
  * https://openapi-generator.tech
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
20
  * Cobo Wallet as a Service 2.0
21
21
  *
22
- * Contact: support@cobo.com
22
+ * Contact: help@cobo.com
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
25
  * https://openapi-generator.tech
@@ -36,8 +36,8 @@ var BabylonStakeExtra = /*#__PURE__*/function () {
36
36
  * @alias module:model/BabylonStakeExtra
37
37
  * @implements module:model/BaseStakeExtra
38
38
  * @param pool_type {module:model/StakingPoolType}
39
- * @param finality_provider_public_key {String} The public key of finality provider.
40
- * @param stake_block_time {Number} The stake block time.
39
+ * @param finality_provider_public_key {String} The public key of the finality provider.
40
+ * @param stake_block_time {Number} The number of blocks that need to be processed before the locked tokens are unlocked and become accessible.
41
41
  */
42
42
  function BabylonStakeExtra(pool_type, finality_provider_public_key, stake_block_time) {
43
43
  _classCallCheck(this, BabylonStakeExtra);
@@ -80,8 +80,8 @@ var BabylonStakeExtra = /*#__PURE__*/function () {
80
80
  if (data.hasOwnProperty('stake_block_time')) {
81
81
  obj['stake_block_time'] = _ApiClient["default"].convertToType(data['stake_block_time'], 'Number');
82
82
  }
83
- if (data.hasOwnProperty('only_sign')) {
84
- obj['only_sign'] = _ApiClient["default"].convertToType(data['only_sign'], 'Boolean');
83
+ if (data.hasOwnProperty('auto_broadcast')) {
84
+ obj['auto_broadcast'] = _ApiClient["default"].convertToType(data['auto_broadcast'], 'Boolean');
85
85
  }
86
86
  }
87
87
  return obj;
@@ -126,22 +126,22 @@ BabylonStakeExtra.RequiredProperties = ["pool_type", "finality_provider_public_k
126
126
  BabylonStakeExtra.prototype['pool_type'] = undefined;
127
127
 
128
128
  /**
129
- * The public key of finality provider.
129
+ * The public key of the finality provider.
130
130
  * @member {String} finality_provider_public_key
131
131
  */
132
132
  BabylonStakeExtra.prototype['finality_provider_public_key'] = undefined;
133
133
 
134
134
  /**
135
- * The stake block time.
135
+ * The number of blocks that need to be processed before the locked tokens are unlocked and become accessible.
136
136
  * @member {Number} stake_block_time
137
137
  */
138
138
  BabylonStakeExtra.prototype['stake_block_time'] = undefined;
139
139
 
140
140
  /**
141
- * Whether to only sign transactions. Default is `false`, if set to `true`, the transaction will not be submitted to the blockchain automatically. You can call `Broadcast transactions` to submit the transaction to the blockchain, Or you can find the signed raw_tx by `Get transaction information` and broadcast it yourself.
142
- * @member {Boolean} only_sign
141
+ * Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
142
+ * @member {Boolean} auto_broadcast
143
143
  */
144
- BabylonStakeExtra.prototype['only_sign'] = undefined;
144
+ BabylonStakeExtra.prototype['auto_broadcast'] = undefined;
145
145
 
146
146
  // Implement BaseStakeExtra interface:
147
147
  /**