@fuel-ts/account 0.94.5 → 0.94.6
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/configs.d.ts +6 -0
- package/dist/configs.d.ts.map +1 -1
- package/dist/configs.global.js.map +1 -1
- package/dist/configs.js.map +1 -1
- package/dist/configs.mjs.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +3 -4
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/connectors/types/data-type.d.ts +7 -0
- package/dist/connectors/types/data-type.d.ts.map +1 -1
- package/dist/connectors/types/local-storage.d.ts +0 -1
- package/dist/connectors/types/local-storage.d.ts.map +1 -1
- package/dist/index.global.js +1620 -967
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1308 -405
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1237 -338
- package/dist/index.mjs.map +1 -1
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/assets/assets.d.ts +1 -1
- package/dist/providers/assets/assets.d.ts.map +1 -1
- package/dist/providers/assets/utils/network.d.ts.map +1 -1
- package/dist/providers/assets/utils/resolveIconPaths.d.ts +1 -1
- package/dist/providers/chains.d.ts +2 -0
- package/dist/providers/chains.d.ts.map +1 -1
- package/dist/providers/fuel-graphql-subscriber.d.ts +0 -2
- package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +8 -3
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
- package/dist/providers/transaction-request/index.d.ts +2 -0
- package/dist/providers/transaction-request/index.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +2 -2
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/types.d.ts +8 -2
- package/dist/providers/transaction-request/types.d.ts.map +1 -1
- package/dist/providers/transaction-request/upgrade-transaction-request.d.ts +87 -0
- package/dist/providers/transaction-request/upgrade-transaction-request.d.ts.map +1 -0
- package/dist/providers/transaction-request/upload-transaction-request.d.ts +82 -0
- package/dist/providers/transaction-request/upload-transaction-request.d.ts.map +1 -0
- package/dist/providers/transaction-request/utils.d.ts +6 -0
- package/dist/providers/transaction-request/utils.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/transaction-summary/input.d.ts.map +1 -1
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
- package/dist/providers/transaction-summary/output.d.ts.map +1 -1
- package/dist/providers/transaction-summary/receipt.d.ts.map +1 -1
- package/dist/providers/utils/extract-tx-error.d.ts.map +1 -1
- package/dist/providers/utils/gas.d.ts +16 -0
- package/dist/providers/utils/gas.d.ts.map +1 -1
- package/dist/providers/utils/receipts.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils/resources.d.ts.map +1 -1
- package/dist/test-utils/transactionRequest.d.ts.map +1 -1
- package/dist/test-utils.global.js +1614 -963
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +1219 -332
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +1161 -271
- package/dist/test-utils.mjs.map +1 -1
- package/dist/wallet-manager/wallet-manager.d.ts +0 -1
- package/dist/wallet-manager/wallet-manager.d.ts.map +1 -1
- package/package.json +18 -17
package/dist/configs.d.ts
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* @deprecated This export is deprecated and will be removed in the future.
|
3
|
+
*/
|
1
4
|
export declare const DEVNET_NETWORK_URL = "https://devnet.fuel.network/v1/graphql";
|
5
|
+
/**
|
6
|
+
* @deprecated This export is deprecated and will be removed in the future.
|
7
|
+
*/
|
2
8
|
export declare const TESTNET_NETWORK_URL = "https://testnet.fuel.network/v1/graphql";
|
3
9
|
//# sourceMappingURL=configs.d.ts.map
|
package/dist/configs.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../src/configs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;
|
1
|
+
{"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../src/configs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB,2CAA2C,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n
|
1
|
+
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n * @deprecated This export is deprecated and will be removed in the future.\n */\nexport const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\n\n/**\n * @deprecated This export is deprecated and will be removed in the future.\n */\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n"],"mappings":";;;AAGO,MAAM,qBAAqB;AAK3B,MAAM,sBAAsB;","names":[]}
|
package/dist/configs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n
|
1
|
+
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n * @deprecated This export is deprecated and will be removed in the future.\n */\nexport const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\n\n/**\n * @deprecated This export is deprecated and will be removed in the future.\n */\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,IAAM,qBAAqB;AAK3B,IAAM,sBAAsB;","names":[]}
|
package/dist/configs.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["export const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n
|
1
|
+
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n * @deprecated This export is deprecated and will be removed in the future.\n */\nexport const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\n\n/**\n * @deprecated This export is deprecated and will be removed in the future.\n */\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n"],"mappings":";AAGO,IAAM,qBAAqB;AAK3B,IAAM,sBAAsB;","names":[]}
|
@@ -1,9 +1,8 @@
|
|
1
|
-
/// <reference types="node" />
|
2
1
|
import { EventEmitter } from 'events';
|
3
2
|
import type { TransactionRequestLike } from '../providers';
|
4
3
|
import type { Asset } from '../providers/assets/types';
|
5
4
|
import { FuelConnectorEventTypes } from './types';
|
6
|
-
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version } from './types';
|
5
|
+
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version, SelectNetworkArguments } from './types';
|
7
6
|
interface Connector {
|
8
7
|
ping(): Promise<boolean>;
|
9
8
|
version(): Promise<Version>;
|
@@ -19,7 +18,7 @@ interface Connector {
|
|
19
18
|
addAsset(asset: Asset): Promise<boolean>;
|
20
19
|
assets(): Promise<Array<Asset>>;
|
21
20
|
addNetwork(networkUrl: string): Promise<boolean>;
|
22
|
-
selectNetwork(network:
|
21
|
+
selectNetwork(network: SelectNetworkArguments): Promise<boolean>;
|
23
22
|
networks(): Promise<Array<Network>>;
|
24
23
|
currentNetwork(): Promise<Network>;
|
25
24
|
addABI(contractId: string, abi: FuelABI): Promise<boolean>;
|
@@ -174,7 +173,7 @@ export declare abstract class FuelConnector extends EventEmitter implements Conn
|
|
174
173
|
* @param network - The network to be selected.
|
175
174
|
* @returns Return true if the network was added successfully
|
176
175
|
*/
|
177
|
-
selectNetwork(_network:
|
176
|
+
selectNetwork(_network: SelectNetworkArguments): Promise<boolean>;
|
178
177
|
/**
|
179
178
|
* Should return all the networks available from the connector. If the connection is already established.
|
180
179
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fuel-connector.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel-connector.ts"],"names":[],"mappings":"
|
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,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,OAAO,EACP,sBAAsB,EACvB,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,OAAO,CAAC,CAAC;IAG/B,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,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G,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;IACH,EAAE,CAAC,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EACjE,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAC1B,IAAI;CAIR"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { JsonAbi } from '@fuel-ts/abi-coder';
|
2
|
+
import type { RequireAtLeastOne } from 'type-fest';
|
2
3
|
/**
|
3
4
|
* @name Version
|
4
5
|
*/
|
@@ -25,6 +26,12 @@ export type Network = {
|
|
25
26
|
*/
|
26
27
|
chainId: number;
|
27
28
|
};
|
29
|
+
/**
|
30
|
+
* @name SelectNetworkArguments
|
31
|
+
*
|
32
|
+
* Select a network requires either the `chainId` or the `url`.
|
33
|
+
*/
|
34
|
+
export type SelectNetworkArguments = RequireAtLeastOne<Network, 'chainId' | 'url'>;
|
28
35
|
/**
|
29
36
|
* ABI that represents a binary code interface from Sway.
|
30
37
|
*
|
@@ -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;
|
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;;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,CAAC,OAAO,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/local-storage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/local-storage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,qBAAa,YAAa,YAAW,eAAe;IAClD,OAAO,CAAC,OAAO,CAAU;gBAEb,YAAY,EAAE,OAAO;IAI3B,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAIxD,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
|