@ember-finance/sdk 1.0.9 → 1.0.10

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 (83) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/src/common/types.d.ts +0 -1
  4. package/dist/src/common/types.js +0 -1
  5. package/dist/src/vaults/api/api.d.ts +2 -2
  6. package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -31
  7. package/dist/src/vaults/api/apis/accounts-api.js +98 -112
  8. package/dist/src/vaults/api/apis/vaults-api.d.ts +186 -31
  9. package/dist/src/vaults/api/apis/vaults-api.js +140 -220
  10. package/dist/src/vaults/api/base.d.ts +26 -2
  11. package/dist/src/vaults/api/base.js +21 -1
  12. package/dist/src/vaults/api/common.d.ts +38 -1
  13. package/dist/src/vaults/api/common.js +47 -17
  14. package/dist/src/vaults/api/configuration.d.ts +17 -0
  15. package/dist/src/vaults/api/configuration.js +4 -5
  16. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
  17. package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
  18. package/dist/src/vaults/api/models/account-transaction.js +12 -7
  19. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
  20. package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
  21. package/dist/src/vaults/api/models/apy-history.d.ts +17 -4
  22. package/dist/src/vaults/api/models/asset.d.ts +26 -7
  23. package/dist/src/vaults/api/models/borrowed.d.ts +21 -5
  24. package/dist/src/vaults/api/models/coin-price.d.ts +11 -2
  25. package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
  26. package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
  27. package/dist/src/vaults/api/models/exposure-protocol.d.ts +38 -13
  28. package/dist/src/vaults/api/models/exposure.d.ts +16 -5
  29. package/dist/src/vaults/api/models/fee.d.ts +18 -4
  30. package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
  31. package/dist/src/vaults/api/models/history-interval.js +12 -6
  32. package/dist/src/vaults/api/models/index.d.ts +60 -60
  33. package/dist/src/vaults/api/models/lp.d.ts +44 -13
  34. package/dist/src/vaults/api/models/manager.d.ts +26 -4
  35. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
  36. package/dist/src/vaults/api/models/perps.d.ts +12 -3
  37. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +10 -6
  38. package/dist/src/vaults/api/models/pnl-history-interval.js +11 -5
  39. package/dist/src/vaults/api/models/pnl-history.d.ts +14 -3
  40. package/dist/src/vaults/api/models/position-value.d.ts +23 -6
  41. package/dist/src/vaults/api/models/position.d.ts +17 -4
  42. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +35 -10
  43. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +26 -7
  44. package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
  45. package/dist/src/vaults/api/models/protocol.d.ts +17 -4
  46. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +18 -17
  47. package/dist/src/vaults/api/models/raw-event.d.ts +44 -25
  48. package/dist/src/vaults/api/models/raw-event.js +24 -19
  49. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
  50. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
  51. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
  52. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
  53. package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
  54. package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
  55. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
  56. package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
  57. package/dist/src/vaults/api/models/reward.d.ts +18 -4
  58. package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
  59. package/dist/src/vaults/api/models/strategy.d.ts +26 -7
  60. package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
  61. package/dist/src/vaults/api/models/supplied.d.ts +21 -5
  62. package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
  63. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
  64. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
  65. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
  66. package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
  67. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
  68. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +26 -7
  69. package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
  70. package/dist/src/vaults/api/models/vault-detail.js +11 -6
  71. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
  72. package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
  73. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
  74. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
  75. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
  76. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +20 -5
  77. package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
  78. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
  79. package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
  80. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
  81. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +26 -7
  82. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +17 -4
  83. package/package.json +4 -3
@@ -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 VaultMaxTvlUpdatedEvent
16
+ */
12
17
  export interface VaultMaxTvlUpdatedEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultMaxTvlUpdatedEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The previous operator of the vault
26
+ * @type {string}
27
+ * @memberof VaultMaxTvlUpdatedEvent
19
28
  */
20
- previousMaxTvl?: string;
29
+ 'previousMaxTvl'?: string;
21
30
  /**
22
31
  * The new operator of the vault
32
+ * @type {string}
33
+ * @memberof VaultMaxTvlUpdatedEvent
23
34
  */
24
- newMaxTvl?: string;
35
+ 'newMaxTvl'?: string;
25
36
  /**
26
37
  * The sequence number of the event
38
+ * @type {string}
39
+ * @memberof VaultMaxTvlUpdatedEvent
27
40
  */
28
- sequenceNumber?: string;
41
+ 'sequenceNumber'?: string;
29
42
  }
@@ -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 VaultOperatorChangedEvent
16
+ */
12
17
  export interface VaultOperatorChangedEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultOperatorChangedEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The previous operator of the vault
26
+ * @type {string}
27
+ * @memberof VaultOperatorChangedEvent
19
28
  */
20
- previousOperator?: string;
29
+ 'previousOperator'?: string;
21
30
  /**
22
31
  * The new operator of the vault
32
+ * @type {string}
33
+ * @memberof VaultOperatorChangedEvent
23
34
  */
24
- newOperator?: string;
35
+ 'newOperator'?: string;
25
36
  /**
26
37
  * The sequence number of the event
38
+ * @type {string}
39
+ * @memberof VaultOperatorChangedEvent
27
40
  */
28
- sequenceNumber?: string;
41
+ 'sequenceNumber'?: string;
29
42
  }
@@ -9,17 +9,28 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VaultPausedStatusUpdatedEvent
16
+ */
12
17
  export interface VaultPausedStatusUpdatedEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultPausedStatusUpdatedEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The status of the vault
26
+ * @type {boolean}
27
+ * @memberof VaultPausedStatusUpdatedEvent
19
28
  */
20
- status?: boolean;
29
+ 'status'?: boolean;
21
30
  /**
22
31
  * The sequence number of the event
32
+ * @type {string}
33
+ * @memberof VaultPausedStatusUpdatedEvent
23
34
  */
24
- sequenceNumber?: string;
35
+ 'sequenceNumber'?: string;
25
36
  }
@@ -9,25 +9,40 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VaultPlatformFeeChargedEvent
16
+ */
12
17
  export interface VaultPlatformFeeChargedEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultPlatformFeeChargedEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The amount of the fee
26
+ * @type {string}
27
+ * @memberof VaultPlatformFeeChargedEvent
19
28
  */
20
- feeAmount?: string;
29
+ 'feeAmount'?: string;
21
30
  /**
22
31
  * The sequence number of the event
32
+ * @type {string}
33
+ * @memberof VaultPlatformFeeChargedEvent
23
34
  */
24
- sequenceNumber?: string;
35
+ 'sequenceNumber'?: string;
25
36
  /**
26
37
  * The total amount of the fee accrued
38
+ * @type {string}
39
+ * @memberof VaultPlatformFeeChargedEvent
27
40
  */
28
- totalFeeAccrued?: string;
41
+ 'totalFeeAccrued'?: string;
29
42
  /**
30
43
  * The timestamp of the last charged
44
+ * @type {string}
45
+ * @memberof VaultPlatformFeeChargedEvent
31
46
  */
32
- lastChargedAt?: string;
47
+ 'lastChargedAt'?: string;
33
48
  }
@@ -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 VaultProtocol
16
+ */
12
17
  export interface VaultProtocol {
13
18
  /**
14
19
  * The package identifier for the protocol
20
+ * @type {string}
21
+ * @memberof VaultProtocol
15
22
  */
16
- Package?: string;
23
+ 'Package'?: string;
17
24
  /**
18
25
  * The protocol configuration identifier
26
+ * @type {string}
27
+ * @memberof VaultProtocol
19
28
  */
20
- ProtocolConfig?: string;
29
+ 'ProtocolConfig'?: string;
21
30
  /**
22
31
  * The admin capability identifier
32
+ * @type {string}
33
+ * @memberof VaultProtocol
23
34
  */
24
- AdminCap?: string;
35
+ 'AdminCap'?: string;
25
36
  /**
26
37
  * The upgrade capability identifier
38
+ * @type {string}
39
+ * @memberof VaultProtocol
27
40
  */
28
- UpgradeCap?: string;
41
+ 'UpgradeCap'?: string;
29
42
  }
@@ -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 VaultRateUpdatedEvent
16
+ */
12
17
  export interface VaultRateUpdatedEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultRateUpdatedEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The previous rate of the vault
26
+ * @type {string}
27
+ * @memberof VaultRateUpdatedEvent
19
28
  */
20
- previousRate?: string;
29
+ 'previousRate'?: string;
21
30
  /**
22
31
  * The new rate of the vault
32
+ * @type {string}
33
+ * @memberof VaultRateUpdatedEvent
23
34
  */
24
- newRate?: string;
35
+ 'newRate'?: string;
25
36
  /**
26
37
  * The sequence number of the event
38
+ * @type {string}
39
+ * @memberof VaultRateUpdatedEvent
27
40
  */
28
- sequenceNumber?: string;
41
+ 'sequenceNumber'?: string;
29
42
  }
@@ -9,25 +9,40 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VaultSlice
16
+ */
12
17
  export interface VaultSlice {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultSlice
15
22
  */
16
- id?: string;
23
+ 'id'?: string;
17
24
  /**
18
25
  * The name of the vault
26
+ * @type {string}
27
+ * @memberof VaultSlice
19
28
  */
20
- name?: string;
29
+ 'name'?: string;
21
30
  /**
22
31
  * The long name of the vault
32
+ * @type {string}
33
+ * @memberof VaultSlice
23
34
  */
24
- longName?: string;
35
+ 'longName'?: string;
25
36
  /**
26
37
  * The logo url of the vault
38
+ * @type {string}
39
+ * @memberof VaultSlice
27
40
  */
28
- logoUrl?: string;
41
+ 'logoUrl'?: string;
29
42
  /**
30
43
  * The public type of the vault
44
+ * @type {string}
45
+ * @memberof VaultSlice
31
46
  */
32
- publicType?: string;
47
+ 'publicType'?: string;
33
48
  }
@@ -9,29 +9,46 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface VaultSubAccountUpdatedEvent
16
+ */
12
17
  export interface VaultSubAccountUpdatedEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultSubAccountUpdatedEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The address of the account
26
+ * @type {string}
27
+ * @memberof VaultSubAccountUpdatedEvent
19
28
  */
20
- accountAddress?: string;
29
+ 'accountAddress'?: string;
21
30
  /**
22
31
  * The status of the sub account
32
+ * @type {boolean}
33
+ * @memberof VaultSubAccountUpdatedEvent
23
34
  */
24
- status?: boolean;
35
+ 'status'?: boolean;
25
36
  /**
26
37
  * The sequence number of the event
38
+ * @type {string}
39
+ * @memberof VaultSubAccountUpdatedEvent
27
40
  */
28
- sequenceNumber?: string;
41
+ 'sequenceNumber'?: string;
29
42
  /**
30
43
  * The new sub accounts of the vault
44
+ * @type {Array<string>}
45
+ * @memberof VaultSubAccountUpdatedEvent
31
46
  */
32
- newSubAccounts?: Array<string>;
47
+ 'newSubAccounts'?: Array<string>;
33
48
  /**
34
49
  * The previous sub accounts of the vault
50
+ * @type {Array<string>}
51
+ * @memberof VaultSubAccountUpdatedEvent
35
52
  */
36
- previousSubAccounts?: Array<string>;
53
+ 'previousSubAccounts'?: Array<string>;
37
54
  }
@@ -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 VaultWithdrawalWithoutRedeemingSharesEvent
16
+ */
12
17
  export interface VaultWithdrawalWithoutRedeemingSharesEvent {
13
18
  /**
14
19
  * The id of the vault
20
+ * @type {string}
21
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
15
22
  */
16
- vaultId?: string;
23
+ 'vaultId'?: string;
17
24
  /**
18
25
  * The sequence number of the event
26
+ * @type {string}
27
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
19
28
  */
20
- sequenceNumber?: string;
29
+ 'sequenceNumber'?: string;
21
30
  /**
22
31
  * The address of the sub account
32
+ * @type {string}
33
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
23
34
  */
24
- subAccount?: string;
35
+ 'subAccount'?: string;
25
36
  /**
26
37
  * The previous balance of the vault
38
+ * @type {string}
39
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
27
40
  */
28
- previousBalance?: string;
41
+ 'previousBalance'?: string;
29
42
  /**
30
43
  * The new balance of the vault
44
+ * @type {string}
45
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
31
46
  */
32
- newBalance?: string;
47
+ 'newBalance'?: string;
33
48
  /**
34
49
  * The type of the coin
50
+ * @type {string}
51
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
35
52
  */
36
- coinType?: string;
53
+ 'coinType'?: string;
37
54
  /**
38
55
  * The amount of the shares
56
+ * @type {string}
57
+ * @memberof VaultWithdrawalWithoutRedeemingSharesEvent
39
58
  */
40
- amount?: string;
59
+ 'amount'?: string;
41
60
  }
@@ -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 YieldAggregateValue
16
+ */
12
17
  export interface YieldAggregateValue {
13
18
  /**
14
19
  * The unrealized yield value of the account in e9 in USDC
20
+ * @type {string}
21
+ * @memberof YieldAggregateValue
15
22
  */
16
- unrealizedYieldUsdE9: string;
23
+ 'unrealizedYieldUsdE9': string;
17
24
  /**
18
25
  * The realized yield value of the account in e9 in USDC
26
+ * @type {string}
27
+ * @memberof YieldAggregateValue
19
28
  */
20
- realizedYieldUsdE9: string;
29
+ 'realizedYieldUsdE9': string;
21
30
  /**
22
31
  * The total yield value of the account in e9 in USDC
32
+ * @type {string}
33
+ * @memberof YieldAggregateValue
23
34
  */
24
- totalYieldUsdE9: string;
35
+ 'totalYieldUsdE9': string;
25
36
  /**
26
37
  * The total deposits of the account in e9 in USDC
38
+ * @type {string}
39
+ * @memberof YieldAggregateValue
27
40
  */
28
- totalDepositsUsdE9: string;
41
+ 'totalDepositsUsdE9': string;
29
42
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "1.0.9",
4
+ "version": "1.0.10",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "teardown:sui": "docker-compose -f local/sui/docker-compose.yml down",
33
33
  "test": "ts-mocha --no-timeout tests/*.test.ts",
34
34
  "publish-beta": "npm publish --tag beta",
35
- "generate:vaults:api-client": "openapi-generator generate -i ./src/vaults/api/openapi.yml -g typescript-axios -c ./src/vaults/api/config.json -o ./src/vaults/api",
35
+ "generate:vaults:api-client": "openapi-generator-cli generate -i ./src/vaults/api/openapi.yml -g typescript-axios -c ./src/vaults/api/config.json -o ./src/vaults/api",
36
36
  "generate:vaults:md-docs": "widdershins --search false --language_tabs 'typescript:TypeScript' --summary ./src/vaults/api/openapi.yml -o ./src/vaults/api/README.md",
37
37
  "generate:vaults": "yarn run generate:vaults:api-client && yarn run generate:vaults:md-docs"
38
38
  },
@@ -41,11 +41,12 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@firefly-exchange/library-sui": "^2.8.22",
44
- "axios": "^1.12.2",
44
+ "axios": "1.12.2",
45
45
  "yargs": "^17.6.2",
46
46
  "yarn": "^1.22.19"
47
47
  },
48
48
  "devDependencies": {
49
+ "@openapitools/openapi-generator-cli": "^2.24.0",
49
50
  "@types/chai": "^4.3.3",
50
51
  "@types/chai-as-promised": "^7.1.5",
51
52
  "@types/dotenv-parse-variables": "^2.0.1",