@dynamic-labs/sdk-api 0.0.969 → 0.0.971
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 +78 -0
- package/src/apis/SDKApi.d.ts +36 -1
- package/src/apis/SDKApi.js +79 -1
- package/src/index.cjs +16 -0
- package/src/index.js +4 -1
- package/src/models/AleoCuratedPricesResponse.cjs +33 -0
- package/src/models/AleoCuratedPricesResponse.d.ts +30 -0
- package/src/models/AleoCuratedPricesResponse.js +27 -0
- package/src/models/AleoCuratedPricesResponseResult.cjs +33 -0
- package/src/models/AleoCuratedPricesResponseResult.d.ts +31 -0
- package/src/models/AleoCuratedPricesResponseResult.js +27 -0
- package/src/models/AleoCuratedTokenPrice.cjs +51 -0
- package/src/models/AleoCuratedTokenPrice.d.ts +61 -0
- package/src/models/AleoCuratedTokenPrice.js +45 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -12,6 +12,7 @@ require('../models/AuthStorageEnum.cjs');
|
|
|
12
12
|
require('../models/MFADeviceType.cjs');
|
|
13
13
|
require('../models/MFASettingsActions.cjs');
|
|
14
14
|
require('../models/TimeUnitEnum.cjs');
|
|
15
|
+
var AleoCuratedPricesResponse = require('../models/AleoCuratedPricesResponse.cjs');
|
|
15
16
|
var AttachSourceRequest = require('../models/AttachSourceRequest.cjs');
|
|
16
17
|
require('../models/AttestationConveyancePreference.cjs');
|
|
17
18
|
require('../models/AuthModeEnum.cjs');
|
|
@@ -3098,6 +3099,68 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3098
3099
|
async getAccountBalancesOptions(requestParameters, initOverrides) {
|
|
3099
3100
|
await this.getAccountBalancesOptionsRaw(requestParameters, initOverrides);
|
|
3100
3101
|
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
|
|
3104
|
+
* Get curated Aleo token prices for the given network
|
|
3105
|
+
*/
|
|
3106
|
+
async getAleoCuratedPricesRaw(requestParameters, initOverrides) {
|
|
3107
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3108
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPrices.');
|
|
3109
|
+
}
|
|
3110
|
+
if (requestParameters.network === null || requestParameters.network === undefined) {
|
|
3111
|
+
throw new runtime.RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getAleoCuratedPrices.');
|
|
3112
|
+
}
|
|
3113
|
+
const queryParameters = {};
|
|
3114
|
+
if (requestParameters.network !== undefined) {
|
|
3115
|
+
queryParameters['network'] = requestParameters.network;
|
|
3116
|
+
}
|
|
3117
|
+
const headerParameters = {};
|
|
3118
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3119
|
+
const token = this.configuration.accessToken;
|
|
3120
|
+
const tokenString = await token("bearerAuth", []);
|
|
3121
|
+
if (tokenString) {
|
|
3122
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
const response = await this.request({
|
|
3126
|
+
path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3127
|
+
method: 'GET',
|
|
3128
|
+
headers: headerParameters,
|
|
3129
|
+
query: queryParameters,
|
|
3130
|
+
}, initOverrides);
|
|
3131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSON(jsonValue));
|
|
3132
|
+
}
|
|
3133
|
+
/**
|
|
3134
|
+
* Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
|
|
3135
|
+
* Get curated Aleo token prices for the given network
|
|
3136
|
+
*/
|
|
3137
|
+
async getAleoCuratedPrices(requestParameters, initOverrides) {
|
|
3138
|
+
const response = await this.getAleoCuratedPricesRaw(requestParameters, initOverrides);
|
|
3139
|
+
return await response.value();
|
|
3140
|
+
}
|
|
3141
|
+
/**
|
|
3142
|
+
* Options call for this endpoint
|
|
3143
|
+
*/
|
|
3144
|
+
async getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides) {
|
|
3145
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3146
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPricesOptions.');
|
|
3147
|
+
}
|
|
3148
|
+
const queryParameters = {};
|
|
3149
|
+
const headerParameters = {};
|
|
3150
|
+
const response = await this.request({
|
|
3151
|
+
path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3152
|
+
method: 'OPTIONS',
|
|
3153
|
+
headers: headerParameters,
|
|
3154
|
+
query: queryParameters,
|
|
3155
|
+
}, initOverrides);
|
|
3156
|
+
return new runtime.VoidApiResponse(response);
|
|
3157
|
+
}
|
|
3158
|
+
/**
|
|
3159
|
+
* Options call for this endpoint
|
|
3160
|
+
*/
|
|
3161
|
+
async getAleoCuratedPricesOptions(requestParameters, initOverrides) {
|
|
3162
|
+
await this.getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides);
|
|
3163
|
+
}
|
|
3101
3164
|
/**
|
|
3102
3165
|
* Returns the ANF-issued Feemaster policy for the given Aleo network. The policy lists which (programId, functionName) pairs the configured Bearer key sponsors. Forwarded server-side; the iframe never sees the Bearer key directly.
|
|
3103
3166
|
* Get the ANF Feemaster sponsorship policy for Aleo
|
|
@@ -5046,6 +5109,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5046
5109
|
if (requestParameters.offset !== undefined) {
|
|
5047
5110
|
queryParameters['offset'] = requestParameters.offset;
|
|
5048
5111
|
}
|
|
5112
|
+
if (requestParameters.tokenAddress !== undefined) {
|
|
5113
|
+
queryParameters['tokenAddress'] = requestParameters.tokenAddress;
|
|
5114
|
+
}
|
|
5049
5115
|
const headerParameters = {};
|
|
5050
5116
|
if (this.configuration && this.configuration.accessToken) {
|
|
5051
5117
|
const token = this.configuration.accessToken;
|
|
@@ -5096,6 +5162,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
5096
5162
|
if (requestParameters.offset !== undefined) {
|
|
5097
5163
|
queryParameters['offset'] = requestParameters.offset;
|
|
5098
5164
|
}
|
|
5165
|
+
if (requestParameters.tokenAddress !== undefined) {
|
|
5166
|
+
queryParameters['tokenAddress'] = requestParameters.tokenAddress;
|
|
5167
|
+
}
|
|
5099
5168
|
const headerParameters = {};
|
|
5100
5169
|
const response = await this.request({
|
|
5101
5170
|
path: `/sdk/{environmentId}/chains/{chainName}/transactions/{address}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))).replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
|
|
@@ -9979,6 +10048,15 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
9979
10048
|
await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
|
|
9980
10049
|
}
|
|
9981
10050
|
}
|
|
10051
|
+
/**
|
|
10052
|
+
* @export
|
|
10053
|
+
* @enum {string}
|
|
10054
|
+
*/
|
|
10055
|
+
exports.GetAleoCuratedPricesNetworkEnum = void 0;
|
|
10056
|
+
(function (GetAleoCuratedPricesNetworkEnum) {
|
|
10057
|
+
GetAleoCuratedPricesNetworkEnum["Testnet"] = "testnet";
|
|
10058
|
+
GetAleoCuratedPricesNetworkEnum["Mainnet"] = "mainnet";
|
|
10059
|
+
})(exports.GetAleoCuratedPricesNetworkEnum || (exports.GetAleoCuratedPricesNetworkEnum = {}));
|
|
9982
10060
|
/**
|
|
9983
10061
|
* @export
|
|
9984
10062
|
* @enum {string}
|
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 { Account, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
13
|
+
import { Account, AleoCuratedPricesResponse, AttachSourceRequest, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesResponse, ChainEnum, CheckoutTransaction, CheckoutTransactionCreateRequest, CheckoutTransactionCreateResponse, CoinbaseOnrampGetBuyUrlRequest, CoinbaseOnrampGetBuyUrlResponse, CoinbaseOnrampOrderCreateRequest, CoinbaseOnrampOrderResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, CreateWalletAccountRequest, CryptoDotComPaymentCreateRequest, CryptoDotComPaymentResponse, Currency, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, DeleteDeviceRegistrationResponse, DeleteEmbeddedWalletsRequest, DeleteUserPasskeyRequest, DeviceRegistrationsResponse, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportAleoViewKeyRequest, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthAssertionResponse, ExternalAuthSigninRequest, FarcasterSignInRequest, GeneratedTokenResponse, GetAvailableEVMGaslessRelayerResponse, GetEVMSponsoredTransactionStatusResponse, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineObject5, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, InlineResponse2007, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, NoncesResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, PrefetchRequest, PrepareSigningRequest, ProjectSettings, ProviderEnum, PublishEvents, QuoteRequest, RealtimeAuthTokenResponse, RecordBroadcastRequest, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RefreshKeySharesRequest, RefreshKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpdateWaasWalletSettingsRequest, UpdateWaasWalletSettingsResponse, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest, WalletSanctionsResponse, WalletTransactionsResponse } from '../models';
|
|
14
14
|
export interface AttachSourceOperationRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
transactionId: string;
|
|
@@ -373,6 +373,13 @@ export interface GetAccountBalancesOptionsRequest {
|
|
|
373
373
|
accountAddress: string;
|
|
374
374
|
transactionHash?: string;
|
|
375
375
|
}
|
|
376
|
+
export interface GetAleoCuratedPricesRequest {
|
|
377
|
+
environmentId: string;
|
|
378
|
+
network: GetAleoCuratedPricesNetworkEnum;
|
|
379
|
+
}
|
|
380
|
+
export interface GetAleoCuratedPricesOptionsRequest {
|
|
381
|
+
environmentId: string;
|
|
382
|
+
}
|
|
376
383
|
export interface GetAleoFeemasterPolicyRequest {
|
|
377
384
|
environmentId: string;
|
|
378
385
|
network: GetAleoFeemasterPolicyNetworkEnum;
|
|
@@ -617,6 +624,7 @@ export interface GetWalletTransactionsRequest {
|
|
|
617
624
|
networkId: number;
|
|
618
625
|
limit?: number;
|
|
619
626
|
offset?: string;
|
|
627
|
+
tokenAddress?: string;
|
|
620
628
|
}
|
|
621
629
|
export interface GetWalletTransactionsOptionsRequest {
|
|
622
630
|
environmentId: string;
|
|
@@ -625,6 +633,7 @@ export interface GetWalletTransactionsOptionsRequest {
|
|
|
625
633
|
networkId: number;
|
|
626
634
|
limit?: number;
|
|
627
635
|
offset?: string;
|
|
636
|
+
tokenAddress?: string;
|
|
628
637
|
}
|
|
629
638
|
export interface GlobalWalletConnectionsOptionsRequest {
|
|
630
639
|
environmentId: string;
|
|
@@ -2066,6 +2075,24 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2066
2075
|
* Options call for this endpoint
|
|
2067
2076
|
*/
|
|
2068
2077
|
getAccountBalancesOptions(requestParameters: GetAccountBalancesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2078
|
+
/**
|
|
2079
|
+
* Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
|
|
2080
|
+
* Get curated Aleo token prices for the given network
|
|
2081
|
+
*/
|
|
2082
|
+
getAleoCuratedPricesRaw(requestParameters: GetAleoCuratedPricesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AleoCuratedPricesResponse>>;
|
|
2083
|
+
/**
|
|
2084
|
+
* Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
|
|
2085
|
+
* Get curated Aleo token prices for the given network
|
|
2086
|
+
*/
|
|
2087
|
+
getAleoCuratedPrices(requestParameters: GetAleoCuratedPricesRequest, initOverrides?: RequestInit): Promise<AleoCuratedPricesResponse>;
|
|
2088
|
+
/**
|
|
2089
|
+
* Options call for this endpoint
|
|
2090
|
+
*/
|
|
2091
|
+
getAleoCuratedPricesOptionsRaw(requestParameters: GetAleoCuratedPricesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
2092
|
+
/**
|
|
2093
|
+
* Options call for this endpoint
|
|
2094
|
+
*/
|
|
2095
|
+
getAleoCuratedPricesOptions(requestParameters: GetAleoCuratedPricesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2069
2096
|
/**
|
|
2070
2097
|
* Returns the ANF-issued Feemaster policy for the given Aleo network. The policy lists which (programId, functionName) pairs the configured Bearer key sponsors. Forwarded server-side; the iframe never sees the Bearer key directly.
|
|
2071
2098
|
* Get the ANF Feemaster sponsorship policy for Aleo
|
|
@@ -4169,6 +4196,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
4169
4196
|
*/
|
|
4170
4197
|
walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
4171
4198
|
}
|
|
4199
|
+
/**
|
|
4200
|
+
* @export
|
|
4201
|
+
* @enum {string}
|
|
4202
|
+
*/
|
|
4203
|
+
export declare enum GetAleoCuratedPricesNetworkEnum {
|
|
4204
|
+
Testnet = "testnet",
|
|
4205
|
+
Mainnet = "mainnet"
|
|
4206
|
+
}
|
|
4172
4207
|
/**
|
|
4173
4208
|
* @export
|
|
4174
4209
|
* @enum {string}
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -8,6 +8,7 @@ import '../models/AuthStorageEnum.js';
|
|
|
8
8
|
import '../models/MFADeviceType.js';
|
|
9
9
|
import '../models/MFASettingsActions.js';
|
|
10
10
|
import '../models/TimeUnitEnum.js';
|
|
11
|
+
import { AleoCuratedPricesResponseFromJSON } from '../models/AleoCuratedPricesResponse.js';
|
|
11
12
|
import { AttachSourceRequestToJSON } from '../models/AttachSourceRequest.js';
|
|
12
13
|
import '../models/AttestationConveyancePreference.js';
|
|
13
14
|
import '../models/AuthModeEnum.js';
|
|
@@ -3094,6 +3095,68 @@ class SDKApi extends BaseAPI {
|
|
|
3094
3095
|
async getAccountBalancesOptions(requestParameters, initOverrides) {
|
|
3095
3096
|
await this.getAccountBalancesOptionsRaw(requestParameters, initOverrides);
|
|
3096
3097
|
}
|
|
3098
|
+
/**
|
|
3099
|
+
* Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
|
|
3100
|
+
* Get curated Aleo token prices for the given network
|
|
3101
|
+
*/
|
|
3102
|
+
async getAleoCuratedPricesRaw(requestParameters, initOverrides) {
|
|
3103
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3104
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPrices.');
|
|
3105
|
+
}
|
|
3106
|
+
if (requestParameters.network === null || requestParameters.network === undefined) {
|
|
3107
|
+
throw new RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getAleoCuratedPrices.');
|
|
3108
|
+
}
|
|
3109
|
+
const queryParameters = {};
|
|
3110
|
+
if (requestParameters.network !== undefined) {
|
|
3111
|
+
queryParameters['network'] = requestParameters.network;
|
|
3112
|
+
}
|
|
3113
|
+
const headerParameters = {};
|
|
3114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3115
|
+
const token = this.configuration.accessToken;
|
|
3116
|
+
const tokenString = await token("bearerAuth", []);
|
|
3117
|
+
if (tokenString) {
|
|
3118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
const response = await this.request({
|
|
3122
|
+
path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3123
|
+
method: 'GET',
|
|
3124
|
+
headers: headerParameters,
|
|
3125
|
+
query: queryParameters,
|
|
3126
|
+
}, initOverrides);
|
|
3127
|
+
return new JSONApiResponse(response, (jsonValue) => AleoCuratedPricesResponseFromJSON(jsonValue));
|
|
3128
|
+
}
|
|
3129
|
+
/**
|
|
3130
|
+
* Returns a stable list of `(address, isNative, tokenId, price)` rows for every curated Aleo token on the requested network — independent of the caller\'s balance. Used by the widget to display fiat values on the Shielded balance tab, which is built client-side from records and never goes through the multichain `/accountBalances` endpoint. Tokens whose CoinGecko id has no cached price are returned with `price: null`.
|
|
3131
|
+
* Get curated Aleo token prices for the given network
|
|
3132
|
+
*/
|
|
3133
|
+
async getAleoCuratedPrices(requestParameters, initOverrides) {
|
|
3134
|
+
const response = await this.getAleoCuratedPricesRaw(requestParameters, initOverrides);
|
|
3135
|
+
return await response.value();
|
|
3136
|
+
}
|
|
3137
|
+
/**
|
|
3138
|
+
* Options call for this endpoint
|
|
3139
|
+
*/
|
|
3140
|
+
async getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides) {
|
|
3141
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3142
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPricesOptions.');
|
|
3143
|
+
}
|
|
3144
|
+
const queryParameters = {};
|
|
3145
|
+
const headerParameters = {};
|
|
3146
|
+
const response = await this.request({
|
|
3147
|
+
path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3148
|
+
method: 'OPTIONS',
|
|
3149
|
+
headers: headerParameters,
|
|
3150
|
+
query: queryParameters,
|
|
3151
|
+
}, initOverrides);
|
|
3152
|
+
return new VoidApiResponse(response);
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Options call for this endpoint
|
|
3156
|
+
*/
|
|
3157
|
+
async getAleoCuratedPricesOptions(requestParameters, initOverrides) {
|
|
3158
|
+
await this.getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides);
|
|
3159
|
+
}
|
|
3097
3160
|
/**
|
|
3098
3161
|
* Returns the ANF-issued Feemaster policy for the given Aleo network. The policy lists which (programId, functionName) pairs the configured Bearer key sponsors. Forwarded server-side; the iframe never sees the Bearer key directly.
|
|
3099
3162
|
* Get the ANF Feemaster sponsorship policy for Aleo
|
|
@@ -5042,6 +5105,9 @@ class SDKApi extends BaseAPI {
|
|
|
5042
5105
|
if (requestParameters.offset !== undefined) {
|
|
5043
5106
|
queryParameters['offset'] = requestParameters.offset;
|
|
5044
5107
|
}
|
|
5108
|
+
if (requestParameters.tokenAddress !== undefined) {
|
|
5109
|
+
queryParameters['tokenAddress'] = requestParameters.tokenAddress;
|
|
5110
|
+
}
|
|
5045
5111
|
const headerParameters = {};
|
|
5046
5112
|
if (this.configuration && this.configuration.accessToken) {
|
|
5047
5113
|
const token = this.configuration.accessToken;
|
|
@@ -5092,6 +5158,9 @@ class SDKApi extends BaseAPI {
|
|
|
5092
5158
|
if (requestParameters.offset !== undefined) {
|
|
5093
5159
|
queryParameters['offset'] = requestParameters.offset;
|
|
5094
5160
|
}
|
|
5161
|
+
if (requestParameters.tokenAddress !== undefined) {
|
|
5162
|
+
queryParameters['tokenAddress'] = requestParameters.tokenAddress;
|
|
5163
|
+
}
|
|
5095
5164
|
const headerParameters = {};
|
|
5096
5165
|
const response = await this.request({
|
|
5097
5166
|
path: `/sdk/{environmentId}/chains/{chainName}/transactions/{address}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"chainName"}}`, encodeURIComponent(String(requestParameters.chainName))).replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
|
|
@@ -9975,6 +10044,15 @@ class SDKApi extends BaseAPI {
|
|
|
9975
10044
|
await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
|
|
9976
10045
|
}
|
|
9977
10046
|
}
|
|
10047
|
+
/**
|
|
10048
|
+
* @export
|
|
10049
|
+
* @enum {string}
|
|
10050
|
+
*/
|
|
10051
|
+
var GetAleoCuratedPricesNetworkEnum;
|
|
10052
|
+
(function (GetAleoCuratedPricesNetworkEnum) {
|
|
10053
|
+
GetAleoCuratedPricesNetworkEnum["Testnet"] = "testnet";
|
|
10054
|
+
GetAleoCuratedPricesNetworkEnum["Mainnet"] = "mainnet";
|
|
10055
|
+
})(GetAleoCuratedPricesNetworkEnum || (GetAleoCuratedPricesNetworkEnum = {}));
|
|
9978
10056
|
/**
|
|
9979
10057
|
* @export
|
|
9980
10058
|
* @enum {string}
|
|
@@ -10003,4 +10081,4 @@ var IsAleoFeemasterCoveredNetworkEnum;
|
|
|
10003
10081
|
IsAleoFeemasterCoveredNetworkEnum["Mainnet"] = "mainnet";
|
|
10004
10082
|
})(IsAleoFeemasterCoveredNetworkEnum || (IsAleoFeemasterCoveredNetworkEnum = {}));
|
|
10005
10083
|
|
|
10006
|
-
export { GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi };
|
|
10084
|
+
export { GetAleoCuratedPricesNetworkEnum, GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi };
|
package/src/index.cjs
CHANGED
|
@@ -67,6 +67,9 @@ var AdminSecurityIpSettings = require('./models/AdminSecurityIpSettings.cjs');
|
|
|
67
67
|
var AdminSecurityIpSettingsIpSettings = require('./models/AdminSecurityIpSettingsIpSettings.cjs');
|
|
68
68
|
var AdminSecurityJwtSettings = require('./models/AdminSecurityJwtSettings.cjs');
|
|
69
69
|
var AdminSecurityJwtSettingsJwtSettings = require('./models/AdminSecurityJwtSettingsJwtSettings.cjs');
|
|
70
|
+
var AleoCuratedPricesResponse = require('./models/AleoCuratedPricesResponse.cjs');
|
|
71
|
+
var AleoCuratedPricesResponseResult = require('./models/AleoCuratedPricesResponseResult.cjs');
|
|
72
|
+
var AleoCuratedTokenPrice = require('./models/AleoCuratedTokenPrice.cjs');
|
|
70
73
|
var Allowlist = require('./models/Allowlist.cjs');
|
|
71
74
|
var AllowlistEntriesResponse = require('./models/AllowlistEntriesResponse.cjs');
|
|
72
75
|
var AllowlistEntry = require('./models/AllowlistEntry.cjs');
|
|
@@ -801,6 +804,10 @@ exports.OrganizationsApi = OrganizationsApi.OrganizationsApi;
|
|
|
801
804
|
exports.OriginsApi = OriginsApi.OriginsApi;
|
|
802
805
|
exports.ProjectsApi = ProjectsApi.ProjectsApi;
|
|
803
806
|
exports.ProvidersApi = ProvidersApi.ProvidersApi;
|
|
807
|
+
Object.defineProperty(exports, 'GetAleoCuratedPricesNetworkEnum', {
|
|
808
|
+
enumerable: true,
|
|
809
|
+
get: function () { return SDKApi.GetAleoCuratedPricesNetworkEnum; }
|
|
810
|
+
});
|
|
804
811
|
Object.defineProperty(exports, 'GetAleoFeemasterPolicyNetworkEnum', {
|
|
805
812
|
enumerable: true,
|
|
806
813
|
get: function () { return SDKApi.GetAleoFeemasterPolicyNetworkEnum; }
|
|
@@ -910,6 +917,15 @@ exports.AdminSecurityJwtSettingsToJSON = AdminSecurityJwtSettings.AdminSecurityJ
|
|
|
910
917
|
exports.AdminSecurityJwtSettingsJwtSettingsFromJSON = AdminSecurityJwtSettingsJwtSettings.AdminSecurityJwtSettingsJwtSettingsFromJSON;
|
|
911
918
|
exports.AdminSecurityJwtSettingsJwtSettingsFromJSONTyped = AdminSecurityJwtSettingsJwtSettings.AdminSecurityJwtSettingsJwtSettingsFromJSONTyped;
|
|
912
919
|
exports.AdminSecurityJwtSettingsJwtSettingsToJSON = AdminSecurityJwtSettingsJwtSettings.AdminSecurityJwtSettingsJwtSettingsToJSON;
|
|
920
|
+
exports.AleoCuratedPricesResponseFromJSON = AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSON;
|
|
921
|
+
exports.AleoCuratedPricesResponseFromJSONTyped = AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSONTyped;
|
|
922
|
+
exports.AleoCuratedPricesResponseToJSON = AleoCuratedPricesResponse.AleoCuratedPricesResponseToJSON;
|
|
923
|
+
exports.AleoCuratedPricesResponseResultFromJSON = AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultFromJSON;
|
|
924
|
+
exports.AleoCuratedPricesResponseResultFromJSONTyped = AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultFromJSONTyped;
|
|
925
|
+
exports.AleoCuratedPricesResponseResultToJSON = AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultToJSON;
|
|
926
|
+
exports.AleoCuratedTokenPriceFromJSON = AleoCuratedTokenPrice.AleoCuratedTokenPriceFromJSON;
|
|
927
|
+
exports.AleoCuratedTokenPriceFromJSONTyped = AleoCuratedTokenPrice.AleoCuratedTokenPriceFromJSONTyped;
|
|
928
|
+
exports.AleoCuratedTokenPriceToJSON = AleoCuratedTokenPrice.AleoCuratedTokenPriceToJSON;
|
|
913
929
|
exports.AllowlistFromJSON = Allowlist.AllowlistFromJSON;
|
|
914
930
|
exports.AllowlistFromJSONTyped = Allowlist.AllowlistFromJSONTyped;
|
|
915
931
|
exports.AllowlistToJSON = Allowlist.AllowlistToJSON;
|
package/src/index.js
CHANGED
|
@@ -28,7 +28,7 @@ export { OrganizationsApi } from './apis/OrganizationsApi.js';
|
|
|
28
28
|
export { OriginsApi } from './apis/OriginsApi.js';
|
|
29
29
|
export { ProjectsApi } from './apis/ProjectsApi.js';
|
|
30
30
|
export { ProvidersApi } from './apis/ProvidersApi.js';
|
|
31
|
-
export { GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi } from './apis/SDKApi.js';
|
|
31
|
+
export { GetAleoCuratedPricesNetworkEnum, GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi } from './apis/SDKApi.js';
|
|
32
32
|
export { SDKViewsApi } from './apis/SDKViewsApi.js';
|
|
33
33
|
export { SessionsApi } from './apis/SessionsApi.js';
|
|
34
34
|
export { TestAccountApi } from './apis/TestAccountApi.js';
|
|
@@ -63,6 +63,9 @@ export { AdminSecurityIpSettingsFromJSON, AdminSecurityIpSettingsFromJSONTyped,
|
|
|
63
63
|
export { AdminSecurityIpSettingsIpSettingsFromJSON, AdminSecurityIpSettingsIpSettingsFromJSONTyped, AdminSecurityIpSettingsIpSettingsToJSON } from './models/AdminSecurityIpSettingsIpSettings.js';
|
|
64
64
|
export { AdminSecurityJwtSettingsFromJSON, AdminSecurityJwtSettingsFromJSONTyped, AdminSecurityJwtSettingsToJSON } from './models/AdminSecurityJwtSettings.js';
|
|
65
65
|
export { AdminSecurityJwtSettingsJwtSettingsFromJSON, AdminSecurityJwtSettingsJwtSettingsFromJSONTyped, AdminSecurityJwtSettingsJwtSettingsToJSON } from './models/AdminSecurityJwtSettingsJwtSettings.js';
|
|
66
|
+
export { AleoCuratedPricesResponseFromJSON, AleoCuratedPricesResponseFromJSONTyped, AleoCuratedPricesResponseToJSON } from './models/AleoCuratedPricesResponse.js';
|
|
67
|
+
export { AleoCuratedPricesResponseResultFromJSON, AleoCuratedPricesResponseResultFromJSONTyped, AleoCuratedPricesResponseResultToJSON } from './models/AleoCuratedPricesResponseResult.js';
|
|
68
|
+
export { AleoCuratedTokenPriceFromJSON, AleoCuratedTokenPriceFromJSONTyped, AleoCuratedTokenPriceToJSON } from './models/AleoCuratedTokenPrice.js';
|
|
66
69
|
export { AllowlistFromJSON, AllowlistFromJSONTyped, AllowlistToJSON } from './models/Allowlist.js';
|
|
67
70
|
export { AllowlistEntriesResponseFromJSON, AllowlistEntriesResponseFromJSONTyped, AllowlistEntriesResponseToJSON } from './models/AllowlistEntriesResponse.js';
|
|
68
71
|
export { AllowlistEntryFromJSON, AllowlistEntryFromJSONTyped, AllowlistEntryToJSON } from './models/AllowlistEntry.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AleoCuratedPricesResponseResult = require('./AleoCuratedPricesResponseResult.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function AleoCuratedPricesResponseFromJSON(json) {
|
|
9
|
+
return AleoCuratedPricesResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AleoCuratedPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'result': AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultFromJSON(json['result']),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function AleoCuratedPricesResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'result': AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultToJSON(value.result),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.AleoCuratedPricesResponseFromJSON = AleoCuratedPricesResponseFromJSON;
|
|
32
|
+
exports.AleoCuratedPricesResponseFromJSONTyped = AleoCuratedPricesResponseFromJSONTyped;
|
|
33
|
+
exports.AleoCuratedPricesResponseToJSON = AleoCuratedPricesResponseToJSON;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { AleoCuratedPricesResponseResult } from './AleoCuratedPricesResponseResult';
|
|
13
|
+
/**
|
|
14
|
+
* Response wrapper for `GET /chains/aleo/prices`. Always present even
|
|
15
|
+
* when the requested network has no curated tokens — `result.prices`
|
|
16
|
+
* will simply be an empty array.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AleoCuratedPricesResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface AleoCuratedPricesResponse {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {AleoCuratedPricesResponseResult}
|
|
24
|
+
* @memberof AleoCuratedPricesResponse
|
|
25
|
+
*/
|
|
26
|
+
result: AleoCuratedPricesResponseResult;
|
|
27
|
+
}
|
|
28
|
+
export declare function AleoCuratedPricesResponseFromJSON(json: any): AleoCuratedPricesResponse;
|
|
29
|
+
export declare function AleoCuratedPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AleoCuratedPricesResponse;
|
|
30
|
+
export declare function AleoCuratedPricesResponseToJSON(value?: AleoCuratedPricesResponse | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AleoCuratedPricesResponseResultFromJSON, AleoCuratedPricesResponseResultToJSON } from './AleoCuratedPricesResponseResult.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AleoCuratedPricesResponseFromJSON(json) {
|
|
5
|
+
return AleoCuratedPricesResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AleoCuratedPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'result': AleoCuratedPricesResponseResultFromJSON(json['result']),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function AleoCuratedPricesResponseToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'result': AleoCuratedPricesResponseResultToJSON(value.result),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { AleoCuratedPricesResponseFromJSON, AleoCuratedPricesResponseFromJSONTyped, AleoCuratedPricesResponseToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var AleoCuratedTokenPrice = require('./AleoCuratedTokenPrice.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function AleoCuratedPricesResponseResultFromJSON(json) {
|
|
9
|
+
return AleoCuratedPricesResponseResultFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function AleoCuratedPricesResponseResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'prices': (json['prices'].map(AleoCuratedTokenPrice.AleoCuratedTokenPriceFromJSON)),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function AleoCuratedPricesResponseResultToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'prices': (value.prices.map(AleoCuratedTokenPrice.AleoCuratedTokenPriceToJSON)),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.AleoCuratedPricesResponseResultFromJSON = AleoCuratedPricesResponseResultFromJSON;
|
|
32
|
+
exports.AleoCuratedPricesResponseResultFromJSONTyped = AleoCuratedPricesResponseResultFromJSONTyped;
|
|
33
|
+
exports.AleoCuratedPricesResponseResultToJSON = AleoCuratedPricesResponseResultToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { AleoCuratedTokenPrice } from './AleoCuratedTokenPrice';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AleoCuratedPricesResponseResult
|
|
17
|
+
*/
|
|
18
|
+
export interface AleoCuratedPricesResponseResult {
|
|
19
|
+
/**
|
|
20
|
+
* Curated token list for the requested network. Every curated
|
|
21
|
+
* entry is returned regardless of whether the caller holds the
|
|
22
|
+
* token; the widget renders the full surface and joins by
|
|
23
|
+
* `(address, isNative)`.
|
|
24
|
+
* @type {Array<AleoCuratedTokenPrice>}
|
|
25
|
+
* @memberof AleoCuratedPricesResponseResult
|
|
26
|
+
*/
|
|
27
|
+
prices: Array<AleoCuratedTokenPrice>;
|
|
28
|
+
}
|
|
29
|
+
export declare function AleoCuratedPricesResponseResultFromJSON(json: any): AleoCuratedPricesResponseResult;
|
|
30
|
+
export declare function AleoCuratedPricesResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AleoCuratedPricesResponseResult;
|
|
31
|
+
export declare function AleoCuratedPricesResponseResultToJSON(value?: AleoCuratedPricesResponseResult | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AleoCuratedTokenPriceFromJSON, AleoCuratedTokenPriceToJSON } from './AleoCuratedTokenPrice.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function AleoCuratedPricesResponseResultFromJSON(json) {
|
|
5
|
+
return AleoCuratedPricesResponseResultFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function AleoCuratedPricesResponseResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'prices': (json['prices'].map(AleoCuratedTokenPriceFromJSON)),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function AleoCuratedPricesResponseResultToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'prices': (value.prices.map(AleoCuratedTokenPriceToJSON)),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { AleoCuratedPricesResponseResultFromJSON, AleoCuratedPricesResponseResultFromJSONTyped, AleoCuratedPricesResponseResultToJSON };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function AleoCuratedTokenPriceFromJSON(json) {
|
|
19
|
+
return AleoCuratedTokenPriceFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function AleoCuratedTokenPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'address': json['address'],
|
|
27
|
+
'isNative': json['isNative'],
|
|
28
|
+
'symbol': json['symbol'],
|
|
29
|
+
'tokenId': json['tokenId'],
|
|
30
|
+
'price': json['price'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function AleoCuratedTokenPriceToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'address': value.address,
|
|
42
|
+
'isNative': value.isNative,
|
|
43
|
+
'symbol': value.symbol,
|
|
44
|
+
'tokenId': value.tokenId,
|
|
45
|
+
'price': value.price,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.AleoCuratedTokenPriceFromJSON = AleoCuratedTokenPriceFromJSON;
|
|
50
|
+
exports.AleoCuratedTokenPriceFromJSONTyped = AleoCuratedTokenPriceFromJSONTyped;
|
|
51
|
+
exports.AleoCuratedTokenPriceToJSON = AleoCuratedTokenPriceToJSON;
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Single entry in the Aleo curated price list. The shape mirrors the
|
|
14
|
+
* multichain balance entry shape (`address`, `isNative`) so the widget
|
|
15
|
+
* can join the prices response against its unshielded balance feed on
|
|
16
|
+
* `(address, isNative)` without any translation.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AleoCuratedTokenPrice
|
|
19
|
+
*/
|
|
20
|
+
export interface AleoCuratedTokenPrice {
|
|
21
|
+
/**
|
|
22
|
+
* Wallet-facing token address. Native ALEO uses the `'0x0'` sentinel
|
|
23
|
+
* (matches `ALEO_NATIVE_ASSET.contractAddress` and the multichain
|
|
24
|
+
* balance feed); every other entry uses the on-chain program id
|
|
25
|
+
* (e.g. `usdcx_stablecoin.aleo`, `hyp_warp_token_eth.aleo`).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AleoCuratedTokenPrice
|
|
28
|
+
*/
|
|
29
|
+
address: string;
|
|
30
|
+
/**
|
|
31
|
+
* True for the native ALEO entry, false for every other token.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AleoCuratedTokenPrice
|
|
34
|
+
*/
|
|
35
|
+
isNative: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Display symbol (e.g. `ALEO`, `USDCx`, `wETH`).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AleoCuratedTokenPrice
|
|
40
|
+
*/
|
|
41
|
+
symbol: string;
|
|
42
|
+
/**
|
|
43
|
+
* CoinGecko id used to resolve the fiat price. Echoed back so
|
|
44
|
+
* consumers can confirm which pricing source produced the value.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AleoCuratedTokenPrice
|
|
47
|
+
*/
|
|
48
|
+
tokenId: string;
|
|
49
|
+
/**
|
|
50
|
+
* USD price per whole token unit, or `null` when the pricing source
|
|
51
|
+
* has no current price (token is unranked, cache miss, etc.).
|
|
52
|
+
* Clients should render an empty cell rather than treating `null`
|
|
53
|
+
* as `0`.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AleoCuratedTokenPrice
|
|
56
|
+
*/
|
|
57
|
+
price: number | null;
|
|
58
|
+
}
|
|
59
|
+
export declare function AleoCuratedTokenPriceFromJSON(json: any): AleoCuratedTokenPrice;
|
|
60
|
+
export declare function AleoCuratedTokenPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AleoCuratedTokenPrice;
|
|
61
|
+
export declare function AleoCuratedTokenPriceToJSON(value?: AleoCuratedTokenPrice | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function AleoCuratedTokenPriceFromJSON(json) {
|
|
15
|
+
return AleoCuratedTokenPriceFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function AleoCuratedTokenPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'address': json['address'],
|
|
23
|
+
'isNative': json['isNative'],
|
|
24
|
+
'symbol': json['symbol'],
|
|
25
|
+
'tokenId': json['tokenId'],
|
|
26
|
+
'price': json['price'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function AleoCuratedTokenPriceToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'address': value.address,
|
|
38
|
+
'isNative': value.isNative,
|
|
39
|
+
'symbol': value.symbol,
|
|
40
|
+
'tokenId': value.tokenId,
|
|
41
|
+
'price': value.price,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { AleoCuratedTokenPriceFromJSON, AleoCuratedTokenPriceFromJSONTyped, AleoCuratedTokenPriceToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export * from './AdminSecurityIpSettings';
|
|
|
21
21
|
export * from './AdminSecurityIpSettingsIpSettings';
|
|
22
22
|
export * from './AdminSecurityJwtSettings';
|
|
23
23
|
export * from './AdminSecurityJwtSettingsJwtSettings';
|
|
24
|
+
export * from './AleoCuratedPricesResponse';
|
|
25
|
+
export * from './AleoCuratedPricesResponseResult';
|
|
26
|
+
export * from './AleoCuratedTokenPrice';
|
|
24
27
|
export * from './Allowlist';
|
|
25
28
|
export * from './AllowlistEntriesResponse';
|
|
26
29
|
export * from './AllowlistEntry';
|