@ember-finance/sdk 2.5.0-pre.9 → 2.5.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 (90) hide show
  1. package/dist/src/abis/ERC20Token.json +2 -2
  2. package/dist/src/abis/EmberETHVault.json +5 -279
  3. package/dist/src/abis/EmberProtocolConfig.json +2 -170
  4. package/dist/src/abis/EmberVault.json +2 -2
  5. package/dist/src/abis/EmberVaultMintBurnOFTAdapter.json +2 -43
  6. package/dist/src/api/models/poc-report-asset.d.ts +6 -0
  7. package/dist/src/api/models/poc-report-protocol.d.ts +30 -0
  8. package/dist/src/api/models/poc-report-token.d.ts +36 -0
  9. package/dist/src/api/models/poc-report-wallet.d.ts +10 -4
  10. package/dist/src/api/v2/apis/accounts-api.d.ts +0 -5
  11. package/dist/src/api/v2/apis/accounts-api.js +1 -6
  12. package/dist/src/api/v2/apis/vaults-api.d.ts +43 -16
  13. package/dist/src/api/v2/apis/vaults-api.js +84 -21
  14. package/dist/src/api/v2/models/account-transaction-transaction-data.d.ts +1 -5
  15. package/dist/src/api/v2/models/account-transaction.d.ts +0 -5
  16. package/dist/src/api/v2/models/account-transaction.js +1 -6
  17. package/dist/src/api/v2/models/chain-vault-details.d.ts +13 -14
  18. package/dist/src/api/v2/models/chain-vault-details.js +6 -1
  19. package/dist/src/api/v2/models/evm-contracts.d.ts +0 -16
  20. package/dist/src/api/v2/models/index.d.ts +4 -9
  21. package/dist/src/api/v2/models/index.js +4 -9
  22. package/dist/src/api/v2/models/poc-report-asset.d.ts +6 -0
  23. package/dist/src/api/v2/models/poc-report-protocol.d.ts +30 -0
  24. package/dist/src/api/v2/models/poc-report-token.d.ts +36 -0
  25. package/dist/src/api/v2/models/poc-report-wallet.d.ts +10 -4
  26. package/dist/src/api/v2/models/transparency-group.d.ts +67 -0
  27. package/dist/src/api/v2/models/transparency-row.d.ts +138 -0
  28. package/dist/src/api/v2/models/{fee-multiplier-tier.js → transparency-row.js} +10 -1
  29. package/dist/src/api/v2/models/transparency-view.d.ts +22 -0
  30. package/dist/src/api/v2/models/{evm-atomic-vault.js → transparency-view.js} +10 -1
  31. package/dist/src/api/v2/models/vault-detail.d.ts +0 -11
  32. package/dist/src/api/v2/models/vault-detail.js +0 -4
  33. package/dist/src/api/v2/models/vault-transparency-report.d.ts +82 -0
  34. package/dist/src/ember-vaults.d.ts +1 -2
  35. package/dist/src/evm-vaults/on-chain-calls/index.d.ts +0 -1
  36. package/dist/src/evm-vaults/on-chain-calls/index.js +0 -1
  37. package/dist/src/evm-vaults/on-chain-calls/operator.d.ts +0 -10
  38. package/dist/src/evm-vaults/on-chain-calls/operator.js +0 -28
  39. package/dist/src/evm-vaults/on-chain-calls/tx-builder.d.ts +0 -109
  40. package/dist/src/evm-vaults/on-chain-calls/tx-builder.js +0 -281
  41. package/dist/src/evm-vaults/on-chain-calls/user.d.ts +0 -50
  42. package/dist/src/evm-vaults/on-chain-calls/user.js +0 -75
  43. package/dist/src/evm-vaults/on-chain-calls/vault-admin.d.ts +0 -55
  44. package/dist/src/evm-vaults/on-chain-calls/vault-admin.js +0 -122
  45. package/dist/src/evm-vaults/on-chain-calls/vault-reader.d.ts +0 -6
  46. package/dist/src/evm-vaults/on-chain-calls/vault-reader.js +0 -9
  47. package/dist/src/evm-vaults/utils/deployment-parser.d.ts +0 -8
  48. package/dist/src/evm-vaults/utils/deployment-parser.js +0 -11
  49. package/dist/src/sui-vaults/interfaces/index.d.ts +0 -15
  50. package/dist/src/sui-vaults/on-chain-calls/admin.d.ts +1 -37
  51. package/dist/src/sui-vaults/on-chain-calls/admin.js +0 -56
  52. package/dist/src/sui-vaults/on-chain-calls/index.d.ts +0 -1
  53. package/dist/src/sui-vaults/on-chain-calls/index.js +0 -1
  54. package/dist/src/sui-vaults/on-chain-calls/onchain-calls.d.ts +1 -2
  55. package/dist/src/sui-vaults/on-chain-calls/operator.d.ts +1 -129
  56. package/dist/src/sui-vaults/on-chain-calls/operator.js +0 -210
  57. package/dist/src/sui-vaults/on-chain-calls/tx-builder.d.ts +0 -482
  58. package/dist/src/sui-vaults/on-chain-calls/tx-builder.js +0 -1430
  59. package/dist/src/sui-vaults/on-chain-calls/user.d.ts +1 -107
  60. package/dist/src/sui-vaults/on-chain-calls/user.js +0 -190
  61. package/dist/src/sui-vaults/on-chain-calls/vault-admin.d.ts +1 -229
  62. package/dist/src/sui-vaults/on-chain-calls/vault-admin.js +0 -391
  63. package/dist/src/sui-vaults/on-chain-calls/vault.d.ts +1 -2
  64. package/dist/src/sui-vaults/utils/common.d.ts +1 -2
  65. package/dist/src/sui-vaults/utils/deployment-parser.d.ts +0 -12
  66. package/dist/src/sui-vaults/utils/deployment-parser.js +0 -24
  67. package/package.json +2 -3
  68. package/dist/src/abis/AtomicLiquidity.json +0 -4050
  69. package/dist/src/api/v2/models/escrow-claim-transaction.d.ts +0 -56
  70. package/dist/src/api/v2/models/evm-atomic-liquidity-lib.d.ts +0 -48
  71. package/dist/src/api/v2/models/evm-atomic-vault.d.ts +0 -102
  72. package/dist/src/api/v2/models/fee-multiplier-tier.d.ts +0 -30
  73. package/dist/src/api/v2/models/holdback-release-transaction.d.ts +0 -56
  74. package/dist/src/api/v2/models/holdback-release-transaction.js +0 -14
  75. package/dist/src/api/v2/models/instant-withdraw-config.d.ts +0 -109
  76. package/dist/src/api/v2/models/instant-withdraw-config.js +0 -14
  77. package/dist/src/api/v2/models/instant-withdraw-transaction.d.ts +0 -74
  78. package/dist/src/api/v2/models/instant-withdraw-transaction.js +0 -14
  79. package/dist/src/api/v2/models/instant-withdraw-via-swap-transaction.d.ts +0 -74
  80. package/dist/src/api/v2/models/instant-withdraw-via-swap-transaction.js +0 -14
  81. package/dist/src/api/v2/models/supported-ember-vault.d.ts +0 -42
  82. package/dist/src/api/v2/models/supported-ember-vault.js +0 -14
  83. package/dist/src/atomic/instant-withdraw.d.ts +0 -125
  84. package/dist/src/atomic/instant-withdraw.js +0 -122
  85. package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.d.ts +0 -98
  86. package/dist/src/evm-vaults/on-chain-calls/atomic-liquidity.js +0 -212
  87. package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.d.ts +0 -62
  88. package/dist/src/sui-vaults/on-chain-calls/atomic-liquidity.js +0 -174
  89. /package/dist/src/api/v2/models/{escrow-claim-transaction.js → transparency-group.js} +0 -0
  90. /package/dist/src/api/v2/models/{evm-atomic-liquidity-lib.js → vault-transparency-report.js} +0 -0
@@ -20,14 +20,6 @@ export declare class EVMDeploymentParser {
20
20
  * Gets the protocol config proxy address
21
21
  */
22
22
  getProtocolConfigAddress(): string | undefined;
23
- /**
24
- * Resolves the protocol config that governs a specific vault. Atomic Liquidity vaults can be
25
- * deployed against their own protocol config (carried per-vault in the deployment), which may
26
- * differ from the global one; admin ops for an atomic vault MUST route through that config.
27
- * Falls back to the global protocol config for non-atomic vaults (and atomic vaults that don't
28
- * specify one).
29
- */
30
- getProtocolConfigAddressForVault(vaultAddress: string): string | undefined;
31
23
  /**
32
24
  * Gets the protocol config implementation address
33
25
  */
@@ -27,17 +27,6 @@ export class EVMDeploymentParser {
27
27
  getProtocolConfigAddress() {
28
28
  return this.deployment.contracts?.protocolConfig.proxyAddress;
29
29
  }
30
- /**
31
- * Resolves the protocol config that governs a specific vault. Atomic Liquidity vaults can be
32
- * deployed against their own protocol config (carried per-vault in the deployment), which may
33
- * differ from the global one; admin ops for an atomic vault MUST route through that config.
34
- * Falls back to the global protocol config for non-atomic vaults (and atomic vaults that don't
35
- * specify one).
36
- */
37
- getProtocolConfigAddressForVault(vaultAddress) {
38
- const atomic = Object.values(this.deployment.contracts?.atomicLiquidityVaults ?? {}).find(v => v.proxyAddress?.toLowerCase() === vaultAddress.toLowerCase());
39
- return atomic?.protocolConfig ?? this.getProtocolConfigAddress();
40
- }
41
30
  /**
42
31
  * Gets the protocol config implementation address
43
32
  */
@@ -29,21 +29,6 @@ export interface ISuiDeployment {
29
29
  DepositCoinDecimals: number;
30
30
  };
31
31
  };
32
- AtomicVaults?: {
33
- [key: string]: {
34
- Admin?: Address;
35
- Operator?: Address;
36
- RateManager?: Address;
37
- Name: string;
38
- MaxRateChangePerUpdate?: string;
39
- FeePercentage?: string;
40
- MinWithdrawalShares?: string;
41
- SubAccounts?: Address[];
42
- ObjectId: Address;
43
- CollateralCoinType: Address;
44
- CollateralCoinDecimals: number;
45
- };
46
- };
47
32
  }
48
33
  export interface IDeploymentConfig {
49
34
  rpc: string;
@@ -1,7 +1,6 @@
1
- import { BaseClient as SuiClient } from "@mysten/sui/client";
2
1
  import { OnChainCalls } from "./onchain-calls.js";
3
2
  import { ISuiDeployment, IVaultOptionalParams } from "../interfaces/index.js";
4
- import { OnChainCallResponse, Signer, SuiAddress, SuiTransactionBlockResponseOptions } from "@firefly-exchange/library-sui";
3
+ import { OnChainCallResponse, Signer, SuiAddress, SuiClient, SuiTransactionBlockResponseOptions } from "@firefly-exchange/library-sui";
5
4
  import { NumStr } from "@firefly-exchange/library-sui";
6
5
  export declare class AdminCalls extends OnChainCalls {
7
6
  constructor(_network: string, _suiClient: SuiClient, _deployment: ISuiDeployment, _signer?: Signer, _walletAddress?: string);
@@ -86,39 +85,4 @@ export declare class AdminCalls extends OnChainCalls {
86
85
  * @returns OnChainCallResponse
87
86
  */
88
87
  updateMaxRateInterval(maxRateInterval: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
89
- /**
90
- * Create and execute a create-atomic-vault transaction. Allows admin to
91
- * create a new atomic liquidity vault on the protocol.
92
- * @param collateralCoinType The type of the collateral coin (T)
93
- * @param vaultName Name of the vault
94
- * @param adminAddress The admin address of the vault
95
- * @param operatorAddress The operator address of the vault
96
- * @param rateManagerAddress The rate manager address of the vault
97
- * @param maxRateChangePerUpdate The maximum rate change per update
98
- * @param feePercentage The fee percentage
99
- * @param minWithdrawalShares The minimum withdrawal shares
100
- * @param rateUpdateInterval The rate update interval
101
- * @param maxTVL The maximum TVL of the vault
102
- * @param subAccounts The sub accounts of the vault
103
- * @param options Optional tx execution params
104
- * @returns OnChainCallResponse
105
- */
106
- createAtomicVault(collateralCoinType: string, vaultName: string, adminAddress: SuiAddress, operatorAddress: SuiAddress, rateManagerAddress: SuiAddress, maxRateChangePerUpdate: NumStr, feePercentage: NumStr, minWithdrawalShares: NumStr, rateUpdateInterval: NumStr, maxTVL: NumStr, subAccounts: SuiAddress[], options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
107
- /**
108
- * Change the admin address of an atomic vault
109
- * @param vaultId The id of the atomic vault
110
- * @param adminAddress The new admin address
111
- * @param options Optional tx execution params
112
- * @returns OnChainCallResponse
113
- */
114
- atomicChangeVaultAdmin(vaultId: string, adminAddress: SuiAddress, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
115
- /**
116
- * Set / unset a blacklisted account on an atomic vault
117
- * @param vaultId The id of the atomic vault
118
- * @param account The account to set the blacklist status for
119
- * @param status Whether the account should be blacklisted
120
- * @param options Optional tx execution params
121
- * @returns OnChainCallResponse
122
- */
123
- atomicSetBlacklistedAccount(vaultId: string, account: SuiAddress, status: boolean, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
124
88
  }
@@ -137,60 +137,4 @@ export class AdminCalls extends OnChainCalls {
137
137
  });
138
138
  return this.execCall(txb, options);
139
139
  }
140
- // ============================================================================
141
- // Atomic Liquidity Vault (BFE-818) — protocol admin methods
142
- // ============================================================================
143
- /**
144
- * Create and execute a create-atomic-vault transaction. Allows admin to
145
- * create a new atomic liquidity vault on the protocol.
146
- * @param collateralCoinType The type of the collateral coin (T)
147
- * @param vaultName Name of the vault
148
- * @param adminAddress The admin address of the vault
149
- * @param operatorAddress The operator address of the vault
150
- * @param rateManagerAddress The rate manager address of the vault
151
- * @param maxRateChangePerUpdate The maximum rate change per update
152
- * @param feePercentage The fee percentage
153
- * @param minWithdrawalShares The minimum withdrawal shares
154
- * @param rateUpdateInterval The rate update interval
155
- * @param maxTVL The maximum TVL of the vault
156
- * @param subAccounts The sub accounts of the vault
157
- * @param options Optional tx execution params
158
- * @returns OnChainCallResponse
159
- */
160
- async createAtomicVault(collateralCoinType, vaultName, adminAddress, operatorAddress, rateManagerAddress, maxRateChangePerUpdate, feePercentage, minWithdrawalShares, rateUpdateInterval, maxTVL, subAccounts, options) {
161
- const txb = options?.txBlock || new TransactionBlock();
162
- this.txBuilder.createAtomicVault(collateralCoinType, vaultName, adminAddress, operatorAddress, rateManagerAddress, maxRateChangePerUpdate, feePercentage, minWithdrawalShares, rateUpdateInterval, maxTVL, subAccounts, { ...options, txBlock: txb });
163
- return this.execCall(txb, options);
164
- }
165
- /**
166
- * Change the admin address of an atomic vault
167
- * @param vaultId The id of the atomic vault
168
- * @param adminAddress The new admin address
169
- * @param options Optional tx execution params
170
- * @returns OnChainCallResponse
171
- */
172
- async atomicChangeVaultAdmin(vaultId, adminAddress, options) {
173
- const txb = options?.txBlock || new TransactionBlock();
174
- this.txBuilder.atomicChangeVaultAdmin(vaultId, adminAddress, {
175
- ...options,
176
- txBlock: txb
177
- });
178
- return this.execCall(txb, options);
179
- }
180
- /**
181
- * Set / unset a blacklisted account on an atomic vault
182
- * @param vaultId The id of the atomic vault
183
- * @param account The account to set the blacklist status for
184
- * @param status Whether the account should be blacklisted
185
- * @param options Optional tx execution params
186
- * @returns OnChainCallResponse
187
- */
188
- async atomicSetBlacklistedAccount(vaultId, account, status, options) {
189
- const txb = options?.txBlock || new TransactionBlock();
190
- this.txBuilder.atomicSetBlacklistedAccount(vaultId, account, status, {
191
- ...options,
192
- txBlock: txb
193
- });
194
- return this.execCall(txb, options);
195
- }
196
140
  }
@@ -4,4 +4,3 @@ export * from "./user.js";
4
4
  export * from "./vault-admin.js";
5
5
  export * from "./operator.js";
6
6
  export * from "./vault.js";
7
- export * from "./atomic-liquidity.js";
@@ -4,4 +4,3 @@ export * from "./user.js";
4
4
  export * from "./vault-admin.js";
5
5
  export * from "./operator.js";
6
6
  export * from "./vault.js";
7
- export * from "./atomic-liquidity.js";
@@ -1,5 +1,4 @@
1
- import { BaseClient as SuiClient } from "@mysten/sui/client";
2
- import { DryRunTransactionBlockResponse, OnChainCallResponse, Signer, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions, TransactionBlock } from "@firefly-exchange/library-sui";
1
+ import { DryRunTransactionBlockResponse, OnChainCallResponse, Signer, SuiClient, SuiTransactionBlockResponse, SuiTransactionBlockResponseOptions, TransactionBlock } from "@firefly-exchange/library-sui";
3
2
  import { Address } from "@firefly-exchange/library-sui";
4
3
  import { SuiDeploymentParser } from "../utils/deployment-parser.js";
5
4
  import { ISuiDeployment, IVaultOptionalParams } from "../interfaces/index.js";
@@ -1,7 +1,6 @@
1
- import { BaseClient as SuiClient } from "@mysten/sui/client";
2
1
  import { OnChainCalls } from "./onchain-calls.js";
3
2
  import { ISuiDeployment, IVaultOptionalParams } from "../interfaces/index.js";
4
- import { OnChainCallResponse, Signer, SuiAddress, SuiTransactionBlockResponseOptions } from "@firefly-exchange/library-sui";
3
+ import { OnChainCallResponse, Signer, SuiAddress, SuiClient, SuiTransactionBlockResponseOptions } from "@firefly-exchange/library-sui";
5
4
  import { NumStr } from "@firefly-exchange/library-sui";
6
5
  export declare class OperatorCalls extends OnChainCalls {
7
6
  constructor(_network: string, _suiClient: SuiClient, _deployment: ISuiDeployment, _signer?: Signer, _walletAddress?: string);
@@ -101,131 +100,4 @@ export declare class OperatorCalls extends OnChainCalls {
101
100
  * @returns OnChainCallResponse
102
101
  */
103
102
  setFeeExemptionList(vaultId: string, user: SuiAddress, status: boolean, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
104
- /**
105
- * Process pending withdrawal requests of an atomic vault
106
- * @param vaultId The id of the atomic vault
107
- * @param maxRequests The maximum number of withdrawal requests to process
108
- * @param options Optional tx execution params
109
- * @returns OnChainCallResponse
110
- */
111
- atomicProcessWithdrawalRequests(vaultId: string, maxRequests: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
112
- /**
113
- * Process pending withdrawal requests of an atomic vault up to a timestamp
114
- * @param vaultId The id of the atomic vault
115
- * @param timestamp The timestamp to process withdrawal requests up to
116
- * @param options Optional tx execution params
117
- * @returns OnChainCallResponse
118
- */
119
- atomicProcessWithdrawalRequestsUpToTimestamp(vaultId: string, timestamp: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
120
- /**
121
- * Collect the platform fee of an atomic vault
122
- * @param vaultId The id of the atomic vault
123
- * @param loss The reported loss amount
124
- * @param options Optional tx execution params
125
- * @returns OnChainCallResponse
126
- */
127
- atomicCollectPlatformFee(vaultId: string, loss: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
128
- /**
129
- * Supply collateral from an atomic vault into the Suilend strategy
130
- * @param vaultId The id of the atomic vault
131
- * @param poolCoinType The Suilend pool coin type (P)
132
- * @param lendingMarketId Object id of the Suilend LendingMarket<P>
133
- * @param amount The amount to supply
134
- * @param options Optional tx execution params
135
- * @returns OnChainCallResponse
136
- */
137
- atomicSupplyToSuilendStrategy(vaultId: string, poolCoinType: string, lendingMarketId: string, amount: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
138
- /**
139
- * Supply collateral from an atomic vault into the AlphaLend strategy
140
- * @param vaultId The id of the atomic vault
141
- * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
142
- * @param amount The amount to supply
143
- * @param options Optional tx execution params
144
- * @returns OnChainCallResponse
145
- */
146
- atomicSupplyToAlphalendStrategy(vaultId: string, lendingProtocolId: string, amount: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
147
- /**
148
- * Withdraw collateral from the Suilend strategy back into an atomic vault
149
- * @param vaultId The id of the atomic vault
150
- * @param poolCoinType The Suilend pool coin type (P)
151
- * @param lendingMarketId Object id of the Suilend LendingMarket<P>
152
- * @param amount The amount to withdraw
153
- * @param options Optional tx execution params
154
- * @returns OnChainCallResponse
155
- */
156
- atomicWithdrawFromSuilendStrategy(vaultId: string, poolCoinType: string, lendingMarketId: string, amount: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
157
- /**
158
- * Withdraw collateral from the AlphaLend strategy back into an atomic vault
159
- * @param vaultId The id of the atomic vault
160
- * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
161
- * @param amount The amount to withdraw
162
- * @param options Optional tx execution params
163
- * @returns OnChainCallResponse
164
- */
165
- atomicWithdrawFromAlphalendStrategy(vaultId: string, lendingProtocolId: string, amount: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
166
- /**
167
- * Supply collateral from an atomic vault to one of its sub accounts
168
- * @param vaultId The id of the atomic vault
169
- * @param subAccount The sub account address
170
- * @param amount The amount to supply
171
- * @param options Optional tx execution params
172
- * @returns OnChainCallResponse
173
- */
174
- atomicSupplyToSubAccount(vaultId: string, subAccount: string, amount: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
175
- /**
176
- * Deposit collateral back into an atomic vault from a sub account
177
- * @param vaultId The id of the atomic vault
178
- * @param tokenId Object id of the Receiving<Coin<T>> payment to claim
179
- * @param subAccount The sub account address
180
- * @param options Optional tx execution params
181
- * @returns OnChainCallResponse
182
- */
183
- atomicDepositFromSubAccount(vaultId: string, tokenId: string, subAccount: string, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
184
- /**
185
- * Redeem collected ember shares from an atomic vault against a source vault
186
- * @param vaultId The id of the atomic vault
187
- * @param sourceReceiptType The receipt coin type of the source vault (R)
188
- * @param sourceVaultId Object id of the source Vault<T, R>
189
- * @param amount The amount of shares to redeem
190
- * @param options Optional tx execution params
191
- * @returns OnChainCallResponse
192
- */
193
- atomicRedeemCollectedEmberShares(vaultId: string, sourceReceiptType: string, sourceVaultId: string, amount: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
194
- /**
195
- * Release users' holdback for an ember share source vault
196
- * @param vaultId The id of the atomic vault
197
- * @param shareVaultId Id of the source ember share vault
198
- * @param unwindingPercentage The unwinding percentage
199
- * @param maxEntries The max entries to process
200
- * @param options Optional tx execution params
201
- * @returns OnChainCallResponse
202
- */
203
- atomicReleaseUsersHoldback(vaultId: string, shareVaultId: string, unwindingPercentage: NumStr, maxEntries: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
204
- /**
205
- * Claim received collateral (a Receiving<Coin<T>>) for an atomic vault
206
- * @param vaultId The id of the atomic vault
207
- * @param tokenId Object id of the Receiving<Coin<T>> payment to claim
208
- * @param options Optional tx execution params
209
- * @returns OnChainCallResponse
210
- */
211
- atomicClaimReceivedCollateral(vaultId: string, tokenId: string, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
212
- /**
213
- * Claim returned ember shares (a Receiving<Coin<R>>) for an atomic vault
214
- * @param vaultId The id of the atomic vault
215
- * @param sourceReceiptType The receipt coin type of the source vault (R)
216
- * @param sourceVaultId Id of the source vault the shares belong to
217
- * @param tokenId Object id of the Receiving<Coin<R>> payment to claim
218
- * @param options Optional tx execution params
219
- * @returns OnChainCallResponse
220
- */
221
- atomicClaimReturnedEmberShares(vaultId: string, sourceReceiptType: string, sourceVaultId: string, tokenId: string, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
222
- /**
223
- * Update the rate of an atomic vault (rate manager role; uses operator class
224
- * to mirror the receipt-vault `updateVaultRate` placement)
225
- * @param vaultId The id of the atomic vault
226
- * @param newRate The new rate to set for the vault
227
- * @param options Optional tx execution params
228
- * @returns OnChainCallResponse
229
- */
230
- atomicUpdateVaultRate(vaultId: string, newRate: NumStr, options?: IVaultOptionalParams & SuiTransactionBlockResponseOptions): Promise<OnChainCallResponse>;
231
103
  }
@@ -177,214 +177,4 @@ export class OperatorCalls extends OnChainCalls {
177
177
  });
178
178
  return this.execCall(txb, options);
179
179
  }
180
- // ============================================================================
181
- // Atomic Liquidity Vault (BFE-818) — operator / rate-manager methods
182
- // ============================================================================
183
- /**
184
- * Process pending withdrawal requests of an atomic vault
185
- * @param vaultId The id of the atomic vault
186
- * @param maxRequests The maximum number of withdrawal requests to process
187
- * @param options Optional tx execution params
188
- * @returns OnChainCallResponse
189
- */
190
- async atomicProcessWithdrawalRequests(vaultId, maxRequests, options) {
191
- const txb = options?.txBlock || new TransactionBlock();
192
- this.txBuilder.atomicProcessWithdrawalRequests(vaultId, maxRequests, {
193
- ...options,
194
- txBlock: txb
195
- });
196
- return this.execCall(txb, options);
197
- }
198
- /**
199
- * Process pending withdrawal requests of an atomic vault up to a timestamp
200
- * @param vaultId The id of the atomic vault
201
- * @param timestamp The timestamp to process withdrawal requests up to
202
- * @param options Optional tx execution params
203
- * @returns OnChainCallResponse
204
- */
205
- async atomicProcessWithdrawalRequestsUpToTimestamp(vaultId, timestamp, options) {
206
- const txb = options?.txBlock || new TransactionBlock();
207
- this.txBuilder.atomicProcessWithdrawalRequestsUpToTimestamp(vaultId, timestamp, {
208
- ...options,
209
- txBlock: txb
210
- });
211
- return this.execCall(txb, options);
212
- }
213
- /**
214
- * Collect the platform fee of an atomic vault
215
- * @param vaultId The id of the atomic vault
216
- * @param loss The reported loss amount
217
- * @param options Optional tx execution params
218
- * @returns OnChainCallResponse
219
- */
220
- async atomicCollectPlatformFee(vaultId, loss, options) {
221
- const txb = options?.txBlock || new TransactionBlock();
222
- this.txBuilder.atomicCollectPlatformFee(vaultId, loss, {
223
- ...options,
224
- txBlock: txb
225
- });
226
- return this.execCall(txb, options);
227
- }
228
- /**
229
- * Supply collateral from an atomic vault into the Suilend strategy
230
- * @param vaultId The id of the atomic vault
231
- * @param poolCoinType The Suilend pool coin type (P)
232
- * @param lendingMarketId Object id of the Suilend LendingMarket<P>
233
- * @param amount The amount to supply
234
- * @param options Optional tx execution params
235
- * @returns OnChainCallResponse
236
- */
237
- async atomicSupplyToSuilendStrategy(vaultId, poolCoinType, lendingMarketId, amount, options) {
238
- const txb = options?.txBlock || new TransactionBlock();
239
- this.txBuilder.atomicSupplyToSuilendStrategy(vaultId, poolCoinType, lendingMarketId, amount, { ...options, txBlock: txb });
240
- return this.execCall(txb, options);
241
- }
242
- /**
243
- * Supply collateral from an atomic vault into the AlphaLend strategy
244
- * @param vaultId The id of the atomic vault
245
- * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
246
- * @param amount The amount to supply
247
- * @param options Optional tx execution params
248
- * @returns OnChainCallResponse
249
- */
250
- async atomicSupplyToAlphalendStrategy(vaultId, lendingProtocolId, amount, options) {
251
- const txb = options?.txBlock || new TransactionBlock();
252
- this.txBuilder.atomicSupplyToAlphalendStrategy(vaultId, lendingProtocolId, amount, {
253
- ...options,
254
- txBlock: txb
255
- });
256
- return this.execCall(txb, options);
257
- }
258
- /**
259
- * Withdraw collateral from the Suilend strategy back into an atomic vault
260
- * @param vaultId The id of the atomic vault
261
- * @param poolCoinType The Suilend pool coin type (P)
262
- * @param lendingMarketId Object id of the Suilend LendingMarket<P>
263
- * @param amount The amount to withdraw
264
- * @param options Optional tx execution params
265
- * @returns OnChainCallResponse
266
- */
267
- async atomicWithdrawFromSuilendStrategy(vaultId, poolCoinType, lendingMarketId, amount, options) {
268
- const txb = options?.txBlock || new TransactionBlock();
269
- this.txBuilder.atomicWithdrawFromSuilendStrategy(vaultId, poolCoinType, lendingMarketId, amount, { ...options, txBlock: txb });
270
- return this.execCall(txb, options);
271
- }
272
- /**
273
- * Withdraw collateral from the AlphaLend strategy back into an atomic vault
274
- * @param vaultId The id of the atomic vault
275
- * @param lendingProtocolId Object id of the AlphaLend LendingProtocol
276
- * @param amount The amount to withdraw
277
- * @param options Optional tx execution params
278
- * @returns OnChainCallResponse
279
- */
280
- async atomicWithdrawFromAlphalendStrategy(vaultId, lendingProtocolId, amount, options) {
281
- const txb = options?.txBlock || new TransactionBlock();
282
- this.txBuilder.atomicWithdrawFromAlphalendStrategy(vaultId, lendingProtocolId, amount, { ...options, txBlock: txb });
283
- return this.execCall(txb, options);
284
- }
285
- /**
286
- * Supply collateral from an atomic vault to one of its sub accounts
287
- * @param vaultId The id of the atomic vault
288
- * @param subAccount The sub account address
289
- * @param amount The amount to supply
290
- * @param options Optional tx execution params
291
- * @returns OnChainCallResponse
292
- */
293
- async atomicSupplyToSubAccount(vaultId, subAccount, amount, options) {
294
- const txb = options?.txBlock || new TransactionBlock();
295
- this.txBuilder.atomicSupplyToSubAccount(vaultId, subAccount, amount, {
296
- ...options,
297
- txBlock: txb
298
- });
299
- return this.execCall(txb, options);
300
- }
301
- /**
302
- * Deposit collateral back into an atomic vault from a sub account
303
- * @param vaultId The id of the atomic vault
304
- * @param tokenId Object id of the Receiving<Coin<T>> payment to claim
305
- * @param subAccount The sub account address
306
- * @param options Optional tx execution params
307
- * @returns OnChainCallResponse
308
- */
309
- async atomicDepositFromSubAccount(vaultId, tokenId, subAccount, options) {
310
- const txb = options?.txBlock || new TransactionBlock();
311
- this.txBuilder.atomicDepositFromSubAccount(vaultId, tokenId, subAccount, {
312
- ...options,
313
- txBlock: txb
314
- });
315
- return this.execCall(txb, options);
316
- }
317
- /**
318
- * Redeem collected ember shares from an atomic vault against a source vault
319
- * @param vaultId The id of the atomic vault
320
- * @param sourceReceiptType The receipt coin type of the source vault (R)
321
- * @param sourceVaultId Object id of the source Vault<T, R>
322
- * @param amount The amount of shares to redeem
323
- * @param options Optional tx execution params
324
- * @returns OnChainCallResponse
325
- */
326
- async atomicRedeemCollectedEmberShares(vaultId, sourceReceiptType, sourceVaultId, amount, options) {
327
- const txb = options?.txBlock || new TransactionBlock();
328
- this.txBuilder.atomicRedeemCollectedEmberShares(vaultId, sourceReceiptType, sourceVaultId, amount, { ...options, txBlock: txb });
329
- return this.execCall(txb, options);
330
- }
331
- /**
332
- * Release users' holdback for an ember share source vault
333
- * @param vaultId The id of the atomic vault
334
- * @param shareVaultId Id of the source ember share vault
335
- * @param unwindingPercentage The unwinding percentage
336
- * @param maxEntries The max entries to process
337
- * @param options Optional tx execution params
338
- * @returns OnChainCallResponse
339
- */
340
- async atomicReleaseUsersHoldback(vaultId, shareVaultId, unwindingPercentage, maxEntries, options) {
341
- const txb = options?.txBlock || new TransactionBlock();
342
- this.txBuilder.atomicReleaseUsersHoldback(vaultId, shareVaultId, unwindingPercentage, maxEntries, { ...options, txBlock: txb });
343
- return this.execCall(txb, options);
344
- }
345
- /**
346
- * Claim received collateral (a Receiving<Coin<T>>) for an atomic vault
347
- * @param vaultId The id of the atomic vault
348
- * @param tokenId Object id of the Receiving<Coin<T>> payment to claim
349
- * @param options Optional tx execution params
350
- * @returns OnChainCallResponse
351
- */
352
- async atomicClaimReceivedCollateral(vaultId, tokenId, options) {
353
- const txb = options?.txBlock || new TransactionBlock();
354
- this.txBuilder.atomicClaimReceivedCollateral(vaultId, tokenId, {
355
- ...options,
356
- txBlock: txb
357
- });
358
- return this.execCall(txb, options);
359
- }
360
- /**
361
- * Claim returned ember shares (a Receiving<Coin<R>>) for an atomic vault
362
- * @param vaultId The id of the atomic vault
363
- * @param sourceReceiptType The receipt coin type of the source vault (R)
364
- * @param sourceVaultId Id of the source vault the shares belong to
365
- * @param tokenId Object id of the Receiving<Coin<R>> payment to claim
366
- * @param options Optional tx execution params
367
- * @returns OnChainCallResponse
368
- */
369
- async atomicClaimReturnedEmberShares(vaultId, sourceReceiptType, sourceVaultId, tokenId, options) {
370
- const txb = options?.txBlock || new TransactionBlock();
371
- this.txBuilder.atomicClaimReturnedEmberShares(vaultId, sourceReceiptType, sourceVaultId, tokenId, { ...options, txBlock: txb });
372
- return this.execCall(txb, options);
373
- }
374
- /**
375
- * Update the rate of an atomic vault (rate manager role; uses operator class
376
- * to mirror the receipt-vault `updateVaultRate` placement)
377
- * @param vaultId The id of the atomic vault
378
- * @param newRate The new rate to set for the vault
379
- * @param options Optional tx execution params
380
- * @returns OnChainCallResponse
381
- */
382
- async atomicUpdateVaultRate(vaultId, newRate, options) {
383
- const txb = options?.txBlock || new TransactionBlock();
384
- this.txBuilder.atomicUpdateVaultRate(vaultId, newRate, {
385
- ...options,
386
- txBlock: txb
387
- });
388
- return this.execCall(txb, options);
389
- }
390
180
  }