@cobo/cobo-waas2 1.10.0 → 1.11.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 (76) hide show
  1. package/README.md +8 -1
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/AddressBooksApi.js +1 -1
  4. package/dist/api/DevelopersApi.js +3 -3
  5. package/dist/api/DevelopersWebhooksApi.js +8 -8
  6. package/dist/api/StakingsApi.js +14 -14
  7. package/dist/api/SwapsApi.js +2 -2
  8. package/dist/api/TransactionsApi.js +14 -14
  9. package/dist/api/TravelRuleApi.js +4 -4
  10. package/dist/api/WalletsApi.js +19 -19
  11. package/dist/api/WalletsExchangeWalletApi.js +1 -1
  12. package/dist/api/WalletsMPCWalletsApi.js +19 -19
  13. package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
  14. package/dist/index.js +49 -0
  15. package/dist/model/ChainInfo.js +2 -2
  16. package/dist/model/ContractCallDestination.js +42 -8
  17. package/dist/model/ContractCallDestinationType.js +5 -0
  18. package/dist/model/CreateBabylonAirdropRegistration201Response.js +1 -1
  19. package/dist/model/CreateBabylonStakingRegistration201Response.js +1 -1
  20. package/dist/model/EstimatedEvmEip1559FeeSlow.js +23 -0
  21. package/dist/model/EstimatedEvmLegacyFeeSlow.js +23 -0
  22. package/dist/model/ExtendedTokenInfo.js +3 -3
  23. package/dist/model/FeeReserved.js +87 -0
  24. package/dist/model/MaxFeeAmount.js +1 -1
  25. package/dist/model/SolContractCallAccount.js +133 -0
  26. package/dist/model/SolContractCallDestination.js +139 -0
  27. package/dist/model/SolContractCallInstruction.js +158 -0
  28. package/dist/model/TokenInfo.js +2 -2
  29. package/dist/model/TransactionDestination.js +42 -8
  30. package/dist/model/TransactionDestinationType.js +5 -0
  31. package/dist/model/TransactionFee.js +1 -1
  32. package/dist/model/TransactionFixedFee.js +2 -2
  33. package/dist/model/TransactionRequestFee.js +1 -1
  34. package/dist/model/TransactionRequestFixedFee.js +2 -2
  35. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  36. package/dist/model/TransactionSolContractAccount.js +106 -0
  37. package/dist/model/TransactionSolContractDestination.js +137 -0
  38. package/dist/model/TransactionSolContractInstruction.js +134 -0
  39. package/dist/model/TransactionTokeApproval.js +3 -3
  40. package/docs/AddressBooksApi.md +1 -1
  41. package/docs/ChainInfo.md +1 -1
  42. package/docs/ContractCallDestination.md +1 -0
  43. package/docs/ContractCallDestinationType.md +2 -0
  44. package/docs/CreateBabylonAirdropRegistration201Response.md +1 -1
  45. package/docs/CreateBabylonStakingRegistration201Response.md +1 -1
  46. package/docs/DevelopersApi.md +3 -3
  47. package/docs/DevelopersWebhooksApi.md +8 -8
  48. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -0
  49. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -0
  50. package/docs/ExtendedTokenInfo.md +1 -1
  51. package/docs/FeeReserved.md +9 -0
  52. package/docs/MaxFeeAmount.md +1 -1
  53. package/docs/SolContractCallAccount.md +11 -0
  54. package/docs/SolContractCallDestination.md +10 -0
  55. package/docs/SolContractCallInstruction.md +11 -0
  56. package/docs/StakingsApi.md +13 -13
  57. package/docs/SwapsApi.md +2 -2
  58. package/docs/TokenInfo.md +1 -1
  59. package/docs/TransactionDestination.md +1 -0
  60. package/docs/TransactionDestinationType.md +2 -0
  61. package/docs/TransactionFee.md +1 -1
  62. package/docs/TransactionFixedFee.md +1 -1
  63. package/docs/TransactionRequestFee.md +1 -1
  64. package/docs/TransactionRequestFixedFee.md +1 -1
  65. package/docs/TransactionRequestUtxoFee.md +1 -1
  66. package/docs/TransactionSolContractAccount.md +11 -0
  67. package/docs/TransactionSolContractDestination.md +10 -0
  68. package/docs/TransactionSolContractInstruction.md +11 -0
  69. package/docs/TransactionTokeApproval.md +1 -1
  70. package/docs/TransactionsApi.md +14 -14
  71. package/docs/TravelRuleApi.md +4 -4
  72. package/docs/WalletsApi.md +16 -16
  73. package/docs/WalletsExchangeWalletApi.md +1 -1
  74. package/docs/WalletsMPCWalletsApi.md +19 -19
  75. package/docs/WalletsSmartContractWalletsApi.md +1 -1
  76. package/package.json +1 -1
@@ -88,7 +88,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
88
88
  var queryParams = {};
89
89
  var headerParams = {};
90
90
  var formParams = {};
91
- var authNames = ['OAuth2'];
91
+ var authNames = ['OAuth2', 'CoboAuth'];
92
92
  var contentTypes = [];
93
93
  var accepts = ['application/json'];
94
94
  var returnType = _TSSRequest["default"];
@@ -136,7 +136,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
136
136
  var queryParams = {};
137
137
  var headerParams = {};
138
138
  var formParams = {};
139
- var authNames = ['OAuth2'];
139
+ var authNames = ['OAuth2', 'CoboAuth'];
140
140
  var contentTypes = ['application/json'];
141
141
  var accepts = ['application/json'];
142
142
  var returnType = _KeyShareHolderGroup["default"];
@@ -178,7 +178,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
178
178
  var queryParams = {};
179
179
  var headerParams = {};
180
180
  var formParams = {};
181
- var authNames = ['OAuth2'];
181
+ var authNames = ['OAuth2', 'CoboAuth'];
182
182
  var contentTypes = ['application/json'];
183
183
  var accepts = ['application/json'];
184
184
  var returnType = _MPCProject["default"];
@@ -219,7 +219,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
219
219
  var queryParams = {};
220
220
  var headerParams = {};
221
221
  var formParams = {};
222
- var authNames = ['OAuth2'];
222
+ var authNames = ['OAuth2', 'CoboAuth'];
223
223
  var contentTypes = ['application/json'];
224
224
  var accepts = ['application/json'];
225
225
  var returnType = _MPCVault["default"];
@@ -267,7 +267,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
267
267
  var queryParams = {};
268
268
  var headerParams = {};
269
269
  var formParams = {};
270
- var authNames = ['OAuth2'];
270
+ var authNames = ['OAuth2', 'CoboAuth'];
271
271
  var contentTypes = ['application/json'];
272
272
  var accepts = ['application/json'];
273
273
  var returnType = _TSSRequest["default"];
@@ -319,7 +319,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
319
319
  var queryParams = {};
320
320
  var headerParams = {};
321
321
  var formParams = {};
322
- var authNames = ['OAuth2'];
322
+ var authNames = ['OAuth2', 'CoboAuth'];
323
323
  var contentTypes = [];
324
324
  var accepts = ['application/json'];
325
325
  var returnType = _DeleteKeyShareHolderGroupById201Response["default"];
@@ -370,7 +370,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
370
370
  var queryParams = {};
371
371
  var headerParams = {};
372
372
  var formParams = {};
373
- var authNames = ['CoboAuth'];
373
+ var authNames = ['OAuth2', 'CoboAuth'];
374
374
  var contentTypes = [];
375
375
  var accepts = ['application/json'];
376
376
  var returnType = _KeyShareHolder["default"];
@@ -421,7 +421,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
421
421
  var queryParams = {};
422
422
  var headerParams = {};
423
423
  var formParams = {};
424
- var authNames = ['OAuth2'];
424
+ var authNames = ['OAuth2', 'CoboAuth'];
425
425
  var contentTypes = [];
426
426
  var accepts = ['application/json'];
427
427
  var returnType = _KeyShareHolderGroup["default"];
@@ -466,7 +466,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
466
466
  var queryParams = {};
467
467
  var headerParams = {};
468
468
  var formParams = {};
469
- var authNames = ['OAuth2'];
469
+ var authNames = ['OAuth2', 'CoboAuth'];
470
470
  var contentTypes = [];
471
471
  var accepts = ['application/json'];
472
472
  var returnType = _MPCProject["default"];
@@ -510,7 +510,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
510
510
  var queryParams = {};
511
511
  var headerParams = {};
512
512
  var formParams = {};
513
- var authNames = ['OAuth2'];
513
+ var authNames = ['OAuth2', 'CoboAuth'];
514
514
  var contentTypes = [];
515
515
  var accepts = ['application/json'];
516
516
  var returnType = _MPCVault["default"];
@@ -560,7 +560,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
560
560
  var queryParams = {};
561
561
  var headerParams = {};
562
562
  var formParams = {};
563
- var authNames = ['OAuth2'];
563
+ var authNames = ['OAuth2', 'CoboAuth'];
564
564
  var contentTypes = [];
565
565
  var accepts = ['application/json'];
566
566
  var returnType = _TSSRequest["default"];
@@ -652,7 +652,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
652
652
  };
653
653
  var headerParams = {};
654
654
  var formParams = {};
655
- var authNames = ['OAuth2'];
655
+ var authNames = ['OAuth2', 'CoboAuth'];
656
656
  var contentTypes = [];
657
657
  var accepts = ['application/json'];
658
658
  var returnType = _ListKeyShareHolderGroups200Response["default"];
@@ -712,7 +712,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
712
712
  };
713
713
  var headerParams = {};
714
714
  var formParams = {};
715
- var authNames = ['CoboAuth'];
715
+ var authNames = ['OAuth2', 'CoboAuth'];
716
716
  var contentTypes = [];
717
717
  var accepts = ['application/json'];
718
718
  var returnType = _ListKeyShareHolders200Response["default"];
@@ -763,7 +763,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
763
763
  };
764
764
  var headerParams = {};
765
765
  var formParams = {};
766
- var authNames = ['OAuth2'];
766
+ var authNames = ['OAuth2', 'CoboAuth'];
767
767
  var contentTypes = [];
768
768
  var accepts = ['application/json'];
769
769
  var returnType = _ListMpcProjects200Response["default"];
@@ -820,7 +820,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
820
820
  };
821
821
  var headerParams = {};
822
822
  var formParams = {};
823
- var authNames = ['OAuth2'];
823
+ var authNames = ['OAuth2', 'CoboAuth'];
824
824
  var contentTypes = [];
825
825
  var accepts = ['application/json'];
826
826
  var returnType = _ListMpcVaults200Response["default"];
@@ -884,7 +884,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
884
884
  };
885
885
  var headerParams = {};
886
886
  var formParams = {};
887
- var authNames = ['OAuth2'];
887
+ var authNames = ['OAuth2', 'CoboAuth'];
888
888
  var contentTypes = [];
889
889
  var accepts = ['application/json'];
890
890
  var returnType = _ListTssRequests200Response["default"];
@@ -942,7 +942,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
942
942
  var queryParams = {};
943
943
  var headerParams = {};
944
944
  var formParams = {};
945
- var authNames = ['OAuth2'];
945
+ var authNames = ['OAuth2', 'CoboAuth'];
946
946
  var contentTypes = ['application/json'];
947
947
  var accepts = ['application/json'];
948
948
  var returnType = _KeyShareHolderGroup["default"];
@@ -992,7 +992,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
992
992
  var queryParams = {};
993
993
  var headerParams = {};
994
994
  var formParams = {};
995
- var authNames = ['OAuth2'];
995
+ var authNames = ['OAuth2', 'CoboAuth'];
996
996
  var contentTypes = ['application/json'];
997
997
  var accepts = ['application/json'];
998
998
  var returnType = _MPCProject["default"];
@@ -1041,7 +1041,7 @@ var WalletsMPCWalletsApi = exports["default"] = /*#__PURE__*/function () {
1041
1041
  var queryParams = {};
1042
1042
  var headerParams = {};
1043
1043
  var formParams = {};
1044
- var authNames = ['OAuth2'];
1044
+ var authNames = ['OAuth2', 'CoboAuth'];
1045
1045
  var contentTypes = ['application/json'];
1046
1046
  var accepts = ['application/json'];
1047
1047
  var returnType = _MPCVault["default"];
@@ -67,7 +67,7 @@ var WalletsSmartContractWalletsApi = exports["default"] = /*#__PURE__*/function
67
67
  var queryParams = {};
68
68
  var headerParams = {};
69
69
  var formParams = {};
70
- var authNames = ['OAuth2'];
70
+ var authNames = ['OAuth2', 'CoboAuth'];
71
71
  var contentTypes = ['application/json'];
72
72
  var accepts = ['application/json'];
73
73
  var returnType = [_CoboSafeDelegate["default"]];
package/dist/index.js CHANGED
@@ -897,6 +897,12 @@ Object.defineProperty(exports, "FeeRate", {
897
897
  return _FeeRate["default"];
898
898
  }
899
899
  });
900
+ Object.defineProperty(exports, "FeeReserved", {
901
+ enumerable: true,
902
+ get: function get() {
903
+ return _FeeReserved["default"];
904
+ }
905
+ });
900
906
  Object.defineProperty(exports, "FeeType", {
901
907
  enumerable: true,
902
908
  get: function get() {
@@ -1503,6 +1509,24 @@ Object.defineProperty(exports, "SmartContractWalletType", {
1503
1509
  return _SmartContractWalletType["default"];
1504
1510
  }
1505
1511
  });
1512
+ Object.defineProperty(exports, "SolContractCallAccount", {
1513
+ enumerable: true,
1514
+ get: function get() {
1515
+ return _SolContractCallAccount["default"];
1516
+ }
1517
+ });
1518
+ Object.defineProperty(exports, "SolContractCallDestination", {
1519
+ enumerable: true,
1520
+ get: function get() {
1521
+ return _SolContractCallDestination["default"];
1522
+ }
1523
+ });
1524
+ Object.defineProperty(exports, "SolContractCallInstruction", {
1525
+ enumerable: true,
1526
+ get: function get() {
1527
+ return _SolContractCallInstruction["default"];
1528
+ }
1529
+ });
1506
1530
  Object.defineProperty(exports, "SourceGroup", {
1507
1531
  enumerable: true,
1508
1532
  get: function get() {
@@ -1917,6 +1941,24 @@ Object.defineProperty(exports, "TransactionSmartContractSafeWalletSource", {
1917
1941
  return _TransactionSmartContractSafeWalletSource["default"];
1918
1942
  }
1919
1943
  });
1944
+ Object.defineProperty(exports, "TransactionSolContractAccount", {
1945
+ enumerable: true,
1946
+ get: function get() {
1947
+ return _TransactionSolContractAccount["default"];
1948
+ }
1949
+ });
1950
+ Object.defineProperty(exports, "TransactionSolContractDestination", {
1951
+ enumerable: true,
1952
+ get: function get() {
1953
+ return _TransactionSolContractDestination["default"];
1954
+ }
1955
+ });
1956
+ Object.defineProperty(exports, "TransactionSolContractInstruction", {
1957
+ enumerable: true,
1958
+ get: function get() {
1959
+ return _TransactionSolContractInstruction["default"];
1960
+ }
1961
+ });
1920
1962
  Object.defineProperty(exports, "TransactionSource", {
1921
1963
  enumerable: true,
1922
1964
  get: function get() {
@@ -2466,6 +2508,7 @@ var _ExtendedTokenInfo = _interopRequireDefault(require("./model/ExtendedTokenIn
2466
2508
  var _FeeAmount = _interopRequireDefault(require("./model/FeeAmount"));
2467
2509
  var _FeeGasLimit = _interopRequireDefault(require("./model/FeeGasLimit"));
2468
2510
  var _FeeRate = _interopRequireDefault(require("./model/FeeRate"));
2511
+ var _FeeReserved = _interopRequireDefault(require("./model/FeeReserved"));
2469
2512
  var _FeeType = _interopRequireDefault(require("./model/FeeType"));
2470
2513
  var _FixedFeeRate = _interopRequireDefault(require("./model/FixedFeeRate"));
2471
2514
  var _GetApiKeyInfo200Response = _interopRequireDefault(require("./model/GetApiKeyInfo200Response"));
@@ -2564,6 +2607,9 @@ var _SmartContractInitiator = _interopRequireDefault(require("./model/SmartContr
2564
2607
  var _SmartContractWalletInfo = _interopRequireDefault(require("./model/SmartContractWalletInfo"));
2565
2608
  var _SmartContractWalletOperationType = _interopRequireDefault(require("./model/SmartContractWalletOperationType"));
2566
2609
  var _SmartContractWalletType = _interopRequireDefault(require("./model/SmartContractWalletType"));
2610
+ var _SolContractCallAccount = _interopRequireDefault(require("./model/SolContractCallAccount"));
2611
+ var _SolContractCallDestination = _interopRequireDefault(require("./model/SolContractCallDestination"));
2612
+ var _SolContractCallInstruction = _interopRequireDefault(require("./model/SolContractCallInstruction"));
2567
2613
  var _SourceGroup = _interopRequireDefault(require("./model/SourceGroup"));
2568
2614
  var _StakeSourceType = _interopRequireDefault(require("./model/StakeSourceType"));
2569
2615
  var _StakingPoolId = _interopRequireDefault(require("./model/StakingPoolId"));
@@ -2631,6 +2677,9 @@ var _TransactionSelectedUtxo = _interopRequireDefault(require("./model/Transacti
2631
2677
  var _TransactionSignatureResult = _interopRequireDefault(require("./model/TransactionSignatureResult"));
2632
2678
  var _TransactionSigner = _interopRequireDefault(require("./model/TransactionSigner"));
2633
2679
  var _TransactionSmartContractSafeWalletSource = _interopRequireDefault(require("./model/TransactionSmartContractSafeWalletSource"));
2680
+ var _TransactionSolContractAccount = _interopRequireDefault(require("./model/TransactionSolContractAccount"));
2681
+ var _TransactionSolContractDestination = _interopRequireDefault(require("./model/TransactionSolContractDestination"));
2682
+ var _TransactionSolContractInstruction = _interopRequireDefault(require("./model/TransactionSolContractInstruction"));
2634
2683
  var _TransactionSource = _interopRequireDefault(require("./model/TransactionSource"));
2635
2684
  var _TransactionSourceType = _interopRequireDefault(require("./model/TransactionSourceType"));
2636
2685
  var _TransactionStatus = _interopRequireDefault(require("./model/TransactionStatus"));
@@ -33,7 +33,7 @@ var ChainInfo = /*#__PURE__*/function () {
33
33
  * Constructs a new <code>ChainInfo</code>.
34
34
  * The chain information.
35
35
  * @alias module:model/ChainInfo
36
- * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
36
+ * @param chain_id {String} The chain ID, which is the unique identifier of a blockchain.
37
37
  */
38
38
  function ChainInfo(chain_id) {
39
39
  _classCallCheck(this, ChainInfo);
@@ -138,7 +138,7 @@ var ChainInfo = /*#__PURE__*/function () {
138
138
  ChainInfo.RequiredProperties = ["chain_id"];
139
139
 
140
140
  /**
141
- * The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
141
+ * The chain ID, which is the unique identifier of a blockchain.
142
142
  * @member {String} chain_id
143
143
  */
144
144
  ChainInfo.prototype['chain_id'] = undefined;
@@ -7,6 +7,8 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _ContractCallDestinationType = _interopRequireDefault(require("./ContractCallDestinationType"));
9
9
  var _EvmContractCallDestination = _interopRequireDefault(require("./EvmContractCallDestination"));
10
+ var _SolContractCallDestination = _interopRequireDefault(require("./SolContractCallDestination"));
11
+ var _SolContractCallInstruction = _interopRequireDefault(require("./SolContractCallInstruction"));
10
12
  var _ContractCallDestination;
11
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
14
  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); }
@@ -33,7 +35,7 @@ var ContractCallDestination = /*#__PURE__*/function () {
33
35
  /**
34
36
  * Constructs a new <code>ContractCallDestination</code>.
35
37
  * @alias module:model/ContractCallDestination
36
- * @param {(module:model/EvmContractCallDestination)} instance The actual instance to initialize ContractCallDestination.
38
+ * @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination)} instance The actual instance to initialize ContractCallDestination.
37
39
  */
38
40
  function ContractCallDestination() {
39
41
  var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
@@ -58,6 +60,10 @@ var ContractCallDestination = /*#__PURE__*/function () {
58
60
  this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
59
61
  match++;
60
62
  break;
63
+ case "SOL_Contract":
64
+ this.actualInstance = _SolContractCallDestination["default"].constructFromObject(instance);
65
+ match++;
66
+ break;
61
67
  default:
62
68
  errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
63
69
  break;
@@ -87,13 +93,36 @@ var ContractCallDestination = /*#__PURE__*/function () {
87
93
  // json data failed to deserialize into EvmContractCallDestination
88
94
  errorMessages.push("Failed to construct EvmContractCallDestination: " + err);
89
95
  }
96
+ try {
97
+ if (instance instanceof _SolContractCallDestination["default"]) {
98
+ this.actualInstance = instance;
99
+ } else if (!!_SolContractCallDestination["default"].validateJSON && _SolContractCallDestination["default"].validateJSON(instance)) {
100
+ // plain JS object
101
+ // create SolContractCallDestination from JS object
102
+ this.actualInstance = _SolContractCallDestination["default"].constructFromObject(instance);
103
+ } else {
104
+ if (_SolContractCallDestination["default"].constructFromObject(instance)) {
105
+ if (!!_SolContractCallDestination["default"].constructFromObject(instance).toJSON) {
106
+ if (_SolContractCallDestination["default"].constructFromObject(instance).toJSON()) {
107
+ this.actualInstance = _SolContractCallDestination["default"].constructFromObject(instance);
108
+ }
109
+ } else {
110
+ this.actualInstance = _SolContractCallDestination["default"].constructFromObject(instance);
111
+ }
112
+ }
113
+ }
114
+ match++;
115
+ } catch (err) {
116
+ // json data failed to deserialize into SolContractCallDestination
117
+ errorMessages.push("Failed to construct SolContractCallDestination: " + err);
118
+ }
90
119
 
91
120
  // if (match > 1) {
92
- // throw new Error("Multiple matches found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination. Input: " + JSON.stringify(instance));
121
+ // throw new Error("Multiple matches found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination. Input: " + JSON.stringify(instance));
93
122
  // } else
94
123
  if (match === 0) {
95
124
  // this.actualInstance = null; // clear the actual instance in case there are multiple matches
96
- // throw new Error("No match found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination. Details: " +
125
+ // throw new Error("No match found constructing `ContractCallDestination` with oneOf schemas EvmContractCallDestination, SolContractCallDestination. Details: " +
97
126
  // errorMessages.join(", "));
98
127
  return;
99
128
  } else {// only 1 match
@@ -112,16 +141,16 @@ var ContractCallDestination = /*#__PURE__*/function () {
112
141
  key: "getActualInstance",
113
142
  value:
114
143
  /**
115
- * Gets the actual instance, which can be <code>EvmContractCallDestination</code>.
116
- * @return {(module:model/EvmContractCallDestination)} The actual instance.
144
+ * Gets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>.
145
+ * @return {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination)} The actual instance.
117
146
  */
118
147
  function getActualInstance() {
119
148
  return this.actualInstance;
120
149
  }
121
150
 
122
151
  /**
123
- * Sets the actual instance, which can be <code>EvmContractCallDestination</code>.
124
- * @param {(module:model/EvmContractCallDestination)} obj The actual instance.
152
+ * Sets the actual instance, which can be <code>EvmContractCallDestination</code>, <code>SolContractCallDestination</code>.
153
+ * @param {(module:model/EvmContractCallDestination|module:model/SolContractCallDestination)} obj The actual instance.
125
154
  */
126
155
  }, {
127
156
  key: "setActualInstance",
@@ -166,5 +195,10 @@ ContractCallDestination.prototype['value'] = undefined;
166
195
  * @member {String} calldata
167
196
  */
168
197
  ContractCallDestination.prototype['calldata'] = undefined;
169
- ContractCallDestination.OneOf = ["EvmContractCallDestination"];
198
+
199
+ /**
200
+ * @member {Array.<module:model/SolContractCallInstruction>} instructions
201
+ */
202
+ ContractCallDestination.prototype['instructions'] = undefined;
203
+ ContractCallDestination.OneOf = ["EvmContractCallDestination", "SolContractCallDestination"];
170
204
  var _default = exports["default"] = ContractCallDestination;
@@ -35,6 +35,11 @@ var ContractCallDestinationType = exports["default"] = /*#__PURE__*/function ()
35
35
  * @const
36
36
  */
37
37
  _defineProperty(this, "EVM_Contract", "EVM_Contract");
38
+ /**
39
+ * value: "SOL_Contract"
40
+ * @const
41
+ */
42
+ _defineProperty(this, "SOL_Contract", "SOL_Contract");
38
43
  /**
39
44
  * value: "unknown_default_open_api"
40
45
  * @const
@@ -80,7 +80,7 @@ var CreateBabylonAirdropRegistration201Response = /*#__PURE__*/function () {
80
80
  }]);
81
81
  }();
82
82
  /**
83
- * The registration ID, a unique identifier for tracking the airdrop registration request. You can check the registration status with the [Get Babylon airdrop registration details](https://www.cobo.com/developers/v2/api-references/stakings/get_babylon_airdrop_registration_details) operation.
83
+ * The registration ID, a unique identifier for tracking the airdrop registration request. You can check the registration status with the [Get Babylon airdrop registration details](https://www.cobo.com/developers/v2/api-references/stakings/get-babylon-airdrop-registration-details) operation.
84
84
  * @member {String} registration_id
85
85
  */
86
86
  CreateBabylonAirdropRegistration201Response.prototype['registration_id'] = undefined;
@@ -80,7 +80,7 @@ var CreateBabylonStakingRegistration201Response = /*#__PURE__*/function () {
80
80
  }]);
81
81
  }();
82
82
  /**
83
- * The registration ID, a unique identifier for tracking the Babylon staking registration request. You can use it with the [Get Babylon staking registration details operation](https://www.cobo.com/developers/v2/api-references/stakings/get_babylon_staking_registration_details) to check the registration status.
83
+ * The registration ID, a unique identifier for tracking the Babylon Phase-2 registration request. You can use it with the [Get Babylon Phase-2 registration details operation](https://www.cobo.com/developers/v2/api-references/stakings/get-babylon-phase-2-registration-details) to check the registration status.
84
84
  * @member {String} registration_id
85
85
  */
86
86
  CreateBabylonStakingRegistration201Response.prototype['registration_id'] = undefined;
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _EvmEip1559FeeBasePrice = _interopRequireDefault(require("./EvmEip1559FeeBasePrice"));
9
9
  var _FeeGasLimit = _interopRequireDefault(require("./FeeGasLimit"));
10
+ var _FeeReserved = _interopRequireDefault(require("./FeeReserved"));
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
12
  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); }
12
13
  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; } } }; }
@@ -36,6 +37,7 @@ var EstimatedEvmEip1559FeeSlow = /*#__PURE__*/function () {
36
37
  * @alias module:model/EstimatedEvmEip1559FeeSlow
37
38
  * @implements module:model/EvmEip1559FeeBasePrice
38
39
  * @implements module:model/FeeGasLimit
40
+ * @implements module:model/FeeReserved
39
41
  * @param max_fee_per_gas {String} The maximum gas fee per gas unit used on the chain, in wei.
40
42
  * @param max_priority_fee_per_gas {String} The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction.
41
43
  * @param gas_limit {String} The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
@@ -44,6 +46,7 @@ var EstimatedEvmEip1559FeeSlow = /*#__PURE__*/function () {
44
46
  _classCallCheck(this, EstimatedEvmEip1559FeeSlow);
45
47
  _EvmEip1559FeeBasePrice["default"].initialize(this);
46
48
  _FeeGasLimit["default"].initialize(this);
49
+ _FeeReserved["default"].initialize(this);
47
50
  EstimatedEvmEip1559FeeSlow.initialize(this, max_fee_per_gas, max_priority_fee_per_gas, gas_limit);
48
51
  }
49
52
 
@@ -74,6 +77,7 @@ var EstimatedEvmEip1559FeeSlow = /*#__PURE__*/function () {
74
77
  obj = obj || new EstimatedEvmEip1559FeeSlow();
75
78
  _EvmEip1559FeeBasePrice["default"].constructFromObject(data, obj);
76
79
  _FeeGasLimit["default"].constructFromObject(data, obj);
80
+ _FeeReserved["default"].constructFromObject(data, obj);
77
81
  if (data.hasOwnProperty('max_fee_per_gas')) {
78
82
  obj['max_fee_per_gas'] = _ApiClient["default"].convertToType(data['max_fee_per_gas'], 'String');
79
83
  }
@@ -83,6 +87,9 @@ var EstimatedEvmEip1559FeeSlow = /*#__PURE__*/function () {
83
87
  if (data.hasOwnProperty('gas_limit')) {
84
88
  obj['gas_limit'] = _ApiClient["default"].convertToType(data['gas_limit'], 'String');
85
89
  }
90
+ if (data.hasOwnProperty('reserved_fee')) {
91
+ obj['reserved_fee'] = _ApiClient["default"].convertToType(data['reserved_fee'], 'String');
92
+ }
86
93
  }
87
94
  return obj;
88
95
  }
@@ -122,6 +129,10 @@ var EstimatedEvmEip1559FeeSlow = /*#__PURE__*/function () {
122
129
  if (data['gas_limit'] && !(typeof data['gas_limit'] === 'string' || data['gas_limit'] instanceof String)) {
123
130
  throw new Error("Expected the field `gas_limit` to be a primitive type in the JSON string but got " + data['gas_limit']);
124
131
  }
132
+ // ensure the json data is a string
133
+ if (data['reserved_fee'] && !(typeof data['reserved_fee'] === 'string' || data['reserved_fee'] instanceof String)) {
134
+ throw new Error("Expected the field `reserved_fee` to be a primitive type in the JSON string but got " + data['reserved_fee']);
135
+ }
125
136
  return true;
126
137
  }
127
138
  }]);
@@ -146,6 +157,12 @@ EstimatedEvmEip1559FeeSlow.prototype['max_priority_fee_per_gas'] = undefined;
146
157
  */
147
158
  EstimatedEvmEip1559FeeSlow.prototype['gas_limit'] = undefined;
148
159
 
160
+ /**
161
+ * The estimated fee required for submitting the transaction data to L1 (Layer 1), measured in wei.
162
+ * @member {String} reserved_fee
163
+ */
164
+ EstimatedEvmEip1559FeeSlow.prototype['reserved_fee'] = undefined;
165
+
149
166
  // Implement EvmEip1559FeeBasePrice interface:
150
167
  /**
151
168
  * The maximum gas fee per gas unit used on the chain, in wei.
@@ -163,4 +180,10 @@ _EvmEip1559FeeBasePrice["default"].prototype['max_priority_fee_per_gas'] = undef
163
180
  * @member {String} gas_limit
164
181
  */
165
182
  _FeeGasLimit["default"].prototype['gas_limit'] = undefined;
183
+ // Implement FeeReserved interface:
184
+ /**
185
+ * The estimated fee required for submitting the transaction data to L1 (Layer 1), measured in wei.
186
+ * @member {String} reserved_fee
187
+ */
188
+ _FeeReserved["default"].prototype['reserved_fee'] = undefined;
166
189
  var _default = exports["default"] = EstimatedEvmEip1559FeeSlow;
@@ -7,6 +7,7 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _EvmLegacyFeeBasePrice = _interopRequireDefault(require("./EvmLegacyFeeBasePrice"));
9
9
  var _FeeGasLimit = _interopRequireDefault(require("./FeeGasLimit"));
10
+ var _FeeReserved = _interopRequireDefault(require("./FeeReserved"));
10
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
12
  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); }
12
13
  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; } } }; }
@@ -36,6 +37,7 @@ var EstimatedEvmLegacyFeeSlow = /*#__PURE__*/function () {
36
37
  * @alias module:model/EstimatedEvmLegacyFeeSlow
37
38
  * @implements module:model/EvmLegacyFeeBasePrice
38
39
  * @implements module:model/FeeGasLimit
40
+ * @implements module:model/FeeReserved
39
41
  * @param gas_price {String} The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
40
42
  * @param gas_limit {String} The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies.
41
43
  */
@@ -43,6 +45,7 @@ var EstimatedEvmLegacyFeeSlow = /*#__PURE__*/function () {
43
45
  _classCallCheck(this, EstimatedEvmLegacyFeeSlow);
44
46
  _EvmLegacyFeeBasePrice["default"].initialize(this);
45
47
  _FeeGasLimit["default"].initialize(this);
48
+ _FeeReserved["default"].initialize(this);
46
49
  EstimatedEvmLegacyFeeSlow.initialize(this, gas_price, gas_limit);
47
50
  }
48
51
 
@@ -72,12 +75,16 @@ var EstimatedEvmLegacyFeeSlow = /*#__PURE__*/function () {
72
75
  obj = obj || new EstimatedEvmLegacyFeeSlow();
73
76
  _EvmLegacyFeeBasePrice["default"].constructFromObject(data, obj);
74
77
  _FeeGasLimit["default"].constructFromObject(data, obj);
78
+ _FeeReserved["default"].constructFromObject(data, obj);
75
79
  if (data.hasOwnProperty('gas_price')) {
76
80
  obj['gas_price'] = _ApiClient["default"].convertToType(data['gas_price'], 'String');
77
81
  }
78
82
  if (data.hasOwnProperty('gas_limit')) {
79
83
  obj['gas_limit'] = _ApiClient["default"].convertToType(data['gas_limit'], 'String');
80
84
  }
85
+ if (data.hasOwnProperty('reserved_fee')) {
86
+ obj['reserved_fee'] = _ApiClient["default"].convertToType(data['reserved_fee'], 'String');
87
+ }
81
88
  }
82
89
  return obj;
83
90
  }
@@ -113,6 +120,10 @@ var EstimatedEvmLegacyFeeSlow = /*#__PURE__*/function () {
113
120
  if (data['gas_limit'] && !(typeof data['gas_limit'] === 'string' || data['gas_limit'] instanceof String)) {
114
121
  throw new Error("Expected the field `gas_limit` to be a primitive type in the JSON string but got " + data['gas_limit']);
115
122
  }
123
+ // ensure the json data is a string
124
+ if (data['reserved_fee'] && !(typeof data['reserved_fee'] === 'string' || data['reserved_fee'] instanceof String)) {
125
+ throw new Error("Expected the field `reserved_fee` to be a primitive type in the JSON string but got " + data['reserved_fee']);
126
+ }
116
127
  return true;
117
128
  }
118
129
  }]);
@@ -131,6 +142,12 @@ EstimatedEvmLegacyFeeSlow.prototype['gas_price'] = undefined;
131
142
  */
132
143
  EstimatedEvmLegacyFeeSlow.prototype['gas_limit'] = undefined;
133
144
 
145
+ /**
146
+ * The estimated fee required for submitting the transaction data to L1 (Layer 1), measured in wei.
147
+ * @member {String} reserved_fee
148
+ */
149
+ EstimatedEvmLegacyFeeSlow.prototype['reserved_fee'] = undefined;
150
+
134
151
  // Implement EvmLegacyFeeBasePrice interface:
135
152
  /**
136
153
  * The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
@@ -143,4 +160,10 @@ _EvmLegacyFeeBasePrice["default"].prototype['gas_price'] = undefined;
143
160
  * @member {String} gas_limit
144
161
  */
145
162
  _FeeGasLimit["default"].prototype['gas_limit'] = undefined;
163
+ // Implement FeeReserved interface:
164
+ /**
165
+ * The estimated fee required for submitting the transaction data to L1 (Layer 1), measured in wei.
166
+ * @member {String} reserved_fee
167
+ */
168
+ _FeeReserved["default"].prototype['reserved_fee'] = undefined;
146
169
  var _default = exports["default"] = EstimatedEvmLegacyFeeSlow;
@@ -36,7 +36,7 @@ var ExtendedTokenInfo = /*#__PURE__*/function () {
36
36
  * The token information, including whether the token can be deposited or withdrawn.
37
37
  * @alias module:model/ExtendedTokenInfo
38
38
  * @implements module:model/TokenInfo
39
- * @param token_id {String} The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
39
+ * @param token_id {String} The token ID, which is the unique identifier of a token.
40
40
  * @param chain_id {String} The ID of the chain on which the token operates.
41
41
  */
42
42
  function ExtendedTokenInfo(token_id, chain_id) {
@@ -186,7 +186,7 @@ var ExtendedTokenInfo = /*#__PURE__*/function () {
186
186
  ExtendedTokenInfo.RequiredProperties = ["token_id", "chain_id"];
187
187
 
188
188
  /**
189
- * The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
189
+ * The token ID, which is the unique identifier of a token.
190
190
  * @member {String} token_id
191
191
  */
192
192
  ExtendedTokenInfo.prototype['token_id'] = undefined;
@@ -272,7 +272,7 @@ ExtendedTokenInfo.prototype['asset_model_type'] = undefined;
272
272
 
273
273
  // Implement TokenInfo interface:
274
274
  /**
275
- * The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
275
+ * The token ID, which is the unique identifier of a token.
276
276
  * @member {String} token_id
277
277
  */
278
278
  _TokenInfo["default"].prototype['token_id'] = undefined;