@ember-finance/sdk 1.0.8 → 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.
- 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/api.d.ts +2 -2
- package/dist/src/vaults/api/apis/accounts-api.d.ts +178 -27
- package/dist/src/vaults/api/apis/accounts-api.js +208 -77
- package/dist/src/vaults/api/apis/vaults-api.d.ts +270 -40
- package/dist/src/vaults/api/apis/vaults-api.js +267 -194
- package/dist/src/vaults/api/base.d.ts +26 -2
- package/dist/src/vaults/api/base.js +21 -1
- package/dist/src/vaults/api/common.d.ts +38 -1
- package/dist/src/vaults/api/common.js +47 -17
- package/dist/src/vaults/api/configuration.d.ts +17 -0
- package/dist/src/vaults/api/configuration.js +4 -5
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
- package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
- package/dist/src/vaults/api/models/account-transaction.js +12 -7
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
- package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
- package/dist/src/vaults/api/models/apy-history.d.ts +42 -0
- package/dist/src/vaults/api/models/apy-history.js +15 -0
- package/dist/src/vaults/api/models/asset.d.ts +26 -7
- package/dist/src/vaults/api/models/borrowed.d.ts +43 -0
- package/dist/src/vaults/api/models/borrowed.js +15 -0
- package/dist/src/vaults/api/models/coin-price.d.ts +30 -0
- package/dist/src/vaults/api/models/coin-price.js +15 -0
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +50 -3
- package/dist/src/vaults/api/models/exposure.d.ts +16 -5
- package/dist/src/vaults/api/models/fee.d.ts +37 -0
- package/dist/src/vaults/api/models/fee.js +15 -0
- package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
- package/dist/src/vaults/api/models/history-interval.js +12 -6
- package/dist/src/vaults/api/models/index.d.ts +60 -43
- package/dist/src/vaults/api/models/index.js +17 -0
- package/dist/src/vaults/api/models/lp.d.ts +81 -0
- package/dist/src/vaults/api/models/lp.js +15 -0
- package/dist/src/vaults/api/models/manager.d.ts +26 -4
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/perps.d.ts +31 -0
- package/dist/src/vaults/api/models/perps.js +15 -0
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +21 -0
- package/dist/src/vaults/api/models/pnl-history-interval.js +27 -0
- package/dist/src/vaults/api/models/pnl-history.d.ts +17 -2
- package/dist/src/vaults/api/models/position-value.d.ts +54 -0
- package/dist/src/vaults/api/models/position-value.js +15 -0
- package/dist/src/vaults/api/models/position.d.ts +42 -0
- package/dist/src/vaults/api/models/position.js +15 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +78 -0
- package/dist/src/vaults/api/models/process-requests-summary-event.js +15 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +60 -0
- package/dist/src/vaults/api/models/protocol-fee-collected-event.js +15 -0
- package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
- package/dist/src/vaults/api/models/protocol.d.ts +17 -13
- package/dist/src/vaults/api/models/protocol.js +0 -8
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +19 -13
- package/dist/src/vaults/api/models/raw-event.d.ts +44 -20
- package/dist/src/vaults/api/models/raw-event.js +24 -14
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
- package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
- package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
- package/dist/src/vaults/api/models/reward.d.ts +37 -0
- package/dist/src/vaults/api/models/reward.js +15 -0
- package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
- package/dist/src/vaults/api/models/strategy.d.ts +26 -7
- package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
- package/dist/src/vaults/api/models/supplied.d.ts +43 -0
- package/dist/src/vaults/api/models/supplied.js +15 -0
- package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +60 -0
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.js +15 -0
- package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
- package/dist/src/vaults/api/models/vault-detail.js +11 -6
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +48 -0
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.js +15 -0
- package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +60 -0
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.js +15 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +42 -0
- package/dist/src/vaults/api/models/yield-aggregate-value.js +15 -0
- package/dist/src/vaults/on-chain-calls/tx-builder.d.ts +8 -0
- package/dist/src/vaults/on-chain-calls/tx-builder.js +35 -0
- package/dist/src/vaults/on-chain-calls/user.d.ts +9 -0
- package/dist/src/vaults/on-chain-calls/user.js +16 -0
- package/package.json +5 -3
|
@@ -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
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ember Protocol Vaults API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 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 VaultWithdrawalWithoutRedeemingSharesEvent
|
|
16
|
+
*/
|
|
17
|
+
export interface VaultWithdrawalWithoutRedeemingSharesEvent {
|
|
18
|
+
/**
|
|
19
|
+
* The id of the vault
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
22
|
+
*/
|
|
23
|
+
'vaultId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The sequence number of the event
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
28
|
+
*/
|
|
29
|
+
'sequenceNumber'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The address of the sub account
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
34
|
+
*/
|
|
35
|
+
'subAccount'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The previous balance of the vault
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
40
|
+
*/
|
|
41
|
+
'previousBalance'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The new balance of the vault
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
46
|
+
*/
|
|
47
|
+
'newBalance'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The type of the coin
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
52
|
+
*/
|
|
53
|
+
'coinType'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The amount of the shares
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof VaultWithdrawalWithoutRedeemingSharesEvent
|
|
58
|
+
*/
|
|
59
|
+
'amount'?: string;
|
|
60
|
+
}
|
|
@@ -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,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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface YieldAggregateValue
|
|
16
|
+
*/
|
|
17
|
+
export interface YieldAggregateValue {
|
|
18
|
+
/**
|
|
19
|
+
* The unrealized yield value of the account in e9 in USDC
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof YieldAggregateValue
|
|
22
|
+
*/
|
|
23
|
+
'unrealizedYieldUsdE9': string;
|
|
24
|
+
/**
|
|
25
|
+
* The realized yield value of the account in e9 in USDC
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof YieldAggregateValue
|
|
28
|
+
*/
|
|
29
|
+
'realizedYieldUsdE9': string;
|
|
30
|
+
/**
|
|
31
|
+
* The total yield value of the account in e9 in USDC
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof YieldAggregateValue
|
|
34
|
+
*/
|
|
35
|
+
'totalYieldUsdE9': string;
|
|
36
|
+
/**
|
|
37
|
+
* The total deposits of the account in e9 in USDC
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof YieldAggregateValue
|
|
40
|
+
*/
|
|
41
|
+
'totalDepositsUsdE9': string;
|
|
42
|
+
}
|
|
@@ -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 });
|
|
@@ -236,6 +236,14 @@ export declare class TxBuilder {
|
|
|
236
236
|
* @returns TransactionBlock
|
|
237
237
|
*/
|
|
238
238
|
depositAsset(vaultId: string, coinId: string, options?: ITxBuilderOptionalParams): TransactionBlock;
|
|
239
|
+
/**
|
|
240
|
+
* Deposit asset internal
|
|
241
|
+
* @param vaultId Id of the vault
|
|
242
|
+
* @param coinId Id of the coin
|
|
243
|
+
* @param options Optional tx building params
|
|
244
|
+
* @returns TransactionBlock
|
|
245
|
+
*/
|
|
246
|
+
depositAssetInternal(vaultId: string, coinId: string, options?: ITxBuilderOptionalParams): TransactionBlock;
|
|
239
247
|
/**
|
|
240
248
|
* Mint shares
|
|
241
249
|
* @param vaultId Id of the vault
|
|
@@ -749,6 +749,41 @@ class TxBuilder {
|
|
|
749
749
|
txb.setSenderIfNotSet(options.sender);
|
|
750
750
|
return txb;
|
|
751
751
|
}
|
|
752
|
+
/**
|
|
753
|
+
* Deposit asset internal
|
|
754
|
+
* @param vaultId Id of the vault
|
|
755
|
+
* @param coinId Id of the coin
|
|
756
|
+
* @param options Optional tx building params
|
|
757
|
+
* @returns TransactionBlock
|
|
758
|
+
*/
|
|
759
|
+
depositAssetInternal(vaultId, coinId, options) {
|
|
760
|
+
const txb = options?.txBlock || new library_sui_1.TransactionBlock();
|
|
761
|
+
const balance = txb.moveCall({
|
|
762
|
+
target: `0x2::coin::into_balance`,
|
|
763
|
+
typeArguments: [this.parser.getDepositCoinType(vaultId)],
|
|
764
|
+
arguments: [txb.object(coinId)]
|
|
765
|
+
});
|
|
766
|
+
const receiptToken = txb.moveCall({
|
|
767
|
+
arguments: [
|
|
768
|
+
txb.object(vaultId),
|
|
769
|
+
txb.object(this.parser.getProtocolConfig()),
|
|
770
|
+
txb.object(balance)
|
|
771
|
+
],
|
|
772
|
+
typeArguments: [
|
|
773
|
+
this.parser.getDepositCoinType(vaultId),
|
|
774
|
+
this.parser.getReceiptCoinType(vaultId)
|
|
775
|
+
],
|
|
776
|
+
target: `${this.parser.getPackageId()}::vault::deposit_asset`
|
|
777
|
+
});
|
|
778
|
+
if (options?.sender) {
|
|
779
|
+
txb.transferObjects([receiptToken], txb.pure.address(options.sender));
|
|
780
|
+
}
|
|
781
|
+
if (options?.gasBudget)
|
|
782
|
+
txb.setGasBudget(options.gasBudget);
|
|
783
|
+
if (options?.sender)
|
|
784
|
+
txb.setSenderIfNotSet(options.sender);
|
|
785
|
+
return txb;
|
|
786
|
+
}
|
|
752
787
|
/**
|
|
753
788
|
* Mint shares
|
|
754
789
|
* @param vaultId Id of the vault
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OnChainCalls } from "./onchain-calls";
|
|
2
2
|
import { IDeployment, IVaultOptionalParams } from "../interfaces";
|
|
3
3
|
import { OnChainCallResponse, Signer, SuiAddress, SuiClient, SuiTransactionBlockResponseOptions, NumStr } from "@firefly-exchange/library-sui";
|
|
4
|
+
import { TransactionObjectArgument } from "@mysten/sui/transactions";
|
|
4
5
|
export declare class UserCalls extends OnChainCalls {
|
|
5
6
|
constructor(_network: string, _suiClient: SuiClient, _deployment: IDeployment, _signer?: Signer, _walletAddress?: string, _isUIWallet?: boolean);
|
|
6
7
|
/**
|
|
@@ -13,6 +14,14 @@ export declare class UserCalls extends OnChainCalls {
|
|
|
13
14
|
depositAsset(vaultId: string, amount: NumStr, options?: IVaultOptionalParams & {
|
|
14
15
|
coinId?: string;
|
|
15
16
|
} & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Deposit asset into a vault internal
|
|
19
|
+
* @param vaultId The id of the vault to deposit into
|
|
20
|
+
* @param coinId The id of the coin to deposit
|
|
21
|
+
* @param options Optional tx execution params
|
|
22
|
+
* @returns OnChainCallResponse
|
|
23
|
+
*/
|
|
24
|
+
depositAssetInternal(vaultId: string, coinId: string | TransactionObjectArgument, sender: string, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
|
|
16
25
|
/**
|
|
17
26
|
* Mint shares of a vault
|
|
18
27
|
* @param vaultId The id of the vault to mint shares for
|
|
@@ -35,6 +35,22 @@ class UserCalls extends onchain_calls_1.OnChainCalls {
|
|
|
35
35
|
}
|
|
36
36
|
return this.execCall(txb, options);
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Deposit asset into a vault internal
|
|
40
|
+
* @param vaultId The id of the vault to deposit into
|
|
41
|
+
* @param coinId The id of the coin to deposit
|
|
42
|
+
* @param options Optional tx execution params
|
|
43
|
+
* @returns OnChainCallResponse
|
|
44
|
+
*/
|
|
45
|
+
async depositAssetInternal(vaultId, coinId, sender, options) {
|
|
46
|
+
const txb = options?.txBlock || new library_sui_1.TransactionBlock();
|
|
47
|
+
this.txBuilder.depositAssetInternal(vaultId, coinId, {
|
|
48
|
+
...options,
|
|
49
|
+
txBlock: txb,
|
|
50
|
+
sender
|
|
51
|
+
});
|
|
52
|
+
return this.execCall(txb, options);
|
|
53
|
+
}
|
|
38
54
|
/**
|
|
39
55
|
* Mint shares of a vault
|
|
40
56
|
* @param vaultId The id of the vault to mint shares for
|
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.
|
|
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,10 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@firefly-exchange/library-sui": "^2.8.22",
|
|
44
|
+
"axios": "1.12.2",
|
|
44
45
|
"yargs": "^17.6.2",
|
|
45
46
|
"yarn": "^1.22.19"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
49
|
+
"@openapitools/openapi-generator-cli": "^2.24.0",
|
|
48
50
|
"@types/chai": "^4.3.3",
|
|
49
51
|
"@types/chai-as-promised": "^7.1.5",
|
|
50
52
|
"@types/dotenv-parse-variables": "^2.0.1",
|
|
@@ -80,4 +82,4 @@
|
|
|
80
82
|
"files": [
|
|
81
83
|
"dist"
|
|
82
84
|
]
|
|
83
|
-
}
|
|
85
|
+
}
|