@dynamic-labs/sdk-api-core 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.969",
3
+ "version": "0.0.971",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
6
  var Account = require('../models/Account.cjs');
7
+ var AleoCuratedPricesResponse = require('../models/AleoCuratedPricesResponse.cjs');
7
8
  var AttachSourceRequest = require('../models/AttachSourceRequest.cjs');
8
9
  require('../models/AttestationConveyancePreference.cjs');
9
10
  require('../models/AuthModeEnum.cjs');
@@ -3073,6 +3074,68 @@ class SDKApi extends runtime.BaseAPI {
3073
3074
  async getAccountBalancesOptions(requestParameters, initOverrides) {
3074
3075
  await this.getAccountBalancesOptionsRaw(requestParameters, initOverrides);
3075
3076
  }
3077
+ /**
3078
+ * 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`.
3079
+ * Get curated Aleo token prices for the given network
3080
+ */
3081
+ async getAleoCuratedPricesRaw(requestParameters, initOverrides) {
3082
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3083
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPrices.');
3084
+ }
3085
+ if (requestParameters.network === null || requestParameters.network === undefined) {
3086
+ throw new runtime.RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getAleoCuratedPrices.');
3087
+ }
3088
+ const queryParameters = {};
3089
+ if (requestParameters.network !== undefined) {
3090
+ queryParameters['network'] = requestParameters.network;
3091
+ }
3092
+ const headerParameters = {};
3093
+ if (this.configuration && this.configuration.accessToken) {
3094
+ const token = this.configuration.accessToken;
3095
+ const tokenString = await token("bearerAuth", []);
3096
+ if (tokenString) {
3097
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3098
+ }
3099
+ }
3100
+ const response = await this.request({
3101
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3102
+ method: 'GET',
3103
+ headers: headerParameters,
3104
+ query: queryParameters,
3105
+ }, initOverrides);
3106
+ return new runtime.JSONApiResponse(response, (jsonValue) => AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSON(jsonValue));
3107
+ }
3108
+ /**
3109
+ * 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`.
3110
+ * Get curated Aleo token prices for the given network
3111
+ */
3112
+ async getAleoCuratedPrices(requestParameters, initOverrides) {
3113
+ const response = await this.getAleoCuratedPricesRaw(requestParameters, initOverrides);
3114
+ return await response.value();
3115
+ }
3116
+ /**
3117
+ * Options call for this endpoint
3118
+ */
3119
+ async getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides) {
3120
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3121
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPricesOptions.');
3122
+ }
3123
+ const queryParameters = {};
3124
+ const headerParameters = {};
3125
+ const response = await this.request({
3126
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3127
+ method: 'OPTIONS',
3128
+ headers: headerParameters,
3129
+ query: queryParameters,
3130
+ }, initOverrides);
3131
+ return new runtime.VoidApiResponse(response);
3132
+ }
3133
+ /**
3134
+ * Options call for this endpoint
3135
+ */
3136
+ async getAleoCuratedPricesOptions(requestParameters, initOverrides) {
3137
+ await this.getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides);
3138
+ }
3076
3139
  /**
3077
3140
  * 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.
3078
3141
  * Get the ANF Feemaster sponsorship policy for Aleo
@@ -4944,6 +5007,9 @@ class SDKApi extends runtime.BaseAPI {
4944
5007
  if (requestParameters.offset !== undefined) {
4945
5008
  queryParameters['offset'] = requestParameters.offset;
4946
5009
  }
5010
+ if (requestParameters.tokenAddress !== undefined) {
5011
+ queryParameters['tokenAddress'] = requestParameters.tokenAddress;
5012
+ }
4947
5013
  const headerParameters = {};
4948
5014
  if (this.configuration && this.configuration.accessToken) {
4949
5015
  const token = this.configuration.accessToken;
@@ -4994,6 +5060,9 @@ class SDKApi extends runtime.BaseAPI {
4994
5060
  if (requestParameters.offset !== undefined) {
4995
5061
  queryParameters['offset'] = requestParameters.offset;
4996
5062
  }
5063
+ if (requestParameters.tokenAddress !== undefined) {
5064
+ queryParameters['tokenAddress'] = requestParameters.tokenAddress;
5065
+ }
4997
5066
  const headerParameters = {};
4998
5067
  const response = await this.request({
4999
5068
  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))),
@@ -9877,6 +9946,15 @@ class SDKApi extends runtime.BaseAPI {
9877
9946
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
9878
9947
  }
9879
9948
  }
9949
+ /**
9950
+ * @export
9951
+ * @enum {string}
9952
+ */
9953
+ exports.GetAleoCuratedPricesNetworkEnum = void 0;
9954
+ (function (GetAleoCuratedPricesNetworkEnum) {
9955
+ GetAleoCuratedPricesNetworkEnum["Testnet"] = "testnet";
9956
+ GetAleoCuratedPricesNetworkEnum["Mainnet"] = "mainnet";
9957
+ })(exports.GetAleoCuratedPricesNetworkEnum || (exports.GetAleoCuratedPricesNetworkEnum = {}));
9880
9958
  /**
9881
9959
  * @export
9882
9960
  * @enum {string}
@@ -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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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, InlineObject, InlineObject1, InlineObject2, InlineObject3, InlineObject4, InlineResponse200, InlineResponse2001, InlineResponse2002, InlineResponse2003, InlineResponse2004, InlineResponse2005, InlineResponse2006, 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;
@@ -612,6 +619,7 @@ export interface GetWalletTransactionsRequest {
612
619
  networkId: number;
613
620
  limit?: number;
614
621
  offset?: string;
622
+ tokenAddress?: string;
615
623
  }
616
624
  export interface GetWalletTransactionsOptionsRequest {
617
625
  environmentId: string;
@@ -620,6 +628,7 @@ export interface GetWalletTransactionsOptionsRequest {
620
628
  networkId: number;
621
629
  limit?: number;
622
630
  offset?: string;
631
+ tokenAddress?: string;
623
632
  }
624
633
  export interface GlobalWalletConnectionsOptionsRequest {
625
634
  environmentId: string;
@@ -2061,6 +2070,24 @@ export declare class SDKApi extends runtime.BaseAPI {
2061
2070
  * Options call for this endpoint
2062
2071
  */
2063
2072
  getAccountBalancesOptions(requestParameters: GetAccountBalancesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2073
+ /**
2074
+ * 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`.
2075
+ * Get curated Aleo token prices for the given network
2076
+ */
2077
+ getAleoCuratedPricesRaw(requestParameters: GetAleoCuratedPricesRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<AleoCuratedPricesResponse>>;
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
+ getAleoCuratedPrices(requestParameters: GetAleoCuratedPricesRequest, initOverrides?: RequestInit): Promise<AleoCuratedPricesResponse>;
2083
+ /**
2084
+ * Options call for this endpoint
2085
+ */
2086
+ getAleoCuratedPricesOptionsRaw(requestParameters: GetAleoCuratedPricesOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
2087
+ /**
2088
+ * Options call for this endpoint
2089
+ */
2090
+ getAleoCuratedPricesOptions(requestParameters: GetAleoCuratedPricesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
2064
2091
  /**
2065
2092
  * 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.
2066
2093
  * Get the ANF Feemaster sponsorship policy for Aleo
@@ -4136,6 +4163,14 @@ export declare class SDKApi extends runtime.BaseAPI {
4136
4163
  */
4137
4164
  walletsVerifyOptions(requestParameters: WalletsVerifyOptionsRequest, initOverrides?: RequestInit): Promise<void>;
4138
4165
  }
4166
+ /**
4167
+ * @export
4168
+ * @enum {string}
4169
+ */
4170
+ export declare enum GetAleoCuratedPricesNetworkEnum {
4171
+ Testnet = "testnet",
4172
+ Mainnet = "mainnet"
4173
+ }
4139
4174
  /**
4140
4175
  * @export
4141
4176
  * @enum {string}
@@ -1,5 +1,6 @@
1
1
  import { BaseAPI, RequiredError, JSONApiResponse, VoidApiResponse, TextApiResponse, canConsumeForm } from '../runtime.js';
2
2
  import { AccountFromJSON } from '../models/Account.js';
3
+ import { AleoCuratedPricesResponseFromJSON } from '../models/AleoCuratedPricesResponse.js';
3
4
  import { AttachSourceRequestToJSON } from '../models/AttachSourceRequest.js';
4
5
  import '../models/AttestationConveyancePreference.js';
5
6
  import '../models/AuthModeEnum.js';
@@ -3069,6 +3070,68 @@ class SDKApi extends BaseAPI {
3069
3070
  async getAccountBalancesOptions(requestParameters, initOverrides) {
3070
3071
  await this.getAccountBalancesOptionsRaw(requestParameters, initOverrides);
3071
3072
  }
3073
+ /**
3074
+ * 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`.
3075
+ * Get curated Aleo token prices for the given network
3076
+ */
3077
+ async getAleoCuratedPricesRaw(requestParameters, initOverrides) {
3078
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3079
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPrices.');
3080
+ }
3081
+ if (requestParameters.network === null || requestParameters.network === undefined) {
3082
+ throw new RequiredError('network', 'Required parameter requestParameters.network was null or undefined when calling getAleoCuratedPrices.');
3083
+ }
3084
+ const queryParameters = {};
3085
+ if (requestParameters.network !== undefined) {
3086
+ queryParameters['network'] = requestParameters.network;
3087
+ }
3088
+ const headerParameters = {};
3089
+ if (this.configuration && this.configuration.accessToken) {
3090
+ const token = this.configuration.accessToken;
3091
+ const tokenString = await token("bearerAuth", []);
3092
+ if (tokenString) {
3093
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
3094
+ }
3095
+ }
3096
+ const response = await this.request({
3097
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3098
+ method: 'GET',
3099
+ headers: headerParameters,
3100
+ query: queryParameters,
3101
+ }, initOverrides);
3102
+ return new JSONApiResponse(response, (jsonValue) => AleoCuratedPricesResponseFromJSON(jsonValue));
3103
+ }
3104
+ /**
3105
+ * 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`.
3106
+ * Get curated Aleo token prices for the given network
3107
+ */
3108
+ async getAleoCuratedPrices(requestParameters, initOverrides) {
3109
+ const response = await this.getAleoCuratedPricesRaw(requestParameters, initOverrides);
3110
+ return await response.value();
3111
+ }
3112
+ /**
3113
+ * Options call for this endpoint
3114
+ */
3115
+ async getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides) {
3116
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
3117
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getAleoCuratedPricesOptions.');
3118
+ }
3119
+ const queryParameters = {};
3120
+ const headerParameters = {};
3121
+ const response = await this.request({
3122
+ path: `/sdk/{environmentId}/chains/aleo/prices`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
3123
+ method: 'OPTIONS',
3124
+ headers: headerParameters,
3125
+ query: queryParameters,
3126
+ }, initOverrides);
3127
+ return new VoidApiResponse(response);
3128
+ }
3129
+ /**
3130
+ * Options call for this endpoint
3131
+ */
3132
+ async getAleoCuratedPricesOptions(requestParameters, initOverrides) {
3133
+ await this.getAleoCuratedPricesOptionsRaw(requestParameters, initOverrides);
3134
+ }
3072
3135
  /**
3073
3136
  * 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.
3074
3137
  * Get the ANF Feemaster sponsorship policy for Aleo
@@ -4940,6 +5003,9 @@ class SDKApi extends BaseAPI {
4940
5003
  if (requestParameters.offset !== undefined) {
4941
5004
  queryParameters['offset'] = requestParameters.offset;
4942
5005
  }
5006
+ if (requestParameters.tokenAddress !== undefined) {
5007
+ queryParameters['tokenAddress'] = requestParameters.tokenAddress;
5008
+ }
4943
5009
  const headerParameters = {};
4944
5010
  if (this.configuration && this.configuration.accessToken) {
4945
5011
  const token = this.configuration.accessToken;
@@ -4990,6 +5056,9 @@ class SDKApi extends BaseAPI {
4990
5056
  if (requestParameters.offset !== undefined) {
4991
5057
  queryParameters['offset'] = requestParameters.offset;
4992
5058
  }
5059
+ if (requestParameters.tokenAddress !== undefined) {
5060
+ queryParameters['tokenAddress'] = requestParameters.tokenAddress;
5061
+ }
4993
5062
  const headerParameters = {};
4994
5063
  const response = await this.request({
4995
5064
  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))),
@@ -9873,6 +9942,15 @@ class SDKApi extends BaseAPI {
9873
9942
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
9874
9943
  }
9875
9944
  }
9945
+ /**
9946
+ * @export
9947
+ * @enum {string}
9948
+ */
9949
+ var GetAleoCuratedPricesNetworkEnum;
9950
+ (function (GetAleoCuratedPricesNetworkEnum) {
9951
+ GetAleoCuratedPricesNetworkEnum["Testnet"] = "testnet";
9952
+ GetAleoCuratedPricesNetworkEnum["Mainnet"] = "mainnet";
9953
+ })(GetAleoCuratedPricesNetworkEnum || (GetAleoCuratedPricesNetworkEnum = {}));
9876
9954
  /**
9877
9955
  * @export
9878
9956
  * @enum {string}
@@ -9901,4 +9979,4 @@ var IsAleoFeemasterCoveredNetworkEnum;
9901
9979
  IsAleoFeemasterCoveredNetworkEnum["Mainnet"] = "mainnet";
9902
9980
  })(IsAleoFeemasterCoveredNetworkEnum || (IsAleoFeemasterCoveredNetworkEnum = {}));
9903
9981
 
9904
- export { GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi };
9982
+ export { GetAleoCuratedPricesNetworkEnum, GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi };
package/src/index.cjs CHANGED
@@ -7,6 +7,9 @@ var SDKApi = require('./apis/SDKApi.cjs');
7
7
  var WaasApi = require('./apis/WaasApi.cjs');
8
8
  var Account = require('./models/Account.cjs');
9
9
  var AccountBalances = require('./models/AccountBalances.cjs');
10
+ var AleoCuratedPricesResponse = require('./models/AleoCuratedPricesResponse.cjs');
11
+ var AleoCuratedPricesResponseResult = require('./models/AleoCuratedPricesResponseResult.cjs');
12
+ var AleoCuratedTokenPrice = require('./models/AleoCuratedTokenPrice.cjs');
10
13
  var Asset = require('./models/Asset.cjs');
11
14
  var AssetDiff = require('./models/AssetDiff.cjs');
12
15
  var AssetExposure = require('./models/AssetExposure.cjs');
@@ -493,6 +496,10 @@ exports.canConsumeForm = runtime.canConsumeForm;
493
496
  exports.exists = runtime.exists;
494
497
  exports.mapValues = runtime.mapValues;
495
498
  exports.querystring = runtime.querystring;
499
+ Object.defineProperty(exports, 'GetAleoCuratedPricesNetworkEnum', {
500
+ enumerable: true,
501
+ get: function () { return SDKApi.GetAleoCuratedPricesNetworkEnum; }
502
+ });
496
503
  Object.defineProperty(exports, 'GetAleoFeemasterPolicyNetworkEnum', {
497
504
  enumerable: true,
498
505
  get: function () { return SDKApi.GetAleoFeemasterPolicyNetworkEnum; }
@@ -513,6 +520,15 @@ exports.AccountToJSON = Account.AccountToJSON;
513
520
  exports.AccountBalancesFromJSON = AccountBalances.AccountBalancesFromJSON;
514
521
  exports.AccountBalancesFromJSONTyped = AccountBalances.AccountBalancesFromJSONTyped;
515
522
  exports.AccountBalancesToJSON = AccountBalances.AccountBalancesToJSON;
523
+ exports.AleoCuratedPricesResponseFromJSON = AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSON;
524
+ exports.AleoCuratedPricesResponseFromJSONTyped = AleoCuratedPricesResponse.AleoCuratedPricesResponseFromJSONTyped;
525
+ exports.AleoCuratedPricesResponseToJSON = AleoCuratedPricesResponse.AleoCuratedPricesResponseToJSON;
526
+ exports.AleoCuratedPricesResponseResultFromJSON = AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultFromJSON;
527
+ exports.AleoCuratedPricesResponseResultFromJSONTyped = AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultFromJSONTyped;
528
+ exports.AleoCuratedPricesResponseResultToJSON = AleoCuratedPricesResponseResult.AleoCuratedPricesResponseResultToJSON;
529
+ exports.AleoCuratedTokenPriceFromJSON = AleoCuratedTokenPrice.AleoCuratedTokenPriceFromJSON;
530
+ exports.AleoCuratedTokenPriceFromJSONTyped = AleoCuratedTokenPrice.AleoCuratedTokenPriceFromJSONTyped;
531
+ exports.AleoCuratedTokenPriceToJSON = AleoCuratedTokenPrice.AleoCuratedTokenPriceToJSON;
516
532
  exports.AssetFromJSON = Asset.AssetFromJSON;
517
533
  exports.AssetFromJSONTyped = Asset.AssetFromJSONTyped;
518
534
  exports.AssetToJSON = Asset.AssetToJSON;
package/src/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  export { BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, JSONApiResponse, RequiredError, TextApiResponse, VoidApiResponse, canConsumeForm, exists, mapValues, querystring } from './runtime.js';
2
- export { GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi } from './apis/SDKApi.js';
2
+ export { GetAleoCuratedPricesNetworkEnum, GetAleoFeemasterPolicyNetworkEnum, GetAleoScannerPubkeyNetworkEnum, IsAleoFeemasterCoveredNetworkEnum, SDKApi } from './apis/SDKApi.js';
3
3
  export { WaasApi } from './apis/WaasApi.js';
4
4
  export { AccountFromJSON, AccountFromJSONTyped, AccountToJSON } from './models/Account.js';
5
5
  export { AccountBalancesFromJSON, AccountBalancesFromJSONTyped, AccountBalancesToJSON } from './models/AccountBalances.js';
6
+ export { AleoCuratedPricesResponseFromJSON, AleoCuratedPricesResponseFromJSONTyped, AleoCuratedPricesResponseToJSON } from './models/AleoCuratedPricesResponse.js';
7
+ export { AleoCuratedPricesResponseResultFromJSON, AleoCuratedPricesResponseResultFromJSONTyped, AleoCuratedPricesResponseResultToJSON } from './models/AleoCuratedPricesResponseResult.js';
8
+ export { AleoCuratedTokenPriceFromJSON, AleoCuratedTokenPriceFromJSONTyped, AleoCuratedTokenPriceToJSON } from './models/AleoCuratedTokenPrice.js';
6
9
  export { AssetFromJSON, AssetFromJSONTyped, AssetToJSON } from './models/Asset.js';
7
10
  export { AssetDiffFromJSON, AssetDiffFromJSONTyped, AssetDiffToJSON } from './models/AssetDiff.js';
8
11
  export { AssetExposureFromJSON, AssetExposureFromJSONTyped, AssetExposureToJSON } from './models/AssetExposure.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 };
@@ -1,5 +1,8 @@
1
1
  export * from './Account';
2
2
  export * from './AccountBalances';
3
+ export * from './AleoCuratedPricesResponse';
4
+ export * from './AleoCuratedPricesResponseResult';
5
+ export * from './AleoCuratedTokenPrice';
3
6
  export * from './Asset';
4
7
  export * from './AssetDiff';
5
8
  export * from './AssetExposure';