@ember-finance/sdk 2.36.0 → 2.38.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.
@@ -24,10 +24,8 @@ import type { ProofOfCapitalReport } from "../models/index.js";
24
24
  import type { ProtocolInfo } from "../models/index.js";
25
25
  import type { RawEvent } from "../models/index.js";
26
26
  import type { SharePriceHistory } from "../models/index.js";
27
- import type { Strategy } from "../models/index.js";
28
27
  import type { Tag } from "../models/index.js";
29
28
  import type { TvlHistory } from "../models/index.js";
30
- import type { UpdateVaultStrategies } from "../models/index.js";
31
29
  import type { VaultDetail } from "../models/index.js";
32
30
  import type { VaultsStats } from "../models/index.js";
33
31
  /**
@@ -144,14 +142,6 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
144
142
  * @throws {RequiredError}
145
143
  */
146
144
  getVaultSharePriceHistory: (vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
147
- /**
148
- *
149
- * @summary Get the strategy of the vault
150
- * @param {string} vaultId The id of the vault
151
- * @param {*} [options] Override http request option.
152
- * @throws {RequiredError}
153
- */
154
- getVaultStrategy: (vaultId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
155
145
  /**
156
146
  *
157
147
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -186,14 +176,6 @@ export declare const VaultsApiAxiosParamCreator: (configuration?: Configuration)
186
176
  * @throws {RequiredError}
187
177
  */
188
178
  getVaultsStats: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
189
- /**
190
- *
191
- * @summary Update the strategy of the vault
192
- * @param {UpdateVaultStrategies} updateVaultStrategies
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- updateVaultStrategy: (updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
197
179
  };
198
180
  /**
199
181
  * VaultsApi - functional programming interface
@@ -309,14 +291,6 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
309
291
  * @throws {RequiredError}
310
292
  */
311
293
  getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharePriceHistory>>>;
312
- /**
313
- *
314
- * @summary Get the strategy of the vault
315
- * @param {string} vaultId The id of the vault
316
- * @param {*} [options] Override http request option.
317
- * @throws {RequiredError}
318
- */
319
- getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Strategy>>>;
320
294
  /**
321
295
  *
322
296
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -351,14 +325,6 @@ export declare const VaultsApiFp: (configuration?: Configuration) => {
351
325
  * @throws {RequiredError}
352
326
  */
353
327
  getVaultsStats(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VaultsStats>>;
354
- /**
355
- *
356
- * @summary Update the strategy of the vault
357
- * @param {UpdateVaultStrategies} updateVaultStrategies
358
- * @param {*} [options] Override http request option.
359
- * @throws {RequiredError}
360
- */
361
- updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Strategy>>>;
362
328
  };
363
329
  /**
364
330
  * VaultsApi - factory interface
@@ -474,14 +440,6 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
474
440
  * @throws {RequiredError}
475
441
  */
476
442
  getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): AxiosPromise<Array<SharePriceHistory>>;
477
- /**
478
- *
479
- * @summary Get the strategy of the vault
480
- * @param {string} vaultId The id of the vault
481
- * @param {*} [options] Override http request option.
482
- * @throws {RequiredError}
483
- */
484
- getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Strategy>>;
485
443
  /**
486
444
  *
487
445
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -516,14 +474,6 @@ export declare const VaultsApiFactory: (configuration?: Configuration, basePath?
516
474
  * @throws {RequiredError}
517
475
  */
518
476
  getVaultsStats(options?: RawAxiosRequestConfig): AxiosPromise<VaultsStats>;
519
- /**
520
- *
521
- * @summary Update the strategy of the vault
522
- * @param {UpdateVaultStrategies} updateVaultStrategies
523
- * @param {*} [options] Override http request option.
524
- * @throws {RequiredError}
525
- */
526
- updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): AxiosPromise<Array<Strategy>>;
527
477
  };
528
478
  /**
529
479
  * VaultsApi - object-oriented interface
@@ -653,15 +603,6 @@ export declare class VaultsApi extends BaseAPI {
653
603
  * @memberof VaultsApi
654
604
  */
655
605
  getVaultSharePriceHistory(vaultId: string, limit?: number, interval?: HistoryInterval, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SharePriceHistory[], any, {}>>;
656
- /**
657
- *
658
- * @summary Get the strategy of the vault
659
- * @param {string} vaultId The id of the vault
660
- * @param {*} [options] Override http request option.
661
- * @throws {RequiredError}
662
- * @memberof VaultsApi
663
- */
664
- getVaultStrategy(vaultId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Strategy[], any, {}>>;
665
606
  /**
666
607
  *
667
608
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -700,13 +641,4 @@ export declare class VaultsApi extends BaseAPI {
700
641
  * @memberof VaultsApi
701
642
  */
702
643
  getVaultsStats(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VaultsStats, any, {}>>;
703
- /**
704
- *
705
- * @summary Update the strategy of the vault
706
- * @param {UpdateVaultStrategies} updateVaultStrategies
707
- * @param {*} [options] Override http request option.
708
- * @throws {RequiredError}
709
- * @memberof VaultsApi
710
- */
711
- updateVaultStrategy(updateVaultStrategies: UpdateVaultStrategies, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Strategy[], any, {}>>;
712
644
  }
@@ -14,7 +14,7 @@
14
14
  import globalAxios from "axios";
15
15
  // Some imports not used depending on template conditions
16
16
  // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from "../common.js";
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from "../common.js";
18
18
  // @ts-ignore
19
19
  import { BASE_PATH, BaseAPI, operationServerMap } from "../base.js";
20
20
  /**
@@ -471,38 +471,6 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
471
471
  options: localVarRequestOptions
472
472
  };
473
473
  },
474
- /**
475
- *
476
- * @summary Get the strategy of the vault
477
- * @param {string} vaultId The id of the vault
478
- * @param {*} [options] Override http request option.
479
- * @throws {RequiredError}
480
- */
481
- getVaultStrategy: async (vaultId, options = {}) => {
482
- // verify required parameter 'vaultId' is not null or undefined
483
- assertParamExists("getVaultStrategy", "vaultId", vaultId);
484
- const localVarPath = `/api/v1/vaults/strategy/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
485
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
486
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
487
- let baseOptions;
488
- if (configuration) {
489
- baseOptions = configuration.baseOptions;
490
- }
491
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
492
- const localVarHeaderParameter = {};
493
- const localVarQueryParameter = {};
494
- setSearchParams(localVarUrlObj, localVarQueryParameter);
495
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
- localVarRequestOptions.headers = {
497
- ...localVarHeaderParameter,
498
- ...headersFromBaseOptions,
499
- ...options.headers
500
- };
501
- return {
502
- url: toPathString(localVarUrlObj),
503
- options: localVarRequestOptions
504
- };
505
- },
506
474
  /**
507
475
  *
508
476
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -641,40 +609,6 @@ export const VaultsApiAxiosParamCreator = function (configuration) {
641
609
  url: toPathString(localVarUrlObj),
642
610
  options: localVarRequestOptions
643
611
  };
644
- },
645
- /**
646
- *
647
- * @summary Update the strategy of the vault
648
- * @param {UpdateVaultStrategies} updateVaultStrategies
649
- * @param {*} [options] Override http request option.
650
- * @throws {RequiredError}
651
- */
652
- updateVaultStrategy: async (updateVaultStrategies, options = {}) => {
653
- // verify required parameter 'updateVaultStrategies' is not null or undefined
654
- assertParamExists("updateVaultStrategy", "updateVaultStrategies", updateVaultStrategies);
655
- const localVarPath = `/api/v1/vaults/strategy`;
656
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
657
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
658
- let baseOptions;
659
- if (configuration) {
660
- baseOptions = configuration.baseOptions;
661
- }
662
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
663
- const localVarHeaderParameter = {};
664
- const localVarQueryParameter = {};
665
- localVarHeaderParameter["Content-Type"] = "application/json";
666
- setSearchParams(localVarUrlObj, localVarQueryParameter);
667
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
668
- localVarRequestOptions.headers = {
669
- ...localVarHeaderParameter,
670
- ...headersFromBaseOptions,
671
- ...options.headers
672
- };
673
- localVarRequestOptions.data = serializeDataIfNeeded(updateVaultStrategies, localVarRequestOptions, configuration);
674
- return {
675
- url: toPathString(localVarUrlObj),
676
- options: localVarRequestOptions
677
- };
678
612
  }
679
613
  };
680
614
  };
@@ -856,19 +790,6 @@ export const VaultsApiFp = function (configuration) {
856
790
  const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
857
791
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
858
792
  },
859
- /**
860
- *
861
- * @summary Get the strategy of the vault
862
- * @param {string} vaultId The id of the vault
863
- * @param {*} [options] Override http request option.
864
- * @throws {RequiredError}
865
- */
866
- async getVaultStrategy(vaultId, options) {
867
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultStrategy(vaultId, options);
868
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
869
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultStrategy"]?.[localVarOperationServerIndex]?.url;
870
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
871
- },
872
793
  /**
873
794
  *
874
795
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -923,19 +844,6 @@ export const VaultsApiFp = function (configuration) {
923
844
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
924
845
  const localVarOperationServerBasePath = operationServerMap["VaultsApi.getVaultsStats"]?.[localVarOperationServerIndex]?.url;
925
846
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
926
- },
927
- /**
928
- *
929
- * @summary Update the strategy of the vault
930
- * @param {UpdateVaultStrategies} updateVaultStrategies
931
- * @param {*} [options] Override http request option.
932
- * @throws {RequiredError}
933
- */
934
- async updateVaultStrategy(updateVaultStrategies, options) {
935
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultStrategy(updateVaultStrategies, options);
936
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
937
- const localVarOperationServerBasePath = operationServerMap["VaultsApi.updateVaultStrategy"]?.[localVarOperationServerIndex]?.url;
938
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
939
847
  }
940
848
  };
941
849
  };
@@ -1103,18 +1011,6 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
1103
1011
  .getVaultSharePriceHistory(vaultId, limit, interval, options)
1104
1012
  .then(request => request(axios, basePath));
1105
1013
  },
1106
- /**
1107
- *
1108
- * @summary Get the strategy of the vault
1109
- * @param {string} vaultId The id of the vault
1110
- * @param {*} [options] Override http request option.
1111
- * @throws {RequiredError}
1112
- */
1113
- getVaultStrategy(vaultId, options) {
1114
- return localVarFp
1115
- .getVaultStrategy(vaultId, options)
1116
- .then(request => request(axios, basePath));
1117
- },
1118
1014
  /**
1119
1015
  *
1120
1016
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -1164,18 +1060,6 @@ export const VaultsApiFactory = function (configuration, basePath, axios) {
1164
1060
  return localVarFp
1165
1061
  .getVaultsStats(options)
1166
1062
  .then(request => request(axios, basePath));
1167
- },
1168
- /**
1169
- *
1170
- * @summary Update the strategy of the vault
1171
- * @param {UpdateVaultStrategies} updateVaultStrategies
1172
- * @param {*} [options] Override http request option.
1173
- * @throws {RequiredError}
1174
- */
1175
- updateVaultStrategy(updateVaultStrategies, options) {
1176
- return localVarFp
1177
- .updateVaultStrategy(updateVaultStrategies, options)
1178
- .then(request => request(axios, basePath));
1179
1063
  }
1180
1064
  };
1181
1065
  };
@@ -1355,19 +1239,6 @@ export class VaultsApi extends BaseAPI {
1355
1239
  .getVaultSharePriceHistory(vaultId, limit, interval, options)
1356
1240
  .then(request => request(this.axios, this.basePath));
1357
1241
  }
1358
- /**
1359
- *
1360
- * @summary Get the strategy of the vault
1361
- * @param {string} vaultId The id of the vault
1362
- * @param {*} [options] Override http request option.
1363
- * @throws {RequiredError}
1364
- * @memberof VaultsApi
1365
- */
1366
- getVaultStrategy(vaultId, options) {
1367
- return VaultsApiFp(this.configuration)
1368
- .getVaultStrategy(vaultId, options)
1369
- .then(request => request(this.axios, this.basePath));
1370
- }
1371
1242
  /**
1372
1243
  *
1373
1244
  * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
@@ -1422,17 +1293,4 @@ export class VaultsApi extends BaseAPI {
1422
1293
  .getVaultsStats(options)
1423
1294
  .then(request => request(this.axios, this.basePath));
1424
1295
  }
1425
- /**
1426
- *
1427
- * @summary Update the strategy of the vault
1428
- * @param {UpdateVaultStrategies} updateVaultStrategies
1429
- * @param {*} [options] Override http request option.
1430
- * @throws {RequiredError}
1431
- * @memberof VaultsApi
1432
- */
1433
- updateVaultStrategy(updateVaultStrategies, options) {
1434
- return VaultsApiFp(this.configuration)
1435
- .updateVaultStrategy(updateVaultStrategies, options)
1436
- .then(request => request(this.axios, this.basePath));
1437
- }
1438
1296
  }
@@ -50,14 +50,12 @@ export * from "./request-redeemed-event.js";
50
50
  export * from "./reward.js";
51
51
  export * from "./reward-token.js";
52
52
  export * from "./share-price-history.js";
53
- export * from "./strategy.js";
54
53
  export * from "./strategy-account.js";
55
54
  export * from "./sub-account.js";
56
55
  export * from "./supplied.js";
57
56
  export * from "./tag.js";
58
57
  export * from "./tvl-history.js";
59
58
  export * from "./ultra-coin-info.js";
60
- export * from "./update-vault-strategies.js";
61
59
  export * from "./vault-admin-changed-event.js";
62
60
  export * from "./vault-created-event.js";
63
61
  export * from "./vault-deposit-event.js";
@@ -50,14 +50,12 @@ export * from "./request-redeemed-event.js";
50
50
  export * from "./reward.js";
51
51
  export * from "./reward-token.js";
52
52
  export * from "./share-price-history.js";
53
- export * from "./strategy.js";
54
53
  export * from "./strategy-account.js";
55
54
  export * from "./sub-account.js";
56
55
  export * from "./supplied.js";
57
56
  export * from "./tag.js";
58
57
  export * from "./tvl-history.js";
59
58
  export * from "./ultra-coin-info.js";
60
- export * from "./update-vault-strategies.js";
61
59
  export * from "./vault-admin-changed-event.js";
62
60
  export * from "./vault-created-event.js";
63
61
  export * from "./vault-deposit-event.js";
@@ -1,5 +1,4 @@
1
1
  import { registerAdapter } from "../registry.js";
2
- import { alphalend } from "./alphalend.js";
3
2
  import { bluefinSpot } from "./bluefin-spot.js";
4
3
  import { current } from "./current.js";
5
4
  import { openCover } from "./evm-protocols.js";
@@ -21,5 +20,5 @@ export { suilend } from "./suilend.js";
21
20
  * register a subset by hand to keep the surface small.
22
21
  */
23
22
  export function registerBundledAdapters() {
24
- [bluefinSpot, suilend, alphalend, current, navi, pendle, royco, openCover].forEach(registerAdapter);
23
+ [bluefinSpot, suilend, current, navi, pendle, royco, openCover].forEach(registerAdapter);
25
24
  }
@@ -1,5 +1,4 @@
1
1
  import { BaseClient as SuiClient } from "@mysten/sui/client";
2
- import { Signer } from "@firefly-exchange/library-sui";
3
2
  import { IVault, IVaultAccount } from "../interfaces/index.js";
4
3
  export declare class Vault {
5
4
  /**
@@ -11,38 +10,4 @@ export declare class Vault {
11
10
  static getVaultRate(suiClient: SuiClient, vaultId: string): Promise<number>;
12
11
  static getVault(suiClient: SuiClient, vaultId: string): Promise<IVault>;
13
12
  static getPendingWithdrawalRequests(suiClient: SuiClient, vaultId: string, walletAddress: string): Promise<IVaultAccount>;
14
- static signUpdateVaultStrategyRequest(payload: {
15
- vaultId: string;
16
- strategies: {
17
- platformName: string;
18
- strategistAddress: string;
19
- strategyType: string;
20
- allocationE9: string;
21
- apyE9: string;
22
- pointsApyE9: string;
23
- snapshotAt: number;
24
- }[];
25
- targetApyE9: string;
26
- supplyApyE9: string;
27
- reportedApyE9: string;
28
- }, signer: Signer): Promise<{
29
- bcsPayload: string;
30
- requestBody: {
31
- vaultId: string;
32
- strategies: {
33
- platformName: string;
34
- strategistAddress: string;
35
- strategyType: string;
36
- allocationE9: string;
37
- apyE9: string;
38
- pointsApyE9: string;
39
- snapshotAt: number;
40
- }[];
41
- targetApyE9: string;
42
- supplyApyE9: string;
43
- reportedApyE9: string;
44
- signedAt: number;
45
- signature: string;
46
- };
47
- }>;
48
13
  }
@@ -1,5 +1,4 @@
1
1
  import { bcs } from "@mysten/sui/bcs";
2
- import { BcsUpdateVaultStrategyRequest } from "../interfaces/bcs.js";
3
2
  import { tableIdOf, unwrapMoveFields } from "../utils/common.js";
4
3
  export class Vault {
5
4
  /**
@@ -101,28 +100,4 @@ export class Vault {
101
100
  };
102
101
  }
103
102
  }
104
- static async signUpdateVaultStrategyRequest(payload, signer) {
105
- const now = Date.now();
106
- const bcsPayload = BcsUpdateVaultStrategyRequest.serialize({
107
- vaultId: payload.vaultId,
108
- strategies: payload.strategies,
109
- targetApyE9: payload.targetApyE9,
110
- supplyApyE9: payload.supplyApyE9,
111
- reportedApyE9: payload.reportedApyE9,
112
- signedAt: now
113
- }).toBytes();
114
- const { signature, bytes } = await signer.signPersonalMessage(bcsPayload);
115
- return {
116
- bcsPayload: bytes,
117
- requestBody: {
118
- vaultId: payload.vaultId,
119
- strategies: payload.strategies,
120
- signedAt: now,
121
- targetApyE9: payload.targetApyE9,
122
- supplyApyE9: payload.supplyApyE9,
123
- reportedApyE9: payload.reportedApyE9,
124
- signature: signature
125
- }
126
- };
127
- }
128
103
  }
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.36.0",
4
+ "version": "2.38.0",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",
@@ -91,7 +91,6 @@
91
91
  },
92
92
  "devDependencies": {
93
93
  "@firefly-exchange/library-sui": "^3.0.0",
94
- "@mysten/bcs": "^2.0.3",
95
94
  "@mysten/sui": "^2.0.0",
96
95
  "@openapitools/openapi-generator-cli": "^2.41.0",
97
96
  "@types/chai": "^4.3.3",
@@ -118,7 +117,6 @@
118
117
  },
119
118
  "peerDependencies": {
120
119
  "@firefly-exchange/library-sui": "^3.0.0",
121
- "@mysten/bcs": "^2.0.3",
122
120
  "@mysten/sui": "^2.0.0",
123
121
  "ethers": "^6.13.4"
124
122
  },
@@ -1,60 +0,0 @@
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: 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
- *
14
- * @export
15
- * @interface Strategy
16
- */
17
- export interface Strategy {
18
- /**
19
- * The name of the platform
20
- * @type {string}
21
- * @memberof Strategy
22
- */
23
- platformName: string;
24
- /**
25
- * The address of the strategist
26
- * @type {string}
27
- * @memberof Strategy
28
- */
29
- strategistAddress: string;
30
- /**
31
- * The type of the strategy
32
- * @type {string}
33
- * @memberof Strategy
34
- */
35
- strategyType: string;
36
- /**
37
- * The allocation of the strategy
38
- * @type {string}
39
- * @memberof Strategy
40
- */
41
- allocationE9: string;
42
- /**
43
- * The apy of the strategy
44
- * @type {string}
45
- * @memberof Strategy
46
- */
47
- apyE9: string;
48
- /**
49
- * The points apy of the strategy
50
- * @type {string}
51
- * @memberof Strategy
52
- */
53
- pointsApyE9: string;
54
- /**
55
- * The timestamp of the snapshot
56
- * @type {number}
57
- * @memberof Strategy
58
- */
59
- snapshotAt: number;
60
- }
@@ -1,14 +0,0 @@
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: 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
- export {};
@@ -1,61 +0,0 @@
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: 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 type { Strategy } from "./strategy.js";
13
- /**
14
- *
15
- * @export
16
- * @interface UpdateVaultStrategies
17
- */
18
- export interface UpdateVaultStrategies {
19
- /**
20
- *
21
- * @type {Array<Strategy>}
22
- * @memberof UpdateVaultStrategies
23
- */
24
- strategies: Array<Strategy>;
25
- /**
26
- * The timestamp of the signature
27
- * @type {number}
28
- * @memberof UpdateVaultStrategies
29
- */
30
- signedAt: number;
31
- /**
32
- * The id of the vault
33
- * @type {string}
34
- * @memberof UpdateVaultStrategies
35
- */
36
- vaultId: string;
37
- /**
38
- * The target apy of the strategy
39
- * @type {string}
40
- * @memberof UpdateVaultStrategies
41
- */
42
- targetApyE9: string;
43
- /**
44
- * The supply apy of the strategy
45
- * @type {string}
46
- * @memberof UpdateVaultStrategies
47
- */
48
- supplyApyE9: string;
49
- /**
50
- * The reported apy of the strategy
51
- * @type {string}
52
- * @memberof UpdateVaultStrategies
53
- */
54
- reportedApyE9: string;
55
- /**
56
- * The signature of the request body
57
- * @type {string}
58
- * @memberof UpdateVaultStrategies
59
- */
60
- signature: string;
61
- }
@@ -1,14 +0,0 @@
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: 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
- export {};
@@ -1,26 +0,0 @@
1
- export declare const BcsUpdateVaultStrategyRequest: import("@mysten/bcs").BcsStruct<{
2
- vaultId: import("@mysten/bcs").BcsType<string, string, "string">;
3
- strategies: import("@mysten/bcs").BcsType<{
4
- platformName: string;
5
- strategistAddress: string;
6
- strategyType: string;
7
- allocationE9: string;
8
- apyE9: string;
9
- pointsApyE9: string;
10
- snapshotAt: string;
11
- }[], Iterable<{
12
- platformName: string;
13
- strategistAddress: string;
14
- strategyType: string;
15
- allocationE9: string;
16
- apyE9: string;
17
- pointsApyE9: string;
18
- snapshotAt: string | number | bigint;
19
- }> & {
20
- length: number;
21
- }, string>;
22
- targetApyE9: import("@mysten/bcs").BcsType<string, string, "string">;
23
- supplyApyE9: import("@mysten/bcs").BcsType<string, string, "string">;
24
- reportedApyE9: import("@mysten/bcs").BcsType<string, string, "string">;
25
- signedAt: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
26
- }, string>;
@@ -1,17 +0,0 @@
1
- import { bcs } from "@mysten/bcs";
2
- export const BcsUpdateVaultStrategyRequest = bcs.struct("UpdateVaultStrategyRequest", {
3
- vaultId: bcs.string(),
4
- strategies: bcs.vector(bcs.struct("Strategy", {
5
- platformName: bcs.string(),
6
- strategistAddress: bcs.string(),
7
- strategyType: bcs.string(),
8
- allocationE9: bcs.string(),
9
- apyE9: bcs.string(),
10
- pointsApyE9: bcs.string(),
11
- snapshotAt: bcs.u64()
12
- })),
13
- targetApyE9: bcs.string(),
14
- supplyApyE9: bcs.string(),
15
- reportedApyE9: bcs.string(),
16
- signedAt: bcs.u64()
17
- });