@fuel-ts/account 0.0.0-rc-2037-20240510180649 → 0.0.0-rc-1356-20240513141855
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/hdwallet/hdwallet.d.ts.map +1 -1
- package/dist/index.global.js +1287 -1545
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +118 -129
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -16
- package/dist/index.mjs.map +1 -1
- package/dist/mnemonic/mnemonic.d.ts.map +1 -1
- package/dist/providers/utils/auto-retry-fetch.d.ts.map +1 -1
- package/dist/providers/utils/index.d.ts +0 -1
- package/dist/providers/utils/index.d.ts.map +1 -1
- package/dist/test-utils/asset-id.d.ts +8 -0
- package/dist/test-utils/asset-id.d.ts.map +1 -0
- package/dist/test-utils/index.d.ts +4 -0
- package/dist/test-utils/index.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +8 -1
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts +33 -0
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +1 -0
- package/dist/test-utils/test-message.d.ts +28 -0
- package/dist/test-utils/test-message.d.ts.map +1 -0
- package/dist/test-utils/wallet-config.d.ts +49 -0
- package/dist/test-utils/wallet-config.d.ts.map +1 -0
- package/dist/test-utils.global.js +1648 -1584
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +400 -172
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +295 -71
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +16 -16
- package/dist/providers/utils/sleep.d.ts +0 -3
- package/dist/providers/utils/sleep.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
@@ -1712,15 +1712,6 @@ function normalizeJSON(root) {
|
|
1712
1712
|
return normalize(clone(root));
|
1713
1713
|
}
|
1714
1714
|
|
1715
|
-
// src/providers/utils/sleep.ts
|
1716
|
-
function sleep(time) {
|
1717
|
-
return new Promise((resolve) => {
|
1718
|
-
setTimeout(() => {
|
1719
|
-
resolve(true);
|
1720
|
-
}, time);
|
1721
|
-
});
|
1722
|
-
}
|
1723
|
-
|
1724
1715
|
// src/providers/utils/extract-tx-error.ts
|
1725
1716
|
import { ErrorCode as ErrorCode7, FuelError as FuelError7 } from "@fuel-ts/errors";
|
1726
1717
|
import { bn as bn6 } from "@fuel-ts/math";
|
@@ -3769,6 +3760,7 @@ var TransactionResponse = class {
|
|
3769
3760
|
};
|
3770
3761
|
|
3771
3762
|
// src/providers/utils/auto-retry-fetch.ts
|
3763
|
+
import { sleep } from "@fuel-ts/utils";
|
3772
3764
|
function getWaitDelay(options, retryAttemptNum) {
|
3773
3765
|
const duration = options.baseDelay ?? 150;
|
3774
3766
|
switch (options.backoff) {
|
@@ -6015,18 +6007,17 @@ var BaseWalletUnlocked = class extends Account {
|
|
6015
6007
|
__publicField(BaseWalletUnlocked, "defaultPath", "m/44'/1179993420'/0'/0/0");
|
6016
6008
|
|
6017
6009
|
// src/hdwallet/hdwallet.ts
|
6010
|
+
import { computeHmac as computeHmac2, ripemd160 } from "@fuel-ts/crypto";
|
6018
6011
|
import { ErrorCode as ErrorCode19, FuelError as FuelError19 } from "@fuel-ts/errors";
|
6019
6012
|
import { sha256 as sha2564 } from "@fuel-ts/hasher";
|
6020
6013
|
import { bn as bn21, toBytes as toBytes2, toHex } from "@fuel-ts/math";
|
6021
|
-
import { arrayify as arrayify18, hexlify as hexlify17, concat as concat5 } from "@fuel-ts/utils";
|
6022
|
-
import { toBeHex, dataSlice as dataSlice2, encodeBase58 as encodeBase582, decodeBase58, computeHmac as computeHmac2, ripemd160 } from "ethers";
|
6014
|
+
import { arrayify as arrayify18, hexlify as hexlify17, concat as concat5, dataSlice as dataSlice2, encodeBase58 as encodeBase582, decodeBase58 } from "@fuel-ts/utils";
|
6023
6015
|
|
6024
6016
|
// src/mnemonic/mnemonic.ts
|
6025
|
-
import { randomBytes as randomBytes4 } from "@fuel-ts/crypto";
|
6017
|
+
import { randomBytes as randomBytes4, pbkdf2, computeHmac } from "@fuel-ts/crypto";
|
6026
6018
|
import { ErrorCode as ErrorCode18, FuelError as FuelError18 } from "@fuel-ts/errors";
|
6027
6019
|
import { sha256 as sha2563 } from "@fuel-ts/hasher";
|
6028
|
-
import { arrayify as arrayify17, hexlify as hexlify16, concat as concat4 } from "@fuel-ts/utils";
|
6029
|
-
import { dataSlice, pbkdf2, computeHmac, encodeBase58 } from "ethers";
|
6020
|
+
import { arrayify as arrayify17, hexlify as hexlify16, concat as concat4, dataSlice, encodeBase58 } from "@fuel-ts/utils";
|
6030
6021
|
|
6031
6022
|
// src/wordlists/words/english.ts
|
6032
6023
|
var english = [
|
@@ -8555,7 +8546,7 @@ var HDWallet = class {
|
|
8555
8546
|
});
|
8556
8547
|
}
|
8557
8548
|
static fromExtendedKey(extendedKey) {
|
8558
|
-
const decoded =
|
8549
|
+
const decoded = hexlify17(toBytes2(decodeBase58(extendedKey)));
|
8559
8550
|
const bytes = arrayify18(decoded);
|
8560
8551
|
const validChecksum = base58check(bytes.slice(0, 78)) === extendedKey;
|
8561
8552
|
if (bytes.length !== 82 || !isValidExtendedKey(bytes)) {
|
@@ -10193,7 +10184,6 @@ export {
|
|
10193
10184
|
resolveGasDependentCosts,
|
10194
10185
|
resolveIconPaths,
|
10195
10186
|
returnZeroScript,
|
10196
|
-
sleep,
|
10197
10187
|
transactionRequestify,
|
10198
10188
|
urlJoin,
|
10199
10189
|
withTimeout,
|