@cobo/cobo-waas2 1.18.0 → 1.19.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 (283) hide show
  1. package/README.md +78 -4
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/OAuthApi.js +2 -2
  4. package/dist/api/TransactionsApi.js +0 -92
  5. package/dist/api/WalletsApi.js +50 -0
  6. package/dist/index.js +518 -7
  7. package/dist/model/AddressesEventData.js +13 -8
  8. package/dist/model/ApprovalDetail.js +160 -0
  9. package/dist/model/ApprovalResult.js +66 -0
  10. package/dist/model/ApprovalShowInfo.js +140 -0
  11. package/dist/model/ApprovalTemplate.js +114 -0
  12. package/dist/model/ApprovalTransactionResult.js +66 -0
  13. package/dist/model/ApprovalUserDetail.js +196 -0
  14. package/dist/model/AutoFuelType.js +5 -0
  15. package/dist/model/BalanceUpdateInfoEventData.js +13 -8
  16. package/dist/model/ChainsEventData.js +13 -8
  17. package/dist/model/CreatePaymentOrderRequest.js +7 -6
  18. package/dist/model/CreateSettlement.js +1 -2
  19. package/dist/model/CustodialWeb3TransferSource.js +2 -2
  20. package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
  21. package/dist/model/EstimatedEvmLegacyFee.js +2 -2
  22. package/dist/model/EstimatedFILFee.js +2 -2
  23. package/dist/model/EstimatedFILFeeSlow.js +12 -12
  24. package/dist/model/EstimatedFee.js +1 -1
  25. package/dist/model/EstimatedFixedFee.js +2 -2
  26. package/dist/model/EstimatedSOLFee.js +2 -2
  27. package/dist/model/EstimatedSOLFeeSlow.js +11 -11
  28. package/dist/model/EstimatedUtxoFee.js +2 -2
  29. package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
  30. package/dist/model/EvmEip1559FeeRate.js +2 -2
  31. package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
  32. package/dist/model/EvmLegacyFeeRate.js +2 -2
  33. package/dist/model/FILBase.js +1 -1
  34. package/dist/model/FILPrice.js +3 -4
  35. package/dist/model/FeeRate.js +1 -1
  36. package/dist/model/FixedFeeRate.js +2 -2
  37. package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
  38. package/dist/model/MPCVaultEventData.js +13 -8
  39. package/dist/model/MaxFeeAmount.js +0 -1
  40. package/dist/model/MaxTransferableValue.js +2 -2
  41. package/dist/model/MpcTransferSource.js +2 -2
  42. package/dist/model/PaymentOrderEventData.js +13 -8
  43. package/dist/model/PaymentRefundEventData.js +13 -8
  44. package/dist/model/PaymentSettlementEvent.js +13 -8
  45. package/dist/model/{ListTransactionApprovalDetails200Response.js → RoleDetail.js} +46 -27
  46. package/dist/model/SOLBase.js +2 -2
  47. package/dist/model/SOLComputeUnit.js +2 -3
  48. package/dist/model/SuspendedTokenEventData.js +225 -0
  49. package/dist/model/SuspendedTokenOperationType.js +61 -0
  50. package/dist/model/SwapActivity.js +29 -0
  51. package/dist/model/SwapActivityDetail.js +38 -0
  52. package/dist/model/TSSRequestWebhookEventData.js +13 -8
  53. package/dist/model/TokenListingEventData.js +13 -8
  54. package/dist/model/TokenizationActivityInfo.js +224 -0
  55. package/dist/model/TokenizationActivityStatus.js +66 -0
  56. package/dist/model/TokenizationAddressPermission.js +135 -0
  57. package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
  58. package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
  59. package/dist/model/TokenizationAllowlistAddressNote.js +132 -0
  60. package/dist/model/TokenizationAppInitiator.js +87 -0
  61. package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
  62. package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
  63. package/dist/model/TokenizationBurnTokenParams.js +146 -0
  64. package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
  65. package/dist/model/TokenizationBurnTokenRequest.js +202 -0
  66. package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
  67. package/dist/model/TokenizationContractCallParams.js +107 -0
  68. package/dist/model/TokenizationContractCallParamsData.js +164 -0
  69. package/dist/model/TokenizationContractCallRequest.js +182 -0
  70. package/dist/model/TokenizationContractCallType.js +56 -0
  71. package/dist/model/TokenizationERC20TokenParams.js +173 -0
  72. package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
  73. package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
  74. package/dist/model/TokenizationEvmContractCallParams.js +133 -0
  75. package/dist/model/TokenizationHoldingInfo.js +166 -0
  76. package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
  77. package/dist/model/TokenizationIssueTokenParams.js +146 -0
  78. package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
  79. package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
  80. package/dist/model/TokenizationListActivitiesResponse.js +146 -0
  81. package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
  82. package/dist/model/TokenizationListHoldingsResponse.js +146 -0
  83. package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
  84. package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
  85. package/dist/model/TokenizationMintTokenParams.js +146 -0
  86. package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
  87. package/dist/model/TokenizationMintTokenRequest.js +202 -0
  88. package/dist/model/TokenizationMpcOperationSource.js +136 -0
  89. package/dist/model/TokenizationOperationResponse.js +110 -0
  90. package/dist/model/TokenizationOperationSourceType.js +61 -0
  91. package/dist/model/TokenizationOperationType.js +96 -0
  92. package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
  93. package/dist/model/TokenizationPauseTokenParams.js +113 -0
  94. package/dist/model/TokenizationPauseTokenRequest.js +164 -0
  95. package/dist/model/TokenizationStatus.js +71 -0
  96. package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
  97. package/dist/model/TokenizationTokenDetailInfo.js +309 -0
  98. package/dist/model/TokenizationTokenInfo.js +223 -0
  99. package/dist/model/TokenizationTokenOperationSource.js +192 -0
  100. package/dist/model/TokenizationTokenPermission.js +147 -0
  101. package/dist/model/TokenizationTokenPermissionParams.js +166 -0
  102. package/dist/model/TokenizationTokenPermissionType.js +86 -0
  103. package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
  104. package/dist/model/TokenizationTokenStandard.js +56 -0
  105. package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
  106. package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
  107. package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
  108. package/dist/model/TokenizationUpdateAddressAction.js +61 -0
  109. package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
  110. package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
  111. package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
  112. package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
  113. package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
  114. package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
  115. package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
  116. package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
  117. package/dist/model/TokenizationWeb3OperationSource.js +136 -0
  118. package/dist/model/TokensEventData.js +13 -8
  119. package/dist/model/TopUpAddress.js +2 -2
  120. package/dist/model/TransactionEvmEip1559Fee.js +2 -2
  121. package/dist/model/TransactionEvmLegacyFee.js +2 -2
  122. package/dist/model/TransactionFILFee.js +11 -11
  123. package/dist/model/TransactionFee.js +10 -10
  124. package/dist/model/TransactionFixedFee.js +2 -2
  125. package/dist/model/TransactionRbfSource.js +1 -1
  126. package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
  127. package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
  128. package/dist/model/TransactionRequestFILFee.js +11 -11
  129. package/dist/model/TransactionRequestFee.js +6 -6
  130. package/dist/model/TransactionRequestFixedFee.js +2 -2
  131. package/dist/model/TransactionRequestSOLFee.js +9 -9
  132. package/dist/model/TransactionRequestUtxoFee.js +2 -2
  133. package/dist/model/TransactionSOLFee.js +11 -11
  134. package/dist/model/TransactionSubStatus.js +5 -0
  135. package/dist/model/TransactionUtxoFee.js +2 -2
  136. package/dist/model/TransactionWebhookEventData.js +13 -8
  137. package/dist/model/UtxoFeeBasePrice.js +0 -1
  138. package/dist/model/UtxoFeeRate.js +2 -2
  139. package/dist/model/WalletInfoEventData.js +13 -8
  140. package/dist/model/WebhookEvent.js +2 -2
  141. package/dist/model/WebhookEventData.js +49 -9
  142. package/dist/model/WebhookEventDataType.js +12 -7
  143. package/dist/model/WebhookEventLog.js +2 -2
  144. package/dist/model/WebhookEventType.js +20 -0
  145. package/docs/AddressesEventData.md +5 -3
  146. package/docs/ApprovalDetail.md +14 -0
  147. package/docs/ApprovalResult.md +14 -0
  148. package/docs/ApprovalShowInfo.md +13 -0
  149. package/docs/ApprovalTemplate.md +11 -0
  150. package/docs/ApprovalTransactionResult.md +14 -0
  151. package/docs/ApprovalUserDetail.md +18 -0
  152. package/docs/AutoFuelType.md +2 -0
  153. package/docs/BalanceUpdateInfoEventData.md +5 -3
  154. package/docs/ChainsEventData.md +5 -3
  155. package/docs/CreatePaymentOrderRequest.md +4 -4
  156. package/docs/CreateSettlement.md +2 -2
  157. package/docs/CustodialWeb3TransferSource.md +1 -1
  158. package/docs/EstimatedEvmEip1559Fee.md +1 -1
  159. package/docs/EstimatedEvmLegacyFee.md +1 -1
  160. package/docs/EstimatedFILFee.md +1 -1
  161. package/docs/EstimatedFILFeeSlow.md +4 -4
  162. package/docs/EstimatedFee.md +1 -1
  163. package/docs/EstimatedFixedFee.md +1 -1
  164. package/docs/EstimatedSOLFee.md +1 -1
  165. package/docs/EstimatedSOLFeeSlow.md +4 -4
  166. package/docs/EstimatedUtxoFee.md +1 -1
  167. package/docs/EvmEip1559FeeRate.md +1 -1
  168. package/docs/EvmLegacyFeeRate.md +1 -1
  169. package/docs/FILBase.md +1 -1
  170. package/docs/FILPrice.md +3 -3
  171. package/docs/FeeRate.md +1 -1
  172. package/docs/FixedFeeRate.md +1 -1
  173. package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
  174. package/docs/MPCVaultEventData.md +5 -3
  175. package/docs/MaxTransferableValue.md +1 -1
  176. package/docs/MpcTransferSource.md +1 -1
  177. package/docs/OAuthApi.md +1 -1
  178. package/docs/PaymentOrderEventData.md +5 -3
  179. package/docs/PaymentRefundEventData.md +5 -3
  180. package/docs/PaymentSettlementEvent.md +5 -3
  181. package/docs/RoleDetail.md +11 -0
  182. package/docs/SOLBase.md +2 -2
  183. package/docs/SOLComputeUnit.md +2 -2
  184. package/docs/SuspendedTokenEventData.md +46 -0
  185. package/docs/SuspendedTokenOperationType.md +12 -0
  186. package/docs/SwapActivity.md +2 -0
  187. package/docs/SwapActivityDetail.md +2 -0
  188. package/docs/TSSRequestWebhookEventData.md +5 -3
  189. package/docs/TokenListingEventData.md +5 -3
  190. package/docs/TokenizationActivityInfo.md +18 -0
  191. package/docs/TokenizationActivityStatus.md +14 -0
  192. package/docs/TokenizationAddressPermission.md +11 -0
  193. package/docs/TokenizationAllowlistActivationParams.md +10 -0
  194. package/docs/TokenizationAllowlistActivationRequest.md +12 -0
  195. package/docs/TokenizationAllowlistAddressNote.md +11 -0
  196. package/docs/TokenizationAppInitiator.md +9 -0
  197. package/docs/TokenizationBlocklistAddressNote.md +11 -0
  198. package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
  199. package/docs/TokenizationBurnTokenParams.md +10 -0
  200. package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
  201. package/docs/TokenizationBurnTokenRequest.md +12 -0
  202. package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
  203. package/docs/TokenizationContractCallParams.md +10 -0
  204. package/docs/TokenizationContractCallParamsData.md +11 -0
  205. package/docs/TokenizationContractCallRequest.md +12 -0
  206. package/docs/TokenizationContractCallType.md +10 -0
  207. package/docs/TokenizationERC20TokenParams.md +14 -0
  208. package/docs/TokenizationEstimateFeeRequest.md +9 -0
  209. package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
  210. package/docs/TokenizationEvmContractCallParams.md +11 -0
  211. package/docs/TokenizationHoldingInfo.md +13 -0
  212. package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
  213. package/docs/TokenizationIssueTokenParams.md +11 -0
  214. package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
  215. package/docs/TokenizationIssuedTokenRequest.md +13 -0
  216. package/docs/TokenizationListActivitiesResponse.md +10 -0
  217. package/docs/TokenizationListEnabledChainsResponse.md +10 -0
  218. package/docs/TokenizationListHoldingsResponse.md +10 -0
  219. package/docs/TokenizationListTokenInfoResponse.md +10 -0
  220. package/docs/TokenizationMintEstimateFeeParams.md +12 -0
  221. package/docs/TokenizationMintTokenParams.md +10 -0
  222. package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
  223. package/docs/TokenizationMintTokenRequest.md +12 -0
  224. package/docs/TokenizationMpcOperationSource.md +11 -0
  225. package/docs/TokenizationOperationResponse.md +9 -0
  226. package/docs/TokenizationOperationSourceType.md +12 -0
  227. package/docs/TokenizationOperationType.md +26 -0
  228. package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
  229. package/docs/TokenizationPauseTokenParams.md +9 -0
  230. package/docs/TokenizationPauseTokenRequest.md +11 -0
  231. package/docs/TokenizationStatus.md +16 -0
  232. package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
  233. package/docs/TokenizationTokenDetailInfo.md +19 -0
  234. package/docs/TokenizationTokenInfo.md +18 -0
  235. package/docs/TokenizationTokenOperationSource.md +11 -0
  236. package/docs/TokenizationTokenPermission.md +12 -0
  237. package/docs/TokenizationTokenPermissionParams.md +15 -0
  238. package/docs/TokenizationTokenPermissionType.md +22 -0
  239. package/docs/TokenizationTokenPermissionsResponse.md +10 -0
  240. package/docs/TokenizationTokenStandard.md +10 -0
  241. package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
  242. package/docs/TokenizationUnpauseTokenParams.md +9 -0
  243. package/docs/TokenizationUnpauseTokenRequest.md +11 -0
  244. package/docs/TokenizationUpdateAddressAction.md +12 -0
  245. package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
  246. package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
  247. package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
  248. package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
  249. package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
  250. package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
  251. package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
  252. package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
  253. package/docs/TokenizationWeb3OperationSource.md +11 -0
  254. package/docs/TokensEventData.md +5 -3
  255. package/docs/TopUpAddress.md +1 -1
  256. package/docs/TransactionEvmEip1559Fee.md +2 -2
  257. package/docs/TransactionEvmLegacyFee.md +2 -2
  258. package/docs/TransactionFILFee.md +6 -6
  259. package/docs/TransactionFee.md +10 -10
  260. package/docs/TransactionFixedFee.md +2 -2
  261. package/docs/TransactionRbfSource.md +1 -1
  262. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  263. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  264. package/docs/TransactionRequestFILFee.md +4 -4
  265. package/docs/TransactionRequestFee.md +6 -6
  266. package/docs/TransactionRequestFixedFee.md +1 -1
  267. package/docs/TransactionRequestSOLFee.md +3 -3
  268. package/docs/TransactionRequestUtxoFee.md +1 -1
  269. package/docs/TransactionSOLFee.md +6 -6
  270. package/docs/TransactionSubStatus.md +2 -0
  271. package/docs/TransactionUtxoFee.md +2 -2
  272. package/docs/TransactionWebhookEventData.md +5 -3
  273. package/docs/TransactionsApi.md +0 -106
  274. package/docs/UtxoFeeRate.md +1 -1
  275. package/docs/WalletInfoEventData.md +5 -3
  276. package/docs/WalletsApi.md +55 -0
  277. package/docs/WebhookEvent.md +1 -1
  278. package/docs/WebhookEventData.md +7 -3
  279. package/docs/WebhookEventDataType.md +5 -3
  280. package/docs/WebhookEventLog.md +1 -1
  281. package/docs/WebhookEventType.md +8 -0
  282. package/package.json +1 -1
  283. package/docs/ListTransactionApprovalDetails200Response.md +0 -9
@@ -0,0 +1,439 @@
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 _TokenizationBurnEstimateFeeParams = _interopRequireDefault(require("./TokenizationBurnEstimateFeeParams"));
9
+ var _TokenizationBurnTokenParamsBurnsInner = _interopRequireDefault(require("./TokenizationBurnTokenParamsBurnsInner"));
10
+ var _TokenizationContractCallEstimateFeeParams = _interopRequireDefault(require("./TokenizationContractCallEstimateFeeParams"));
11
+ var _TokenizationContractCallParamsData = _interopRequireDefault(require("./TokenizationContractCallParamsData"));
12
+ var _TokenizationIssueEstimateFeeParams = _interopRequireDefault(require("./TokenizationIssueEstimateFeeParams"));
13
+ var _TokenizationIssueTokenParamsTokenParams = _interopRequireDefault(require("./TokenizationIssueTokenParamsTokenParams"));
14
+ var _TokenizationMintEstimateFeeParams = _interopRequireDefault(require("./TokenizationMintEstimateFeeParams"));
15
+ var _TokenizationMintTokenParamsMintsInner = _interopRequireDefault(require("./TokenizationMintTokenParamsMintsInner"));
16
+ var _TokenizationOperationType = _interopRequireDefault(require("./TokenizationOperationType"));
17
+ var _TokenizationPauseEstimateFeeParams = _interopRequireDefault(require("./TokenizationPauseEstimateFeeParams"));
18
+ var _TokenizationToggleAllowlistEstimateFeeParams = _interopRequireDefault(require("./TokenizationToggleAllowlistEstimateFeeParams"));
19
+ var _TokenizationTokenOperationSource = _interopRequireDefault(require("./TokenizationTokenOperationSource"));
20
+ var _TokenizationUnpauseEstimateFeeParams = _interopRequireDefault(require("./TokenizationUnpauseEstimateFeeParams"));
21
+ var _TokenizationUpdateAddressAction = _interopRequireDefault(require("./TokenizationUpdateAddressAction"));
22
+ var _TokenizationUpdateAllowlistAddressesEstimateFeeParams = _interopRequireDefault(require("./TokenizationUpdateAllowlistAddressesEstimateFeeParams"));
23
+ var _TokenizationUpdateBlocklistAddressesEstimateFeeParams = _interopRequireDefault(require("./TokenizationUpdateBlocklistAddressesEstimateFeeParams"));
24
+ var _TokenizationUpdateBlocklistAddressesParamsAddressesInner = _interopRequireDefault(require("./TokenizationUpdateBlocklistAddressesParamsAddressesInner"));
25
+ var _TokenizationEstimateFeeRequestOperationParams;
26
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
+ 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); }
28
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
29
+ 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); } }
30
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
31
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
32
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
+ 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); } /**
34
+ * Cobo Wallet as a Service 2.0
35
+ *
36
+ * Contact: help@cobo.com
37
+ *
38
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
39
+ * https://openapi-generator.tech
40
+ * Do not edit the class manually.
41
+ *
42
+ */
43
+ /**
44
+ * The TokenizationEstimateFeeRequestOperationParams model module.
45
+ * @module model/TokenizationEstimateFeeRequestOperationParams
46
+ */
47
+ var TokenizationEstimateFeeRequestOperationParams = /*#__PURE__*/function () {
48
+ /**
49
+ * Constructs a new <code>TokenizationEstimateFeeRequestOperationParams</code>.
50
+ * @alias module:model/TokenizationEstimateFeeRequestOperationParams
51
+ * @param {(module:model/TokenizationBurnEstimateFeeParams|module:model/TokenizationContractCallEstimateFeeParams|module:model/TokenizationIssueEstimateFeeParams|module:model/TokenizationMintEstimateFeeParams|module:model/TokenizationPauseEstimateFeeParams|module:model/TokenizationToggleAllowlistEstimateFeeParams|module:model/TokenizationUnpauseEstimateFeeParams|module:model/TokenizationUpdateAllowlistAddressesEstimateFeeParams|module:model/TokenizationUpdateBlocklistAddressesEstimateFeeParams)} instance The actual instance to initialize TokenizationEstimateFeeRequestOperationParams.
52
+ */
53
+ function TokenizationEstimateFeeRequestOperationParams() {
54
+ var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
55
+ _classCallCheck(this, TokenizationEstimateFeeRequestOperationParams);
56
+ /**
57
+ * Returns the JSON representation of the actual instance.
58
+ * @return {string}
59
+ */
60
+ _defineProperty(this, "toJSON", function () {
61
+ return this.getActualInstance();
62
+ });
63
+ if (instance === null) {
64
+ this.actualInstance = null;
65
+ return;
66
+ }
67
+ var match = 0;
68
+ var errorMessages = [];
69
+ var discriminatorValue = instance["operation_type"];
70
+ if (discriminatorValue) {
71
+ switch (discriminatorValue) {
72
+ case "Burn":
73
+ this.actualInstance = _TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance);
74
+ match++;
75
+ break;
76
+ case "ContractCall":
77
+ this.actualInstance = _TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance);
78
+ match++;
79
+ break;
80
+ case "Issue":
81
+ this.actualInstance = _TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance);
82
+ match++;
83
+ break;
84
+ case "Mint":
85
+ this.actualInstance = _TokenizationMintEstimateFeeParams["default"].constructFromObject(instance);
86
+ match++;
87
+ break;
88
+ case "Pause":
89
+ this.actualInstance = _TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance);
90
+ match++;
91
+ break;
92
+ case "ToggleAllowlist":
93
+ this.actualInstance = _TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance);
94
+ match++;
95
+ break;
96
+ case "Unpause":
97
+ this.actualInstance = _TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance);
98
+ match++;
99
+ break;
100
+ case "UpdateAllowlistAddresses":
101
+ this.actualInstance = _TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance);
102
+ match++;
103
+ break;
104
+ case "UpdateBlocklistAddresses":
105
+ this.actualInstance = _TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance);
106
+ match++;
107
+ break;
108
+ default:
109
+ errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
110
+ break;
111
+ }
112
+ return;
113
+ }
114
+ try {
115
+ if (instance instanceof _TokenizationIssueEstimateFeeParams["default"]) {
116
+ this.actualInstance = instance;
117
+ } else if (!!_TokenizationIssueEstimateFeeParams["default"].validateJSON && _TokenizationIssueEstimateFeeParams["default"].validateJSON(instance)) {
118
+ // plain JS object
119
+ // create TokenizationIssueEstimateFeeParams from JS object
120
+ this.actualInstance = _TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance);
121
+ } else {
122
+ if (_TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance)) {
123
+ if (!!_TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
124
+ if (_TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
125
+ this.actualInstance = _TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance);
126
+ }
127
+ } else {
128
+ this.actualInstance = _TokenizationIssueEstimateFeeParams["default"].constructFromObject(instance);
129
+ }
130
+ }
131
+ }
132
+ match++;
133
+ } catch (err) {
134
+ // json data failed to deserialize into TokenizationIssueEstimateFeeParams
135
+ errorMessages.push("Failed to construct TokenizationIssueEstimateFeeParams: " + err);
136
+ }
137
+ try {
138
+ if (instance instanceof _TokenizationMintEstimateFeeParams["default"]) {
139
+ this.actualInstance = instance;
140
+ } else if (!!_TokenizationMintEstimateFeeParams["default"].validateJSON && _TokenizationMintEstimateFeeParams["default"].validateJSON(instance)) {
141
+ // plain JS object
142
+ // create TokenizationMintEstimateFeeParams from JS object
143
+ this.actualInstance = _TokenizationMintEstimateFeeParams["default"].constructFromObject(instance);
144
+ } else {
145
+ if (_TokenizationMintEstimateFeeParams["default"].constructFromObject(instance)) {
146
+ if (!!_TokenizationMintEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
147
+ if (_TokenizationMintEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
148
+ this.actualInstance = _TokenizationMintEstimateFeeParams["default"].constructFromObject(instance);
149
+ }
150
+ } else {
151
+ this.actualInstance = _TokenizationMintEstimateFeeParams["default"].constructFromObject(instance);
152
+ }
153
+ }
154
+ }
155
+ match++;
156
+ } catch (err) {
157
+ // json data failed to deserialize into TokenizationMintEstimateFeeParams
158
+ errorMessages.push("Failed to construct TokenizationMintEstimateFeeParams: " + err);
159
+ }
160
+ try {
161
+ if (instance instanceof _TokenizationBurnEstimateFeeParams["default"]) {
162
+ this.actualInstance = instance;
163
+ } else if (!!_TokenizationBurnEstimateFeeParams["default"].validateJSON && _TokenizationBurnEstimateFeeParams["default"].validateJSON(instance)) {
164
+ // plain JS object
165
+ // create TokenizationBurnEstimateFeeParams from JS object
166
+ this.actualInstance = _TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance);
167
+ } else {
168
+ if (_TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance)) {
169
+ if (!!_TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
170
+ if (_TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
171
+ this.actualInstance = _TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance);
172
+ }
173
+ } else {
174
+ this.actualInstance = _TokenizationBurnEstimateFeeParams["default"].constructFromObject(instance);
175
+ }
176
+ }
177
+ }
178
+ match++;
179
+ } catch (err) {
180
+ // json data failed to deserialize into TokenizationBurnEstimateFeeParams
181
+ errorMessages.push("Failed to construct TokenizationBurnEstimateFeeParams: " + err);
182
+ }
183
+ try {
184
+ if (instance instanceof _TokenizationPauseEstimateFeeParams["default"]) {
185
+ this.actualInstance = instance;
186
+ } else if (!!_TokenizationPauseEstimateFeeParams["default"].validateJSON && _TokenizationPauseEstimateFeeParams["default"].validateJSON(instance)) {
187
+ // plain JS object
188
+ // create TokenizationPauseEstimateFeeParams from JS object
189
+ this.actualInstance = _TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance);
190
+ } else {
191
+ if (_TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance)) {
192
+ if (!!_TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
193
+ if (_TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
194
+ this.actualInstance = _TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance);
195
+ }
196
+ } else {
197
+ this.actualInstance = _TokenizationPauseEstimateFeeParams["default"].constructFromObject(instance);
198
+ }
199
+ }
200
+ }
201
+ match++;
202
+ } catch (err) {
203
+ // json data failed to deserialize into TokenizationPauseEstimateFeeParams
204
+ errorMessages.push("Failed to construct TokenizationPauseEstimateFeeParams: " + err);
205
+ }
206
+ try {
207
+ if (instance instanceof _TokenizationUnpauseEstimateFeeParams["default"]) {
208
+ this.actualInstance = instance;
209
+ } else if (!!_TokenizationUnpauseEstimateFeeParams["default"].validateJSON && _TokenizationUnpauseEstimateFeeParams["default"].validateJSON(instance)) {
210
+ // plain JS object
211
+ // create TokenizationUnpauseEstimateFeeParams from JS object
212
+ this.actualInstance = _TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance);
213
+ } else {
214
+ if (_TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance)) {
215
+ if (!!_TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
216
+ if (_TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
217
+ this.actualInstance = _TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance);
218
+ }
219
+ } else {
220
+ this.actualInstance = _TokenizationUnpauseEstimateFeeParams["default"].constructFromObject(instance);
221
+ }
222
+ }
223
+ }
224
+ match++;
225
+ } catch (err) {
226
+ // json data failed to deserialize into TokenizationUnpauseEstimateFeeParams
227
+ errorMessages.push("Failed to construct TokenizationUnpauseEstimateFeeParams: " + err);
228
+ }
229
+ try {
230
+ if (instance instanceof _TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"]) {
231
+ this.actualInstance = instance;
232
+ } else if (!!_TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].validateJSON && _TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].validateJSON(instance)) {
233
+ // plain JS object
234
+ // create TokenizationUpdateAllowlistAddressesEstimateFeeParams from JS object
235
+ this.actualInstance = _TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance);
236
+ } else {
237
+ if (_TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance)) {
238
+ if (!!_TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
239
+ if (_TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
240
+ this.actualInstance = _TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance);
241
+ }
242
+ } else {
243
+ this.actualInstance = _TokenizationUpdateAllowlistAddressesEstimateFeeParams["default"].constructFromObject(instance);
244
+ }
245
+ }
246
+ }
247
+ match++;
248
+ } catch (err) {
249
+ // json data failed to deserialize into TokenizationUpdateAllowlistAddressesEstimateFeeParams
250
+ errorMessages.push("Failed to construct TokenizationUpdateAllowlistAddressesEstimateFeeParams: " + err);
251
+ }
252
+ try {
253
+ if (instance instanceof _TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"]) {
254
+ this.actualInstance = instance;
255
+ } else if (!!_TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].validateJSON && _TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].validateJSON(instance)) {
256
+ // plain JS object
257
+ // create TokenizationUpdateBlocklistAddressesEstimateFeeParams from JS object
258
+ this.actualInstance = _TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance);
259
+ } else {
260
+ if (_TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance)) {
261
+ if (!!_TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
262
+ if (_TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
263
+ this.actualInstance = _TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance);
264
+ }
265
+ } else {
266
+ this.actualInstance = _TokenizationUpdateBlocklistAddressesEstimateFeeParams["default"].constructFromObject(instance);
267
+ }
268
+ }
269
+ }
270
+ match++;
271
+ } catch (err) {
272
+ // json data failed to deserialize into TokenizationUpdateBlocklistAddressesEstimateFeeParams
273
+ errorMessages.push("Failed to construct TokenizationUpdateBlocklistAddressesEstimateFeeParams: " + err);
274
+ }
275
+ try {
276
+ if (instance instanceof _TokenizationToggleAllowlistEstimateFeeParams["default"]) {
277
+ this.actualInstance = instance;
278
+ } else if (!!_TokenizationToggleAllowlistEstimateFeeParams["default"].validateJSON && _TokenizationToggleAllowlistEstimateFeeParams["default"].validateJSON(instance)) {
279
+ // plain JS object
280
+ // create TokenizationToggleAllowlistEstimateFeeParams from JS object
281
+ this.actualInstance = _TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance);
282
+ } else {
283
+ if (_TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance)) {
284
+ if (!!_TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
285
+ if (_TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
286
+ this.actualInstance = _TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance);
287
+ }
288
+ } else {
289
+ this.actualInstance = _TokenizationToggleAllowlistEstimateFeeParams["default"].constructFromObject(instance);
290
+ }
291
+ }
292
+ }
293
+ match++;
294
+ } catch (err) {
295
+ // json data failed to deserialize into TokenizationToggleAllowlistEstimateFeeParams
296
+ errorMessages.push("Failed to construct TokenizationToggleAllowlistEstimateFeeParams: " + err);
297
+ }
298
+ try {
299
+ if (instance instanceof _TokenizationContractCallEstimateFeeParams["default"]) {
300
+ this.actualInstance = instance;
301
+ } else if (!!_TokenizationContractCallEstimateFeeParams["default"].validateJSON && _TokenizationContractCallEstimateFeeParams["default"].validateJSON(instance)) {
302
+ // plain JS object
303
+ // create TokenizationContractCallEstimateFeeParams from JS object
304
+ this.actualInstance = _TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance);
305
+ } else {
306
+ if (_TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance)) {
307
+ if (!!_TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance).toJSON) {
308
+ if (_TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance).toJSON()) {
309
+ this.actualInstance = _TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance);
310
+ }
311
+ } else {
312
+ this.actualInstance = _TokenizationContractCallEstimateFeeParams["default"].constructFromObject(instance);
313
+ }
314
+ }
315
+ }
316
+ match++;
317
+ } catch (err) {
318
+ // json data failed to deserialize into TokenizationContractCallEstimateFeeParams
319
+ errorMessages.push("Failed to construct TokenizationContractCallEstimateFeeParams: " + err);
320
+ }
321
+
322
+ // if (match > 1) {
323
+ // throw new Error("Multiple matches found constructing `TokenizationEstimateFeeRequestOperationParams` with oneOf schemas TokenizationBurnEstimateFeeParams, TokenizationContractCallEstimateFeeParams, TokenizationIssueEstimateFeeParams, TokenizationMintEstimateFeeParams, TokenizationPauseEstimateFeeParams, TokenizationToggleAllowlistEstimateFeeParams, TokenizationUnpauseEstimateFeeParams, TokenizationUpdateAllowlistAddressesEstimateFeeParams, TokenizationUpdateBlocklistAddressesEstimateFeeParams. Input: " + JSON.stringify(instance));
324
+ // } else
325
+ if (match === 0) {
326
+ // this.actualInstance = null; // clear the actual instance in case there are multiple matches
327
+ // throw new Error("No match found constructing `TokenizationEstimateFeeRequestOperationParams` with oneOf schemas TokenizationBurnEstimateFeeParams, TokenizationContractCallEstimateFeeParams, TokenizationIssueEstimateFeeParams, TokenizationMintEstimateFeeParams, TokenizationPauseEstimateFeeParams, TokenizationToggleAllowlistEstimateFeeParams, TokenizationUnpauseEstimateFeeParams, TokenizationUpdateAllowlistAddressesEstimateFeeParams, TokenizationUpdateBlocklistAddressesEstimateFeeParams. Details: " +
328
+ // errorMessages.join(", "));
329
+ return;
330
+ } else {// only 1 match
331
+ // the input is valid
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Constructs a <code>TokenizationEstimateFeeRequestOperationParams</code> from a plain JavaScript object, optionally creating a new instance.
337
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
338
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
339
+ * @param {module:model/TokenizationEstimateFeeRequestOperationParams} obj Optional instance to populate.
340
+ * @return {module:model/TokenizationEstimateFeeRequestOperationParams} The populated <code>TokenizationEstimateFeeRequestOperationParams</code> instance.
341
+ */
342
+ return _createClass(TokenizationEstimateFeeRequestOperationParams, [{
343
+ key: "getActualInstance",
344
+ value:
345
+ /**
346
+ * Gets the actual instance, which can be <code>TokenizationBurnEstimateFeeParams</code>, <code>TokenizationContractCallEstimateFeeParams</code>, <code>TokenizationIssueEstimateFeeParams</code>, <code>TokenizationMintEstimateFeeParams</code>, <code>TokenizationPauseEstimateFeeParams</code>, <code>TokenizationToggleAllowlistEstimateFeeParams</code>, <code>TokenizationUnpauseEstimateFeeParams</code>, <code>TokenizationUpdateAllowlistAddressesEstimateFeeParams</code>, <code>TokenizationUpdateBlocklistAddressesEstimateFeeParams</code>.
347
+ * @return {(module:model/TokenizationBurnEstimateFeeParams|module:model/TokenizationContractCallEstimateFeeParams|module:model/TokenizationIssueEstimateFeeParams|module:model/TokenizationMintEstimateFeeParams|module:model/TokenizationPauseEstimateFeeParams|module:model/TokenizationToggleAllowlistEstimateFeeParams|module:model/TokenizationUnpauseEstimateFeeParams|module:model/TokenizationUpdateAllowlistAddressesEstimateFeeParams|module:model/TokenizationUpdateBlocklistAddressesEstimateFeeParams)} The actual instance.
348
+ */
349
+ function getActualInstance() {
350
+ return this.actualInstance;
351
+ }
352
+
353
+ /**
354
+ * Sets the actual instance, which can be <code>TokenizationBurnEstimateFeeParams</code>, <code>TokenizationContractCallEstimateFeeParams</code>, <code>TokenizationIssueEstimateFeeParams</code>, <code>TokenizationMintEstimateFeeParams</code>, <code>TokenizationPauseEstimateFeeParams</code>, <code>TokenizationToggleAllowlistEstimateFeeParams</code>, <code>TokenizationUnpauseEstimateFeeParams</code>, <code>TokenizationUpdateAllowlistAddressesEstimateFeeParams</code>, <code>TokenizationUpdateBlocklistAddressesEstimateFeeParams</code>.
355
+ * @param {(module:model/TokenizationBurnEstimateFeeParams|module:model/TokenizationContractCallEstimateFeeParams|module:model/TokenizationIssueEstimateFeeParams|module:model/TokenizationMintEstimateFeeParams|module:model/TokenizationPauseEstimateFeeParams|module:model/TokenizationToggleAllowlistEstimateFeeParams|module:model/TokenizationUnpauseEstimateFeeParams|module:model/TokenizationUpdateAllowlistAddressesEstimateFeeParams|module:model/TokenizationUpdateBlocklistAddressesEstimateFeeParams)} obj The actual instance.
356
+ */
357
+ }, {
358
+ key: "setActualInstance",
359
+ value: function setActualInstance(obj) {
360
+ this.actualInstance = TokenizationEstimateFeeRequestOperationParams.constructFromObject(obj).getActualInstance();
361
+ }
362
+ }], [{
363
+ key: "constructFromObject",
364
+ value: function constructFromObject(data, obj) {
365
+ return new TokenizationEstimateFeeRequestOperationParams(data);
366
+ }
367
+ }]);
368
+ }();
369
+ /**
370
+ * The chain ID where the token will be issued.
371
+ * @member {String} chain_id
372
+ */
373
+ _TokenizationEstimateFeeRequestOperationParams = TokenizationEstimateFeeRequestOperationParams;
374
+ /**
375
+ * Create an instance of TokenizationEstimateFeeRequestOperationParams from a JSON string.
376
+ * @param {string} json_string JSON string.
377
+ * @return {module:model/TokenizationEstimateFeeRequestOperationParams} An instance of TokenizationEstimateFeeRequestOperationParams.
378
+ */
379
+ _defineProperty(TokenizationEstimateFeeRequestOperationParams, "fromJSON", function (json_string) {
380
+ return _TokenizationEstimateFeeRequestOperationParams.constructFromObject(JSON.parse(json_string));
381
+ });
382
+ TokenizationEstimateFeeRequestOperationParams.prototype['chain_id'] = undefined;
383
+
384
+ /**
385
+ * @member {module:model/TokenizationTokenOperationSource} source
386
+ */
387
+ TokenizationEstimateFeeRequestOperationParams.prototype['source'] = undefined;
388
+
389
+ /**
390
+ * @member {module:model/TokenizationIssueTokenParamsTokenParams} token_params
391
+ */
392
+ TokenizationEstimateFeeRequestOperationParams.prototype['token_params'] = undefined;
393
+
394
+ /**
395
+ * @member {module:model/TokenizationOperationType} operation_type
396
+ */
397
+ TokenizationEstimateFeeRequestOperationParams.prototype['operation_type'] = undefined;
398
+
399
+ /**
400
+ * Details for each token mint, including amount and address to mint to.
401
+ * @member {Array.<module:model/TokenizationMintTokenParamsMintsInner>} mints
402
+ */
403
+ TokenizationEstimateFeeRequestOperationParams.prototype['mints'] = undefined;
404
+
405
+ /**
406
+ * The ID of the token.
407
+ * @member {String} token_id
408
+ */
409
+ TokenizationEstimateFeeRequestOperationParams.prototype['token_id'] = undefined;
410
+
411
+ /**
412
+ * Details for each token burn, including amount and address to burn from.
413
+ * @member {Array.<module:model/TokenizationBurnTokenParamsBurnsInner>} burns
414
+ */
415
+ TokenizationEstimateFeeRequestOperationParams.prototype['burns'] = undefined;
416
+
417
+ /**
418
+ * @member {module:model/TokenizationUpdateAddressAction} action
419
+ */
420
+ TokenizationEstimateFeeRequestOperationParams.prototype['action'] = undefined;
421
+
422
+ /**
423
+ * A list of addresses to manage. For 'add' operations, notes can be provided. For 'remove' operations, notes are ignored.
424
+ * @member {Array.<module:model/TokenizationUpdateBlocklistAddressesParamsAddressesInner>} addresses
425
+ */
426
+ TokenizationEstimateFeeRequestOperationParams.prototype['addresses'] = undefined;
427
+
428
+ /**
429
+ * Whether to activate the allowlist feature for the token.
430
+ * @member {Boolean} activation
431
+ */
432
+ TokenizationEstimateFeeRequestOperationParams.prototype['activation'] = undefined;
433
+
434
+ /**
435
+ * @member {module:model/TokenizationContractCallParamsData} data
436
+ */
437
+ TokenizationEstimateFeeRequestOperationParams.prototype['data'] = undefined;
438
+ TokenizationEstimateFeeRequestOperationParams.OneOf = ["TokenizationBurnEstimateFeeParams", "TokenizationContractCallEstimateFeeParams", "TokenizationIssueEstimateFeeParams", "TokenizationMintEstimateFeeParams", "TokenizationPauseEstimateFeeParams", "TokenizationToggleAllowlistEstimateFeeParams", "TokenizationUnpauseEstimateFeeParams", "TokenizationUpdateAllowlistAddressesEstimateFeeParams", "TokenizationUpdateBlocklistAddressesEstimateFeeParams"];
439
+ var _default = exports["default"] = TokenizationEstimateFeeRequestOperationParams;
@@ -0,0 +1,133 @@
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 _TokenizationContractCallType = _interopRequireDefault(require("./TokenizationContractCallType"));
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 TokenizationEvmContractCallParams model module.
30
+ * @module model/TokenizationEvmContractCallParams
31
+ */
32
+ var TokenizationEvmContractCallParams = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>TokenizationEvmContractCallParams</code>.
35
+ * The information about the EVM contract call.
36
+ * @alias module:model/TokenizationEvmContractCallParams
37
+ * @param calldata {String} The data that is used to invoke a specific function or method within the specified contract at the destination address.
38
+ */
39
+ function TokenizationEvmContractCallParams(calldata) {
40
+ _classCallCheck(this, TokenizationEvmContractCallParams);
41
+ TokenizationEvmContractCallParams.initialize(this, calldata);
42
+ }
43
+
44
+ /**
45
+ * Initializes the fields of this object.
46
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
+ * Only for internal use.
48
+ */
49
+ return _createClass(TokenizationEvmContractCallParams, null, [{
50
+ key: "initialize",
51
+ value: function initialize(obj, calldata) {
52
+ obj['calldata'] = calldata;
53
+ }
54
+
55
+ /**
56
+ * Constructs a <code>TokenizationEvmContractCallParams</code> from a plain JavaScript object, optionally creating a new instance.
57
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
58
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
59
+ * @param {module:model/TokenizationEvmContractCallParams} obj Optional instance to populate.
60
+ * @return {module:model/TokenizationEvmContractCallParams} The populated <code>TokenizationEvmContractCallParams</code> instance.
61
+ */
62
+ }, {
63
+ key: "constructFromObject",
64
+ value: function constructFromObject(data, obj) {
65
+ if (data) {
66
+ obj = obj || new TokenizationEvmContractCallParams();
67
+ if (data.hasOwnProperty('type')) {
68
+ obj['type'] = _TokenizationContractCallType["default"].constructFromObject(data['type']);
69
+ }
70
+ if (data.hasOwnProperty('calldata')) {
71
+ obj['calldata'] = _ApiClient["default"].convertToType(data['calldata'], 'String');
72
+ }
73
+ if (data.hasOwnProperty('value')) {
74
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
75
+ }
76
+ }
77
+ return obj;
78
+ }
79
+
80
+ /**
81
+ * Validates the JSON data with respect to <code>TokenizationEvmContractCallParams</code>.
82
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
83
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TokenizationEvmContractCallParams</code>.
84
+ */
85
+ }, {
86
+ key: "validateJSON",
87
+ value: function validateJSON(data) {
88
+ // check to make sure all required properties are present in the JSON string
89
+ var _iterator = _createForOfIteratorHelper(TokenizationEvmContractCallParams.RequiredProperties),
90
+ _step;
91
+ try {
92
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
93
+ var property = _step.value;
94
+ if (!data.hasOwnProperty(property)) {
95
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
96
+ }
97
+ }
98
+ // ensure the json data is a string
99
+ } catch (err) {
100
+ _iterator.e(err);
101
+ } finally {
102
+ _iterator.f();
103
+ }
104
+ if (data['calldata'] && !(typeof data['calldata'] === 'string' || data['calldata'] instanceof String)) {
105
+ throw new Error("Expected the field `calldata` to be a primitive type in the JSON string but got " + data['calldata']);
106
+ }
107
+ // ensure the json data is a string
108
+ if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
109
+ throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
110
+ }
111
+ return true;
112
+ }
113
+ }]);
114
+ }();
115
+ TokenizationEvmContractCallParams.RequiredProperties = ["calldata"];
116
+
117
+ /**
118
+ * @member {module:model/TokenizationContractCallType} type
119
+ */
120
+ TokenizationEvmContractCallParams.prototype['type'] = undefined;
121
+
122
+ /**
123
+ * The data that is used to invoke a specific function or method within the specified contract at the destination address.
124
+ * @member {String} calldata
125
+ */
126
+ TokenizationEvmContractCallParams.prototype['calldata'] = undefined;
127
+
128
+ /**
129
+ * The transfer amount. For example, if you trade 1.5 ETH, then the value is `1.5`.
130
+ * @member {String} value
131
+ */
132
+ TokenizationEvmContractCallParams.prototype['value'] = undefined;
133
+ var _default = exports["default"] = TokenizationEvmContractCallParams;