@ember-finance/sdk 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ import { type RequestArgs, BaseAPI } from "../base.js";
15
15
  import type { AggregatedProofOfCapitalReport } from "../models/index.js";
16
16
  import type { ApyHistoryResponse } from "../models/index.js";
17
17
  import type { Chain } from "../models/index.js";
18
+ import type { CoinPlacementsResponse } from "../models/index.js";
18
19
  import type { CoinPrice } from "../models/index.js";
19
20
  import type { Fees } from "../models/index.js";
20
21
  import type { HistoryInterval } from "../models/index.js";
@@ -44,6 +45,16 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
44
45
  * @throws {RequiredError}
45
46
  */
46
47
  getAllTags: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
50
+ * @summary Get venues that list an Ember receipt coin
51
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
52
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
53
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ getCoinPlacements: (coin: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
58
  /**
48
59
  *
49
60
  * @summary Get the price of the coins
@@ -201,6 +212,16 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
201
212
  * @throws {RequiredError}
202
213
  */
203
214
  getAllTags(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Tag>>>;
215
+ /**
216
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
217
+ * @summary Get venues that list an Ember receipt coin
218
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
219
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
220
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ */
224
+ getCoinPlacements(coin: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CoinPlacementsResponse>>;
204
225
  /**
205
226
  *
206
227
  * @summary Get the price of the coins
@@ -358,6 +379,16 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
358
379
  * @throws {RequiredError}
359
380
  */
360
381
  getAllTags(options?: RawAxiosRequestConfig): AxiosPromise<Array<Tag>>;
382
+ /**
383
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
384
+ * @summary Get venues that list an Ember receipt coin
385
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
386
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
387
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ getCoinPlacements(coin: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig): AxiosPromise<CoinPlacementsResponse>;
361
392
  /**
362
393
  *
363
394
  * @summary Get the price of the coins
@@ -518,6 +549,17 @@ export declare class VaultsApi extends BaseAPI {
518
549
  * @memberof VaultsApi
519
550
  */
520
551
  getAllTags(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag[], any, {}>>;
552
+ /**
553
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
554
+ * @summary Get venues that list an Ember receipt coin
555
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
556
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
557
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ * @memberof VaultsApi
561
+ */
562
+ getCoinPlacements(coin: string, protocol?: string, chainIdentifier?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CoinPlacementsResponse, any, {}>>;
521
563
  /**
522
564
  *
523
565
  * @summary Get the price of the coins
@@ -52,6 +52,49 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
52
52
  options: localVarRequestOptions
53
53
  };
54
54
  },
55
+ /**
56
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
57
+ * @summary Get venues that list an Ember receipt coin
58
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
59
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
60
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ getCoinPlacements: async (coin, protocol, chainIdentifier, options = {}) => {
65
+ // verify required parameter 'coin' is not null or undefined
66
+ assertParamExists("getCoinPlacements", "coin", coin);
67
+ const localVarPath = `/api/v2/vaults/placements`;
68
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
69
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
70
+ let baseOptions;
71
+ if (configuration) {
72
+ baseOptions = configuration.baseOptions;
73
+ }
74
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
75
+ const localVarHeaderParameter = {};
76
+ const localVarQueryParameter = {};
77
+ if (coin !== undefined) {
78
+ localVarQueryParameter["coin"] = coin;
79
+ }
80
+ if (protocol !== undefined) {
81
+ localVarQueryParameter["protocol"] = protocol;
82
+ }
83
+ if (chainIdentifier !== undefined) {
84
+ localVarQueryParameter["chainIdentifier"] = chainIdentifier;
85
+ }
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = {
89
+ ...localVarHeaderParameter,
90
+ ...headersFromBaseOptions,
91
+ ...options.headers
92
+ };
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions
96
+ };
97
+ },
55
98
  /**
56
99
  *
57
100
  * @summary Get the price of the coins
@@ -667,6 +710,21 @@ export const VaultsApiFp = function (configuration) {
667
710
  ?.url;
668
711
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
669
712
  },
713
+ /**
714
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
715
+ * @summary Get venues that list an Ember receipt coin
716
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
717
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
718
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ async getCoinPlacements(coin, protocol, chainIdentifier, options) {
723
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinPlacements(coin, protocol, chainIdentifier, options);
724
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
725
+ const localVarOperationServerBasePath = operationServerMap["VaultsApi.getCoinPlacements"]?.[localVarOperationServerIndex]?.url;
726
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
727
+ },
670
728
  /**
671
729
  *
672
730
  * @summary Get the price of the coins
@@ -913,6 +971,20 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
913
971
  .getAllTags(options)
914
972
  .then(request => request(axios, basePath));
915
973
  },
974
+ /**
975
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
976
+ * @summary Get venues that list an Ember receipt coin
977
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
978
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
979
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ */
983
+ getCoinPlacements(coin, protocol, chainIdentifier, options) {
984
+ return localVarFp
985
+ .getCoinPlacements(coin, protocol, chainIdentifier, options)
986
+ .then(request => request(axios, basePath));
987
+ },
916
988
  /**
917
989
  *
918
990
  * @summary Get the price of the coins
@@ -1142,6 +1214,21 @@ export class VaultsApi extends BaseAPI {
1142
1214
  .getAllTags(options)
1143
1215
  .then(request => request(this.axios, this.basePath));
1144
1216
  }
1217
+ /**
1218
+ * Pointers only: which protocol venues list the coin. No amounts are returned — clients read those from chain, so a stale row here can drop a venue but can never report a wrong balance.
1219
+ * @summary Get venues that list an Ember receipt coin
1220
+ * @param {string} coin Sui coin type or EVM token address of the receipt coin
1221
+ * @param {string} [protocol] Restrict to one protocol adapter id, e.g. \&quot;bluefin-spot\&quot;
1222
+ * @param {string} [chainIdentifier] Narrow to one chain, e.g. \&quot;sui-mainnet\&quot;.
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ * @memberof VaultsApi
1226
+ */
1227
+ getCoinPlacements(coin, protocol, chainIdentifier, options) {
1228
+ return VaultsApiFp(this.configuration)
1229
+ .getCoinPlacements(coin, protocol, chainIdentifier, options)
1230
+ .then(request => request(this.axios, this.basePath));
1231
+ }
1145
1232
  /**
1146
1233
  *
1147
1234
  * @summary Get the price of the coins
@@ -75,6 +75,12 @@ export interface Chain {
75
75
  * @memberof Chain
76
76
  */
77
77
  isHidden: boolean;
78
+ /**
79
+ * A chain RPC endpoint safe to call from a browser, when we publish one. Absent means the caller must supply its own. Placement rows already carry this, but reading a wallet balance has no placement row to borrow one from, so it is exposed here too.
80
+ * @type {string}
81
+ * @memberof Chain
82
+ */
83
+ publicRpcUrl?: string;
78
84
  }
79
85
  export declare const ChainTypeEnum: {
80
86
  readonly Evm: "EVM";
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.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
+ *
14
+ * @export
15
+ * @interface CoinPlacement
16
+ */
17
+ export interface CoinPlacement {
18
+ /**
19
+ * Stable identity for this placement, for a client to key a list on. A protocol can list the same coin at several venues — the same pair at two fee tiers, or the two tranches of one market — so protocol and label together do not identify a row. Survives a re-sync.
20
+ * @type {string}
21
+ * @memberof CoinPlacement
22
+ */
23
+ id: string;
24
+ /**
25
+ * Adapter id, e.g. \"bluefin-spot\"
26
+ * @type {string}
27
+ * @memberof CoinPlacement
28
+ */
29
+ protocol: string;
30
+ /**
31
+ * The protocol\'s display name, e.g. \"Current Finance\". Absent when the protocol is not in our catalogue yet — render `protocol` then.
32
+ * @type {string}
33
+ * @memberof CoinPlacement
34
+ */
35
+ protocolName?: string;
36
+ /**
37
+ * Icon for the protocol. Absent when the protocol is not in our catalogue yet.
38
+ * @type {string}
39
+ * @memberof CoinPlacement
40
+ */
41
+ protocolLogoUrl?: string;
42
+ /**
43
+ * Chain identifier as catalogued, e.g. \"sui-mainnet\".
44
+ * @type {string}
45
+ * @memberof CoinPlacement
46
+ */
47
+ chainIdentifier: string;
48
+ /**
49
+ * EVM network id. Absent on chains that have none.
50
+ * @type {number}
51
+ * @memberof CoinPlacement
52
+ */
53
+ chainId?: number;
54
+ /**
55
+ * A chain RPC endpoint safe to call from a browser, when we publish one. Absent means the client should use its own configured endpoint.
56
+ * @type {string}
57
+ * @memberof CoinPlacement
58
+ */
59
+ rpcUrl?: string;
60
+ /**
61
+ * Pool, market or vault address. Never a symbol.
62
+ * @type {string}
63
+ * @memberof CoinPlacement
64
+ */
65
+ venue: string;
66
+ /**
67
+ * The token an account holds to represent its position here, when that is not the venue itself. Absent means the venue.
68
+ * @type {string}
69
+ * @memberof CoinPlacement
70
+ */
71
+ shareToken?: string;
72
+ /**
73
+ * Deep link to the venue.
74
+ * @type {string}
75
+ * @memberof CoinPlacement
76
+ */
77
+ url?: string;
78
+ /**
79
+ * The coin in its chain\'s own canonical form, ready to hand to an RPC.
80
+ * @type {string}
81
+ * @memberof CoinPlacement
82
+ */
83
+ coin: string;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof CoinPlacement
88
+ */
89
+ decimals: number;
90
+ /**
91
+ * Registry rows come from a protocol\'s own catalogue; Manual rows are hand-maintained for protocols that publish none.
92
+ * @type {string}
93
+ * @memberof CoinPlacement
94
+ */
95
+ source: CoinPlacementSourceEnum;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof CoinPlacement
100
+ */
101
+ label?: string;
102
+ /**
103
+ * Last time the venue was confirmed to still list the coin.
104
+ * @type {string}
105
+ * @memberof CoinPlacement
106
+ */
107
+ lastVerifiedAt?: string;
108
+ }
109
+ export declare const CoinPlacementSourceEnum: {
110
+ readonly Registry: "Registry";
111
+ readonly Manual: "Manual";
112
+ };
113
+ export type CoinPlacementSourceEnum = (typeof CoinPlacementSourceEnum)[keyof typeof CoinPlacementSourceEnum];
@@ -0,0 +1,17 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.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
+ export const CoinPlacementSourceEnum = {
15
+ Registry: "Registry",
16
+ Manual: "Manual"
17
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.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 type { CoinPlacement } from "./coin-placement.js";
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CoinPlacementsResponse
17
+ */
18
+ export interface CoinPlacementsResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CoinPlacement>}
22
+ * @memberof CoinPlacementsResponse
23
+ */
24
+ placements: Array<CoinPlacement>;
25
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.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
+ export {};
@@ -15,6 +15,8 @@ export * from "./asset.js";
15
15
  export * from "./borrowed.js";
16
16
  export * from "./chain.js";
17
17
  export * from "./chain-vault-details.js";
18
+ export * from "./coin-placement.js";
19
+ export * from "./coin-placements-response.js";
18
20
  export * from "./coin-price.js";
19
21
  export * from "./defi-integration.js";
20
22
  export * from "./deposit-transaction.js";
@@ -58,6 +60,7 @@ export * from "./poc-report-assets.js";
58
60
  export * from "./poc-report-exchange.js";
59
61
  export * from "./poc-report-exchanges.js";
60
62
  export * from "./poc-report-protocol.js";
63
+ export * from "./poc-report-protocol-asset.js";
61
64
  export * from "./poc-report-token.js";
62
65
  export * from "./poc-report-wallet.js";
63
66
  export * from "./poc-report-wallets.js";
@@ -15,6 +15,8 @@ export * from "./asset.js";
15
15
  export * from "./borrowed.js";
16
16
  export * from "./chain.js";
17
17
  export * from "./chain-vault-details.js";
18
+ export * from "./coin-placement.js";
19
+ export * from "./coin-placements-response.js";
18
20
  export * from "./coin-price.js";
19
21
  export * from "./defi-integration.js";
20
22
  export * from "./deposit-transaction.js";
@@ -58,6 +60,7 @@ export * from "./poc-report-assets.js";
58
60
  export * from "./poc-report-exchange.js";
59
61
  export * from "./poc-report-exchanges.js";
60
62
  export * from "./poc-report-protocol.js";
63
+ export * from "./poc-report-protocol-asset.js";
61
64
  export * from "./poc-report-token.js";
62
65
  export * from "./poc-report-wallet.js";
63
66
  export * from "./poc-report-wallets.js";
@@ -70,6 +70,18 @@ export interface InstantWithdrawConfig {
70
70
  * @memberof InstantWithdrawConfig
71
71
  */
72
72
  maxUtilizationPercentageE18: string;
73
+ /**
74
+ * Per-swap minimum gross value, in COLLATERAL base units (not 1e18 — the collateral\'s own decimals). A swap whose gross falls below this is rejected outright, not merely repriced. \"0\" disables the floor. Null means we have not indexed a value yet (no EmberShareWhitelistUpdated consumed since the column was added) — NOT the same as \"0\", so do not render it as \"no minimum\".
75
+ * @type {string}
76
+ * @memberof InstantWithdrawConfig
77
+ */
78
+ minSwapGross?: string | null;
79
+ /**
80
+ * Absolute ceiling on this source share\'s post-swap held value, in COLLATERAL base units. Unlike maxUtilizationPercentageE18 this is not a fraction of the atomic vault\'s TVL, so it cannot be slipped by transiently inflating TVL. \"0\" disables the cap. Null means we have not indexed a value yet — NOT the same as \"0\", so do not render it as \"no cap\".
81
+ * @type {string}
82
+ * @memberof InstantWithdrawConfig
83
+ */
84
+ maxHeldValueAbsolute?: string | null;
73
85
  /**
74
86
  *
75
87
  * @type {Array<FeeMultiplierTier>}
@@ -89,13 +101,20 @@ export interface InstantWithdrawConfig {
89
101
  */
90
102
  currentUtilizationE18?: string | null;
91
103
  /**
92
- * Currently swappable capacity in USD (1e9 fixed-point) — min(epoch remaining capacity, ALV available liquidity). Null until the first refresh.
104
+ * DEPRECATED — use availableCapacityInUsdE9, which carries the same value under a name matching the rest of the API (`E9` elsewhere means \"same unit at 1e9 scale\", not \"converted to USD\"; compare totalDepositsE9 vs totalDepositsInUsdE9). Kept in sync; removed once consumers migrate.
93
105
  * @type {string}
94
106
  * @memberof InstantWithdrawConfig
107
+ * @deprecated
95
108
  */
96
109
  availableCapacityE9?: string | null;
97
110
  /**
98
- * Currently swappable capacity in collateral units — min(epoch remaining capacity, ALV available liquidity). Null until the first refresh.
111
+ * availableCapacity valued in USD, 1e9 fixed-point. Null until the first refresh.
112
+ * @type {string}
113
+ * @memberof InstantWithdrawConfig
114
+ */
115
+ availableCapacityInUsdE9?: string | null;
116
+ /**
117
+ * How much MORE of this source share the atomic vault can take in, in COLLATERAL base units — the minimum of every ceiling the swap path enforces: the 24h epoch capacity, the vault\'s backing (idle + strategy assets), the concentration headroom (maxUtilizationPercentageE18 x ALV total assets, less the value already held of this share), and the absolute headroom (maxHeldValueAbsolute less held). 0 when a ceiling is already reached. Null until the first refresh.
99
118
  * @type {string}
100
119
  * @memberof InstantWithdrawConfig
101
120
  */
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Ember Protocol Vaults API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 2.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
+ *
14
+ * @export
15
+ * @interface PocReportProtocolAsset
16
+ */
17
+ export interface PocReportProtocolAsset {
18
+ /**
19
+ * The asset symbol (e.g., USDC)
20
+ * @type {string}
21
+ * @memberof PocReportProtocolAsset
22
+ */
23
+ symbol: string;
24
+ /**
25
+ * The asset contract address or coin type, when known
26
+ * @type {string}
27
+ * @memberof PocReportProtocolAsset
28
+ */
29
+ address?: string;
30
+ /**
31
+ * Which leg of the position this is. Borrow legs carry a negative value, so the legs sum to the position\'s net value.
32
+ * @type {string}
33
+ * @memberof PocReportProtocolAsset
34
+ */
35
+ side: PocReportProtocolAssetSideEnum;
36
+ /**
37
+ * The quantity held, in whole units of the asset
38
+ * @type {string}
39
+ * @memberof PocReportProtocolAsset
40
+ */
41
+ amount: string;
42
+ /**
43
+ * The value in e9 USD, negative for a borrow leg
44
+ * @type {string}
45
+ * @memberof PocReportProtocolAsset
46
+ */
47
+ valueUsdE9: string;
48
+ /**
49
+ * The asset icon url, when the data provider supplies one
50
+ * @type {string}
51
+ * @memberof PocReportProtocolAsset
52
+ */
53
+ logoUrl?: string;
54
+ }
55
+ export declare const PocReportProtocolAssetSideEnum: {
56
+ readonly Supply: "supply";
57
+ readonly Reward: "reward";
58
+ readonly Borrow: "borrow";
59
+ };
60
+ export type PocReportProtocolAssetSideEnum = (typeof PocReportProtocolAssetSideEnum)[keyof typeof PocReportProtocolAssetSideEnum];
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.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
+ export const PocReportProtocolAssetSideEnum = {
15
+ Supply: "supply",
16
+ Reward: "reward",
17
+ Borrow: "borrow"
18
+ };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PocReportProtocolAsset } from "./poc-report-protocol-asset.js";
12
13
  /**
13
14
  *
14
15
  * @export
@@ -63,4 +64,16 @@ export interface PocReportProtocol {
63
64
  * @memberof PocReportProtocol
64
65
  */
65
66
  chainLogoUrl?: string;
67
+ /**
68
+ * The data provider\'s own identifier for the protocol (e.g. morphoblue). Stable across renames, unlike name.
69
+ * @type {string}
70
+ * @memberof PocReportProtocol
71
+ */
72
+ protocolId?: string;
73
+ /**
74
+ * What the position is actually held in. Absent when the provider reports a position as a single value with no breakdown.
75
+ * @type {Array<PocReportProtocolAsset>}
76
+ * @memberof PocReportProtocol
77
+ */
78
+ assets?: Array<PocReportProtocolAsset>;
66
79
  }
@@ -76,7 +76,7 @@ export interface TransparencyRow {
76
76
  */
77
77
  protocol?: string;
78
78
  /**
79
- * The asset symbol/name. Absent for protocol positions, which the upstream providers report as a single value without an asset breakdown.
79
+ * The asset symbol/name. A protocol position is emitted as one row per asset it is held in, so this is set whenever the provider breaks the position down; it stays absent only when it does not.
80
80
  * @type {string}
81
81
  * @memberof TransparencyRow
82
82
  */
@@ -27,6 +27,12 @@ export interface VaultParkingLotInfo {
27
27
  * @memberof VaultParkingLotInfo
28
28
  */
29
29
  depositsPaused: boolean;
30
+ /**
31
+ * Whether cancelling a pending deposit request is currently blocked. New requests still join the queue and the operator still processes it, so the pending total can grow but not shrink. A client must not offer \"cancel\" while this is true — the on-chain call reverts.
32
+ * @type {boolean}
33
+ * @memberof VaultParkingLotInfo
34
+ */
35
+ cancellationsPaused: boolean;
30
36
  /**
31
37
  * Whether the parking lot is the vault\'s active deposit gate
32
38
  * @type {boolean}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "2.11.0",
4
+ "version": "2.12.0",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",