@fuel-ts/account 0.81.0 → 0.83.0
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/README.md +3 -3
- package/dist/account.d.ts +7 -6
- package/dist/account.d.ts.map +1 -1
- package/dist/configs.d.ts.map +1 -1
- package/dist/configs.global.js +1 -1
- package/dist/configs.global.js.map +1 -1
- package/dist/configs.js +1 -1
- package/dist/configs.js.map +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/configs.mjs.map +1 -1
- package/dist/index.global.js +890 -619
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +853 -604
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +696 -448
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +12 -24
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +810 -359
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/coin-quantity.d.ts +3 -3
- package/dist/providers/coin-quantity.d.ts.map +1 -1
- package/dist/providers/coin.d.ts +4 -2
- package/dist/providers/coin.d.ts.map +1 -1
- package/dist/providers/message.d.ts +7 -1
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +44 -27
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/input.d.ts +2 -2
- package/dist/providers/transaction-request/input.d.ts.map +1 -1
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +13 -33
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/utils.d.ts +3 -0
- package/dist/providers/transaction-request/utils.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +2 -0
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +3 -2
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/utils/gas.d.ts +8 -2
- package/dist/providers/utils/gas.d.ts.map +1 -1
- package/dist/providers/utils/merge-quantities.d.ts +1 -1
- package/dist/providers/utils/merge-quantities.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +1 -1
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +1615 -1114
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +841 -596
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +696 -451
- package/dist/test-utils.mjs.map +1 -1
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/package.json +16 -16
@@ -1,10 +1,8 @@
|
|
1
1
|
import type { JsonAbi, InputValue } from '@fuel-ts/abi-coder';
|
2
2
|
import { Interface } from '@fuel-ts/abi-coder';
|
3
|
-
import type {
|
4
|
-
import type { BigNumberish } from '@fuel-ts/math';
|
3
|
+
import type { BytesLike } from '@fuel-ts/interfaces';
|
5
4
|
import { Account } from '../account';
|
6
|
-
import type {
|
7
|
-
import type { CallResult, Provider, ProviderSendTxParams, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
|
5
|
+
import type { CallResult, CoinQuantityLike, ExcludeResourcesOption, Provider, Resource, TransactionRequestLike, TransactionResponse } from '../providers';
|
8
6
|
export type PredicateParams<T = InputValue[]> = {
|
9
7
|
bytecode: BytesLike;
|
10
8
|
provider: Provider;
|
@@ -37,32 +35,14 @@ export declare class Predicate<TInputData extends InputValue[]> extends Account
|
|
37
35
|
* @param transactionRequestLike - The transaction request-like object.
|
38
36
|
* @returns The transaction request with predicate data.
|
39
37
|
*/
|
40
|
-
populateTransactionPredicateData(transactionRequestLike: TransactionRequestLike): TransactionRequest;
|
41
|
-
/**
|
42
|
-
* A helper that creates a transfer transaction request and returns it.
|
43
|
-
*
|
44
|
-
* @param destination - The address of the destination.
|
45
|
-
* @param amount - The amount of coins to transfer.
|
46
|
-
* @param assetId - The asset ID of the coins to transfer.
|
47
|
-
* @param txParams - The transaction parameters (gasLimit, gasPrice, maturity).
|
48
|
-
* @returns A promise that resolves to the prepared transaction request.
|
49
|
-
*/
|
50
|
-
createTransfer(
|
51
|
-
/** Address of the destination */
|
52
|
-
destination: AbstractAddress,
|
53
|
-
/** Amount of coins */
|
54
|
-
amount: BigNumberish,
|
55
|
-
/** Asset ID of coins */
|
56
|
-
assetId?: BytesLike,
|
57
|
-
/** Tx Params */
|
58
|
-
txParams?: TxParamsType): Promise<TransactionRequest>;
|
38
|
+
populateTransactionPredicateData(transactionRequestLike: TransactionRequestLike): import("../providers").TransactionRequest;
|
59
39
|
/**
|
60
40
|
* Sends a transaction with the populated predicate data.
|
61
41
|
*
|
62
42
|
* @param transactionRequestLike - The transaction request-like object.
|
63
43
|
* @returns A promise that resolves to the transaction response.
|
64
44
|
*/
|
65
|
-
sendTransaction(transactionRequestLike: TransactionRequestLike
|
45
|
+
sendTransaction(transactionRequestLike: TransactionRequestLike): Promise<TransactionResponse>;
|
66
46
|
/**
|
67
47
|
* Simulates a transaction with the populated predicate data.
|
68
48
|
*
|
@@ -80,6 +60,14 @@ export declare class Predicate<TInputData extends InputValue[]> extends Account
|
|
80
60
|
* @returns An object containing the new predicate bytes and interface.
|
81
61
|
*/
|
82
62
|
private static processPredicateData;
|
63
|
+
/**
|
64
|
+
* Retrieves resources satisfying the spend query for the account.
|
65
|
+
*
|
66
|
+
* @param quantities - IDs of coins to exclude.
|
67
|
+
* @param excludedIds - IDs of resources to be excluded from the query.
|
68
|
+
* @returns A promise that resolves to an array of Resources.
|
69
|
+
*/
|
70
|
+
getResourcesToSpend(quantities: CoinQuantityLike[] /** IDs of coins to exclude */, excludedIds?: ExcludeResourcesOption): Promise<Resource[]>;
|
83
71
|
/**
|
84
72
|
* Sets the configurable constants for the predicate.
|
85
73
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../src/predicate/predicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,SAAS,EAKV,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../src/predicate/predicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EACL,SAAS,EAKV,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAIrD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,QAAQ,EAER,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,UAAU,EAAE,IAAI;IAC9C,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,qBAAqB,CAAC,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAS,CAAC,UAAU,SAAS,UAAU,EAAE,CAAE,SAAQ,OAAO;IACrE,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE,UAAU,CAA+B;IACxD,SAAS,CAAC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