@coinbase-sample/prime-sdk-ts 0.7.1 → 0.8.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/dist/financing/index.js +18 -0
- package/dist/futures/index.js +20 -0
- package/dist/model/DateOfBirth.js +21 -0
- package/dist/model/DetailedAddress.js +21 -0
- package/dist/model/GetFcmSettingsResponse.js +21 -0
- package/dist/model/GetUnstakingStatusResponse.js +21 -0
- package/dist/model/ListFinancingEligibleAssetsResponse.js +21 -0
- package/dist/model/ListTFObligationsResponse.js +21 -0
- package/dist/model/NaturalPersonName.js +21 -0
- package/dist/model/PreviewUnstakeRequest.js +21 -0
- package/dist/model/PreviewUnstakeResponse.js +21 -0
- package/dist/model/ProcessRequirements.js +21 -0
- package/dist/model/RewardMetadata.js +21 -0
- package/dist/model/SetFcmSettingsRequest.js +21 -0
- package/dist/model/SetFcmSettingsResponse.js +21 -0
- package/dist/model/TFAsset.js +21 -0
- package/dist/model/TFObligation.js +21 -0
- package/dist/model/TravelRuleEntry.js +21 -0
- package/dist/model/TravelRuleParty.js +21 -0
- package/dist/model/TravelRuleWalletDetails.js +21 -0
- package/dist/model/UnstakingStatus.js +21 -0
- package/dist/model/VASP.js +21 -0
- package/dist/model/ValidatorUnstakingInfo.js +21 -0
- package/dist/model/enums/CandlesGranularity.js +3 -3
- package/dist/model/enums/EstimateType.js +28 -0
- package/dist/model/enums/OrderType.js +2 -1
- package/dist/model/enums/PegOffsetType.js +31 -0
- package/dist/model/enums/RewardSubtype.js +34 -0
- package/dist/model/enums/TransactionType.js +3 -1
- package/dist/model/enums/TravelRuleStatus.js +28 -0
- package/dist/model/enums/TravelRuleWalletType.js +31 -0
- package/dist/model/enums/UnstakeType.js +28 -0
- package/dist/model/enums/UserRole.js +2 -1
- package/dist/model/enums/XMCallType.js +2 -1
- package/dist/model/enums/XMEntityCallStatus.js +2 -1
- package/dist/model/enums/index.js +14 -2
- package/dist/shared/__tests__/validation.test.js +210 -0
- package/dist/shared/validation.js +380 -0
- package/dist/staking/index.js +22 -0
- package/dist/types/activities/types.d.ts +1 -0
- package/dist/types/financing/index.d.ts +5 -1
- package/dist/types/financing/types.d.ts +7 -1
- package/dist/types/futures/index.d.ts +6 -2
- package/dist/types/futures/types.d.ts +10 -1
- package/dist/types/model/CreateOrderRequest.d.ts +8 -1
- package/dist/types/model/CreatePortfolioAddressBookEntryRequest.d.ts +6 -0
- package/dist/types/model/DateOfBirth.d.ts +24 -0
- package/dist/types/model/DetailedAddress.d.ts +28 -0
- package/dist/types/model/GetFcmSettingsResponse.d.ts +25 -0
- package/dist/types/model/GetUnstakingStatusResponse.d.ts +42 -0
- package/dist/types/model/ListFinancingEligibleAssetsResponse.d.ts +26 -0
- package/dist/types/model/ListTFObligationsResponse.d.ts +26 -0
- package/dist/types/model/NaturalPersonName.d.ts +24 -0
- package/dist/types/model/NetworkDetails.d.ts +4 -0
- package/dist/types/model/Order.d.ts +12 -0
- package/dist/types/model/OrderPreviewRequest.d.ts +7 -0
- package/dist/types/model/PreviewUnstakeRequest.d.ts +28 -0
- package/dist/types/model/PreviewUnstakeResponse.d.ts +28 -0
- package/dist/types/model/ProcessRequirements.d.ts +23 -0
- package/dist/types/model/RewardMetadata.d.ts +23 -0
- package/dist/types/model/SetFcmSettingsRequest.d.ts +25 -0
- package/dist/types/model/SetFcmSettingsResponse.d.ts +25 -0
- package/dist/types/model/TFAsset.d.ts +33 -0
- package/dist/types/model/TFObligation.d.ts +41 -0
- package/dist/types/model/Transaction.d.ts +2 -0
- package/dist/types/model/TransactionMetadata.d.ts +2 -0
- package/dist/types/model/TravelRuleEntry.d.ts +38 -0
- package/dist/types/model/TravelRuleParty.d.ts +32 -0
- package/dist/types/model/TravelRuleWalletDetails.d.ts +28 -0
- package/dist/types/model/UnstakingStatus.d.ts +45 -0
- package/dist/types/model/VASP.d.ts +27 -0
- package/dist/types/model/ValidatorUnstakingInfo.d.ts +30 -0
- package/dist/types/model/enums/CandlesGranularity.d.ts +3 -3
- package/dist/types/model/enums/EstimateType.d.ts +24 -0
- package/dist/types/model/enums/OrderType.d.ts +3 -2
- package/dist/types/model/enums/PegOffsetType.d.ts +27 -0
- package/dist/types/model/enums/RewardSubtype.d.ts +30 -0
- package/dist/types/model/enums/TransactionType.d.ts +4 -2
- package/dist/types/model/enums/TravelRuleStatus.d.ts +24 -0
- package/dist/types/model/enums/TravelRuleWalletType.d.ts +27 -0
- package/dist/types/model/enums/UnstakeType.d.ts +24 -0
- package/dist/types/model/enums/UserRole.d.ts +3 -2
- package/dist/types/model/enums/XMCallType.d.ts +3 -2
- package/dist/types/model/enums/XMEntityCallStatus.d.ts +3 -2
- package/dist/types/model/enums/index.d.ts +6 -0
- package/dist/types/model/index.d.ts +21 -0
- package/dist/types/shared/__tests__/validation.test.d.ts +1 -0
- package/dist/types/shared/validation.d.ts +176 -0
- package/dist/types/staking/index.d.ts +5 -1
- package/dist/types/staking/types.d.ts +12 -1
- package/dist/types/transactions/types.d.ts +3 -1
- package/dist/types/wallets/types.d.ts +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { ValidatorUnstakingInfo } from './ValidatorUnstakingInfo';
|
|
21
|
+
export type GetUnstakingStatusResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* The portfolio ID
|
|
24
|
+
*/
|
|
25
|
+
portfolioId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The wallet ID
|
|
28
|
+
*/
|
|
29
|
+
walletId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The wallet address
|
|
32
|
+
*/
|
|
33
|
+
walletAddress: string;
|
|
34
|
+
/**
|
|
35
|
+
* Current timestamp at time of API call
|
|
36
|
+
*/
|
|
37
|
+
currentTimestamp: Date;
|
|
38
|
+
/**
|
|
39
|
+
* List of validators with unstaking information for this wallet
|
|
40
|
+
*/
|
|
41
|
+
validators: Array<ValidatorUnstakingInfo>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { TFAsset } from './TFAsset';
|
|
21
|
+
export type ListFinancingEligibleAssetsResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* List of assets eligible for Trade Finance
|
|
24
|
+
*/
|
|
25
|
+
assets?: Array<TFAsset>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { TFObligation } from './TFObligation';
|
|
21
|
+
export type ListTFObligationsResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* The list of obligations (loans) for the entity.
|
|
24
|
+
*/
|
|
25
|
+
obligations?: Array<TFObligation>;
|
|
26
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type NaturalPersonName = {
|
|
21
|
+
firstName?: string;
|
|
22
|
+
middleName?: string;
|
|
23
|
+
lastName?: string;
|
|
24
|
+
};
|
|
@@ -52,4 +52,8 @@ export type NetworkDetails = {
|
|
|
52
52
|
* Base URL to our recommended block explorer (crypto only)
|
|
53
53
|
*/
|
|
54
54
|
networkLink?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Indicates the symbol that can be used to query other endpoints, related to transactions, wallets, and activities, to get information particularly for this asset on the network
|
|
57
|
+
*/
|
|
58
|
+
networkScopedSymbol?: string;
|
|
55
59
|
};
|
|
@@ -140,4 +140,16 @@ export type Order = {
|
|
|
140
140
|
* The maximum order size that will show up on venue order books (in base currency).
|
|
141
141
|
*/
|
|
142
142
|
displayBaseSize?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The peg offset type for PEG orders (PRICE, BASIS_POINTS, or CUMULATIVE_DEPTH_IN_BASE_UNITS)
|
|
145
|
+
*/
|
|
146
|
+
pegOffsetType?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The offset value for PEG orders
|
|
149
|
+
*/
|
|
150
|
+
offset?: string;
|
|
151
|
+
/**
|
|
152
|
+
* The wig (would if good) level for PEG orders - best price opposite to limit_price
|
|
153
|
+
*/
|
|
154
|
+
wigLevel?: string;
|
|
143
155
|
};
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { OrderSide } from './enums/OrderSide';
|
|
21
21
|
import { OrderType } from './enums/OrderType';
|
|
22
|
+
import { PegOffsetType } from './enums/PegOffsetType';
|
|
22
23
|
import { TimeInForceType } from './enums/TimeInForceType';
|
|
23
24
|
export type OrderPreviewRequest = {
|
|
24
25
|
productId: string;
|
|
@@ -46,4 +47,10 @@ export type OrderPreviewRequest = {
|
|
|
46
47
|
* The maximum order size that will show up on venue order books (in base currency).
|
|
47
48
|
*/
|
|
48
49
|
displayBaseSize?: string;
|
|
50
|
+
pegOffsetType?: PegOffsetType;
|
|
51
|
+
offset?: string;
|
|
52
|
+
/**
|
|
53
|
+
* next: 21
|
|
54
|
+
*/
|
|
55
|
+
wigLevel?: string;
|
|
49
56
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* PreviewUnstakeRequest represents a request to preview an unstaking operation.
|
|
22
|
+
*/
|
|
23
|
+
export type PreviewUnstakeRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* Amount to preview unstaking
|
|
26
|
+
*/
|
|
27
|
+
amount: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* PreviewUnstakeResponse contains the response data from previewing an unstaking operation.
|
|
22
|
+
*/
|
|
23
|
+
export type PreviewUnstakeResponse = {
|
|
24
|
+
/**
|
|
25
|
+
* Estimated amount that would be unstaked
|
|
26
|
+
*/
|
|
27
|
+
estimatedAmount: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { TravelRuleStatus } from './enums/TravelRuleStatus';
|
|
21
|
+
export type ProcessRequirements = {
|
|
22
|
+
travelRuleStatus?: TravelRuleStatus;
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { RewardSubtype } from './enums/RewardSubtype';
|
|
21
|
+
export type RewardMetadata = {
|
|
22
|
+
subtype?: RewardSubtype;
|
|
23
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type SetFcmSettingsRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* Target CFM Excess amount to set. Only non-negative number is allowed
|
|
23
|
+
*/
|
|
24
|
+
targetDerivativesExcess?: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type SetFcmSettingsResponse = {
|
|
21
|
+
/**
|
|
22
|
+
* Success
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type TFAsset = {
|
|
21
|
+
/**
|
|
22
|
+
* The asset symbol
|
|
23
|
+
*/
|
|
24
|
+
symbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The asset adjustment factor for Trade Finance
|
|
27
|
+
*/
|
|
28
|
+
assetAdjustment?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The liability adjustment factor for Trade Finance
|
|
31
|
+
*/
|
|
32
|
+
liabilityAdjustment?: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
export type TFObligation = {
|
|
21
|
+
/**
|
|
22
|
+
* The unique ID of the portfolio
|
|
23
|
+
*/
|
|
24
|
+
portfolioId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The currency symbol
|
|
27
|
+
*/
|
|
28
|
+
symbol?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Current amount due
|
|
31
|
+
*/
|
|
32
|
+
amountDue?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Loan notional amount
|
|
35
|
+
*/
|
|
36
|
+
notionalAmount?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Settlement due date
|
|
39
|
+
*/
|
|
40
|
+
dueDate?: string;
|
|
41
|
+
};
|
|
@@ -21,6 +21,7 @@ import { AssetChange } from './AssetChange';
|
|
|
21
21
|
import { EstimatedNetworkFees } from './EstimatedNetworkFees';
|
|
22
22
|
import { Network } from './Network';
|
|
23
23
|
import { OnchainTransactionDetails } from './OnchainTransactionDetails';
|
|
24
|
+
import { ProcessRequirements } from './ProcessRequirements';
|
|
24
25
|
import { TransactionMetadata } from './TransactionMetadata';
|
|
25
26
|
import { TransactionStatus } from './enums/TransactionStatus';
|
|
26
27
|
import { TransactionType } from './enums/TransactionType';
|
|
@@ -98,4 +99,5 @@ export type Transaction = {
|
|
|
98
99
|
idempotencyKey?: string;
|
|
99
100
|
onchainDetails?: OnchainTransactionDetails;
|
|
100
101
|
networkInfo?: Network;
|
|
102
|
+
processRequirements?: ProcessRequirements;
|
|
101
103
|
};
|
|
@@ -18,8 +18,10 @@
|
|
|
18
18
|
* Do not edit the class manually.
|
|
19
19
|
*/
|
|
20
20
|
import { MatchMetadata } from './MatchMetadata';
|
|
21
|
+
import { RewardMetadata } from './RewardMetadata';
|
|
21
22
|
import { Web3TransactionMetadata } from './Web3TransactionMetadata';
|
|
22
23
|
export type TransactionMetadata = {
|
|
23
24
|
matchMetadata?: MatchMetadata;
|
|
24
25
|
web3TransactionMetadata?: Web3TransactionMetadata;
|
|
26
|
+
rewardMetadata?: RewardMetadata;
|
|
25
27
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { BlockchainAddress } from './BlockchainAddress';
|
|
21
|
+
import { TravelRuleParty } from './TravelRuleParty';
|
|
22
|
+
import { TravelRuleWalletDetails } from './TravelRuleWalletDetails';
|
|
23
|
+
import { VASP } from './VASP';
|
|
24
|
+
/**
|
|
25
|
+
* Travel Rule Entry for sending addresses.
|
|
26
|
+
*/
|
|
27
|
+
export type TravelRuleEntry = {
|
|
28
|
+
id?: string;
|
|
29
|
+
blockchainAddress?: BlockchainAddress;
|
|
30
|
+
originator?: TravelRuleParty;
|
|
31
|
+
beneficiary?: TravelRuleParty;
|
|
32
|
+
vasp?: VASP;
|
|
33
|
+
walletDetails?: TravelRuleWalletDetails;
|
|
34
|
+
transferPurpose?: string;
|
|
35
|
+
isSelfCertified?: boolean;
|
|
36
|
+
isIntermediary?: boolean;
|
|
37
|
+
isSelf?: boolean;
|
|
38
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { DateOfBirth } from './DateOfBirth';
|
|
21
|
+
import { DetailedAddress } from './DetailedAddress';
|
|
22
|
+
import { NaturalPersonName } from './NaturalPersonName';
|
|
23
|
+
/**
|
|
24
|
+
* Represents one of the Transmittal Parties involved in a Travel Rule transfer, either originator or beneficiary.
|
|
25
|
+
*/
|
|
26
|
+
export type TravelRuleParty = {
|
|
27
|
+
name?: string;
|
|
28
|
+
detailedAddress?: DetailedAddress;
|
|
29
|
+
naturalPersonName?: NaturalPersonName;
|
|
30
|
+
dateOfBirth?: DateOfBirth;
|
|
31
|
+
telephoneNumber?: string;
|
|
32
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { BlockchainAddress } from './BlockchainAddress';
|
|
21
|
+
import { TravelRuleWalletType } from './enums/TravelRuleWalletType';
|
|
22
|
+
/**
|
|
23
|
+
* Details about the custody wallet used in the transfer.
|
|
24
|
+
*/
|
|
25
|
+
export type TravelRuleWalletDetails = {
|
|
26
|
+
walletType?: TravelRuleWalletType;
|
|
27
|
+
walletAddress?: BlockchainAddress;
|
|
28
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { EstimateType } from './enums/EstimateType';
|
|
21
|
+
import { UnstakeType } from './enums/UnstakeType';
|
|
22
|
+
export type UnstakingStatus = {
|
|
23
|
+
/**
|
|
24
|
+
* Amount being unstaked (whole amount, e.g., 16 ETH)
|
|
25
|
+
*/
|
|
26
|
+
amount: string;
|
|
27
|
+
unstakeType?: UnstakeType;
|
|
28
|
+
/**
|
|
29
|
+
* Estimated date when unstaking will complete (ISO 8601 format)
|
|
30
|
+
*/
|
|
31
|
+
finishingAt?: Date;
|
|
32
|
+
/**
|
|
33
|
+
* Estimated hours until this unstaking request completes
|
|
34
|
+
*/
|
|
35
|
+
remainingHours?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Timestamp when the unstake request was originally created
|
|
38
|
+
*/
|
|
39
|
+
requestedAt?: Date;
|
|
40
|
+
estimateType: EstimateType;
|
|
41
|
+
/**
|
|
42
|
+
* Detailed explanation of the estimate status for display to users.
|
|
43
|
+
*/
|
|
44
|
+
estimateDescription: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Virtual Asset Service Provider (VASP).
|
|
22
|
+
*/
|
|
23
|
+
export type VASP = {
|
|
24
|
+
id?: string;
|
|
25
|
+
countryCode?: string;
|
|
26
|
+
leiNumber?: string;
|
|
27
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025-present Coinbase Global, Inc.
|
|
3
|
+
*
|
|
4
|
+
* This file is generated by Openapi Generator https://github.com/openapitools/openapi-generator
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* Do not edit the class manually.
|
|
19
|
+
*/
|
|
20
|
+
import { UnstakingStatus } from './UnstakingStatus';
|
|
21
|
+
export type ValidatorUnstakingInfo = {
|
|
22
|
+
/**
|
|
23
|
+
* The validator address (public key)
|
|
24
|
+
*/
|
|
25
|
+
validatorAddress: string;
|
|
26
|
+
/**
|
|
27
|
+
* List of active unstaking requests for this validator
|
|
28
|
+
*/
|
|
29
|
+
statuses: Array<UnstakingStatus>;
|
|
30
|
+
};
|
|
@@ -24,7 +24,7 @@ export declare enum CandlesGranularity {
|
|
|
24
24
|
OneHour = "ONE_HOUR",
|
|
25
25
|
SixHours = "SIX_HOURS",
|
|
26
26
|
OneDay = "ONE_DAY",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
ThirtyMinutes = "THIRTY_MINUTES",
|
|
28
|
+
TwoHours = "TWO_HOURS",
|
|
29
|
+
FourHours = "FOUR_HOURS"
|
|
30
30
|
}
|