@ember-finance/sdk 1.0.9 → 1.0.11
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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/src/common/types.d.ts +0 -1
- package/dist/src/common/types.js +0 -1
- package/dist/src/vaults/api/apis/accounts-api.d.ts +22 -6
- package/dist/src/vaults/api/apis/accounts-api.js +17 -0
- package/dist/src/vaults/api/apis/vaults-api.d.ts +32 -14
- package/dist/src/vaults/api/apis/vaults-api.js +19 -0
- package/dist/src/vaults/api/base.d.ts +24 -0
- package/dist/src/vaults/api/base.js +19 -0
- package/dist/src/vaults/api/common.d.ts +37 -0
- package/dist/src/vaults/api/common.js +37 -0
- package/dist/src/vaults/api/configuration.d.ts +17 -0
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +1 -0
- package/dist/src/vaults/api/models/account-transaction.d.ts +12 -0
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +38 -0
- package/dist/src/vaults/api/models/apy-history.d.ts +13 -0
- package/dist/src/vaults/api/models/asset.d.ts +19 -0
- package/dist/src/vaults/api/models/borrowed.d.ts +16 -0
- package/dist/src/vaults/api/models/coin-price.d.ts +9 -0
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +30 -0
- package/dist/src/vaults/api/models/exposure-coin.d.ts +14 -0
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +25 -0
- package/dist/src/vaults/api/models/exposure.d.ts +11 -0
- package/dist/src/vaults/api/models/fee.d.ts +14 -0
- package/dist/src/vaults/api/models/history-interval.d.ts +5 -0
- package/dist/src/vaults/api/models/history-interval.js +5 -0
- package/dist/src/vaults/api/models/lp.d.ts +31 -0
- package/dist/src/vaults/api/models/manager.d.ts +22 -0
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +13 -0
- package/dist/src/vaults/api/models/perps.d.ts +9 -0
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +5 -0
- package/dist/src/vaults/api/models/pnl-history-interval.js +5 -0
- package/dist/src/vaults/api/models/pnl-history.d.ts +11 -0
- package/dist/src/vaults/api/models/position-value.d.ts +28 -0
- package/dist/src/vaults/api/models/position-value.js +5 -0
- package/dist/src/vaults/api/models/position.d.ts +13 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +25 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +19 -0
- package/dist/src/vaults/api/models/protocol-info.d.ts +14 -0
- package/dist/src/vaults/api/models/protocol.d.ts +13 -0
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +1 -0
- package/dist/src/vaults/api/models/raw-event.d.ts +16 -0
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +23 -0
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +30 -0
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +23 -0
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +23 -0
- package/dist/src/vaults/api/models/reported-apy.d.ts +15 -0
- package/dist/src/vaults/api/models/request-processed-event.d.ts +25 -0
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +23 -0
- package/dist/src/vaults/api/models/reward-token.d.ts +21 -0
- package/dist/src/vaults/api/models/reward.d.ts +14 -0
- package/dist/src/vaults/api/models/share-price-history.d.ts +9 -0
- package/dist/src/vaults/api/models/strategy.d.ts +19 -0
- package/dist/src/vaults/api/models/sub-account.d.ts +12 -0
- package/dist/src/vaults/api/models/supplied.d.ts +16 -0
- package/dist/src/vaults/api/models/tvl-history.d.ts +9 -0
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +17 -0
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +18 -0
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +13 -0
- package/dist/src/vaults/api/models/vault-created-event.d.ts +22 -0
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +23 -0
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +19 -0
- package/dist/src/vaults/api/models/vault-detail.d.ts +85 -0
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +13 -0
- package/dist/src/vaults/api/models/vault-info.d.ts +27 -0
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +13 -0
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +13 -0
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +11 -0
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +15 -0
- package/dist/src/vaults/api/models/vault-protocol.d.ts +13 -0
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +13 -0
- package/dist/src/vaults/api/models/vault-slice.d.ts +15 -0
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +17 -0
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +19 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +19 -0
- package/package.json +4 -3
|
@@ -15,10 +15,15 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
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
17
|
const base_1 = require("./base");
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
18
22
|
exports.DUMMY_BASE_URL = "https://example.com";
|
|
19
23
|
/**
|
|
20
24
|
*
|
|
21
25
|
* @throws {RequiredError}
|
|
26
|
+
* @export
|
|
22
27
|
*/
|
|
23
28
|
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
24
29
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -26,6 +31,10 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
26
31
|
}
|
|
27
32
|
};
|
|
28
33
|
exports.assertParamExists = assertParamExists;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
*/
|
|
29
38
|
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
30
39
|
if (configuration && configuration.apiKey) {
|
|
31
40
|
const localVarApiKeyValue = typeof configuration.apiKey === "function"
|
|
@@ -35,6 +44,10 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
|
35
44
|
}
|
|
36
45
|
};
|
|
37
46
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
38
51
|
const setBasicAuthToObject = function (object, configuration) {
|
|
39
52
|
if (configuration && (configuration.username || configuration.password)) {
|
|
40
53
|
object["auth"] = {
|
|
@@ -44,6 +57,10 @@ const setBasicAuthToObject = function (object, configuration) {
|
|
|
44
57
|
}
|
|
45
58
|
};
|
|
46
59
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
47
64
|
const setBearerAuthToObject = async function (object, configuration) {
|
|
48
65
|
if (configuration && configuration.accessToken) {
|
|
49
66
|
const accessToken = typeof configuration.accessToken === "function"
|
|
@@ -53,6 +70,10 @@ const setBearerAuthToObject = async function (object, configuration) {
|
|
|
53
70
|
}
|
|
54
71
|
};
|
|
55
72
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
56
77
|
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
57
78
|
if (configuration && configuration.accessToken) {
|
|
58
79
|
const localVarAccessTokenValue = typeof configuration.accessToken === "function"
|
|
@@ -82,12 +103,20 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
82
103
|
}
|
|
83
104
|
}
|
|
84
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
85
110
|
const setSearchParams = function (url, ...objects) {
|
|
86
111
|
const searchParams = new URLSearchParams(url.search);
|
|
87
112
|
setFlattenedQueryParams(searchParams, objects);
|
|
88
113
|
url.search = searchParams.toString();
|
|
89
114
|
};
|
|
90
115
|
exports.setSearchParams = setSearchParams;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
91
120
|
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
92
121
|
const nonString = typeof value !== "string";
|
|
93
122
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
@@ -98,10 +127,18 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
98
127
|
: value || "";
|
|
99
128
|
};
|
|
100
129
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
101
134
|
const toPathString = function (url) {
|
|
102
135
|
return url.pathname + url.search + url.hash;
|
|
103
136
|
};
|
|
104
137
|
exports.toPathString = toPathString;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @export
|
|
141
|
+
*/
|
|
105
142
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
106
143
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
107
144
|
const axiosRequestArgs = {
|
|
@@ -23,32 +23,49 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
+
* @memberof Configuration
|
|
26
27
|
*/
|
|
27
28
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
29
|
/**
|
|
29
30
|
* parameter for basic security
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Configuration
|
|
30
34
|
*/
|
|
31
35
|
username?: string;
|
|
32
36
|
/**
|
|
33
37
|
* parameter for basic security
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Configuration
|
|
34
41
|
*/
|
|
35
42
|
password?: string;
|
|
36
43
|
/**
|
|
37
44
|
* parameter for oauth2 security
|
|
38
45
|
* @param name security name
|
|
39
46
|
* @param scopes oauth2 scope
|
|
47
|
+
* @memberof Configuration
|
|
40
48
|
*/
|
|
41
49
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
42
50
|
/**
|
|
43
51
|
* override base path
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof Configuration
|
|
44
55
|
*/
|
|
45
56
|
basePath?: string;
|
|
46
57
|
/**
|
|
47
58
|
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
48
62
|
*/
|
|
49
63
|
serverIndex?: number;
|
|
50
64
|
/**
|
|
51
65
|
* base options for axios calls
|
|
66
|
+
*
|
|
67
|
+
* @type {any}
|
|
68
|
+
* @memberof Configuration
|
|
52
69
|
*/
|
|
53
70
|
baseOptions?: any;
|
|
54
71
|
/**
|
|
@@ -17,5 +17,6 @@ import type { RedeemRequestTransaction } from "./redeem-request-transaction";
|
|
|
17
17
|
/**
|
|
18
18
|
* @type AccountTransactionTransactionData
|
|
19
19
|
* The data of the transaction
|
|
20
|
+
* @export
|
|
20
21
|
*/
|
|
21
22
|
export type AccountTransactionTransactionData = DepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
|
|
@@ -10,11 +10,23 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountTransactionTransactionData } from "./account-transaction-transaction-data";
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountTransaction
|
|
17
|
+
*/
|
|
13
18
|
export interface AccountTransaction {
|
|
14
19
|
/**
|
|
15
20
|
* The type of the transaction
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountTransaction
|
|
16
23
|
*/
|
|
17
24
|
transactionType: AccountTransactionTransactionTypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {AccountTransactionTransactionData}
|
|
28
|
+
* @memberof AccountTransaction
|
|
29
|
+
*/
|
|
18
30
|
transactionData?: AccountTransactionTransactionData;
|
|
19
31
|
}
|
|
20
32
|
export declare const AccountTransactionTransactionTypeEnum: {
|
|
@@ -11,45 +11,83 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset";
|
|
13
13
|
import type { VaultSlice } from "./vault-slice";
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AccountWithdrawalRequest
|
|
18
|
+
*/
|
|
14
19
|
export interface AccountWithdrawalRequest {
|
|
15
20
|
/**
|
|
16
21
|
* The status of the withdrawal request
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AccountWithdrawalRequest
|
|
17
24
|
*/
|
|
18
25
|
status: AccountWithdrawalRequestStatusEnum;
|
|
19
26
|
/**
|
|
20
27
|
* The updated timestamp of the withdrawal request
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof AccountWithdrawalRequest
|
|
21
30
|
*/
|
|
22
31
|
updatedAt?: number;
|
|
23
32
|
/**
|
|
24
33
|
* The amount of the withdrawal request
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AccountWithdrawalRequest
|
|
25
36
|
*/
|
|
26
37
|
withdrawnAmount: string;
|
|
27
38
|
/**
|
|
28
39
|
* The receiver of the withdrawal request
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountWithdrawalRequest
|
|
29
42
|
*/
|
|
30
43
|
receiverAddress: string;
|
|
31
44
|
/**
|
|
32
45
|
* The shares amount of the withdrawal request
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountWithdrawalRequest
|
|
33
48
|
*/
|
|
34
49
|
requestedAgainstShares: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Asset}
|
|
53
|
+
* @memberof AccountWithdrawalRequest
|
|
54
|
+
*/
|
|
35
55
|
receiptCoin: Asset;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Asset}
|
|
59
|
+
* @memberof AccountWithdrawalRequest
|
|
60
|
+
*/
|
|
36
61
|
depositCoin: Asset;
|
|
37
62
|
/**
|
|
38
63
|
* The timestamp of the withdrawal request
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof AccountWithdrawalRequest
|
|
39
66
|
*/
|
|
40
67
|
requestedAt: number;
|
|
41
68
|
/**
|
|
42
69
|
* The timestamp of the withdrawal request
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof AccountWithdrawalRequest
|
|
43
72
|
*/
|
|
44
73
|
processedAt?: number;
|
|
45
74
|
/**
|
|
46
75
|
* The sequence number of the withdrawal request
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof AccountWithdrawalRequest
|
|
47
78
|
*/
|
|
48
79
|
sequenceNumber: string;
|
|
49
80
|
/**
|
|
50
81
|
* The tx digest of the withdrawal request
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof AccountWithdrawalRequest
|
|
51
84
|
*/
|
|
52
85
|
txDigest?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {VaultSlice}
|
|
89
|
+
* @memberof AccountWithdrawalRequest
|
|
90
|
+
*/
|
|
53
91
|
vault: VaultSlice;
|
|
54
92
|
}
|
|
55
93
|
export declare const AccountWithdrawalRequestStatusEnum: {
|
|
@@ -9,21 +9,34 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApyHistory
|
|
16
|
+
*/
|
|
12
17
|
export interface ApyHistory {
|
|
13
18
|
/**
|
|
14
19
|
* The timestamp of the event
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ApyHistory
|
|
15
22
|
*/
|
|
16
23
|
timestamp: number;
|
|
17
24
|
/**
|
|
18
25
|
* The apy of the event
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApyHistory
|
|
19
28
|
*/
|
|
20
29
|
apyE9: string;
|
|
21
30
|
/**
|
|
22
31
|
* The target apy of the event
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApyHistory
|
|
23
34
|
*/
|
|
24
35
|
targetApyE9: string;
|
|
25
36
|
/**
|
|
26
37
|
* The lending apy of the event
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApyHistory
|
|
27
40
|
*/
|
|
28
41
|
lendingApyE9: string;
|
|
29
42
|
}
|
|
@@ -9,33 +9,52 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Asset
|
|
16
|
+
*/
|
|
12
17
|
export interface Asset {
|
|
13
18
|
/**
|
|
14
19
|
* The type of the asset, internal data
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Asset
|
|
15
22
|
*/
|
|
16
23
|
type: string;
|
|
17
24
|
/**
|
|
18
25
|
* The decimals of the asset, internal data
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Asset
|
|
19
28
|
*/
|
|
20
29
|
decimals: number;
|
|
21
30
|
/**
|
|
22
31
|
* The logo of the asset, offchain data
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Asset
|
|
23
34
|
*/
|
|
24
35
|
logoUrl: string;
|
|
25
36
|
/**
|
|
26
37
|
* The symbol of the asset, internal data
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Asset
|
|
27
40
|
*/
|
|
28
41
|
symbol: string;
|
|
29
42
|
/**
|
|
30
43
|
* The address of the asset, internal data
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Asset
|
|
31
46
|
*/
|
|
32
47
|
address: string;
|
|
33
48
|
/**
|
|
34
49
|
* The name of the asset, internal data
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Asset
|
|
35
52
|
*/
|
|
36
53
|
name: string;
|
|
37
54
|
/**
|
|
38
55
|
* The price of the asset
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Asset
|
|
39
58
|
*/
|
|
40
59
|
priceE9: string;
|
|
41
60
|
}
|
|
@@ -10,18 +10,34 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset";
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Borrowed
|
|
17
|
+
*/
|
|
13
18
|
export interface Borrowed {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Asset}
|
|
22
|
+
* @memberof Borrowed
|
|
23
|
+
*/
|
|
14
24
|
coin: Asset;
|
|
15
25
|
/**
|
|
16
26
|
* The amount of the borrowed
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Borrowed
|
|
17
29
|
*/
|
|
18
30
|
amount: string;
|
|
19
31
|
/**
|
|
20
32
|
* The amount of the borrowed in e9 in USDC
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Borrowed
|
|
21
35
|
*/
|
|
22
36
|
amountUsdE9: string;
|
|
23
37
|
/**
|
|
24
38
|
* The apy of the borrowed
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Borrowed
|
|
25
41
|
*/
|
|
26
42
|
apyE9: string;
|
|
27
43
|
}
|
|
@@ -9,13 +9,22 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CoinPrice
|
|
16
|
+
*/
|
|
12
17
|
export interface CoinPrice {
|
|
13
18
|
/**
|
|
14
19
|
* The type of the coin
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CoinPrice
|
|
15
22
|
*/
|
|
16
23
|
coinType: string;
|
|
17
24
|
/**
|
|
18
25
|
* The price of the coin in e9
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CoinPrice
|
|
19
28
|
*/
|
|
20
29
|
priceE9: string;
|
|
21
30
|
}
|
|
@@ -11,28 +11,58 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset";
|
|
13
13
|
import type { VaultSlice } from "./vault-slice";
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DepositTransaction
|
|
18
|
+
*/
|
|
14
19
|
export interface DepositTransaction {
|
|
15
20
|
/**
|
|
16
21
|
* The timestamp of the event
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof DepositTransaction
|
|
17
24
|
*/
|
|
18
25
|
timestamp?: number;
|
|
19
26
|
/**
|
|
20
27
|
* The amount of the transaction
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof DepositTransaction
|
|
21
30
|
*/
|
|
22
31
|
depositAmount?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Asset}
|
|
35
|
+
* @memberof DepositTransaction
|
|
36
|
+
*/
|
|
23
37
|
depositCoin?: Asset;
|
|
24
38
|
/**
|
|
25
39
|
* The tx digest of the transaction
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof DepositTransaction
|
|
26
42
|
*/
|
|
27
43
|
txDigest?: string;
|
|
28
44
|
/**
|
|
29
45
|
* The sequence number of the transaction
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof DepositTransaction
|
|
30
48
|
*/
|
|
31
49
|
sequenceNumber?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {VaultSlice}
|
|
53
|
+
* @memberof DepositTransaction
|
|
54
|
+
*/
|
|
32
55
|
vault?: VaultSlice;
|
|
33
56
|
/**
|
|
34
57
|
* The amount of the shares received
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof DepositTransaction
|
|
35
60
|
*/
|
|
36
61
|
receivedSharesAmount?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Asset}
|
|
65
|
+
* @memberof DepositTransaction
|
|
66
|
+
*/
|
|
37
67
|
receivedCoin?: Asset;
|
|
38
68
|
}
|
|
@@ -10,14 +10,28 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset";
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ExposureCoin
|
|
17
|
+
*/
|
|
13
18
|
export interface ExposureCoin {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Asset}
|
|
22
|
+
* @memberof ExposureCoin
|
|
23
|
+
*/
|
|
14
24
|
coin: Asset;
|
|
15
25
|
/**
|
|
16
26
|
* The amount of the coin in e9 in USDC
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ExposureCoin
|
|
17
29
|
*/
|
|
18
30
|
amountUsdE9: string;
|
|
19
31
|
/**
|
|
20
32
|
* The amount of the coin
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ExposureCoin
|
|
21
35
|
*/
|
|
22
36
|
amount: string;
|
|
23
37
|
}
|
|
@@ -15,27 +15,52 @@ import type { Perps } from "./perps";
|
|
|
15
15
|
import type { Protocol } from "./protocol";
|
|
16
16
|
import type { Reward } from "./reward";
|
|
17
17
|
import type { Supplied } from "./supplied";
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ExposureProtocol
|
|
22
|
+
*/
|
|
18
23
|
export interface ExposureProtocol {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Protocol}
|
|
27
|
+
* @memberof ExposureProtocol
|
|
28
|
+
*/
|
|
19
29
|
protocol: Protocol;
|
|
20
30
|
/**
|
|
21
31
|
* The exposure of the protocol
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ExposureProtocol
|
|
22
34
|
*/
|
|
23
35
|
netValueUsdE9: string;
|
|
24
36
|
/**
|
|
25
37
|
* The lps of the protocol
|
|
38
|
+
* @type {Array<Lp>}
|
|
39
|
+
* @memberof ExposureProtocol
|
|
26
40
|
*/
|
|
27
41
|
lps: Array<Lp>;
|
|
28
42
|
/**
|
|
29
43
|
* The borrowed of the protocol
|
|
44
|
+
* @type {Array<Borrowed>}
|
|
45
|
+
* @memberof ExposureProtocol
|
|
30
46
|
*/
|
|
31
47
|
borrowed: Array<Borrowed>;
|
|
32
48
|
/**
|
|
33
49
|
* The supplied of the protocol
|
|
50
|
+
* @type {Array<Supplied>}
|
|
51
|
+
* @memberof ExposureProtocol
|
|
34
52
|
*/
|
|
35
53
|
supplied: Array<Supplied>;
|
|
36
54
|
/**
|
|
37
55
|
* The rewards of the protocol
|
|
56
|
+
* @type {Array<Reward>}
|
|
57
|
+
* @memberof ExposureProtocol
|
|
38
58
|
*/
|
|
39
59
|
rewards: Array<Reward>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Perps}
|
|
63
|
+
* @memberof ExposureProtocol
|
|
64
|
+
*/
|
|
40
65
|
perps: Perps;
|
|
41
66
|
}
|
|
@@ -11,17 +11,28 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ExposureCoin } from "./exposure-coin";
|
|
13
13
|
import type { ExposureProtocol } from "./exposure-protocol";
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Exposure
|
|
18
|
+
*/
|
|
14
19
|
export interface Exposure {
|
|
15
20
|
/**
|
|
16
21
|
* The coins to which the account/vault is exposed
|
|
22
|
+
* @type {Array<ExposureCoin>}
|
|
23
|
+
* @memberof Exposure
|
|
17
24
|
*/
|
|
18
25
|
coins: Array<ExposureCoin>;
|
|
19
26
|
/**
|
|
20
27
|
* The protocols to which the account/vault is exposed
|
|
28
|
+
* @type {Array<ExposureProtocol>}
|
|
29
|
+
* @memberof Exposure
|
|
21
30
|
*/
|
|
22
31
|
protocols: Array<ExposureProtocol>;
|
|
23
32
|
/**
|
|
24
33
|
* The net account value of the account/vault in e9 in USDC
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Exposure
|
|
25
36
|
*/
|
|
26
37
|
netAccountValueUsdE9: string;
|
|
27
38
|
}
|
|
@@ -10,14 +10,28 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Asset } from "./asset";
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Fee
|
|
17
|
+
*/
|
|
13
18
|
export interface Fee {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Asset}
|
|
22
|
+
* @memberof Fee
|
|
23
|
+
*/
|
|
14
24
|
coin: Asset;
|
|
15
25
|
/**
|
|
16
26
|
* The amount of the fee
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Fee
|
|
17
29
|
*/
|
|
18
30
|
amount: string;
|
|
19
31
|
/**
|
|
20
32
|
* The amount of the fee in e9 in USDC
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Fee
|
|
21
35
|
*/
|
|
22
36
|
amountUsdE9: string;
|
|
23
37
|
}
|