@cobo/cobo-waas2 1.8.0 → 1.9.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 +78 -30
- package/dist/ApiClient.js +11 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/PrimeBrokerApi.js +317 -0
- package/dist/api/StakingsApi.js +12 -12
- package/dist/api/TransactionsApi.js +60 -16
- package/dist/api/TravelRuleApi.js +18 -18
- package/dist/api/WalletsApi.js +84 -13
- package/dist/api/WalletsExchangeWalletApi.js +1 -1
- package/dist/api/WalletsMPCWalletsApi.js +151 -39
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +112 -7
- package/dist/model/ActivityExtra.js +5 -5
- package/dist/model/AddressBalance.js +129 -0
- package/dist/model/AddressTransferDestination.js +36 -0
- package/dist/model/ApprovalStatementStatus.js +81 -0
- package/dist/model/AssetBalance.js +6 -6
- package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
- package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
- package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
- package/dist/model/ChangeGuardPubkey200Response.js +110 -0
- package/dist/model/ContractCallParams.js +36 -0
- package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
- package/dist/model/CreateAddressRequest.js +28 -2
- package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
- package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
- package/dist/model/DeleteGuardPubkey201Response.js +110 -0
- package/dist/model/EthStakeEstimatedFee.js +1 -1
- package/dist/model/EthStakingActivityDetailExtra.js +1 -1
- package/dist/model/GetStakingEstimationFee201Response.js +1 -1
- package/dist/model/GetTransactionLimitation200Response.js +4 -4
- package/dist/model/GuardPubkeyStatus.js +91 -0
- package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
- package/dist/model/ListKeyShareHolders200Response.js +123 -0
- package/dist/model/MessageSignDestination.js +70 -8
- package/dist/model/MessageSignDestinationType.js +12 -2
- package/dist/model/OrgInfo.js +3 -3
- package/dist/model/QueryApprovalStatement200Response.js +122 -0
- package/dist/model/QueryGuardPubkey200Response.js +129 -0
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SelfCustodyWallet.js +7 -7
- package/dist/model/SubWalletAssetBalance.js +6 -6
- package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TokenBalance.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +16 -0
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
- package/dist/model/TransactionDestination.js +6 -0
- package/dist/model/TransactionRawTxInfo.js +13 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUserApprovalDetail.js +3 -3
- package/dist/model/TransferDestination.js +6 -0
- package/dist/model/TransferParams.js +36 -0
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
- package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
- package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
- package/dist/model/Vasp.js +7 -7
- package/docs/ActivityExtra.md +5 -5
- package/docs/AddressBalance.md +10 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressTransferDestination.md +14 -0
- package/docs/ApprovalStatementStatus.md +20 -0
- package/docs/AssetBalance.md +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +10 -0
- package/docs/BabylonStakingActivityDetailExtra.md +1 -1
- package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
- package/docs/ChangeGuardPubkey200Response.md +9 -0
- package/docs/ContractCallParams.md +14 -0
- package/docs/CoreStakingActivityDetailExtra.md +3 -3
- package/docs/CreateAddressRequest.md +3 -1
- package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
- package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
- package/docs/DeleteGuardPubkey201Response.md +9 -0
- package/docs/DevelopersApi.md +3 -3
- package/docs/DevelopersWebhooksApi.md +8 -8
- package/docs/EthStakeEstimatedFee.md +1 -1
- package/docs/EthStakingActivityDetailExtra.md +1 -1
- package/docs/GetStakingEstimationFee201Response.md +1 -1
- package/docs/GetTransactionLimitation200Response.md +4 -4
- package/docs/GuardPubkeyStatus.md +24 -0
- package/docs/ListAddressBalancesByToken200Response.md +10 -0
- package/docs/ListKeyShareHolders200Response.md +10 -0
- package/docs/MessageSignDestination.md +1 -0
- package/docs/MessageSignDestinationType.md +6 -2
- package/docs/OrgInfo.md +1 -1
- package/docs/PrimeBrokerApi.md +318 -0
- package/docs/QueryApprovalStatement200Response.md +12 -0
- package/docs/QueryGuardPubkey200Response.md +11 -0
- package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
- package/docs/RootPubkey.md +1 -1
- package/docs/SelfCustodyWallet.md +3 -3
- package/docs/StakingsApi.md +12 -12
- package/docs/SubWalletAssetBalance.md +1 -1
- package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
- package/docs/TSSGroups.md +1 -1
- package/docs/TokenBalance.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -0
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
- package/docs/TransactionDestination.md +1 -0
- package/docs/TransactionRawTxInfo.md +1 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUserApprovalDetail.md +3 -3
- package/docs/TransactionsApi.md +66 -15
- package/docs/TransferDestination.md +14 -0
- package/docs/TransferParams.md +14 -0
- package/docs/TravelRuleApi.md +13 -13
- package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
- package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
- package/docs/TravelRuleDepositLegalEntity.md +3 -3
- package/docs/TravelRuleDepositNaturalEntity.md +5 -5
- package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
- package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
- package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
- package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
- package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
- package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
- package/docs/Vasp.md +3 -3
- package/docs/WalletsApi.md +78 -13
- package/docs/WalletsExchangeWalletApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +141 -27
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "ActivityType", {
|
|
|
45
45
|
return _ActivityType["default"];
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "AddressBalance", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _AddressBalance["default"];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
Object.defineProperty(exports, "AddressBook", {
|
|
49
55
|
enumerable: true,
|
|
50
56
|
get: function get() {
|
|
@@ -123,6 +129,12 @@ Object.defineProperty(exports, "ApiLogSummary", {
|
|
|
123
129
|
return _ApiLogSummary["default"];
|
|
124
130
|
}
|
|
125
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "ApprovalStatementStatus", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _ApprovalStatementStatus["default"];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
126
138
|
Object.defineProperty(exports, "AssetBalance", {
|
|
127
139
|
enumerable: true,
|
|
128
140
|
get: function get() {
|
|
@@ -141,6 +153,12 @@ Object.defineProperty(exports, "AutoFuelType", {
|
|
|
141
153
|
return _AutoFuelType["default"];
|
|
142
154
|
}
|
|
143
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "BTCEIP191MessageSignDestination", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _BTCEIP191MessageSignDestination["default"];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
144
162
|
Object.defineProperty(exports, "BabylonStakeEstimatedFee", {
|
|
145
163
|
enumerable: true,
|
|
146
164
|
get: function get() {
|
|
@@ -171,6 +189,12 @@ Object.defineProperty(exports, "BabylonValidator", {
|
|
|
171
189
|
return _BabylonValidator["default"];
|
|
172
190
|
}
|
|
173
191
|
});
|
|
192
|
+
Object.defineProperty(exports, "Balance", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _Balance["default"];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
174
198
|
Object.defineProperty(exports, "BaseContractCallSource", {
|
|
175
199
|
enumerable: true,
|
|
176
200
|
get: function get() {
|
|
@@ -219,6 +243,12 @@ Object.defineProperty(exports, "ChainInfo", {
|
|
|
219
243
|
return _ChainInfo["default"];
|
|
220
244
|
}
|
|
221
245
|
});
|
|
246
|
+
Object.defineProperty(exports, "ChangeGuardPubkey200Response", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function get() {
|
|
249
|
+
return _ChangeGuardPubkey200Response["default"];
|
|
250
|
+
}
|
|
251
|
+
});
|
|
222
252
|
Object.defineProperty(exports, "CheckAddressChainsValidity200ResponseInner", {
|
|
223
253
|
enumerable: true,
|
|
224
254
|
get: function get() {
|
|
@@ -363,6 +393,18 @@ Object.defineProperty(exports, "CreateMpcWalletParams", {
|
|
|
363
393
|
return _CreateMpcWalletParams["default"];
|
|
364
394
|
}
|
|
365
395
|
});
|
|
396
|
+
Object.defineProperty(exports, "CreatePrimeBrokerAddress201Response", {
|
|
397
|
+
enumerable: true,
|
|
398
|
+
get: function get() {
|
|
399
|
+
return _CreatePrimeBrokerAddress201Response["default"];
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
Object.defineProperty(exports, "CreatePrimeBrokerAddressRequest", {
|
|
403
|
+
enumerable: true,
|
|
404
|
+
get: function get() {
|
|
405
|
+
return _CreatePrimeBrokerAddressRequest["default"];
|
|
406
|
+
}
|
|
407
|
+
});
|
|
366
408
|
Object.defineProperty(exports, "CreateSafeWalletParams", {
|
|
367
409
|
enumerable: true,
|
|
368
410
|
get: function get() {
|
|
@@ -477,6 +519,12 @@ Object.defineProperty(exports, "CustodialWalletInfo", {
|
|
|
477
519
|
return _CustodialWalletInfo["default"];
|
|
478
520
|
}
|
|
479
521
|
});
|
|
522
|
+
Object.defineProperty(exports, "DeleteGuardPubkey201Response", {
|
|
523
|
+
enumerable: true,
|
|
524
|
+
get: function get() {
|
|
525
|
+
return _DeleteGuardPubkey201Response["default"];
|
|
526
|
+
}
|
|
527
|
+
});
|
|
480
528
|
Object.defineProperty(exports, "DeleteKeyShareHolderGroupById201Response", {
|
|
481
529
|
enumerable: true,
|
|
482
530
|
get: function get() {
|
|
@@ -813,6 +861,12 @@ Object.defineProperty(exports, "GetTransactionLimitation200Response", {
|
|
|
813
861
|
return _GetTransactionLimitation200Response["default"];
|
|
814
862
|
}
|
|
815
863
|
});
|
|
864
|
+
Object.defineProperty(exports, "GuardPubkeyStatus", {
|
|
865
|
+
enumerable: true,
|
|
866
|
+
get: function get() {
|
|
867
|
+
return _GuardPubkeyStatus["default"];
|
|
868
|
+
}
|
|
869
|
+
});
|
|
816
870
|
Object.defineProperty(exports, "KeyShareHolder", {
|
|
817
871
|
enumerable: true,
|
|
818
872
|
get: function get() {
|
|
@@ -849,6 +903,12 @@ Object.defineProperty(exports, "KeyShareHolderType", {
|
|
|
849
903
|
return _KeyShareHolderType["default"];
|
|
850
904
|
}
|
|
851
905
|
});
|
|
906
|
+
Object.defineProperty(exports, "ListAddressBalancesByToken200Response", {
|
|
907
|
+
enumerable: true,
|
|
908
|
+
get: function get() {
|
|
909
|
+
return _ListAddressBalancesByToken200Response["default"];
|
|
910
|
+
}
|
|
911
|
+
});
|
|
852
912
|
Object.defineProperty(exports, "ListAddressBooks200Response", {
|
|
853
913
|
enumerable: true,
|
|
854
914
|
get: function get() {
|
|
@@ -885,6 +945,12 @@ Object.defineProperty(exports, "ListKeyShareHolderGroups200Response", {
|
|
|
885
945
|
return _ListKeyShareHolderGroups200Response["default"];
|
|
886
946
|
}
|
|
887
947
|
});
|
|
948
|
+
Object.defineProperty(exports, "ListKeyShareHolders200Response", {
|
|
949
|
+
enumerable: true,
|
|
950
|
+
get: function get() {
|
|
951
|
+
return _ListKeyShareHolders200Response["default"];
|
|
952
|
+
}
|
|
953
|
+
});
|
|
888
954
|
Object.defineProperty(exports, "ListMpcProjects200Response", {
|
|
889
955
|
enumerable: true,
|
|
890
956
|
get: function get() {
|
|
@@ -1155,6 +1221,30 @@ Object.defineProperty(exports, "PoolSummary", {
|
|
|
1155
1221
|
return _PoolSummary["default"];
|
|
1156
1222
|
}
|
|
1157
1223
|
});
|
|
1224
|
+
Object.defineProperty(exports, "PrimeBrokerApi", {
|
|
1225
|
+
enumerable: true,
|
|
1226
|
+
get: function get() {
|
|
1227
|
+
return _PrimeBrokerApi["default"];
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
Object.defineProperty(exports, "QueryApprovalStatement200Response", {
|
|
1231
|
+
enumerable: true,
|
|
1232
|
+
get: function get() {
|
|
1233
|
+
return _QueryApprovalStatement200Response["default"];
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1236
|
+
Object.defineProperty(exports, "QueryGuardPubkey200Response", {
|
|
1237
|
+
enumerable: true,
|
|
1238
|
+
get: function get() {
|
|
1239
|
+
return _QueryGuardPubkey200Response["default"];
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
Object.defineProperty(exports, "QueryGuardPubkey200ResponseAddressesInner", {
|
|
1243
|
+
enumerable: true,
|
|
1244
|
+
get: function get() {
|
|
1245
|
+
return _QueryGuardPubkey200ResponseAddressesInner["default"];
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1158
1248
|
Object.defineProperty(exports, "RawMessageSignDestination", {
|
|
1159
1249
|
enumerable: true,
|
|
1160
1250
|
get: function get() {
|
|
@@ -1407,12 +1497,6 @@ Object.defineProperty(exports, "TokenBalance", {
|
|
|
1407
1497
|
return _TokenBalance["default"];
|
|
1408
1498
|
}
|
|
1409
1499
|
});
|
|
1410
|
-
Object.defineProperty(exports, "TokenBalanceBalance", {
|
|
1411
|
-
enumerable: true,
|
|
1412
|
-
get: function get() {
|
|
1413
|
-
return _TokenBalanceBalance["default"];
|
|
1414
|
-
}
|
|
1415
|
-
});
|
|
1416
1500
|
Object.defineProperty(exports, "TokenInfo", {
|
|
1417
1501
|
enumerable: true,
|
|
1418
1502
|
get: function get() {
|
|
@@ -1479,6 +1563,12 @@ Object.defineProperty(exports, "TransactionDepositToAddressDestination", {
|
|
|
1479
1563
|
return _TransactionDepositToAddressDestination["default"];
|
|
1480
1564
|
}
|
|
1481
1565
|
});
|
|
1566
|
+
Object.defineProperty(exports, "TransactionDepositToAddressDestinationTxInfo", {
|
|
1567
|
+
enumerable: true,
|
|
1568
|
+
get: function get() {
|
|
1569
|
+
return _TransactionDepositToAddressDestinationTxInfo["default"];
|
|
1570
|
+
}
|
|
1571
|
+
});
|
|
1482
1572
|
Object.defineProperty(exports, "TransactionDepositToWalletDestination", {
|
|
1483
1573
|
enumerable: true,
|
|
1484
1574
|
get: function get() {
|
|
@@ -2102,6 +2192,7 @@ var _ActivityInitiator = _interopRequireDefault(require("./model/ActivityInitiat
|
|
|
2102
2192
|
var _ActivityStatus = _interopRequireDefault(require("./model/ActivityStatus"));
|
|
2103
2193
|
var _ActivityTimeline = _interopRequireDefault(require("./model/ActivityTimeline"));
|
|
2104
2194
|
var _ActivityType = _interopRequireDefault(require("./model/ActivityType"));
|
|
2195
|
+
var _AddressBalance = _interopRequireDefault(require("./model/AddressBalance"));
|
|
2105
2196
|
var _AddressBook = _interopRequireDefault(require("./model/AddressBook"));
|
|
2106
2197
|
var _AddressEncoding = _interopRequireDefault(require("./model/AddressEncoding"));
|
|
2107
2198
|
var _AddressInfo = _interopRequireDefault(require("./model/AddressInfo"));
|
|
@@ -2113,14 +2204,17 @@ var _AmountDetailsInner = _interopRequireDefault(require("./model/AmountDetailsI
|
|
|
2113
2204
|
var _AmountStatus = _interopRequireDefault(require("./model/AmountStatus"));
|
|
2114
2205
|
var _ApiLogDetails = _interopRequireDefault(require("./model/ApiLogDetails"));
|
|
2115
2206
|
var _ApiLogSummary = _interopRequireDefault(require("./model/ApiLogSummary"));
|
|
2207
|
+
var _ApprovalStatementStatus = _interopRequireDefault(require("./model/ApprovalStatementStatus"));
|
|
2116
2208
|
var _AssetBalance = _interopRequireDefault(require("./model/AssetBalance"));
|
|
2117
2209
|
var _AssetInfo = _interopRequireDefault(require("./model/AssetInfo"));
|
|
2118
2210
|
var _AutoFuelType = _interopRequireDefault(require("./model/AutoFuelType"));
|
|
2211
|
+
var _BTCEIP191MessageSignDestination = _interopRequireDefault(require("./model/BTCEIP191MessageSignDestination"));
|
|
2119
2212
|
var _BabylonStakeEstimatedFee = _interopRequireDefault(require("./model/BabylonStakeEstimatedFee"));
|
|
2120
2213
|
var _BabylonStakeExtra = _interopRequireDefault(require("./model/BabylonStakeExtra"));
|
|
2121
2214
|
var _BabylonStakingActivityDetailExtra = _interopRequireDefault(require("./model/BabylonStakingActivityDetailExtra"));
|
|
2122
2215
|
var _BabylonStakingExtra = _interopRequireDefault(require("./model/BabylonStakingExtra"));
|
|
2123
2216
|
var _BabylonValidator = _interopRequireDefault(require("./model/BabylonValidator"));
|
|
2217
|
+
var _Balance = _interopRequireDefault(require("./model/Balance"));
|
|
2124
2218
|
var _BaseContractCallSource = _interopRequireDefault(require("./model/BaseContractCallSource"));
|
|
2125
2219
|
var _BaseEstimateStakingFee = _interopRequireDefault(require("./model/BaseEstimateStakingFee"));
|
|
2126
2220
|
var _BaseStakeExtra = _interopRequireDefault(require("./model/BaseStakeExtra"));
|
|
@@ -2129,6 +2223,7 @@ var _BroadcastSignedTransactions201ResponseInner = _interopRequireDefault(requir
|
|
|
2129
2223
|
var _BroadcastSignedTransactionsRequest = _interopRequireDefault(require("./model/BroadcastSignedTransactionsRequest"));
|
|
2130
2224
|
var _CallbackMessage = _interopRequireDefault(require("./model/CallbackMessage"));
|
|
2131
2225
|
var _ChainInfo = _interopRequireDefault(require("./model/ChainInfo"));
|
|
2226
|
+
var _ChangeGuardPubkey200Response = _interopRequireDefault(require("./model/ChangeGuardPubkey200Response"));
|
|
2132
2227
|
var _CheckAddressChainsValidity200ResponseInner = _interopRequireDefault(require("./model/CheckAddressChainsValidity200ResponseInner"));
|
|
2133
2228
|
var _CheckAddressValidity200Response = _interopRequireDefault(require("./model/CheckAddressValidity200Response"));
|
|
2134
2229
|
var _CheckAddressesValidity200ResponseInner = _interopRequireDefault(require("./model/CheckAddressesValidity200ResponseInner"));
|
|
@@ -2153,6 +2248,8 @@ var _CreateKeyShareHolderGroupRequest = _interopRequireDefault(require("./model/
|
|
|
2153
2248
|
var _CreateMpcProjectRequest = _interopRequireDefault(require("./model/CreateMpcProjectRequest"));
|
|
2154
2249
|
var _CreateMpcVaultRequest = _interopRequireDefault(require("./model/CreateMpcVaultRequest"));
|
|
2155
2250
|
var _CreateMpcWalletParams = _interopRequireDefault(require("./model/CreateMpcWalletParams"));
|
|
2251
|
+
var _CreatePrimeBrokerAddress201Response = _interopRequireDefault(require("./model/CreatePrimeBrokerAddress201Response"));
|
|
2252
|
+
var _CreatePrimeBrokerAddressRequest = _interopRequireDefault(require("./model/CreatePrimeBrokerAddressRequest"));
|
|
2156
2253
|
var _CreateSafeWalletParams = _interopRequireDefault(require("./model/CreateSafeWalletParams"));
|
|
2157
2254
|
var _CreateSmartContractWalletParams = _interopRequireDefault(require("./model/CreateSmartContractWalletParams"));
|
|
2158
2255
|
var _CreateStakeActivity = _interopRequireDefault(require("./model/CreateStakeActivity"));
|
|
@@ -2172,6 +2269,7 @@ var _CreatedWalletInfo = _interopRequireDefault(require("./model/CreatedWalletIn
|
|
|
2172
2269
|
var _CurveType = _interopRequireDefault(require("./model/CurveType"));
|
|
2173
2270
|
var _CustodialTransferSource = _interopRequireDefault(require("./model/CustodialTransferSource"));
|
|
2174
2271
|
var _CustodialWalletInfo = _interopRequireDefault(require("./model/CustodialWalletInfo"));
|
|
2272
|
+
var _DeleteGuardPubkey201Response = _interopRequireDefault(require("./model/DeleteGuardPubkey201Response"));
|
|
2175
2273
|
var _DeleteKeyShareHolderGroupById201Response = _interopRequireDefault(require("./model/DeleteKeyShareHolderGroupById201Response"));
|
|
2176
2274
|
var _DeleteWalletById201Response = _interopRequireDefault(require("./model/DeleteWalletById201Response"));
|
|
2177
2275
|
var _DestinationWalletType = _interopRequireDefault(require("./model/DestinationWalletType"));
|
|
@@ -2224,18 +2322,21 @@ var _GetStakingEstimationFeeRequest = _interopRequireDefault(require("./model/Ge
|
|
|
2224
2322
|
var _GetToken2XXResponse = _interopRequireDefault(require("./model/GetToken2XXResponse"));
|
|
2225
2323
|
var _GetToken4XXResponse = _interopRequireDefault(require("./model/GetToken4XXResponse"));
|
|
2226
2324
|
var _GetTransactionLimitation200Response = _interopRequireDefault(require("./model/GetTransactionLimitation200Response"));
|
|
2325
|
+
var _GuardPubkeyStatus = _interopRequireDefault(require("./model/GuardPubkeyStatus"));
|
|
2227
2326
|
var _KeyShareHolder = _interopRequireDefault(require("./model/KeyShareHolder"));
|
|
2228
2327
|
var _KeyShareHolderGroup = _interopRequireDefault(require("./model/KeyShareHolderGroup"));
|
|
2229
2328
|
var _KeyShareHolderGroupStatus = _interopRequireDefault(require("./model/KeyShareHolderGroupStatus"));
|
|
2230
2329
|
var _KeyShareHolderGroupType = _interopRequireDefault(require("./model/KeyShareHolderGroupType"));
|
|
2231
2330
|
var _KeyShareHolderStatus = _interopRequireDefault(require("./model/KeyShareHolderStatus"));
|
|
2232
2331
|
var _KeyShareHolderType = _interopRequireDefault(require("./model/KeyShareHolderType"));
|
|
2332
|
+
var _ListAddressBalancesByToken200Response = _interopRequireDefault(require("./model/ListAddressBalancesByToken200Response"));
|
|
2233
2333
|
var _ListAddressBooks200Response = _interopRequireDefault(require("./model/ListAddressBooks200Response"));
|
|
2234
2334
|
var _ListAddresses200Response = _interopRequireDefault(require("./model/ListAddresses200Response"));
|
|
2235
2335
|
var _ListAssetBalancesForExchangeWallet200Response = _interopRequireDefault(require("./model/ListAssetBalancesForExchangeWallet200Response"));
|
|
2236
2336
|
var _ListCallbackMessages200Response = _interopRequireDefault(require("./model/ListCallbackMessages200Response"));
|
|
2237
2337
|
var _ListExchanges200ResponseInner = _interopRequireDefault(require("./model/ListExchanges200ResponseInner"));
|
|
2238
2338
|
var _ListKeyShareHolderGroups200Response = _interopRequireDefault(require("./model/ListKeyShareHolderGroups200Response"));
|
|
2339
|
+
var _ListKeyShareHolders200Response = _interopRequireDefault(require("./model/ListKeyShareHolders200Response"));
|
|
2239
2340
|
var _ListMpcProjects200Response = _interopRequireDefault(require("./model/ListMpcProjects200Response"));
|
|
2240
2341
|
var _ListMpcVaults200Response = _interopRequireDefault(require("./model/ListMpcVaults200Response"));
|
|
2241
2342
|
var _ListStakingActivities200Response = _interopRequireDefault(require("./model/ListStakingActivities200Response"));
|
|
@@ -2280,6 +2381,9 @@ var _Pagination = _interopRequireDefault(require("./model/Pagination"));
|
|
|
2280
2381
|
var _PoolDetails = _interopRequireDefault(require("./model/PoolDetails"));
|
|
2281
2382
|
var _PoolDetailsAllOfValidatorsInfo = _interopRequireDefault(require("./model/PoolDetailsAllOfValidatorsInfo"));
|
|
2282
2383
|
var _PoolSummary = _interopRequireDefault(require("./model/PoolSummary"));
|
|
2384
|
+
var _QueryApprovalStatement200Response = _interopRequireDefault(require("./model/QueryApprovalStatement200Response"));
|
|
2385
|
+
var _QueryGuardPubkey200Response = _interopRequireDefault(require("./model/QueryGuardPubkey200Response"));
|
|
2386
|
+
var _QueryGuardPubkey200ResponseAddressesInner = _interopRequireDefault(require("./model/QueryGuardPubkey200ResponseAddressesInner"));
|
|
2283
2387
|
var _RawMessageSignDestination = _interopRequireDefault(require("./model/RawMessageSignDestination"));
|
|
2284
2388
|
var _RefreshToken2XXResponse = _interopRequireDefault(require("./model/RefreshToken2XXResponse"));
|
|
2285
2389
|
var _RefreshTokenRequest = _interopRequireDefault(require("./model/RefreshTokenRequest"));
|
|
@@ -2320,7 +2424,6 @@ var _TSSRequestType = _interopRequireDefault(require("./model/TSSRequestType"));
|
|
|
2320
2424
|
var _TSSRequestWebhookEventData = _interopRequireDefault(require("./model/TSSRequestWebhookEventData"));
|
|
2321
2425
|
var _TokenAssetModelType = _interopRequireDefault(require("./model/TokenAssetModelType"));
|
|
2322
2426
|
var _TokenBalance = _interopRequireDefault(require("./model/TokenBalance"));
|
|
2323
|
-
var _TokenBalanceBalance = _interopRequireDefault(require("./model/TokenBalanceBalance"));
|
|
2324
2427
|
var _TokenInfo = _interopRequireDefault(require("./model/TokenInfo"));
|
|
2325
2428
|
var _Transaction = _interopRequireDefault(require("./model/Transaction"));
|
|
2326
2429
|
var _TransactionApprovalDetail = _interopRequireDefault(require("./model/TransactionApprovalDetail"));
|
|
@@ -2332,6 +2435,7 @@ var _TransactionDepositFromAddressSource = _interopRequireDefault(require("./mod
|
|
|
2332
2435
|
var _TransactionDepositFromLoopSource = _interopRequireDefault(require("./model/TransactionDepositFromLoopSource"));
|
|
2333
2436
|
var _TransactionDepositFromWalletSource = _interopRequireDefault(require("./model/TransactionDepositFromWalletSource"));
|
|
2334
2437
|
var _TransactionDepositToAddressDestination = _interopRequireDefault(require("./model/TransactionDepositToAddressDestination"));
|
|
2438
|
+
var _TransactionDepositToAddressDestinationTxInfo = _interopRequireDefault(require("./model/TransactionDepositToAddressDestinationTxInfo"));
|
|
2335
2439
|
var _TransactionDepositToWalletDestination = _interopRequireDefault(require("./model/TransactionDepositToWalletDestination"));
|
|
2336
2440
|
var _TransactionDestination = _interopRequireDefault(require("./model/TransactionDestination"));
|
|
2337
2441
|
var _TransactionDestinationType = _interopRequireDefault(require("./model/TransactionDestinationType"));
|
|
@@ -2432,6 +2536,7 @@ var _AddressBooksApi = _interopRequireDefault(require("./api/AddressBooksApi"));
|
|
|
2432
2536
|
var _DevelopersApi = _interopRequireDefault(require("./api/DevelopersApi"));
|
|
2433
2537
|
var _DevelopersWebhooksApi = _interopRequireDefault(require("./api/DevelopersWebhooksApi"));
|
|
2434
2538
|
var _OAuthApi = _interopRequireDefault(require("./api/OAuthApi"));
|
|
2539
|
+
var _PrimeBrokerApi = _interopRequireDefault(require("./api/PrimeBrokerApi"));
|
|
2435
2540
|
var _StakingsApi = _interopRequireDefault(require("./api/StakingsApi"));
|
|
2436
2541
|
var _TransactionsApi = _interopRequireDefault(require("./api/TransactionsApi"));
|
|
2437
2542
|
var _TravelRuleApi = _interopRequireDefault(require("./api/TravelRuleApi"));
|
|
@@ -219,7 +219,7 @@ ActivityExtra.prototype['finality_provider_public_key'] = undefined;
|
|
|
219
219
|
ActivityExtra.prototype['stake_block_time'] = undefined;
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
|
-
* Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
|
|
222
|
+
* Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
|
|
223
223
|
* @member {Boolean} auto_broadcast
|
|
224
224
|
*/
|
|
225
225
|
ActivityExtra.prototype['auto_broadcast'] = undefined;
|
|
@@ -242,7 +242,7 @@ ActivityExtra.prototype['withdraw_from_type'] = undefined;
|
|
|
242
242
|
ActivityExtra.prototype['provider_name'] = undefined;
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
|
-
* A list of public keys
|
|
245
|
+
* A list of public keys associated with the Ethereum validators for this unstaking operation.
|
|
246
246
|
* @member {Array.<String>} validator_pubkeys
|
|
247
247
|
*/
|
|
248
248
|
ActivityExtra.prototype['validator_pubkeys'] = undefined;
|
|
@@ -254,19 +254,19 @@ ActivityExtra.prototype['validator_pubkeys'] = undefined;
|
|
|
254
254
|
ActivityExtra.prototype['timelock'] = undefined;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
|
-
* The change
|
|
257
|
+
* The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address.
|
|
258
258
|
* @member {String} change_address
|
|
259
259
|
*/
|
|
260
260
|
ActivityExtra.prototype['change_address'] = undefined;
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
|
-
* The validator
|
|
263
|
+
* The validator's EVM address.
|
|
264
264
|
* @member {String} validator_address
|
|
265
265
|
*/
|
|
266
266
|
ActivityExtra.prototype['validator_address'] = undefined;
|
|
267
267
|
|
|
268
268
|
/**
|
|
269
|
-
* The
|
|
269
|
+
* The EVM address to receive staking rewards.
|
|
270
270
|
* @member {String} reward_address
|
|
271
271
|
*/
|
|
272
272
|
ActivityExtra.prototype['reward_address'] = undefined;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Balance = _interopRequireDefault(require("./Balance"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Cobo Wallet as a Service 2.0
|
|
20
|
+
*
|
|
21
|
+
* Contact: help@cobo.com
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The AddressBalance model module.
|
|
30
|
+
* @module model/AddressBalance
|
|
31
|
+
*/
|
|
32
|
+
var AddressBalance = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>AddressBalance</code>.
|
|
35
|
+
* The token balance for a specific wallet address.
|
|
36
|
+
* @alias module:model/AddressBalance
|
|
37
|
+
* @param address {String} The wallet address.
|
|
38
|
+
* @param balance {module:model/Balance}
|
|
39
|
+
*/
|
|
40
|
+
function AddressBalance(address, balance) {
|
|
41
|
+
_classCallCheck(this, AddressBalance);
|
|
42
|
+
AddressBalance.initialize(this, address, balance);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the fields of this object.
|
|
47
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
|
+
* Only for internal use.
|
|
49
|
+
*/
|
|
50
|
+
return _createClass(AddressBalance, null, [{
|
|
51
|
+
key: "initialize",
|
|
52
|
+
value: function initialize(obj, address, balance) {
|
|
53
|
+
obj['address'] = address;
|
|
54
|
+
obj['balance'] = balance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>AddressBalance</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/AddressBalance} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/AddressBalance} The populated <code>AddressBalance</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new AddressBalance();
|
|
69
|
+
if (data.hasOwnProperty('address')) {
|
|
70
|
+
obj['address'] = _ApiClient["default"].convertToType(data['address'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('balance')) {
|
|
73
|
+
obj['balance'] = _Balance["default"].constructFromObject(data['balance']);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Validates the JSON data with respect to <code>AddressBalance</code>.
|
|
81
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
82
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AddressBalance</code>.
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "validateJSON",
|
|
86
|
+
value: function validateJSON(data) {
|
|
87
|
+
// check to make sure all required properties are present in the JSON string
|
|
88
|
+
var _iterator = _createForOfIteratorHelper(AddressBalance.RequiredProperties),
|
|
89
|
+
_step;
|
|
90
|
+
try {
|
|
91
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
92
|
+
var property = _step.value;
|
|
93
|
+
if (!data.hasOwnProperty(property)) {
|
|
94
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// ensure the json data is a string
|
|
98
|
+
} catch (err) {
|
|
99
|
+
_iterator.e(err);
|
|
100
|
+
} finally {
|
|
101
|
+
_iterator.f();
|
|
102
|
+
}
|
|
103
|
+
if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) {
|
|
104
|
+
throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']);
|
|
105
|
+
}
|
|
106
|
+
// validate the optional field `balance`
|
|
107
|
+
if (data['balance']) {
|
|
108
|
+
// data not null
|
|
109
|
+
if (!!_Balance["default"].validateJSON) {
|
|
110
|
+
_Balance["default"].validateJSON(data['balance']);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
}]);
|
|
116
|
+
}();
|
|
117
|
+
AddressBalance.RequiredProperties = ["address", "balance"];
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* The wallet address.
|
|
121
|
+
* @member {String} address
|
|
122
|
+
*/
|
|
123
|
+
AddressBalance.prototype['address'] = undefined;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @member {module:model/Balance} balance
|
|
127
|
+
*/
|
|
128
|
+
AddressBalance.prototype['balance'] = undefined;
|
|
129
|
+
var _default = exports["default"] = AddressBalance;
|
|
@@ -78,6 +78,9 @@ var AddressTransferDestination = /*#__PURE__*/function () {
|
|
|
78
78
|
if (data.hasOwnProperty('change_address')) {
|
|
79
79
|
obj['change_address'] = _ApiClient["default"].convertToType(data['change_address'], 'String');
|
|
80
80
|
}
|
|
81
|
+
if (data.hasOwnProperty('change_output_type')) {
|
|
82
|
+
obj['change_output_type'] = _ApiClient["default"].convertToType(data['change_output_type'], 'String');
|
|
83
|
+
}
|
|
81
84
|
if (data.hasOwnProperty('force_internal')) {
|
|
82
85
|
obj['force_internal'] = _ApiClient["default"].convertToType(data['force_internal'], 'Boolean');
|
|
83
86
|
}
|
|
@@ -143,6 +146,10 @@ var AddressTransferDestination = /*#__PURE__*/function () {
|
|
|
143
146
|
if (data['change_address'] && !(typeof data['change_address'] === 'string' || data['change_address'] instanceof String)) {
|
|
144
147
|
throw new Error("Expected the field `change_address` to be a primitive type in the JSON string but got " + data['change_address']);
|
|
145
148
|
}
|
|
149
|
+
// ensure the json data is a string
|
|
150
|
+
if (data['change_output_type'] && !(typeof data['change_output_type'] === 'string' || data['change_output_type'] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `change_output_type` to be a primitive type in the JSON string but got " + data['change_output_type']);
|
|
152
|
+
}
|
|
146
153
|
return true;
|
|
147
154
|
}
|
|
148
155
|
}]);
|
|
@@ -170,6 +177,12 @@ AddressTransferDestination.prototype['utxo_outputs'] = undefined;
|
|
|
170
177
|
*/
|
|
171
178
|
AddressTransferDestination.prototype['change_address'] = undefined;
|
|
172
179
|
|
|
180
|
+
/**
|
|
181
|
+
* The position of the change output in the transaction's outputs. Possible values are: - `Last`: The change output is placed at the end of the transaction's outputs. - `First`: The change output is placed at the beginning of the transaction's outputs.
|
|
182
|
+
* @member {module:model/AddressTransferDestination.ChangeOutputTypeEnum} change_output_type
|
|
183
|
+
*/
|
|
184
|
+
AddressTransferDestination.prototype['change_output_type'] = undefined;
|
|
185
|
+
|
|
173
186
|
/**
|
|
174
187
|
* Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`.
|
|
175
188
|
* @member {Boolean} force_internal
|
|
@@ -181,4 +194,27 @@ AddressTransferDestination.prototype['force_internal'] = undefined;
|
|
|
181
194
|
* @member {Boolean} force_external
|
|
182
195
|
*/
|
|
183
196
|
AddressTransferDestination.prototype['force_external'] = undefined;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Allowed values for the <code>change_output_type</code> property.
|
|
200
|
+
* @enum {String}
|
|
201
|
+
* @readonly
|
|
202
|
+
*/
|
|
203
|
+
AddressTransferDestination['ChangeOutputTypeEnum'] = {
|
|
204
|
+
/**
|
|
205
|
+
* value: "Last"
|
|
206
|
+
* @const
|
|
207
|
+
*/
|
|
208
|
+
"Last": "Last",
|
|
209
|
+
/**
|
|
210
|
+
* value: "First"
|
|
211
|
+
* @const
|
|
212
|
+
*/
|
|
213
|
+
"First": "First",
|
|
214
|
+
/**
|
|
215
|
+
* value: "unknown_default_open_api"
|
|
216
|
+
* @const
|
|
217
|
+
*/
|
|
218
|
+
"unknown_default_open_api": "unknown_default_open_api"
|
|
219
|
+
};
|
|
184
220
|
var _default = exports["default"] = AddressTransferDestination;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
|
+
* Cobo Wallet as a Service 2.0
|
|
17
|
+
*
|
|
18
|
+
* Contact: help@cobo.com
|
|
19
|
+
*
|
|
20
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
21
|
+
* https://openapi-generator.tech
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Enum class ApprovalStatementStatus.
|
|
27
|
+
* @enum {}
|
|
28
|
+
* @readonly
|
|
29
|
+
*/
|
|
30
|
+
var ApprovalStatementStatus = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
function ApprovalStatementStatus() {
|
|
32
|
+
_classCallCheck(this, ApprovalStatementStatus);
|
|
33
|
+
/**
|
|
34
|
+
* value: "UnSend"
|
|
35
|
+
* @const
|
|
36
|
+
*/
|
|
37
|
+
_defineProperty(this, "UnSend", "UnSend");
|
|
38
|
+
/**
|
|
39
|
+
* value: "WaitAudit"
|
|
40
|
+
* @const
|
|
41
|
+
*/
|
|
42
|
+
_defineProperty(this, "WaitAudit", "WaitAudit");
|
|
43
|
+
/**
|
|
44
|
+
* value: "Approve"
|
|
45
|
+
* @const
|
|
46
|
+
*/
|
|
47
|
+
_defineProperty(this, "Approve", "Approve");
|
|
48
|
+
/**
|
|
49
|
+
* value: "Reject"
|
|
50
|
+
* @const
|
|
51
|
+
*/
|
|
52
|
+
_defineProperty(this, "Reject", "Reject");
|
|
53
|
+
/**
|
|
54
|
+
* value: "Invalid"
|
|
55
|
+
* @const
|
|
56
|
+
*/
|
|
57
|
+
_defineProperty(this, "Invalid", "Invalid");
|
|
58
|
+
/**
|
|
59
|
+
* value: "Timeout"
|
|
60
|
+
* @const
|
|
61
|
+
*/
|
|
62
|
+
_defineProperty(this, "Timeout", "Timeout");
|
|
63
|
+
/**
|
|
64
|
+
* value: "unknown_default_open_api"
|
|
65
|
+
* @const
|
|
66
|
+
*/
|
|
67
|
+
_defineProperty(this, "unknown_default_open_api", "unknown_default_open_api");
|
|
68
|
+
}
|
|
69
|
+
return _createClass(ApprovalStatementStatus, null, [{
|
|
70
|
+
key: "constructFromObject",
|
|
71
|
+
value:
|
|
72
|
+
/**
|
|
73
|
+
* Returns a <code>ApprovalStatementStatus</code> enum value from a Javascript object name.
|
|
74
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
75
|
+
* @return {module:model/ApprovalStatementStatus} The enum <code>ApprovalStatementStatus</code> value.
|
|
76
|
+
*/
|
|
77
|
+
function constructFromObject(object) {
|
|
78
|
+
return object;
|
|
79
|
+
}
|
|
80
|
+
}]);
|
|
81
|
+
}();
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _Balance = _interopRequireDefault(require("./Balance"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -35,7 +35,7 @@ var AssetBalance = /*#__PURE__*/function () {
|
|
|
35
35
|
* The data for asset balance information.
|
|
36
36
|
* @alias module:model/AssetBalance
|
|
37
37
|
* @param asset_id {String} (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
38
|
-
* @param balance {module:model/
|
|
38
|
+
* @param balance {module:model/Balance}
|
|
39
39
|
*/
|
|
40
40
|
function AssetBalance(asset_id, balance) {
|
|
41
41
|
_classCallCheck(this, AssetBalance);
|
|
@@ -70,7 +70,7 @@ var AssetBalance = /*#__PURE__*/function () {
|
|
|
70
70
|
obj['asset_id'] = _ApiClient["default"].convertToType(data['asset_id'], 'String');
|
|
71
71
|
}
|
|
72
72
|
if (data.hasOwnProperty('balance')) {
|
|
73
|
-
obj['balance'] =
|
|
73
|
+
obj['balance'] = _Balance["default"].constructFromObject(data['balance']);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
return obj;
|
|
@@ -106,8 +106,8 @@ var AssetBalance = /*#__PURE__*/function () {
|
|
|
106
106
|
// validate the optional field `balance`
|
|
107
107
|
if (data['balance']) {
|
|
108
108
|
// data not null
|
|
109
|
-
if (!!
|
|
110
|
-
|
|
109
|
+
if (!!_Balance["default"].validateJSON) {
|
|
110
|
+
_Balance["default"].validateJSON(data['balance']);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
return true;
|
|
@@ -123,7 +123,7 @@ AssetBalance.RequiredProperties = ["asset_id", "balance"];
|
|
|
123
123
|
AssetBalance.prototype['asset_id'] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* @member {module:model/
|
|
126
|
+
* @member {module:model/Balance} balance
|
|
127
127
|
*/
|
|
128
128
|
AssetBalance.prototype['balance'] = undefined;
|
|
129
129
|
var _default = exports["default"] = AssetBalance;
|