@fuel-ts/account 0.0.0-rc-1889-20240322122653 → 0.0.0-rc-1815-20240322131329
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/account.d.ts +184 -0
- package/dist/account.d.ts.map +1 -0
- package/dist/configs.d.ts +2 -3
- package/dist/configs.d.ts.map +1 -0
- package/dist/connectors/fuel-connector.d.ts +198 -0
- package/dist/connectors/fuel-connector.d.ts.map +1 -0
- package/dist/connectors/fuel.d.ts +133 -0
- package/dist/connectors/fuel.d.ts.map +1 -0
- package/dist/connectors/index.d.ts +5 -0
- package/dist/connectors/index.d.ts.map +1 -0
- package/dist/connectors/types/connector-metadata.d.ts +12 -0
- package/dist/connectors/types/connector-metadata.d.ts.map +1 -0
- package/dist/connectors/types/connector-types.d.ts +34 -0
- package/dist/connectors/types/connector-types.d.ts.map +1 -0
- package/dist/connectors/types/data-type.d.ts +34 -0
- package/dist/connectors/types/data-type.d.ts.map +1 -0
- package/dist/connectors/types/events.d.ts +111 -0
- package/dist/connectors/types/events.d.ts.map +1 -0
- package/dist/connectors/types/index.d.ts +7 -0
- package/dist/connectors/types/index.d.ts.map +1 -0
- package/dist/connectors/types/local-storage.d.ts +11 -0
- package/dist/connectors/types/local-storage.d.ts.map +1 -0
- package/dist/connectors/types/target-object.d.ts +14 -0
- package/dist/connectors/types/target-object.d.ts.map +1 -0
- package/dist/connectors/utils/cache.d.ts +14 -0
- package/dist/connectors/utils/cache.d.ts.map +1 -0
- package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts +7 -0
- package/dist/connectors/utils/dispatch-fuel-connector-event.d.ts.map +1 -0
- package/dist/connectors/utils/index.d.ts +4 -0
- package/dist/connectors/utils/index.d.ts.map +1 -0
- package/dist/connectors/utils/promises.d.ts +8 -0
- package/dist/connectors/utils/promises.d.ts.map +1 -0
- package/dist/hdwallet/hdwallet.d.ts +58 -0
- package/dist/hdwallet/hdwallet.d.ts.map +1 -0
- package/dist/hdwallet/index.d.ts +2 -0
- package/dist/hdwallet/index.d.ts.map +1 -0
- package/dist/index.d.ts +13 -904
- package/dist/index.d.ts.map +1 -0
- package/dist/index.global.js +520 -391
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +314 -208
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +316 -208
- package/dist/index.mjs.map +1 -1
- package/dist/mnemonic/index.d.ts +3 -0
- package/dist/mnemonic/index.d.ts.map +1 -0
- package/dist/mnemonic/mnemonic.d.ts +85 -0
- package/dist/mnemonic/mnemonic.d.ts.map +1 -0
- package/dist/mnemonic/utils.d.ts +8 -0
- package/dist/mnemonic/utils.d.ts.map +1 -0
- package/dist/predicate/index.d.ts +3 -0
- package/dist/predicate/index.d.ts.map +1 -0
- package/dist/predicate/predicate.d.ts +94 -0
- package/dist/predicate/predicate.d.ts.map +1 -0
- package/dist/predicate/utils/getPredicateRoot.d.ts +12 -0
- package/dist/predicate/utils/getPredicateRoot.d.ts.map +1 -0
- package/dist/predicate/utils/index.d.ts +2 -0
- package/dist/predicate/utils/index.d.ts.map +1 -0
- package/dist/providers/__generated__/operations.d.ts +3477 -0
- package/dist/providers/__generated__/operations.d.ts.map +1 -0
- package/dist/providers/assets/index.d.ts +5 -0
- package/dist/providers/assets/index.d.ts.map +1 -0
- package/dist/providers/assets/types.d.ts +36 -0
- package/dist/providers/assets/types.d.ts.map +1 -0
- package/dist/providers/assets/utils/index.d.ts +4 -0
- package/dist/providers/assets/utils/index.d.ts.map +1 -0
- package/dist/providers/assets/utils/network.d.ts +33 -0
- package/dist/providers/assets/utils/network.d.ts.map +1 -0
- package/dist/providers/assets/utils/resolveIconPaths.d.ts +14 -0
- package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +1 -0
- package/dist/providers/assets/utils/url.d.ts +2 -0
- package/dist/providers/assets/utils/url.d.ts.map +1 -0
- package/dist/providers/chains.d.ts +11 -0
- package/dist/providers/chains.d.ts.map +1 -0
- package/dist/providers/coin-quantity.d.ts +21 -0
- package/dist/providers/coin-quantity.d.ts.map +1 -0
- package/dist/providers/coin.d.ts +15 -0
- package/dist/providers/coin.d.ts.map +1 -0
- package/dist/providers/fuel-graphql-subscriber.d.ts +23 -0
- package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -0
- package/dist/providers/index.d.ts +13 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/memory-cache.d.ts +11 -0
- package/dist/providers/memory-cache.d.ts.map +1 -0
- package/dist/providers/message.d.ts +60 -0
- package/dist/providers/message.d.ts.map +1 -0
- package/dist/providers/provider.d.ts +523 -0
- package/dist/providers/provider.d.ts.map +1 -0
- package/dist/providers/resource.d.ts +37 -0
- package/dist/providers/resource.d.ts.map +1 -0
- package/dist/providers/transaction-request/create-transaction-request.d.ts +73 -0
- package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -0
- package/dist/providers/transaction-request/errors.d.ts +25 -0
- package/dist/providers/transaction-request/errors.d.ts.map +1 -0
- package/dist/providers/transaction-request/hash-transaction.d.ts +9 -0
- package/dist/providers/transaction-request/hash-transaction.d.ts.map +1 -0
- package/dist/providers/transaction-request/index.d.ts +10 -0
- package/dist/providers/transaction-request/index.d.ts.map +1 -0
- package/dist/providers/transaction-request/input.d.ts +59 -0
- package/dist/providers/transaction-request/input.d.ts.map +1 -0
- package/dist/providers/transaction-request/output.d.ts +39 -0
- package/dist/providers/transaction-request/output.d.ts.map +1 -0
- package/dist/providers/transaction-request/script-transaction-request.d.ts +106 -0
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -0
- package/dist/providers/transaction-request/scripts.d.ts +6 -0
- package/dist/providers/transaction-request/scripts.d.ts.map +1 -0
- package/dist/providers/transaction-request/storage-slot.d.ts +10 -0
- package/dist/providers/transaction-request/storage-slot.d.ts.map +1 -0
- package/dist/providers/transaction-request/transaction-request.d.ts +278 -0
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -0
- package/dist/providers/transaction-request/types.d.ts +10 -0
- package/dist/providers/transaction-request/types.d.ts.map +1 -0
- package/dist/providers/transaction-request/utils.d.ts +4 -0
- package/dist/providers/transaction-request/utils.d.ts.map +1 -0
- package/dist/providers/transaction-request/witness.d.ts +5 -0
- package/dist/providers/transaction-request/witness.d.ts.map +1 -0
- package/dist/providers/transaction-response/getDecodedLogs.d.ts +5 -0
- package/dist/providers/transaction-response/getDecodedLogs.d.ts.map +1 -0
- package/dist/providers/transaction-response/index.d.ts +3 -0
- package/dist/providers/transaction-response/index.d.ts.map +1 -0
- package/dist/providers/transaction-response/transaction-response.d.ts +106 -0
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -0
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +20 -0
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -0
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +21 -0
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +1 -0
- package/dist/providers/transaction-summary/call.d.ts +18 -0
- package/dist/providers/transaction-summary/call.d.ts.map +1 -0
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts +31 -0
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -0
- package/dist/providers/transaction-summary/index.d.ts +10 -0
- package/dist/providers/transaction-summary/index.d.ts.map +1 -0
- package/dist/providers/transaction-summary/input.d.ts +21 -0
- package/dist/providers/transaction-summary/input.d.ts.map +1 -0
- package/dist/providers/transaction-summary/operations.d.ts +40 -0
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -0
- package/dist/providers/transaction-summary/output.d.ts +15 -0
- package/dist/providers/transaction-summary/output.d.ts.map +1 -0
- package/dist/providers/transaction-summary/receipt.d.ts +7 -0
- package/dist/providers/transaction-summary/receipt.d.ts.map +1 -0
- package/dist/providers/transaction-summary/status.d.ts +9 -0
- package/dist/providers/transaction-summary/status.d.ts.map +1 -0
- package/dist/providers/transaction-summary/types.d.ts +146 -0
- package/dist/providers/transaction-summary/types.d.ts.map +1 -0
- package/dist/providers/utils/auto-retry-fetch.d.ts +36 -0
- package/dist/providers/utils/auto-retry-fetch.d.ts.map +1 -0
- package/dist/providers/utils/block-explorer.d.ts +14 -0
- package/dist/providers/utils/block-explorer.d.ts.map +1 -0
- package/dist/providers/utils/gas.d.ts +38 -0
- package/dist/providers/utils/gas.d.ts.map +1 -0
- package/dist/providers/utils/index.d.ts +6 -0
- package/dist/providers/utils/index.d.ts.map +1 -0
- package/dist/providers/utils/json.d.ts +7 -0
- package/dist/providers/utils/json.d.ts.map +1 -0
- package/dist/providers/utils/merge-quantities.d.ts +3 -0
- package/dist/providers/utils/merge-quantities.d.ts.map +1 -0
- package/dist/providers/utils/receipts.d.ts +10 -0
- package/dist/providers/utils/receipts.d.ts.map +1 -0
- package/dist/providers/utils/sleep.d.ts +3 -0
- package/dist/providers/utils/sleep.d.ts.map +1 -0
- package/dist/signer/index.d.ts +2 -0
- package/dist/signer/index.d.ts.map +1 -0
- package/dist/signer/signer.d.ts +64 -0
- package/dist/signer/signer.d.ts.map +1 -0
- package/dist/test-utils/generateTestWallet.d.ts +4 -0
- package/dist/test-utils/generateTestWallet.d.ts.map +1 -0
- package/dist/test-utils/index.d.ts +4 -0
- package/dist/test-utils/index.d.ts.map +1 -0
- package/dist/{test-utils.d.ts → test-utils/launchNode.d.ts} +12 -24
- package/dist/test-utils/launchNode.d.ts.map +1 -0
- package/dist/test-utils/seedTestWallet.d.ts +4 -0
- package/dist/test-utils/seedTestWallet.d.ts.map +1 -0
- package/dist/test-utils.global.js +386 -295
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +179 -108
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +181 -108
- package/dist/test-utils.mjs.map +1 -1
- package/dist/utils/formatTransferToContractScriptData.d.ts +14 -0
- package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -0
- package/dist/wallet/base-wallet-unlocked.d.ts +73 -0
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -0
- package/dist/wallet/index.d.ts +4 -0
- package/dist/wallet/index.d.ts.map +1 -0
- package/dist/wallet/keystore-wallet.d.ts +38 -0
- package/dist/wallet/keystore-wallet.d.ts.map +1 -0
- package/dist/wallet/wallet.d.ts +68 -0
- package/dist/wallet/wallet.d.ts.map +1 -0
- package/dist/wallet/wallets.d.ts +76 -0
- package/dist/wallet/wallets.d.ts.map +1 -0
- package/dist/wallet-manager/index.d.ts +6 -0
- package/dist/wallet-manager/index.d.ts.map +1 -0
- package/dist/wallet-manager/storages/memory-storage.d.ts +9 -0
- package/dist/wallet-manager/storages/memory-storage.d.ts.map +1 -0
- package/dist/wallet-manager/types.d.ts +42 -0
- package/dist/wallet-manager/types.d.ts.map +1 -0
- package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +29 -0
- package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -0
- package/dist/wallet-manager/vaults/privatekey-vault.d.ts +29 -0
- package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -0
- package/dist/wallet-manager/wallet-manager.d.ts +104 -0
- package/dist/wallet-manager/wallet-manager.d.ts.map +1 -0
- package/dist/wordlists/index.d.ts +5 -0
- package/dist/wordlists/index.d.ts.map +1 -0
- package/dist/wordlists/words/english.d.ts +2 -0
- package/dist/wordlists/words/english.d.ts.map +1 -0
- package/package.json +25 -21
- package/dist/account-E9nGNf5X.d.mts +0 -3837
- package/dist/account-E9nGNf5X.d.ts +0 -3837
- package/dist/configs.d.mts +0 -3
- package/dist/index.d.mts +0 -904
- package/dist/test-utils.d.mts +0 -66
@@ -0,0 +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,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/json.ts"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,cAAc;AACd,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,OAKtC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"merge-quantities.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/merge-quantities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,eAAe,SAAU,YAAY,EAAE,QAAQ,YAAY,EAAE,KAAG,YAAY,EAiBxF,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ReceiptBurn, ReceiptCall, ReceiptLog, ReceiptLogData, ReceiptMessageOut, ReceiptMint, ReceiptPanic, ReceiptReturn, ReceiptReturnData, ReceiptRevert, ReceiptScriptResult, ReceiptTransfer, ReceiptTransferOut } from '@fuel-ts/transactions';
|
2
|
+
import type { GqlReceiptFragmentFragment } from '../__generated__/operations';
|
3
|
+
import type { TransactionResultReceipt } from '../transaction-response';
|
4
|
+
/** @hidden */
|
5
|
+
export declare const getReceiptsWithMissingData: (receipts: Array<TransactionResultReceipt>) => {
|
6
|
+
missingOutputVariables: Array<ReceiptRevert>;
|
7
|
+
missingOutputContractIds: Array<ReceiptPanic>;
|
8
|
+
};
|
9
|
+
export declare function assembleReceiptByType(receipt: GqlReceiptFragmentFragment): ReceiptCall | ReceiptReturn | ReceiptReturnData | ReceiptPanic | ReceiptRevert | ReceiptLog | ReceiptLogData | ReceiptTransfer | ReceiptTransferOut | ReceiptScriptResult | ReceiptMessageOut | ReceiptMint | ReceiptBurn;
|
10
|
+
//# sourceMappingURL=receipts.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"receipts.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/receipts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAE9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAgBxE,cAAc;AACd,eAAO,MAAM,0BAA0B,aAAc,MAAM,wBAAwB,CAAC;4BAExD,MAAM,aAAa,CAAC;8BAClB,MAAM,YAAY,CAAC;CAe9C,CAAC;AAIJ,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,0BAA0B,6NA+MxE"}
|
@@ -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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signer/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Address } from '@fuel-ts/address';
|
2
|
+
import type { BytesLike } from '@fuel-ts/interfaces';
|
3
|
+
export declare class Signer {
|
4
|
+
readonly address: Address;
|
5
|
+
readonly publicKey: string;
|
6
|
+
readonly compressedPublicKey: string;
|
7
|
+
readonly privateKey: string;
|
8
|
+
/**
|
9
|
+
* Create a Signer instance from a given private key
|
10
|
+
*
|
11
|
+
* @param privateKey - The private key to use for signing
|
12
|
+
* @returns A new Signer instance
|
13
|
+
*/
|
14
|
+
constructor(privateKey: BytesLike);
|
15
|
+
/**
|
16
|
+
* Sign data using the Signer instance
|
17
|
+
*
|
18
|
+
* Signature is a 64 byte array of the concatenated r and s values with the compressed recoveryParam byte.
|
19
|
+
* @ignore
|
20
|
+
* [Read more](FuelLabs/fuel-specs/specs/protocol/cryptographic_primitives.md#public-key-cryptography)
|
21
|
+
*
|
22
|
+
* @param data - The data to be sign
|
23
|
+
* @returns hashed signature
|
24
|
+
*/
|
25
|
+
sign(data: BytesLike): string;
|
26
|
+
/**
|
27
|
+
* Add point on the current elliptic curve
|
28
|
+
*
|
29
|
+
* @param point - Point to add on the curve
|
30
|
+
* @returns compressed point on the curve
|
31
|
+
*/
|
32
|
+
addPoint(point: BytesLike): string;
|
33
|
+
/**
|
34
|
+
* Recover the public key from a signature performed with [`sign`](#sign).
|
35
|
+
*
|
36
|
+
* @param data - Data
|
37
|
+
* @param signature - hashed signature
|
38
|
+
* @returns public key from signature from the
|
39
|
+
*/
|
40
|
+
static recoverPublicKey(data: BytesLike, signature: BytesLike): string;
|
41
|
+
/**
|
42
|
+
* Recover the address from a signature performed with [`sign`](#sign).
|
43
|
+
*
|
44
|
+
* @param data - Data
|
45
|
+
* @param signature - Signature
|
46
|
+
* @returns Address from signature
|
47
|
+
*/
|
48
|
+
static recoverAddress(data: BytesLike, signature: BytesLike): Address;
|
49
|
+
/**
|
50
|
+
* Generate a random privateKey
|
51
|
+
*
|
52
|
+
* @param entropy - Adds extra entropy to generate the privateKey
|
53
|
+
* @returns random 32-byte hashed
|
54
|
+
*/
|
55
|
+
static generatePrivateKey(entropy?: BytesLike): string | Uint8Array;
|
56
|
+
/**
|
57
|
+
* Extended publicKey from a compact publicKey
|
58
|
+
*
|
59
|
+
* @param publicKey - Compact publicKey
|
60
|
+
* @returns extended publicKey
|
61
|
+
*/
|
62
|
+
static extendPublicKey(publicKey: BytesLike): string;
|
63
|
+
}
|
64
|
+
//# sourceMappingURL=signer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../src/signer/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAKrD,qBAAa,MAAM;IACjB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IAErC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B;;;;;OAKG;gBACS,UAAU,EAAE,SAAS;IAoBjC;;;;;;;;;OASG;IACH,IAAI,CAAC,IAAI,EAAE,SAAS;IAYpB;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS;IAOzB;;;;;;OAMG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM;IAiBtE;;;;;;OAMG;IACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO;IAIrE;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,SAAS;IAI7C;;;;;OAKG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,SAAS;CAI5C"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { Provider, CoinQuantityLike } from '../providers';
|
2
|
+
import type { WalletUnlocked } from '../wallet';
|
3
|
+
export declare const generateTestWallet: (provider: Provider, quantities?: CoinQuantityLike[]) => Promise<WalletUnlocked>;
|
4
|
+
//# sourceMappingURL=generateTestWallet.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateTestWallet.d.ts","sourceRoot":"","sources":["../../src/test-utils/generateTestWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,kBAAkB,aACnB,QAAQ,eACL,gBAAgB,EAAE,KAC9B,QAAQ,cAAc,CAMxB,CAAC"}
|
@@ -0,0 +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"}
|
@@ -1,19 +1,8 @@
|
|
1
|
-
|
2
|
-
import { ChildProcessWithoutNullStreams } from 'child_process';
|
3
|
-
import '
|
4
|
-
import '
|
5
|
-
|
6
|
-
import '@fuel-ts/transactions';
|
7
|
-
import 'ethers';
|
8
|
-
import 'graphql';
|
9
|
-
import '@fuel-ts/abi-coder';
|
10
|
-
import 'events';
|
11
|
-
|
12
|
-
declare const generateTestWallet: (provider: Provider, quantities?: CoinQuantityLike[]) => Promise<WalletUnlocked>;
|
13
|
-
|
14
|
-
declare const seedTestWallet: (wallet: Account, quantities: CoinQuantityLike[]) => Promise<void>;
|
15
|
-
|
16
|
-
type LaunchNodeOptions = {
|
1
|
+
/// <reference types="node" />
|
2
|
+
import type { ChildProcessWithoutNullStreams } from 'child_process';
|
3
|
+
import { Provider } from '../providers';
|
4
|
+
import type { WalletUnlocked } from '../wallet';
|
5
|
+
export type LaunchNodeOptions = {
|
17
6
|
ip?: string;
|
18
7
|
port?: string;
|
19
8
|
args?: string[];
|
@@ -22,13 +11,13 @@ type LaunchNodeOptions = {
|
|
22
11
|
debugEnabled?: boolean;
|
23
12
|
basePath?: string;
|
24
13
|
};
|
25
|
-
type LaunchNodeResult = Promise<{
|
14
|
+
export type LaunchNodeResult = Promise<{
|
26
15
|
cleanup: () => void;
|
27
16
|
ip: string;
|
28
17
|
port: string;
|
29
18
|
chainConfigPath: string;
|
30
19
|
}>;
|
31
|
-
type KillNodeParams = {
|
20
|
+
export type KillNodeParams = {
|
32
21
|
child: ChildProcessWithoutNullStreams;
|
33
22
|
configPath: string;
|
34
23
|
killFn: (pid: number) => void;
|
@@ -36,7 +25,7 @@ type KillNodeParams = {
|
|
36
25
|
isDead: boolean;
|
37
26
|
};
|
38
27
|
};
|
39
|
-
declare const killNode: (params: KillNodeParams) => void;
|
28
|
+
export declare const killNode: (params: KillNodeParams) => void;
|
40
29
|
/**
|
41
30
|
* Launches a fuel-core node.
|
42
31
|
* @param ip - the ip to bind to. (optional, defaults to 0.0.0.0)
|
@@ -47,8 +36,8 @@ declare const killNode: (params: KillNodeParams) => void;
|
|
47
36
|
* @param debugEnabled - whether the node should log debug messages. (optional, defaults to false)
|
48
37
|
* @param basePath - the base path to use for the temporary folder. (optional, defaults to os.tmpdir())
|
49
38
|
* */
|
50
|
-
declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
|
51
|
-
type LaunchNodeAndGetWalletsResult = Promise<{
|
39
|
+
export declare const launchNode: ({ ip, port, args, useSystemFuelCore, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
|
40
|
+
export type LaunchNodeAndGetWalletsResult = Promise<{
|
52
41
|
wallets: WalletUnlocked[];
|
53
42
|
stop: () => void;
|
54
43
|
provider: Provider;
|
@@ -58,9 +47,8 @@ type LaunchNodeAndGetWalletsResult = Promise<{
|
|
58
47
|
* @param launchNodeOptions - options to launch the fuel-core node with.
|
59
48
|
* @param walletCount - the number of wallets to generate. (optional, defaults to 10)
|
60
49
|
* */
|
61
|
-
declare const launchNodeAndGetWallets: ({ launchNodeOptions, walletCount, }?: {
|
50
|
+
export declare const launchNodeAndGetWallets: ({ launchNodeOptions, walletCount, }?: {
|
62
51
|
launchNodeOptions?: Partial<LaunchNodeOptions> | undefined;
|
63
52
|
walletCount?: number | undefined;
|
64
53
|
}) => LaunchNodeAndGetWalletsResult;
|
65
|
-
|
66
|
-
export { type KillNodeParams, type LaunchNodeAndGetWalletsResult, type LaunchNodeOptions, type LaunchNodeResult, generateTestWallet, killNode, launchNode, launchNodeAndGetWallets, seedTestWallet };
|
54
|
+
//# sourceMappingURL=launchNode.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"launchNode.d.ts","sourceRoot":"","sources":["../../src/test-utils/launchNode.ts"],"names":[],"mappings":";AAIA,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,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,8BAA8B,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE;QACL,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,cAAc,SAiB9C,CAAC;AAGF;;;;;;;;;KASK;AAEL,eAAO,MAAM,UAAU,mFAQpB,iBAAiB,qBAwJhB,CAAC;AAWL,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC;IAClD,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC,CAAC;AAEH;;;;KAIK;AACL,eAAO,MAAM,uBAAuB;;;mCAiBnC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"seedTestWallet.d.ts","sourceRoot":"","sources":["../../src/test-utils/seedTestWallet.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,eAAO,MAAM,cAAc,WAAkB,OAAO,cAAc,gBAAgB,EAAE,kBAuBnF,CAAC"}
|