@cobo/cobo-waas2 1.1.1 → 1.1.2
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 +1 -1
- package/dist/ApiClient.js +1 -1
- package/dist/model/Activity.js +3 -1
- package/dist/model/AddressTransferDestination.js +3 -1
- package/dist/model/AssetBalance.js +3 -1
- package/dist/model/CoboSafeDelegate.js +3 -3
- package/dist/model/ContractCallDestination.js +3 -3
- package/dist/model/ContractCallParams.js +9 -3
- package/dist/model/ContractCallSource.js +6 -6
- package/dist/model/CreateSafeWalletParams.js +3 -1
- package/dist/model/CreateSmartContractWalletParams.js +3 -3
- package/dist/model/CreateStakeActivity.js +9 -3
- package/dist/model/CreateStakeActivityExtra.js +9 -9
- package/dist/model/CreateTssRequestRequest.js +3 -1
- package/dist/model/CreateUnstakeActivity.js +3 -1
- package/dist/model/CreateWalletParams.js +9 -9
- package/dist/model/CreateWithdrawActivity.js +3 -1
- package/dist/model/CreatedWalletInfo.js +9 -9
- package/dist/model/EstimateContractCallFeeParams.js +6 -2
- package/dist/model/EstimateFeeParams.js +6 -6
- package/dist/model/EstimateStakeFee.js +9 -3
- package/dist/model/EstimateTransferFeeParams.js +6 -2
- package/dist/model/EstimateUnstakeFee.js +3 -1
- package/dist/model/EstimateWithdrawFee.js +3 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +9 -3
- package/dist/model/EstimatedEvmLegacyFee.js +9 -3
- package/dist/model/EstimatedFee.js +12 -12
- package/dist/model/EstimatedUtxoFee.js +9 -3
- package/dist/model/EvmEip1559FeeRate.js +9 -3
- package/dist/model/EvmLegacyFeeRate.js +9 -3
- package/dist/model/FeeRate.js +12 -12
- package/dist/model/ListAddresses200Response.js +3 -1
- package/dist/model/ListKeyShareHolderGroups200Response.js +3 -1
- package/dist/model/ListMpcProjects200Response.js +3 -1
- package/dist/model/ListMpcVaults200Response.js +3 -1
- package/dist/model/ListSupportedChains200Response.js +3 -1
- package/dist/model/ListSupportedTokens200Response.js +3 -1
- package/dist/model/ListTokenBalancesForAddress200Response.js +3 -1
- package/dist/model/ListTransactions200Response.js +3 -1
- package/dist/model/ListTssRequests200Response.js +3 -1
- package/dist/model/ListUtxos200Response.js +3 -1
- package/dist/model/ListWallets200Response.js +3 -1
- package/dist/model/ListWebhookEndpoints200Response.js +3 -1
- package/dist/model/ListWebhookEventLogs200Response.js +3 -1
- package/dist/model/ListWebhookEvents200Response.js +3 -1
- package/dist/model/MaxTransferableValue.js +3 -1
- package/dist/model/MessageSignDestination.js +6 -6
- package/dist/model/MessageSignParams.js +6 -2
- package/dist/model/MessageSignSource.js +3 -3
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +6 -6
- package/dist/model/SafeContractCallSource.js +3 -1
- package/dist/model/SafeTransferSource.js +3 -1
- package/dist/model/SafeWallet.js +3 -1
- package/dist/model/SmartContractWalletInfo.js +3 -3
- package/dist/model/StakingSource.js +6 -6
- package/dist/model/Stakings.js +3 -1
- package/dist/model/SubWalletAssetBalance.js +3 -1
- package/dist/model/TSSRequest.js +3 -1
- package/dist/model/TokenBalance.js +3 -1
- package/dist/model/Transaction.js +21 -7
- package/dist/model/TransactionDestination.js +21 -21
- package/dist/model/TransactionDetail.js +21 -7
- package/dist/model/TransactionDetails.js +24 -8
- package/dist/model/TransactionFee.js +12 -12
- package/dist/model/TransactionRbf.js +6 -2
- package/dist/model/TransactionRbfSource.js +3 -3
- package/dist/model/TransactionRequestFee.js +12 -12
- package/dist/model/TransactionResult.js +3 -3
- package/dist/model/TransactionSmartContractSafeWalletSource.js +3 -1
- package/dist/model/TransactionSource.js +21 -21
- package/dist/model/TransactionTransferToAddressDestination.js +3 -1
- package/dist/model/TransactionWebhookEventData.js +21 -7
- package/dist/model/TransferDestination.js +6 -6
- package/dist/model/TransferParams.js +9 -3
- package/dist/model/TransferSource.js +12 -12
- package/dist/model/UpdateWalletParams.js +12 -12
- package/dist/model/UtxoFeeRate.js +9 -3
- package/dist/model/WalletInfo.js +12 -12
- package/dist/model/WebhookEvent.js +3 -1
- package/dist/model/WebhookEventData.js +3 -3
- package/dist/model/WebhookEventLog.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.1.
|
|
18
|
+
- Package version: 1.1.2
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
package/dist/ApiClient.js
CHANGED
package/dist/model/Activity.js
CHANGED
|
@@ -205,7 +205,9 @@ var Activity = /*#__PURE__*/function () {
|
|
|
205
205
|
// validate the optional field `fee`
|
|
206
206
|
if (data['fee']) {
|
|
207
207
|
// data not null
|
|
208
|
-
_TransactionRequestFee["default"].validateJSON
|
|
208
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
209
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
210
|
+
}
|
|
209
211
|
}
|
|
210
212
|
return true;
|
|
211
213
|
}
|
|
@@ -114,7 +114,9 @@ var AddressTransferDestination = /*#__PURE__*/function () {
|
|
|
114
114
|
}
|
|
115
115
|
if (data['account_output']) {
|
|
116
116
|
// data not null
|
|
117
|
-
_AddressTransferDestinationAccountOutput["default"].validateJSON
|
|
117
|
+
if (!!_AddressTransferDestinationAccountOutput["default"].validateJSON) {
|
|
118
|
+
_AddressTransferDestinationAccountOutput["default"].validateJSON(data['account_output']);
|
|
119
|
+
}
|
|
118
120
|
}
|
|
119
121
|
if (data['utxo_outputs']) {
|
|
120
122
|
// data not null
|
|
@@ -106,7 +106,9 @@ var AssetBalance = /*#__PURE__*/function () {
|
|
|
106
106
|
// validate the optional field `balance`
|
|
107
107
|
if (data['balance']) {
|
|
108
108
|
// data not null
|
|
109
|
-
_TokenBalanceBalance["default"].validateJSON
|
|
109
|
+
if (!!_TokenBalanceBalance["default"].validateJSON) {
|
|
110
|
+
_TokenBalanceBalance["default"].validateJSON(data['balance']);
|
|
111
|
+
}
|
|
110
112
|
}
|
|
111
113
|
return true;
|
|
112
114
|
}
|
|
@@ -54,12 +54,12 @@ var CoboSafeDelegate = /*#__PURE__*/function () {
|
|
|
54
54
|
try {
|
|
55
55
|
if (instance instanceof _MPCDelegate["default"]) {
|
|
56
56
|
this.actualInstance = instance;
|
|
57
|
-
} else if (_MPCDelegate["default"].validateJSON(instance)) {
|
|
57
|
+
} else if (!!_MPCDelegate["default"].validateJSON && _MPCDelegate["default"].validateJSON(instance)) {
|
|
58
58
|
// plain JS object
|
|
59
59
|
// create MPCDelegate from JS object
|
|
60
60
|
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
61
|
-
} else {
|
|
62
|
-
|
|
61
|
+
} else if (_MPCDelegate["default"].constructFromObject(instance)) {
|
|
62
|
+
this.actualInstance = _MPCDelegate["default"].constructFromObject(instance);
|
|
63
63
|
}
|
|
64
64
|
match++;
|
|
65
65
|
} catch (err) {
|
|
@@ -54,12 +54,12 @@ var ContractCallDestination = /*#__PURE__*/function () {
|
|
|
54
54
|
try {
|
|
55
55
|
if (instance instanceof _EvmContractCallDestination["default"]) {
|
|
56
56
|
this.actualInstance = instance;
|
|
57
|
-
} else if (_EvmContractCallDestination["default"].validateJSON(instance)) {
|
|
57
|
+
} else if (!!_EvmContractCallDestination["default"].validateJSON && _EvmContractCallDestination["default"].validateJSON(instance)) {
|
|
58
58
|
// plain JS object
|
|
59
59
|
// create EvmContractCallDestination from JS object
|
|
60
60
|
this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
|
|
61
|
-
} else {
|
|
62
|
-
|
|
61
|
+
} else if (_EvmContractCallDestination["default"].constructFromObject(instance)) {
|
|
62
|
+
this.actualInstance = _EvmContractCallDestination["default"].constructFromObject(instance);
|
|
63
63
|
}
|
|
64
64
|
match++;
|
|
65
65
|
} catch (err) {
|
|
@@ -131,12 +131,16 @@ var ContractCallParams = /*#__PURE__*/function () {
|
|
|
131
131
|
// validate the optional field `source`
|
|
132
132
|
if (data['source']) {
|
|
133
133
|
// data not null
|
|
134
|
-
_ContractCallSource["default"].validateJSON
|
|
134
|
+
if (!!_ContractCallSource["default"].validateJSON) {
|
|
135
|
+
_ContractCallSource["default"].validateJSON(data['source']);
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
// validate the optional field `destination`
|
|
137
139
|
if (data['destination']) {
|
|
138
140
|
// data not null
|
|
139
|
-
_ContractCallDestination["default"].validateJSON
|
|
141
|
+
if (!!_ContractCallDestination["default"].validateJSON) {
|
|
142
|
+
_ContractCallDestination["default"].validateJSON(data['destination']);
|
|
143
|
+
}
|
|
140
144
|
}
|
|
141
145
|
// ensure the json data is a string
|
|
142
146
|
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
@@ -149,7 +153,9 @@ var ContractCallParams = /*#__PURE__*/function () {
|
|
|
149
153
|
// validate the optional field `fee`
|
|
150
154
|
if (data['fee']) {
|
|
151
155
|
// data not null
|
|
152
|
-
_TransactionRequestFee["default"].validateJSON
|
|
156
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
157
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
158
|
+
}
|
|
153
159
|
}
|
|
154
160
|
return true;
|
|
155
161
|
}
|
|
@@ -56,12 +56,12 @@ var ContractCallSource = /*#__PURE__*/function () {
|
|
|
56
56
|
try {
|
|
57
57
|
if (instance instanceof _MpcContractCallSource["default"]) {
|
|
58
58
|
this.actualInstance = instance;
|
|
59
|
-
} else if (_MpcContractCallSource["default"].validateJSON(instance)) {
|
|
59
|
+
} else if (!!_MpcContractCallSource["default"].validateJSON && _MpcContractCallSource["default"].validateJSON(instance)) {
|
|
60
60
|
// plain JS object
|
|
61
61
|
// create MpcContractCallSource from JS object
|
|
62
62
|
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
63
|
-
} else {
|
|
64
|
-
|
|
63
|
+
} else if (_MpcContractCallSource["default"].constructFromObject(instance)) {
|
|
64
|
+
this.actualInstance = _MpcContractCallSource["default"].constructFromObject(instance);
|
|
65
65
|
}
|
|
66
66
|
match++;
|
|
67
67
|
} catch (err) {
|
|
@@ -71,12 +71,12 @@ var ContractCallSource = /*#__PURE__*/function () {
|
|
|
71
71
|
try {
|
|
72
72
|
if (instance instanceof _SafeContractCallSource["default"]) {
|
|
73
73
|
this.actualInstance = instance;
|
|
74
|
-
} else if (_SafeContractCallSource["default"].validateJSON(instance)) {
|
|
74
|
+
} else if (!!_SafeContractCallSource["default"].validateJSON && _SafeContractCallSource["default"].validateJSON(instance)) {
|
|
75
75
|
// plain JS object
|
|
76
76
|
// create SafeContractCallSource from JS object
|
|
77
77
|
this.actualInstance = _SafeContractCallSource["default"].constructFromObject(instance);
|
|
78
|
-
} else {
|
|
79
|
-
|
|
78
|
+
} else if (_SafeContractCallSource["default"].constructFromObject(instance)) {
|
|
79
|
+
this.actualInstance = _SafeContractCallSource["default"].constructFromObject(instance);
|
|
80
80
|
}
|
|
81
81
|
match++;
|
|
82
82
|
} catch (err) {
|
|
@@ -154,7 +154,9 @@ var CreateSafeWalletParams = /*#__PURE__*/function () {
|
|
|
154
154
|
// validate the optional field `initiator`
|
|
155
155
|
if (data['initiator']) {
|
|
156
156
|
// data not null
|
|
157
|
-
_SmartContractInitiator["default"].validateJSON
|
|
157
|
+
if (!!_SmartContractInitiator["default"].validateJSON) {
|
|
158
|
+
_SmartContractInitiator["default"].validateJSON(data['initiator']);
|
|
159
|
+
}
|
|
158
160
|
}
|
|
159
161
|
return true;
|
|
160
162
|
}
|
|
@@ -57,12 +57,12 @@ var CreateSmartContractWalletParams = /*#__PURE__*/function () {
|
|
|
57
57
|
try {
|
|
58
58
|
if (instance instanceof _CreateSafeWalletParams["default"]) {
|
|
59
59
|
this.actualInstance = instance;
|
|
60
|
-
} else if (_CreateSafeWalletParams["default"].validateJSON(instance)) {
|
|
60
|
+
} else if (!!_CreateSafeWalletParams["default"].validateJSON && _CreateSafeWalletParams["default"].validateJSON(instance)) {
|
|
61
61
|
// plain JS object
|
|
62
62
|
// create CreateSafeWalletParams from JS object
|
|
63
63
|
this.actualInstance = _CreateSafeWalletParams["default"].constructFromObject(instance);
|
|
64
|
-
} else {
|
|
65
|
-
|
|
64
|
+
} else if (_CreateSafeWalletParams["default"].constructFromObject(instance)) {
|
|
65
|
+
this.actualInstance = _CreateSafeWalletParams["default"].constructFromObject(instance);
|
|
66
66
|
}
|
|
67
67
|
match++;
|
|
68
68
|
} catch (err) {
|
|
@@ -116,7 +116,9 @@ var CreateStakeActivity = /*#__PURE__*/function () {
|
|
|
116
116
|
}
|
|
117
117
|
if (data['source']) {
|
|
118
118
|
// data not null
|
|
119
|
-
_StakingSource["default"].validateJSON
|
|
119
|
+
if (!!_StakingSource["default"].validateJSON) {
|
|
120
|
+
_StakingSource["default"].validateJSON(data['source']);
|
|
121
|
+
}
|
|
120
122
|
}
|
|
121
123
|
// ensure the json data is a string
|
|
122
124
|
if (data['pool_id'] && !(typeof data['pool_id'] === 'string' || data['pool_id'] instanceof String)) {
|
|
@@ -129,12 +131,16 @@ var CreateStakeActivity = /*#__PURE__*/function () {
|
|
|
129
131
|
// validate the optional field `fee`
|
|
130
132
|
if (data['fee']) {
|
|
131
133
|
// data not null
|
|
132
|
-
_TransactionRequestFee["default"].validateJSON
|
|
134
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
135
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
136
|
+
}
|
|
133
137
|
}
|
|
134
138
|
// validate the optional field `extra`
|
|
135
139
|
if (data['extra']) {
|
|
136
140
|
// data not null
|
|
137
|
-
_CreateStakeActivityExtra["default"].validateJSON
|
|
141
|
+
if (!!_CreateStakeActivityExtra["default"].validateJSON) {
|
|
142
|
+
_CreateStakeActivityExtra["default"].validateJSON(data['extra']);
|
|
143
|
+
}
|
|
138
144
|
}
|
|
139
145
|
return true;
|
|
140
146
|
}
|
|
@@ -56,12 +56,12 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
56
56
|
try {
|
|
57
57
|
if (instance instanceof _BabylonStakeExtra["default"]) {
|
|
58
58
|
this.actualInstance = instance;
|
|
59
|
-
} else if (_BabylonStakeExtra["default"].validateJSON(instance)) {
|
|
59
|
+
} else if (!!_BabylonStakeExtra["default"].validateJSON && _BabylonStakeExtra["default"].validateJSON(instance)) {
|
|
60
60
|
// plain JS object
|
|
61
61
|
// create BabylonStakeExtra from JS object
|
|
62
62
|
this.actualInstance = _BabylonStakeExtra["default"].constructFromObject(instance);
|
|
63
|
-
} else {
|
|
64
|
-
|
|
63
|
+
} else if (_BabylonStakeExtra["default"].constructFromObject(instance)) {
|
|
64
|
+
this.actualInstance = _BabylonStakeExtra["default"].constructFromObject(instance);
|
|
65
65
|
}
|
|
66
66
|
match++;
|
|
67
67
|
} catch (err) {
|
|
@@ -71,12 +71,12 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
71
71
|
try {
|
|
72
72
|
if (instance instanceof _EigenLayerLstStakeExtra["default"]) {
|
|
73
73
|
this.actualInstance = instance;
|
|
74
|
-
} else if (_EigenLayerLstStakeExtra["default"].validateJSON(instance)) {
|
|
74
|
+
} else if (!!_EigenLayerLstStakeExtra["default"].validateJSON && _EigenLayerLstStakeExtra["default"].validateJSON(instance)) {
|
|
75
75
|
// plain JS object
|
|
76
76
|
// create EigenLayerLstStakeExtra from JS object
|
|
77
77
|
this.actualInstance = _EigenLayerLstStakeExtra["default"].constructFromObject(instance);
|
|
78
|
-
} else {
|
|
79
|
-
|
|
78
|
+
} else if (_EigenLayerLstStakeExtra["default"].constructFromObject(instance)) {
|
|
79
|
+
this.actualInstance = _EigenLayerLstStakeExtra["default"].constructFromObject(instance);
|
|
80
80
|
}
|
|
81
81
|
match++;
|
|
82
82
|
} catch (err) {
|
|
@@ -86,12 +86,12 @@ var CreateStakeActivityExtra = /*#__PURE__*/function () {
|
|
|
86
86
|
try {
|
|
87
87
|
if (instance instanceof _EigenLayerNativeStakeExtra["default"]) {
|
|
88
88
|
this.actualInstance = instance;
|
|
89
|
-
} else if (_EigenLayerNativeStakeExtra["default"].validateJSON(instance)) {
|
|
89
|
+
} else if (!!_EigenLayerNativeStakeExtra["default"].validateJSON && _EigenLayerNativeStakeExtra["default"].validateJSON(instance)) {
|
|
90
90
|
// plain JS object
|
|
91
91
|
// create EigenLayerNativeStakeExtra from JS object
|
|
92
92
|
this.actualInstance = _EigenLayerNativeStakeExtra["default"].constructFromObject(instance);
|
|
93
|
-
} else {
|
|
94
|
-
|
|
93
|
+
} else if (_EigenLayerNativeStakeExtra["default"].constructFromObject(instance)) {
|
|
94
|
+
this.actualInstance = _EigenLayerNativeStakeExtra["default"].constructFromObject(instance);
|
|
95
95
|
}
|
|
96
96
|
match++;
|
|
97
97
|
} catch (err) {
|
|
@@ -109,7 +109,9 @@ var CreateTssRequestRequest = /*#__PURE__*/function () {
|
|
|
109
109
|
// validate the optional field `source_key_share_holder_group`
|
|
110
110
|
if (data['source_key_share_holder_group']) {
|
|
111
111
|
// data not null
|
|
112
|
-
_SourceGroup["default"].validateJSON
|
|
112
|
+
if (!!_SourceGroup["default"].validateJSON) {
|
|
113
|
+
_SourceGroup["default"].validateJSON(data['source_key_share_holder_group']);
|
|
114
|
+
}
|
|
113
115
|
}
|
|
114
116
|
return true;
|
|
115
117
|
}
|
|
@@ -110,7 +110,9 @@ var CreateUnstakeActivity = /*#__PURE__*/function () {
|
|
|
110
110
|
// validate the optional field `fee`
|
|
111
111
|
if (data['fee']) {
|
|
112
112
|
// data not null
|
|
113
|
-
_TransactionRequestFee["default"].validateJSON
|
|
113
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
114
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
117
|
return true;
|
|
116
118
|
}
|
|
@@ -58,12 +58,12 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
58
58
|
try {
|
|
59
59
|
if (instance instanceof _CreateCustodialWalletParams["default"]) {
|
|
60
60
|
this.actualInstance = instance;
|
|
61
|
-
} else if (_CreateCustodialWalletParams["default"].validateJSON(instance)) {
|
|
61
|
+
} else if (!!_CreateCustodialWalletParams["default"].validateJSON && _CreateCustodialWalletParams["default"].validateJSON(instance)) {
|
|
62
62
|
// plain JS object
|
|
63
63
|
// create CreateCustodialWalletParams from JS object
|
|
64
64
|
this.actualInstance = _CreateCustodialWalletParams["default"].constructFromObject(instance);
|
|
65
|
-
} else {
|
|
66
|
-
|
|
65
|
+
} else if (_CreateCustodialWalletParams["default"].constructFromObject(instance)) {
|
|
66
|
+
this.actualInstance = _CreateCustodialWalletParams["default"].constructFromObject(instance);
|
|
67
67
|
}
|
|
68
68
|
match++;
|
|
69
69
|
} catch (err) {
|
|
@@ -73,12 +73,12 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
73
73
|
try {
|
|
74
74
|
if (instance instanceof _CreateMpcWalletParams["default"]) {
|
|
75
75
|
this.actualInstance = instance;
|
|
76
|
-
} else if (_CreateMpcWalletParams["default"].validateJSON(instance)) {
|
|
76
|
+
} else if (!!_CreateMpcWalletParams["default"].validateJSON && _CreateMpcWalletParams["default"].validateJSON(instance)) {
|
|
77
77
|
// plain JS object
|
|
78
78
|
// create CreateMpcWalletParams from JS object
|
|
79
79
|
this.actualInstance = _CreateMpcWalletParams["default"].constructFromObject(instance);
|
|
80
|
-
} else {
|
|
81
|
-
|
|
80
|
+
} else if (_CreateMpcWalletParams["default"].constructFromObject(instance)) {
|
|
81
|
+
this.actualInstance = _CreateMpcWalletParams["default"].constructFromObject(instance);
|
|
82
82
|
}
|
|
83
83
|
match++;
|
|
84
84
|
} catch (err) {
|
|
@@ -88,12 +88,12 @@ var CreateWalletParams = /*#__PURE__*/function () {
|
|
|
88
88
|
try {
|
|
89
89
|
if (instance instanceof _CreateExchangeWalletParams["default"]) {
|
|
90
90
|
this.actualInstance = instance;
|
|
91
|
-
} else if (_CreateExchangeWalletParams["default"].validateJSON(instance)) {
|
|
91
|
+
} else if (!!_CreateExchangeWalletParams["default"].validateJSON && _CreateExchangeWalletParams["default"].validateJSON(instance)) {
|
|
92
92
|
// plain JS object
|
|
93
93
|
// create CreateExchangeWalletParams from JS object
|
|
94
94
|
this.actualInstance = _CreateExchangeWalletParams["default"].constructFromObject(instance);
|
|
95
|
-
} else {
|
|
96
|
-
|
|
95
|
+
} else if (_CreateExchangeWalletParams["default"].constructFromObject(instance)) {
|
|
96
|
+
this.actualInstance = _CreateExchangeWalletParams["default"].constructFromObject(instance);
|
|
97
97
|
}
|
|
98
98
|
match++;
|
|
99
99
|
} catch (err) {
|
|
@@ -119,7 +119,9 @@ var CreateWithdrawActivity = /*#__PURE__*/function () {
|
|
|
119
119
|
// validate the optional field `fee`
|
|
120
120
|
if (data['fee']) {
|
|
121
121
|
// data not null
|
|
122
|
-
_TransactionRequestFee["default"].validateJSON
|
|
122
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
123
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
124
|
+
}
|
|
123
125
|
}
|
|
124
126
|
return true;
|
|
125
127
|
}
|
|
@@ -58,12 +58,12 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
58
58
|
try {
|
|
59
59
|
if (instance instanceof _CustodialWalletInfo["default"]) {
|
|
60
60
|
this.actualInstance = instance;
|
|
61
|
-
} else if (_CustodialWalletInfo["default"].validateJSON(instance)) {
|
|
61
|
+
} else if (!!_CustodialWalletInfo["default"].validateJSON && _CustodialWalletInfo["default"].validateJSON(instance)) {
|
|
62
62
|
// plain JS object
|
|
63
63
|
// create CustodialWalletInfo from JS object
|
|
64
64
|
this.actualInstance = _CustodialWalletInfo["default"].constructFromObject(instance);
|
|
65
|
-
} else {
|
|
66
|
-
|
|
65
|
+
} else if (_CustodialWalletInfo["default"].constructFromObject(instance)) {
|
|
66
|
+
this.actualInstance = _CustodialWalletInfo["default"].constructFromObject(instance);
|
|
67
67
|
}
|
|
68
68
|
match++;
|
|
69
69
|
} catch (err) {
|
|
@@ -73,12 +73,12 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
73
73
|
try {
|
|
74
74
|
if (instance instanceof _MPCWalletInfo["default"]) {
|
|
75
75
|
this.actualInstance = instance;
|
|
76
|
-
} else if (_MPCWalletInfo["default"].validateJSON(instance)) {
|
|
76
|
+
} else if (!!_MPCWalletInfo["default"].validateJSON && _MPCWalletInfo["default"].validateJSON(instance)) {
|
|
77
77
|
// plain JS object
|
|
78
78
|
// create MPCWalletInfo from JS object
|
|
79
79
|
this.actualInstance = _MPCWalletInfo["default"].constructFromObject(instance);
|
|
80
|
-
} else {
|
|
81
|
-
|
|
80
|
+
} else if (_MPCWalletInfo["default"].constructFromObject(instance)) {
|
|
81
|
+
this.actualInstance = _MPCWalletInfo["default"].constructFromObject(instance);
|
|
82
82
|
}
|
|
83
83
|
match++;
|
|
84
84
|
} catch (err) {
|
|
@@ -88,12 +88,12 @@ var CreatedWalletInfo = /*#__PURE__*/function () {
|
|
|
88
88
|
try {
|
|
89
89
|
if (instance instanceof _ExchangeWalletInfo["default"]) {
|
|
90
90
|
this.actualInstance = instance;
|
|
91
|
-
} else if (_ExchangeWalletInfo["default"].validateJSON(instance)) {
|
|
91
|
+
} else if (!!_ExchangeWalletInfo["default"].validateJSON && _ExchangeWalletInfo["default"].validateJSON(instance)) {
|
|
92
92
|
// plain JS object
|
|
93
93
|
// create ExchangeWalletInfo from JS object
|
|
94
94
|
this.actualInstance = _ExchangeWalletInfo["default"].constructFromObject(instance);
|
|
95
|
-
} else {
|
|
96
|
-
|
|
95
|
+
} else if (_ExchangeWalletInfo["default"].constructFromObject(instance)) {
|
|
96
|
+
this.actualInstance = _ExchangeWalletInfo["default"].constructFromObject(instance);
|
|
97
97
|
}
|
|
98
98
|
match++;
|
|
99
99
|
} catch (err) {
|
|
@@ -131,12 +131,16 @@ var EstimateContractCallFeeParams = /*#__PURE__*/function () {
|
|
|
131
131
|
// validate the optional field `source`
|
|
132
132
|
if (data['source']) {
|
|
133
133
|
// data not null
|
|
134
|
-
_ContractCallSource["default"].validateJSON
|
|
134
|
+
if (!!_ContractCallSource["default"].validateJSON) {
|
|
135
|
+
_ContractCallSource["default"].validateJSON(data['source']);
|
|
136
|
+
}
|
|
135
137
|
}
|
|
136
138
|
// validate the optional field `destination`
|
|
137
139
|
if (data['destination']) {
|
|
138
140
|
// data not null
|
|
139
|
-
_ContractCallDestination["default"].validateJSON
|
|
141
|
+
if (!!_ContractCallDestination["default"].validateJSON) {
|
|
142
|
+
_ContractCallDestination["default"].validateJSON(data['destination']);
|
|
143
|
+
}
|
|
140
144
|
}
|
|
141
145
|
return true;
|
|
142
146
|
}
|
|
@@ -58,12 +58,12 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
58
58
|
try {
|
|
59
59
|
if (instance instanceof _EstimateTransferFeeParams["default"]) {
|
|
60
60
|
this.actualInstance = instance;
|
|
61
|
-
} else if (_EstimateTransferFeeParams["default"].validateJSON(instance)) {
|
|
61
|
+
} else if (!!_EstimateTransferFeeParams["default"].validateJSON && _EstimateTransferFeeParams["default"].validateJSON(instance)) {
|
|
62
62
|
// plain JS object
|
|
63
63
|
// create EstimateTransferFeeParams from JS object
|
|
64
64
|
this.actualInstance = _EstimateTransferFeeParams["default"].constructFromObject(instance);
|
|
65
|
-
} else {
|
|
66
|
-
|
|
65
|
+
} else if (_EstimateTransferFeeParams["default"].constructFromObject(instance)) {
|
|
66
|
+
this.actualInstance = _EstimateTransferFeeParams["default"].constructFromObject(instance);
|
|
67
67
|
}
|
|
68
68
|
match++;
|
|
69
69
|
} catch (err) {
|
|
@@ -73,12 +73,12 @@ var EstimateFeeParams = /*#__PURE__*/function () {
|
|
|
73
73
|
try {
|
|
74
74
|
if (instance instanceof _EstimateContractCallFeeParams["default"]) {
|
|
75
75
|
this.actualInstance = instance;
|
|
76
|
-
} else if (_EstimateContractCallFeeParams["default"].validateJSON(instance)) {
|
|
76
|
+
} else if (!!_EstimateContractCallFeeParams["default"].validateJSON && _EstimateContractCallFeeParams["default"].validateJSON(instance)) {
|
|
77
77
|
// plain JS object
|
|
78
78
|
// create EstimateContractCallFeeParams from JS object
|
|
79
79
|
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
80
|
-
} else {
|
|
81
|
-
|
|
80
|
+
} else if (_EstimateContractCallFeeParams["default"].constructFromObject(instance)) {
|
|
81
|
+
this.actualInstance = _EstimateContractCallFeeParams["default"].constructFromObject(instance);
|
|
82
82
|
}
|
|
83
83
|
match++;
|
|
84
84
|
} catch (err) {
|
|
@@ -130,7 +130,9 @@ var EstimateStakeFee = /*#__PURE__*/function () {
|
|
|
130
130
|
}
|
|
131
131
|
if (data['source']) {
|
|
132
132
|
// data not null
|
|
133
|
-
_StakingSource["default"].validateJSON
|
|
133
|
+
if (!!_StakingSource["default"].validateJSON) {
|
|
134
|
+
_StakingSource["default"].validateJSON(data['source']);
|
|
135
|
+
}
|
|
134
136
|
}
|
|
135
137
|
// ensure the json data is a string
|
|
136
138
|
if (data['pool_id'] && !(typeof data['pool_id'] === 'string' || data['pool_id'] instanceof String)) {
|
|
@@ -143,12 +145,16 @@ var EstimateStakeFee = /*#__PURE__*/function () {
|
|
|
143
145
|
// validate the optional field `fee`
|
|
144
146
|
if (data['fee']) {
|
|
145
147
|
// data not null
|
|
146
|
-
_TransactionRequestFee["default"].validateJSON
|
|
148
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
149
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
150
|
+
}
|
|
147
151
|
}
|
|
148
152
|
// validate the optional field `extra`
|
|
149
153
|
if (data['extra']) {
|
|
150
154
|
// data not null
|
|
151
|
-
_CreateStakeActivityExtra["default"].validateJSON
|
|
155
|
+
if (!!_CreateStakeActivityExtra["default"].validateJSON) {
|
|
156
|
+
_CreateStakeActivityExtra["default"].validateJSON(data['extra']);
|
|
157
|
+
}
|
|
152
158
|
}
|
|
153
159
|
return true;
|
|
154
160
|
}
|
|
@@ -127,7 +127,9 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
|
|
|
127
127
|
// validate the optional field `source`
|
|
128
128
|
if (data['source']) {
|
|
129
129
|
// data not null
|
|
130
|
-
_TransferSource["default"].validateJSON
|
|
130
|
+
if (!!_TransferSource["default"].validateJSON) {
|
|
131
|
+
_TransferSource["default"].validateJSON(data['source']);
|
|
132
|
+
}
|
|
131
133
|
}
|
|
132
134
|
// ensure the json data is a string
|
|
133
135
|
if (data['token_id'] && !(typeof data['token_id'] === 'string' || data['token_id'] instanceof String)) {
|
|
@@ -136,7 +138,9 @@ var EstimateTransferFeeParams = /*#__PURE__*/function () {
|
|
|
136
138
|
// validate the optional field `destination`
|
|
137
139
|
if (data['destination']) {
|
|
138
140
|
// data not null
|
|
139
|
-
_TransferDestination["default"].validateJSON
|
|
141
|
+
if (!!_TransferDestination["default"].validateJSON) {
|
|
142
|
+
_TransferDestination["default"].validateJSON(data['destination']);
|
|
143
|
+
}
|
|
140
144
|
}
|
|
141
145
|
return true;
|
|
142
146
|
}
|
|
@@ -124,7 +124,9 @@ var EstimateUnstakeFee = /*#__PURE__*/function () {
|
|
|
124
124
|
// validate the optional field `fee`
|
|
125
125
|
if (data['fee']) {
|
|
126
126
|
// data not null
|
|
127
|
-
_TransactionRequestFee["default"].validateJSON
|
|
127
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
128
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
129
|
+
}
|
|
128
130
|
}
|
|
129
131
|
return true;
|
|
130
132
|
}
|
|
@@ -133,7 +133,9 @@ var EstimateWithdrawFee = /*#__PURE__*/function () {
|
|
|
133
133
|
// validate the optional field `fee`
|
|
134
134
|
if (data['fee']) {
|
|
135
135
|
// data not null
|
|
136
|
-
_TransactionRequestFee["default"].validateJSON
|
|
136
|
+
if (!!_TransactionRequestFee["default"].validateJSON) {
|
|
137
|
+
_TransactionRequestFee["default"].validateJSON(data['fee']);
|
|
138
|
+
}
|
|
137
139
|
}
|
|
138
140
|
return true;
|
|
139
141
|
}
|
|
@@ -118,17 +118,23 @@ var EstimatedEvmEip1559Fee = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EstimatedEvmEip1559FeeSlow["default"].validateJSON
|
|
121
|
+
if (!!_EstimatedEvmEip1559FeeSlow["default"].validateJSON) {
|
|
122
|
+
_EstimatedEvmEip1559FeeSlow["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EstimatedEvmEip1559FeeSlow["default"].validateJSON
|
|
128
|
+
if (!!_EstimatedEvmEip1559FeeSlow["default"].validateJSON) {
|
|
129
|
+
_EstimatedEvmEip1559FeeSlow["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EstimatedEvmEip1559FeeSlow["default"].validateJSON
|
|
135
|
+
if (!!_EstimatedEvmEip1559FeeSlow["default"].validateJSON) {
|
|
136
|
+
_EstimatedEvmEip1559FeeSlow["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|
|
@@ -118,17 +118,23 @@ var EstimatedEvmLegacyFee = /*#__PURE__*/function () {
|
|
|
118
118
|
// validate the optional field `slow`
|
|
119
119
|
if (data['slow']) {
|
|
120
120
|
// data not null
|
|
121
|
-
_EstimatedEvmLegacyFeeSlow["default"].validateJSON
|
|
121
|
+
if (!!_EstimatedEvmLegacyFeeSlow["default"].validateJSON) {
|
|
122
|
+
_EstimatedEvmLegacyFeeSlow["default"].validateJSON(data['slow']);
|
|
123
|
+
}
|
|
122
124
|
}
|
|
123
125
|
// validate the optional field `recommended`
|
|
124
126
|
if (data['recommended']) {
|
|
125
127
|
// data not null
|
|
126
|
-
_EstimatedEvmLegacyFeeSlow["default"].validateJSON
|
|
128
|
+
if (!!_EstimatedEvmLegacyFeeSlow["default"].validateJSON) {
|
|
129
|
+
_EstimatedEvmLegacyFeeSlow["default"].validateJSON(data['recommended']);
|
|
130
|
+
}
|
|
127
131
|
}
|
|
128
132
|
// validate the optional field `fast`
|
|
129
133
|
if (data['fast']) {
|
|
130
134
|
// data not null
|
|
131
|
-
_EstimatedEvmLegacyFeeSlow["default"].validateJSON
|
|
135
|
+
if (!!_EstimatedEvmLegacyFeeSlow["default"].validateJSON) {
|
|
136
|
+
_EstimatedEvmLegacyFeeSlow["default"].validateJSON(data['fast']);
|
|
137
|
+
}
|
|
132
138
|
}
|
|
133
139
|
return true;
|
|
134
140
|
}
|