Skip to content

Commit 7c0fd52

Browse files
committed
Merge remote-tracking branch 'origin/main' into PIK-9340-support-solana-across-all-exchange-integrations-nlv-2
2 parents d58e960 + 2a9c612 commit 7c0fd52

File tree

88 files changed

+5800
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+5800
-248
lines changed

openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,7 @@ components:
11831183
- Astar
11841184
- Berachain
11851185
- Sui
1186+
- Babylon
11861187
example:
11871188
Ethereum
11881189
Testnet_Networks:

v2/api-validator/capability-presets/all-capabilities/capabilities.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"transfersFiat": "*",
1010
"transfersPeerAccounts": "*",
1111
"trading": "*",
12-
"liquidity": "*"
12+
"liquidity": "*",
13+
"rates": "*"
1314
}
14-
}
15+
}

v2/api-validator/src/client/SecureClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
OpenAPI,
2222
OpenAPIConfig,
2323
RampsService,
24+
RatesService,
2425
TradingService,
2526
TransfersBlockchainService,
2627
TransfersFiatService,
@@ -105,6 +106,7 @@ export class SecureClient {
105106
public readonly transfersInternal: SecureService<TransfersInternalService>;
106107
public readonly collateral: SecureService<CollateralService>;
107108
public readonly ramps: SecureService<RampsService>;
109+
public readonly rates: SecureService<RatesService>;
108110
private readonly request: BaseHttpRequest;
109111

110112
private static cachedApiComponents?: ApiComponents;
@@ -116,6 +118,7 @@ export class SecureClient {
116118
BASE: config.get('client').serverBaseUrl,
117119
});
118120

121+
this.rates = stripSecurityHeaderArgs(new RatesService(this.request));
119122
this.accounts = stripSecurityHeaderArgs(new AccountsService(this.request));
120123
this.balances = stripSecurityHeaderArgs(new BalancesService(this.request));
121124
this.capabilities = stripSecurityHeaderArgs(new CapabilitiesService(this.request));

v2/api-validator/src/client/generated/ApiClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { CollateralService } from './services/CollateralService';
1313
import { HistoricBalancesService } from './services/HistoricBalancesService';
1414
import { LiquidityService } from './services/LiquidityService';
1515
import { RampsService } from './services/RampsService';
16+
import { RatesService } from './services/RatesService';
1617
import { TradingService } from './services/TradingService';
1718
import { TransfersService } from './services/TransfersService';
1819
import { TransfersBlockchainService } from './services/TransfersBlockchainService';
@@ -31,6 +32,7 @@ export class ApiClient {
3132
public readonly historicBalances: HistoricBalancesService;
3233
public readonly liquidity: LiquidityService;
3334
public readonly ramps: RampsService;
35+
public readonly rates: RatesService;
3436
public readonly trading: TradingService;
3537
public readonly transfers: TransfersService;
3638
public readonly transfersBlockchain: TransfersBlockchainService;
@@ -60,6 +62,7 @@ export class ApiClient {
6062
this.historicBalances = new HistoricBalancesService(this.request);
6163
this.liquidity = new LiquidityService(this.request);
6264
this.ramps = new RampsService(this.request);
65+
this.rates = new RatesService(this.request);
6366
this.trading = new TradingService(this.request);
6467
this.transfers = new TransfersService(this.request);
6568
this.transfersBlockchain = new TransfersBlockchainService(this.request);

v2/api-validator/src/client/generated/index.ts

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ export type { Balances } from './models/Balances';
3535
export type { BankAccountNumber } from './models/BankAccountNumber';
3636
export { Bep20Token } from './models/Bep20Token';
3737
export { Blockchain } from './models/Blockchain';
38+
export type { BlockchainCapabilityWithOptionalAddress } from './models/BlockchainCapabilityWithOptionalAddress';
3839
export type { BlockchainWithdrawal } from './models/BlockchainWithdrawal';
3940
export type { BlockchainWithdrawalRequest } from './models/BlockchainWithdrawalRequest';
41+
export type { Bridge } from './models/Bridge';
4042
export type { BridgeCapability } from './models/BridgeCapability';
4143
export { BridgeProperties } from './models/BridgeProperties';
42-
export type { BridgeTransfer } from './models/BridgeTransfer';
44+
export type { BridgePropertiesWithPaymentInstructions } from './models/BridgePropertiesWithPaymentInstructions';
4345
export { BucketAsset } from './models/BucketAsset';
4446
export { BusinessIdentificationInfo } from './models/BusinessIdentificationInfo';
4547
export type { Capabilities } from './models/Capabilities';
@@ -71,6 +73,7 @@ export { CollateralWithdrawalTransactionStatus } from './models/CollateralWithdr
7173
export type { CommonRamp } from './models/CommonRamp';
7274
export type { CommonRampRequestProperties } from './models/CommonRampRequestProperties';
7375
export { ContractBasedToken } from './models/ContractBasedToken';
76+
export type { ConversionPairIdQueryParam } from './models/ConversionPairIdQueryParam';
7477
export { CountryAlpha2Code } from './models/CountryAlpha2Code';
7578
export type { CryptocurrencyReference } from './models/CryptocurrencyReference';
7679
export { CryptocurrencySymbol } from './models/CryptocurrencySymbol';
@@ -85,6 +88,10 @@ export type { DepositDestination } from './models/DepositDestination';
8588
export { DepositStatus } from './models/DepositStatus';
8689
export type { EntityIdPathParam } from './models/EntityIdPathParam';
8790
export { Erc20Token } from './models/Erc20Token';
91+
export type { EuropeanSEPAAddress } from './models/EuropeanSEPAAddress';
92+
export { EuropeanSEPACapability } from './models/EuropeanSEPACapability';
93+
export type { EuropeanSEPATransfer } from './models/EuropeanSEPATransfer';
94+
export type { EuropeanSEPATransferDestination } from './models/EuropeanSEPATransferDestination';
8895
export type { FiatAddress } from './models/FiatAddress';
8996
export type { FiatCapability } from './models/FiatCapability';
9097
export type { FiatTransfer } from './models/FiatTransfer';
@@ -109,23 +116,37 @@ export type { InternalWithdrawal } from './models/InternalWithdrawal';
109116
export type { InternalWithdrawalRequest } from './models/InternalWithdrawalRequest';
110117
export { LimitOrderData } from './models/LimitOrderData';
111118
export { ListOrderQueryParam } from './models/ListOrderQueryParam';
119+
export type { LocalBankTransfer } from './models/LocalBankTransfer';
120+
export type { LocalBankTransferAddress } from './models/LocalBankTransferAddress';
121+
export { LocalBankTransferCapability } from './models/LocalBankTransferCapability';
122+
export type { LocalBankTransferDestination } from './models/LocalBankTransferDestination';
123+
export { Market } from './models/Market';
112124
export type { MarketEntry } from './models/MarketEntry';
113125
export { MarketOrderData } from './models/MarketOrderData';
114126
export type { MarketTrade } from './models/MarketTrade';
127+
export { MobileMoneyAddress } from './models/MobileMoneyAddress';
128+
export { MobileMoneyCapability } from './models/MobileMoneyCapability';
129+
export type { MobileMoneyTransfer } from './models/MobileMoneyTransfer';
130+
export type { MobileMoneyTransferDestination } from './models/MobileMoneyTransferDestination';
131+
export type { MobilePhoneNumber } from './models/MobilePhoneNumber';
115132
export type { NationalCurrency } from './models/NationalCurrency';
116133
export { NationalCurrencyCode } from './models/NationalCurrencyCode';
117134
export type { NationalCurrencyCodeQueryParam } from './models/NationalCurrencyCodeQueryParam';
118135
export type { NativeCryptocurrency } from './models/NativeCryptocurrency';
136+
export type { OffRamp } from './models/OffRamp';
119137
export type { OffRampCapability } from './models/OffRampCapability';
120138
export { OffRampProperties } from './models/OffRampProperties';
121-
export type { OffRampTransfer } from './models/OffRampTransfer';
139+
export type { OffRampPropertiesWithPaymentInstructions } from './models/OffRampPropertiesWithPaymentInstructions';
140+
export type { OnRamp } from './models/OnRamp';
122141
export type { OnRampCapability } from './models/OnRampCapability';
123142
export { OnRampProperties } from './models/OnRampProperties';
124-
export type { OnRampTransfer } from './models/OnRampTransfer';
143+
export type { OnRampPropertiesWithPaymentInstructions } from './models/OnRampPropertiesWithPaymentInstructions';
125144
export type { Order } from './models/Order';
126145
export type { OrderBook } from './models/OrderBook';
146+
export type { OrderBookPairIdQueryParam } from './models/OrderBookPairIdQueryParam';
127147
export type { OrderCommonProperties } from './models/OrderCommonProperties';
128148
export type { OrderData } from './models/OrderData';
149+
export { OrderQuote } from './models/OrderQuote';
129150
export type { OrderRequest } from './models/OrderRequest';
130151
export { OrderSide } from './models/OrderSide';
131152
export { OrderStatus } from './models/OrderStatus';
@@ -145,8 +166,20 @@ export type { PeerAccountTransferDestination } from './models/PeerAccountTransfe
145166
export type { PeerAccountWithdrawal } from './models/PeerAccountWithdrawal';
146167
export type { PeerAccountWithdrawalRequest } from './models/PeerAccountWithdrawalRequest';
147168
export { PersonaIdentificationInfo } from './models/PersonaIdentificationInfo';
169+
export { PixAddress } from './models/PixAddress';
170+
export { PixCapability } from './models/PixCapability';
171+
export type { PixTransfer } from './models/PixTransfer';
172+
export type { PixTransferDestination } from './models/PixTransferDestination';
148173
export type { PositiveAmount } from './models/PositiveAmount';
149174
export type { PostalAddress } from './models/PostalAddress';
175+
export { PrefundedBlockchainCapability } from './models/PrefundedBlockchainCapability';
176+
export type { PrefundedBridgeCapability } from './models/PrefundedBridgeCapability';
177+
export { PrefundedBridgeProperties } from './models/PrefundedBridgeProperties';
178+
export { PrefundedFiatCapability } from './models/PrefundedFiatCapability';
179+
export type { PrefundedOffRampCapability } from './models/PrefundedOffRampCapability';
180+
export { PrefundedOffRampProperties } from './models/PrefundedOffRampProperties';
181+
export type { PrefundedOnRampCapability } from './models/PrefundedOnRampCapability';
182+
export { PrefundedOnRampProperties } from './models/PrefundedOnRampProperties';
150183
export type { PublicBlockchainAddress } from './models/PublicBlockchainAddress';
151184
export { PublicBlockchainCapability } from './models/PublicBlockchainCapability';
152185
export type { PublicBlockchainTransaction } from './models/PublicBlockchainTransaction';
@@ -161,8 +194,11 @@ export type { RampFees } from './models/RampFees';
161194
export type { RampFiatTransfer } from './models/RampFiatTransfer';
162195
export type { RampMethod } from './models/RampMethod';
163196
export type { RampRequest } from './models/RampRequest';
197+
export type { RampsPairIdQueryParam } from './models/RampsPairIdQueryParam';
164198
export { RampStatus } from './models/RampStatus';
199+
export type { Rate } from './models/Rate';
165200
export { RequestPart } from './models/RequestPart';
201+
export { Retry } from './models/Retry';
166202
export type { RoutingNumber } from './models/RoutingNumber';
167203
export type { SettlementDepositInstruction } from './models/SettlementDepositInstruction';
168204
export type { SettlementDepositTransaction } from './models/SettlementDepositTransaction';
@@ -211,6 +247,7 @@ export { CollateralService } from './services/CollateralService';
211247
export { HistoricBalancesService } from './services/HistoricBalancesService';
212248
export { LiquidityService } from './services/LiquidityService';
213249
export { RampsService } from './services/RampsService';
250+
export { RatesService } from './services/RatesService';
214251
export { TradingService } from './services/TradingService';
215252
export { TransfersService } from './services/TransfersService';
216253
export { TransfersBlockchainService } from './services/TransfersBlockchainService';

v2/api-validator/src/client/generated/models/ApiComponents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ export type ApiComponents = {
2121
liquidity?: AccountsSet;
2222
collateral?: AccountsSet;
2323
ramps?: AccountsSet;
24+
rates?: AccountsSet;
2425
};
2526

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
6+
import type { PublicBlockchainCapability } from './PublicBlockchainCapability';
7+
8+
export type BlockchainCapabilityWithOptionalAddress = (PublicBlockchainCapability & {
9+
address?: string;
10+
});
11+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* generated using openapi-typescript-codegen -- do no edit */
2+
/* istanbul ignore file */
3+
/* tslint:disable */
4+
/* eslint-disable */
5+
6+
import type { BridgePropertiesWithPaymentInstructions } from './BridgePropertiesWithPaymentInstructions';
7+
import type { CommonRamp } from './CommonRamp';
8+
import type { PrefundedBridgeProperties } from './PrefundedBridgeProperties';
9+
import type { PublicBlockchainTransaction } from './PublicBlockchainTransaction';
10+
11+
export type Bridge = (CommonRamp & (BridgePropertiesWithPaymentInstructions | PrefundedBridgeProperties) & {
12+
receipt?: PublicBlockchainTransaction;
13+
});
14+

v2/api-validator/src/client/generated/models/BridgeProperties.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
/* tslint:disable */
44
/* eslint-disable */
55

6+
import type { BlockchainCapabilityWithOptionalAddress } from './BlockchainCapabilityWithOptionalAddress';
67
import type { PublicBlockchainAddress } from './PublicBlockchainAddress';
7-
import type { PublicBlockchainCapability } from './PublicBlockchainCapability';
88

99
export type BridgeProperties = {
1010
type: BridgeProperties.type;
11-
from: PublicBlockchainCapability;
12-
to: PublicBlockchainCapability;
13-
recipient: PublicBlockchainAddress;
11+
from: BlockchainCapabilityWithOptionalAddress;
12+
to: PublicBlockchainAddress;
1413
};
1514

1615
export namespace BridgeProperties {

v2/api-validator/src/client/generated/models/BridgeTransfer.ts renamed to v2/api-validator/src/client/generated/models/BridgePropertiesWithPaymentInstructions.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@
44
/* eslint-disable */
55

66
import type { BridgeProperties } from './BridgeProperties';
7-
import type { CommonRamp } from './CommonRamp';
87
import type { PublicBlockchainAddress } from './PublicBlockchainAddress';
9-
import type { PublicBlockchainTransaction } from './PublicBlockchainTransaction';
108

11-
export type BridgeTransfer = (CommonRamp & BridgeProperties & {
9+
export type BridgePropertiesWithPaymentInstructions = ({
1210
paymentInstructions: PublicBlockchainAddress;
13-
payment?: PublicBlockchainTransaction;
14-
receipt?: PublicBlockchainTransaction;
15-
});
11+
} & BridgeProperties);
1612

0 commit comments

Comments
 (0)