@ember-finance/sdk 2.4.0 → 2.4.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.
@@ -96,6 +96,12 @@ export interface ChainVaultDetails {
96
96
  * @memberof ChainVaultDetails
97
97
  */
98
98
  covered: boolean;
99
+ /**
100
+ * Per-chain lifecycle status of this vault deployment
101
+ * @type {string}
102
+ * @memberof ChainVaultDetails
103
+ */
104
+ status: ChainVaultDetailsStatusEnum;
99
105
  /**
100
106
  * True if this on-chain vault gates deposits through a parking lot (async deposits) — i.e. it has an active deposit parking lot. Only set for EVM vaults; always false/absent for Sui. Convenience flag equivalent to `parkingLot != null`.
101
107
  * @type {boolean}
@@ -109,3 +115,10 @@ export interface ChainVaultDetails {
109
115
  */
110
116
  parkingLot?: VaultParkingLotInfo;
111
117
  }
118
+ export declare const ChainVaultDetailsStatusEnum: {
119
+ readonly Active: "active";
120
+ readonly Paused: "paused";
121
+ readonly Deprecated: "deprecated";
122
+ readonly Beta: "beta";
123
+ };
124
+ export type ChainVaultDetailsStatusEnum = (typeof ChainVaultDetailsStatusEnum)[keyof typeof ChainVaultDetailsStatusEnum];
@@ -11,4 +11,9 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const ChainVaultDetailsStatusEnum = {
15
+ Active: "active",
16
+ Paused: "paused",
17
+ Deprecated: "deprecated",
18
+ Beta: "beta"
19
+ };
@@ -146,6 +146,14 @@ export interface ITransactionCall {
146
146
  export interface IEvmCallOptions {
147
147
  /** If true, simulates the transaction without sending */
148
148
  dryRun?: boolean;
149
+ /**
150
+ * Override `from` address for the dry-run eth_call. When omitted the RPC
151
+ * defaults to `0x0`, which trips `onlyOperator` / `onlyOwner` / `onlyAdmin`
152
+ * modifiers before the simulated function body runs. Set to the wallet
153
+ * that would sign the real tx so the modifier passes and the dry-run
154
+ * exercises the actual code path. Ignored unless `dryRun` is `true`.
155
+ */
156
+ dryRunFrom?: string;
149
157
  /** If true, returns the transaction call object without executing */
150
158
  returnTxCall?: boolean;
151
159
  /** If true, waits for the transaction to be mined and returns receipt with events */
@@ -134,9 +134,12 @@ export class EVMOnChainCalls {
134
134
  throw new Error("Provider required for dry run");
135
135
  }
136
136
  try {
137
+ // `from` defaults to 0x0, which fails onlyOperator/onlyOwner modifiers before
138
+ // the simulated body runs. Callers pass `dryRunFrom` to exercise those paths.
137
139
  const resultData = await this.provider.call({
138
140
  to: encodedTx.to,
139
- data: encodedTx.data
141
+ data: encodedTx.data,
142
+ from: options?.dryRunFrom
140
143
  });
141
144
  // Decode the result if possible
142
145
  let result;
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.4.0",
4
+ "version": "2.4.2",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",