@ember-finance/sdk 1.0.0 → 1.0.1

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.
Files changed (107) hide show
  1. package/README.md +3 -3
  2. package/dist/src/vaults/api/api.d.ts +13 -0
  3. package/dist/src/vaults/api/api.js +31 -0
  4. package/dist/src/vaults/api/apis/accounts-api.d.ts +198 -0
  5. package/dist/src/vaults/api/apis/accounts-api.js +366 -0
  6. package/dist/src/vaults/api/apis/vaults-api.d.ts +441 -0
  7. package/dist/src/vaults/api/apis/vaults-api.js +903 -0
  8. package/dist/src/vaults/api/base.d.ts +42 -0
  9. package/dist/src/vaults/api/base.js +47 -0
  10. package/dist/src/vaults/api/common.d.ts +28 -0
  11. package/dist/src/vaults/api/common.js +115 -0
  12. package/dist/src/vaults/api/configuration.d.ts +74 -0
  13. package/dist/src/vaults/api/configuration.js +49 -0
  14. package/dist/src/vaults/api/index.d.ts +14 -0
  15. package/dist/src/vaults/api/index.js +32 -0
  16. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +21 -0
  17. package/dist/src/vaults/api/models/account-transaction-transaction-data.js +15 -0
  18. package/dist/src/vaults/api/models/account-transaction.d.ts +27 -0
  19. package/dist/src/vaults/api/models/account-transaction.js +23 -0
  20. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +63 -0
  21. package/dist/src/vaults/api/models/account-withdrawal-request.js +24 -0
  22. package/dist/src/vaults/api/models/asset.d.ts +41 -0
  23. package/dist/src/vaults/api/models/asset.js +15 -0
  24. package/dist/src/vaults/api/models/deposit-transaction.d.ts +38 -0
  25. package/dist/src/vaults/api/models/deposit-transaction.js +15 -0
  26. package/dist/src/vaults/api/models/exposure-coin.d.ts +23 -0
  27. package/dist/src/vaults/api/models/exposure-coin.js +15 -0
  28. package/dist/src/vaults/api/models/exposure-protocol.d.ts +19 -0
  29. package/dist/src/vaults/api/models/exposure-protocol.js +15 -0
  30. package/dist/src/vaults/api/models/exposure.d.ts +27 -0
  31. package/dist/src/vaults/api/models/exposure.js +15 -0
  32. package/dist/src/vaults/api/models/history-interval.d.ts +18 -0
  33. package/dist/src/vaults/api/models/history-interval.js +22 -0
  34. package/dist/src/vaults/api/models/index.d.ts +43 -0
  35. package/dist/src/vaults/api/models/index.js +59 -0
  36. package/dist/src/vaults/api/models/manager.d.ts +20 -0
  37. package/dist/src/vaults/api/models/manager.js +15 -0
  38. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +29 -0
  39. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.js +15 -0
  40. package/dist/src/vaults/api/models/pnl-history.d.ts +21 -0
  41. package/dist/src/vaults/api/models/pnl-history.js +15 -0
  42. package/dist/src/vaults/api/models/protocol-info.d.ts +27 -0
  43. package/dist/src/vaults/api/models/protocol-info.js +15 -0
  44. package/dist/src/vaults/api/models/protocol.d.ts +38 -0
  45. package/dist/src/vaults/api/models/protocol.js +23 -0
  46. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +28 -0
  47. package/dist/src/vaults/api/models/raw-event-event-data.js +15 -0
  48. package/dist/src/vaults/api/models/raw-event.d.ts +42 -0
  49. package/dist/src/vaults/api/models/raw-event.js +30 -0
  50. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +33 -0
  51. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.js +15 -0
  52. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +38 -0
  53. package/dist/src/vaults/api/models/redeem-request-processed-transaction.js +15 -0
  54. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +33 -0
  55. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.js +15 -0
  56. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +33 -0
  57. package/dist/src/vaults/api/models/redeem-request-transaction.js +15 -0
  58. package/dist/src/vaults/api/models/reported-apy.d.ts +15 -0
  59. package/dist/src/vaults/api/models/reported-apy.js +15 -0
  60. package/dist/src/vaults/api/models/request-processed-event.d.ts +53 -0
  61. package/dist/src/vaults/api/models/request-processed-event.js +15 -0
  62. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +49 -0
  63. package/dist/src/vaults/api/models/request-redeemed-event.js +15 -0
  64. package/dist/src/vaults/api/models/reward-token.d.ts +27 -0
  65. package/dist/src/vaults/api/models/reward-token.js +15 -0
  66. package/dist/src/vaults/api/models/share-price-history.d.ts +21 -0
  67. package/dist/src/vaults/api/models/share-price-history.js +15 -0
  68. package/dist/src/vaults/api/models/strategy.d.ts +41 -0
  69. package/dist/src/vaults/api/models/strategy.js +15 -0
  70. package/dist/src/vaults/api/models/sub-account.d.ts +19 -0
  71. package/dist/src/vaults/api/models/sub-account.js +15 -0
  72. package/dist/src/vaults/api/models/tvl-history.d.ts +21 -0
  73. package/dist/src/vaults/api/models/tvl-history.js +15 -0
  74. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +37 -0
  75. package/dist/src/vaults/api/models/ultra-coin-info.js +15 -0
  76. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +31 -0
  77. package/dist/src/vaults/api/models/update-vault-strategies.js +15 -0
  78. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +29 -0
  79. package/dist/src/vaults/api/models/vault-admin-changed-event.js +15 -0
  80. package/dist/src/vaults/api/models/vault-created-event.d.ts +38 -0
  81. package/dist/src/vaults/api/models/vault-created-event.js +15 -0
  82. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +49 -0
  83. package/dist/src/vaults/api/models/vault-deposit-event.js +15 -0
  84. package/dist/src/vaults/api/models/vault-detail.d.ts +95 -0
  85. package/dist/src/vaults/api/models/vault-detail.js +22 -0
  86. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +29 -0
  87. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.js +15 -0
  88. package/dist/src/vaults/api/models/vault-info.d.ts +57 -0
  89. package/dist/src/vaults/api/models/vault-info.js +15 -0
  90. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +29 -0
  91. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.js +15 -0
  92. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +29 -0
  93. package/dist/src/vaults/api/models/vault-operator-changed-event.js +15 -0
  94. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +25 -0
  95. package/dist/src/vaults/api/models/vault-paused-status-updated-event.js +15 -0
  96. package/dist/src/vaults/api/models/vault-protocol.d.ts +29 -0
  97. package/dist/src/vaults/api/models/vault-protocol.js +15 -0
  98. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +29 -0
  99. package/dist/src/vaults/api/models/vault-rate-updated-event.js +15 -0
  100. package/dist/src/vaults/api/models/vault-slice.d.ts +33 -0
  101. package/dist/src/vaults/api/models/vault-slice.js +15 -0
  102. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +37 -0
  103. package/dist/src/vaults/api/models/vault-sub-account-updated-event.js +15 -0
  104. package/dist/src/vaults/{bluefin-vaults.d.ts → ember-vaults.d.ts} +5 -1
  105. package/dist/src/vaults/{bluefin-vaults.js → ember-vaults.js} +19 -4
  106. package/dist/src/vaults/on-chain-calls/onchain-calls.js +1 -1
  107. package/package.json +7 -3
@@ -0,0 +1,42 @@
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 { Configuration } from "./configuration";
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from "axios";
14
+ export declare const BASE_PATH: string;
15
+ export declare const COLLECTION_FORMATS: {
16
+ csv: string;
17
+ ssv: string;
18
+ tsv: string;
19
+ pipes: string;
20
+ };
21
+ export interface RequestArgs {
22
+ url: string;
23
+ options: RawAxiosRequestConfig;
24
+ }
25
+ export declare class BaseAPI {
26
+ protected basePath: string;
27
+ protected axios: AxiosInstance;
28
+ protected configuration: Configuration | undefined;
29
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
30
+ }
31
+ export declare class RequiredError extends Error {
32
+ field: string;
33
+ constructor(field: string, msg?: string);
34
+ }
35
+ interface ServerMap {
36
+ [key: string]: {
37
+ url: string;
38
+ description: string;
39
+ }[];
40
+ }
41
+ export declare const operationServerMap: ServerMap;
42
+ export {};
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ exports.BASE_PATH = "https://vaults.api.sui-staging.bluefin.io".replace(/\/+$/, "");
22
+ exports.COLLECTION_FORMATS = {
23
+ csv: ",",
24
+ ssv: " ",
25
+ tsv: "\t",
26
+ pipes: "|"
27
+ };
28
+ class BaseAPI {
29
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
30
+ this.basePath = basePath;
31
+ this.axios = axios;
32
+ if (configuration) {
33
+ this.configuration = configuration;
34
+ this.basePath = configuration.basePath ?? basePath;
35
+ }
36
+ }
37
+ }
38
+ exports.BaseAPI = BaseAPI;
39
+ class RequiredError extends Error {
40
+ constructor(field, msg) {
41
+ super(msg);
42
+ this.field = field;
43
+ this.name = "RequiredError";
44
+ }
45
+ }
46
+ exports.RequiredError = RequiredError;
47
+ exports.operationServerMap = {};
@@ -0,0 +1,28 @@
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 { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from "axios";
15
+ export declare const DUMMY_BASE_URL = "https://example.com";
16
+ /**
17
+ *
18
+ * @throws {RequiredError}
19
+ */
20
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
21
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
22
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
23
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
24
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
25
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
26
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
27
+ export declare const toPathString: (url: URL) => string;
28
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
+ const base_1 = require("./base");
18
+ exports.DUMMY_BASE_URL = "https://example.com";
19
+ /**
20
+ *
21
+ * @throws {RequiredError}
22
+ */
23
+ const assertParamExists = function (functionName, paramName, paramValue) {
24
+ if (paramValue === null || paramValue === undefined) {
25
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
26
+ }
27
+ };
28
+ exports.assertParamExists = assertParamExists;
29
+ const setApiKeyToObject = async function (object, keyParamName, configuration) {
30
+ if (configuration && configuration.apiKey) {
31
+ const localVarApiKeyValue = typeof configuration.apiKey === "function"
32
+ ? await configuration.apiKey(keyParamName)
33
+ : await configuration.apiKey;
34
+ object[keyParamName] = localVarApiKeyValue;
35
+ }
36
+ };
37
+ exports.setApiKeyToObject = setApiKeyToObject;
38
+ const setBasicAuthToObject = function (object, configuration) {
39
+ if (configuration && (configuration.username || configuration.password)) {
40
+ object["auth"] = {
41
+ username: configuration.username,
42
+ password: configuration.password
43
+ };
44
+ }
45
+ };
46
+ exports.setBasicAuthToObject = setBasicAuthToObject;
47
+ const setBearerAuthToObject = async function (object, configuration) {
48
+ if (configuration && configuration.accessToken) {
49
+ const accessToken = typeof configuration.accessToken === "function"
50
+ ? await configuration.accessToken()
51
+ : await configuration.accessToken;
52
+ object["Authorization"] = "Bearer " + accessToken;
53
+ }
54
+ };
55
+ exports.setBearerAuthToObject = setBearerAuthToObject;
56
+ const setOAuthToObject = async function (object, name, scopes, configuration) {
57
+ if (configuration && configuration.accessToken) {
58
+ const localVarAccessTokenValue = typeof configuration.accessToken === "function"
59
+ ? await configuration.accessToken(name, scopes)
60
+ : await configuration.accessToken;
61
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
62
+ }
63
+ };
64
+ exports.setOAuthToObject = setOAuthToObject;
65
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
66
+ if (parameter == null)
67
+ return;
68
+ if (typeof parameter === "object") {
69
+ if (Array.isArray(parameter)) {
70
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
71
+ }
72
+ else {
73
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
74
+ }
75
+ }
76
+ else {
77
+ if (urlSearchParams.has(key)) {
78
+ urlSearchParams.append(key, parameter);
79
+ }
80
+ else {
81
+ urlSearchParams.set(key, parameter);
82
+ }
83
+ }
84
+ }
85
+ const setSearchParams = function (url, ...objects) {
86
+ const searchParams = new URLSearchParams(url.search);
87
+ setFlattenedQueryParams(searchParams, objects);
88
+ url.search = searchParams.toString();
89
+ };
90
+ exports.setSearchParams = setSearchParams;
91
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
92
+ const nonString = typeof value !== "string";
93
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
94
+ ? configuration.isJsonMime(requestOptions.headers["Content-Type"])
95
+ : nonString;
96
+ return needsSerialization
97
+ ? JSON.stringify(value !== undefined ? value : {})
98
+ : value || "";
99
+ };
100
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
101
+ const toPathString = function (url) {
102
+ return url.pathname + url.search + url.hash;
103
+ };
104
+ exports.toPathString = toPathString;
105
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
106
+ return (axios = globalAxios, basePath = BASE_PATH) => {
107
+ const axiosRequestArgs = {
108
+ ...axiosArgs.options,
109
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) +
110
+ axiosArgs.url
111
+ };
112
+ return axios.request(axiosRequestArgs);
113
+ };
114
+ };
115
+ exports.createRequestFunction = createRequestFunction;
@@ -0,0 +1,74 @@
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
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export declare class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ */
27
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
+ /**
29
+ * parameter for basic security
30
+ */
31
+ username?: string;
32
+ /**
33
+ * parameter for basic security
34
+ */
35
+ password?: string;
36
+ /**
37
+ * parameter for oauth2 security
38
+ * @param name security name
39
+ * @param scopes oauth2 scope
40
+ */
41
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
42
+ /**
43
+ * override base path
44
+ */
45
+ basePath?: string;
46
+ /**
47
+ * override server index
48
+ */
49
+ serverIndex?: number;
50
+ /**
51
+ * base options for axios calls
52
+ */
53
+ baseOptions?: any;
54
+ /**
55
+ * The FormData constructor that will be used to create multipart form data
56
+ * requests. You can inject this here so that execution environments that
57
+ * do not support the FormData class can still run the generated client.
58
+ *
59
+ * @type {new () => FormData}
60
+ */
61
+ formDataCtor?: new () => any;
62
+ constructor(param?: ConfigurationParameters);
63
+ /**
64
+ * Check if the given MIME is a JSON MIME.
65
+ * JSON MIME examples:
66
+ * application/json
67
+ * application/json; charset=UTF8
68
+ * APPLICATION/JSON
69
+ * application/vnd.company+json
70
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
71
+ * @return True if the given MIME is JSON, false otherwise.
72
+ */
73
+ isJsonMime(mime: string): boolean;
74
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Configuration = void 0;
17
+ class Configuration {
18
+ constructor(param = {}) {
19
+ this.apiKey = param.apiKey;
20
+ this.username = param.username;
21
+ this.password = param.password;
22
+ this.accessToken = param.accessToken;
23
+ this.basePath = param.basePath;
24
+ this.serverIndex = param.serverIndex;
25
+ this.baseOptions = {
26
+ ...param.baseOptions,
27
+ headers: {
28
+ ...param.baseOptions?.headers
29
+ }
30
+ };
31
+ this.formDataCtor = param.formDataCtor;
32
+ }
33
+ /**
34
+ * Check if the given MIME is a JSON MIME.
35
+ * JSON MIME examples:
36
+ * application/json
37
+ * application/json; charset=UTF8
38
+ * APPLICATION/JSON
39
+ * application/vnd.company+json
40
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
41
+ * @return True if the given MIME is JSON, false otherwise.
42
+ */
43
+ isJsonMime(mime) {
44
+ const jsonMime = new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
45
+ return (mime !== null &&
46
+ (jsonMime.test(mime) || mime.toLowerCase() === "application/json-patch+json"));
47
+ }
48
+ }
49
+ exports.Configuration = Configuration;
@@ -0,0 +1,14 @@
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
+ export * from "./api";
13
+ export * from "./configuration";
14
+ export * from "./models";
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
32
+ __exportStar(require("./models"), exports);
@@ -0,0 +1,21 @@
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 { DepositTransaction } from "./deposit-transaction";
13
+ import type { RedeemRequestCancelledTransaction } from "./redeem-request-cancelled-transaction";
14
+ import type { RedeemRequestProcessedTransaction } from "./redeem-request-processed-transaction";
15
+ import type { RedeemRequestSkippedTransaction } from "./redeem-request-skipped-transaction";
16
+ import type { RedeemRequestTransaction } from "./redeem-request-transaction";
17
+ /**
18
+ * @type AccountTransactionTransactionData
19
+ * The data of the transaction
20
+ */
21
+ export type AccountTransactionTransactionData = DepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
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 { AccountTransactionTransactionData } from "./account-transaction-transaction-data";
13
+ export interface AccountTransaction {
14
+ /**
15
+ * The type of the transaction
16
+ */
17
+ transactionType: AccountTransactionTransactionTypeEnum;
18
+ transactionData?: AccountTransactionTransactionData;
19
+ }
20
+ export declare const AccountTransactionTransactionTypeEnum: {
21
+ readonly Deposit: "Deposit";
22
+ readonly RedeemRequest: "RedeemRequest";
23
+ readonly RedeemRequestProcessed: "RedeemRequestProcessed";
24
+ readonly RedeemRequestSkipped: "RedeemRequestSkipped";
25
+ readonly RedeemRequestCancelled: "RedeemRequestCancelled";
26
+ };
27
+ export type AccountTransactionTransactionTypeEnum = (typeof AccountTransactionTransactionTypeEnum)[keyof typeof AccountTransactionTransactionTypeEnum];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountTransactionTransactionTypeEnum = void 0;
17
+ exports.AccountTransactionTransactionTypeEnum = {
18
+ Deposit: "Deposit",
19
+ RedeemRequest: "RedeemRequest",
20
+ RedeemRequestProcessed: "RedeemRequestProcessed",
21
+ RedeemRequestSkipped: "RedeemRequestSkipped",
22
+ RedeemRequestCancelled: "RedeemRequestCancelled"
23
+ };
@@ -0,0 +1,63 @@
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 { Asset } from "./asset";
13
+ import type { VaultSlice } from "./vault-slice";
14
+ export interface AccountWithdrawalRequest {
15
+ /**
16
+ * The status of the withdrawal request
17
+ */
18
+ status: AccountWithdrawalRequestStatusEnum;
19
+ /**
20
+ * The updated timestamp of the withdrawal request
21
+ */
22
+ updatedAt?: number;
23
+ /**
24
+ * The amount of the withdrawal request
25
+ */
26
+ withdrawnAmount: string;
27
+ /**
28
+ * The receiver of the withdrawal request
29
+ */
30
+ receiverAddress: string;
31
+ /**
32
+ * The shares amount of the withdrawal request
33
+ */
34
+ requestedAgainstShares: string;
35
+ receiptCoin: Asset;
36
+ depositCoin: Asset;
37
+ /**
38
+ * The timestamp of the withdrawal request
39
+ */
40
+ requestedAt: number;
41
+ /**
42
+ * The timestamp of the withdrawal request
43
+ */
44
+ processedAt?: number;
45
+ /**
46
+ * The sequence number of the withdrawal request
47
+ */
48
+ sequenceNumber: string;
49
+ /**
50
+ * The tx digest of the withdrawal request
51
+ */
52
+ txDigest?: string;
53
+ vault: VaultSlice;
54
+ }
55
+ export declare const AccountWithdrawalRequestStatusEnum: {
56
+ readonly Pending: "Pending";
57
+ readonly PendingCancelling: "PendingCancelling";
58
+ readonly Cancelled: "Cancelled";
59
+ readonly Processed: "Processed";
60
+ readonly Skipped: "Skipped";
61
+ readonly Processed2: "Processed";
62
+ };
63
+ export type AccountWithdrawalRequestStatusEnum = (typeof AccountWithdrawalRequestStatusEnum)[keyof typeof AccountWithdrawalRequestStatusEnum];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AccountWithdrawalRequestStatusEnum = void 0;
17
+ exports.AccountWithdrawalRequestStatusEnum = {
18
+ Pending: "Pending",
19
+ PendingCancelling: "PendingCancelling",
20
+ Cancelled: "Cancelled",
21
+ Processed: "Processed",
22
+ Skipped: "Skipped",
23
+ Processed2: "Processed"
24
+ };
@@ -0,0 +1,41 @@
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
+ export interface Asset {
13
+ /**
14
+ * The type of the asset, internal data
15
+ */
16
+ type: string;
17
+ /**
18
+ * The decimals of the asset, internal data
19
+ */
20
+ decimals: number;
21
+ /**
22
+ * The logo of the asset, offchain data
23
+ */
24
+ logoUrl: string;
25
+ /**
26
+ * The symbol of the asset, internal data
27
+ */
28
+ symbol: string;
29
+ /**
30
+ * The address of the asset, internal data
31
+ */
32
+ address: string;
33
+ /**
34
+ * The name of the asset, internal data
35
+ */
36
+ name: string;
37
+ /**
38
+ * The price of the asset
39
+ */
40
+ priceE9: string;
41
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });