@fuel-ts/account 0.99.0 → 0.100.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.
- package/dist/account.d.ts +9 -4
- package/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +7 -6
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/connectors/types/data-type.d.ts +8 -1
- package/dist/connectors/types/data-type.d.ts.map +1 -1
- package/dist/index.global.js +4116 -3431
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +970 -562
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +900 -502
- package/dist/index.mjs.map +1 -1
- package/dist/mnemonic/mnemonic.d.ts +1 -1
- package/dist/providers/__generated__/operations.d.ts +98 -3
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/coin-quantity.d.ts.map +1 -1
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +75 -11
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource-cache.d.ts +6 -4
- package/dist/providers/resource-cache.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +10 -1
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +29 -1
- package/dist/providers/transaction-request/transaction-request.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-from-serialized.d.ts +7 -0
- package/dist/providers/transaction-summary/assemble-transaction-summary-from-serialized.d.ts.map +1 -0
- package/dist/providers/transaction-summary/call.d.ts +8 -2
- package/dist/providers/transaction-summary/call.d.ts.map +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/index.d.ts +1 -0
- package/dist/providers/transaction-summary/index.d.ts.map +1 -1
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
- package/dist/providers/transaction-summary/receipt.d.ts +3 -2
- package/dist/providers/transaction-summary/receipt.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +5 -3
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts +0 -4
- package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
- package/dist/providers/utils/helpers.d.ts +14 -0
- package/dist/providers/utils/helpers.d.ts.map +1 -0
- package/dist/providers/utils/index.d.ts +1 -0
- package/dist/providers/utils/index.d.ts.map +1 -1
- package/dist/providers/utils/receipts.d.ts +4 -3
- package/dist/providers/utils/receipts.d.ts.map +1 -1
- package/dist/providers/utils/serialization.d.ts +35 -0
- package/dist/providers/utils/serialization.d.ts.map +1 -0
- package/dist/signer/signer.d.ts +1 -1
- package/dist/test-utils.global.js +3839 -3179
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +895 -537
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +827 -469
- package/dist/test-utils.mjs.map +1 -1
- package/dist/utils/formatTransferToContractScriptData.d.ts +3 -3
- package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
- package/dist/utils/predicate-script-loader-instructions.d.ts +2 -2
- package/dist/wallet/base-wallet-unlocked.d.ts +2 -1
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/package.json +21 -21
package/dist/account.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import type { AddressInput, WithAddress } from '@fuel-ts/address';
|
2
2
|
import { Address } from '@fuel-ts/address';
|
3
|
+
import type { HashableMessage } from '@fuel-ts/hasher';
|
3
4
|
import type { BigNumberish, BN } from '@fuel-ts/math';
|
4
5
|
import type { BytesLike } from '@fuel-ts/utils';
|
5
6
|
import type { FuelConnector, FuelConnectorSendTxParams } from './connectors';
|
6
7
|
import type { TransactionRequest, CoinQuantityLike, Resource, ExcludeResourcesOption, Provider, ScriptTransactionRequestLike, TransactionCost, EstimateTransactionParams, CursorPaginationArgs, TransactionRequestLike, CallResult, GetCoinsResponse, GetMessagesResponse, GetBalancesResponse, Coin, TransactionCostParams, TransactionResponse, ProviderSendTxParams } from './providers';
|
7
8
|
import { ScriptTransactionRequest } from './providers';
|
8
9
|
import { AbstractAccount } from './types';
|
9
|
-
export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'tip' | 'maturity' | 'maxFee' | 'witnessLimit'>;
|
10
|
+
export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'tip' | 'maturity' | 'maxFee' | 'witnessLimit' | 'expiration'>;
|
10
11
|
export type TransferParams = {
|
11
12
|
destination: string | Address;
|
12
13
|
amount: BigNumberish;
|
@@ -18,7 +19,7 @@ export type ContractTransferParams = {
|
|
18
19
|
assetId: BytesLike;
|
19
20
|
};
|
20
21
|
export type AccountSendTxParams = ProviderSendTxParams & FuelConnectorSendTxParams;
|
21
|
-
export type EstimatedTxParams = Pick<TransactionCost, 'estimatedPredicates' | 'addedSignatures' | 'requiredQuantities' | 'updateMaxFee' | 'gasPrice'>;
|
22
|
+
export type EstimatedTxParams = Pick<TransactionCost, 'estimatedPredicates' | 'addedSignatures' | 'requiredQuantities' | 'updateMaxFee' | 'gasPrice' | 'transactionSummary'>;
|
22
23
|
export type FakeResources = Partial<Coin> & Required<Pick<Coin, 'amount' | 'assetId'>>;
|
23
24
|
/**
|
24
25
|
* `Account` provides an abstraction for interacting with accounts or wallets on the network.
|
@@ -191,7 +192,7 @@ export declare class Account extends AbstractAccount implements WithAddress {
|
|
191
192
|
*
|
192
193
|
* @hidden
|
193
194
|
*/
|
194
|
-
signMessage(message:
|
195
|
+
signMessage(message: HashableMessage): Promise<string>;
|
195
196
|
/**
|
196
197
|
* Signs a transaction from the account via the connector..
|
197
198
|
*
|
@@ -206,7 +207,7 @@ export declare class Account extends AbstractAccount implements WithAddress {
|
|
206
207
|
* @param sendTransactionParams - The provider send transaction parameters (optional).
|
207
208
|
* @returns A promise that resolves to the transaction response.
|
208
209
|
*/
|
209
|
-
sendTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies,
|
210
|
+
sendTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies, ...connectorOptions }?: AccountSendTxParams): Promise<TransactionResponse>;
|
210
211
|
/**
|
211
212
|
* Simulates a transaction.
|
212
213
|
*
|
@@ -222,6 +223,10 @@ export declare class Account extends AbstractAccount implements WithAddress {
|
|
222
223
|
* @returns An array of `Resource` objects with generated properties.
|
223
224
|
*/
|
224
225
|
generateFakeResources(coins: FakeResources[]): Array<Resource>;
|
226
|
+
/** @hidden */
|
227
|
+
private prepareTransactionForSend;
|
228
|
+
/** @hidden */
|
229
|
+
private prepareTransactionSummary;
|
225
230
|
/** @hidden * */
|
226
231
|
private validateTransferAmount;
|
227
232
|
/** @hidden * */
|
package/dist/account.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EAEhB,QAAQ,EACR,sBAAsB,EACtB,QAAQ,EACR,4BAA4B,EAC5B,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,IAAI,EACJ,qBAAqB,EACrB,mBAAmB,EACnB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AE,YAAiB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IA0C/B;;;;;;;OAOG;IACG,mBAAmB,CACvB,SAAS,EAAE,YAAY,EACvB,MAAM,EAAE,YAAY,EACpB,QAAQ,GAAE,YAAiB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IAmC/B;;;;;;;;;OASG;IACG,kBAAkB,CACtB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,iBAAiB,EAAE,UAAe,EAAE,QAAQ,EAAE,GAAE,qBAA0B,GAC3E,OAAO,CAAC,eAAe,CAAC;IA2D3B;;;;;;;OAOG;IACG,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAO5D;;;;;OAKG;IACG,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUtF;;;;;;OAMG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAG,gBAAgB,EAAE,GAAE,mBAAwB,GAC/E,OAAO,CAAC,mBAAmB,CAAC;IAwC/B;;;;;;OAMG;IACG,mBAAmB,CACvB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAE,yBAA8B,GAChE,OAAO,CAAC,UAAU,CAAC;IAQtB;;;;;OAKG;IACH,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IAU9D,cAAc;YACA,yBAAyB;IAqBvC,cAAc;YACA,yBAAyB;IAcvC,gBAAgB;IAChB,OAAO,CAAC,sBAAsB;IAS9B,gBAAgB;YACF,0BAA0B;IAiBxC,gBAAgB;IAChB,OAAO,CAAC,yBAAyB;CAiClC"}
|
@@ -1,6 +1,7 @@
|
|
1
|
+
import type { HashableMessage } from '@fuel-ts/hasher';
|
1
2
|
import { EventEmitter } from 'events';
|
2
3
|
import type { Asset } from '../assets/types';
|
3
|
-
import type { TransactionRequestLike } from '../providers';
|
4
|
+
import type { TransactionRequestLike, TransactionResponse } from '../providers';
|
4
5
|
import { FuelConnectorEventTypes } from './types';
|
5
6
|
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version, SelectNetworkArguments, FuelConnectorSendTxParams } from './types';
|
6
7
|
interface Connector {
|
@@ -10,9 +11,9 @@ interface Connector {
|
|
10
11
|
accounts(): Promise<Array<string>>;
|
11
12
|
connect(): Promise<boolean>;
|
12
13
|
disconnect(): Promise<boolean>;
|
13
|
-
signMessage(address: string, message:
|
14
|
+
signMessage(address: string, message: HashableMessage): Promise<string>;
|
14
15
|
signTransaction(address: string, transaction: TransactionRequestLike): Promise<string>;
|
15
|
-
sendTransaction(address: string, transaction: TransactionRequestLike, params?: FuelConnectorSendTxParams): Promise<string>;
|
16
|
+
sendTransaction(address: string, transaction: TransactionRequestLike, params?: FuelConnectorSendTxParams): Promise<string | TransactionResponse>;
|
16
17
|
currentAccount(): Promise<string | null>;
|
17
18
|
addAssets(assets: Array<Asset>): Promise<boolean>;
|
18
19
|
addAsset(asset: Asset): Promise<boolean>;
|
@@ -93,7 +94,7 @@ export declare abstract class FuelConnector extends EventEmitter implements Conn
|
|
93
94
|
*
|
94
95
|
* @returns Message signature
|
95
96
|
*/
|
96
|
-
signMessage(_address: string, _message:
|
97
|
+
signMessage(_address: string, _message: HashableMessage): Promise<string>;
|
97
98
|
/**
|
98
99
|
* Should start the sign transaction process and return
|
99
100
|
* the signed transaction.
|
@@ -115,9 +116,9 @@ export declare abstract class FuelConnector extends EventEmitter implements Conn
|
|
115
116
|
* @param address - The address to sign the transaction
|
116
117
|
* @param transaction - The transaction to send
|
117
118
|
* @param params - Optional parameters to send the transaction
|
118
|
-
* @returns The transaction id
|
119
|
+
* @returns The transaction id or transaction response
|
119
120
|
*/
|
120
|
-
sendTransaction(_address: string, _transaction: TransactionRequestLike, _params?: FuelConnectorSendTxParams): Promise<string>;
|
121
|
+
sendTransaction(_address: string, _transaction: TransactionRequestLike, _params?: FuelConnectorSendTxParams): Promise<string | TransactionResponse>;
|
121
122
|
/**
|
122
123
|
* Should return the current account selected inside the connector, if the account
|
123
124
|
* is authorized for the connection.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fuel-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel-connector.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"fuel-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel-connector.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,OAAO,EACP,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AAEjB,UAAU,SAAS;IAEjB,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAGzB,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAG5B,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAGhC,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAGnC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAG5B,UAAU,IAAI,OAAO,CAAC,OAA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;IAI/C;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAIrC;;;;;;;OAOG;IACG,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvD;;;;;;;OAOG;IACG,aAAa,CAAC,QAAQ,EAAE,sBAAsB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvE;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAIzC;;;;OAIG;IACG,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAIxC;;;;;;OAMG;IACG,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlE;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAIlD;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3C;;;;;OAKG;IACM,EAAE,CAAC,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAC1E,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAC1B,IAAI;CAIR"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { JsonAbi } from '@fuel-ts/abi-coder';
|
2
2
|
import type { RequireAtLeastOne } from 'type-fest';
|
3
|
-
import type { TransactionRequest } from '../../providers';
|
3
|
+
import type { TransactionRequest, TransactionStateFlag } from '../../providers';
|
4
|
+
import type { ProviderCacheJson, TransactionSummaryJson } from '../../providers/utils/serialization';
|
4
5
|
/**
|
5
6
|
* @name Version
|
6
7
|
*/
|
@@ -45,5 +46,11 @@ export type FuelABI = JsonAbi;
|
|
45
46
|
export type FuelConnectorSendTxParams = {
|
46
47
|
skipCustomFee?: boolean;
|
47
48
|
onBeforeSend?: (txRequest: TransactionRequest) => Promise<TransactionRequest>;
|
49
|
+
provider?: {
|
50
|
+
url: string;
|
51
|
+
cache?: ProviderCacheJson;
|
52
|
+
};
|
53
|
+
transactionState?: TransactionStateFlag['state'];
|
54
|
+
transactionSummary?: TransactionSummaryJson;
|
48
55
|
};
|
49
56
|
//# sourceMappingURL=data-type.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-type.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/data-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"data-type.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/data-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CA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