@dynamic-labs/sdk-api 0.189.0 → 0.190.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/package.json +1 -1
- package/src/apis/SDKApi.cjs +117 -2
- package/src/apis/SDKApi.d.ts +54 -3
- package/src/apis/SDKApi.js +117 -2
- package/src/index.cjs +20 -0
- package/src/index.js +5 -0
- package/src/models/FlowSourceTokenOption.d.ts +1 -1
- package/src/models/FlowSourceTokenOptionToken.d.ts +1 -1
- package/src/models/FlowSourceTokenOptionsResponse.d.ts +1 -1
- package/src/models/SwapCatalogChain.cjs +40 -0
- package/src/models/SwapCatalogChain.d.ts +46 -0
- package/src/models/SwapCatalogChain.js +34 -0
- package/src/models/SwapCatalogToken.cjs +50 -0
- package/src/models/SwapCatalogToken.d.ts +76 -0
- package/src/models/SwapCatalogToken.js +44 -0
- package/src/models/SwapCatalogTokenAllOf.cjs +33 -0
- package/src/models/SwapCatalogTokenAllOf.d.ts +28 -0
- package/src/models/SwapCatalogTokenAllOf.js +27 -0
- package/src/models/SwapChainsResponse.cjs +33 -0
- package/src/models/SwapChainsResponse.d.ts +28 -0
- package/src/models/SwapChainsResponse.js +27 -0
- package/src/models/SwapTokensResponse.cjs +33 -0
- package/src/models/SwapTokensResponse.d.ts +28 -0
- package/src/models/SwapTokensResponse.js +27 -0
- package/src/models/index.d.ts +5 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -364,10 +364,12 @@ require('../models/SubscriptionAdvancedScopeEnum.cjs');
|
|
|
364
364
|
require('../models/SubscriptionFreeScopeEnum.cjs');
|
|
365
365
|
var SupportedOfframpsResponse = require('../models/SupportedOfframpsResponse.cjs');
|
|
366
366
|
var SupportedOnrampsResponse = require('../models/SupportedOnrampsResponse.cjs');
|
|
367
|
+
var SwapChainsResponse = require('../models/SwapChainsResponse.cjs');
|
|
367
368
|
var SwapQuoteRequest = require('../models/SwapQuoteRequest.cjs');
|
|
368
369
|
var SwapQuoteResponse = require('../models/SwapQuoteResponse.cjs');
|
|
369
370
|
var SwapStatusRequest = require('../models/SwapStatusRequest.cjs');
|
|
370
371
|
var SwapStatusResponse = require('../models/SwapStatusResponse.cjs');
|
|
372
|
+
var SwapTokensResponse = require('../models/SwapTokensResponse.cjs');
|
|
371
373
|
var TelegramPostRequest = require('../models/TelegramPostRequest.cjs');
|
|
372
374
|
require('../models/TokenScope.cjs');
|
|
373
375
|
var TransactionFeeEstimateRequest = require('../models/TransactionFeeEstimateRequest.cjs');
|
|
@@ -4962,7 +4964,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4962
4964
|
await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
|
|
4963
4965
|
}
|
|
4964
4966
|
/**
|
|
4965
|
-
* Returns the
|
|
4967
|
+
* Returns the tokens a payer can fund the flow with for the given source type, grouped by network. Supports deposit_address and wallet.
|
|
4966
4968
|
* Get the supported tokens for a flow source
|
|
4967
4969
|
*/
|
|
4968
4970
|
async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
|
|
@@ -4989,7 +4991,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
4989
4991
|
return new runtime.JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponse.FlowSourceTokenOptionsResponseFromJSON(jsonValue));
|
|
4990
4992
|
}
|
|
4991
4993
|
/**
|
|
4992
|
-
* Returns the
|
|
4994
|
+
* Returns the tokens a payer can fund the flow with for the given source type, grouped by network. Supports deposit_address and wallet.
|
|
4993
4995
|
* Get the supported tokens for a flow source
|
|
4994
4996
|
*/
|
|
4995
4997
|
async getFlowSourceTokenOptions(requestParameters, initOverrides) {
|
|
@@ -5697,6 +5699,119 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5697
5699
|
const response = await this.getSupportedOnrampsRaw(requestParameters, initOverrides);
|
|
5698
5700
|
return await response.value();
|
|
5699
5701
|
}
|
|
5702
|
+
/**
|
|
5703
|
+
* Returns the chains the environment can swap on, from the enabled swap providers\' token catalogs.
|
|
5704
|
+
* Get the chains available for swaps
|
|
5705
|
+
*/
|
|
5706
|
+
async getSwapChainsRaw(requestParameters, initOverrides) {
|
|
5707
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5708
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapChains.');
|
|
5709
|
+
}
|
|
5710
|
+
const queryParameters = {};
|
|
5711
|
+
const headerParameters = {};
|
|
5712
|
+
const response = await this.request({
|
|
5713
|
+
path: `/sdk/{environmentId}/swap/chains`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5714
|
+
method: 'GET',
|
|
5715
|
+
headers: headerParameters,
|
|
5716
|
+
query: queryParameters,
|
|
5717
|
+
}, initOverrides);
|
|
5718
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SwapChainsResponse.SwapChainsResponseFromJSON(jsonValue));
|
|
5719
|
+
}
|
|
5720
|
+
/**
|
|
5721
|
+
* Returns the chains the environment can swap on, from the enabled swap providers\' token catalogs.
|
|
5722
|
+
* Get the chains available for swaps
|
|
5723
|
+
*/
|
|
5724
|
+
async getSwapChains(requestParameters, initOverrides) {
|
|
5725
|
+
const response = await this.getSwapChainsRaw(requestParameters, initOverrides);
|
|
5726
|
+
return await response.value();
|
|
5727
|
+
}
|
|
5728
|
+
/**
|
|
5729
|
+
* Options call for this endpoint
|
|
5730
|
+
*/
|
|
5731
|
+
async getSwapChainsOptionsRaw(requestParameters, initOverrides) {
|
|
5732
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5733
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapChainsOptions.');
|
|
5734
|
+
}
|
|
5735
|
+
const queryParameters = {};
|
|
5736
|
+
const headerParameters = {};
|
|
5737
|
+
const response = await this.request({
|
|
5738
|
+
path: `/sdk/{environmentId}/swap/chains`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5739
|
+
method: 'OPTIONS',
|
|
5740
|
+
headers: headerParameters,
|
|
5741
|
+
query: queryParameters,
|
|
5742
|
+
}, initOverrides);
|
|
5743
|
+
return new runtime.VoidApiResponse(response);
|
|
5744
|
+
}
|
|
5745
|
+
/**
|
|
5746
|
+
* Options call for this endpoint
|
|
5747
|
+
*/
|
|
5748
|
+
async getSwapChainsOptions(requestParameters, initOverrides) {
|
|
5749
|
+
await this.getSwapChainsOptionsRaw(requestParameters, initOverrides);
|
|
5750
|
+
}
|
|
5751
|
+
/**
|
|
5752
|
+
* Returns the tokens swappable on one chain, from the enabled swap providers\' token catalogs, optionally filtered by a search term.
|
|
5753
|
+
* Get the tokens available for swaps on a chain
|
|
5754
|
+
*/
|
|
5755
|
+
async getSwapTokensRaw(requestParameters, initOverrides) {
|
|
5756
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5757
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapTokens.');
|
|
5758
|
+
}
|
|
5759
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
5760
|
+
throw new runtime.RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getSwapTokens.');
|
|
5761
|
+
}
|
|
5762
|
+
if (requestParameters.chainId === null || requestParameters.chainId === undefined) {
|
|
5763
|
+
throw new runtime.RequiredError('chainId', 'Required parameter requestParameters.chainId was null or undefined when calling getSwapTokens.');
|
|
5764
|
+
}
|
|
5765
|
+
const queryParameters = {};
|
|
5766
|
+
if (requestParameters.chainName !== undefined) {
|
|
5767
|
+
queryParameters['chainName'] = requestParameters.chainName;
|
|
5768
|
+
}
|
|
5769
|
+
if (requestParameters.chainId !== undefined) {
|
|
5770
|
+
queryParameters['chainId'] = requestParameters.chainId;
|
|
5771
|
+
}
|
|
5772
|
+
if (requestParameters.search !== undefined) {
|
|
5773
|
+
queryParameters['search'] = requestParameters.search;
|
|
5774
|
+
}
|
|
5775
|
+
const headerParameters = {};
|
|
5776
|
+
const response = await this.request({
|
|
5777
|
+
path: `/sdk/{environmentId}/swap/tokens`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5778
|
+
method: 'GET',
|
|
5779
|
+
headers: headerParameters,
|
|
5780
|
+
query: queryParameters,
|
|
5781
|
+
}, initOverrides);
|
|
5782
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SwapTokensResponse.SwapTokensResponseFromJSON(jsonValue));
|
|
5783
|
+
}
|
|
5784
|
+
/**
|
|
5785
|
+
* Returns the tokens swappable on one chain, from the enabled swap providers\' token catalogs, optionally filtered by a search term.
|
|
5786
|
+
* Get the tokens available for swaps on a chain
|
|
5787
|
+
*/
|
|
5788
|
+
async getSwapTokens(requestParameters, initOverrides) {
|
|
5789
|
+
const response = await this.getSwapTokensRaw(requestParameters, initOverrides);
|
|
5790
|
+
return await response.value();
|
|
5791
|
+
}
|
|
5792
|
+
/**
|
|
5793
|
+
* Options call for this endpoint
|
|
5794
|
+
*/
|
|
5795
|
+
async getSwapTokensOptionsRaw(requestParameters, initOverrides) {
|
|
5796
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5797
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapTokensOptions.');
|
|
5798
|
+
}
|
|
5799
|
+
const queryParameters = {};
|
|
5800
|
+
const headerParameters = {};
|
|
5801
|
+
const response = await this.request({
|
|
5802
|
+
path: `/sdk/{environmentId}/swap/tokens`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5803
|
+
method: 'OPTIONS',
|
|
5804
|
+
headers: headerParameters,
|
|
5805
|
+
query: queryParameters,
|
|
5806
|
+
}, initOverrides);
|
|
5807
|
+
return new runtime.VoidApiResponse(response);
|
|
5808
|
+
}
|
|
5809
|
+
/**
|
|
5810
|
+
* Options call for this endpoint
|
|
5811
|
+
*/
|
|
5812
|
+
async getSwapTokensOptions(requestParameters, initOverrides) {
|
|
5813
|
+
await this.getSwapTokensOptionsRaw(requestParameters, initOverrides);
|
|
5814
|
+
}
|
|
5700
5815
|
/**
|
|
5701
5816
|
* Returns the HTML content for the Telegram login widget.
|
|
5702
5817
|
* Get Telegram login widget HTML
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMemberInviteListResponse, BusinessAccountMemberInviteReceipt, BusinessAccountMutationVersion, BusinessAccountPolicyLayerResponse, BusinessAccountPolicyLayerUpdateRequest, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, CancelBusinessAccountMemberInviteSdkRequest, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RegisteredRequestSigners, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WaasWalletSelfPolicyLayerUpdateRequest, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
13
|
+
import { AcceptBusinessAccountInviteResponse, Account, AddBusinessAccountMemberSdkRequest, AddBusinessAccountSignerSdkRequest, AleoCuratedPricesResponse, AleoProverEncryptedRequest, AleoProverPubkeyResponse, ApproveBusinessAccountProposalSdkRequest, AttachSourceRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountActivityExport, BusinessAccountActivityExportRequest, BusinessAccountActivityResponse, BusinessAccountDetail, BusinessAccountGovernanceResponse, BusinessAccountInviteListResponse, BusinessAccountList, BusinessAccountMember, BusinessAccountMemberCreationResult, BusinessAccountMemberInviteListResponse, BusinessAccountMemberInviteReceipt, BusinessAccountMutationVersion, BusinessAccountPolicyLayerResponse, BusinessAccountPolicyLayerUpdateRequest, BusinessAccountProposal, BusinessAccountProposalStatus, BusinessAccountRolesResponse, BusinessAccountSigningProposal, CancelBusinessAccountMemberInviteSdkRequest, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateBusinessAccountSdkRequest, CreateBusinessAccountSigningProposalSdkRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DefineBusinessAccountRoleSdkRequest, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteBusinessAccountRoleSdkRequest, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, Flow, FlowAttachSourceRequest, FlowExchangesResponse, FlowPrepareSigningRequest, FlowQuoteRequest, FlowRecordBroadcastRequest, FlowSourceResponse, FlowSourceTokenOptionsResponse, FlowSourceTypeEnum, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetSVMSponsorAddressResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, InlineResponse2008, InlineResponse2009, JwksResponse, LinkBusinessAccountWalletSdkRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MoonPayCurrenciesResponse, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RealtimeAuthTokenResponse, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, RegisteredRequestSigners, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, ScreenTransactionRequest, ScreenTransactionResponse, ScreeningPolicyScopeEnum, SdkSettingsRequest, SdkUser, SetBusinessAccountGovernanceSdkRequest, SignAleoRequestWithWaasRequest, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SponsorEVMTransactionRequest, SponsorEVMTransactionResponse, SponsorSVMTransactionRequest, SponsorSVMTransactionResponse, SsoProviderCheckRequest, SsoProviderCheckResponse, StepUpCheckRequest, StepUpCheckResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, SwapChainsResponse, SwapQuoteRequest, SwapQuoteResponse, SwapStatusRequest, SwapStatusResponse, SwapTokensResponse, TelegramPostRequest, TokenBalance, TransactionFeeEstimateRequest, TransactionFeeEstimateResponse, TransferBusinessAccountOwnershipSdkRequest, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasSignAndBroadcastRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSignerPolicyLayerUpdateRequest, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasTransactionBroadcast, WaasTransactionBroadcastRequest, WaasTransactionBroadcastResponse, WaasWalletSelfPolicyLayerUpdateRequest, WalletSanctionsResponse, WalletTransactionsResponse, YieldEarnings, YieldVaultActionRequest, YieldVaultActionResponse, YieldVaultClaimRequest, YieldVaultDetails, YieldVaultListResponse, YieldVaultPosition, YieldVaultPositionPerformance, YieldVaultRewardsResponse } from '../models';
|
|
14
14
|
export interface AcceptBusinessAccountInviteRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
inviteId: string;
|
|
@@ -691,6 +691,21 @@ export interface GetSupportedOnrampsRequest {
|
|
|
691
691
|
currency?: string;
|
|
692
692
|
merchantName?: string;
|
|
693
693
|
}
|
|
694
|
+
export interface GetSwapChainsRequest {
|
|
695
|
+
environmentId: string;
|
|
696
|
+
}
|
|
697
|
+
export interface GetSwapChainsOptionsRequest {
|
|
698
|
+
environmentId: string;
|
|
699
|
+
}
|
|
700
|
+
export interface GetSwapTokensRequest {
|
|
701
|
+
environmentId: string;
|
|
702
|
+
chainName: ChainEnum;
|
|
703
|
+
chainId: string;
|
|
704
|
+
search?: string;
|
|
705
|
+
}
|
|
706
|
+
export interface GetSwapTokensOptionsRequest {
|
|
707
|
+
environmentId: string;
|
|
708
|
+
}
|
|
694
709
|
export interface GetTelegramAuthRequest {
|
|
695
710
|
environmentId: string;
|
|
696
711
|
state: string;
|
|
@@ -3195,12 +3210,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3195
3210
|
*/
|
|
3196
3211
|
getFlowQuoteOptions(requestParameters: GetFlowQuoteOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3197
3212
|
/**
|
|
3198
|
-
* Returns the
|
|
3213
|
+
* Returns the tokens a payer can fund the flow with for the given source type, grouped by network. Supports deposit_address and wallet.
|
|
3199
3214
|
* Get the supported tokens for a flow source
|
|
3200
3215
|
*/
|
|
3201
3216
|
getFlowSourceTokenOptionsRaw(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<FlowSourceTokenOptionsResponse>>;
|
|
3202
3217
|
/**
|
|
3203
|
-
* Returns the
|
|
3218
|
+
* Returns the tokens a payer can fund the flow with for the given source type, grouped by network. Supports deposit_address and wallet.
|
|
3204
3219
|
* Get the supported tokens for a flow source
|
|
3205
3220
|
*/
|
|
3206
3221
|
getFlowSourceTokenOptions(requestParameters: GetFlowSourceTokenOptionsRequest, initOverrides?: RequestInit): Promise<FlowSourceTokenOptionsResponse>;
|
|
@@ -3422,6 +3437,42 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
3422
3437
|
* Get enabled onramps for the environment
|
|
3423
3438
|
*/
|
|
3424
3439
|
getSupportedOnramps(requestParameters: GetSupportedOnrampsRequest, initOverrides?: RequestInit): Promise<SupportedOnrampsResponse>;
|
|
3440
|
+
/**
|
|
3441
|
+
* Returns the chains the environment can swap on, from the enabled swap providers\' token catalogs.
|
|
3442
|
+
* Get the chains available for swaps
|
|
3443
|
+
*/
|
|
3444
|
+
getSwapChainsRaw(requestParameters: GetSwapChainsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SwapChainsResponse>>;
|
|
3445
|
+
/**
|
|
3446
|
+
* Returns the chains the environment can swap on, from the enabled swap providers\' token catalogs.
|
|
3447
|
+
* Get the chains available for swaps
|
|
3448
|
+
*/
|
|
3449
|
+
getSwapChains(requestParameters: GetSwapChainsRequest, initOverrides?: RequestInit): Promise<SwapChainsResponse>;
|
|
3450
|
+
/**
|
|
3451
|
+
* Options call for this endpoint
|
|
3452
|
+
*/
|
|
3453
|
+
getSwapChainsOptionsRaw(requestParameters: GetSwapChainsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3454
|
+
/**
|
|
3455
|
+
* Options call for this endpoint
|
|
3456
|
+
*/
|
|
3457
|
+
getSwapChainsOptions(requestParameters: GetSwapChainsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3458
|
+
/**
|
|
3459
|
+
* Returns the tokens swappable on one chain, from the enabled swap providers\' token catalogs, optionally filtered by a search term.
|
|
3460
|
+
* Get the tokens available for swaps on a chain
|
|
3461
|
+
*/
|
|
3462
|
+
getSwapTokensRaw(requestParameters: GetSwapTokensRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<SwapTokensResponse>>;
|
|
3463
|
+
/**
|
|
3464
|
+
* Returns the tokens swappable on one chain, from the enabled swap providers\' token catalogs, optionally filtered by a search term.
|
|
3465
|
+
* Get the tokens available for swaps on a chain
|
|
3466
|
+
*/
|
|
3467
|
+
getSwapTokens(requestParameters: GetSwapTokensRequest, initOverrides?: RequestInit): Promise<SwapTokensResponse>;
|
|
3468
|
+
/**
|
|
3469
|
+
* Options call for this endpoint
|
|
3470
|
+
*/
|
|
3471
|
+
getSwapTokensOptionsRaw(requestParameters: GetSwapTokensOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
3472
|
+
/**
|
|
3473
|
+
* Options call for this endpoint
|
|
3474
|
+
*/
|
|
3475
|
+
getSwapTokensOptions(requestParameters: GetSwapTokensOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
3425
3476
|
/**
|
|
3426
3477
|
* Returns the HTML content for the Telegram login widget.
|
|
3427
3478
|
* Get Telegram login widget HTML
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -360,10 +360,12 @@ import '../models/SubscriptionAdvancedScopeEnum.js';
|
|
|
360
360
|
import '../models/SubscriptionFreeScopeEnum.js';
|
|
361
361
|
import { SupportedOfframpsResponseFromJSON } from '../models/SupportedOfframpsResponse.js';
|
|
362
362
|
import { SupportedOnrampsResponseFromJSON } from '../models/SupportedOnrampsResponse.js';
|
|
363
|
+
import { SwapChainsResponseFromJSON } from '../models/SwapChainsResponse.js';
|
|
363
364
|
import { SwapQuoteRequestToJSON } from '../models/SwapQuoteRequest.js';
|
|
364
365
|
import { SwapQuoteResponseFromJSON } from '../models/SwapQuoteResponse.js';
|
|
365
366
|
import { SwapStatusRequestToJSON } from '../models/SwapStatusRequest.js';
|
|
366
367
|
import { SwapStatusResponseFromJSON } from '../models/SwapStatusResponse.js';
|
|
368
|
+
import { SwapTokensResponseFromJSON } from '../models/SwapTokensResponse.js';
|
|
367
369
|
import { TelegramPostRequestToJSON } from '../models/TelegramPostRequest.js';
|
|
368
370
|
import '../models/TokenScope.js';
|
|
369
371
|
import { TransactionFeeEstimateRequestToJSON } from '../models/TransactionFeeEstimateRequest.js';
|
|
@@ -4958,7 +4960,7 @@ class SDKApi extends BaseAPI {
|
|
|
4958
4960
|
await this.getFlowQuoteOptionsRaw(requestParameters, initOverrides);
|
|
4959
4961
|
}
|
|
4960
4962
|
/**
|
|
4961
|
-
* Returns the
|
|
4963
|
+
* Returns the tokens a payer can fund the flow with for the given source type, grouped by network. Supports deposit_address and wallet.
|
|
4962
4964
|
* Get the supported tokens for a flow source
|
|
4963
4965
|
*/
|
|
4964
4966
|
async getFlowSourceTokenOptionsRaw(requestParameters, initOverrides) {
|
|
@@ -4985,7 +4987,7 @@ class SDKApi extends BaseAPI {
|
|
|
4985
4987
|
return new JSONApiResponse(response, (jsonValue) => FlowSourceTokenOptionsResponseFromJSON(jsonValue));
|
|
4986
4988
|
}
|
|
4987
4989
|
/**
|
|
4988
|
-
* Returns the
|
|
4990
|
+
* Returns the tokens a payer can fund the flow with for the given source type, grouped by network. Supports deposit_address and wallet.
|
|
4989
4991
|
* Get the supported tokens for a flow source
|
|
4990
4992
|
*/
|
|
4991
4993
|
async getFlowSourceTokenOptions(requestParameters, initOverrides) {
|
|
@@ -5693,6 +5695,119 @@ class SDKApi extends BaseAPI {
|
|
|
5693
5695
|
const response = await this.getSupportedOnrampsRaw(requestParameters, initOverrides);
|
|
5694
5696
|
return await response.value();
|
|
5695
5697
|
}
|
|
5698
|
+
/**
|
|
5699
|
+
* Returns the chains the environment can swap on, from the enabled swap providers\' token catalogs.
|
|
5700
|
+
* Get the chains available for swaps
|
|
5701
|
+
*/
|
|
5702
|
+
async getSwapChainsRaw(requestParameters, initOverrides) {
|
|
5703
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5704
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapChains.');
|
|
5705
|
+
}
|
|
5706
|
+
const queryParameters = {};
|
|
5707
|
+
const headerParameters = {};
|
|
5708
|
+
const response = await this.request({
|
|
5709
|
+
path: `/sdk/{environmentId}/swap/chains`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5710
|
+
method: 'GET',
|
|
5711
|
+
headers: headerParameters,
|
|
5712
|
+
query: queryParameters,
|
|
5713
|
+
}, initOverrides);
|
|
5714
|
+
return new JSONApiResponse(response, (jsonValue) => SwapChainsResponseFromJSON(jsonValue));
|
|
5715
|
+
}
|
|
5716
|
+
/**
|
|
5717
|
+
* Returns the chains the environment can swap on, from the enabled swap providers\' token catalogs.
|
|
5718
|
+
* Get the chains available for swaps
|
|
5719
|
+
*/
|
|
5720
|
+
async getSwapChains(requestParameters, initOverrides) {
|
|
5721
|
+
const response = await this.getSwapChainsRaw(requestParameters, initOverrides);
|
|
5722
|
+
return await response.value();
|
|
5723
|
+
}
|
|
5724
|
+
/**
|
|
5725
|
+
* Options call for this endpoint
|
|
5726
|
+
*/
|
|
5727
|
+
async getSwapChainsOptionsRaw(requestParameters, initOverrides) {
|
|
5728
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5729
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapChainsOptions.');
|
|
5730
|
+
}
|
|
5731
|
+
const queryParameters = {};
|
|
5732
|
+
const headerParameters = {};
|
|
5733
|
+
const response = await this.request({
|
|
5734
|
+
path: `/sdk/{environmentId}/swap/chains`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5735
|
+
method: 'OPTIONS',
|
|
5736
|
+
headers: headerParameters,
|
|
5737
|
+
query: queryParameters,
|
|
5738
|
+
}, initOverrides);
|
|
5739
|
+
return new VoidApiResponse(response);
|
|
5740
|
+
}
|
|
5741
|
+
/**
|
|
5742
|
+
* Options call for this endpoint
|
|
5743
|
+
*/
|
|
5744
|
+
async getSwapChainsOptions(requestParameters, initOverrides) {
|
|
5745
|
+
await this.getSwapChainsOptionsRaw(requestParameters, initOverrides);
|
|
5746
|
+
}
|
|
5747
|
+
/**
|
|
5748
|
+
* Returns the tokens swappable on one chain, from the enabled swap providers\' token catalogs, optionally filtered by a search term.
|
|
5749
|
+
* Get the tokens available for swaps on a chain
|
|
5750
|
+
*/
|
|
5751
|
+
async getSwapTokensRaw(requestParameters, initOverrides) {
|
|
5752
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5753
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapTokens.');
|
|
5754
|
+
}
|
|
5755
|
+
if (requestParameters.chainName === null || requestParameters.chainName === undefined) {
|
|
5756
|
+
throw new RequiredError('chainName', 'Required parameter requestParameters.chainName was null or undefined when calling getSwapTokens.');
|
|
5757
|
+
}
|
|
5758
|
+
if (requestParameters.chainId === null || requestParameters.chainId === undefined) {
|
|
5759
|
+
throw new RequiredError('chainId', 'Required parameter requestParameters.chainId was null or undefined when calling getSwapTokens.');
|
|
5760
|
+
}
|
|
5761
|
+
const queryParameters = {};
|
|
5762
|
+
if (requestParameters.chainName !== undefined) {
|
|
5763
|
+
queryParameters['chainName'] = requestParameters.chainName;
|
|
5764
|
+
}
|
|
5765
|
+
if (requestParameters.chainId !== undefined) {
|
|
5766
|
+
queryParameters['chainId'] = requestParameters.chainId;
|
|
5767
|
+
}
|
|
5768
|
+
if (requestParameters.search !== undefined) {
|
|
5769
|
+
queryParameters['search'] = requestParameters.search;
|
|
5770
|
+
}
|
|
5771
|
+
const headerParameters = {};
|
|
5772
|
+
const response = await this.request({
|
|
5773
|
+
path: `/sdk/{environmentId}/swap/tokens`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5774
|
+
method: 'GET',
|
|
5775
|
+
headers: headerParameters,
|
|
5776
|
+
query: queryParameters,
|
|
5777
|
+
}, initOverrides);
|
|
5778
|
+
return new JSONApiResponse(response, (jsonValue) => SwapTokensResponseFromJSON(jsonValue));
|
|
5779
|
+
}
|
|
5780
|
+
/**
|
|
5781
|
+
* Returns the tokens swappable on one chain, from the enabled swap providers\' token catalogs, optionally filtered by a search term.
|
|
5782
|
+
* Get the tokens available for swaps on a chain
|
|
5783
|
+
*/
|
|
5784
|
+
async getSwapTokens(requestParameters, initOverrides) {
|
|
5785
|
+
const response = await this.getSwapTokensRaw(requestParameters, initOverrides);
|
|
5786
|
+
return await response.value();
|
|
5787
|
+
}
|
|
5788
|
+
/**
|
|
5789
|
+
* Options call for this endpoint
|
|
5790
|
+
*/
|
|
5791
|
+
async getSwapTokensOptionsRaw(requestParameters, initOverrides) {
|
|
5792
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
5793
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getSwapTokensOptions.');
|
|
5794
|
+
}
|
|
5795
|
+
const queryParameters = {};
|
|
5796
|
+
const headerParameters = {};
|
|
5797
|
+
const response = await this.request({
|
|
5798
|
+
path: `/sdk/{environmentId}/swap/tokens`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
5799
|
+
method: 'OPTIONS',
|
|
5800
|
+
headers: headerParameters,
|
|
5801
|
+
query: queryParameters,
|
|
5802
|
+
}, initOverrides);
|
|
5803
|
+
return new VoidApiResponse(response);
|
|
5804
|
+
}
|
|
5805
|
+
/**
|
|
5806
|
+
* Options call for this endpoint
|
|
5807
|
+
*/
|
|
5808
|
+
async getSwapTokensOptions(requestParameters, initOverrides) {
|
|
5809
|
+
await this.getSwapTokensOptionsRaw(requestParameters, initOverrides);
|
|
5810
|
+
}
|
|
5696
5811
|
/**
|
|
5697
5812
|
* Returns the HTML content for the Telegram login widget.
|
|
5698
5813
|
* Get Telegram login widget HTML
|
package/src/index.cjs
CHANGED
|
@@ -909,6 +909,10 @@ var SupportedOfframpsResponse = require('./models/SupportedOfframpsResponse.cjs'
|
|
|
909
909
|
var SupportedOnrampsResponse = require('./models/SupportedOnrampsResponse.cjs');
|
|
910
910
|
var SupportedSecurityMethod = require('./models/SupportedSecurityMethod.cjs');
|
|
911
911
|
var SupportedSecurityMethods = require('./models/SupportedSecurityMethods.cjs');
|
|
912
|
+
var SwapCatalogChain = require('./models/SwapCatalogChain.cjs');
|
|
913
|
+
var SwapCatalogToken = require('./models/SwapCatalogToken.cjs');
|
|
914
|
+
var SwapCatalogTokenAllOf = require('./models/SwapCatalogTokenAllOf.cjs');
|
|
915
|
+
var SwapChainsResponse = require('./models/SwapChainsResponse.cjs');
|
|
912
916
|
var SwapEvmApprovalData = require('./models/SwapEvmApprovalData.cjs');
|
|
913
917
|
var SwapEvmTransactionData = require('./models/SwapEvmTransactionData.cjs');
|
|
914
918
|
var SwapFee = require('./models/SwapFee.cjs');
|
|
@@ -924,6 +928,7 @@ var SwapStatusResponse = require('./models/SwapStatusResponse.cjs');
|
|
|
924
928
|
var SwapStep = require('./models/SwapStep.cjs');
|
|
925
929
|
var SwapStepSide = require('./models/SwapStepSide.cjs');
|
|
926
930
|
var SwapToken = require('./models/SwapToken.cjs');
|
|
931
|
+
var SwapTokensResponse = require('./models/SwapTokensResponse.cjs');
|
|
927
932
|
var SwapTronTransactionData = require('./models/SwapTronTransactionData.cjs');
|
|
928
933
|
var TelegramPostRequest = require('./models/TelegramPostRequest.cjs');
|
|
929
934
|
var TelegramUser = require('./models/TelegramUser.cjs');
|
|
@@ -4551,6 +4556,18 @@ exports.SupportedSecurityMethodToJSON = SupportedSecurityMethod.SupportedSecurit
|
|
|
4551
4556
|
exports.SupportedSecurityMethodsFromJSON = SupportedSecurityMethods.SupportedSecurityMethodsFromJSON;
|
|
4552
4557
|
exports.SupportedSecurityMethodsFromJSONTyped = SupportedSecurityMethods.SupportedSecurityMethodsFromJSONTyped;
|
|
4553
4558
|
exports.SupportedSecurityMethodsToJSON = SupportedSecurityMethods.SupportedSecurityMethodsToJSON;
|
|
4559
|
+
exports.SwapCatalogChainFromJSON = SwapCatalogChain.SwapCatalogChainFromJSON;
|
|
4560
|
+
exports.SwapCatalogChainFromJSONTyped = SwapCatalogChain.SwapCatalogChainFromJSONTyped;
|
|
4561
|
+
exports.SwapCatalogChainToJSON = SwapCatalogChain.SwapCatalogChainToJSON;
|
|
4562
|
+
exports.SwapCatalogTokenFromJSON = SwapCatalogToken.SwapCatalogTokenFromJSON;
|
|
4563
|
+
exports.SwapCatalogTokenFromJSONTyped = SwapCatalogToken.SwapCatalogTokenFromJSONTyped;
|
|
4564
|
+
exports.SwapCatalogTokenToJSON = SwapCatalogToken.SwapCatalogTokenToJSON;
|
|
4565
|
+
exports.SwapCatalogTokenAllOfFromJSON = SwapCatalogTokenAllOf.SwapCatalogTokenAllOfFromJSON;
|
|
4566
|
+
exports.SwapCatalogTokenAllOfFromJSONTyped = SwapCatalogTokenAllOf.SwapCatalogTokenAllOfFromJSONTyped;
|
|
4567
|
+
exports.SwapCatalogTokenAllOfToJSON = SwapCatalogTokenAllOf.SwapCatalogTokenAllOfToJSON;
|
|
4568
|
+
exports.SwapChainsResponseFromJSON = SwapChainsResponse.SwapChainsResponseFromJSON;
|
|
4569
|
+
exports.SwapChainsResponseFromJSONTyped = SwapChainsResponse.SwapChainsResponseFromJSONTyped;
|
|
4570
|
+
exports.SwapChainsResponseToJSON = SwapChainsResponse.SwapChainsResponseToJSON;
|
|
4554
4571
|
exports.SwapEvmApprovalDataFromJSON = SwapEvmApprovalData.SwapEvmApprovalDataFromJSON;
|
|
4555
4572
|
exports.SwapEvmApprovalDataFromJSONTyped = SwapEvmApprovalData.SwapEvmApprovalDataFromJSONTyped;
|
|
4556
4573
|
exports.SwapEvmApprovalDataToJSON = SwapEvmApprovalData.SwapEvmApprovalDataToJSON;
|
|
@@ -4604,6 +4621,9 @@ exports.SwapStepSideToJSON = SwapStepSide.SwapStepSideToJSON;
|
|
|
4604
4621
|
exports.SwapTokenFromJSON = SwapToken.SwapTokenFromJSON;
|
|
4605
4622
|
exports.SwapTokenFromJSONTyped = SwapToken.SwapTokenFromJSONTyped;
|
|
4606
4623
|
exports.SwapTokenToJSON = SwapToken.SwapTokenToJSON;
|
|
4624
|
+
exports.SwapTokensResponseFromJSON = SwapTokensResponse.SwapTokensResponseFromJSON;
|
|
4625
|
+
exports.SwapTokensResponseFromJSONTyped = SwapTokensResponse.SwapTokensResponseFromJSONTyped;
|
|
4626
|
+
exports.SwapTokensResponseToJSON = SwapTokensResponse.SwapTokensResponseToJSON;
|
|
4607
4627
|
exports.SwapTronTransactionDataFromJSON = SwapTronTransactionData.SwapTronTransactionDataFromJSON;
|
|
4608
4628
|
exports.SwapTronTransactionDataFromJSONTyped = SwapTronTransactionData.SwapTronTransactionDataFromJSONTyped;
|
|
4609
4629
|
exports.SwapTronTransactionDataToJSON = SwapTronTransactionData.SwapTronTransactionDataToJSON;
|
package/src/index.js
CHANGED
|
@@ -905,6 +905,10 @@ export { SupportedOfframpsResponseFromJSON, SupportedOfframpsResponseFromJSONTyp
|
|
|
905
905
|
export { SupportedOnrampsResponseFromJSON, SupportedOnrampsResponseFromJSONTyped, SupportedOnrampsResponseToJSON } from './models/SupportedOnrampsResponse.js';
|
|
906
906
|
export { SupportedSecurityMethodFromJSON, SupportedSecurityMethodFromJSONTyped, SupportedSecurityMethodToJSON } from './models/SupportedSecurityMethod.js';
|
|
907
907
|
export { SupportedSecurityMethodsFromJSON, SupportedSecurityMethodsFromJSONTyped, SupportedSecurityMethodsToJSON } from './models/SupportedSecurityMethods.js';
|
|
908
|
+
export { SwapCatalogChainFromJSON, SwapCatalogChainFromJSONTyped, SwapCatalogChainToJSON } from './models/SwapCatalogChain.js';
|
|
909
|
+
export { SwapCatalogTokenFromJSON, SwapCatalogTokenFromJSONTyped, SwapCatalogTokenToJSON } from './models/SwapCatalogToken.js';
|
|
910
|
+
export { SwapCatalogTokenAllOfFromJSON, SwapCatalogTokenAllOfFromJSONTyped, SwapCatalogTokenAllOfToJSON } from './models/SwapCatalogTokenAllOf.js';
|
|
911
|
+
export { SwapChainsResponseFromJSON, SwapChainsResponseFromJSONTyped, SwapChainsResponseToJSON } from './models/SwapChainsResponse.js';
|
|
908
912
|
export { SwapEvmApprovalDataFromJSON, SwapEvmApprovalDataFromJSONTyped, SwapEvmApprovalDataToJSON } from './models/SwapEvmApprovalData.js';
|
|
909
913
|
export { SwapEvmTransactionDataFromJSON, SwapEvmTransactionDataFromJSONTyped, SwapEvmTransactionDataToJSON } from './models/SwapEvmTransactionData.js';
|
|
910
914
|
export { SwapFeeFromJSON, SwapFeeFromJSONTyped, SwapFeeToJSON } from './models/SwapFee.js';
|
|
@@ -920,6 +924,7 @@ export { SwapStatusResponseFromJSON, SwapStatusResponseFromJSONTyped, SwapStatus
|
|
|
920
924
|
export { SwapStepFromJSON, SwapStepFromJSONTyped, SwapStepToJSON } from './models/SwapStep.js';
|
|
921
925
|
export { SwapStepSideFromJSON, SwapStepSideFromJSONTyped, SwapStepSideToJSON } from './models/SwapStepSide.js';
|
|
922
926
|
export { SwapTokenFromJSON, SwapTokenFromJSONTyped, SwapTokenToJSON } from './models/SwapToken.js';
|
|
927
|
+
export { SwapTokensResponseFromJSON, SwapTokensResponseFromJSONTyped, SwapTokensResponseToJSON } from './models/SwapTokensResponse.js';
|
|
923
928
|
export { SwapTronTransactionDataFromJSON, SwapTronTransactionDataFromJSONTyped, SwapTronTransactionDataToJSON } from './models/SwapTronTransactionData.js';
|
|
924
929
|
export { TelegramPostRequestFromJSON, TelegramPostRequestFromJSONTyped, TelegramPostRequestToJSON } from './models/TelegramPostRequest.js';
|
|
925
930
|
export { TelegramUserFromJSON, TelegramUserFromJSONTyped, TelegramUserToJSON } from './models/TelegramUser.js';
|
|
@@ -13,7 +13,7 @@ import { FlowSourceTokenOptionChain } from './FlowSourceTokenOptionChain';
|
|
|
13
13
|
import { FlowSourceTokenOptionNetwork } from './FlowSourceTokenOptionNetwork';
|
|
14
14
|
import { FlowSourceTokenOptionToken } from './FlowSourceTokenOptionToken';
|
|
15
15
|
/**
|
|
16
|
-
* A network a payer can fund a flow from
|
|
16
|
+
* A network a payer can fund a flow from, and the tokens accepted on it.
|
|
17
17
|
* @export
|
|
18
18
|
* @interface FlowSourceTokenOption
|
|
19
19
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { FlowSourceTokenOption } from './FlowSourceTokenOption';
|
|
13
13
|
/**
|
|
14
|
-
* The tokens a flow can be paid with
|
|
14
|
+
* The tokens a flow can be paid with, grouped by network.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface FlowSourceTokenOptionsResponse
|
|
17
17
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function SwapCatalogChainFromJSON(json) {
|
|
10
|
+
return SwapCatalogChainFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function SwapCatalogChainFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
18
|
+
'chainId': json['chainId'],
|
|
19
|
+
'displayName': json['displayName'],
|
|
20
|
+
'iconUrl': !runtime.exists(json, 'iconUrl') ? undefined : json['iconUrl'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function SwapCatalogChainToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
32
|
+
'chainId': value.chainId,
|
|
33
|
+
'displayName': value.displayName,
|
|
34
|
+
'iconUrl': value.iconUrl,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.SwapCatalogChainFromJSON = SwapCatalogChainFromJSON;
|
|
39
|
+
exports.SwapCatalogChainFromJSONTyped = SwapCatalogChainFromJSONTyped;
|
|
40
|
+
exports.SwapCatalogChainToJSON = SwapCatalogChainToJSON;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SwapCatalogChain
|
|
17
|
+
*/
|
|
18
|
+
export interface SwapCatalogChain {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ChainEnum}
|
|
22
|
+
* @memberof SwapCatalogChain
|
|
23
|
+
*/
|
|
24
|
+
chainName: ChainEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Network ID within the chain family
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SwapCatalogChain
|
|
29
|
+
*/
|
|
30
|
+
chainId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Display name of the network
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SwapCatalogChain
|
|
35
|
+
*/
|
|
36
|
+
displayName: string;
|
|
37
|
+
/**
|
|
38
|
+
* Absolute HTTPS URL of the network logo
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof SwapCatalogChain
|
|
41
|
+
*/
|
|
42
|
+
iconUrl?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function SwapCatalogChainFromJSON(json: any): SwapCatalogChain;
|
|
45
|
+
export declare function SwapCatalogChainFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapCatalogChain;
|
|
46
|
+
export declare function SwapCatalogChainToJSON(value?: SwapCatalogChain | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function SwapCatalogChainFromJSON(json) {
|
|
6
|
+
return SwapCatalogChainFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function SwapCatalogChainFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
14
|
+
'chainId': json['chainId'],
|
|
15
|
+
'displayName': json['displayName'],
|
|
16
|
+
'iconUrl': !exists(json, 'iconUrl') ? undefined : json['iconUrl'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function SwapCatalogChainToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'chainName': ChainEnumToJSON(value.chainName),
|
|
28
|
+
'chainId': value.chainId,
|
|
29
|
+
'displayName': value.displayName,
|
|
30
|
+
'iconUrl': value.iconUrl,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { SwapCatalogChainFromJSON, SwapCatalogChainFromJSONTyped, SwapCatalogChainToJSON };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function SwapCatalogTokenFromJSON(json) {
|
|
10
|
+
return SwapCatalogTokenFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function SwapCatalogTokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'address': json['address'],
|
|
18
|
+
'chainId': json['chainId'],
|
|
19
|
+
'coinKey': !runtime.exists(json, 'coinKey') ? undefined : json['coinKey'],
|
|
20
|
+
'decimals': json['decimals'],
|
|
21
|
+
'logoURI': !runtime.exists(json, 'logoURI') ? undefined : json['logoURI'],
|
|
22
|
+
'name': json['name'],
|
|
23
|
+
'priceUSD': !runtime.exists(json, 'priceUSD') ? undefined : json['priceUSD'],
|
|
24
|
+
'symbol': json['symbol'],
|
|
25
|
+
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function SwapCatalogTokenToJSON(value) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'address': value.address,
|
|
37
|
+
'chainId': value.chainId,
|
|
38
|
+
'coinKey': value.coinKey,
|
|
39
|
+
'decimals': value.decimals,
|
|
40
|
+
'logoURI': value.logoURI,
|
|
41
|
+
'name': value.name,
|
|
42
|
+
'priceUSD': value.priceUSD,
|
|
43
|
+
'symbol': value.symbol,
|
|
44
|
+
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
exports.SwapCatalogTokenFromJSON = SwapCatalogTokenFromJSON;
|
|
49
|
+
exports.SwapCatalogTokenFromJSONTyped = SwapCatalogTokenFromJSONTyped;
|
|
50
|
+
exports.SwapCatalogTokenToJSON = SwapCatalogTokenToJSON;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SwapCatalogToken
|
|
17
|
+
*/
|
|
18
|
+
export interface SwapCatalogToken {
|
|
19
|
+
/**
|
|
20
|
+
* Token contract address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SwapCatalogToken
|
|
23
|
+
*/
|
|
24
|
+
address: string;
|
|
25
|
+
/**
|
|
26
|
+
* Chain ID where the token resides
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SwapCatalogToken
|
|
29
|
+
*/
|
|
30
|
+
chainId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Unique key identifier for the token across chains
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof SwapCatalogToken
|
|
35
|
+
*/
|
|
36
|
+
coinKey?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Number of decimal places the token supports
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof SwapCatalogToken
|
|
41
|
+
*/
|
|
42
|
+
decimals: number;
|
|
43
|
+
/**
|
|
44
|
+
* URL of the token logo image
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof SwapCatalogToken
|
|
47
|
+
*/
|
|
48
|
+
logoURI?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Display name of the token
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof SwapCatalogToken
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Current price of the token in USD
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof SwapCatalogToken
|
|
59
|
+
*/
|
|
60
|
+
priceUSD?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Ticker symbol of the token
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof SwapCatalogToken
|
|
65
|
+
*/
|
|
66
|
+
symbol: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ChainEnum}
|
|
70
|
+
* @memberof SwapCatalogToken
|
|
71
|
+
*/
|
|
72
|
+
chainName: ChainEnum;
|
|
73
|
+
}
|
|
74
|
+
export declare function SwapCatalogTokenFromJSON(json: any): SwapCatalogToken;
|
|
75
|
+
export declare function SwapCatalogTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapCatalogToken;
|
|
76
|
+
export declare function SwapCatalogTokenToJSON(value?: SwapCatalogToken | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function SwapCatalogTokenFromJSON(json) {
|
|
6
|
+
return SwapCatalogTokenFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function SwapCatalogTokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'address': json['address'],
|
|
14
|
+
'chainId': json['chainId'],
|
|
15
|
+
'coinKey': !exists(json, 'coinKey') ? undefined : json['coinKey'],
|
|
16
|
+
'decimals': json['decimals'],
|
|
17
|
+
'logoURI': !exists(json, 'logoURI') ? undefined : json['logoURI'],
|
|
18
|
+
'name': json['name'],
|
|
19
|
+
'priceUSD': !exists(json, 'priceUSD') ? undefined : json['priceUSD'],
|
|
20
|
+
'symbol': json['symbol'],
|
|
21
|
+
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function SwapCatalogTokenToJSON(value) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'address': value.address,
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
'coinKey': value.coinKey,
|
|
35
|
+
'decimals': value.decimals,
|
|
36
|
+
'logoURI': value.logoURI,
|
|
37
|
+
'name': value.name,
|
|
38
|
+
'priceUSD': value.priceUSD,
|
|
39
|
+
'symbol': value.symbol,
|
|
40
|
+
'chainName': ChainEnumToJSON(value.chainName),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { SwapCatalogTokenFromJSON, SwapCatalogTokenFromJSONTyped, SwapCatalogTokenToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function SwapCatalogTokenAllOfFromJSON(json) {
|
|
9
|
+
return SwapCatalogTokenAllOfFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SwapCatalogTokenAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'chainName': ChainEnum.ChainEnumFromJSON(json['chainName']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function SwapCatalogTokenAllOfToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'chainName': ChainEnum.ChainEnumToJSON(value.chainName),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.SwapCatalogTokenAllOfFromJSON = SwapCatalogTokenAllOfFromJSON;
|
|
32
|
+
exports.SwapCatalogTokenAllOfFromJSONTyped = SwapCatalogTokenAllOfFromJSONTyped;
|
|
33
|
+
exports.SwapCatalogTokenAllOfToJSON = SwapCatalogTokenAllOfToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChainEnum } from './ChainEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SwapCatalogTokenAllOf
|
|
17
|
+
*/
|
|
18
|
+
export interface SwapCatalogTokenAllOf {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ChainEnum}
|
|
22
|
+
* @memberof SwapCatalogTokenAllOf
|
|
23
|
+
*/
|
|
24
|
+
chainName: ChainEnum;
|
|
25
|
+
}
|
|
26
|
+
export declare function SwapCatalogTokenAllOfFromJSON(json: any): SwapCatalogTokenAllOf;
|
|
27
|
+
export declare function SwapCatalogTokenAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapCatalogTokenAllOf;
|
|
28
|
+
export declare function SwapCatalogTokenAllOfToJSON(value?: SwapCatalogTokenAllOf | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SwapCatalogTokenAllOfFromJSON(json) {
|
|
5
|
+
return SwapCatalogTokenAllOfFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SwapCatalogTokenAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'chainName': ChainEnumFromJSON(json['chainName']),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function SwapCatalogTokenAllOfToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'chainName': ChainEnumToJSON(value.chainName),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { SwapCatalogTokenAllOfFromJSON, SwapCatalogTokenAllOfFromJSONTyped, SwapCatalogTokenAllOfToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var SwapCatalogChain = require('./SwapCatalogChain.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function SwapChainsResponseFromJSON(json) {
|
|
9
|
+
return SwapChainsResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SwapChainsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'chains': (json['chains'].map(SwapCatalogChain.SwapCatalogChainFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function SwapChainsResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'chains': (value.chains.map(SwapCatalogChain.SwapCatalogChainToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.SwapChainsResponseFromJSON = SwapChainsResponseFromJSON;
|
|
32
|
+
exports.SwapChainsResponseFromJSONTyped = SwapChainsResponseFromJSONTyped;
|
|
33
|
+
exports.SwapChainsResponseToJSON = SwapChainsResponseToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { SwapCatalogChain } from './SwapCatalogChain';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SwapChainsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SwapChainsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Chains the environment can swap on
|
|
21
|
+
* @type {Array<SwapCatalogChain>}
|
|
22
|
+
* @memberof SwapChainsResponse
|
|
23
|
+
*/
|
|
24
|
+
chains: Array<SwapCatalogChain>;
|
|
25
|
+
}
|
|
26
|
+
export declare function SwapChainsResponseFromJSON(json: any): SwapChainsResponse;
|
|
27
|
+
export declare function SwapChainsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapChainsResponse;
|
|
28
|
+
export declare function SwapChainsResponseToJSON(value?: SwapChainsResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SwapCatalogChainFromJSON, SwapCatalogChainToJSON } from './SwapCatalogChain.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SwapChainsResponseFromJSON(json) {
|
|
5
|
+
return SwapChainsResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SwapChainsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'chains': (json['chains'].map(SwapCatalogChainFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function SwapChainsResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'chains': (value.chains.map(SwapCatalogChainToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { SwapChainsResponseFromJSON, SwapChainsResponseFromJSONTyped, SwapChainsResponseToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var SwapCatalogToken = require('./SwapCatalogToken.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function SwapTokensResponseFromJSON(json) {
|
|
9
|
+
return SwapTokensResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function SwapTokensResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'tokens': (json['tokens'].map(SwapCatalogToken.SwapCatalogTokenFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function SwapTokensResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'tokens': (value.tokens.map(SwapCatalogToken.SwapCatalogTokenToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.SwapTokensResponseFromJSON = SwapTokensResponseFromJSON;
|
|
32
|
+
exports.SwapTokensResponseFromJSONTyped = SwapTokensResponseFromJSONTyped;
|
|
33
|
+
exports.SwapTokensResponseToJSON = SwapTokensResponseToJSON;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { SwapCatalogToken } from './SwapCatalogToken';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SwapTokensResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface SwapTokensResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Tokens swappable on the requested chain
|
|
21
|
+
* @type {Array<SwapCatalogToken>}
|
|
22
|
+
* @memberof SwapTokensResponse
|
|
23
|
+
*/
|
|
24
|
+
tokens: Array<SwapCatalogToken>;
|
|
25
|
+
}
|
|
26
|
+
export declare function SwapTokensResponseFromJSON(json: any): SwapTokensResponse;
|
|
27
|
+
export declare function SwapTokensResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapTokensResponse;
|
|
28
|
+
export declare function SwapTokensResponseToJSON(value?: SwapTokensResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SwapCatalogTokenFromJSON, SwapCatalogTokenToJSON } from './SwapCatalogToken.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function SwapTokensResponseFromJSON(json) {
|
|
5
|
+
return SwapTokensResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function SwapTokensResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'tokens': (json['tokens'].map(SwapCatalogTokenFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function SwapTokensResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'tokens': (value.tokens.map(SwapCatalogTokenToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { SwapTokensResponseFromJSON, SwapTokensResponseFromJSONTyped, SwapTokensResponseToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -852,6 +852,10 @@ export * from './SupportedOfframpsResponse';
|
|
|
852
852
|
export * from './SupportedOnrampsResponse';
|
|
853
853
|
export * from './SupportedSecurityMethod';
|
|
854
854
|
export * from './SupportedSecurityMethods';
|
|
855
|
+
export * from './SwapCatalogChain';
|
|
856
|
+
export * from './SwapCatalogToken';
|
|
857
|
+
export * from './SwapCatalogTokenAllOf';
|
|
858
|
+
export * from './SwapChainsResponse';
|
|
855
859
|
export * from './SwapEvmApprovalData';
|
|
856
860
|
export * from './SwapEvmTransactionData';
|
|
857
861
|
export * from './SwapFee';
|
|
@@ -867,6 +871,7 @@ export * from './SwapStatusResponse';
|
|
|
867
871
|
export * from './SwapStep';
|
|
868
872
|
export * from './SwapStepSide';
|
|
869
873
|
export * from './SwapToken';
|
|
874
|
+
export * from './SwapTokensResponse';
|
|
870
875
|
export * from './SwapTronTransactionData';
|
|
871
876
|
export * from './TelegramPostRequest';
|
|
872
877
|
export * from './TelegramUser';
|