@fuel-ts/account 0.0.0-rc-1356-20240520140225 → 0.0.0-rc-2143-20240520152005
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.
- package/dist/index.global.js +9 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +125 -115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -1
- package/dist/index.mjs.map +1 -1
- package/dist/providers/utils/auto-retry-fetch.d.ts.map +1 -1
- package/dist/providers/utils/index.d.ts +1 -0
- package/dist/providers/utils/index.d.ts.map +1 -1
- package/dist/providers/utils/sleep.d.ts +3 -0
- package/dist/providers/utils/sleep.d.ts.map +1 -0
- package/dist/test-utils/index.d.ts +0 -4
- package/dist/test-utils/index.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +3 -10
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +122 -465
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +169 -407
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +67 -301
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +15 -16
- package/dist/test-utils/asset-id.d.ts +0 -8
- package/dist/test-utils/asset-id.d.ts.map +0 -1
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts +0 -33
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +0 -1
- package/dist/test-utils/test-message.d.ts +0 -29
- package/dist/test-utils/test-message.d.ts.map +0 -1
- package/dist/test-utils/wallet-config.d.ts +0 -55
- package/dist/test-utils/wallet-config.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
@@ -1714,6 +1714,15 @@ function normalizeJSON(root) {
|
|
1714
1714
|
return normalize(clone(root));
|
1715
1715
|
}
|
1716
1716
|
|
1717
|
+
// src/providers/utils/sleep.ts
|
1718
|
+
function sleep(time) {
|
1719
|
+
return new Promise((resolve) => {
|
1720
|
+
setTimeout(() => {
|
1721
|
+
resolve(true);
|
1722
|
+
}, time);
|
1723
|
+
});
|
1724
|
+
}
|
1725
|
+
|
1717
1726
|
// src/providers/utils/extract-tx-error.ts
|
1718
1727
|
import { ErrorCode as ErrorCode7, FuelError as FuelError7 } from "@fuel-ts/errors";
|
1719
1728
|
import { bn as bn6 } from "@fuel-ts/math";
|
@@ -3739,7 +3748,6 @@ var TransactionResponse = class {
|
|
3739
3748
|
};
|
3740
3749
|
|
3741
3750
|
// src/providers/utils/auto-retry-fetch.ts
|
3742
|
-
import { sleep } from "@fuel-ts/utils";
|
3743
3751
|
function getWaitDelay(options, retryAttemptNum) {
|
3744
3752
|
const duration = options.baseDelay ?? 150;
|
3745
3753
|
switch (options.backoff) {
|
@@ -10134,6 +10142,7 @@ export {
|
|
10134
10142
|
resolveGasDependentCosts,
|
10135
10143
|
resolveIconPaths,
|
10136
10144
|
returnZeroScript,
|
10145
|
+
sleep,
|
10137
10146
|
transactionRequestify,
|
10138
10147
|
urlJoin,
|
10139
10148
|
withTimeout,
|