@fuel-ts/account 0.0.0-rc-2045-20240417092921 → 0.0.0-rc-2037-20240417131250
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/index.global.js +85 -39
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +200 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +117 -64
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +11 -2
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/coin.d.ts +2 -1
- package/dist/providers/coin.d.ts.map +1 -1
- package/dist/providers/message.d.ts +1 -0
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +10 -0
- package/dist/providers/transaction-request/helpers.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 -20
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/test-utils/index.d.ts +1 -0
- package/dist/test-utils/index.d.ts.map +1 -1
- package/dist/test-utils/resources.d.ts +4 -0
- package/dist/test-utils/resources.d.ts.map +1 -0
- package/dist/test-utils/seedTestWallet.d.ts +1 -1
- package/dist/test-utils/seedTestWallet.d.ts.map +1 -1
- package/dist/test-utils/transactionRequest.d.ts +5 -0
- package/dist/test-utils/transactionRequest.d.ts.map +1 -0
- package/dist/test-utils.global.js +64 -40
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +173 -135
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +99 -64
- package/dist/test-utils.mjs.map +1 -1
- package/dist/wallet/base-wallet-unlocked.d.ts +2 -2
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/package.json +15 -15
@@ -4,7 +4,7 @@ import type { AbstractAddress, BytesLike } from '@fuel-ts/interfaces';
|
|
4
4
|
import type { BigNumberish } from '@fuel-ts/math';
|
5
5
|
import { Account } from '../account';
|
6
6
|
import type { TxParamsType } from '../account';
|
7
|
-
import type { CallResult, Provider, ProviderSendTxParams, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
|
7
|
+
import type { CallResult, CoinQuantityLike, ExcludeResourcesOption, Provider, ProviderSendTxParams, Resource, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
|
8
8
|
export type PredicateParams<T = InputValue[]> = {
|
9
9
|
bytecode: BytesLike;
|
10
10
|
provider: Provider;
|
@@ -37,7 +37,7 @@ export declare class Predicate<TInputData extends InputValue[]> extends Account
|
|
37
37
|
* @param transactionRequestLike - The transaction request-like object.
|
38
38
|
* @returns The transaction request with predicate data.
|
39
39
|
*/
|
40
|
-
populateTransactionPredicateData(transactionRequestLike: TransactionRequestLike):
|
40
|
+
populateTransactionPredicateData<T extends TransactionRequest>(transactionRequestLike: TransactionRequestLike): T;
|
41
41
|
/**
|
42
42
|
* A helper that creates a transfer transaction request and returns it.
|
43
43
|
*
|
@@ -70,6 +70,14 @@ export declare class Predicate<TInputData extends InputValue[]> extends Account
|
|
70
70
|
* @returns A promise that resolves to the call result.
|
71
71
|
*/
|
72
72
|
simulateTransaction(transactionRequestLike: TransactionRequestLike): Promise<CallResult>;
|
73
|
+
/**
|
74
|
+
* Retrieves resources satisfying the spend query for the account.
|
75
|
+
*
|
76
|
+
* @param quantities - IDs of coins to exclude.
|
77
|
+
* @param excludedIds - IDs of resources to be excluded from the query.
|
78
|
+
* @returns A promise that resolves to an array of Resources.
|
79
|
+
*/
|
80
|
+
getResourcesToSpend(quantities: CoinQuantityLike[] /** IDs of coins to exclude */, excludedIds?: ExcludeResourcesOption): Promise<Resource[]>;
|
73
81
|
private getPredicateData;
|
74
82
|
/**
|
75
83
|
* Processes the predicate data and returns the altered bytecode and interface.
|
@@ -89,5 +97,6 @@ export declare class Predicate<TInputData extends InputValue[]> extends Account
|
|
89
97
|
* @returns The mutated bytes with the configurable constants set.
|
90
98
|
*/
|
91
99
|
private static setConfigurableConstants;
|
100
|
+
private getIndexFromPlaceholderWitness;
|
92
101
|
}
|
93
102
|
//# sourceMappingURL=predicate.d.ts.map
|
@@ -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;AAI5B,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,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;AAI5B,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO/C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,oBAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,eAAe,CAAC,CAA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B,GACnC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAStB,OAAO,CAAC,gBAAgB;IAsBxB;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAgCnC;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAuCvC,OAAO,CAAC,8BAA8B;CAgCvC"}
|
package/dist/providers/coin.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AbstractAddress } from '@fuel-ts/interfaces';
|
1
|
+
import type { AbstractAddress, BytesLike } from '@fuel-ts/interfaces';
|
2
2
|
import type { BN } from '@fuel-ts/math';
|
3
3
|
/**
|
4
4
|
* A Fuel coin
|
@@ -11,5 +11,6 @@ export type Coin = {
|
|
11
11
|
maturity: number;
|
12
12
|
blockCreated: BN;
|
13
13
|
txCreatedIdx: BN;
|
14
|
+
predicate?: BytesLike;
|
14
15
|
};
|
15
16
|
//# sourceMappingURL=coin.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../src/providers/coin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../src/providers/coin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,EAAE,CAAC;IACX,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,EAAE,CAAC;IACjB,YAAY,EAAE,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/providers/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlE;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,EAAE,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,EAAE,CAAC;CACd,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,EAAE,CAAC;IACX,QAAQ,EAAE,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/providers/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAGlE;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,eAAe,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,EAAE,CAAC;IACX,I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@@
|
|
1
|
+
import type { AbstractAddress } from '@fuel-ts/interfaces';
|
2
|
+
import type { Resource, ExcludeResourcesOption } from '../resource';
|
3
|
+
import type { TransactionRequestInput, CoinTransactionRequestInput, MessageTransactionRequestInput } from './input';
|
4
|
+
export declare const isRequestInputCoin: (input: TransactionRequestInput) => input is CoinTransactionRequestInput;
|
5
|
+
export declare const isRequestInputMessage: (input: TransactionRequestInput) => input is MessageTransactionRequestInput;
|
6
|
+
export declare const isRequestInputResource: (input: TransactionRequestInput) => input is CoinTransactionRequestInput | MessageTransactionRequestInput;
|
7
|
+
export declare const getRequestInputResourceOwner: (input: CoinTransactionRequestInput | MessageTransactionRequestInput) => import("@fuel-ts/interfaces").BytesLike;
|
8
|
+
export declare const isRequestInputResourceFromOwner: (input: CoinTransactionRequestInput | MessageTransactionRequestInput, owner: AbstractAddress) => boolean;
|
9
|
+
export declare const cacheResources: (resources: Array<Resource>) => Required<ExcludeResourcesOption>;
|
10
|
+
//# sourceMappingURL=helpers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,KAAK,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAGpE,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,kBAAkB,UACtB,uBAAuB,yCACwC,CAAC;AAEzE,eAAO,MAAM,qBAAqB,UACzB,uBAAuB,4CAC8C,CAAC;AAE/E,eAAO,MAAM,sBAAsB,UAC1B,uBAAuB,0EAE2B,CAAC;AAE5D,eAAO,MAAM,4BAA4B,UAChC,2BAA2B,GAAG,8BAA8B,4CAMpE,CAAC;AAEF,eAAO,MAAM,+BAA+B,UACnC,2BAA2B,GAAG,8BAA8B,SAC5D,eAAe,YACmC,CAAC;AAE5D,eAAO,MAAM,cAAc,cAAe,MAAM,QAAQ,CAAC,qCActD,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
@@ -1,10 +1,8 @@
|
|
1
|
-
import type { InputValue } from '@fuel-ts/abi-coder';
|
2
1
|
import type { AddressLike, AbstractAddress, BytesLike } from '@fuel-ts/interfaces';
|
3
2
|
import type { BN, BigNumberish } from '@fuel-ts/math';
|
4
3
|
import type { TransactionScript, Policy, TransactionCreate } from '@fuel-ts/transactions';
|
5
4
|
import { TransactionType } from '@fuel-ts/transactions';
|
6
5
|
import type { Account } from '../../account';
|
7
|
-
import type { Predicate } from '../../predicate';
|
8
6
|
import type { GqlGasCosts } from '../__generated__/operations';
|
9
7
|
import type { Coin } from '../coin';
|
10
8
|
import type { CoinQuantity, CoinQuantityLike } from '../coin-quantity';
|
@@ -167,7 +165,7 @@ export declare abstract class BaseTransactionRequest implements BaseTransactionR
|
|
167
165
|
* @param predicate - Predicate bytes.
|
168
166
|
* @param predicateData - Predicate data bytes.
|
169
167
|
*/
|
170
|
-
addCoinInput(coin: Coin
|
168
|
+
addCoinInput(coin: Coin): void;
|
171
169
|
/**
|
172
170
|
* Adds a single message input to the transaction and a change output for the
|
173
171
|
* baseAssetId, if one it was not added yet.
|
@@ -176,7 +174,7 @@ export declare abstract class BaseTransactionRequest implements BaseTransactionR
|
|
176
174
|
* @param predicate - Predicate bytes.
|
177
175
|
* @param predicateData - Predicate data bytes.
|
178
176
|
*/
|
179
|
-
addMessageInput(message: MessageCoin
|
177
|
+
addMessageInput(message: MessageCoin): void;
|
180
178
|
/**
|
181
179
|
* Adds a single resource to the transaction by adding a coin/message input and a
|
182
180
|
* change output for the related assetId, if one it was not added yet.
|
@@ -193,22 +191,6 @@ export declare abstract class BaseTransactionRequest implements BaseTransactionR
|
|
193
191
|
* @returns This transaction.
|
194
192
|
*/
|
195
193
|
addResources(resources: ReadonlyArray<Resource>): this;
|
196
|
-
/**
|
197
|
-
* Adds multiple resources to the transaction by adding coin/message inputs and change
|
198
|
-
* outputs from the related assetIds.
|
199
|
-
*
|
200
|
-
* @param resources - The resources to add.
|
201
|
-
* @returns This transaction.
|
202
|
-
*/
|
203
|
-
addPredicateResource(resource: Resource, predicate: Predicate<InputValue[]>): this;
|
204
|
-
/**
|
205
|
-
* Adds multiple predicate coin/message inputs to the transaction and change outputs
|
206
|
-
* from the related assetIds.
|
207
|
-
*
|
208
|
-
* @param resources - The resources to add.
|
209
|
-
* @returns This transaction.
|
210
|
-
*/
|
211
|
-
addPredicateResources(resources: Resource[], predicate: Predicate<InputValue[]>): this;
|
212
194
|
/**
|
213
195
|
* Adds a coin output to the transaction.
|
214
196
|
*
|
@@ -273,6 +255,8 @@ export declare abstract class BaseTransactionRequest implements BaseTransactionR
|
|
273
255
|
* @returns The transaction as a JSON object.
|
274
256
|
*/
|
275
257
|
toJSON(): any;
|
258
|
+
removeWitness(index: number): void;
|
276
259
|
updatePredicateInputs(inputs: TransactionRequestInput[]): void;
|
260
|
+
private adjustWitnessIndexes;
|
277
261
|
}
|
278
262
|
//# sourceMappingURL=transaction-request.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transaction-request.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/transaction-request.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"transaction-request.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-request/transaction-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAKL,eAAe,EAChB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAE5B,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,yBAAyB,EAA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AAa,CAAC,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAE,SAAuB;IAWrF;;;;;OAKG;IACH,cAAc,CAAC,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE;IAa9D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,SAAuB;IAgBjE;;OAEG;IACH,QAAQ;IAIR;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,WAAW,GAAG,EAAE;IAIvC;;OAEG;IACH,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,EAAE;IAYzC,eAAe,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE;IAgBrD;;;;;OAKG;IACH,iBAAiB,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,cAAc,CAAC,EAAE,eAAe;IAkC9E;;;;;OAKG;IACH,wBAAwB,IAAI,YAAY,EAAE;IAS1C;;;;;;OAMG;IACH,QAAQ,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAElD;;;;;OAKG;IACH,MAAM;IAIN,aAAa,CAAC,KAAK,EAAE,MAAM;IAK3B,qBAAqB,CAAC,MAAM,EAAE,uBAAuB,EAAE;IA8BvD,OAAO,CAAC,oBAAoB;CAQ7B"}
|
@@ -1 +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
|
+
{"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;AAC7B,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/test-utils/resources.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEtD,eAAO,MAAM,gBAAgB,aAAa,QAAQ,IAAI,CAAC,KAAQ,IAS7D,CAAC;AAEH,eAAO,MAAM,uBAAuB,aAAa,QAAQ,WAAW,CAAC,KAAQ,WAQ3E,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { Account } from '../account';
|
2
2
|
import type { CoinQuantityLike } from '../providers';
|
3
|
-
export declare const seedTestWallet: (wallet: Account, quantities: CoinQuantityLike[]) => Promise<void>;
|
3
|
+
export declare const seedTestWallet: (wallet: Account | Account[], quantities: CoinQuantityLike[], utxosAmount?: number) => Promise<void>;
|
4
4
|
//# sourceMappingURL=seedTestWallet.d.ts.map
|
@@ -1 +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,
|
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,WACjB,OAAO,GAAG,OAAO,EAAE,cACf,gBAAgB,EAAE,wCAgC/B,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { CoinTransactionRequestInput, ContractTransactionRequestInput, MessageTransactionRequestInput } from '../providers';
|
2
|
+
export declare const generateFakeRequestInputCoin: (partial?: Partial<CoinTransactionRequestInput>) => CoinTransactionRequestInput;
|
3
|
+
export declare const generateFakeRequestInputMessage: (partial?: Partial<MessageTransactionRequestInput>) => MessageTransactionRequestInput;
|
4
|
+
export declare const generateFakeRequestInputContract: (partial?: Partial<ContractTransactionRequestInput>) => ContractTransactionRequestInput;
|
5
|
+
//# sourceMappingURL=transactionRequest.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"transactionRequest.d.ts","sourceRoot":"","sources":["../../src/test-utils/transactionRequest.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AAEtB,eAAO,MAAM,4BAA4B,aAC9B,QAAQ,2BAA2B,CAAC,KAC5C,2BASD,CAAC;AAEH,eAAO,MAAM,+BAA+B,aACjC,QAAQ,8BAA8B,CAAC,KAC/C,8BAQD,CAAC;AAEH,eAAO,MAAM,gCAAgC,aAClC,QAAQ,+BAA+B,CAAC,KAChD,+BAKD,CAAC"}
|
@@ -31914,7 +31914,7 @@ spurious results.`);
|
|
31914
31914
|
// ../versions/dist/index.mjs
|
31915
31915
|
function getBuiltinVersions() {
|
31916
31916
|
return {
|
31917
|
-
FORC: "0.
|
31917
|
+
FORC: "0.49.3",
|
31918
31918
|
FUEL_CORE: "0.22.1",
|
31919
31919
|
FUELS: "0.80.0"
|
31920
31920
|
};
|
@@ -34627,7 +34627,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34627
34627
|
toEvmAddress() {
|
34628
34628
|
const b256Address = toB256(this.bech32Address);
|
34629
34629
|
return {
|
34630
|
-
|
34630
|
+
value: clearFirst12BytesFromB256(b256Address)
|
34631
34631
|
};
|
34632
34632
|
}
|
34633
34633
|
/**
|
@@ -34637,7 +34637,7 @@ This unreleased fuel-core build may include features and updates not yet support
|
|
34637
34637
|
*/
|
34638
34638
|
toAssetId() {
|
34639
34639
|
return {
|
34640
|
-
|
34640
|
+
value: this.toB256()
|
34641
34641
|
};
|
34642
34642
|
}
|
34643
34643
|
/**
|
@@ -42914,6 +42914,11 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
42914
42914
|
name = "NoWitnessAtIndexError";
|
42915
42915
|
};
|
42916
42916
|
|
42917
|
+
// src/providers/transaction-request/helpers.ts
|
42918
|
+
var isRequestInputCoin = (input) => input.type === InputType.Coin;
|
42919
|
+
var isRequestInputMessage = (input) => input.type === InputType.Message;
|
42920
|
+
var isRequestInputResource = (input) => isRequestInputCoin(input) || isRequestInputMessage(input);
|
42921
|
+
|
42917
42922
|
// src/providers/transaction-request/witness.ts
|
42918
42923
|
var witnessify = (value) => {
|
42919
42924
|
const data = arrayify(value);
|
@@ -43153,8 +43158,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43153
43158
|
* @param predicate - Predicate bytes.
|
43154
43159
|
* @param predicateData - Predicate data bytes.
|
43155
43160
|
*/
|
43156
|
-
addCoinInput(coin
|
43157
|
-
const { assetId, owner, amount } = coin;
|
43161
|
+
addCoinInput(coin) {
|
43162
|
+
const { assetId, owner, amount, id, predicate } = coin;
|
43158
43163
|
let witnessIndex;
|
43159
43164
|
if (predicate) {
|
43160
43165
|
witnessIndex = 0;
|
@@ -43165,14 +43170,14 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43165
43170
|
}
|
43166
43171
|
}
|
43167
43172
|
const input = {
|
43168
|
-
|
43173
|
+
id,
|
43169
43174
|
type: InputType.Coin,
|
43170
43175
|
owner: owner.toB256(),
|
43171
43176
|
amount,
|
43172
43177
|
assetId,
|
43173
43178
|
txPointer: "0x00000000000000000000000000000000",
|
43174
43179
|
witnessIndex,
|
43175
|
-
predicate
|
43180
|
+
predicate
|
43176
43181
|
};
|
43177
43182
|
this.pushInput(input);
|
43178
43183
|
this.addChangeOutput(owner, assetId);
|
@@ -43185,8 +43190,8 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43185
43190
|
* @param predicate - Predicate bytes.
|
43186
43191
|
* @param predicateData - Predicate data bytes.
|
43187
43192
|
*/
|
43188
|
-
addMessageInput(message
|
43189
|
-
const { recipient, sender, amount } = message;
|
43193
|
+
addMessageInput(message) {
|
43194
|
+
const { recipient, sender, amount, predicate, nonce } = message;
|
43190
43195
|
const assetId = BaseAssetId;
|
43191
43196
|
let witnessIndex;
|
43192
43197
|
if (predicate) {
|
@@ -43198,13 +43203,13 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43198
43203
|
}
|
43199
43204
|
}
|
43200
43205
|
const input = {
|
43201
|
-
|
43206
|
+
nonce,
|
43202
43207
|
type: InputType.Message,
|
43203
43208
|
sender: sender.toB256(),
|
43204
43209
|
recipient: recipient.toB256(),
|
43205
43210
|
amount,
|
43206
43211
|
witnessIndex,
|
43207
|
-
predicate
|
43212
|
+
predicate
|
43208
43213
|
};
|
43209
43214
|
this.pushInput(input);
|
43210
43215
|
this.addChangeOutput(recipient, assetId);
|
@@ -43235,32 +43240,6 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43235
43240
|
resources.forEach((resource) => this.addResource(resource));
|
43236
43241
|
return this;
|
43237
43242
|
}
|
43238
|
-
/**
|
43239
|
-
* Adds multiple resources to the transaction by adding coin/message inputs and change
|
43240
|
-
* outputs from the related assetIds.
|
43241
|
-
*
|
43242
|
-
* @param resources - The resources to add.
|
43243
|
-
* @returns This transaction.
|
43244
|
-
*/
|
43245
|
-
addPredicateResource(resource, predicate) {
|
43246
|
-
if (isCoin(resource)) {
|
43247
|
-
this.addCoinInput(resource, predicate);
|
43248
|
-
} else {
|
43249
|
-
this.addMessageInput(resource, predicate);
|
43250
|
-
}
|
43251
|
-
return this;
|
43252
|
-
}
|
43253
|
-
/**
|
43254
|
-
* Adds multiple predicate coin/message inputs to the transaction and change outputs
|
43255
|
-
* from the related assetIds.
|
43256
|
-
*
|
43257
|
-
* @param resources - The resources to add.
|
43258
|
-
* @returns This transaction.
|
43259
|
-
*/
|
43260
|
-
addPredicateResources(resources, predicate) {
|
43261
|
-
resources.forEach((resource) => this.addPredicateResource(resource, predicate));
|
43262
|
-
return this;
|
43263
|
-
}
|
43264
43243
|
/**
|
43265
43244
|
* Adds a coin output to the transaction.
|
43266
43245
|
*
|
@@ -43409,6 +43388,10 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43409
43388
|
toJSON() {
|
43410
43389
|
return normalizeJSON(this);
|
43411
43390
|
}
|
43391
|
+
removeWitness(index) {
|
43392
|
+
this.witnesses.splice(index, 1);
|
43393
|
+
this.adjustWitnessIndexes(index);
|
43394
|
+
}
|
43412
43395
|
updatePredicateInputs(inputs) {
|
43413
43396
|
this.inputs.forEach((i) => {
|
43414
43397
|
let correspondingInput;
|
@@ -43431,6 +43414,13 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43431
43414
|
}
|
43432
43415
|
});
|
43433
43416
|
}
|
43417
|
+
adjustWitnessIndexes(removedIndex) {
|
43418
|
+
this.inputs.filter(isRequestInputResource).forEach((input) => {
|
43419
|
+
if (input.witnessIndex > removedIndex) {
|
43420
|
+
input.witnessIndex -= 1;
|
43421
|
+
}
|
43422
|
+
});
|
43423
|
+
}
|
43434
43424
|
};
|
43435
43425
|
|
43436
43426
|
// src/providers/transaction-request/hash-transaction.ts
|
@@ -50521,10 +50511,11 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50521
50511
|
__publicField(Wallet, "fromEncryptedJson", WalletUnlocked.fromEncryptedJson);
|
50522
50512
|
|
50523
50513
|
// src/test-utils/seedTestWallet.ts
|
50524
|
-
var seedTestWallet = async (wallet, quantities) => {
|
50514
|
+
var seedTestWallet = async (wallet, quantities, utxosAmount = 1) => {
|
50515
|
+
const toFundAccounts = Array.isArray(wallet) ? wallet : [wallet];
|
50525
50516
|
const genesisWallet = new WalletUnlocked(
|
50526
50517
|
process.env.GENESIS_SECRET || randomBytes22(32),
|
50527
|
-
|
50518
|
+
toFundAccounts[0].provider
|
50528
50519
|
);
|
50529
50520
|
const resources = await genesisWallet.getResourcesToSpend(quantities);
|
50530
50521
|
const { minGasPrice } = genesisWallet.provider.getGasConfig();
|
@@ -50533,7 +50524,13 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50533
50524
|
gasPrice: minGasPrice
|
50534
50525
|
});
|
50535
50526
|
request.addResources(resources);
|
50536
|
-
quantities.map(coinQuantityfy).forEach(
|
50527
|
+
quantities.map(coinQuantityfy).forEach(
|
50528
|
+
({ amount, assetId }) => toFundAccounts.forEach(({ address }) => {
|
50529
|
+
for (let i = 0; i < utxosAmount; i++) {
|
50530
|
+
request.addCoinOutput(address, amount.div(utxosAmount), assetId);
|
50531
|
+
}
|
50532
|
+
})
|
50533
|
+
);
|
50537
50534
|
await genesisWallet.sendTransaction(request, { awaitExecution: true });
|
50538
50535
|
};
|
50539
50536
|
|
@@ -50743,6 +50740,33 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
50743
50740
|
};
|
50744
50741
|
return { wallets, stop: cleanup, provider };
|
50745
50742
|
};
|
50743
|
+
|
50744
|
+
// src/test-utils/transactionRequest.ts
|
50745
|
+
var generateFakeRequestInputCoin = (partial = {}) => ({
|
50746
|
+
id: hexlify(randomBytes22(UTXO_ID_LEN)),
|
50747
|
+
type: InputType.Coin,
|
50748
|
+
owner: getRandomB256(),
|
50749
|
+
amount: bn(100),
|
50750
|
+
assetId: ZeroBytes32,
|
50751
|
+
txPointer: "0x00000000000000000000000000000000",
|
50752
|
+
witnessIndex: 0,
|
50753
|
+
...partial
|
50754
|
+
});
|
50755
|
+
var generateFakeRequestInputMessage = (partial = {}) => ({
|
50756
|
+
nonce: getRandomB256(),
|
50757
|
+
type: InputType.Message,
|
50758
|
+
sender: getRandomB256(),
|
50759
|
+
recipient: getRandomB256(),
|
50760
|
+
amount: bn(100),
|
50761
|
+
witnessIndex: 0,
|
50762
|
+
...partial
|
50763
|
+
});
|
50764
|
+
var generateFakeRequestInputContract = (partial = {}) => ({
|
50765
|
+
contractId: getRandomB256(),
|
50766
|
+
type: InputType.Contract,
|
50767
|
+
txPointer: "0x00000000000000000000000000000000",
|
50768
|
+
...partial
|
50769
|
+
});
|
50746
50770
|
})();
|
50747
50771
|
/*! Bundled license information:
|
50748
50772
|
|