@fuel-ts/account 0.97.2 → 0.99.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 +20 -17
- package/dist/account.d.ts.map +1 -1
- package/dist/assets/asset-api.d.ts +69 -0
- package/dist/assets/asset-api.d.ts.map +1 -0
- package/dist/assets/assets.d.ts.map +1 -0
- package/dist/{providers/assets → assets}/index.d.ts +1 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/types.d.ts.map +1 -0
- package/dist/assets/utils/fuelAssetsBaseUrl.d.ts +2 -0
- package/dist/assets/utils/fuelAssetsBaseUrl.d.ts.map +1 -0
- package/dist/assets/utils/index.d.ts.map +1 -0
- package/dist/{providers/assets → assets}/utils/network.d.ts +6 -6
- package/dist/assets/utils/network.d.ts.map +1 -0
- package/dist/assets/utils/resolveIconPaths.d.ts.map +1 -0
- package/dist/assets/utils/url.d.ts.map +1 -0
- package/dist/configs.d.ts +2 -2
- 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 +5 -5
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/connectors/fuel.d.ts +3 -3
- package/dist/connectors/fuel.d.ts.map +1 -1
- package/dist/connectors/types/data-type.d.ts +8 -0
- package/dist/connectors/types/data-type.d.ts.map +1 -1
- package/dist/connectors/types/events.d.ts +1 -1
- package/dist/connectors/types/events.d.ts.map +1 -1
- package/dist/hdwallet/hdwallet.d.ts +1 -1
- package/dist/hdwallet/hdwallet.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.global.js +17174 -15376
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +6602 -6428
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6613 -6450
- package/dist/index.mjs.map +1 -1
- package/dist/mnemonic/mnemonic.d.ts +1 -1
- package/dist/mnemonic/mnemonic.d.ts.map +1 -1
- package/dist/mnemonic/utils.d.ts +1 -1
- package/dist/mnemonic/utils.d.ts.map +1 -1
- package/dist/predicate/predicate.d.ts +9 -1
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/predicate/utils/getPredicateRoot.d.ts +1 -1
- package/dist/predicate/utils/getPredicateRoot.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +28 -175
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/coin-quantity.d.ts +1 -1
- package/dist/providers/coin-quantity.d.ts.map +1 -1
- package/dist/providers/coin.d.ts +3 -2
- package/dist/providers/coin.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/index.d.ts +0 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/message.d.ts +8 -7
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +65 -42
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource.d.ts +1 -1
- package/dist/providers/resource.d.ts.map +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/errors.d.ts +3 -3
- package/dist/providers/transaction-request/errors.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +26 -4
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
- package/dist/providers/transaction-request/input.d.ts +1 -1
- package/dist/providers/transaction-request/input.d.ts.map +1 -1
- package/dist/providers/transaction-request/output.d.ts +1 -1
- package/dist/providers/transaction-request/output.d.ts.map +1 -1
- package/dist/providers/transaction-request/script-transaction-request.d.ts +13 -3
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/scripts.d.ts +1 -1
- package/dist/providers/transaction-request/scripts.d.ts.map +1 -1
- package/dist/providers/transaction-request/storage-slot.d.ts +1 -1
- package/dist/providers/transaction-request/storage-slot.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +5 -3
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/types.d.ts +7 -0
- package/dist/providers/transaction-request/types.d.ts.map +1 -1
- package/dist/providers/transaction-request/upgrade-transaction-request.d.ts +1 -1
- package/dist/providers/transaction-request/upgrade-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/upload-transaction-request.d.ts +1 -1
- package/dist/providers/transaction-request/upload-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/witness.d.ts +1 -1
- package/dist/providers/transaction-request/witness.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts +1 -1
- 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/calculate-tx-fee-for-summary.d.ts +0 -1
- package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/input.d.ts +1 -1
- package/dist/providers/transaction-summary/status.d.ts +9 -2
- package/dist/providers/transaction-summary/status.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +1 -21
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts +5 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
- package/dist/providers/utils/receipts.d.ts.map +1 -1
- package/dist/signer/signer.d.ts +1 -1
- package/dist/signer/signer.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +2 -1
- 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-message.d.ts +6 -6
- package/dist/test-utils/test-message.d.ts.map +1 -1
- package/dist/test-utils/wallet-config.d.ts +2 -1
- package/dist/test-utils/wallet-config.d.ts.map +1 -1
- package/dist/test-utils.global.js +3096 -1963
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +498 -1011
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +453 -966
- package/dist/test-utils.mjs.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/deployScriptOrPredicate.d.ts.map +1 -1
- package/dist/utils/formatTransferToContractScriptData.d.ts +1 -1
- package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
- package/dist/utils/predicate-script-loader-instructions.d.ts +36 -1
- package/dist/utils/predicate-script-loader-instructions.d.ts.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/dist/wallet/keystore-wallet.d.ts +2 -2
- package/dist/wallet/keystore-wallet.d.ts.map +1 -1
- package/dist/wallet/wallet.d.ts +3 -2
- package/dist/wallet/wallet.d.ts.map +1 -1
- package/dist/wallet/wallets.d.ts +1 -1
- package/dist/wallet/wallets.d.ts.map +1 -1
- package/dist/wallet-manager/types.d.ts +4 -4
- package/dist/wallet-manager/types.d.ts.map +1 -1
- package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +6 -5
- package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -1
- package/dist/wallet-manager/vaults/privatekey-vault.d.ts +6 -5
- package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -1
- package/dist/wallet-manager/wallet-manager.d.ts +3 -3
- package/dist/wallet-manager/wallet-manager.d.ts.map +1 -1
- package/package.json +28 -30
- package/dist/providers/assets/assets.d.ts.map +0 -1
- package/dist/providers/assets/index.d.ts.map +0 -1
- package/dist/providers/assets/types.d.ts.map +0 -1
- package/dist/providers/assets/utils/fuelAssetsBaseUrl.d.ts +0 -2
- package/dist/providers/assets/utils/fuelAssetsBaseUrl.d.ts.map +0 -1
- package/dist/providers/assets/utils/index.d.ts.map +0 -1
- package/dist/providers/assets/utils/network.d.ts.map +0 -1
- package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +0 -1
- package/dist/providers/assets/utils/url.d.ts.map +0 -1
- /package/dist/{providers/assets → assets}/assets.d.ts +0 -0
- /package/dist/{providers/assets → assets}/types.d.ts +0 -0
- /package/dist/{providers/assets → assets}/utils/index.d.ts +0 -0
- /package/dist/{providers/assets → assets}/utils/resolveIconPaths.d.ts +0 -0
- /package/dist/{providers/assets → assets}/utils/url.d.ts +0 -0
package/dist/account.d.ts
CHANGED
@@ -1,30 +1,33 @@
|
|
1
|
-
import {
|
2
|
-
import
|
1
|
+
import type { AddressInput, WithAddress } from '@fuel-ts/address';
|
2
|
+
import { Address } from '@fuel-ts/address';
|
3
3
|
import type { BigNumberish, BN } from '@fuel-ts/math';
|
4
|
-
import type {
|
5
|
-
import type {
|
4
|
+
import type { BytesLike } from '@fuel-ts/utils';
|
5
|
+
import type { FuelConnector, FuelConnectorSendTxParams } from './connectors';
|
6
|
+
import type { TransactionRequest, CoinQuantityLike, Resource, ExcludeResourcesOption, Provider, ScriptTransactionRequestLike, TransactionCost, EstimateTransactionParams, CursorPaginationArgs, TransactionRequestLike, CallResult, GetCoinsResponse, GetMessagesResponse, GetBalancesResponse, Coin, TransactionCostParams, TransactionResponse, ProviderSendTxParams } from './providers';
|
6
7
|
import { ScriptTransactionRequest } from './providers';
|
8
|
+
import { AbstractAccount } from './types';
|
7
9
|
export type TxParamsType = Pick<ScriptTransactionRequestLike, 'gasLimit' | 'tip' | 'maturity' | 'maxFee' | 'witnessLimit'>;
|
8
10
|
export type TransferParams = {
|
9
|
-
destination: string |
|
11
|
+
destination: string | Address;
|
10
12
|
amount: BigNumberish;
|
11
|
-
assetId
|
13
|
+
assetId: BytesLike;
|
12
14
|
};
|
13
15
|
export type ContractTransferParams = {
|
14
|
-
contractId: string |
|
16
|
+
contractId: string | Address;
|
15
17
|
amount: BigNumberish;
|
16
|
-
assetId
|
18
|
+
assetId: BytesLike;
|
17
19
|
};
|
20
|
+
export type AccountSendTxParams = ProviderSendTxParams & FuelConnectorSendTxParams;
|
18
21
|
export type EstimatedTxParams = Pick<TransactionCost, 'estimatedPredicates' | 'addedSignatures' | 'requiredQuantities' | 'updateMaxFee' | 'gasPrice'>;
|
19
22
|
export type FakeResources = Partial<Coin> & Required<Pick<Coin, 'amount' | 'assetId'>>;
|
20
23
|
/**
|
21
24
|
* `Account` provides an abstraction for interacting with accounts or wallets on the network.
|
22
25
|
*/
|
23
|
-
export declare class Account extends AbstractAccount {
|
26
|
+
export declare class Account extends AbstractAccount implements WithAddress {
|
24
27
|
/**
|
25
28
|
* The address associated with the account.
|
26
29
|
*/
|
27
|
-
readonly address:
|
30
|
+
readonly address: Address;
|
28
31
|
/**
|
29
32
|
* The provider used to interact with the network.
|
30
33
|
*/
|
@@ -40,7 +43,7 @@ export declare class Account extends AbstractAccount {
|
|
40
43
|
* @param provider - A Provider instance (optional).
|
41
44
|
* @param connector - A FuelConnector instance (optional).
|
42
45
|
*/
|
43
|
-
constructor(address:
|
46
|
+
constructor(address: AddressInput, provider?: Provider, connector?: FuelConnector);
|
44
47
|
/**
|
45
48
|
* The provider used to interact with the network.
|
46
49
|
*
|
@@ -114,7 +117,7 @@ export declare class Account extends AbstractAccount {
|
|
114
117
|
* @param txParams - The transaction parameters (optional).
|
115
118
|
* @returns A promise that resolves to the prepared transaction request.
|
116
119
|
*/
|
117
|
-
createTransfer(destination: string |
|
120
|
+
createTransfer(destination: string | Address, amount: BigNumberish, assetId?: BytesLike, txParams?: TxParamsType): Promise<ScriptTransactionRequest>;
|
118
121
|
/**
|
119
122
|
* Transfers coins to a destination address.
|
120
123
|
*
|
@@ -124,7 +127,7 @@ export declare class Account extends AbstractAccount {
|
|
124
127
|
* @param txParams - The transaction parameters (optional).
|
125
128
|
* @returns A promise that resolves to the transaction response.
|
126
129
|
*/
|
127
|
-
transfer(destination: string |
|
130
|
+
transfer(destination: string | Address, amount: BigNumberish, assetId?: BytesLike, txParams?: TxParamsType): Promise<TransactionResponse>;
|
128
131
|
/**
|
129
132
|
* Transfers multiple amounts of a token to multiple recipients.
|
130
133
|
*
|
@@ -158,7 +161,7 @@ export declare class Account extends AbstractAccount {
|
|
158
161
|
* @param txParams - The transaction parameters (optional).
|
159
162
|
* @returns A promise that resolves to the transaction response.
|
160
163
|
*/
|
161
|
-
transferToContract(contractId: string |
|
164
|
+
transferToContract(contractId: string | Address, amount: BigNumberish, assetId: BytesLike, txParams?: TxParamsType): Promise<TransactionResponse>;
|
162
165
|
batchTransferToContracts(contractTransferParams: ContractTransferParams[], txParams?: TxParamsType): Promise<TransactionResponse>;
|
163
166
|
/**
|
164
167
|
* Withdraws an amount of the base asset to the base chain.
|
@@ -168,7 +171,7 @@ export declare class Account extends AbstractAccount {
|
|
168
171
|
* @param txParams - The transaction parameters (optional).
|
169
172
|
* @returns A promise that resolves to the transaction response.
|
170
173
|
*/
|
171
|
-
withdrawToBaseLayer(recipient:
|
174
|
+
withdrawToBaseLayer(recipient: AddressInput, amount: BigNumberish, txParams?: TxParamsType): Promise<TransactionResponse>;
|
172
175
|
/**
|
173
176
|
* Returns a transaction cost to enable user
|
174
177
|
* to set gasLimit and also reserve balance amounts
|
@@ -179,7 +182,7 @@ export declare class Account extends AbstractAccount {
|
|
179
182
|
*
|
180
183
|
* @returns A promise that resolves to the transaction cost object.
|
181
184
|
*/
|
182
|
-
getTransactionCost(transactionRequestLike: TransactionRequestLike, { signatureCallback, quantities }?: TransactionCostParams): Promise<TransactionCost>;
|
185
|
+
getTransactionCost(transactionRequestLike: TransactionRequestLike, { signatureCallback, quantities, gasPrice }?: TransactionCostParams): Promise<TransactionCost>;
|
183
186
|
/**
|
184
187
|
* Sign a message from the account via the connector.
|
185
188
|
*
|
@@ -203,7 +206,7 @@ export declare class Account extends AbstractAccount {
|
|
203
206
|
* @param sendTransactionParams - The provider send transaction parameters (optional).
|
204
207
|
* @returns A promise that resolves to the transaction response.
|
205
208
|
*/
|
206
|
-
sendTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies }?:
|
209
|
+
sendTransaction(transactionRequestLike: TransactionRequestLike, { estimateTxDependencies, onBeforeSend, skipCustomFee }?: AccountSendTxParams): Promise<TransactionResponse>;
|
207
210
|
/**
|
208
211
|
* Simulates a transaction.
|
209
212
|
*
|
package/dist/account.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"
|
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,oBAAoB,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,wBAAwB,EAGzB,MAAM,aAAa,CAAC;AASrB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG1C,MAAM,MAAM,YAAY,GAAG,IAAI,CAC7B,4BAA4B,EAC5B,UAAU,GAAG,KAAK,GAAG,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BAAsB;IAS9B,gBAAgB;YACF,0BAA0B;IAiBxC,gBAAgB;IAChB,OAAO,CAAC,yBAAyB;CAiClC"}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { B256Address } from "@fuel-ts/address";
|
2
|
+
import { NetworkEthereum, NetworkFuel } from "./types";
|
3
|
+
declare const networks: {
|
4
|
+
readonly mainnet: "https://mainnet-explorer.fuel.network";
|
5
|
+
readonly testnet: "https://explorer-indexer-testnet.fuel.network";
|
6
|
+
};
|
7
|
+
export interface AssetPaginationOptions {
|
8
|
+
last: number;
|
9
|
+
}
|
10
|
+
export interface AssetPageInfo {
|
11
|
+
count: number;
|
12
|
+
}
|
13
|
+
export interface AssetInfo {
|
14
|
+
assetId: string;
|
15
|
+
contractId?: string;
|
16
|
+
subId?: string;
|
17
|
+
name: string;
|
18
|
+
symbol: string;
|
19
|
+
decimals: number;
|
20
|
+
suspicious: boolean;
|
21
|
+
verified: boolean;
|
22
|
+
totalSupply?: string;
|
23
|
+
networks?: (NetworkEthereum | NetworkFuel)[];
|
24
|
+
rate?: number;
|
25
|
+
icon?: string;
|
26
|
+
owner?: string;
|
27
|
+
amount?: string;
|
28
|
+
amountInUsd?: string;
|
29
|
+
uri?: string;
|
30
|
+
metadata: Record<string, string>;
|
31
|
+
collection?: string;
|
32
|
+
isNFT?: boolean;
|
33
|
+
}
|
34
|
+
/**
|
35
|
+
* Get information about any asset (including NFTs)
|
36
|
+
*
|
37
|
+
* @param opts - The options for the request
|
38
|
+
* @param opts.network {'mainnet' | 'testnet'} - The network to use (default: `mainnet`)
|
39
|
+
* @param opts.assetId {string} - The ID of the asset to get information about
|
40
|
+
* @returns {Promise<AssetInfo>} - The information about the asset
|
41
|
+
*
|
42
|
+
* @see {@link https://github.com/FuelLabs/fuel-explorer/wiki/Assets-API#instructions-for-consuming-assets-data-from-indexer-api}
|
43
|
+
*/
|
44
|
+
export declare const getAssetById: (opts: {
|
45
|
+
assetId: B256Address;
|
46
|
+
network?: keyof typeof networks;
|
47
|
+
}) => Promise<AssetInfo | null>;
|
48
|
+
export interface AssetsByOwner {
|
49
|
+
data: AssetInfo[];
|
50
|
+
pageInfo: AssetPageInfo;
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* Get assets by owner
|
54
|
+
*
|
55
|
+
* @param opts - The options for the request
|
56
|
+
* @param opts.owner {B256Address} - The owner of the assets
|
57
|
+
* @param opts.network {'mainnet' | 'testnet'} - The network to use (default: `mainnet`)
|
58
|
+
* @param opts.pagination {AssetPaginationOptions} - The pagination options (default: 10)
|
59
|
+
* @returns {Promise<AssetsByOwnerResponse>} - The assets by owner
|
60
|
+
*
|
61
|
+
* @see {@link https://github.com/FuelLabs/fuel-explorer/wiki/Assets-API#instructions-for-consuming-assets-data-owned-by-an-account-from-indexer-api}
|
62
|
+
*/
|
63
|
+
export declare const getAssetsByOwner: (opts: {
|
64
|
+
owner: B256Address;
|
65
|
+
network?: keyof typeof networks;
|
66
|
+
pagination?: AssetPaginationOptions;
|
67
|
+
}) => Promise<AssetsByOwner>;
|
68
|
+
export {};
|
69
|
+
//# sourceMappingURL=asset-api.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"asset-api.d.ts","sourceRoot":"","sources":["../../src/assets/asset-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,QAAQ;;;CAGJ,CAAC;AAEX,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf;AA0BD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,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eAAO,MAAM,SAAS,EAAE,MAijBvB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;GAAiD,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/assets/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,sBAAsB;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,QAAQ,EAAE,KAAK,CAAC,eAAe,GAAG,WAAW,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;AAElC,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,eAAe,CAAC;AACjE,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,WAAW,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fuelAssetsBaseUrl.d.ts","sourceRoot":"","sources":["../../../src/assets/utils/fuelAssetsBaseUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,2CAA2C,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/assets/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,OAAO,CAAC;AACtB,cAAc,qBAAqB,CAAA"}
|
@@ -4,7 +4,7 @@ export type NetworkTypes = NetworkEthereum['type'] | NetworkFuel['type'];
|
|
4
4
|
type NetworkTypeToNetwork<T> = T extends 'ethereum' ? NetworkEthereum : T extends 'fuel' ? NetworkFuel : Network;
|
5
5
|
/**
|
6
6
|
* Returns the default chainId for the given network
|
7
|
-
*/
|
7
|
+
*/
|
8
8
|
export declare const getDefaultChainId: (networkType: NetworkTypes) => number | undefined;
|
9
9
|
export type GetAssetNetworkParams<T extends NetworkTypes | undefined> = {
|
10
10
|
asset: Asset;
|
@@ -14,20 +14,20 @@ export type GetAssetNetworkParams<T extends NetworkTypes | undefined> = {
|
|
14
14
|
/**
|
15
15
|
* Returns the asset's network on the given network
|
16
16
|
* eg. getAssetNetwork({ asset, chainId: 1, networkType: 'ethereum' }) will return the asset's details on Ethereum mainnet
|
17
|
-
*/
|
17
|
+
*/
|
18
18
|
export declare const getAssetNetwork: <T extends NetworkTypes | undefined>({ asset, chainId, networkType, }: GetAssetNetworkParams<T>) => NetworkTypeToNetwork<T>;
|
19
19
|
/**
|
20
|
-
* Returns the asset's details on the given network
|
20
|
+
* Returns the asset's details on the given network along with the asset itself
|
21
21
|
* eg. getAssetWithNetwork({ asset, chainId: 1, networkType: 'ethereum' }) will return the asset's details on Ethereum mainnet and the asset itself
|
22
|
-
*/
|
22
|
+
*/
|
23
23
|
export declare const getAssetWithNetwork: <T extends NetworkTypes>({ asset, chainId, networkType, }: GetAssetNetworkParams<T>) => AssetEth | AssetFuel | undefined;
|
24
24
|
/**
|
25
25
|
* Returns the asset's details on Ethereum
|
26
|
-
*/
|
26
|
+
*/
|
27
27
|
export declare const getAssetEth: (asset: Asset, chainId?: number) => AssetEth | undefined;
|
28
28
|
/**
|
29
29
|
* Returns the asset's details on Fuel
|
30
|
-
*/
|
30
|
+
*/
|
31
31
|
export declare const getAssetFuel: (asset: Asset, chainId?: number) => AssetFuel | undefined;
|
32
32
|
export {};
|
33
33
|
//# sourceMappingURL=network.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../src/assets/utils/network.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEzF,KAAK,OAAO,GAAG,eAAe,GAAG,WAAW,CAAC;AAC7C,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AACzE,KAAK,oBAAoB,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,GAC/C,eAAe,GACf,CAAC,SAAS,MAAM,GACd,WAAW,GACX,OAAO,CAAC;AAEd;;GAEG;AACH,eAAO,MAAM,iBAAiB,gBAAiB,YAAY,KAAG,MAAM,GAAG,SAStE,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,YAAY,GAAG,SAAS,IAAI;IACtE,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,YAAY,GAAG,SAAS,oCAI/D,qBAAqB,CAAC,CAAC,CAAC,KAAG,oBAAoB,CAAC,CAAC,CAMnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,YAAY,oCAIvD,qBAAqB,CAAC,CAAC,CAAC,KAAG,QAAQ,GAAG,SAAS,GAAG,SAwBpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,UAAW,KAAK,YAAY,MAAM,KAAG,QAAQ,GAAG,SAKxD,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,KAAK,YAAY,MAAM,KAAG,SAAS,GAAG,SAKzD,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resolveIconPaths.d.ts","sourceRoot":"","sources":["../../../src/assets/utils/resolveIconPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAa;;;;;IAKvE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../src/assets/utils/url.ts"],"names":[],"mappings":"AAIA,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAQpF"}
|
package/dist/configs.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* Devnet network URL
|
3
3
|
*/
|
4
4
|
export declare const DEVNET_NETWORK_URL = "https://devnet.fuel.network/v1/graphql";
|
5
5
|
/**
|
6
|
-
*
|
6
|
+
* Testnet network URL
|
7
7
|
*/
|
8
8
|
export declare const TESTNET_NETWORK_URL = "https://testnet.fuel.network/v1/graphql";
|
9
9
|
//# sourceMappingURL=configs.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n *
|
1
|
+
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n * Devnet network URL\n */\nexport const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\n\n/**\n * Testnet network URL\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":["/**\n *
|
1
|
+
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n * Devnet network URL\n */\nexport const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\n\n/**\n * Testnet network URL\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":["/**\n *
|
1
|
+
{"version":3,"sources":["../src/configs.ts"],"sourcesContent":["/**\n * Devnet network URL\n */\nexport const DEVNET_NETWORK_URL = 'https://devnet.fuel.network/v1/graphql';\n\n/**\n * Testnet network URL\n */\nexport const TESTNET_NETWORK_URL = 'https://testnet.fuel.network/v1/graphql';\n"],"mappings":";AAGO,IAAM,qBAAqB;AAK3B,IAAM,sBAAsB;","names":[]}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { EventEmitter } from 'events';
|
2
|
+
import type { Asset } from '../assets/types';
|
2
3
|
import type { TransactionRequestLike } from '../providers';
|
3
|
-
import type { Asset } from '../providers/assets/types';
|
4
4
|
import { FuelConnectorEventTypes } from './types';
|
5
|
-
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version, SelectNetworkArguments } from './types';
|
5
|
+
import type { FuelConnectorEvents, ConnectorMetadata, FuelABI, Network, FuelEventArg, Version, SelectNetworkArguments, FuelConnectorSendTxParams } from './types';
|
6
6
|
interface Connector {
|
7
7
|
ping(): Promise<boolean>;
|
8
8
|
version(): Promise<Version>;
|
@@ -12,7 +12,7 @@ interface Connector {
|
|
12
12
|
disconnect(): Promise<boolean>;
|
13
13
|
signMessage(address: string, message: string): Promise<string>;
|
14
14
|
signTransaction(address: string, transaction: TransactionRequestLike): Promise<string>;
|
15
|
-
sendTransaction(address: string, transaction: TransactionRequestLike): Promise<string>;
|
15
|
+
sendTransaction(address: string, transaction: TransactionRequestLike, params?: FuelConnectorSendTxParams): Promise<string>;
|
16
16
|
currentAccount(): Promise<string | null>;
|
17
17
|
addAssets(assets: Array<Asset>): Promise<boolean>;
|
18
18
|
addAsset(asset: Asset): Promise<boolean>;
|
@@ -114,10 +114,10 @@ export declare abstract class FuelConnector extends EventEmitter implements Conn
|
|
114
114
|
*
|
115
115
|
* @param address - The address to sign the transaction
|
116
116
|
* @param transaction - The transaction to send
|
117
|
-
*
|
117
|
+
* @param params - Optional parameters to send the transaction
|
118
118
|
* @returns The transaction id
|
119
119
|
*/
|
120
|
-
sendTransaction(_address: string, _transaction: TransactionRequestLike): Promise<string>;
|
120
|
+
sendTransaction(_address: string, _transaction: TransactionRequestLike, _params?: FuelConnectorSendTxParams): Promise<string>;
|
121
121
|
/**
|
122
122
|
* Should return the current account selected inside the connector, if the account
|
123
123
|
* 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,QA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E,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,4 +1,4 @@
|
|
1
|
-
import type {
|
1
|
+
import type { Address } from '@fuel-ts/address';
|
2
2
|
import { Account } from '../account';
|
3
3
|
import { Provider } from '../providers';
|
4
4
|
import type { StorageAbstract } from '../wallet-manager';
|
@@ -23,7 +23,7 @@ interface FuelSdk {
|
|
23
23
|
selectConnector(connectorName: string, options: FuelConnectorSelectOptions): Promise<boolean>;
|
24
24
|
currentConnector(): FuelConnector | null | undefined;
|
25
25
|
hasWallet(): Promise<boolean>;
|
26
|
-
getWallet(address: string |
|
26
|
+
getWallet(address: string | Address, providerOrNetwork?: Provider | Network): Promise<Account>;
|
27
27
|
unsubscribe(): void;
|
28
28
|
clean(): Promise<void>;
|
29
29
|
destroy(): Promise<void>;
|
@@ -130,7 +130,7 @@ export declare class Fuel extends FuelConnector implements FuelSdk {
|
|
130
130
|
* Return a Fuel Wallet Locked instance with extends features to work with
|
131
131
|
* connectors.
|
132
132
|
*/
|
133
|
-
getWallet(address: string |
|
133
|
+
getWallet(address: string | Address, providerOrNetwork?: Provider | Network): Promise<Account>;
|
134
134
|
/**
|
135
135
|
* Remove all open listeners this is useful when you want to
|
136
136
|
* remove the Fuel instance and avoid memory leaks.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fuel.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"fuel.d.ts","sourceRoot":"","sources":["../../src/connectors/fuel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAOjD,OAAO,KAAK,EAAE,OAAO,EAA2B,YAAY,EAAE,MAAM,SAAS,CAAC;AAe9E,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,UAAU,OAAO;IAEf,UAAU,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;IAGhD,YAAY,EAAE,CAAC,SAAS,EAAE,aAAa,GAAG,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAG1E,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAGjC,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAG9F,gBAAgB,IAAI,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IAGrD,SAAS,IAAI,OAAO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KAAG,aAAa,GAAG,IAAI,CAI3D;IAEb;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAKjD;;OAEG;IACG,eAAe,CACnB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,0BAER,GACA,OAAO,CAAC,OAAO,CAAC;IA0BnB;;OAEG;IACH,gBAAgB,IAAI,aAAa,GAAG,IAAI,GAAG,SAAS;IAIpD;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,OAAO,CAAC;IAoBhC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAInC;;;;;OAKG;IACG,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAO5E;;;OAGG;YACW,YAAY;IAqB1B;;;OAGG;IACG,SAAS,CACb,OAAO,EAAE,MAAM,GAAG,OAAO,EACzB,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,GACrC,OAAO,CAAC,OAAO,CAAC;IAKnB;;;OAGG;IACH,WAAW,IAAI,IAAI;IAQnB;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAI/B"}
|
@@ -1,5 +1,6 @@
|
|
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
4
|
/**
|
4
5
|
* @name Version
|
5
6
|
*/
|
@@ -38,4 +39,11 @@ export type SelectNetworkArguments = RequireAtLeastOne<Network, 'chainId' | 'url
|
|
38
39
|
* Read more at: https://docs.fuel.network/docs/specs/abi/json-abi-format/
|
39
40
|
*/
|
40
41
|
export type FuelABI = JsonAbi;
|
42
|
+
/**
|
43
|
+
* Params for the sendTransaction method (for connectors).
|
44
|
+
*/
|
45
|
+
export type FuelConnectorSendTxParams = {
|
46
|
+
skipCustomFee?: boolean;
|
47
|
+
onBeforeSend?: (txRequest: TransactionRequest) => Promise<TransactionRequest>;
|
48
|
+
};
|
41
49
|
//# 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;;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
|
+
{"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;AAE1D;;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;AAE9B;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,kBAAkB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;CAC/E,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Asset } from '../../
|
1
|
+
import type { Asset } from '../../assets/types';
|
2
2
|
import type { FuelConnector } from '../fuel-connector';
|
3
3
|
import type { FuelConnectorEventTypes } from './connector-types';
|
4
4
|
import type { Network } from './data-type';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/connectors/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,IAAI,OAAO,CACvE,uBAAuB,EACvB;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CACZ,CAAC,MAAM,C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a,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,cAAc,GACd,WAAW,CAAC;AAEhB,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hdwallet.d.ts","sourceRoot":"","sources":["../../src/hdwallet/hdwallet.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"hdwallet.d.ts","sourceRoot":"","sources":["../../src/hdwallet/hdwallet.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAoDhD,KAAK,cAAc,GAAG;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,cAAM,QAAQ;IACZ,KAAK,EAAE,MAAM,CAAK;IAClB,KAAK,EAAE,MAAM,CAAK;IAClB,WAAW,EAAE,MAAM,CAAyB;IAC5C,iBAAiB,EAAE,MAAM,CAAyB;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IAErB;;;;OAIG;gBACS,MAAM,EAAE,cAAc;IAwBlC,IAAI,WAAW,WAEd;IAED;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM;IAqDzB;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE,MAAM;IAMvB;;;;;;OAMG;IACH,aAAa,CAAC,QAAQ,GAAE,OAAe,EAAE,OAAO,GAAE,OAAe,GAAG,MAAM;IAqB1E;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM;IAS5B,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,MAAM;CAmD3C;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
import './test-utils.js';
|
2
2
|
import './configs.js';
|
3
|
+
export * from './assets';
|
3
4
|
export * from './account';
|
5
|
+
export * from './types';
|
4
6
|
export * from './wallet';
|
5
7
|
export * from './hdwallet';
|
6
8
|
export * from './mnemonic';
|
@@ -11,4 +13,5 @@ export * from './predicate';
|
|
11
13
|
export * from './providers';
|
12
14
|
export * from './connectors';
|
13
15
|
export { deployScriptOrPredicate } from './utils/deployScriptOrPredicate';
|
16
|
+
export { getBytecodeId, getLegacyBlobId, getBytecodeConfigurableOffset, getBytecodeDataOffset, } from './utils/predicate-script-loader-instructions';
|
14
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EACL,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,qBAAqB,GACtB,MAAM,8CAA8C,CAAC"}
|