@dynamic-labs/sdk-api-core 0.0.968 → 0.0.970

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/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');
@@ -161,6 +164,8 @@ var FundingExternalWallets = require('./models/FundingExternalWallets.cjs');
161
164
  var FundingExternalWalletsDefaultSettings = require('./models/FundingExternalWalletsDefaultSettings.cjs');
162
165
  var FundingExternalWalletsMinAmount = require('./models/FundingExternalWalletsMinAmount.cjs');
163
166
  var GeneratedTokenResponse = require('./models/GeneratedTokenResponse.cjs');
167
+ var GetAvailableEVMGaslessRelayerResponse = require('./models/GetAvailableEVMGaslessRelayerResponse.cjs');
168
+ var GetEVMSponsoredTransactionStatusResponse = require('./models/GetEVMSponsoredTransactionStatusResponse.cjs');
164
169
  var GetPasskeyAuthenticationOptionsResponse = require('./models/GetPasskeyAuthenticationOptionsResponse.cjs');
165
170
  var GetPasskeyRegistrationOptionsResponse = require('./models/GetPasskeyRegistrationOptionsResponse.cjs');
166
171
  var GetUserPasskeysResponse = require('./models/GetUserPasskeysResponse.cjs');
@@ -491,6 +496,10 @@ exports.canConsumeForm = runtime.canConsumeForm;
491
496
  exports.exists = runtime.exists;
492
497
  exports.mapValues = runtime.mapValues;
493
498
  exports.querystring = runtime.querystring;
499
+ Object.defineProperty(exports, 'GetAleoCuratedPricesNetworkEnum', {
500
+ enumerable: true,
501
+ get: function () { return SDKApi.GetAleoCuratedPricesNetworkEnum; }
502
+ });
494
503
  Object.defineProperty(exports, 'GetAleoFeemasterPolicyNetworkEnum', {
495
504
  enumerable: true,
496
505
  get: function () { return SDKApi.GetAleoFeemasterPolicyNetworkEnum; }
@@ -511,6 +520,15 @@ exports.AccountToJSON = Account.AccountToJSON;
511
520
  exports.AccountBalancesFromJSON = AccountBalances.AccountBalancesFromJSON;
512
521
  exports.AccountBalancesFromJSONTyped = AccountBalances.AccountBalancesFromJSONTyped;
513
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;
514
532
  exports.AssetFromJSON = Asset.AssetFromJSON;
515
533
  exports.AssetFromJSONTyped = Asset.AssetFromJSONTyped;
516
534
  exports.AssetToJSON = Asset.AssetToJSON;
@@ -1109,6 +1127,16 @@ exports.FundingExternalWalletsMinAmountToJSON = FundingExternalWalletsMinAmount.
1109
1127
  exports.GeneratedTokenResponseFromJSON = GeneratedTokenResponse.GeneratedTokenResponseFromJSON;
1110
1128
  exports.GeneratedTokenResponseFromJSONTyped = GeneratedTokenResponse.GeneratedTokenResponseFromJSONTyped;
1111
1129
  exports.GeneratedTokenResponseToJSON = GeneratedTokenResponse.GeneratedTokenResponseToJSON;
1130
+ exports.GetAvailableEVMGaslessRelayerResponseFromJSON = GetAvailableEVMGaslessRelayerResponse.GetAvailableEVMGaslessRelayerResponseFromJSON;
1131
+ exports.GetAvailableEVMGaslessRelayerResponseFromJSONTyped = GetAvailableEVMGaslessRelayerResponse.GetAvailableEVMGaslessRelayerResponseFromJSONTyped;
1132
+ exports.GetAvailableEVMGaslessRelayerResponseToJSON = GetAvailableEVMGaslessRelayerResponse.GetAvailableEVMGaslessRelayerResponseToJSON;
1133
+ exports.GetEVMSponsoredTransactionStatusResponseFromJSON = GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseFromJSON;
1134
+ exports.GetEVMSponsoredTransactionStatusResponseFromJSONTyped = GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseFromJSONTyped;
1135
+ Object.defineProperty(exports, 'GetEVMSponsoredTransactionStatusResponseStatusEnum', {
1136
+ enumerable: true,
1137
+ get: function () { return GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseStatusEnum; }
1138
+ });
1139
+ exports.GetEVMSponsoredTransactionStatusResponseToJSON = GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseToJSON;
1112
1140
  exports.GetPasskeyAuthenticationOptionsResponseFromJSON = GetPasskeyAuthenticationOptionsResponse.GetPasskeyAuthenticationOptionsResponseFromJSON;
1113
1141
  exports.GetPasskeyAuthenticationOptionsResponseFromJSONTyped = GetPasskeyAuthenticationOptionsResponse.GetPasskeyAuthenticationOptionsResponseFromJSONTyped;
1114
1142
  exports.GetPasskeyAuthenticationOptionsResponseToJSON = GetPasskeyAuthenticationOptionsResponse.GetPasskeyAuthenticationOptionsResponseToJSON;
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';
@@ -157,6 +160,8 @@ export { FundingExternalWalletsFromJSON, FundingExternalWalletsFromJSONTyped, Fu
157
160
  export { FundingExternalWalletsDefaultSettingsFromJSON, FundingExternalWalletsDefaultSettingsFromJSONTyped, FundingExternalWalletsDefaultSettingsToJSON } from './models/FundingExternalWalletsDefaultSettings.js';
158
161
  export { FundingExternalWalletsMinAmountFromJSON, FundingExternalWalletsMinAmountFromJSONTyped, FundingExternalWalletsMinAmountToJSON } from './models/FundingExternalWalletsMinAmount.js';
159
162
  export { GeneratedTokenResponseFromJSON, GeneratedTokenResponseFromJSONTyped, GeneratedTokenResponseToJSON } from './models/GeneratedTokenResponse.js';
163
+ export { GetAvailableEVMGaslessRelayerResponseFromJSON, GetAvailableEVMGaslessRelayerResponseFromJSONTyped, GetAvailableEVMGaslessRelayerResponseToJSON } from './models/GetAvailableEVMGaslessRelayerResponse.js';
164
+ export { GetEVMSponsoredTransactionStatusResponseFromJSON, GetEVMSponsoredTransactionStatusResponseFromJSONTyped, GetEVMSponsoredTransactionStatusResponseStatusEnum, GetEVMSponsoredTransactionStatusResponseToJSON } from './models/GetEVMSponsoredTransactionStatusResponse.js';
160
165
  export { GetPasskeyAuthenticationOptionsResponseFromJSON, GetPasskeyAuthenticationOptionsResponseFromJSONTyped, GetPasskeyAuthenticationOptionsResponseToJSON } from './models/GetPasskeyAuthenticationOptionsResponse.js';
161
166
  export { GetPasskeyRegistrationOptionsResponseFromJSON, GetPasskeyRegistrationOptionsResponseFromJSONTyped, GetPasskeyRegistrationOptionsResponseToJSON } from './models/GetPasskeyRegistrationOptionsResponse.js';
162
167
  export { GetUserPasskeysResponseFromJSON, GetUserPasskeysResponseFromJSONTyped, GetUserPasskeysResponseToJSON } from './models/GetUserPasskeysResponse.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 };
@@ -0,0 +1,43 @@
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 GetAvailableEVMGaslessRelayerResponseFromJSON(json) {
19
+ return GetAvailableEVMGaslessRelayerResponseFromJSONTyped(json);
20
+ }
21
+ function GetAvailableEVMGaslessRelayerResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'relayerAddress': json['relayerAddress'],
27
+ };
28
+ }
29
+ function GetAvailableEVMGaslessRelayerResponseToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'relayerAddress': value.relayerAddress,
38
+ };
39
+ }
40
+
41
+ exports.GetAvailableEVMGaslessRelayerResponseFromJSON = GetAvailableEVMGaslessRelayerResponseFromJSON;
42
+ exports.GetAvailableEVMGaslessRelayerResponseFromJSONTyped = GetAvailableEVMGaslessRelayerResponseFromJSONTyped;
43
+ exports.GetAvailableEVMGaslessRelayerResponseToJSON = GetAvailableEVMGaslessRelayerResponseToJSON;
@@ -0,0 +1,27 @@
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
+ * Available EVM gasless relayer address for the requested chain
14
+ * @export
15
+ * @interface GetAvailableEVMGaslessRelayerResponse
16
+ */
17
+ export interface GetAvailableEVMGaslessRelayerResponse {
18
+ /**
19
+ * Relayer EOA to embed in the EIP-712 sponsored transaction intent
20
+ * @type {string}
21
+ * @memberof GetAvailableEVMGaslessRelayerResponse
22
+ */
23
+ relayerAddress: string;
24
+ }
25
+ export declare function GetAvailableEVMGaslessRelayerResponseFromJSON(json: any): GetAvailableEVMGaslessRelayerResponse;
26
+ export declare function GetAvailableEVMGaslessRelayerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAvailableEVMGaslessRelayerResponse;
27
+ export declare function GetAvailableEVMGaslessRelayerResponseToJSON(value?: GetAvailableEVMGaslessRelayerResponse | null): any;
@@ -0,0 +1,37 @@
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 GetAvailableEVMGaslessRelayerResponseFromJSON(json) {
15
+ return GetAvailableEVMGaslessRelayerResponseFromJSONTyped(json);
16
+ }
17
+ function GetAvailableEVMGaslessRelayerResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'relayerAddress': json['relayerAddress'],
23
+ };
24
+ }
25
+ function GetAvailableEVMGaslessRelayerResponseToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'relayerAddress': value.relayerAddress,
34
+ };
35
+ }
36
+
37
+ export { GetAvailableEVMGaslessRelayerResponseFromJSON, GetAvailableEVMGaslessRelayerResponseFromJSONTyped, GetAvailableEVMGaslessRelayerResponseToJSON };
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ /**
9
+ * @export
10
+ * @enum {string}
11
+ */
12
+ exports.GetEVMSponsoredTransactionStatusResponseStatusEnum = void 0;
13
+ (function (GetEVMSponsoredTransactionStatusResponseStatusEnum) {
14
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Canceled"] = "CANCELED";
15
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Confirmed"] = "CONFIRMED";
16
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Expired"] = "EXPIRED";
17
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Failed"] = "FAILED";
18
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Pending"] = "PENDING";
19
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Rejected"] = "REJECTED";
20
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Sent"] = "SENT";
21
+ GetEVMSponsoredTransactionStatusResponseStatusEnum["Submitted"] = "SUBMITTED";
22
+ })(exports.GetEVMSponsoredTransactionStatusResponseStatusEnum || (exports.GetEVMSponsoredTransactionStatusResponseStatusEnum = {}));
23
+ function GetEVMSponsoredTransactionStatusResponseFromJSON(json) {
24
+ return GetEVMSponsoredTransactionStatusResponseFromJSONTyped(json);
25
+ }
26
+ function GetEVMSponsoredTransactionStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'errorMessage': !runtime.exists(json, 'errorMessage') ? undefined : json['errorMessage'],
32
+ 'status': json['status'],
33
+ 'transactionHash': !runtime.exists(json, 'transactionHash') ? undefined : json['transactionHash'],
34
+ };
35
+ }
36
+ function GetEVMSponsoredTransactionStatusResponseToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'errorMessage': value.errorMessage,
45
+ 'status': value.status,
46
+ 'transactionHash': value.transactionHash,
47
+ };
48
+ }
49
+
50
+ exports.GetEVMSponsoredTransactionStatusResponseFromJSON = GetEVMSponsoredTransactionStatusResponseFromJSON;
51
+ exports.GetEVMSponsoredTransactionStatusResponseFromJSONTyped = GetEVMSponsoredTransactionStatusResponseFromJSONTyped;
52
+ exports.GetEVMSponsoredTransactionStatusResponseToJSON = GetEVMSponsoredTransactionStatusResponseToJSON;
@@ -0,0 +1,53 @@
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
+ * Status of a sponsored EVM relay request
14
+ * @export
15
+ * @interface GetEVMSponsoredTransactionStatusResponse
16
+ */
17
+ export interface GetEVMSponsoredTransactionStatusResponse {
18
+ /**
19
+ * Error message if the transaction was rejected or reverted
20
+ * @type {string}
21
+ * @memberof GetEVMSponsoredTransactionStatusResponse
22
+ */
23
+ errorMessage?: string;
24
+ /**
25
+ * Current status of the relay request
26
+ * @type {string}
27
+ * @memberof GetEVMSponsoredTransactionStatusResponse
28
+ */
29
+ status: GetEVMSponsoredTransactionStatusResponseStatusEnum;
30
+ /**
31
+ * On-chain transaction hash once confirmed or reverted
32
+ * @type {string}
33
+ * @memberof GetEVMSponsoredTransactionStatusResponse
34
+ */
35
+ transactionHash?: string;
36
+ }
37
+ /**
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ export declare enum GetEVMSponsoredTransactionStatusResponseStatusEnum {
42
+ Canceled = "CANCELED",
43
+ Confirmed = "CONFIRMED",
44
+ Expired = "EXPIRED",
45
+ Failed = "FAILED",
46
+ Pending = "PENDING",
47
+ Rejected = "REJECTED",
48
+ Sent = "SENT",
49
+ Submitted = "SUBMITTED"
50
+ }
51
+ export declare function GetEVMSponsoredTransactionStatusResponseFromJSON(json: any): GetEVMSponsoredTransactionStatusResponse;
52
+ export declare function GetEVMSponsoredTransactionStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEVMSponsoredTransactionStatusResponse;
53
+ export declare function GetEVMSponsoredTransactionStatusResponseToJSON(value?: GetEVMSponsoredTransactionStatusResponse | null): any;