@portal-hq/web 0.0.1-rc2d → 0.0.1-rc2e

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.
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MpcErrorCodes = exports.MpcError = void 0;
13
13
  const errors_1 = require("./errors");
14
- const WEB_SDK_VERSION = '0.0.1-rc2d';
14
+ const WEB_SDK_VERSION = '0.0.1-rc2e';
15
15
  class Mpc {
16
16
  constructor({ portal }) {
17
17
  this.portal = portal;
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { PortalMpcError } from './errors';
11
- const WEB_SDK_VERSION = '0.0.1-rc2d';
11
+ const WEB_SDK_VERSION = '0.0.1-rc2e';
12
12
  class Mpc {
13
13
  constructor({ portal }) {
14
14
  this.portal = portal;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Portal MPC Support for Web",
4
4
  "author": "Portal Labs, Inc.",
5
5
  "homepage": "https://portalhq.io/",
6
- "version": "0.0.1-rc2d",
6
+ "version": "0.0.1-rc2e",
7
7
  "license": "MIT",
8
8
  "main": "lib/commonjs/index",
9
9
  "module": "lib/esm/index",
package/src/mpc/index.ts CHANGED
@@ -10,9 +10,10 @@ import type {
10
10
  ProgressCallback,
11
11
  RecoverArgs,
12
12
  SignArgs,
13
+ SimulateTransactionParam,
14
+ SimulatedTransaction,
13
15
  WorkerResult,
14
16
  } from '../../types'
15
- import { SimulateTransactionParam, SimulatedTransaction } from '../iframe/types'
16
17
 
17
18
  const WEB_SDK_VERSION = '<WEB_SDK_VERSION>'
18
19
 
package/types.d.ts CHANGED
@@ -335,6 +335,41 @@ export interface SignerOptions {
335
335
  portal: Portal
336
336
  }
337
337
 
338
+ export interface SimulateTransactionParam {
339
+ to: string
340
+ value?: string
341
+ data?: string
342
+ gas?: string
343
+ gasPrice?: string
344
+ maxFeePerGas?: string
345
+ maxPriorityFeePerGas?: string
346
+ }
347
+
348
+ export interface SimulatedTransactionChange {
349
+ amount?: string
350
+ assetType?: string
351
+ changeType?: string
352
+ contractAddress?: string
353
+ decimals?: number
354
+ from?: string
355
+ name?: string
356
+ rawAmount?: string
357
+ symbol?: string
358
+ to?: string
359
+ tokenId?: number
360
+ }
361
+
362
+ export interface SimulatedTransactionError {
363
+ message: string
364
+ }
365
+
366
+ export interface SimulatedTransaction {
367
+ changes: SimulatedTransactionChange[]
368
+ gasUsed?: string
369
+ error?: SimulatedTransactionError
370
+ requestError?: SimulatedTransactionError
371
+ }
372
+
338
373
  export interface SwitchEthereumChainParameter {
339
374
  chainId: number
340
375
  }