@cobo/cobo-waas2 1.20.0 → 1.22.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.
- package/README.md +60 -4
- package/dist/ApiClient.js +11 -2
- package/dist/PreRequestScript.js +2 -4
- package/dist/api/AutoSweepApi.js +289 -0
- package/dist/api/PaymentApi.js +386 -24
- package/dist/api/TokenizationApi.js +1024 -0
- package/dist/api/TransactionsApi.js +103 -2
- package/dist/api/WalletsApi.js +2 -2
- package/dist/crypto/ApiSigner.js +5 -1
- package/dist/index.js +175 -0
- package/dist/model/AddressesEventData.js +3 -3
- package/dist/model/ApprovalDetail.js +7 -7
- package/dist/model/AutoSweepTask.js +198 -0
- package/dist/model/AutoSweepTaskStatus.js +61 -0
- package/dist/model/BalanceUpdateInfoEventData.js +3 -3
- package/dist/model/ChainsEventData.js +3 -3
- package/dist/model/CreateAutoSweepTask.js +126 -0
- package/dist/model/CreateCryptoAddressRequest.js +138 -0
- package/dist/model/CreateCustodialWalletParams.js +9 -0
- package/dist/model/CreateExchangeWalletParams.js +14 -0
- package/dist/model/CreateMpcWalletParams.js +14 -0
- package/dist/model/CreatePaymentOrderRequest.js +5 -5
- package/dist/model/CreateSafeWalletParams.js +9 -0
- package/dist/model/CreateSettlement.js +27 -4
- package/dist/model/CreateSmartContractWalletParams.js +6 -0
- package/dist/model/CreateSweepToAddress.js +126 -0
- package/dist/model/CreateWalletParams.js +6 -0
- package/dist/model/CreatedWalletInfo.js +6 -0
- package/dist/model/CryptoAddress.js +12 -12
- package/dist/model/CustodialWalletInfo.js +9 -0
- package/dist/model/DeleteCryptoAddress201Response.js +110 -0
- package/dist/model/ExchangeWalletInfo.js +14 -0
- package/dist/model/ForcedSweep.js +9 -9
- package/dist/model/ForcedSweepRequest.js +8 -9
- package/dist/model/GetTokenizationAllowlistActivation200Response.js +107 -0
- package/dist/model/ListAutoSweepTask200Response.js +123 -0
- package/dist/model/ListMerchantBalances200Response.js +107 -0
- package/dist/model/ListPaymentWalletBalances200Response.js +107 -0
- package/dist/model/ListSettlementDetails200Response.js +123 -0
- package/dist/model/ListTokenizationBlocklistAddresses200Response.js +145 -0
- package/dist/model/ListWalletSweepToAddresses200Response.js +107 -0
- package/dist/model/MPCVaultEventData.js +3 -3
- package/dist/model/MPCWalletInfo.js +14 -0
- package/dist/model/MerchantBalance.js +201 -0
- package/dist/model/PaymentAddressUpdateEventData.js +13 -13
- package/dist/model/PaymentOrderEventData.js +3 -3
- package/dist/model/PaymentRefundEventData.js +3 -3
- package/dist/model/PaymentSettlementEvent.js +42 -3
- package/dist/model/PaymentTransactionEventData.js +6 -6
- package/dist/model/PaymentWalletBalance.js +177 -0
- package/dist/model/PspBalance.js +175 -0
- package/dist/model/ReceivedAmountPerAddress.js +126 -0
- package/dist/model/SafeWallet.js +9 -0
- package/dist/model/Settlement.js +27 -0
- package/dist/model/SettlementDetail.js +26 -0
- package/dist/model/SettlementInfo.js +7 -7
- package/dist/model/SmartContractWalletInfo.js +6 -0
- package/dist/model/SuspendedTokenEventData.js +3 -3
- package/dist/model/SweepToAddress.js +135 -0
- package/dist/model/SweepToAddressStatus.js +61 -0
- package/dist/model/TSSRequestWebhookEventData.js +3 -3
- package/dist/model/TokenListingEventData.js +3 -3
- package/dist/model/TokenizationActivityInfo.js +8 -4
- package/dist/model/TokenizationAllowlistActivationRequest.js +13 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +4 -4
- package/dist/model/TokenizationAllowlistAddressesResponse.js +145 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +4 -4
- package/dist/model/TokenizationBurnEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +4 -4
- package/dist/model/TokenizationBurnTokenRequest.js +13 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationContractCallParamsData.js +43 -9
- package/dist/model/TokenizationContractCallRequest.js +13 -0
- package/dist/model/TokenizationContractCallType.js +5 -0
- package/dist/model/TokenizationERC20TokenParams.js +4 -4
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +6 -0
- package/dist/model/TokenizationEvmContractCallParams.js +2 -2
- package/dist/model/TokenizationIssueEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +40 -12
- package/dist/model/TokenizationIssuedTokenRequest.js +14 -1
- package/dist/model/TokenizationMintEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationMintTokenRequest.js +13 -0
- package/dist/model/TokenizationMpcOperationSource.js +2 -2
- package/dist/model/TokenizationPauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationPauseTokenRequest.js +13 -0
- package/dist/model/TokenizationSOLTokenParams.js +173 -0
- package/dist/model/TokenizationSolContractCallParams.js +137 -0
- package/dist/model/TokenizationSolTokenPermissionParams.js +140 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationTokenDetailInfo.js +6 -6
- package/dist/model/TokenizationTokenInfo.js +4 -4
- package/dist/model/TokenizationTokenOperationSource.js +1 -1
- package/dist/model/TokenizationTokenPermissionParams.js +1 -1
- package/dist/model/TokenizationTokenPermissionType.js +15 -0
- package/dist/model/TokenizationTokenStandard.js +5 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +13 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +1 -1
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +13 -0
- package/dist/model/TokenizationWeb3OperationSource.js +2 -2
- package/dist/model/TokensEventData.js +3 -3
- package/dist/model/TopUpAddress.js +0 -1
- package/dist/model/TransactionWebhookEventData.js +3 -3
- package/dist/model/UpdateCustodialWalletParams.js +13 -6
- package/dist/model/UpdateMpcWalletParams.js +13 -6
- package/dist/model/UpdateTopUpAddress.js +3 -3
- package/dist/model/UpdateWalletParams.js +6 -0
- package/dist/model/WalletInfo.js +6 -0
- package/dist/model/WalletInfoEventData.js +3 -3
- package/dist/model/WebhookEventData.js +19 -7
- package/dist/model/WebhookEventDataType.js +2 -2
- package/docs/AddressesEventData.md +1 -1
- package/docs/ApprovalDetail.md +1 -1
- package/docs/AutoSweepApi.md +285 -0
- package/docs/AutoSweepTask.md +16 -0
- package/docs/AutoSweepTaskStatus.md +12 -0
- package/docs/BalanceUpdateInfoEventData.md +1 -1
- package/docs/ChainsEventData.md +1 -1
- package/docs/CreateAutoSweepTask.md +10 -0
- package/docs/CreateCryptoAddressRequest.md +11 -0
- package/docs/CreateCustodialWalletParams.md +1 -0
- package/docs/CreateExchangeWalletParams.md +1 -0
- package/docs/CreateMpcWalletParams.md +1 -0
- package/docs/CreatePaymentOrderRequest.md +3 -3
- package/docs/CreateSafeWalletParams.md +1 -0
- package/docs/CreateSettlement.md +1 -1
- package/docs/CreateSmartContractWalletParams.md +1 -0
- package/docs/CreateSweepToAddress.md +10 -0
- package/docs/CreateWalletParams.md +1 -0
- package/docs/CreatedWalletInfo.md +1 -0
- package/docs/CryptoAddress.md +1 -1
- package/docs/CustodialWalletInfo.md +1 -0
- package/docs/DeleteCryptoAddress201Response.md +9 -0
- package/docs/ExchangeWalletInfo.md +1 -0
- package/docs/ForcedSweep.md +7 -7
- package/docs/ForcedSweepRequest.md +4 -4
- package/docs/GetTokenizationAllowlistActivation200Response.md +9 -0
- package/docs/ListAutoSweepTask200Response.md +10 -0
- package/docs/ListMerchantBalances200Response.md +9 -0
- package/docs/ListPaymentWalletBalances200Response.md +9 -0
- package/docs/ListSettlementDetails200Response.md +10 -0
- package/docs/ListTokenizationBlocklistAddresses200Response.md +10 -0
- package/docs/ListWalletSweepToAddresses200Response.md +9 -0
- package/docs/MPCVaultEventData.md +1 -1
- package/docs/MPCWalletInfo.md +1 -0
- package/docs/MerchantBalance.md +16 -0
- package/docs/PaymentAddressUpdateEventData.md +6 -6
- package/docs/PaymentApi.md +403 -16
- package/docs/PaymentOrderEventData.md +1 -1
- package/docs/PaymentRefundEventData.md +1 -1
- package/docs/PaymentSettlementEvent.md +4 -1
- package/docs/PaymentTransactionEventData.md +4 -4
- package/docs/PaymentWalletBalance.md +14 -0
- package/docs/PspBalance.md +14 -0
- package/docs/ReceivedAmountPerAddress.md +10 -0
- package/docs/SafeWallet.md +1 -0
- package/docs/Settlement.md +3 -0
- package/docs/SettlementDetail.md +2 -0
- package/docs/SettlementInfo.md +6 -6
- package/docs/SmartContractWalletInfo.md +1 -0
- package/docs/SuspendedTokenEventData.md +1 -1
- package/docs/SweepToAddress.md +11 -0
- package/docs/SweepToAddressStatus.md +12 -0
- package/docs/TSSRequestWebhookEventData.md +1 -1
- package/docs/TokenListingEventData.md +1 -1
- package/docs/TokenizationActivityInfo.md +2 -2
- package/docs/TokenizationAllowlistActivationRequest.md +1 -0
- package/docs/TokenizationAllowlistAddressNote.md +3 -3
- package/docs/TokenizationAllowlistAddressesResponse.md +10 -0
- package/docs/TokenizationApi.md +1069 -0
- package/docs/TokenizationBlocklistAddressNote.md +3 -3
- package/docs/TokenizationBurnEstimateFeeParams.md +1 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +2 -2
- package/docs/TokenizationBurnTokenRequest.md +1 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +1 -0
- package/docs/TokenizationContractCallParamsData.md +2 -1
- package/docs/TokenizationContractCallRequest.md +1 -0
- package/docs/TokenizationContractCallType.md +2 -0
- package/docs/TokenizationERC20TokenParams.md +1 -1
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +1 -0
- package/docs/TokenizationEvmContractCallParams.md +1 -1
- package/docs/TokenizationIssueEstimateFeeParams.md +1 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +2 -2
- package/docs/TokenizationIssuedTokenRequest.md +2 -1
- package/docs/TokenizationMintEstimateFeeParams.md +1 -0
- package/docs/TokenizationMintTokenRequest.md +1 -0
- package/docs/TokenizationMpcOperationSource.md +1 -1
- package/docs/TokenizationPauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationPauseTokenRequest.md +1 -0
- package/docs/TokenizationSOLTokenParams.md +14 -0
- package/docs/TokenizationSolContractCallParams.md +10 -0
- package/docs/TokenizationSolTokenPermissionParams.md +13 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +1 -0
- package/docs/TokenizationTokenDetailInfo.md +1 -1
- package/docs/TokenizationTokenInfo.md +1 -1
- package/docs/TokenizationTokenOperationSource.md +1 -1
- package/docs/TokenizationTokenPermissionType.md +6 -0
- package/docs/TokenizationTokenStandard.md +2 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +1 -0
- package/docs/TokenizationUnpauseTokenRequest.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +1 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +1 -1
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +1 -0
- package/docs/TokenizationWeb3OperationSource.md +1 -1
- package/docs/TokensEventData.md +1 -1
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +113 -1
- package/docs/UpdateCustodialWalletParams.md +2 -1
- package/docs/UpdateMpcWalletParams.md +2 -1
- package/docs/UpdateTopUpAddress.md +1 -1
- package/docs/UpdateWalletParams.md +1 -0
- package/docs/WalletInfo.md +1 -0
- package/docs/WalletInfoEventData.md +1 -1
- package/docs/WalletsApi.md +1 -1
- package/docs/WebhookEventData.md +9 -7
- package/docs/WebhookEventDataType.md +1 -1
- package/package.json +1 -1
|
@@ -89,6 +89,9 @@ var TokenizationBurnTokenRequest = /*#__PURE__*/function () {
|
|
|
89
89
|
if (data.hasOwnProperty('fee')) {
|
|
90
90
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
91
91
|
}
|
|
92
|
+
if (data.hasOwnProperty('request_id')) {
|
|
93
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
94
|
+
}
|
|
92
95
|
}
|
|
93
96
|
return obj;
|
|
94
97
|
}
|
|
@@ -155,6 +158,10 @@ var TokenizationBurnTokenRequest = /*#__PURE__*/function () {
|
|
|
155
158
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
156
159
|
}
|
|
157
160
|
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
164
|
+
}
|
|
158
165
|
return true;
|
|
159
166
|
}
|
|
160
167
|
}]);
|
|
@@ -183,6 +190,12 @@ TokenizationBurnTokenRequest.prototype['app_initiator'] = undefined;
|
|
|
183
190
|
*/
|
|
184
191
|
TokenizationBurnTokenRequest.prototype['fee'] = undefined;
|
|
185
192
|
|
|
193
|
+
/**
|
|
194
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
195
|
+
* @member {String} request_id
|
|
196
|
+
*/
|
|
197
|
+
TokenizationBurnTokenRequest.prototype['request_id'] = undefined;
|
|
198
|
+
|
|
186
199
|
// Implement TokenizationBurnTokenParams interface:
|
|
187
200
|
/**
|
|
188
201
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -83,6 +83,9 @@ var TokenizationContractCallEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
83
83
|
if (data.hasOwnProperty('token_id')) {
|
|
84
84
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
85
85
|
}
|
|
86
|
+
if (data.hasOwnProperty('request_id')) {
|
|
87
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
return obj;
|
|
88
91
|
}
|
|
@@ -128,6 +131,10 @@ var TokenizationContractCallEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
128
131
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
129
132
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
130
133
|
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
137
|
+
}
|
|
131
138
|
return true;
|
|
132
139
|
}
|
|
133
140
|
}]);
|
|
@@ -155,6 +162,12 @@ TokenizationContractCallEstimateFeeParams.prototype['operation_type'] = undefine
|
|
|
155
162
|
*/
|
|
156
163
|
TokenizationContractCallEstimateFeeParams.prototype['token_id'] = undefined;
|
|
157
164
|
|
|
165
|
+
/**
|
|
166
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
167
|
+
* @member {String} request_id
|
|
168
|
+
*/
|
|
169
|
+
TokenizationContractCallEstimateFeeParams.prototype['request_id'] = undefined;
|
|
170
|
+
|
|
158
171
|
// Implement TokenizationContractCallParams interface:
|
|
159
172
|
/**
|
|
160
173
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -5,8 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _SolContractCallInstruction = _interopRequireDefault(require("./SolContractCallInstruction"));
|
|
8
9
|
var _TokenizationContractCallType = _interopRequireDefault(require("./TokenizationContractCallType"));
|
|
9
10
|
var _TokenizationEvmContractCallParams = _interopRequireDefault(require("./TokenizationEvmContractCallParams"));
|
|
11
|
+
var _TokenizationSolContractCallParams = _interopRequireDefault(require("./TokenizationSolContractCallParams"));
|
|
10
12
|
var _TokenizationContractCallParamsData;
|
|
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 TokenizationContractCallParamsData = /*#__PURE__*/function () {
|
|
|
33
35
|
/**
|
|
34
36
|
* Constructs a new <code>TokenizationContractCallParamsData</code>.
|
|
35
37
|
* @alias module:model/TokenizationContractCallParamsData
|
|
36
|
-
* @param {(module:model/TokenizationEvmContractCallParams)} instance The actual instance to initialize TokenizationContractCallParamsData.
|
|
38
|
+
* @param {(module:model/TokenizationEvmContractCallParams|module:model/TokenizationSolContractCallParams)} instance The actual instance to initialize TokenizationContractCallParamsData.
|
|
37
39
|
*/
|
|
38
40
|
function TokenizationContractCallParamsData() {
|
|
39
41
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -58,6 +60,10 @@ var TokenizationContractCallParamsData = /*#__PURE__*/function () {
|
|
|
58
60
|
this.actualInstance = _TokenizationEvmContractCallParams["default"].constructFromObject(instance);
|
|
59
61
|
match++;
|
|
60
62
|
break;
|
|
63
|
+
case "SOL_Contract":
|
|
64
|
+
this.actualInstance = _TokenizationSolContractCallParams["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 TokenizationContractCallParamsData = /*#__PURE__*/function () {
|
|
|
87
93
|
// json data failed to deserialize into TokenizationEvmContractCallParams
|
|
88
94
|
errorMessages.push("Failed to construct TokenizationEvmContractCallParams: " + err);
|
|
89
95
|
}
|
|
96
|
+
try {
|
|
97
|
+
if (instance instanceof _TokenizationSolContractCallParams["default"]) {
|
|
98
|
+
this.actualInstance = instance;
|
|
99
|
+
} else if (!!_TokenizationSolContractCallParams["default"].validateJSON && _TokenizationSolContractCallParams["default"].validateJSON(instance)) {
|
|
100
|
+
// plain JS object
|
|
101
|
+
// create TokenizationSolContractCallParams from JS object
|
|
102
|
+
this.actualInstance = _TokenizationSolContractCallParams["default"].constructFromObject(instance);
|
|
103
|
+
} else {
|
|
104
|
+
if (_TokenizationSolContractCallParams["default"].constructFromObject(instance)) {
|
|
105
|
+
if (!!_TokenizationSolContractCallParams["default"].constructFromObject(instance).toJSON) {
|
|
106
|
+
if (_TokenizationSolContractCallParams["default"].constructFromObject(instance).toJSON()) {
|
|
107
|
+
this.actualInstance = _TokenizationSolContractCallParams["default"].constructFromObject(instance);
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
this.actualInstance = _TokenizationSolContractCallParams["default"].constructFromObject(instance);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
match++;
|
|
115
|
+
} catch (err) {
|
|
116
|
+
// json data failed to deserialize into TokenizationSolContractCallParams
|
|
117
|
+
errorMessages.push("Failed to construct TokenizationSolContractCallParams: " + err);
|
|
118
|
+
}
|
|
90
119
|
|
|
91
120
|
// if (match > 1) {
|
|
92
|
-
// throw new Error("Multiple matches found constructing `TokenizationContractCallParamsData` with oneOf schemas TokenizationEvmContractCallParams. Input: " + JSON.stringify(instance));
|
|
121
|
+
// throw new Error("Multiple matches found constructing `TokenizationContractCallParamsData` with oneOf schemas TokenizationEvmContractCallParams, TokenizationSolContractCallParams. 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 `TokenizationContractCallParamsData` with oneOf schemas TokenizationEvmContractCallParams. Details: " +
|
|
125
|
+
// throw new Error("No match found constructing `TokenizationContractCallParamsData` with oneOf schemas TokenizationEvmContractCallParams, TokenizationSolContractCallParams. Details: " +
|
|
97
126
|
// errorMessages.join(", "));
|
|
98
127
|
return;
|
|
99
128
|
} else {// only 1 match
|
|
@@ -112,16 +141,16 @@ var TokenizationContractCallParamsData = /*#__PURE__*/function () {
|
|
|
112
141
|
key: "getActualInstance",
|
|
113
142
|
value:
|
|
114
143
|
/**
|
|
115
|
-
* Gets the actual instance, which can be <code>TokenizationEvmContractCallParams</code>.
|
|
116
|
-
* @return {(module:model/TokenizationEvmContractCallParams)} The actual instance.
|
|
144
|
+
* Gets the actual instance, which can be <code>TokenizationEvmContractCallParams</code>, <code>TokenizationSolContractCallParams</code>.
|
|
145
|
+
* @return {(module:model/TokenizationEvmContractCallParams|module:model/TokenizationSolContractCallParams)} 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>TokenizationEvmContractCallParams</code>.
|
|
124
|
-
* @param {(module:model/TokenizationEvmContractCallParams)} obj The actual instance.
|
|
152
|
+
* Sets the actual instance, which can be <code>TokenizationEvmContractCallParams</code>, <code>TokenizationSolContractCallParams</code>.
|
|
153
|
+
* @param {(module:model/TokenizationEvmContractCallParams|module:model/TokenizationSolContractCallParams)} obj The actual instance.
|
|
125
154
|
*/
|
|
126
155
|
}, {
|
|
127
156
|
key: "setActualInstance",
|
|
@@ -150,7 +179,7 @@ _defineProperty(TokenizationContractCallParamsData, "fromJSON", function (json_s
|
|
|
150
179
|
TokenizationContractCallParamsData.prototype['type'] = undefined;
|
|
151
180
|
|
|
152
181
|
/**
|
|
153
|
-
* The data used to invoke a specific function or method within the specified contract at the destination address
|
|
182
|
+
* The data that is used to invoke a specific function or method within the specified contract at the destination address.
|
|
154
183
|
* @member {String} calldata
|
|
155
184
|
*/
|
|
156
185
|
TokenizationContractCallParamsData.prototype['calldata'] = undefined;
|
|
@@ -160,5 +189,10 @@ TokenizationContractCallParamsData.prototype['calldata'] = undefined;
|
|
|
160
189
|
* @member {String} value
|
|
161
190
|
*/
|
|
162
191
|
TokenizationContractCallParamsData.prototype['value'] = undefined;
|
|
163
|
-
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @member {Array.<module:model/SolContractCallInstruction>} instructions
|
|
195
|
+
*/
|
|
196
|
+
TokenizationContractCallParamsData.prototype['instructions'] = undefined;
|
|
197
|
+
TokenizationContractCallParamsData.OneOf = ["TokenizationEvmContractCallParams", "TokenizationSolContractCallParams"];
|
|
164
198
|
var _default = exports["default"] = TokenizationContractCallParamsData;
|
|
@@ -85,6 +85,9 @@ var TokenizationContractCallRequest = /*#__PURE__*/function () {
|
|
|
85
85
|
if (data.hasOwnProperty('fee')) {
|
|
86
86
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
87
87
|
}
|
|
88
|
+
if (data.hasOwnProperty('request_id')) {
|
|
89
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
90
|
+
}
|
|
88
91
|
}
|
|
89
92
|
return obj;
|
|
90
93
|
}
|
|
@@ -137,6 +140,10 @@ var TokenizationContractCallRequest = /*#__PURE__*/function () {
|
|
|
137
140
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
138
141
|
}
|
|
139
142
|
}
|
|
143
|
+
// ensure the json data is a string
|
|
144
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
145
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
146
|
+
}
|
|
140
147
|
return true;
|
|
141
148
|
}
|
|
142
149
|
}]);
|
|
@@ -164,6 +171,12 @@ TokenizationContractCallRequest.prototype['app_initiator'] = undefined;
|
|
|
164
171
|
*/
|
|
165
172
|
TokenizationContractCallRequest.prototype['fee'] = undefined;
|
|
166
173
|
|
|
174
|
+
/**
|
|
175
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
176
|
+
* @member {String} request_id
|
|
177
|
+
*/
|
|
178
|
+
TokenizationContractCallRequest.prototype['request_id'] = undefined;
|
|
179
|
+
|
|
167
180
|
// Implement TokenizationContractCallParams interface:
|
|
168
181
|
/**
|
|
169
182
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -35,6 +35,11 @@ var TokenizationContractCallType = 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
|
|
@@ -82,8 +82,8 @@ var TokenizationERC20TokenParams = /*#__PURE__*/function () {
|
|
|
82
82
|
if (data.hasOwnProperty('decimals')) {
|
|
83
83
|
obj['decimals'] = _ApiClient["default"].convertToType(data['decimals'], 'Number');
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty('
|
|
86
|
-
obj['
|
|
85
|
+
if (data.hasOwnProperty('token_access_activated')) {
|
|
86
|
+
obj['token_access_activated'] = _ApiClient["default"].convertToType(data['token_access_activated'], 'Boolean');
|
|
87
87
|
}
|
|
88
88
|
if (data.hasOwnProperty('permissions')) {
|
|
89
89
|
obj['permissions'] = _TokenizationTokenPermissionParams["default"].constructFromObject(data['permissions']);
|
|
@@ -161,10 +161,10 @@ TokenizationERC20TokenParams.prototype['decimals'] = undefined;
|
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* Whether the allowlist feature is activated for the token. When activated, only addresses in the allowlist can perform token operations.
|
|
164
|
-
* @member {Boolean}
|
|
164
|
+
* @member {Boolean} token_access_activated
|
|
165
165
|
* @default false
|
|
166
166
|
*/
|
|
167
|
-
TokenizationERC20TokenParams.prototype['
|
|
167
|
+
TokenizationERC20TokenParams.prototype['token_access_activated'] = false;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* @member {module:model/TokenizationTokenPermissionParams} permissions
|
|
@@ -396,6 +396,12 @@ TokenizationEstimateFeeRequestOperationParams.prototype['token_params'] = undefi
|
|
|
396
396
|
*/
|
|
397
397
|
TokenizationEstimateFeeRequestOperationParams.prototype['operation_type'] = undefined;
|
|
398
398
|
|
|
399
|
+
/**
|
|
400
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
401
|
+
* @member {String} request_id
|
|
402
|
+
*/
|
|
403
|
+
TokenizationEstimateFeeRequestOperationParams.prototype['request_id'] = undefined;
|
|
404
|
+
|
|
399
405
|
/**
|
|
400
406
|
* Details for each token mint, including amount and address to mint to.
|
|
401
407
|
* @member {Array.<module:model/TokenizationMintTokenParamsMintsInner>} mints
|
|
@@ -34,7 +34,7 @@ var TokenizationEvmContractCallParams = /*#__PURE__*/function () {
|
|
|
34
34
|
* Constructs a new <code>TokenizationEvmContractCallParams</code>.
|
|
35
35
|
* The information about the EVM contract call.
|
|
36
36
|
* @alias module:model/TokenizationEvmContractCallParams
|
|
37
|
-
* @param calldata {String} The data used to invoke a specific function or method within the specified contract at the destination address
|
|
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
38
|
*/
|
|
39
39
|
function TokenizationEvmContractCallParams(calldata) {
|
|
40
40
|
_classCallCheck(this, TokenizationEvmContractCallParams);
|
|
@@ -120,7 +120,7 @@ TokenizationEvmContractCallParams.RequiredProperties = ["calldata"];
|
|
|
120
120
|
TokenizationEvmContractCallParams.prototype['type'] = undefined;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* The data used to invoke a specific function or method within the specified contract at the destination address
|
|
123
|
+
* The data that is used to invoke a specific function or method within the specified contract at the destination address.
|
|
124
124
|
* @member {String} calldata
|
|
125
125
|
*/
|
|
126
126
|
TokenizationEvmContractCallParams.prototype['calldata'] = undefined;
|
|
@@ -87,6 +87,9 @@ var TokenizationIssueEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
87
87
|
if (data.hasOwnProperty('operation_type')) {
|
|
88
88
|
obj['operation_type'] = _TokenizationOperationType["default"].constructFromObject(data['operation_type']);
|
|
89
89
|
}
|
|
90
|
+
if (data.hasOwnProperty('request_id')) {
|
|
91
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
return obj;
|
|
92
95
|
}
|
|
@@ -132,6 +135,10 @@ var TokenizationIssueEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
132
135
|
_TokenizationIssueTokenParamsTokenParams["default"].validateJSON(data['token_params']);
|
|
133
136
|
}
|
|
134
137
|
}
|
|
138
|
+
// ensure the json data is a string
|
|
139
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
140
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
141
|
+
}
|
|
135
142
|
return true;
|
|
136
143
|
}
|
|
137
144
|
}]);
|
|
@@ -159,6 +166,12 @@ TokenizationIssueEstimateFeeParams.prototype['token_params'] = undefined;
|
|
|
159
166
|
*/
|
|
160
167
|
TokenizationIssueEstimateFeeParams.prototype['operation_type'] = undefined;
|
|
161
168
|
|
|
169
|
+
/**
|
|
170
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
171
|
+
* @member {String} request_id
|
|
172
|
+
*/
|
|
173
|
+
TokenizationIssueEstimateFeeParams.prototype['request_id'] = undefined;
|
|
174
|
+
|
|
162
175
|
// Implement TokenizationIssueTokenParams interface:
|
|
163
176
|
/**
|
|
164
177
|
* The chain ID where the token will be issued.
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _TokenizationERC20TokenParams = _interopRequireDefault(require("./TokenizationERC20TokenParams"));
|
|
9
|
-
var
|
|
9
|
+
var _TokenizationSOLTokenParams = _interopRequireDefault(require("./TokenizationSOLTokenParams"));
|
|
10
|
+
var _TokenizationSolTokenPermissionParams = _interopRequireDefault(require("./TokenizationSolTokenPermissionParams"));
|
|
10
11
|
var _TokenizationTokenStandard = _interopRequireDefault(require("./TokenizationTokenStandard"));
|
|
11
12
|
var _TokenizationIssueTokenParamsTokenParams;
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -34,7 +35,7 @@ var TokenizationIssueTokenParamsTokenParams = /*#__PURE__*/function () {
|
|
|
34
35
|
/**
|
|
35
36
|
* Constructs a new <code>TokenizationIssueTokenParamsTokenParams</code>.
|
|
36
37
|
* @alias module:model/TokenizationIssueTokenParamsTokenParams
|
|
37
|
-
* @param {(module:model/TokenizationERC20TokenParams)} instance The actual instance to initialize TokenizationIssueTokenParamsTokenParams.
|
|
38
|
+
* @param {(module:model/TokenizationERC20TokenParams|module:model/TokenizationSOLTokenParams)} instance The actual instance to initialize TokenizationIssueTokenParamsTokenParams.
|
|
38
39
|
*/
|
|
39
40
|
function TokenizationIssueTokenParamsTokenParams() {
|
|
40
41
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -59,6 +60,10 @@ var TokenizationIssueTokenParamsTokenParams = /*#__PURE__*/function () {
|
|
|
59
60
|
this.actualInstance = _TokenizationERC20TokenParams["default"].constructFromObject(instance);
|
|
60
61
|
match++;
|
|
61
62
|
break;
|
|
63
|
+
case "SPLToken2022":
|
|
64
|
+
this.actualInstance = _TokenizationSOLTokenParams["default"].constructFromObject(instance);
|
|
65
|
+
match++;
|
|
66
|
+
break;
|
|
62
67
|
default:
|
|
63
68
|
errorMessages.push("Unrecognized discriminator value: " + discriminatorValue);
|
|
64
69
|
break;
|
|
@@ -88,13 +93,36 @@ var TokenizationIssueTokenParamsTokenParams = /*#__PURE__*/function () {
|
|
|
88
93
|
// json data failed to deserialize into TokenizationERC20TokenParams
|
|
89
94
|
errorMessages.push("Failed to construct TokenizationERC20TokenParams: " + err);
|
|
90
95
|
}
|
|
96
|
+
try {
|
|
97
|
+
if (instance instanceof _TokenizationSOLTokenParams["default"]) {
|
|
98
|
+
this.actualInstance = instance;
|
|
99
|
+
} else if (!!_TokenizationSOLTokenParams["default"].validateJSON && _TokenizationSOLTokenParams["default"].validateJSON(instance)) {
|
|
100
|
+
// plain JS object
|
|
101
|
+
// create TokenizationSOLTokenParams from JS object
|
|
102
|
+
this.actualInstance = _TokenizationSOLTokenParams["default"].constructFromObject(instance);
|
|
103
|
+
} else {
|
|
104
|
+
if (_TokenizationSOLTokenParams["default"].constructFromObject(instance)) {
|
|
105
|
+
if (!!_TokenizationSOLTokenParams["default"].constructFromObject(instance).toJSON) {
|
|
106
|
+
if (_TokenizationSOLTokenParams["default"].constructFromObject(instance).toJSON()) {
|
|
107
|
+
this.actualInstance = _TokenizationSOLTokenParams["default"].constructFromObject(instance);
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
this.actualInstance = _TokenizationSOLTokenParams["default"].constructFromObject(instance);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
match++;
|
|
115
|
+
} catch (err) {
|
|
116
|
+
// json data failed to deserialize into TokenizationSOLTokenParams
|
|
117
|
+
errorMessages.push("Failed to construct TokenizationSOLTokenParams: " + err);
|
|
118
|
+
}
|
|
91
119
|
|
|
92
120
|
// if (match > 1) {
|
|
93
|
-
// throw new Error("Multiple matches found constructing `TokenizationIssueTokenParamsTokenParams` with oneOf schemas TokenizationERC20TokenParams. Input: " + JSON.stringify(instance));
|
|
121
|
+
// throw new Error("Multiple matches found constructing `TokenizationIssueTokenParamsTokenParams` with oneOf schemas TokenizationERC20TokenParams, TokenizationSOLTokenParams. Input: " + JSON.stringify(instance));
|
|
94
122
|
// } else
|
|
95
123
|
if (match === 0) {
|
|
96
124
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
97
|
-
// throw new Error("No match found constructing `TokenizationIssueTokenParamsTokenParams` with oneOf schemas TokenizationERC20TokenParams. Details: " +
|
|
125
|
+
// throw new Error("No match found constructing `TokenizationIssueTokenParamsTokenParams` with oneOf schemas TokenizationERC20TokenParams, TokenizationSOLTokenParams. Details: " +
|
|
98
126
|
// errorMessages.join(", "));
|
|
99
127
|
return;
|
|
100
128
|
} else {// only 1 match
|
|
@@ -113,16 +141,16 @@ var TokenizationIssueTokenParamsTokenParams = /*#__PURE__*/function () {
|
|
|
113
141
|
key: "getActualInstance",
|
|
114
142
|
value:
|
|
115
143
|
/**
|
|
116
|
-
* Gets the actual instance, which can be <code>TokenizationERC20TokenParams</code>.
|
|
117
|
-
* @return {(module:model/TokenizationERC20TokenParams)} The actual instance.
|
|
144
|
+
* Gets the actual instance, which can be <code>TokenizationERC20TokenParams</code>, <code>TokenizationSOLTokenParams</code>.
|
|
145
|
+
* @return {(module:model/TokenizationERC20TokenParams|module:model/TokenizationSOLTokenParams)} The actual instance.
|
|
118
146
|
*/
|
|
119
147
|
function getActualInstance() {
|
|
120
148
|
return this.actualInstance;
|
|
121
149
|
}
|
|
122
150
|
|
|
123
151
|
/**
|
|
124
|
-
* Sets the actual instance, which can be <code>TokenizationERC20TokenParams</code>.
|
|
125
|
-
* @param {(module:model/TokenizationERC20TokenParams)} obj The actual instance.
|
|
152
|
+
* Sets the actual instance, which can be <code>TokenizationERC20TokenParams</code>, <code>TokenizationSOLTokenParams</code>.
|
|
153
|
+
* @param {(module:model/TokenizationERC20TokenParams|module:model/TokenizationSOLTokenParams)} obj The actual instance.
|
|
126
154
|
*/
|
|
127
155
|
}, {
|
|
128
156
|
key: "setActualInstance",
|
|
@@ -170,14 +198,14 @@ TokenizationIssueTokenParamsTokenParams.prototype['decimals'] = undefined;
|
|
|
170
198
|
|
|
171
199
|
/**
|
|
172
200
|
* Whether the allowlist feature is activated for the token. When activated, only addresses in the allowlist can perform token operations.
|
|
173
|
-
* @member {Boolean}
|
|
201
|
+
* @member {Boolean} token_access_activated
|
|
174
202
|
* @default false
|
|
175
203
|
*/
|
|
176
|
-
TokenizationIssueTokenParamsTokenParams.prototype['
|
|
204
|
+
TokenizationIssueTokenParamsTokenParams.prototype['token_access_activated'] = false;
|
|
177
205
|
|
|
178
206
|
/**
|
|
179
|
-
* @member {module:model/
|
|
207
|
+
* @member {module:model/TokenizationSolTokenPermissionParams} permissions
|
|
180
208
|
*/
|
|
181
209
|
TokenizationIssueTokenParamsTokenParams.prototype['permissions'] = undefined;
|
|
182
|
-
TokenizationIssueTokenParamsTokenParams.OneOf = ["TokenizationERC20TokenParams"];
|
|
210
|
+
TokenizationIssueTokenParamsTokenParams.OneOf = ["TokenizationERC20TokenParams", "TokenizationSOLTokenParams"];
|
|
183
211
|
var _default = exports["default"] = TokenizationIssueTokenParamsTokenParams;
|
|
@@ -94,6 +94,9 @@ var TokenizationIssuedTokenRequest = /*#__PURE__*/function () {
|
|
|
94
94
|
if (data.hasOwnProperty('fee')) {
|
|
95
95
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
96
96
|
}
|
|
97
|
+
if (data.hasOwnProperty('request_id')) {
|
|
98
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
99
|
+
}
|
|
97
100
|
}
|
|
98
101
|
return obj;
|
|
99
102
|
}
|
|
@@ -150,6 +153,10 @@ var TokenizationIssuedTokenRequest = /*#__PURE__*/function () {
|
|
|
150
153
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
151
154
|
}
|
|
152
155
|
}
|
|
156
|
+
// ensure the json data is a string
|
|
157
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
158
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
159
|
+
}
|
|
153
160
|
return true;
|
|
154
161
|
}
|
|
155
162
|
}]);
|
|
@@ -173,7 +180,7 @@ TokenizationIssuedTokenRequest.prototype['source'] = undefined;
|
|
|
173
180
|
TokenizationIssuedTokenRequest.prototype['token_params'] = undefined;
|
|
174
181
|
|
|
175
182
|
/**
|
|
176
|
-
* The
|
|
183
|
+
* The initiator of the tokenization activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
|
|
177
184
|
* @member {String} app_initiator
|
|
178
185
|
*/
|
|
179
186
|
TokenizationIssuedTokenRequest.prototype['app_initiator'] = undefined;
|
|
@@ -183,6 +190,12 @@ TokenizationIssuedTokenRequest.prototype['app_initiator'] = undefined;
|
|
|
183
190
|
*/
|
|
184
191
|
TokenizationIssuedTokenRequest.prototype['fee'] = undefined;
|
|
185
192
|
|
|
193
|
+
/**
|
|
194
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
195
|
+
* @member {String} request_id
|
|
196
|
+
*/
|
|
197
|
+
TokenizationIssuedTokenRequest.prototype['request_id'] = undefined;
|
|
198
|
+
|
|
186
199
|
// Implement TokenizationIssueTokenParams interface:
|
|
187
200
|
/**
|
|
188
201
|
* The chain ID where the token will be issued.
|
|
@@ -87,6 +87,9 @@ var TokenizationMintEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
87
87
|
if (data.hasOwnProperty('token_id')) {
|
|
88
88
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
89
89
|
}
|
|
90
|
+
if (data.hasOwnProperty('request_id')) {
|
|
91
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
92
|
+
}
|
|
90
93
|
}
|
|
91
94
|
return obj;
|
|
92
95
|
}
|
|
@@ -146,6 +149,10 @@ var TokenizationMintEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
146
149
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
147
150
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
148
151
|
}
|
|
152
|
+
// ensure the json data is a string
|
|
153
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
154
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
155
|
+
}
|
|
149
156
|
return true;
|
|
150
157
|
}
|
|
151
158
|
}]);
|
|
@@ -174,6 +181,12 @@ TokenizationMintEstimateFeeParams.prototype['operation_type'] = undefined;
|
|
|
174
181
|
*/
|
|
175
182
|
TokenizationMintEstimateFeeParams.prototype['token_id'] = undefined;
|
|
176
183
|
|
|
184
|
+
/**
|
|
185
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
186
|
+
* @member {String} request_id
|
|
187
|
+
*/
|
|
188
|
+
TokenizationMintEstimateFeeParams.prototype['request_id'] = undefined;
|
|
189
|
+
|
|
177
190
|
// Implement TokenizationMintTokenParams interface:
|
|
178
191
|
/**
|
|
179
192
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -89,6 +89,9 @@ var TokenizationMintTokenRequest = /*#__PURE__*/function () {
|
|
|
89
89
|
if (data.hasOwnProperty('fee')) {
|
|
90
90
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
91
91
|
}
|
|
92
|
+
if (data.hasOwnProperty('request_id')) {
|
|
93
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
94
|
+
}
|
|
92
95
|
}
|
|
93
96
|
return obj;
|
|
94
97
|
}
|
|
@@ -155,6 +158,10 @@ var TokenizationMintTokenRequest = /*#__PURE__*/function () {
|
|
|
155
158
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
156
159
|
}
|
|
157
160
|
}
|
|
161
|
+
// ensure the json data is a string
|
|
162
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
164
|
+
}
|
|
158
165
|
return true;
|
|
159
166
|
}
|
|
160
167
|
}]);
|
|
@@ -183,6 +190,12 @@ TokenizationMintTokenRequest.prototype['app_initiator'] = undefined;
|
|
|
183
190
|
*/
|
|
184
191
|
TokenizationMintTokenRequest.prototype['fee'] = undefined;
|
|
185
192
|
|
|
193
|
+
/**
|
|
194
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
195
|
+
* @member {String} request_id
|
|
196
|
+
*/
|
|
197
|
+
TokenizationMintTokenRequest.prototype['request_id'] = undefined;
|
|
198
|
+
|
|
186
199
|
// Implement TokenizationMintTokenParams interface:
|
|
187
200
|
/**
|
|
188
201
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -35,7 +35,7 @@ var TokenizationMpcOperationSource = /*#__PURE__*/function () {
|
|
|
35
35
|
* @alias module:model/TokenizationMpcOperationSource
|
|
36
36
|
* @param source_type {module:model/TokenizationOperationSourceType}
|
|
37
37
|
* @param wallet_id {String} The wallet ID.
|
|
38
|
-
* @param address {String} The wallet address to interact with the token contract
|
|
38
|
+
* @param address {String} The wallet address used to interact with the token contract.
|
|
39
39
|
*/
|
|
40
40
|
function TokenizationMpcOperationSource(source_type, wallet_id, address) {
|
|
41
41
|
_classCallCheck(this, TokenizationMpcOperationSource);
|
|
@@ -129,7 +129,7 @@ TokenizationMpcOperationSource.prototype['source_type'] = undefined;
|
|
|
129
129
|
TokenizationMpcOperationSource.prototype['wallet_id'] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* The wallet address to interact with the token contract
|
|
132
|
+
* The wallet address used to interact with the token contract.
|
|
133
133
|
* @member {String} address
|
|
134
134
|
*/
|
|
135
135
|
TokenizationMpcOperationSource.prototype['address'] = undefined;
|
|
@@ -81,6 +81,9 @@ var TokenizationPauseEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
81
81
|
if (data.hasOwnProperty('token_id')) {
|
|
82
82
|
obj['token_id'] = _ApiClient["default"].convertToType(data['token_id'], 'String');
|
|
83
83
|
}
|
|
84
|
+
if (data.hasOwnProperty('request_id')) {
|
|
85
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
86
|
+
}
|
|
84
87
|
}
|
|
85
88
|
return obj;
|
|
86
89
|
}
|
|
@@ -119,6 +122,10 @@ var TokenizationPauseEstimateFeeParams = /*#__PURE__*/function () {
|
|
|
119
122
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
120
123
|
throw new Error("Expected the field `token_id` to be a primitive type in the JSON string but got " + data['token_id']);
|
|
121
124
|
}
|
|
125
|
+
// ensure the json data is a string
|
|
126
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
128
|
+
}
|
|
122
129
|
return true;
|
|
123
130
|
}
|
|
124
131
|
}]);
|
|
@@ -141,6 +148,12 @@ TokenizationPauseEstimateFeeParams.prototype['operation_type'] = undefined;
|
|
|
141
148
|
*/
|
|
142
149
|
TokenizationPauseEstimateFeeParams.prototype['token_id'] = undefined;
|
|
143
150
|
|
|
151
|
+
/**
|
|
152
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
153
|
+
* @member {String} request_id
|
|
154
|
+
*/
|
|
155
|
+
TokenizationPauseEstimateFeeParams.prototype['request_id'] = undefined;
|
|
156
|
+
|
|
144
157
|
// Implement TokenizationPauseTokenParams interface:
|
|
145
158
|
/**
|
|
146
159
|
* @member {module:model/TokenizationTokenOperationSource} source
|
|
@@ -83,6 +83,9 @@ var TokenizationPauseTokenRequest = /*#__PURE__*/function () {
|
|
|
83
83
|
if (data.hasOwnProperty('fee')) {
|
|
84
84
|
obj['fee'] = _TransactionRequestFee["default"].constructFromObject(data['fee']);
|
|
85
85
|
}
|
|
86
|
+
if (data.hasOwnProperty('request_id')) {
|
|
87
|
+
obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String');
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
return obj;
|
|
88
91
|
}
|
|
@@ -128,6 +131,10 @@ var TokenizationPauseTokenRequest = /*#__PURE__*/function () {
|
|
|
128
131
|
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
129
132
|
}
|
|
130
133
|
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
if (data['request_id'] && !(typeof data['request_id'] === 'string' || data['request_id'] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `request_id` to be a primitive type in the JSON string but got " + data['request_id']);
|
|
137
|
+
}
|
|
131
138
|
return true;
|
|
132
139
|
}
|
|
133
140
|
}]);
|
|
@@ -150,6 +157,12 @@ TokenizationPauseTokenRequest.prototype['app_initiator'] = undefined;
|
|
|
150
157
|
*/
|
|
151
158
|
TokenizationPauseTokenRequest.prototype['fee'] = undefined;
|
|
152
159
|
|
|
160
|
+
/**
|
|
161
|
+
* The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
|
|
162
|
+
* @member {String} request_id
|
|
163
|
+
*/
|
|
164
|
+
TokenizationPauseTokenRequest.prototype['request_id'] = undefined;
|
|
165
|
+
|
|
153
166
|
// Implement TokenizationPauseTokenParams interface:
|
|
154
167
|
/**
|
|
155
168
|
* @member {module:model/TokenizationTokenOperationSource} source
|