@fuel-ts/account 0.100.3 → 0.100.4
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.
- package/dist/account.d.ts +71 -3
- package/dist/account.d.ts.map +1 -1
- package/dist/index.global.js +1467 -217
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2165 -1005
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1976 -818
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +9 -4
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +1183 -87
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/assemble-tx-helpers.d.ts +39 -0
- package/dist/providers/assemble-tx-helpers.d.ts.map +1 -0
- package/dist/providers/fuel-graphql-subscriber.d.ts +28 -0
- package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +80 -6
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource.d.ts +4 -1
- package/dist/providers/resource.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +3 -3
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
- package/dist/providers/transaction-request/input.d.ts +2 -0
- package/dist/providers/transaction-request/input.d.ts.map +1 -1
- package/dist/providers/transaction-request/output.d.ts +6 -0
- package/dist/providers/transaction-request/output.d.ts.map +1 -1
- package/dist/providers/transaction-request/script-transaction-request.d.ts +11 -0
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +38 -11
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +12 -1
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/status.d.ts +16 -2
- package/dist/providers/transaction-summary/status.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +85 -4
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/handle-gql-error-message.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/parse-graphql-response.d.ts +12 -0
- package/dist/providers/utils/parse-graphql-response.d.ts.map +1 -0
- package/dist/providers/utils/serialization.d.ts +9 -0
- package/dist/providers/utils/serialization.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +1 -1
- package/dist/test-utils.global.js +1461 -201
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +2046 -891
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +1892 -731
- package/dist/test-utils.mjs.map +1 -1
- package/dist/utils/deployScriptOrPredicate.d.ts.map +1 -1
- package/dist/utils/split-coins-into-batches.d.ts +3 -0
- package/dist/utils/split-coins-into-batches.d.ts.map +1 -0
- package/package.json +15 -15
- package/dist/providers/utils/helpers.d.ts +0 -14
- package/dist/providers/utils/helpers.d.ts.map +0 -1
@@ -3,7 +3,7 @@ import { Interface } from '@fuel-ts/abi-coder';
|
|
3
3
|
import type { BytesLike } from '@fuel-ts/utils';
|
4
4
|
import type { FakeResources } from '../account';
|
5
5
|
import { Account } from '../account';
|
6
|
-
import type { CallResult, CoinQuantityLike,
|
6
|
+
import type { CallResult, CoinQuantityLike, ResourcesIdsToIgnore, Provider, Resource, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
|
7
7
|
export type PredicateParams<TData extends InputValue[] = InputValue[], TConfigurables extends {
|
8
8
|
[name: string]: unknown;
|
9
9
|
} | undefined = {
|
@@ -59,7 +59,12 @@ export declare class Predicate<TData extends InputValue[] = InputValue[], TConfi
|
|
59
59
|
* @returns A promise that resolves to the call result.
|
60
60
|
*/
|
61
61
|
simulateTransaction(transactionRequestLike: TransactionRequestLike): Promise<CallResult>;
|
62
|
-
|
62
|
+
/**
|
63
|
+
* Retrieves the properly encoded predicate data.
|
64
|
+
*
|
65
|
+
* @returns A Uint8Array containing the encoded predicate data. If no predicate data is available, returns an empty Uint8Array.
|
66
|
+
*/
|
67
|
+
getPredicateData(): Uint8Array;
|
63
68
|
/**
|
64
69
|
* Creates a new Predicate instance from an existing Predicate instance.
|
65
70
|
* @param overrides - The data and configurable constants to override.
|
@@ -79,10 +84,10 @@ export declare class Predicate<TData extends InputValue[] = InputValue[], TConfi
|
|
79
84
|
* Retrieves resources satisfying the spend query for the account.
|
80
85
|
*
|
81
86
|
* @param quantities - IDs of coins to exclude.
|
82
|
-
* @param
|
87
|
+
* @param resourcesIdsToIgnore - IDs of resources to be excluded from the query.
|
83
88
|
* @returns A promise that resolves to an array of Resources.
|
84
89
|
*/
|
85
|
-
getResourcesToSpend(quantities: CoinQuantityLike[]
|
90
|
+
getResourcesToSpend(quantities: CoinQuantityLike[], resourcesIdsToIgnore?: ResourcesIdsToIgnore): Promise<Resource[]>;
|
86
91
|
/**
|
87
92
|
* Generates an array of fake resources based on the provided coins.
|
88
93
|
*
|
@@ -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,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,
|
1
|
+
{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