@fuel-ts/account 0.98.0 → 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.
Files changed (79) hide show
  1. package/dist/account.d.ts +4 -4
  2. package/dist/account.d.ts.map +1 -1
  3. package/dist/assets/asset-api.d.ts +69 -0
  4. package/dist/assets/asset-api.d.ts.map +1 -0
  5. package/dist/assets/assets.d.ts.map +1 -0
  6. package/dist/{providers/assets → assets}/index.d.ts +1 -0
  7. package/dist/assets/index.d.ts.map +1 -0
  8. package/dist/assets/types.d.ts.map +1 -0
  9. package/dist/assets/utils/fuelAssetsBaseUrl.d.ts +2 -0
  10. package/dist/assets/utils/fuelAssetsBaseUrl.d.ts.map +1 -0
  11. package/dist/assets/utils/index.d.ts.map +1 -0
  12. package/dist/{providers/assets → assets}/utils/network.d.ts +6 -6
  13. package/dist/assets/utils/network.d.ts.map +1 -0
  14. package/dist/assets/utils/resolveIconPaths.d.ts.map +1 -0
  15. package/dist/assets/utils/url.d.ts.map +1 -0
  16. package/dist/configs.d.ts +2 -2
  17. package/dist/configs.global.js.map +1 -1
  18. package/dist/configs.js.map +1 -1
  19. package/dist/configs.mjs.map +1 -1
  20. package/dist/connectors/fuel-connector.d.ts +1 -1
  21. package/dist/connectors/fuel-connector.d.ts.map +1 -1
  22. package/dist/connectors/types/events.d.ts +1 -1
  23. package/dist/connectors/types/events.d.ts.map +1 -1
  24. package/dist/index.d.ts +2 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.global.js +14564 -14439
  27. package/dist/index.global.js.map +1 -1
  28. package/dist/index.js +6423 -6303
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +6461 -6347
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/providers/__generated__/operations.d.ts +28 -6
  33. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  34. package/dist/providers/fuel-graphql-subscriber.d.ts +1 -0
  35. package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
  36. package/dist/providers/index.d.ts +0 -1
  37. package/dist/providers/index.d.ts.map +1 -1
  38. package/dist/providers/provider.d.ts +43 -13
  39. package/dist/providers/provider.d.ts.map +1 -1
  40. package/dist/providers/transaction-request/transaction-request.d.ts +2 -2
  41. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  42. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  43. package/dist/providers/utils/handle-gql-error-message.d.ts +5 -1
  44. package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
  45. package/dist/test-utils/wallet-config.d.ts +2 -1
  46. package/dist/test-utils/wallet-config.d.ts.map +1 -1
  47. package/dist/test-utils.global.js +205 -740
  48. package/dist/test-utils.global.js.map +1 -1
  49. package/dist/test-utils.js +270 -822
  50. package/dist/test-utils.js.map +1 -1
  51. package/dist/test-utils.mjs +195 -747
  52. package/dist/test-utils.mjs.map +1 -1
  53. package/dist/utils/deployScriptOrPredicate.d.ts.map +1 -1
  54. package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
  55. package/dist/utils/predicate-script-loader-instructions.d.ts +36 -1
  56. package/dist/utils/predicate-script-loader-instructions.d.ts.map +1 -1
  57. package/dist/wallet/keystore-wallet.d.ts +2 -2
  58. package/dist/wallet/keystore-wallet.d.ts.map +1 -1
  59. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts +3 -2
  60. package/dist/wallet-manager/vaults/mnemonic-vault.d.ts.map +1 -1
  61. package/dist/wallet-manager/vaults/privatekey-vault.d.ts +2 -1
  62. package/dist/wallet-manager/vaults/privatekey-vault.d.ts.map +1 -1
  63. package/dist/wallet-manager/wallet-manager.d.ts +3 -3
  64. package/dist/wallet-manager/wallet-manager.d.ts.map +1 -1
  65. package/package.json +15 -16
  66. package/dist/providers/assets/assets.d.ts.map +0 -1
  67. package/dist/providers/assets/index.d.ts.map +0 -1
  68. package/dist/providers/assets/types.d.ts.map +0 -1
  69. package/dist/providers/assets/utils/fuelAssetsBaseUrl.d.ts +0 -2
  70. package/dist/providers/assets/utils/fuelAssetsBaseUrl.d.ts.map +0 -1
  71. package/dist/providers/assets/utils/index.d.ts.map +0 -1
  72. package/dist/providers/assets/utils/network.d.ts.map +0 -1
  73. package/dist/providers/assets/utils/resolveIconPaths.d.ts.map +0 -1
  74. package/dist/providers/assets/utils/url.d.ts.map +0 -1
  75. /package/dist/{providers/assets → assets}/assets.d.ts +0 -0
  76. /package/dist/{providers/assets → assets}/types.d.ts +0 -0
  77. /package/dist/{providers/assets → assets}/utils/index.d.ts +0 -0
  78. /package/dist/{providers/assets → assets}/utils/resolveIconPaths.d.ts +0 -0
  79. /package/dist/{providers/assets → assets}/utils/url.d.ts +0 -0
@@ -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'];
@@ -3560,6 +3580,7 @@ export declare const GetLatestGasPriceDocument: DocumentNode;
3560
3580
  export declare const EstimateGasPriceDocument: DocumentNode;
3561
3581
  export declare const GetBalancesDocument: DocumentNode;
3562
3582
  export declare const GetMessagesDocument: DocumentNode;
3583
+ export declare const DaCompressedBlockDocument: DocumentNode;
3563
3584
  export declare const GetMessageProofDocument: DocumentNode;
3564
3585
  export declare const GetMessageStatusDocument: DocumentNode;
3565
3586
  export declare const GetRelayedTransactionStatusDocument: DocumentNode;
@@ -3597,6 +3618,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
3597
3618
  estimateGasPrice(variables: GqlEstimateGasPriceQueryVariables, options?: C): Promise<GqlEstimateGasPriceQuery>;
3598
3619
  getBalances(variables: GqlGetBalancesQueryVariables, options?: C): Promise<GqlGetBalancesQuery>;
3599
3620
  getMessages(variables: GqlGetMessagesQueryVariables, options?: C): Promise<GqlGetMessagesQuery>;
3621
+ daCompressedBlock(variables: GqlDaCompressedBlockQueryVariables, options?: C): Promise<GqlDaCompressedBlockQuery>;
3600
3622
  getMessageProof(variables: GqlGetMessageProofQueryVariables, options?: C): Promise<GqlGetMessageProofQuery>;
3601
3623
  getMessageStatus(variables: GqlGetMessageStatusQueryVariables, options?: C): Promise<GqlGetMessageStatusQuery>;
3602
3624
  getRelayedTransactionStatus(variables: GqlGetRelayedTransactionStatusQueryVariables, options?: C): Promise<GqlGetRelayedTransactionStatusQuery>;