@fuel-ts/account 0.0.0-rc-1356-20240511074927 → 0.0.0-rc-2143-20240513161105

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

@@ -1 +1 @@
1
- {"version":3,"file":"auto-retry-fetch.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/auto-retry-fetch.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,KAAK,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAY1E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,EAC9C,OAAO,CAAC,EAAE,YAAY,EACtB,eAAe,GAAE,MAAU,GAC1B,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CA+BvC"}
1
+ {"version":3,"file":"auto-retry-fetch.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/auto-retry-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,KAAK,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,UAY1E;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,EAC9C,OAAO,CAAC,EAAE,YAAY,EACtB,eAAe,GAAE,MAAU,GAC1B,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CA+BvC"}
@@ -2,5 +2,6 @@ export * from './receipts';
2
2
  export * from './block-explorer';
3
3
  export * from './gas';
4
4
  export * from './json';
5
+ export * from './sleep';
5
6
  export * from './extract-tx-error';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** @hidden */
2
+ export declare function sleep(time: number): Promise<unknown>;
3
+ //# sourceMappingURL=sleep.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/sleep.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,oBAMjC"}
@@ -1,8 +1,4 @@
1
1
  export * from './generateTestWallet';
2
2
  export * from './seedTestWallet';
3
3
  export * from './launchNode';
4
- export * from './setup-test-provider-and-wallets';
5
- export * from './wallet-config';
6
- export * from './test-message';
7
- export * from './asset-id';
8
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -1,5 +1,4 @@
1
1
  /// <reference types="node" />
2
- import type { SnapshotConfigs } from '@fuel-ts/utils';
3
2
  import type { ChildProcessWithoutNullStreams } from 'child_process';
4
3
  import { Provider } from '../providers';
5
4
  import type { WalletUnlocked } from '../wallet';
@@ -7,21 +6,16 @@ export type LaunchNodeOptions = {
7
6
  ip?: string;
8
7
  port?: string;
9
8
  args?: string[];
9
+ fuelCorePath?: string;
10
10
  useSystemFuelCore?: boolean;
11
11
  loggingEnabled?: boolean;
12
12
  debugEnabled?: boolean;
13
13
  basePath?: string;
14
- /**
15
- * The snapshot configuration to use.
16
- * Passing in a snapshot configuration path via the `--snapshot` flag in `args` will override this.
17
- * */
18
- snapshotConfig?: SnapshotConfigs;
19
14
  };
20
15
  export type LaunchNodeResult = Promise<{
21
16
  cleanup: () => void;
22
17
  ip: string;
23
18
  port: string;
24
- url: string;
25
19
  snapshotDir: string;
26
20
  }>;
27
21
  export type KillNodeParams = {
@@ -38,12 +32,13 @@ export declare const killNode: (params: KillNodeParams) => void;
38
32
  * @param ip - the ip to bind to. (optional, defaults to 0.0.0.0)
39
33
  * @param port - the port to bind to. (optional, defaults to 4000 or the next available port)
40
34
  * @param args - additional arguments to pass to fuel-core.
41
- * @param useSystemFuelCore - whether to use the system fuel-core binary or the one provided by the \@fuel-ts/fuel-core package.
35
+ * @param fuelCorePath - the path to the fuel-core binary. (optional, defaults to the fuel-core binary in the node_modules folder)
36
+ * @param useSystemFuelCore - whether to use the system fuel-core binary or the one provided by the \@internal/fuel-core package.
42
37
  * @param loggingEnabled - whether the node should output logs. (optional, defaults to true)
43
38
  * @param debugEnabled - whether the node should log debug messages. (optional, defaults to false)
44
39
  * @param basePath - the base path to use for the temporary folder. (optional, defaults to os.tmpdir())
45
40
  * */
46
- export declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, snapshotConfig, }: LaunchNodeOptions) => LaunchNodeResult;
41
+ export declare const launchNode: ({ ip, port, args, fuelCorePath, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
47
42
  export type LaunchNodeAndGetWalletsResult = Promise<{
48
43
  wallets: WalletUnlocked[];
49
44
  stop: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"launchNode.d.ts","sourceRoot":"","sources":["../../src/test-utils/launchNode.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AASpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAuBhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,iBAAiB,CAAC,EAA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