@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
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mnemonic.d.ts","sourceRoot":"","sources":["../../src/mnemonic/mnemonic.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"mnemonic.d.ts","sourceRoot":"","sources":["../../src/mnemonic/mnemonic.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAW9C,eAAO,MAAM,cAAc,UAAuB,CAAC;AA8BnD,cAAM,QAAQ;IACZ,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;;OAIG;gBACS,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW;IAM7C;;;;OAIG;IACH,iBAAiB,CAAC,MAAM,EAAE,cAAc;IAIxC;;;;OAIG;IACH,iBAAiB,CAAC,OAAO,EAAE,SAAS;IAIpC;;;;;OAKG;IACH,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW,GAAG,MAAM;IAQ3F;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,GAAE,KAAK,CAAC,MAAM,CAAW,GAAG,MAAM;IAWvF;;;;OAIG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,GAAE,SAAc;IASxE;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,GAAE,SAAc;IAK9E;;;;OAIG;IACH,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM;IAqBrC,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAqB5C;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAanD;;;;;;OAMG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,OAAe,GAAG,MAAM;IAuBxE;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAE,MAAW,EAAE,YAAY,GAAE,SAAc;CAMhE;AAED,eAAe,QAAQ,CAAC"}
|
package/dist/mnemonic/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BytesLike } from '@fuel-ts/
|
1
|
+
import type { BytesLike } from '@fuel-ts/utils';
|
2
2
|
export type MnemonicPhrase = string | Array<string>;
|
3
3
|
export declare function getWords(mnemonic: MnemonicPhrase): Array<string>;
|
4
4
|
export declare function getPhrase(mnemonic: MnemonicPhrase): string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mnemonic/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/mnemonic/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAYpD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAKhE;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAK1D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CA+B3E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAkC/F"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { JsonAbi, InputValue } from '@fuel-ts/abi-coder';
|
2
2
|
import { Interface } from '@fuel-ts/abi-coder';
|
3
|
-
import type { BytesLike } from '@fuel-ts/
|
3
|
+
import type { BytesLike } from '@fuel-ts/utils';
|
4
4
|
import type { FakeResources } from '../account';
|
5
5
|
import { Account } from '../account';
|
6
6
|
import type { CallResult, CoinQuantityLike, ExcludeResourcesOption, Provider, Resource, TransactionRequest, TransactionRequestLike, TransactionResponse } from '../providers';
|
@@ -26,6 +26,8 @@ export declare class Predicate<TData extends InputValue[] = InputValue[], TConfi
|
|
26
26
|
bytes: Uint8Array;
|
27
27
|
predicateData: TData;
|
28
28
|
interface: Interface;
|
29
|
+
initialBytecode: Uint8Array;
|
30
|
+
configurableConstants: TConfigurables | undefined;
|
29
31
|
/**
|
30
32
|
* Creates an instance of the Predicate class.
|
31
33
|
*
|
@@ -58,6 +60,12 @@ export declare class Predicate<TData extends InputValue[] = InputValue[], TConfi
|
|
58
60
|
*/
|
59
61
|
simulateTransaction(transactionRequestLike: TransactionRequestLike): Promise<CallResult>;
|
60
62
|
private getPredicateData;
|
63
|
+
/**
|
64
|
+
* Creates a new Predicate instance from an existing Predicate instance.
|
65
|
+
* @param overrides - The data and configurable constants to override.
|
66
|
+
* @returns A new Predicate instance with the same bytecode, ABI and provider but with the ability to set the data and configurable constants.
|
67
|
+
*/
|
68
|
+
toNewInstance(overrides?: Pick<PredicateParams<TData, TConfigurables>, 'data' | 'configurableConstants'>): Predicate<TData, TConfigurables>;
|
61
69
|
/**
|
62
70
|
* Processes the predicate data and returns the altered bytecode and interface.
|
63
71
|
*
|
@@ -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,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
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,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAOrC,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,EACzC,cAAc,SAAS;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,IAC1F;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,qBAAqB,CAAC,EAAE,cAAc,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,qBAAa,SAAS,CACpB,KAAK,SAAS,UAAU,EAAE,GAAG,UAAU,EAAE,EACzC,cAAc,SAAS;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAC5F,SAAQ,OAAO;IACf,KAAK,EAAE,UAAU,CAAC;IAClB,aAAa,EAAE,KAAK,CAA0B;IAC9C,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,UAAU,CAAC;IAC5B,qBAAqB,EAAE,cAAc,GAAG,SAAS,CAAC;IAClD;;;;;;;;OAQG;gBACS,EACV,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,qBAAqB,GACtB,EAAE,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC;IAkBzC;;;;;OAKG;IACH,gCAAgC,CAAC,CAAC,SAAS,kBAAkB,EAC3D,sBAAsB,EAAE,sBAAsB;IAwBhD;;;;;OAKG;IACM,eAAe,CACtB,sBAAsB,EAAE,sBAAsB,GAC7C,OAAO,CAAC,mBAAmB,CAAC;IAM/B;;;;;OAKG;IACM,mBAAmB,CAC1B,sBAAsB,EAAE,sBAAsB,GAC7C,OAAO,CAAC,UAAU,CAAC;IAKtB,OAAO,CAAC,gBAAgB;IASxB;;;;OAIG;IACH,aAAa,CACX,SAAS,GAAE,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAM;IAWhG;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA6BnC;;;;;;OAMG;IACY,mBAAmB,CAChC,UAAU,EAAE,gBAAgB,EAAE,CAAC,8BAA8B,EAC7D,WAAW,CAAC,EAAE,sBAAsB,GACnC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAatB;;;;;OAKG;IACM,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IAQvE;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAuCvC;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;IAiCtC;;;;;;;;OAQG;IACG,MAAM,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO;;;;CAcxC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getPredicateRoot.d.ts","sourceRoot":"","sources":["../../../src/predicate/utils/getPredicateRoot.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getPredicateRoot.d.ts","sourceRoot":"","sources":["../../../src/predicate/utils/getPredicateRoot.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,aAAc,SAAS,KAAG,MAQtD,CAAC"}
|
@@ -293,6 +293,9 @@ export type GqlContractParameters = {
|
|
293
293
|
export declare enum GqlContractParametersVersion {
|
294
294
|
V1 = "V1"
|
295
295
|
}
|
296
|
+
export type GqlDaCompressedBlock = {
|
297
|
+
bytes: Scalars['HexString']['output'];
|
298
|
+
};
|
296
299
|
export type GqlDependentCost = GqlHeavyOperation | GqlLightOperation;
|
297
300
|
export type GqlDryRunFailureStatus = {
|
298
301
|
programState?: Maybe<GqlProgramState>;
|
@@ -691,9 +694,12 @@ export type GqlMutationSubmitArgs = {
|
|
691
694
|
};
|
692
695
|
export type GqlNodeInfo = {
|
693
696
|
maxDepth: Scalars['U64']['output'];
|
697
|
+
maxGas: Scalars['U64']['output'];
|
698
|
+
maxSize: Scalars['U64']['output'];
|
694
699
|
maxTx: Scalars['U64']['output'];
|
695
700
|
nodeVersion: Scalars['String']['output'];
|
696
701
|
peers: Array<GqlPeerInfo>;
|
702
|
+
txPoolStats: GqlTxPoolStats;
|
697
703
|
utxoValidation: Scalars['Boolean']['output'];
|
698
704
|
vmBacktrace: Scalars['Boolean']['output'];
|
699
705
|
};
|
@@ -783,6 +789,7 @@ export type GqlQuery = {
|
|
783
789
|
contract?: Maybe<GqlContract>;
|
784
790
|
contractBalance: GqlContractBalance;
|
785
791
|
contractBalances: GqlContractBalanceConnection;
|
792
|
+
daCompressedBlock?: Maybe<GqlDaCompressedBlock>;
|
786
793
|
estimateGasPrice: GqlEstimateGasPrice;
|
787
794
|
/** Estimate the predicate gas for the provided transaction */
|
788
795
|
estimatePredicates: GqlTransaction;
|
@@ -861,6 +868,9 @@ export type GqlQueryContractBalancesArgs = {
|
|
861
868
|
first?: InputMaybe<Scalars['Int']['input']>;
|
862
869
|
last?: InputMaybe<Scalars['Int']['input']>;
|
863
870
|
};
|
871
|
+
export type GqlQueryDaCompressedBlockArgs = {
|
872
|
+
height: Scalars['U32']['input'];
|
873
|
+
};
|
864
874
|
export type GqlQueryEstimateGasPriceArgs = {
|
865
875
|
blockHorizon?: InputMaybe<Scalars['U32']['input']>;
|
866
876
|
};
|
@@ -1127,6 +1137,14 @@ export type GqlTxParameters = {
|
|
1127
1137
|
export declare enum GqlTxParametersVersion {
|
1128
1138
|
V1 = "V1"
|
1129
1139
|
}
|
1140
|
+
export type GqlTxPoolStats = {
|
1141
|
+
/** The total gas of the transactions in the pool */
|
1142
|
+
totalGas: Scalars['U64']['output'];
|
1143
|
+
/** The total size of the transactions in the pool */
|
1144
|
+
totalSize: Scalars['U64']['output'];
|
1145
|
+
/** The number of transactions in the pool */
|
1146
|
+
txCount: Scalars['U64']['output'];
|
1147
|
+
};
|
1130
1148
|
export type GqlUpgradePurpose = GqlConsensusParametersPurpose | GqlStateTransitionPurpose;
|
1131
1149
|
export type GqlUploadedBytecode = {
|
1132
1150
|
/** Combined bytecode of all uploaded subsections. */
|
@@ -2940,12 +2958,6 @@ export type GqlGetBalancesQueryVariables = Exact<{
|
|
2940
2958
|
}>;
|
2941
2959
|
export type GqlGetBalancesQuery = {
|
2942
2960
|
balances: {
|
2943
|
-
pageInfo: {
|
2944
|
-
hasPreviousPage: boolean;
|
2945
|
-
hasNextPage: boolean;
|
2946
|
-
startCursor?: string | null;
|
2947
|
-
endCursor?: string | null;
|
2948
|
-
};
|
2949
2961
|
edges: Array<{
|
2950
2962
|
node: {
|
2951
2963
|
assetId: string;
|
@@ -2981,6 +2993,14 @@ export type GqlGetMessagesQuery = {
|
|
2981
2993
|
}>;
|
2982
2994
|
};
|
2983
2995
|
};
|
2996
|
+
export type GqlDaCompressedBlockQueryVariables = Exact<{
|
2997
|
+
height: Scalars['U32']['input'];
|
2998
|
+
}>;
|
2999
|
+
export type GqlDaCompressedBlockQuery = {
|
3000
|
+
daCompressedBlock?: {
|
3001
|
+
bytes: string;
|
3002
|
+
} | null;
|
3003
|
+
};
|
2984
3004
|
export type GqlGetMessageProofQueryVariables = Exact<{
|
2985
3005
|
transactionId: Scalars['TransactionId']['input'];
|
2986
3006
|
nonce: Scalars['Nonce']['input'];
|
@@ -3165,173 +3185,6 @@ export type GqlGetConsensusParametersVersionQuery = {
|
|
3165
3185
|
};
|
3166
3186
|
};
|
3167
3187
|
};
|
3168
|
-
export type GqlSubmitAndAwaitSubscriptionVariables = Exact<{
|
3169
|
-
encodedTransaction: Scalars['HexString']['input'];
|
3170
|
-
}>;
|
3171
|
-
export type GqlSubmitAndAwaitSubscription = {
|
3172
|
-
submitAndAwait: {
|
3173
|
-
totalGas: string;
|
3174
|
-
totalFee: string;
|
3175
|
-
time: string;
|
3176
|
-
reason: string;
|
3177
|
-
type: 'FailureStatus';
|
3178
|
-
transaction: {
|
3179
|
-
receiptsRoot?: string | null;
|
3180
|
-
inputs?: Array<{
|
3181
|
-
txPointer: string;
|
3182
|
-
type: 'InputCoin';
|
3183
|
-
} | {
|
3184
|
-
txPointer: string;
|
3185
|
-
type: 'InputContract';
|
3186
|
-
} | {
|
3187
|
-
type: 'InputMessage';
|
3188
|
-
}> | null;
|
3189
|
-
outputs: Array<{
|
3190
|
-
to: string;
|
3191
|
-
amount: string;
|
3192
|
-
assetId: string;
|
3193
|
-
type: 'ChangeOutput';
|
3194
|
-
} | {
|
3195
|
-
to: string;
|
3196
|
-
amount: string;
|
3197
|
-
assetId: string;
|
3198
|
-
type: 'CoinOutput';
|
3199
|
-
} | {
|
3200
|
-
contract: string;
|
3201
|
-
stateRoot: string;
|
3202
|
-
type: 'ContractCreated';
|
3203
|
-
} | {
|
3204
|
-
inputIndex: string;
|
3205
|
-
balanceRoot: string;
|
3206
|
-
stateRoot: string;
|
3207
|
-
type: 'ContractOutput';
|
3208
|
-
} | {
|
3209
|
-
to: string;
|
3210
|
-
amount: string;
|
3211
|
-
assetId: string;
|
3212
|
-
type: 'VariableOutput';
|
3213
|
-
}>;
|
3214
|
-
};
|
3215
|
-
block: {
|
3216
|
-
id: string;
|
3217
|
-
};
|
3218
|
-
receipts: Array<{
|
3219
|
-
id?: string | null;
|
3220
|
-
pc?: string | null;
|
3221
|
-
is?: string | null;
|
3222
|
-
to?: string | null;
|
3223
|
-
toAddress?: string | null;
|
3224
|
-
amount?: string | null;
|
3225
|
-
assetId?: string | null;
|
3226
|
-
gas?: string | null;
|
3227
|
-
param1?: string | null;
|
3228
|
-
param2?: string | null;
|
3229
|
-
val?: string | null;
|
3230
|
-
ptr?: string | null;
|
3231
|
-
digest?: string | null;
|
3232
|
-
reason?: string | null;
|
3233
|
-
ra?: string | null;
|
3234
|
-
rb?: string | null;
|
3235
|
-
rc?: string | null;
|
3236
|
-
rd?: string | null;
|
3237
|
-
len?: string | null;
|
3238
|
-
receiptType: GqlReceiptType;
|
3239
|
-
result?: string | null;
|
3240
|
-
gasUsed?: string | null;
|
3241
|
-
data?: string | null;
|
3242
|
-
sender?: string | null;
|
3243
|
-
recipient?: string | null;
|
3244
|
-
nonce?: string | null;
|
3245
|
-
contractId?: string | null;
|
3246
|
-
subId?: string | null;
|
3247
|
-
}>;
|
3248
|
-
} | {
|
3249
|
-
reason: string;
|
3250
|
-
type: 'SqueezedOutStatus';
|
3251
|
-
} | {
|
3252
|
-
time: string;
|
3253
|
-
type: 'SubmittedStatus';
|
3254
|
-
} | {
|
3255
|
-
time: string;
|
3256
|
-
totalGas: string;
|
3257
|
-
totalFee: string;
|
3258
|
-
type: 'SuccessStatus';
|
3259
|
-
transaction: {
|
3260
|
-
receiptsRoot?: string | null;
|
3261
|
-
inputs?: Array<{
|
3262
|
-
txPointer: string;
|
3263
|
-
type: 'InputCoin';
|
3264
|
-
} | {
|
3265
|
-
txPointer: string;
|
3266
|
-
type: 'InputContract';
|
3267
|
-
} | {
|
3268
|
-
type: 'InputMessage';
|
3269
|
-
}> | null;
|
3270
|
-
outputs: Array<{
|
3271
|
-
to: string;
|
3272
|
-
amount: string;
|
3273
|
-
assetId: string;
|
3274
|
-
type: 'ChangeOutput';
|
3275
|
-
} | {
|
3276
|
-
to: string;
|
3277
|
-
amount: string;
|
3278
|
-
assetId: string;
|
3279
|
-
type: 'CoinOutput';
|
3280
|
-
} | {
|
3281
|
-
contract: string;
|
3282
|
-
stateRoot: string;
|
3283
|
-
type: 'ContractCreated';
|
3284
|
-
} | {
|
3285
|
-
inputIndex: string;
|
3286
|
-
balanceRoot: string;
|
3287
|
-
stateRoot: string;
|
3288
|
-
type: 'ContractOutput';
|
3289
|
-
} | {
|
3290
|
-
to: string;
|
3291
|
-
amount: string;
|
3292
|
-
assetId: string;
|
3293
|
-
type: 'VariableOutput';
|
3294
|
-
}>;
|
3295
|
-
};
|
3296
|
-
block: {
|
3297
|
-
id: string;
|
3298
|
-
};
|
3299
|
-
programState?: {
|
3300
|
-
returnType: GqlReturnType;
|
3301
|
-
data: string;
|
3302
|
-
} | null;
|
3303
|
-
receipts: Array<{
|
3304
|
-
id?: string | null;
|
3305
|
-
pc?: string | null;
|
3306
|
-
is?: string | null;
|
3307
|
-
to?: string | null;
|
3308
|
-
toAddress?: string | null;
|
3309
|
-
amount?: string | null;
|
3310
|
-
assetId?: string | null;
|
3311
|
-
gas?: string | null;
|
3312
|
-
param1?: string | null;
|
3313
|
-
param2?: string | null;
|
3314
|
-
val?: string | null;
|
3315
|
-
ptr?: string | null;
|
3316
|
-
digest?: string | null;
|
3317
|
-
reason?: string | null;
|
3318
|
-
ra?: string | null;
|
3319
|
-
rb?: string | null;
|
3320
|
-
rc?: string | null;
|
3321
|
-
rd?: string | null;
|
3322
|
-
len?: string | null;
|
3323
|
-
receiptType: GqlReceiptType;
|
3324
|
-
result?: string | null;
|
3325
|
-
gasUsed?: string | null;
|
3326
|
-
data?: string | null;
|
3327
|
-
sender?: string | null;
|
3328
|
-
recipient?: string | null;
|
3329
|
-
nonce?: string | null;
|
3330
|
-
contractId?: string | null;
|
3331
|
-
subId?: string | null;
|
3332
|
-
}>;
|
3333
|
-
};
|
3334
|
-
};
|
3335
3188
|
export type GqlSubmitAndAwaitStatusSubscriptionVariables = Exact<{
|
3336
3189
|
encodedTransaction: Scalars['HexString']['input'];
|
3337
3190
|
}>;
|
@@ -3727,6 +3580,7 @@ export declare const GetLatestGasPriceDocument: DocumentNode;
|
|
3727
3580
|
export declare const EstimateGasPriceDocument: DocumentNode;
|
3728
3581
|
export declare const GetBalancesDocument: DocumentNode;
|
3729
3582
|
export declare const GetMessagesDocument: DocumentNode;
|
3583
|
+
export declare const DaCompressedBlockDocument: DocumentNode;
|
3730
3584
|
export declare const GetMessageProofDocument: DocumentNode;
|
3731
3585
|
export declare const GetMessageStatusDocument: DocumentNode;
|
3732
3586
|
export declare const GetRelayedTransactionStatusDocument: DocumentNode;
|
@@ -3736,7 +3590,6 @@ export declare const ProduceBlocksDocument: DocumentNode;
|
|
3736
3590
|
export declare const GetMessageByNonceDocument: DocumentNode;
|
3737
3591
|
export declare const IsUserAccountDocument: DocumentNode;
|
3738
3592
|
export declare const GetConsensusParametersVersionDocument: DocumentNode;
|
3739
|
-
export declare const SubmitAndAwaitDocument: DocumentNode;
|
3740
3593
|
export declare const SubmitAndAwaitStatusDocument: DocumentNode;
|
3741
3594
|
export declare const StatusChangeDocument: DocumentNode;
|
3742
3595
|
export type Requester<C = {}> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
@@ -3765,6 +3618,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
3765
3618
|
estimateGasPrice(variables: GqlEstimateGasPriceQueryVariables, options?: C): Promise<GqlEstimateGasPriceQuery>;
|
3766
3619
|
getBalances(variables: GqlGetBalancesQueryVariables, options?: C): Promise<GqlGetBalancesQuery>;
|
3767
3620
|
getMessages(variables: GqlGetMessagesQueryVariables, options?: C): Promise<GqlGetMessagesQuery>;
|
3621
|
+
daCompressedBlock(variables: GqlDaCompressedBlockQueryVariables, options?: C): Promise<GqlDaCompressedBlockQuery>;
|
3768
3622
|
getMessageProof(variables: GqlGetMessageProofQueryVariables, options?: C): Promise<GqlGetMessageProofQuery>;
|
3769
3623
|
getMessageStatus(variables: GqlGetMessageStatusQueryVariables, options?: C): Promise<GqlGetMessageStatusQuery>;
|
3770
3624
|
getRelayedTransactionStatus(variables: GqlGetRelayedTransactionStatusQueryVariables, options?: C): Promise<GqlGetRelayedTransactionStatusQuery>;
|
@@ -3774,7 +3628,6 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
3774
3628
|
getMessageByNonce(variables: GqlGetMessageByNonceQueryVariables, options?: C): Promise<GqlGetMessageByNonceQuery>;
|
3775
3629
|
isUserAccount(variables: GqlIsUserAccountQueryVariables, options?: C): Promise<GqlIsUserAccountQuery>;
|
3776
3630
|
getConsensusParametersVersion(variables?: GqlGetConsensusParametersVersionQueryVariables, options?: C): Promise<GqlGetConsensusParametersVersionQuery>;
|
3777
|
-
submitAndAwait(variables: GqlSubmitAndAwaitSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitSubscription>;
|
3778
3631
|
submitAndAwaitStatus(variables: GqlSubmitAndAwaitStatusSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitStatusSubscription>;
|
3779
3632
|
statusChange(variables: GqlStatusChangeSubscriptionVariables, options?: C): AsyncIterable<GqlStatusChangeSubscription>;
|
3780
3633
|
};
|