@ember-finance/sdk 2.5.0-pre.1 → 2.5.0-pre.2

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.
@@ -441,6 +441,11 @@ export declare const GetAccountHistoryTypeEnum: {
441
441
  readonly RedeemRequestProcessed: "RedeemRequestProcessed";
442
442
  readonly RedeemRequestSkipped: "RedeemRequestSkipped";
443
443
  readonly RedeemRequestCancelled: "RedeemRequestCancelled";
444
+ readonly InstantWithdraw: "InstantWithdraw";
445
+ readonly InstantWithdrawViaSwap: "InstantWithdrawViaSwap";
446
+ readonly InstantWithdrawSwapHoldbackRelease: "InstantWithdrawSwapHoldbackRelease";
447
+ readonly HoldbackClaimed: "HoldbackClaimed";
448
+ readonly WithdrawalClaimed: "WithdrawalClaimed";
444
449
  };
445
450
  export type GetAccountHistoryTypeEnum = (typeof GetAccountHistoryTypeEnum)[keyof typeof GetAccountHistoryTypeEnum];
446
451
  /**
@@ -835,7 +835,12 @@ export const GetAccountHistoryTypeEnum = {
835
835
  RedeemRequest: "RedeemRequest",
836
836
  RedeemRequestProcessed: "RedeemRequestProcessed",
837
837
  RedeemRequestSkipped: "RedeemRequestSkipped",
838
- RedeemRequestCancelled: "RedeemRequestCancelled"
838
+ RedeemRequestCancelled: "RedeemRequestCancelled",
839
+ InstantWithdraw: "InstantWithdraw",
840
+ InstantWithdrawViaSwap: "InstantWithdrawViaSwap",
841
+ InstantWithdrawSwapHoldbackRelease: "InstantWithdrawSwapHoldbackRelease",
842
+ HoldbackClaimed: "HoldbackClaimed",
843
+ WithdrawalClaimed: "WithdrawalClaimed"
839
844
  };
840
845
  /**
841
846
  * @export
@@ -10,6 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { DepositTransaction } from "./deposit-transaction.js";
13
+ import type { EscrowClaimTransaction } from "./escrow-claim-transaction.js";
14
+ import type { HoldbackReleaseTransaction } from "./holdback-release-transaction.js";
15
+ import type { InstantWithdrawTransaction } from "./instant-withdraw-transaction.js";
16
+ import type { InstantWithdrawViaSwapTransaction } from "./instant-withdraw-via-swap-transaction.js";
13
17
  import type { ParkingLotDepositTransaction } from "./parking-lot-deposit-transaction.js";
14
18
  import type { RedeemRequestCancelledTransaction } from "./redeem-request-cancelled-transaction.js";
15
19
  import type { RedeemRequestProcessedTransaction } from "./redeem-request-processed-transaction.js";
@@ -20,4 +24,4 @@ import type { RedeemRequestTransaction } from "./redeem-request-transaction.js";
20
24
  * The data of the transaction
21
25
  * @export
22
26
  */
23
- export type AccountTransactionTransactionData = DepositTransaction | ParkingLotDepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
27
+ export type AccountTransactionTransactionData = DepositTransaction | EscrowClaimTransaction | HoldbackReleaseTransaction | InstantWithdrawTransaction | InstantWithdrawViaSwapTransaction | ParkingLotDepositTransaction | RedeemRequestCancelledTransaction | RedeemRequestProcessedTransaction | RedeemRequestSkippedTransaction | RedeemRequestTransaction;
@@ -46,5 +46,10 @@ export declare const AccountTransactionTransactionTypeEnum: {
46
46
  readonly RedeemRequestProcessed: "RedeemRequestProcessed";
47
47
  readonly RedeemRequestSkipped: "RedeemRequestSkipped";
48
48
  readonly RedeemRequestCancelled: "RedeemRequestCancelled";
49
+ readonly InstantWithdraw: "InstantWithdraw";
50
+ readonly InstantWithdrawViaSwap: "InstantWithdrawViaSwap";
51
+ readonly InstantWithdrawSwapHoldbackRelease: "InstantWithdrawSwapHoldbackRelease";
52
+ readonly HoldbackClaimed: "HoldbackClaimed";
53
+ readonly WithdrawalClaimed: "WithdrawalClaimed";
49
54
  };
50
55
  export type AccountTransactionTransactionTypeEnum = (typeof AccountTransactionTransactionTypeEnum)[keyof typeof AccountTransactionTransactionTypeEnum];
@@ -21,5 +21,10 @@ export const AccountTransactionTransactionTypeEnum = {
21
21
  RedeemRequest: "RedeemRequest",
22
22
  RedeemRequestProcessed: "RedeemRequestProcessed",
23
23
  RedeemRequestSkipped: "RedeemRequestSkipped",
24
- RedeemRequestCancelled: "RedeemRequestCancelled"
24
+ RedeemRequestCancelled: "RedeemRequestCancelled",
25
+ InstantWithdraw: "InstantWithdraw",
26
+ InstantWithdrawViaSwap: "InstantWithdrawViaSwap",
27
+ InstantWithdrawSwapHoldbackRelease: "InstantWithdrawSwapHoldbackRelease",
28
+ HoldbackClaimed: "HoldbackClaimed",
29
+ WithdrawalClaimed: "WithdrawalClaimed"
25
30
  };
@@ -0,0 +1,56 @@
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: 2.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.js";
13
+ import type { VaultSlice } from "./vault-slice.js";
14
+ /**
15
+ * Escrow-claim delivery of deferred collateral (HoldbackClaimed / WithdrawalClaimed). No shares move; amount is the delivered collateral.
16
+ * @export
17
+ * @interface EscrowClaimTransaction
18
+ */
19
+ export interface EscrowClaimTransaction {
20
+ /**
21
+ * The timestamp of the event
22
+ * @type {number}
23
+ * @memberof EscrowClaimTransaction
24
+ */
25
+ timestamp?: number;
26
+ /**
27
+ * The collateral amount delivered
28
+ * @type {string}
29
+ * @memberof EscrowClaimTransaction
30
+ */
31
+ amount?: string;
32
+ /**
33
+ *
34
+ * @type {Asset}
35
+ * @memberof EscrowClaimTransaction
36
+ */
37
+ coin?: Asset;
38
+ /**
39
+ *
40
+ * @type {VaultSlice}
41
+ * @memberof EscrowClaimTransaction
42
+ */
43
+ vault?: VaultSlice;
44
+ /**
45
+ * The tx digest of the transaction
46
+ * @type {string}
47
+ * @memberof EscrowClaimTransaction
48
+ */
49
+ txDigest?: string;
50
+ /**
51
+ * The sequence number of the transaction
52
+ * @type {string}
53
+ * @memberof EscrowClaimTransaction
54
+ */
55
+ sequenceNumber?: string;
56
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,56 @@
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: 2.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.js";
13
+ import type { VaultSlice } from "./vault-slice.js";
14
+ /**
15
+ * Release of previously held-back collateral on the atomic vault (InstantWithdrawSwapHoldbackRelease). No shares move.
16
+ * @export
17
+ * @interface HoldbackReleaseTransaction
18
+ */
19
+ export interface HoldbackReleaseTransaction {
20
+ /**
21
+ * The timestamp of the event
22
+ * @type {number}
23
+ * @memberof HoldbackReleaseTransaction
24
+ */
25
+ timestamp?: number;
26
+ /**
27
+ * The collateral amount released
28
+ * @type {string}
29
+ * @memberof HoldbackReleaseTransaction
30
+ */
31
+ amount?: string;
32
+ /**
33
+ *
34
+ * @type {Asset}
35
+ * @memberof HoldbackReleaseTransaction
36
+ */
37
+ coin?: Asset;
38
+ /**
39
+ *
40
+ * @type {VaultSlice}
41
+ * @memberof HoldbackReleaseTransaction
42
+ */
43
+ vault?: VaultSlice;
44
+ /**
45
+ * The tx digest of the transaction
46
+ * @type {string}
47
+ * @memberof HoldbackReleaseTransaction
48
+ */
49
+ txDigest?: string;
50
+ /**
51
+ * The sequence number of the transaction
52
+ * @type {string}
53
+ * @memberof HoldbackReleaseTransaction
54
+ */
55
+ sequenceNumber?: string;
56
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -18,6 +18,7 @@ export * from "./coin-price.js";
18
18
  export * from "./defi-integration.js";
19
19
  export * from "./deposit-transaction.js";
20
20
  export * from "./ember-position.js";
21
+ export * from "./escrow-claim-transaction.js";
21
22
  export * from "./evm-atomic-liquidity-lib.js";
22
23
  export * from "./evm-atomic-vault.js";
23
24
  export * from "./evm-contracts.js";
@@ -39,7 +40,10 @@ export * from "./fee.js";
39
40
  export * from "./fee-multiplier-tier.js";
40
41
  export * from "./fees.js";
41
42
  export * from "./history-interval.js";
43
+ export * from "./holdback-release-transaction.js";
42
44
  export * from "./instant-withdraw-config.js";
45
+ export * from "./instant-withdraw-transaction.js";
46
+ export * from "./instant-withdraw-via-swap-transaction.js";
43
47
  export * from "./lp.js";
44
48
  export * from "./manager.js";
45
49
  export * from "./min-withdrawal-shares-updated-event.js";
@@ -18,6 +18,7 @@ export * from "./coin-price.js";
18
18
  export * from "./defi-integration.js";
19
19
  export * from "./deposit-transaction.js";
20
20
  export * from "./ember-position.js";
21
+ export * from "./escrow-claim-transaction.js";
21
22
  export * from "./evm-atomic-liquidity-lib.js";
22
23
  export * from "./evm-atomic-vault.js";
23
24
  export * from "./evm-contracts.js";
@@ -39,7 +40,10 @@ export * from "./fee.js";
39
40
  export * from "./fee-multiplier-tier.js";
40
41
  export * from "./fees.js";
41
42
  export * from "./history-interval.js";
43
+ export * from "./holdback-release-transaction.js";
42
44
  export * from "./instant-withdraw-config.js";
45
+ export * from "./instant-withdraw-transaction.js";
46
+ export * from "./instant-withdraw-via-swap-transaction.js";
43
47
  export * from "./lp.js";
44
48
  export * from "./manager.js";
45
49
  export * from "./min-withdrawal-shares-updated-event.js";
@@ -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: 2.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.js";
13
+ import type { VaultSlice } from "./vault-slice.js";
14
+ /**
15
+ * Atomic Liquidity Vault instant withdraw: shares burned on the atomic vault for a net collateral payout (fee excluded from amount).
16
+ * @export
17
+ * @interface InstantWithdrawTransaction
18
+ */
19
+ export interface InstantWithdrawTransaction {
20
+ /**
21
+ * The timestamp of the event
22
+ * @type {number}
23
+ * @memberof InstantWithdrawTransaction
24
+ */
25
+ timestamp?: number;
26
+ /**
27
+ * The amount of shares burned
28
+ * @type {string}
29
+ * @memberof InstantWithdrawTransaction
30
+ */
31
+ sharesAmount?: string;
32
+ /**
33
+ *
34
+ * @type {Asset}
35
+ * @memberof InstantWithdrawTransaction
36
+ */
37
+ sharesCoin?: Asset;
38
+ /**
39
+ * The net collateral amount delivered (fee excluded)
40
+ * @type {string}
41
+ * @memberof InstantWithdrawTransaction
42
+ */
43
+ amount?: string;
44
+ /**
45
+ *
46
+ * @type {Asset}
47
+ * @memberof InstantWithdrawTransaction
48
+ */
49
+ coin?: Asset;
50
+ /**
51
+ * The platform/withdraw fee charged, excluded from amount
52
+ * @type {string}
53
+ * @memberof InstantWithdrawTransaction
54
+ */
55
+ fees?: string;
56
+ /**
57
+ *
58
+ * @type {VaultSlice}
59
+ * @memberof InstantWithdrawTransaction
60
+ */
61
+ vault?: VaultSlice;
62
+ /**
63
+ * The tx digest of the transaction
64
+ * @type {string}
65
+ * @memberof InstantWithdrawTransaction
66
+ */
67
+ txDigest?: string;
68
+ /**
69
+ * The sequence number of the transaction
70
+ * @type {string}
71
+ * @memberof InstantWithdrawTransaction
72
+ */
73
+ sequenceNumber?: string;
74
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -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: 2.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.js";
13
+ import type { VaultSlice } from "./vault-slice.js";
14
+ /**
15
+ * Instant withdraw settled through an ember-share swap, mirrored on the source vault. amount is the full collateral realized now (net + holdback); holdbackAmount is the portion held back for later release.
16
+ * @export
17
+ * @interface InstantWithdrawViaSwapTransaction
18
+ */
19
+ export interface InstantWithdrawViaSwapTransaction {
20
+ /**
21
+ * The timestamp of the event
22
+ * @type {number}
23
+ * @memberof InstantWithdrawViaSwapTransaction
24
+ */
25
+ timestamp?: number;
26
+ /**
27
+ * The amount of source-vault shares withdrawn
28
+ * @type {string}
29
+ * @memberof InstantWithdrawViaSwapTransaction
30
+ */
31
+ sharesAmount?: string;
32
+ /**
33
+ *
34
+ * @type {Asset}
35
+ * @memberof InstantWithdrawViaSwapTransaction
36
+ */
37
+ sharesCoin?: Asset;
38
+ /**
39
+ * The full collateral realized now (net + holdback)
40
+ * @type {string}
41
+ * @memberof InstantWithdrawViaSwapTransaction
42
+ */
43
+ amount?: string;
44
+ /**
45
+ *
46
+ * @type {Asset}
47
+ * @memberof InstantWithdrawViaSwapTransaction
48
+ */
49
+ coin?: Asset;
50
+ /**
51
+ * The platform/withdraw fee charged, excluded from amount
52
+ * @type {string}
53
+ * @memberof InstantWithdrawViaSwapTransaction
54
+ */
55
+ fees?: string;
56
+ /**
57
+ * The collateral held back at swap time for later release
58
+ * @type {string}
59
+ * @memberof InstantWithdrawViaSwapTransaction
60
+ */
61
+ holdbackAmount?: string;
62
+ /**
63
+ *
64
+ * @type {VaultSlice}
65
+ * @memberof InstantWithdrawViaSwapTransaction
66
+ */
67
+ vault?: VaultSlice;
68
+ /**
69
+ * The tx digest of the transaction
70
+ * @type {string}
71
+ * @memberof InstantWithdrawViaSwapTransaction
72
+ */
73
+ txDigest?: string;
74
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Ember Protocol Vaults API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -1,4 +1,4 @@
1
- import { SuiJsonRpcClient as SuiClient } from "@mysten/sui/jsonRpc";
1
+ import { BaseClient as SuiClient } from "@mysten/sui/client";
2
2
  import { Signer } from "@firefly-exchange/library-sui";
3
3
  import { IVault, IVaultAccount } from "../interfaces/index.js";
4
4
  export declare class Vault {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "2.5.0-pre.1",
4
+ "version": "2.5.0-pre.2",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",