@fuel-ts/account 0.90.0 → 0.92.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/dist/account.d.ts +4 -4
- package/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +2 -2
- package/dist/index.global.js +1079 -622
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +181 -117
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +179 -117
- package/dist/index.mjs.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +682 -507
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/assets/utils/network.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +27 -6
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +13 -0
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/utils/extract-tx-error.d.ts +2 -8
- package/dist/providers/utils/extract-tx-error.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +4 -16
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts +2 -1
- package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +1 -1
- package/dist/test-utils.global.js +1164 -778
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +254 -172
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +253 -170
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +24 -25
package/dist/account.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { AbstractAccount } from '@fuel-ts/interfaces';
|
|
2
2
|
import type { AbstractAddress, BytesLike } from '@fuel-ts/interfaces';
|
3
3
|
import type { BigNumberish, BN } from '@fuel-ts/math';
|
4
4
|
import type { FuelConnector } from './connectors';
|
5
|
-
import type {
|
5
|
+
import type { TransactionRequest, CoinQuantityLike, Resource, ExcludeResourcesOption, Provider, ScriptTransactionRequestLike, TransactionResponse, TransactionCost, EstimateTransactionParams, CursorPaginationArgs, TransactionRequestLike, ProviderSendTxParams, CallResult, GetCoinsResponse, GetMessagesResponse, GetBalancesResponse, Coin } from './providers';
|
6
6
|
import { ScriptTransactionRequest } from './providers';
|
7
7
|
export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'tip' | 'maturity' | 'maxFee' | 'witnessLimit'>;
|
8
8
|
export type TransferParams = {
|
@@ -71,13 +71,13 @@ export declare class Account extends AbstractAccount {
|
|
71
71
|
* @param assetId - The asset ID of the coins to retrieve (optional).
|
72
72
|
* @returns A promise that resolves to an array of Coins.
|
73
73
|
*/
|
74
|
-
getCoins(assetId?: BytesLike): Promise<
|
74
|
+
getCoins(assetId?: BytesLike, paginationArgs?: CursorPaginationArgs): Promise<GetCoinsResponse>;
|
75
75
|
/**
|
76
76
|
* Retrieves messages owned by the account.
|
77
77
|
*
|
78
78
|
* @returns A promise that resolves to an array of Messages.
|
79
79
|
*/
|
80
|
-
getMessages(): Promise<
|
80
|
+
getMessages(paginationArgs?: CursorPaginationArgs): Promise<GetMessagesResponse>;
|
81
81
|
/**
|
82
82
|
* Retrieves the balance of the account for the given asset.
|
83
83
|
*
|
@@ -90,7 +90,7 @@ export declare class Account extends AbstractAccount {
|
|
90
90
|
*
|
91
91
|
* @returns A promise that resolves to an array of Coins and their quantities.
|
92
92
|
*/
|
93
|
-
getBalances(): Promise<
|
93
|
+
getBalances(): Promise<GetBalancesResponse>;
|
94
94
|
/**
|
95
95
|
* Funds a transaction request by adding the necessary resources.
|
96
96
|
*
|
package/dist/account.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qB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e,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,cAAc,EAAE,GAAE,oBAAyB,GAC3E,OAAO,CAAC,mBAAmB,CAAC;IAgB/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,gBAAgB;IAChB,OAAO,CAAC,sBAAsB;IAS9B,gBAAgB;YACF,0BAA0B;IAkBxC,gBAAgB;IAChB,OAAO,CAAC,yBAAyB;CAiClC"}
|
@@ -106,7 +106,7 @@ export declare abstract class FuelConnector extends EventEmitter {
|
|
106
106
|
*/
|
107
107
|
currentAccount(): Promise<string | null>;
|
108
108
|
/**
|
109
|
-
* Should add the
|
109
|
+
* Should add the assets metadata to the connector and return true if the asset
|
110
110
|
* was added successfully.
|
111
111
|
*
|
112
112
|
* If the asset already exists it should throw an error.
|
@@ -118,7 +118,7 @@ export declare abstract class FuelConnector extends EventEmitter {
|
|
118
118
|
*/
|
119
119
|
addAssets(_assets: Array<Asset>): Promise<boolean>;
|
120
120
|
/**
|
121
|
-
* Should add the
|
121
|
+
* Should add the asset metadata to the connector and return true if the asset
|
122
122
|
* was added successfully.
|
123
123
|
*
|
124
124
|
* If the asset already exists it should throw an error.
|