@fuel-ts/account 0.0.0-pr-2930-20240813211727 → 0.0.0-pr-2942-20240816061339
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 +9 -29
- package/dist/account.d.ts +15 -4
- package/dist/account.d.ts.map +1 -1
- package/dist/configs.d.ts +0 -2
- package/dist/configs.d.ts.map +1 -1
- package/dist/configs.global.js +0 -2
- package/dist/configs.global.js.map +1 -1
- package/dist/configs.js +0 -6
- package/dist/configs.js.map +1 -1
- package/dist/configs.mjs +0 -4
- package/dist/configs.mjs.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +24 -1
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/connectors/fuel.d.ts +14 -4
- package/dist/connectors/fuel.d.ts.map +1 -1
- package/dist/connectors/types/connector-metadata.d.ts.map +1 -1
- package/dist/connectors/utils/promises.d.ts.map +1 -1
- package/dist/index.global.js +1387 -1033
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +705 -528
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +533 -367
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +15 -9
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +119 -0
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/fuel-graphql-subscriber.d.ts +1 -0
- package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +14 -47
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource-cache.d.ts +14 -0
- package/dist/providers/resource-cache.d.ts.map +1 -0
- package/dist/providers/transaction-request/blob-transaction-request.d.ts +48 -0
- package/dist/providers/transaction-request/blob-transaction-request.d.ts.map +1 -0
- package/dist/providers/transaction-request/index.d.ts +1 -0
- package/dist/providers/transaction-request/index.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +4 -3
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/types.d.ts +5 -2
- package/dist/providers/transaction-request/types.d.ts.map +1 -1
- package/dist/providers/transaction-request/utils.d.ts +9 -0
- package/dist/providers/transaction-request/utils.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +3 -0
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/call.d.ts +4 -3
- package/dist/providers/transaction-summary/call.d.ts.map +1 -1
- package/dist/providers/transaction-summary/input.d.ts +1 -1
- package/dist/providers/transaction-summary/input.d.ts.map +1 -1
- package/dist/providers/transaction-summary/operations.d.ts +3 -1
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +3 -1
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/gas.d.ts +6 -0
- package/dist/providers/utils/gas.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +0 -16
- 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/test-asset-id.d.ts +8 -0
- package/dist/test-utils/test-asset-id.d.ts.map +1 -0
- package/dist/test-utils/test-message.d.ts +4 -2
- package/dist/test-utils/test-message.d.ts.map +1 -1
- package/dist/test-utils/wallet-config.d.ts +3 -3
- package/dist/test-utils/wallet-config.d.ts.map +1 -1
- package/dist/test-utils.d.ts +1 -3
- package/dist/test-utils.d.ts.map +1 -1
- package/dist/test-utils.global.js +39070 -38743
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +1314 -1201
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +1031 -919
- package/dist/test-utils.mjs.map +1 -1
- package/dist/wallet/base-wallet-unlocked.d.ts +1 -2
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/dist/wallet/keystore-wallet.d.ts.map +1 -1
- package/package.json +19 -21
- package/dist/providers/memory-cache.d.ts +0 -11
- package/dist/providers/memory-cache.d.ts.map +0 -1
- 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/generateTestWallet.d.ts +0 -4
- package/dist/test-utils/generateTestWallet.d.ts.map +0 -1
- package/dist/test-utils/seedTestWallet.d.ts +0 -4
- package/dist/test-utils/seedTestWallet.d.ts.map +0 -1
@@ -4,21 +4,27 @@ import type { BytesLike } from '@fuel-ts/interfaces';
|
|
4
4
|
import type { FakeResources } from '../account';
|
5
5
|
import { Account } from '../account';
|
6
6
|
import type { CallResult, CoinQuantityLike, ExcludeResourcesOption, Provider, Resource, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
|
7
|
-
export type PredicateParams<
|
7
|
+
export type PredicateParams<TData extends InputValue[] = InputValue[], TConfigurables extends {
|
8
|
+
[name: string]: unknown;
|
9
|
+
} | undefined = {
|
10
|
+
[name: string]: unknown;
|
11
|
+
}> = {
|
8
12
|
bytecode: BytesLike;
|
9
13
|
provider: Provider;
|
10
14
|
abi?: JsonAbi;
|
11
|
-
|
12
|
-
configurableConstants?:
|
13
|
-
[name: string]: unknown;
|
14
|
-
};
|
15
|
+
data?: TData;
|
16
|
+
configurableConstants?: TConfigurables;
|
15
17
|
};
|
16
18
|
/**
|
17
19
|
* `Predicate` provides methods to populate transaction data with predicate information and sending transactions with them.
|
18
20
|
*/
|
19
|
-
export declare class Predicate<
|
21
|
+
export declare class Predicate<TData extends InputValue[] = InputValue[], TConfigurables extends {
|
22
|
+
[name: string]: unknown;
|
23
|
+
} | undefined = {
|
24
|
+
[name: string]: unknown;
|
25
|
+
}> extends Account {
|
20
26
|
bytes: Uint8Array;
|
21
|
-
predicateData:
|
27
|
+
predicateData: TData;
|
22
28
|
interface?: Interface;
|
23
29
|
/**
|
24
30
|
* Creates an instance of the Predicate class.
|
@@ -26,10 +32,10 @@ export declare class Predicate<TInputData extends InputValue[]> extends Account
|
|
26
32
|
* @param bytecode - The bytecode of the predicate.
|
27
33
|
* @param abi - The JSON ABI of the predicate.
|
28
34
|
* @param provider - The provider used to interact with the blockchain.
|
29
|
-
* @param
|
35
|
+
* @param data - The predicate input data (optional).
|
30
36
|
* @param configurableConstants - Optional configurable constants for the predicate.
|
31
37
|
*/
|
32
|
-
constructor({ bytecode, abi, provider,
|
38
|
+
constructor({ bytecode, abi, provider, data, configurableConstants, }: PredicateParams<TData, TConfigurables>);
|
33
39
|
/**
|
34
40
|
* Populates the transaction data with predicate data.
|
35
41
|
*
|
@@ -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,qBAAqB,CAAC;AAGrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,eAAe,
|
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,MAA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E,sBAAsB;IAwBhD;;;;;OAKG;IACH,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAK7F;;;;;OAKG;IACH,mBAAmB,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC;IAKxF,OAAO,CAAC,gBAAgB;IASxB;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAgCnC;;;;;;OAMG;IACG,mBAAmB,CACvB,UAAU,EAAE,gBAAgB,EAAE,CAAC,8BAA8B,EAC7D,WAAW,CAAC,EAAE,sBAAsB,GACnC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAatB;;;;;OAKG;IACH,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IAQ9D;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IA8CvC;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;CAgCvC"}
|
@@ -50,6 +50,10 @@ export type Scalars = {
|
|
50
50
|
input: string;
|
51
51
|
output: string;
|
52
52
|
};
|
53
|
+
BlobId: {
|
54
|
+
input: any;
|
55
|
+
output: any;
|
56
|
+
};
|
53
57
|
BlockId: {
|
54
58
|
input: string;
|
55
59
|
output: string;
|
@@ -322,6 +326,7 @@ export type GqlFailureStatus = {
|
|
322
326
|
time: Scalars['Tai64Timestamp']['output'];
|
323
327
|
totalFee: Scalars['U64']['output'];
|
324
328
|
totalGas: Scalars['U64']['output'];
|
329
|
+
transaction: GqlTransaction;
|
325
330
|
transactionId: Scalars['TransactionId']['output'];
|
326
331
|
};
|
327
332
|
export type GqlFeeParameters = {
|
@@ -342,6 +347,8 @@ export type GqlGasCosts = {
|
|
342
347
|
bal: Scalars['U64']['output'];
|
343
348
|
bhei: Scalars['U64']['output'];
|
344
349
|
bhsh: Scalars['U64']['output'];
|
350
|
+
bldd?: Maybe<GqlDependentCost>;
|
351
|
+
bsiz?: Maybe<GqlDependentCost>;
|
345
352
|
burn: Scalars['U64']['output'];
|
346
353
|
call: GqlDependentCost;
|
347
354
|
cb: Scalars['U64']['output'];
|
@@ -358,6 +365,7 @@ export type GqlGasCosts = {
|
|
358
365
|
eck1: Scalars['U64']['output'];
|
359
366
|
ecr1: Scalars['U64']['output'];
|
360
367
|
ed19: Scalars['U64']['output'];
|
368
|
+
ed19DependentCost: GqlDependentCost;
|
361
369
|
eq: Scalars['U64']['output'];
|
362
370
|
exp: Scalars['U64']['output'];
|
363
371
|
expi: Scalars['U64']['output'];
|
@@ -1016,9 +1024,11 @@ export type GqlSuccessStatus = {
|
|
1016
1024
|
time: Scalars['Tai64Timestamp']['output'];
|
1017
1025
|
totalFee: Scalars['U64']['output'];
|
1018
1026
|
totalGas: Scalars['U64']['output'];
|
1027
|
+
transaction: GqlTransaction;
|
1019
1028
|
transactionId: Scalars['TransactionId']['output'];
|
1020
1029
|
};
|
1021
1030
|
export type GqlTransaction = {
|
1031
|
+
blobId?: Maybe<Scalars['BlobId']['output']>;
|
1022
1032
|
bytecodeRoot?: Maybe<Scalars['Bytes32']['output']>;
|
1023
1033
|
bytecodeWitnessIndex?: Maybe<Scalars['U16']['output']>;
|
1024
1034
|
id: Scalars['TransactionId']['output'];
|
@@ -1026,6 +1036,7 @@ export type GqlTransaction = {
|
|
1026
1036
|
inputContract?: Maybe<GqlInputContract>;
|
1027
1037
|
inputContracts?: Maybe<Array<Scalars['ContractId']['output']>>;
|
1028
1038
|
inputs?: Maybe<Array<GqlInput>>;
|
1039
|
+
isBlob: Scalars['Boolean']['output'];
|
1029
1040
|
isCreate: Scalars['Boolean']['output'];
|
1030
1041
|
isMint: Scalars['Boolean']['output'];
|
1031
1042
|
isScript: Scalars['Boolean']['output'];
|
@@ -1742,6 +1753,24 @@ export type GqlGasCostsFragment = {
|
|
1742
1753
|
unitsPerGas: string;
|
1743
1754
|
type: 'LightOperation';
|
1744
1755
|
};
|
1756
|
+
bldd?: {
|
1757
|
+
base: string;
|
1758
|
+
gasPerUnit: string;
|
1759
|
+
type: 'HeavyOperation';
|
1760
|
+
} | {
|
1761
|
+
base: string;
|
1762
|
+
unitsPerGas: string;
|
1763
|
+
type: 'LightOperation';
|
1764
|
+
} | null;
|
1765
|
+
bsiz?: {
|
1766
|
+
base: string;
|
1767
|
+
gasPerUnit: string;
|
1768
|
+
type: 'HeavyOperation';
|
1769
|
+
} | {
|
1770
|
+
base: string;
|
1771
|
+
unitsPerGas: string;
|
1772
|
+
type: 'LightOperation';
|
1773
|
+
} | null;
|
1745
1774
|
cfe: {
|
1746
1775
|
base: string;
|
1747
1776
|
gasPerUnit: string;
|
@@ -1796,6 +1825,15 @@ export type GqlGasCostsFragment = {
|
|
1796
1825
|
unitsPerGas: string;
|
1797
1826
|
type: 'LightOperation';
|
1798
1827
|
};
|
1828
|
+
ed19DependentCost: {
|
1829
|
+
base: string;
|
1830
|
+
gasPerUnit: string;
|
1831
|
+
type: 'HeavyOperation';
|
1832
|
+
} | {
|
1833
|
+
base: string;
|
1834
|
+
unitsPerGas: string;
|
1835
|
+
type: 'LightOperation';
|
1836
|
+
};
|
1799
1837
|
k256: {
|
1800
1838
|
base: string;
|
1801
1839
|
gasPerUnit: string;
|
@@ -2085,6 +2123,24 @@ export type GqlConsensusParametersFragment = {
|
|
2085
2123
|
unitsPerGas: string;
|
2086
2124
|
type: 'LightOperation';
|
2087
2125
|
};
|
2126
|
+
bldd?: {
|
2127
|
+
base: string;
|
2128
|
+
gasPerUnit: string;
|
2129
|
+
type: 'HeavyOperation';
|
2130
|
+
} | {
|
2131
|
+
base: string;
|
2132
|
+
unitsPerGas: string;
|
2133
|
+
type: 'LightOperation';
|
2134
|
+
} | null;
|
2135
|
+
bsiz?: {
|
2136
|
+
base: string;
|
2137
|
+
gasPerUnit: string;
|
2138
|
+
type: 'HeavyOperation';
|
2139
|
+
} | {
|
2140
|
+
base: string;
|
2141
|
+
unitsPerGas: string;
|
2142
|
+
type: 'LightOperation';
|
2143
|
+
} | null;
|
2088
2144
|
cfe: {
|
2089
2145
|
base: string;
|
2090
2146
|
gasPerUnit: string;
|
@@ -2139,6 +2195,15 @@ export type GqlConsensusParametersFragment = {
|
|
2139
2195
|
unitsPerGas: string;
|
2140
2196
|
type: 'LightOperation';
|
2141
2197
|
};
|
2198
|
+
ed19DependentCost: {
|
2199
|
+
base: string;
|
2200
|
+
gasPerUnit: string;
|
2201
|
+
type: 'HeavyOperation';
|
2202
|
+
} | {
|
2203
|
+
base: string;
|
2204
|
+
unitsPerGas: string;
|
2205
|
+
type: 'LightOperation';
|
2206
|
+
};
|
2142
2207
|
k256: {
|
2143
2208
|
base: string;
|
2144
2209
|
gasPerUnit: string;
|
@@ -2442,6 +2507,24 @@ export type GqlChainInfoFragment = {
|
|
2442
2507
|
unitsPerGas: string;
|
2443
2508
|
type: 'LightOperation';
|
2444
2509
|
};
|
2510
|
+
bldd?: {
|
2511
|
+
base: string;
|
2512
|
+
gasPerUnit: string;
|
2513
|
+
type: 'HeavyOperation';
|
2514
|
+
} | {
|
2515
|
+
base: string;
|
2516
|
+
unitsPerGas: string;
|
2517
|
+
type: 'LightOperation';
|
2518
|
+
} | null;
|
2519
|
+
bsiz?: {
|
2520
|
+
base: string;
|
2521
|
+
gasPerUnit: string;
|
2522
|
+
type: 'HeavyOperation';
|
2523
|
+
} | {
|
2524
|
+
base: string;
|
2525
|
+
unitsPerGas: string;
|
2526
|
+
type: 'LightOperation';
|
2527
|
+
} | null;
|
2445
2528
|
cfe: {
|
2446
2529
|
base: string;
|
2447
2530
|
gasPerUnit: string;
|
@@ -2496,6 +2579,15 @@ export type GqlChainInfoFragment = {
|
|
2496
2579
|
unitsPerGas: string;
|
2497
2580
|
type: 'LightOperation';
|
2498
2581
|
};
|
2582
|
+
ed19DependentCost: {
|
2583
|
+
base: string;
|
2584
|
+
gasPerUnit: string;
|
2585
|
+
type: 'HeavyOperation';
|
2586
|
+
} | {
|
2587
|
+
base: string;
|
2588
|
+
unitsPerGas: string;
|
2589
|
+
type: 'LightOperation';
|
2590
|
+
};
|
2499
2591
|
k256: {
|
2500
2592
|
base: string;
|
2501
2593
|
gasPerUnit: string;
|
@@ -2846,6 +2938,24 @@ export type GqlGetChainQuery = {
|
|
2846
2938
|
unitsPerGas: string;
|
2847
2939
|
type: 'LightOperation';
|
2848
2940
|
};
|
2941
|
+
bldd?: {
|
2942
|
+
base: string;
|
2943
|
+
gasPerUnit: string;
|
2944
|
+
type: 'HeavyOperation';
|
2945
|
+
} | {
|
2946
|
+
base: string;
|
2947
|
+
unitsPerGas: string;
|
2948
|
+
type: 'LightOperation';
|
2949
|
+
} | null;
|
2950
|
+
bsiz?: {
|
2951
|
+
base: string;
|
2952
|
+
gasPerUnit: string;
|
2953
|
+
type: 'HeavyOperation';
|
2954
|
+
} | {
|
2955
|
+
base: string;
|
2956
|
+
unitsPerGas: string;
|
2957
|
+
type: 'LightOperation';
|
2958
|
+
} | null;
|
2849
2959
|
cfe: {
|
2850
2960
|
base: string;
|
2851
2961
|
gasPerUnit: string;
|
@@ -2900,6 +3010,15 @@ export type GqlGetChainQuery = {
|
|
2900
3010
|
unitsPerGas: string;
|
2901
3011
|
type: 'LightOperation';
|
2902
3012
|
};
|
3013
|
+
ed19DependentCost: {
|
3014
|
+
base: string;
|
3015
|
+
gasPerUnit: string;
|
3016
|
+
type: 'HeavyOperation';
|
3017
|
+
} | {
|
3018
|
+
base: string;
|
3019
|
+
unitsPerGas: string;
|
3020
|
+
type: 'LightOperation';
|
3021
|
+
};
|
2903
3022
|
k256: {
|
2904
3023
|
base: string;
|
2905
3024
|
gasPerUnit: string;
|