@fuel-ts/account 0.100.3 → 0.100.4

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 (60) hide show
  1. package/dist/account.d.ts +71 -3
  2. package/dist/account.d.ts.map +1 -1
  3. package/dist/index.global.js +1467 -217
  4. package/dist/index.global.js.map +1 -1
  5. package/dist/index.js +2165 -1005
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +1976 -818
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/predicate/predicate.d.ts +9 -4
  10. package/dist/predicate/predicate.d.ts.map +1 -1
  11. package/dist/providers/__generated__/operations.d.ts +1183 -87
  12. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  13. package/dist/providers/assemble-tx-helpers.d.ts +39 -0
  14. package/dist/providers/assemble-tx-helpers.d.ts.map +1 -0
  15. package/dist/providers/fuel-graphql-subscriber.d.ts +28 -0
  16. package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
  17. package/dist/providers/index.d.ts +1 -0
  18. package/dist/providers/index.d.ts.map +1 -1
  19. package/dist/providers/provider.d.ts +80 -6
  20. package/dist/providers/provider.d.ts.map +1 -1
  21. package/dist/providers/resource.d.ts +4 -1
  22. package/dist/providers/resource.d.ts.map +1 -1
  23. package/dist/providers/transaction-request/helpers.d.ts +3 -3
  24. package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
  25. package/dist/providers/transaction-request/input.d.ts +2 -0
  26. package/dist/providers/transaction-request/input.d.ts.map +1 -1
  27. package/dist/providers/transaction-request/output.d.ts +6 -0
  28. package/dist/providers/transaction-request/output.d.ts.map +1 -1
  29. package/dist/providers/transaction-request/script-transaction-request.d.ts +11 -0
  30. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  31. package/dist/providers/transaction-response/transaction-response.d.ts +38 -11
  32. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  33. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +12 -1
  34. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  35. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  36. package/dist/providers/transaction-summary/status.d.ts +16 -2
  37. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  38. package/dist/providers/transaction-summary/types.d.ts +85 -4
  39. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  40. package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
  41. package/dist/providers/utils/index.d.ts +1 -0
  42. package/dist/providers/utils/index.d.ts.map +1 -1
  43. package/dist/providers/utils/parse-graphql-response.d.ts +12 -0
  44. package/dist/providers/utils/parse-graphql-response.d.ts.map +1 -0
  45. package/dist/providers/utils/serialization.d.ts +9 -0
  46. package/dist/providers/utils/serialization.d.ts.map +1 -1
  47. package/dist/test-utils/launchNode.d.ts.map +1 -1
  48. package/dist/test-utils/setup-test-provider-and-wallets.d.ts.map +1 -1
  49. package/dist/test-utils.global.js +1461 -201
  50. package/dist/test-utils.global.js.map +1 -1
  51. package/dist/test-utils.js +2046 -891
  52. package/dist/test-utils.js.map +1 -1
  53. package/dist/test-utils.mjs +1892 -731
  54. package/dist/test-utils.mjs.map +1 -1
  55. package/dist/utils/deployScriptOrPredicate.d.ts.map +1 -1
  56. package/dist/utils/split-coins-into-batches.d.ts +3 -0
  57. package/dist/utils/split-coins-into-batches.d.ts.map +1 -0
  58. package/package.json +15 -15
  59. package/dist/providers/utils/helpers.d.ts +0 -14
  60. package/dist/providers/utils/helpers.d.ts.map +0 -1
@@ -123,6 +123,15 @@ export type Scalars = {
123
123
  output: string;
124
124
  };
125
125
  };
126
+ export type GqlAccount = {
127
+ address?: InputMaybe<Scalars['Address']['input']>;
128
+ predicate?: InputMaybe<GqlPredicate>;
129
+ };
130
+ export type GqlAssembleTransactionResult = {
131
+ gasPrice: Scalars['U64']['output'];
132
+ status: GqlDryRunTransactionStatus;
133
+ transaction: GqlTransaction;
134
+ };
126
135
  export type GqlAssetInfoDetails = {
127
136
  contractId: Scalars['ContractId']['output'];
128
137
  subId: Scalars['SubId']['output'];
@@ -201,6 +210,15 @@ export type GqlChangeOutput = {
201
210
  assetId: Scalars['AssetId']['output'];
202
211
  to: Scalars['Address']['output'];
203
212
  };
213
+ export type GqlChangePolicy = {
214
+ /**
215
+ * Adds `Output::Change` to the transaction if it is not already present.
216
+ * Sending remaining assets to the provided address.
217
+ */
218
+ change?: InputMaybe<Scalars['Address']['input']>;
219
+ /** Destroys the remaining assets by the transaction for provided address. */
220
+ destroy?: InputMaybe<GqlDestroy>;
221
+ };
204
222
  export type GqlCoin = {
205
223
  amount: Scalars['U64']['output'];
206
224
  assetId: Scalars['AssetId']['output'];
@@ -311,6 +329,9 @@ export type GqlDaCompressedBlock = {
311
329
  bytes: Scalars['HexString']['output'];
312
330
  };
313
331
  export type GqlDependentCost = GqlHeavyOperation | GqlLightOperation;
332
+ export declare enum GqlDestroy {
333
+ Destroy = "DESTROY"
334
+ }
314
335
  export type GqlDryRunFailureStatus = {
315
336
  programState?: Maybe<GqlProgramState>;
316
337
  reason: Scalars['String']['output'];
@@ -318,6 +339,10 @@ export type GqlDryRunFailureStatus = {
318
339
  totalFee: Scalars['U64']['output'];
319
340
  totalGas: Scalars['U64']['output'];
320
341
  };
342
+ export type GqlDryRunStorageReads = {
343
+ storageReads: Array<GqlStorageReadReplayEvent>;
344
+ txStatuses: Array<GqlDryRunTransactionExecutionStatus>;
345
+ };
321
346
  export type GqlDryRunSuccessStatus = {
322
347
  programState?: Maybe<GqlProgramState>;
323
348
  receipts: Array<GqlReceipt>;
@@ -525,11 +550,14 @@ export type GqlHeader = {
525
550
  transactionsCount: Scalars['U16']['output'];
526
551
  /** Merkle root of transactions. */
527
552
  transactionsRoot: Scalars['Bytes32']['output'];
553
+ /** Transaction ID Commitment */
554
+ txIdCommitment?: Maybe<Scalars['Bytes32']['output']>;
528
555
  /** Version of the header */
529
556
  version: GqlHeaderVersion;
530
557
  };
531
558
  export declare enum GqlHeaderVersion {
532
- V1 = "V1"
559
+ V1 = "V1",
560
+ V2 = "V2"
533
561
  }
534
562
  export type GqlHeavyOperation = {
535
563
  base: Scalars['U64']['output'];
@@ -553,7 +581,7 @@ export type GqlInputCoin = {
553
581
  predicateGasUsed: Scalars['U64']['output'];
554
582
  txPointer: Scalars['TxPointer']['output'];
555
583
  utxoId: Scalars['UtxoId']['output'];
556
- witnessIndex: Scalars['Int']['output'];
584
+ witnessIndex: Scalars['U16']['output'];
557
585
  };
558
586
  export type GqlInputContract = {
559
587
  balanceRoot: Scalars['Bytes32']['output'];
@@ -641,7 +669,10 @@ export type GqlMutation = {
641
669
  * Runs until the next breakpoint or until the transaction completes.
642
670
  */
643
671
  continueTx: GqlRunResult;
644
- /** Execute a dry-run of multiple transactions using a fork of current state, no changes are committed. */
672
+ /**
673
+ * Execute a dry-run of multiple transactions using a fork of current state, no changes are committed.
674
+ * @deprecated This doesn't need to be a mutation. Use query of the same name instead.
675
+ */
645
676
  dryRun: Array<GqlDryRunTransactionExecutionStatus>;
646
677
  /** End debugger session. */
647
678
  endSession: Scalars['Boolean']['output'];
@@ -683,6 +714,7 @@ export type GqlMutationContinueTxArgs = {
683
714
  id: Scalars['ID']['input'];
684
715
  };
685
716
  export type GqlMutationDryRunArgs = {
717
+ blockHeight?: InputMaybe<Scalars['U32']['input']>;
686
718
  gasPrice?: InputMaybe<Scalars['U64']['input']>;
687
719
  txs: Array<Scalars['HexString']['input']>;
688
720
  utxoValidation?: InputMaybe<Scalars['Boolean']['input']>;
@@ -714,6 +746,7 @@ export type GqlMutationStartTxArgs = {
714
746
  txJson: Scalars['String']['input'];
715
747
  };
716
748
  export type GqlMutationSubmitArgs = {
749
+ estimatePredicates?: InputMaybe<Scalars['Boolean']['input']>;
717
750
  tx: Scalars['HexString']['input'];
718
751
  };
719
752
  export type GqlNodeInfo = {
@@ -772,6 +805,30 @@ export type GqlPolicies = {
772
805
  tip?: Maybe<Scalars['U64']['output']>;
773
806
  witnessLimit?: Maybe<Scalars['U64']['output']>;
774
807
  };
808
+ export type GqlPreconfirmationFailureStatus = {
809
+ reason: Scalars['String']['output'];
810
+ receipts?: Maybe<Array<GqlReceipt>>;
811
+ resolvedOutputs?: Maybe<Array<GqlResolvedOutput>>;
812
+ totalFee: Scalars['U64']['output'];
813
+ totalGas: Scalars['U64']['output'];
814
+ transaction?: Maybe<GqlTransaction>;
815
+ transactionId: Scalars['TransactionId']['output'];
816
+ txPointer: Scalars['TxPointer']['output'];
817
+ };
818
+ export type GqlPreconfirmationSuccessStatus = {
819
+ receipts?: Maybe<Array<GqlReceipt>>;
820
+ resolvedOutputs?: Maybe<Array<GqlResolvedOutput>>;
821
+ totalFee: Scalars['U64']['output'];
822
+ totalGas: Scalars['U64']['output'];
823
+ transaction?: Maybe<GqlTransaction>;
824
+ transactionId: Scalars['TransactionId']['output'];
825
+ txPointer: Scalars['TxPointer']['output'];
826
+ };
827
+ export type GqlPredicate = {
828
+ predicate: Scalars['HexString']['input'];
829
+ predicateAddress: Scalars['Address']['input'];
830
+ predicateData: Scalars['HexString']['input'];
831
+ };
775
832
  export type GqlPredicateParameters = {
776
833
  maxGasPerPredicate: Scalars['U64']['output'];
777
834
  maxMessageDataLength: Scalars['U64']['output'];
@@ -787,6 +844,31 @@ export type GqlProgramState = {
787
844
  returnType: GqlReturnType;
788
845
  };
789
846
  export type GqlQuery = {
847
+ /**
848
+ * Assembles the transaction based on the provided requirements.
849
+ * The return transaction contains:
850
+ * - Input coins to cover `required_balances`
851
+ * - Input coins to cover the fee of the transaction based on the gas price from `block_horizon`
852
+ * - `Change` or `Destroy` outputs for all assets from the inputs
853
+ * - `Variable` outputs in the case they are required during the execution
854
+ * - `Contract` inputs and outputs in the case they are required during the execution
855
+ * - Reserved witness slots for signed coins filled with `64` zeroes
856
+ * - Set script gas limit(unless `script` is empty)
857
+ * - Estimated predicates, if `estimate_predicates == true`
858
+ *
859
+ * Returns an error if:
860
+ * - The number of required balances exceeds the maximum number of inputs allowed.
861
+ * - The fee address index is out of bounds.
862
+ * - The same asset has multiple change policies(either the receiver of
863
+ * the change is different, or one of the policies states about the destruction
864
+ * of the token while the other does not). The `Change` output from the transaction
865
+ * also count as a `ChangePolicy`.
866
+ * - The number of excluded coin IDs exceeds the maximum number of inputs allowed.
867
+ * - Required assets have multiple entries.
868
+ * - If accounts don't have sufficient amounts to cover the transaction requirements in assets.
869
+ * - If a constructed transaction breaks the rules defined by consensus parameters.
870
+ */
871
+ assembleTx: GqlAssembleTransactionResult;
790
872
  assetDetails: GqlAssetInfoDetails;
791
873
  balance: GqlBalance;
792
874
  balances: GqlBalanceConnection;
@@ -814,8 +896,27 @@ export type GqlQuery = {
814
896
  consensusParameters: GqlConsensusParameters;
815
897
  contract?: Maybe<GqlContract>;
816
898
  contractBalance: GqlContractBalance;
899
+ /**
900
+ * Get balance values for a contract at a specific block height.
901
+ * Use the latest block height if not provided.
902
+ * Requires historical execution config to be enabled.
903
+ */
904
+ contractBalanceValues: Array<GqlContractBalance>;
817
905
  contractBalances: GqlContractBalanceConnection;
906
+ /**
907
+ * Get storage slot values for a contract at a specific block height.
908
+ * Use the latest block height if not provided.
909
+ * Requires historical execution config to be enabled.
910
+ */
911
+ contractSlotValues: Array<GqlStorageSlot>;
818
912
  daCompressedBlock?: Maybe<GqlDaCompressedBlock>;
913
+ /** Execute a dry-run of multiple transactions using a fork of current state, no changes are committed. */
914
+ dryRun: Array<GqlDryRunTransactionExecutionStatus>;
915
+ /**
916
+ * Execute a dry-run of multiple transactions using a fork of current state, no changes are committed.
917
+ * Also records accesses, so the execution can be replicated locally.
918
+ */
919
+ dryRunRecordStorageReads: GqlDryRunStorageReads;
819
920
  estimateGasPrice: GqlEstimateGasPrice;
820
921
  /** Estimate the predicate gas for the provided transaction */
821
922
  estimatePredicates: GqlTransaction;
@@ -834,10 +935,21 @@ export type GqlQuery = {
834
935
  relayedTransactionStatus?: Maybe<GqlRelayedTransactionStatus>;
835
936
  stateTransitionBytecodeByRoot: GqlStateTransitionBytecode;
836
937
  stateTransitionBytecodeByVersion?: Maybe<GqlStateTransitionBytecode>;
938
+ /** Get execution trace for an already-executed block. */
939
+ storageReadReplay: Array<GqlStorageReadReplayEvent>;
837
940
  transaction?: Maybe<GqlTransaction>;
838
941
  transactions: GqlTransactionConnection;
839
942
  transactionsByOwner: GqlTransactionConnection;
840
943
  };
944
+ export type GqlQueryAssembleTxArgs = {
945
+ blockHorizon: Scalars['U32']['input'];
946
+ estimatePredicates?: InputMaybe<Scalars['Boolean']['input']>;
947
+ excludeInput?: InputMaybe<GqlExcludeInput>;
948
+ feeAddressIndex: Scalars['U16']['input'];
949
+ requiredBalances: Array<GqlRequiredBalance>;
950
+ reserveGas?: InputMaybe<Scalars['U64']['input']>;
951
+ tx: Scalars['HexString']['input'];
952
+ };
841
953
  export type GqlQueryAssetDetailsArgs = {
842
954
  id: Scalars['AssetId']['input'];
843
955
  };
@@ -890,6 +1002,11 @@ export type GqlQueryContractBalanceArgs = {
890
1002
  asset: Scalars['AssetId']['input'];
891
1003
  contract: Scalars['ContractId']['input'];
892
1004
  };
1005
+ export type GqlQueryContractBalanceValuesArgs = {
1006
+ assets: Array<Scalars['AssetId']['input']>;
1007
+ blockHeight?: InputMaybe<Scalars['U32']['input']>;
1008
+ contractId: Scalars['ContractId']['input'];
1009
+ };
893
1010
  export type GqlQueryContractBalancesArgs = {
894
1011
  after?: InputMaybe<Scalars['String']['input']>;
895
1012
  before?: InputMaybe<Scalars['String']['input']>;
@@ -897,9 +1014,26 @@ export type GqlQueryContractBalancesArgs = {
897
1014
  first?: InputMaybe<Scalars['Int']['input']>;
898
1015
  last?: InputMaybe<Scalars['Int']['input']>;
899
1016
  };
1017
+ export type GqlQueryContractSlotValuesArgs = {
1018
+ blockHeight?: InputMaybe<Scalars['U32']['input']>;
1019
+ contractId: Scalars['ContractId']['input'];
1020
+ storageSlots: Array<Scalars['Bytes32']['input']>;
1021
+ };
900
1022
  export type GqlQueryDaCompressedBlockArgs = {
901
1023
  height: Scalars['U32']['input'];
902
1024
  };
1025
+ export type GqlQueryDryRunArgs = {
1026
+ blockHeight?: InputMaybe<Scalars['U32']['input']>;
1027
+ gasPrice?: InputMaybe<Scalars['U64']['input']>;
1028
+ txs: Array<Scalars['HexString']['input']>;
1029
+ utxoValidation?: InputMaybe<Scalars['Boolean']['input']>;
1030
+ };
1031
+ export type GqlQueryDryRunRecordStorageReadsArgs = {
1032
+ blockHeight?: InputMaybe<Scalars['U32']['input']>;
1033
+ gasPrice?: InputMaybe<Scalars['U64']['input']>;
1034
+ txs: Array<Scalars['HexString']['input']>;
1035
+ utxoValidation?: InputMaybe<Scalars['Boolean']['input']>;
1036
+ };
903
1037
  export type GqlQueryEstimateGasPriceArgs = {
904
1038
  blockHorizon?: InputMaybe<Scalars['U32']['input']>;
905
1039
  };
@@ -943,6 +1077,9 @@ export type GqlQueryStateTransitionBytecodeByRootArgs = {
943
1077
  export type GqlQueryStateTransitionBytecodeByVersionArgs = {
944
1078
  version: Scalars['Int']['input'];
945
1079
  };
1080
+ export type GqlQueryStorageReadReplayArgs = {
1081
+ height: Scalars['U32']['input'];
1082
+ };
946
1083
  export type GqlQueryTransactionArgs = {
947
1084
  id: Scalars['TransactionId']['input'];
948
1085
  };
@@ -1010,6 +1147,16 @@ export type GqlRelayedTransactionFailed = {
1010
1147
  failure: Scalars['String']['output'];
1011
1148
  };
1012
1149
  export type GqlRelayedTransactionStatus = GqlRelayedTransactionFailed;
1150
+ export type GqlRequiredBalance = {
1151
+ account: GqlAccount;
1152
+ amount: Scalars['U64']['input'];
1153
+ assetId: Scalars['AssetId']['input'];
1154
+ changePolicy: GqlChangePolicy;
1155
+ };
1156
+ export type GqlResolvedOutput = {
1157
+ output: GqlOutput;
1158
+ utxoId: Scalars['UtxoId']['output'];
1159
+ };
1013
1160
  export declare enum GqlReturnType {
1014
1161
  Return = "RETURN",
1015
1162
  ReturnData = "RETURN_DATA",
@@ -1035,15 +1182,18 @@ export declare enum GqlScriptParametersVersion {
1035
1182
  V1 = "V1"
1036
1183
  }
1037
1184
  export type GqlSpendQueryElementInput = {
1185
+ /** If true, returns available coins instead of failing when the requested amount is unavailable. */
1186
+ allowPartial?: InputMaybe<Scalars['Boolean']['input']>;
1038
1187
  /** Target amount for the query. */
1039
- amount: Scalars['U64']['input'];
1188
+ amount: Scalars['U128']['input'];
1040
1189
  /** Identifier of the asset to spend. */
1041
1190
  assetId: Scalars['AssetId']['input'];
1042
1191
  /** The maximum number of currencies for selection. */
1043
- max?: InputMaybe<Scalars['U32']['input']>;
1192
+ max?: InputMaybe<Scalars['U16']['input']>;
1044
1193
  };
1045
1194
  export type GqlSqueezedOutStatus = {
1046
1195
  reason: Scalars['String']['output'];
1196
+ transactionId: Scalars['TransactionId']['output'];
1047
1197
  };
1048
1198
  export type GqlStateTransitionBytecode = {
1049
1199
  bytecode: GqlUploadedBytecode;
@@ -1052,16 +1202,27 @@ export type GqlStateTransitionBytecode = {
1052
1202
  export type GqlStateTransitionPurpose = {
1053
1203
  root: Scalars['Bytes32']['output'];
1054
1204
  };
1205
+ export type GqlStorageReadReplayEvent = {
1206
+ column: Scalars['U32']['output'];
1207
+ key: Scalars['HexString']['output'];
1208
+ value?: Maybe<Scalars['HexString']['output']>;
1209
+ };
1210
+ export type GqlStorageSlot = {
1211
+ key: Scalars['Bytes32']['output'];
1212
+ value: Scalars['HexString']['output'];
1213
+ };
1055
1214
  export type GqlSubmittedStatus = {
1056
1215
  time: Scalars['Tai64Timestamp']['output'];
1057
1216
  };
1058
1217
  export type GqlSubscription = {
1218
+ contractStorageBalances: GqlContractBalance;
1219
+ contractStorageSlots: GqlStorageSlot;
1059
1220
  /**
1060
1221
  * Returns a stream of status updates for the given transaction id.
1061
- * If the current status is [`TransactionStatus::Success`], [`TransactionStatus::SqueezedOut`]
1062
- * or [`TransactionStatus::Failed`] the stream will return that and end immediately.
1063
- * If the current status is [`TransactionStatus::Submitted`] this will be returned
1064
- * and the stream will wait for a future update.
1222
+ * If the current status is [`TransactionStatus::Success`], [`TransactionStatus::Failed`],
1223
+ * or [`TransactionStatus::SqueezedOut`] the stream will return that and end immediately.
1224
+ * Other, intermediate statuses will also be returned but the stream will remain active
1225
+ * and wait for a future updates.
1065
1226
  *
1066
1227
  * This stream will wait forever so it's advised to use within a timeout.
1067
1228
  *
@@ -1071,22 +1232,32 @@ export type GqlSubscription = {
1071
1232
  * the latest status.
1072
1233
  */
1073
1234
  statusChange: GqlTransactionStatus;
1074
- /** Submits transaction to the `TxPool` and await either confirmation or failure. */
1235
+ /** Submits transaction to the `TxPool` and await either success or failure. */
1075
1236
  submitAndAwait: GqlTransactionStatus;
1076
1237
  /**
1077
1238
  * Submits the transaction to the `TxPool` and returns a stream of events.
1078
- * Compared to the `submitAndAwait`, the stream also contains `
1079
- * SubmittedStatus` as an intermediate state.
1239
+ * Compared to the `submitAndAwait`, the stream also contains
1240
+ * `SubmittedStatus` and potentially preconfirmation as an intermediate state.
1080
1241
  */
1081
1242
  submitAndAwaitStatus: GqlTransactionStatus;
1082
1243
  };
1244
+ export type GqlSubscriptionContractStorageBalancesArgs = {
1245
+ contractId: Scalars['ContractId']['input'];
1246
+ };
1247
+ export type GqlSubscriptionContractStorageSlotsArgs = {
1248
+ contractId: Scalars['ContractId']['input'];
1249
+ };
1083
1250
  export type GqlSubscriptionStatusChangeArgs = {
1084
1251
  id: Scalars['TransactionId']['input'];
1252
+ includePreconfirmation?: InputMaybe<Scalars['Boolean']['input']>;
1085
1253
  };
1086
1254
  export type GqlSubscriptionSubmitAndAwaitArgs = {
1255
+ estimatePredicates?: InputMaybe<Scalars['Boolean']['input']>;
1087
1256
  tx: Scalars['HexString']['input'];
1088
1257
  };
1089
1258
  export type GqlSubscriptionSubmitAndAwaitStatusArgs = {
1259
+ estimatePredicates?: InputMaybe<Scalars['Boolean']['input']>;
1260
+ includePreconfirmation?: InputMaybe<Scalars['Boolean']['input']>;
1090
1261
  tx: Scalars['HexString']['input'];
1091
1262
  };
1092
1263
  export type GqlSuccessStatus = {
@@ -1138,6 +1309,9 @@ export type GqlTransaction = {
1138
1309
  upgradePurpose?: Maybe<GqlUpgradePurpose>;
1139
1310
  witnesses?: Maybe<Array<Scalars['HexString']['output']>>;
1140
1311
  };
1312
+ export type GqlTransactionStatusArgs = {
1313
+ includePreconfirmation?: InputMaybe<Scalars['Boolean']['input']>;
1314
+ };
1141
1315
  export type GqlTransactionConnection = {
1142
1316
  /** A list of edges. */
1143
1317
  edges: Array<GqlTransactionEdge>;
@@ -1153,7 +1327,7 @@ export type GqlTransactionEdge = {
1153
1327
  /** The item at the end of the edge */
1154
1328
  node: GqlTransaction;
1155
1329
  };
1156
- export type GqlTransactionStatus = GqlFailureStatus | GqlSqueezedOutStatus | GqlSubmittedStatus | GqlSuccessStatus;
1330
+ export type GqlTransactionStatus = GqlFailureStatus | GqlPreconfirmationFailureStatus | GqlPreconfirmationSuccessStatus | GqlSqueezedOutStatus | GqlSubmittedStatus | GqlSuccessStatus;
1157
1331
  export type GqlTxParameters = {
1158
1332
  maxBytecodeSubsections: Scalars['U16']['output'];
1159
1333
  maxGasPerTx: Scalars['U64']['output'];
@@ -1188,6 +1362,67 @@ export type GqlVariableOutput = {
1188
1362
  assetId: Scalars['AssetId']['output'];
1189
1363
  to: Scalars['Address']['output'];
1190
1364
  };
1365
+ export type GqlInputCoinFragment = {
1366
+ utxoId: string;
1367
+ owner: string;
1368
+ amount: string;
1369
+ assetId: string;
1370
+ txPointer: string;
1371
+ predicateGasUsed: string;
1372
+ predicate: string;
1373
+ predicateData: string;
1374
+ type: 'InputCoin';
1375
+ coinWitnessIndex: string;
1376
+ };
1377
+ export type GqlInputMessageFragment = {
1378
+ sender: string;
1379
+ recipient: string;
1380
+ amount: string;
1381
+ nonce: string;
1382
+ predicateGasUsed: string;
1383
+ data: string;
1384
+ predicate: string;
1385
+ predicateData: string;
1386
+ type: 'InputMessage';
1387
+ messageWitnessIndex: string;
1388
+ };
1389
+ export type GqlInputContractFragment = {
1390
+ utxoId: string;
1391
+ balanceRoot: string;
1392
+ stateRoot: string;
1393
+ txPointer: string;
1394
+ contractId: string;
1395
+ type: 'InputContract';
1396
+ };
1397
+ export type GqlOutputCoinFragment = {
1398
+ to: string;
1399
+ amount: string;
1400
+ assetId: string;
1401
+ type: 'CoinOutput';
1402
+ };
1403
+ export type GqlOutputContractFragment = {
1404
+ inputIndex: string;
1405
+ balanceRoot: string;
1406
+ stateRoot: string;
1407
+ type: 'ContractOutput';
1408
+ };
1409
+ export type GqlOutputChangeFragment = {
1410
+ to: string;
1411
+ amount: string;
1412
+ assetId: string;
1413
+ type: 'ChangeOutput';
1414
+ };
1415
+ export type GqlOutputVariableFragment = {
1416
+ to: string;
1417
+ amount: string;
1418
+ assetId: string;
1419
+ type: 'VariableOutput';
1420
+ };
1421
+ export type GqlOutputContractCreatedFragment = {
1422
+ contract: string;
1423
+ stateRoot: string;
1424
+ type: 'ContractCreated';
1425
+ };
1191
1426
  export type GqlSubmittedStatusFragment = {
1192
1427
  time: string;
1193
1428
  type: 'SubmittedStatus';
@@ -1356,6 +1591,133 @@ export type GqlSqueezedOutStatusFragment = {
1356
1591
  reason: string;
1357
1592
  type: 'SqueezedOutStatus';
1358
1593
  };
1594
+ export type GqlPreconfirmationSuccessStatusFragment = {
1595
+ totalGas: string;
1596
+ totalFee: string;
1597
+ type: 'PreconfirmationSuccessStatus';
1598
+ resolvedOutputs?: Array<{
1599
+ utxoId: string;
1600
+ output: {
1601
+ to: string;
1602
+ amount: string;
1603
+ assetId: string;
1604
+ type: 'ChangeOutput';
1605
+ } | {
1606
+ to: string;
1607
+ amount: string;
1608
+ assetId: string;
1609
+ type: 'CoinOutput';
1610
+ } | {
1611
+ contract: string;
1612
+ stateRoot: string;
1613
+ type: 'ContractCreated';
1614
+ } | {
1615
+ inputIndex: string;
1616
+ balanceRoot: string;
1617
+ stateRoot: string;
1618
+ type: 'ContractOutput';
1619
+ } | {
1620
+ to: string;
1621
+ amount: string;
1622
+ assetId: string;
1623
+ type: 'VariableOutput';
1624
+ };
1625
+ }> | null;
1626
+ preconfirmationReceipts?: Array<{
1627
+ id?: string | null;
1628
+ pc?: string | null;
1629
+ is?: string | null;
1630
+ to?: string | null;
1631
+ toAddress?: string | null;
1632
+ amount?: string | null;
1633
+ assetId?: string | null;
1634
+ gas?: string | null;
1635
+ param1?: string | null;
1636
+ param2?: string | null;
1637
+ val?: string | null;
1638
+ ptr?: string | null;
1639
+ digest?: string | null;
1640
+ reason?: string | null;
1641
+ ra?: string | null;
1642
+ rb?: string | null;
1643
+ rc?: string | null;
1644
+ rd?: string | null;
1645
+ len?: string | null;
1646
+ receiptType: GqlReceiptType;
1647
+ result?: string | null;
1648
+ gasUsed?: string | null;
1649
+ data?: string | null;
1650
+ sender?: string | null;
1651
+ recipient?: string | null;
1652
+ nonce?: string | null;
1653
+ contractId?: string | null;
1654
+ subId?: string | null;
1655
+ }> | null;
1656
+ };
1657
+ export type GqlPreconfirmationFailureStatusFragment = {
1658
+ reason: string;
1659
+ totalGas: string;
1660
+ totalFee: string;
1661
+ type: 'PreconfirmationFailureStatus';
1662
+ resolvedOutputs?: Array<{
1663
+ utxoId: string;
1664
+ output: {
1665
+ to: string;
1666
+ amount: string;
1667
+ assetId: string;
1668
+ type: 'ChangeOutput';
1669
+ } | {
1670
+ to: string;
1671
+ amount: string;
1672
+ assetId: string;
1673
+ type: 'CoinOutput';
1674
+ } | {
1675
+ contract: string;
1676
+ stateRoot: string;
1677
+ type: 'ContractCreated';
1678
+ } | {
1679
+ inputIndex: string;
1680
+ balanceRoot: string;
1681
+ stateRoot: string;
1682
+ type: 'ContractOutput';
1683
+ } | {
1684
+ to: string;
1685
+ amount: string;
1686
+ assetId: string;
1687
+ type: 'VariableOutput';
1688
+ };
1689
+ }> | null;
1690
+ preconfirmationReceipts?: Array<{
1691
+ id?: string | null;
1692
+ pc?: string | null;
1693
+ is?: string | null;
1694
+ to?: string | null;
1695
+ toAddress?: string | null;
1696
+ amount?: string | null;
1697
+ assetId?: string | null;
1698
+ gas?: string | null;
1699
+ param1?: string | null;
1700
+ param2?: string | null;
1701
+ val?: string | null;
1702
+ ptr?: string | null;
1703
+ digest?: string | null;
1704
+ reason?: string | null;
1705
+ ra?: string | null;
1706
+ rb?: string | null;
1707
+ rc?: string | null;
1708
+ rd?: string | null;
1709
+ len?: string | null;
1710
+ receiptType: GqlReceiptType;
1711
+ result?: string | null;
1712
+ gasUsed?: string | null;
1713
+ data?: string | null;
1714
+ sender?: string | null;
1715
+ recipient?: string | null;
1716
+ nonce?: string | null;
1717
+ contractId?: string | null;
1718
+ subId?: string | null;
1719
+ }> | null;
1720
+ };
1359
1721
  type GqlTransactionStatusFragment_FailureStatus = {
1360
1722
  totalGas: string;
1361
1723
  totalFee: string;
@@ -1393,6 +1755,8 @@ type GqlTransactionStatusFragment_FailureStatus = {
1393
1755
  subId?: string | null;
1394
1756
  }>;
1395
1757
  };
1758
+ type GqlTransactionStatusFragment_PreconfirmationFailureStatus = {};
1759
+ type GqlTransactionStatusFragment_PreconfirmationSuccessStatus = {};
1396
1760
  type GqlTransactionStatusFragment_SqueezedOutStatus = {
1397
1761
  reason: string;
1398
1762
  type: 'SqueezedOutStatus';
@@ -1441,7 +1805,7 @@ type GqlTransactionStatusFragment_SuccessStatus = {
1441
1805
  subId?: string | null;
1442
1806
  }>;
1443
1807
  };
1444
- export type GqlTransactionStatusFragment = GqlTransactionStatusFragment_FailureStatus | GqlTransactionStatusFragment_SqueezedOutStatus | GqlTransactionStatusFragment_SubmittedStatus | GqlTransactionStatusFragment_SuccessStatus;
1808
+ export type GqlTransactionStatusFragment = GqlTransactionStatusFragment_FailureStatus | GqlTransactionStatusFragment_PreconfirmationFailureStatus | GqlTransactionStatusFragment_PreconfirmationSuccessStatus | GqlTransactionStatusFragment_SqueezedOutStatus | GqlTransactionStatusFragment_SubmittedStatus | GqlTransactionStatusFragment_SuccessStatus;
1445
1809
  export type GqlMalleableTransactionFieldsFragment = {
1446
1810
  receiptsRoot?: string | null;
1447
1811
  inputs?: Array<{
@@ -1556,31 +1920,14 @@ type GqlTransactionStatusSubscriptionFragment_FailureStatus = {
1556
1920
  subId?: string | null;
1557
1921
  }>;
1558
1922
  };
1559
- type GqlTransactionStatusSubscriptionFragment_SqueezedOutStatus = {
1923
+ type GqlTransactionStatusSubscriptionFragment_PreconfirmationFailureStatus = {
1560
1924
  reason: string;
1561
- type: 'SqueezedOutStatus';
1562
- };
1563
- type GqlTransactionStatusSubscriptionFragment_SubmittedStatus = {
1564
- time: string;
1565
- type: 'SubmittedStatus';
1566
- };
1567
- type GqlTransactionStatusSubscriptionFragment_SuccessStatus = {
1568
- time: string;
1569
1925
  totalGas: string;
1570
1926
  totalFee: string;
1571
- type: 'SuccessStatus';
1572
- transaction: {
1573
- receiptsRoot?: string | null;
1574
- inputs?: Array<{
1575
- txPointer: string;
1576
- type: 'InputCoin';
1577
- } | {
1578
- txPointer: string;
1579
- type: 'InputContract';
1580
- } | {
1581
- type: 'InputMessage';
1582
- }> | null;
1583
- outputs: Array<{
1927
+ type: 'PreconfirmationFailureStatus';
1928
+ resolvedOutputs?: Array<{
1929
+ utxoId: string;
1930
+ output: {
1584
1931
  to: string;
1585
1932
  amount: string;
1586
1933
  assetId: string;
@@ -1604,16 +1951,9 @@ type GqlTransactionStatusSubscriptionFragment_SuccessStatus = {
1604
1951
  amount: string;
1605
1952
  assetId: string;
1606
1953
  type: 'VariableOutput';
1607
- }>;
1608
- };
1609
- block: {
1610
- id: string;
1611
- };
1612
- programState?: {
1613
- returnType: GqlReturnType;
1614
- data: string;
1615
- } | null;
1616
- receipts: Array<{
1954
+ };
1955
+ }> | null;
1956
+ preconfirmationReceipts?: Array<{
1617
1957
  id?: string | null;
1618
1958
  pc?: string | null;
1619
1959
  is?: string | null;
@@ -1642,10 +1982,161 @@ type GqlTransactionStatusSubscriptionFragment_SuccessStatus = {
1642
1982
  nonce?: string | null;
1643
1983
  contractId?: string | null;
1644
1984
  subId?: string | null;
1645
- }>;
1985
+ }> | null;
1646
1986
  };
1647
- export type GqlTransactionStatusSubscriptionFragment = GqlTransactionStatusSubscriptionFragment_FailureStatus | GqlTransactionStatusSubscriptionFragment_SqueezedOutStatus | GqlTransactionStatusSubscriptionFragment_SubmittedStatus | GqlTransactionStatusSubscriptionFragment_SuccessStatus;
1648
- export type GqlTransactionFragment = {
1987
+ type GqlTransactionStatusSubscriptionFragment_PreconfirmationSuccessStatus = {
1988
+ totalGas: string;
1989
+ totalFee: string;
1990
+ type: 'PreconfirmationSuccessStatus';
1991
+ resolvedOutputs?: Array<{
1992
+ utxoId: string;
1993
+ output: {
1994
+ to: string;
1995
+ amount: string;
1996
+ assetId: string;
1997
+ type: 'ChangeOutput';
1998
+ } | {
1999
+ to: string;
2000
+ amount: string;
2001
+ assetId: string;
2002
+ type: 'CoinOutput';
2003
+ } | {
2004
+ contract: string;
2005
+ stateRoot: string;
2006
+ type: 'ContractCreated';
2007
+ } | {
2008
+ inputIndex: string;
2009
+ balanceRoot: string;
2010
+ stateRoot: string;
2011
+ type: 'ContractOutput';
2012
+ } | {
2013
+ to: string;
2014
+ amount: string;
2015
+ assetId: string;
2016
+ type: 'VariableOutput';
2017
+ };
2018
+ }> | null;
2019
+ preconfirmationReceipts?: Array<{
2020
+ id?: string | null;
2021
+ pc?: string | null;
2022
+ is?: string | null;
2023
+ to?: string | null;
2024
+ toAddress?: string | null;
2025
+ amount?: string | null;
2026
+ assetId?: string | null;
2027
+ gas?: string | null;
2028
+ param1?: string | null;
2029
+ param2?: string | null;
2030
+ val?: string | null;
2031
+ ptr?: string | null;
2032
+ digest?: string | null;
2033
+ reason?: string | null;
2034
+ ra?: string | null;
2035
+ rb?: string | null;
2036
+ rc?: string | null;
2037
+ rd?: string | null;
2038
+ len?: string | null;
2039
+ receiptType: GqlReceiptType;
2040
+ result?: string | null;
2041
+ gasUsed?: string | null;
2042
+ data?: string | null;
2043
+ sender?: string | null;
2044
+ recipient?: string | null;
2045
+ nonce?: string | null;
2046
+ contractId?: string | null;
2047
+ subId?: string | null;
2048
+ }> | null;
2049
+ };
2050
+ type GqlTransactionStatusSubscriptionFragment_SqueezedOutStatus = {
2051
+ reason: string;
2052
+ type: 'SqueezedOutStatus';
2053
+ };
2054
+ type GqlTransactionStatusSubscriptionFragment_SubmittedStatus = {
2055
+ time: string;
2056
+ type: 'SubmittedStatus';
2057
+ };
2058
+ type GqlTransactionStatusSubscriptionFragment_SuccessStatus = {
2059
+ time: string;
2060
+ totalGas: string;
2061
+ totalFee: string;
2062
+ type: 'SuccessStatus';
2063
+ transaction: {
2064
+ receiptsRoot?: string | null;
2065
+ inputs?: Array<{
2066
+ txPointer: string;
2067
+ type: 'InputCoin';
2068
+ } | {
2069
+ txPointer: string;
2070
+ type: 'InputContract';
2071
+ } | {
2072
+ type: 'InputMessage';
2073
+ }> | null;
2074
+ outputs: Array<{
2075
+ to: string;
2076
+ amount: string;
2077
+ assetId: string;
2078
+ type: 'ChangeOutput';
2079
+ } | {
2080
+ to: string;
2081
+ amount: string;
2082
+ assetId: string;
2083
+ type: 'CoinOutput';
2084
+ } | {
2085
+ contract: string;
2086
+ stateRoot: string;
2087
+ type: 'ContractCreated';
2088
+ } | {
2089
+ inputIndex: string;
2090
+ balanceRoot: string;
2091
+ stateRoot: string;
2092
+ type: 'ContractOutput';
2093
+ } | {
2094
+ to: string;
2095
+ amount: string;
2096
+ assetId: string;
2097
+ type: 'VariableOutput';
2098
+ }>;
2099
+ };
2100
+ block: {
2101
+ id: string;
2102
+ };
2103
+ programState?: {
2104
+ returnType: GqlReturnType;
2105
+ data: string;
2106
+ } | null;
2107
+ receipts: Array<{
2108
+ id?: string | null;
2109
+ pc?: string | null;
2110
+ is?: string | null;
2111
+ to?: string | null;
2112
+ toAddress?: string | null;
2113
+ amount?: string | null;
2114
+ assetId?: string | null;
2115
+ gas?: string | null;
2116
+ param1?: string | null;
2117
+ param2?: string | null;
2118
+ val?: string | null;
2119
+ ptr?: string | null;
2120
+ digest?: string | null;
2121
+ reason?: string | null;
2122
+ ra?: string | null;
2123
+ rb?: string | null;
2124
+ rc?: string | null;
2125
+ rd?: string | null;
2126
+ len?: string | null;
2127
+ receiptType: GqlReceiptType;
2128
+ result?: string | null;
2129
+ gasUsed?: string | null;
2130
+ data?: string | null;
2131
+ sender?: string | null;
2132
+ recipient?: string | null;
2133
+ nonce?: string | null;
2134
+ contractId?: string | null;
2135
+ subId?: string | null;
2136
+ }>;
2137
+ };
2138
+ export type GqlTransactionStatusSubscriptionFragment = GqlTransactionStatusSubscriptionFragment_FailureStatus | GqlTransactionStatusSubscriptionFragment_PreconfirmationFailureStatus | GqlTransactionStatusSubscriptionFragment_PreconfirmationSuccessStatus | GqlTransactionStatusSubscriptionFragment_SqueezedOutStatus | GqlTransactionStatusSubscriptionFragment_SubmittedStatus | GqlTransactionStatusSubscriptionFragment_SuccessStatus;
2139
+ export type GqlTransactionFragment = {
1649
2140
  id: string;
1650
2141
  rawPayload: string;
1651
2142
  status?: {
@@ -1729,7 +2220,7 @@ export type GqlTransactionFragment = {
1729
2220
  contractId?: string | null;
1730
2221
  subId?: string | null;
1731
2222
  }>;
1732
- } | null;
2223
+ } | {} | null;
1733
2224
  };
1734
2225
  export type GqlTransactionRawPayloadFragment = {
1735
2226
  id: string;
@@ -1769,6 +2260,73 @@ export type GqlDryRunSuccessStatusFragment = {
1769
2260
  data: string;
1770
2261
  } | null;
1771
2262
  };
2263
+ export type GqlDryRunFailureAssembleTxFragment = {
2264
+ reason: string;
2265
+ type: 'DryRunFailureStatus';
2266
+ receipts: Array<{
2267
+ id?: string | null;
2268
+ pc?: string | null;
2269
+ is?: string | null;
2270
+ to?: string | null;
2271
+ toAddress?: string | null;
2272
+ amount?: string | null;
2273
+ assetId?: string | null;
2274
+ gas?: string | null;
2275
+ param1?: string | null;
2276
+ param2?: string | null;
2277
+ val?: string | null;
2278
+ ptr?: string | null;
2279
+ digest?: string | null;
2280
+ reason?: string | null;
2281
+ ra?: string | null;
2282
+ rb?: string | null;
2283
+ rc?: string | null;
2284
+ rd?: string | null;
2285
+ len?: string | null;
2286
+ receiptType: GqlReceiptType;
2287
+ result?: string | null;
2288
+ gasUsed?: string | null;
2289
+ data?: string | null;
2290
+ sender?: string | null;
2291
+ recipient?: string | null;
2292
+ nonce?: string | null;
2293
+ contractId?: string | null;
2294
+ subId?: string | null;
2295
+ }>;
2296
+ };
2297
+ export type GqlDryRunSuccessAssembleTxFragment = {
2298
+ type: 'DryRunSuccessStatus';
2299
+ receipts: Array<{
2300
+ id?: string | null;
2301
+ pc?: string | null;
2302
+ is?: string | null;
2303
+ to?: string | null;
2304
+ toAddress?: string | null;
2305
+ amount?: string | null;
2306
+ assetId?: string | null;
2307
+ gas?: string | null;
2308
+ param1?: string | null;
2309
+ param2?: string | null;
2310
+ val?: string | null;
2311
+ ptr?: string | null;
2312
+ digest?: string | null;
2313
+ reason?: string | null;
2314
+ ra?: string | null;
2315
+ rb?: string | null;
2316
+ rc?: string | null;
2317
+ rd?: string | null;
2318
+ len?: string | null;
2319
+ receiptType: GqlReceiptType;
2320
+ result?: string | null;
2321
+ gasUsed?: string | null;
2322
+ data?: string | null;
2323
+ sender?: string | null;
2324
+ recipient?: string | null;
2325
+ nonce?: string | null;
2326
+ contractId?: string | null;
2327
+ subId?: string | null;
2328
+ }>;
2329
+ };
1772
2330
  export type GqlReceiptFragment = {
1773
2331
  id?: string | null;
1774
2332
  pc?: string | null;
@@ -2526,7 +3084,7 @@ export type GqlGetTransactionQuery = {
2526
3084
  contractId?: string | null;
2527
3085
  subId?: string | null;
2528
3086
  }>;
2529
- } | null;
3087
+ } | {} | null;
2530
3088
  } | null;
2531
3089
  };
2532
3090
  export type GqlGetTransactionWithReceiptsQueryVariables = Exact<{
@@ -2577,23 +3135,38 @@ export type GqlGetTransactionWithReceiptsQuery = {
2577
3135
  }>;
2578
3136
  } | {
2579
3137
  reason: string;
2580
- type: 'SqueezedOutStatus';
2581
- } | {
2582
- time: string;
2583
- type: 'SubmittedStatus';
2584
- } | {
2585
- time: string;
2586
3138
  totalGas: string;
2587
3139
  totalFee: string;
2588
- type: 'SuccessStatus';
2589
- block: {
2590
- id: string;
2591
- };
2592
- programState?: {
2593
- returnType: GqlReturnType;
2594
- data: string;
2595
- } | null;
2596
- receipts: Array<{
3140
+ type: 'PreconfirmationFailureStatus';
3141
+ resolvedOutputs?: Array<{
3142
+ utxoId: string;
3143
+ output: {
3144
+ to: string;
3145
+ amount: string;
3146
+ assetId: string;
3147
+ type: 'ChangeOutput';
3148
+ } | {
3149
+ to: string;
3150
+ amount: string;
3151
+ assetId: string;
3152
+ type: 'CoinOutput';
3153
+ } | {
3154
+ contract: string;
3155
+ stateRoot: string;
3156
+ type: 'ContractCreated';
3157
+ } | {
3158
+ inputIndex: string;
3159
+ balanceRoot: string;
3160
+ stateRoot: string;
3161
+ type: 'ContractOutput';
3162
+ } | {
3163
+ to: string;
3164
+ amount: string;
3165
+ assetId: string;
3166
+ type: 'VariableOutput';
3167
+ };
3168
+ }> | null;
3169
+ preconfirmationReceipts?: Array<{
2597
3170
  id?: string | null;
2598
3171
  pc?: string | null;
2599
3172
  is?: string | null;
@@ -2622,26 +3195,136 @@ export type GqlGetTransactionWithReceiptsQuery = {
2622
3195
  nonce?: string | null;
2623
3196
  contractId?: string | null;
2624
3197
  subId?: string | null;
2625
- }>;
2626
- } | null;
2627
- } | null;
2628
- };
2629
- export type GqlGetTransactionsQueryVariables = Exact<{
2630
- after?: InputMaybe<Scalars['String']['input']>;
2631
- before?: InputMaybe<Scalars['String']['input']>;
2632
- first?: InputMaybe<Scalars['Int']['input']>;
2633
- last?: InputMaybe<Scalars['Int']['input']>;
2634
- }>;
2635
- export type GqlGetTransactionsQuery = {
2636
- transactions: {
2637
- edges: Array<{
2638
- node: {
2639
- rawPayload: string;
2640
- };
2641
- }>;
2642
- pageInfo: {
2643
- hasPreviousPage: boolean;
2644
- hasNextPage: boolean;
3198
+ }> | null;
3199
+ } | {
3200
+ totalGas: string;
3201
+ totalFee: string;
3202
+ type: 'PreconfirmationSuccessStatus';
3203
+ resolvedOutputs?: Array<{
3204
+ utxoId: string;
3205
+ output: {
3206
+ to: string;
3207
+ amount: string;
3208
+ assetId: string;
3209
+ type: 'ChangeOutput';
3210
+ } | {
3211
+ to: string;
3212
+ amount: string;
3213
+ assetId: string;
3214
+ type: 'CoinOutput';
3215
+ } | {
3216
+ contract: string;
3217
+ stateRoot: string;
3218
+ type: 'ContractCreated';
3219
+ } | {
3220
+ inputIndex: string;
3221
+ balanceRoot: string;
3222
+ stateRoot: string;
3223
+ type: 'ContractOutput';
3224
+ } | {
3225
+ to: string;
3226
+ amount: string;
3227
+ assetId: string;
3228
+ type: 'VariableOutput';
3229
+ };
3230
+ }> | null;
3231
+ preconfirmationReceipts?: Array<{
3232
+ id?: string | null;
3233
+ pc?: string | null;
3234
+ is?: string | null;
3235
+ to?: string | null;
3236
+ toAddress?: string | null;
3237
+ amount?: string | null;
3238
+ assetId?: string | null;
3239
+ gas?: string | null;
3240
+ param1?: string | null;
3241
+ param2?: string | null;
3242
+ val?: string | null;
3243
+ ptr?: string | null;
3244
+ digest?: string | null;
3245
+ reason?: string | null;
3246
+ ra?: string | null;
3247
+ rb?: string | null;
3248
+ rc?: string | null;
3249
+ rd?: string | null;
3250
+ len?: string | null;
3251
+ receiptType: GqlReceiptType;
3252
+ result?: string | null;
3253
+ gasUsed?: string | null;
3254
+ data?: string | null;
3255
+ sender?: string | null;
3256
+ recipient?: string | null;
3257
+ nonce?: string | null;
3258
+ contractId?: string | null;
3259
+ subId?: string | null;
3260
+ }> | null;
3261
+ } | {
3262
+ reason: string;
3263
+ type: 'SqueezedOutStatus';
3264
+ } | {
3265
+ time: string;
3266
+ type: 'SubmittedStatus';
3267
+ } | {
3268
+ time: string;
3269
+ totalGas: string;
3270
+ totalFee: string;
3271
+ type: 'SuccessStatus';
3272
+ block: {
3273
+ id: string;
3274
+ };
3275
+ programState?: {
3276
+ returnType: GqlReturnType;
3277
+ data: string;
3278
+ } | null;
3279
+ receipts: Array<{
3280
+ id?: string | null;
3281
+ pc?: string | null;
3282
+ is?: string | null;
3283
+ to?: string | null;
3284
+ toAddress?: string | null;
3285
+ amount?: string | null;
3286
+ assetId?: string | null;
3287
+ gas?: string | null;
3288
+ param1?: string | null;
3289
+ param2?: string | null;
3290
+ val?: string | null;
3291
+ ptr?: string | null;
3292
+ digest?: string | null;
3293
+ reason?: string | null;
3294
+ ra?: string | null;
3295
+ rb?: string | null;
3296
+ rc?: string | null;
3297
+ rd?: string | null;
3298
+ len?: string | null;
3299
+ receiptType: GqlReceiptType;
3300
+ result?: string | null;
3301
+ gasUsed?: string | null;
3302
+ data?: string | null;
3303
+ sender?: string | null;
3304
+ recipient?: string | null;
3305
+ nonce?: string | null;
3306
+ contractId?: string | null;
3307
+ subId?: string | null;
3308
+ }>;
3309
+ } | null;
3310
+ } | null;
3311
+ };
3312
+ export type GqlGetTransactionsQueryVariables = Exact<{
3313
+ after?: InputMaybe<Scalars['String']['input']>;
3314
+ before?: InputMaybe<Scalars['String']['input']>;
3315
+ first?: InputMaybe<Scalars['Int']['input']>;
3316
+ last?: InputMaybe<Scalars['Int']['input']>;
3317
+ }>;
3318
+ export type GqlGetTransactionsQuery = {
3319
+ transactions: {
3320
+ edges: Array<{
3321
+ node: {
3322
+ rawPayload: string;
3323
+ };
3324
+ }>;
3325
+ pageInfo: {
3326
+ hasPreviousPage: boolean;
3327
+ hasNextPage: boolean;
2645
3328
  startCursor?: string | null;
2646
3329
  endCursor?: string | null;
2647
3330
  };
@@ -2747,7 +3430,7 @@ export type GqlGetTransactionsByOwnerQuery = {
2747
3430
  contractId?: string | null;
2748
3431
  subId?: string | null;
2749
3432
  }>;
2750
- } | null;
3433
+ } | {} | null;
2751
3434
  };
2752
3435
  }>;
2753
3436
  };
@@ -3175,6 +3858,152 @@ export type GqlGetAssetDetailsQuery = {
3175
3858
  totalSupply: string;
3176
3859
  };
3177
3860
  };
3861
+ export type GqlAssembleTxQueryVariables = Exact<{
3862
+ tx: Scalars['HexString']['input'];
3863
+ blockHorizon: Scalars['U32']['input'];
3864
+ requiredBalances: Array<GqlRequiredBalance> | GqlRequiredBalance;
3865
+ feeAddressIndex: Scalars['U16']['input'];
3866
+ excludeInput?: InputMaybe<GqlExcludeInput>;
3867
+ estimatePredicates?: InputMaybe<Scalars['Boolean']['input']>;
3868
+ reserveGas?: InputMaybe<Scalars['U64']['input']>;
3869
+ }>;
3870
+ export type GqlAssembleTxQuery = {
3871
+ assembleTx: {
3872
+ gasPrice: string;
3873
+ transaction: {
3874
+ id: string;
3875
+ witnesses?: Array<string> | null;
3876
+ scriptGasLimit?: string | null;
3877
+ inputs?: Array<{
3878
+ utxoId: string;
3879
+ owner: string;
3880
+ amount: string;
3881
+ assetId: string;
3882
+ txPointer: string;
3883
+ predicateGasUsed: string;
3884
+ predicate: string;
3885
+ predicateData: string;
3886
+ type: 'InputCoin';
3887
+ coinWitnessIndex: string;
3888
+ } | {
3889
+ utxoId: string;
3890
+ balanceRoot: string;
3891
+ stateRoot: string;
3892
+ txPointer: string;
3893
+ contractId: string;
3894
+ type: 'InputContract';
3895
+ } | {
3896
+ sender: string;
3897
+ recipient: string;
3898
+ amount: string;
3899
+ nonce: string;
3900
+ predicateGasUsed: string;
3901
+ data: string;
3902
+ predicate: string;
3903
+ predicateData: string;
3904
+ type: 'InputMessage';
3905
+ messageWitnessIndex: string;
3906
+ }> | null;
3907
+ outputs: Array<{
3908
+ to: string;
3909
+ amount: string;
3910
+ assetId: string;
3911
+ type: 'ChangeOutput';
3912
+ } | {
3913
+ to: string;
3914
+ amount: string;
3915
+ assetId: string;
3916
+ type: 'CoinOutput';
3917
+ } | {
3918
+ contract: string;
3919
+ stateRoot: string;
3920
+ type: 'ContractCreated';
3921
+ } | {
3922
+ inputIndex: string;
3923
+ balanceRoot: string;
3924
+ stateRoot: string;
3925
+ type: 'ContractOutput';
3926
+ } | {
3927
+ to: string;
3928
+ amount: string;
3929
+ assetId: string;
3930
+ type: 'VariableOutput';
3931
+ }>;
3932
+ policies?: {
3933
+ tip?: string | null;
3934
+ witnessLimit?: string | null;
3935
+ maturity?: string | null;
3936
+ maxFee?: string | null;
3937
+ } | null;
3938
+ };
3939
+ status: {
3940
+ reason: string;
3941
+ type: 'DryRunFailureStatus';
3942
+ receipts: Array<{
3943
+ id?: string | null;
3944
+ pc?: string | null;
3945
+ is?: string | null;
3946
+ to?: string | null;
3947
+ toAddress?: string | null;
3948
+ amount?: string | null;
3949
+ assetId?: string | null;
3950
+ gas?: string | null;
3951
+ param1?: string | null;
3952
+ param2?: string | null;
3953
+ val?: string | null;
3954
+ ptr?: string | null;
3955
+ digest?: string | null;
3956
+ reason?: string | null;
3957
+ ra?: string | null;
3958
+ rb?: string | null;
3959
+ rc?: string | null;
3960
+ rd?: string | null;
3961
+ len?: string | null;
3962
+ receiptType: GqlReceiptType;
3963
+ result?: string | null;
3964
+ gasUsed?: string | null;
3965
+ data?: string | null;
3966
+ sender?: string | null;
3967
+ recipient?: string | null;
3968
+ nonce?: string | null;
3969
+ contractId?: string | null;
3970
+ subId?: string | null;
3971
+ }>;
3972
+ } | {
3973
+ type: 'DryRunSuccessStatus';
3974
+ receipts: Array<{
3975
+ id?: string | null;
3976
+ pc?: string | null;
3977
+ is?: string | null;
3978
+ to?: string | null;
3979
+ toAddress?: string | null;
3980
+ amount?: string | null;
3981
+ assetId?: string | null;
3982
+ gas?: string | null;
3983
+ param1?: string | null;
3984
+ param2?: string | null;
3985
+ val?: string | null;
3986
+ ptr?: string | null;
3987
+ digest?: string | null;
3988
+ reason?: string | null;
3989
+ ra?: string | null;
3990
+ rb?: string | null;
3991
+ rc?: string | null;
3992
+ rd?: string | null;
3993
+ len?: string | null;
3994
+ receiptType: GqlReceiptType;
3995
+ result?: string | null;
3996
+ gasUsed?: string | null;
3997
+ data?: string | null;
3998
+ sender?: string | null;
3999
+ recipient?: string | null;
4000
+ nonce?: string | null;
4001
+ contractId?: string | null;
4002
+ subId?: string | null;
4003
+ }>;
4004
+ };
4005
+ };
4006
+ };
3178
4007
  export type GqlDryRunMutationVariables = Exact<{
3179
4008
  encodedTransactions: Array<Scalars['HexString']['input']> | Scalars['HexString']['input'];
3180
4009
  utxoValidation?: InputMaybe<Scalars['Boolean']['input']>;
@@ -3290,6 +4119,8 @@ export type GqlGetConsensusParametersVersionQuery = {
3290
4119
  };
3291
4120
  export type GqlSubmitAndAwaitStatusSubscriptionVariables = Exact<{
3292
4121
  encodedTransaction: Scalars['HexString']['input'];
4122
+ estimatePredicates?: InputMaybe<Scalars['Boolean']['input']>;
4123
+ includePreConfirmation?: InputMaybe<Scalars['Boolean']['input']>;
3293
4124
  }>;
3294
4125
  export type GqlSubmitAndAwaitStatusSubscription = {
3295
4126
  submitAndAwaitStatus: {
@@ -3368,6 +4199,131 @@ export type GqlSubmitAndAwaitStatusSubscription = {
3368
4199
  contractId?: string | null;
3369
4200
  subId?: string | null;
3370
4201
  }>;
4202
+ } | {
4203
+ reason: string;
4204
+ totalGas: string;
4205
+ totalFee: string;
4206
+ type: 'PreconfirmationFailureStatus';
4207
+ resolvedOutputs?: Array<{
4208
+ utxoId: string;
4209
+ output: {
4210
+ to: string;
4211
+ amount: string;
4212
+ assetId: string;
4213
+ type: 'ChangeOutput';
4214
+ } | {
4215
+ to: string;
4216
+ amount: string;
4217
+ assetId: string;
4218
+ type: 'CoinOutput';
4219
+ } | {
4220
+ contract: string;
4221
+ stateRoot: string;
4222
+ type: 'ContractCreated';
4223
+ } | {
4224
+ inputIndex: string;
4225
+ balanceRoot: string;
4226
+ stateRoot: string;
4227
+ type: 'ContractOutput';
4228
+ } | {
4229
+ to: string;
4230
+ amount: string;
4231
+ assetId: string;
4232
+ type: 'VariableOutput';
4233
+ };
4234
+ }> | null;
4235
+ preconfirmationReceipts?: Array<{
4236
+ id?: string | null;
4237
+ pc?: string | null;
4238
+ is?: string | null;
4239
+ to?: string | null;
4240
+ toAddress?: string | null;
4241
+ amount?: string | null;
4242
+ assetId?: string | null;
4243
+ gas?: string | null;
4244
+ param1?: string | null;
4245
+ param2?: string | null;
4246
+ val?: string | null;
4247
+ ptr?: string | null;
4248
+ digest?: string | null;
4249
+ reason?: string | null;
4250
+ ra?: string | null;
4251
+ rb?: string | null;
4252
+ rc?: string | null;
4253
+ rd?: string | null;
4254
+ len?: string | null;
4255
+ receiptType: GqlReceiptType;
4256
+ result?: string | null;
4257
+ gasUsed?: string | null;
4258
+ data?: string | null;
4259
+ sender?: string | null;
4260
+ recipient?: string | null;
4261
+ nonce?: string | null;
4262
+ contractId?: string | null;
4263
+ subId?: string | null;
4264
+ }> | null;
4265
+ } | {
4266
+ totalGas: string;
4267
+ totalFee: string;
4268
+ type: 'PreconfirmationSuccessStatus';
4269
+ resolvedOutputs?: Array<{
4270
+ utxoId: string;
4271
+ output: {
4272
+ to: string;
4273
+ amount: string;
4274
+ assetId: string;
4275
+ type: 'ChangeOutput';
4276
+ } | {
4277
+ to: string;
4278
+ amount: string;
4279
+ assetId: string;
4280
+ type: 'CoinOutput';
4281
+ } | {
4282
+ contract: string;
4283
+ stateRoot: string;
4284
+ type: 'ContractCreated';
4285
+ } | {
4286
+ inputIndex: string;
4287
+ balanceRoot: string;
4288
+ stateRoot: string;
4289
+ type: 'ContractOutput';
4290
+ } | {
4291
+ to: string;
4292
+ amount: string;
4293
+ assetId: string;
4294
+ type: 'VariableOutput';
4295
+ };
4296
+ }> | null;
4297
+ preconfirmationReceipts?: Array<{
4298
+ id?: string | null;
4299
+ pc?: string | null;
4300
+ is?: string | null;
4301
+ to?: string | null;
4302
+ toAddress?: string | null;
4303
+ amount?: string | null;
4304
+ assetId?: string | null;
4305
+ gas?: string | null;
4306
+ param1?: string | null;
4307
+ param2?: string | null;
4308
+ val?: string | null;
4309
+ ptr?: string | null;
4310
+ digest?: string | null;
4311
+ reason?: string | null;
4312
+ ra?: string | null;
4313
+ rb?: string | null;
4314
+ rc?: string | null;
4315
+ rd?: string | null;
4316
+ len?: string | null;
4317
+ receiptType: GqlReceiptType;
4318
+ result?: string | null;
4319
+ gasUsed?: string | null;
4320
+ data?: string | null;
4321
+ sender?: string | null;
4322
+ recipient?: string | null;
4323
+ nonce?: string | null;
4324
+ contractId?: string | null;
4325
+ subId?: string | null;
4326
+ }> | null;
3371
4327
  } | {
3372
4328
  reason: string;
3373
4329
  type: 'SqueezedOutStatus';
@@ -3457,6 +4413,7 @@ export type GqlSubmitAndAwaitStatusSubscription = {
3457
4413
  };
3458
4414
  export type GqlStatusChangeSubscriptionVariables = Exact<{
3459
4415
  transactionId: Scalars['TransactionId']['input'];
4416
+ includePreConfirmation?: InputMaybe<Scalars['Boolean']['input']>;
3460
4417
  }>;
3461
4418
  export type GqlStatusChangeSubscription = {
3462
4419
  statusChange: {
@@ -3535,6 +4492,131 @@ export type GqlStatusChangeSubscription = {
3535
4492
  contractId?: string | null;
3536
4493
  subId?: string | null;
3537
4494
  }>;
4495
+ } | {
4496
+ reason: string;
4497
+ totalGas: string;
4498
+ totalFee: string;
4499
+ type: 'PreconfirmationFailureStatus';
4500
+ resolvedOutputs?: Array<{
4501
+ utxoId: string;
4502
+ output: {
4503
+ to: string;
4504
+ amount: string;
4505
+ assetId: string;
4506
+ type: 'ChangeOutput';
4507
+ } | {
4508
+ to: string;
4509
+ amount: string;
4510
+ assetId: string;
4511
+ type: 'CoinOutput';
4512
+ } | {
4513
+ contract: string;
4514
+ stateRoot: string;
4515
+ type: 'ContractCreated';
4516
+ } | {
4517
+ inputIndex: string;
4518
+ balanceRoot: string;
4519
+ stateRoot: string;
4520
+ type: 'ContractOutput';
4521
+ } | {
4522
+ to: string;
4523
+ amount: string;
4524
+ assetId: string;
4525
+ type: 'VariableOutput';
4526
+ };
4527
+ }> | null;
4528
+ preconfirmationReceipts?: Array<{
4529
+ id?: string | null;
4530
+ pc?: string | null;
4531
+ is?: string | null;
4532
+ to?: string | null;
4533
+ toAddress?: string | null;
4534
+ amount?: string | null;
4535
+ assetId?: string | null;
4536
+ gas?: string | null;
4537
+ param1?: string | null;
4538
+ param2?: string | null;
4539
+ val?: string | null;
4540
+ ptr?: string | null;
4541
+ digest?: string | null;
4542
+ reason?: string | null;
4543
+ ra?: string | null;
4544
+ rb?: string | null;
4545
+ rc?: string | null;
4546
+ rd?: string | null;
4547
+ len?: string | null;
4548
+ receiptType: GqlReceiptType;
4549
+ result?: string | null;
4550
+ gasUsed?: string | null;
4551
+ data?: string | null;
4552
+ sender?: string | null;
4553
+ recipient?: string | null;
4554
+ nonce?: string | null;
4555
+ contractId?: string | null;
4556
+ subId?: string | null;
4557
+ }> | null;
4558
+ } | {
4559
+ totalGas: string;
4560
+ totalFee: string;
4561
+ type: 'PreconfirmationSuccessStatus';
4562
+ resolvedOutputs?: Array<{
4563
+ utxoId: string;
4564
+ output: {
4565
+ to: string;
4566
+ amount: string;
4567
+ assetId: string;
4568
+ type: 'ChangeOutput';
4569
+ } | {
4570
+ to: string;
4571
+ amount: string;
4572
+ assetId: string;
4573
+ type: 'CoinOutput';
4574
+ } | {
4575
+ contract: string;
4576
+ stateRoot: string;
4577
+ type: 'ContractCreated';
4578
+ } | {
4579
+ inputIndex: string;
4580
+ balanceRoot: string;
4581
+ stateRoot: string;
4582
+ type: 'ContractOutput';
4583
+ } | {
4584
+ to: string;
4585
+ amount: string;
4586
+ assetId: string;
4587
+ type: 'VariableOutput';
4588
+ };
4589
+ }> | null;
4590
+ preconfirmationReceipts?: Array<{
4591
+ id?: string | null;
4592
+ pc?: string | null;
4593
+ is?: string | null;
4594
+ to?: string | null;
4595
+ toAddress?: string | null;
4596
+ amount?: string | null;
4597
+ assetId?: string | null;
4598
+ gas?: string | null;
4599
+ param1?: string | null;
4600
+ param2?: string | null;
4601
+ val?: string | null;
4602
+ ptr?: string | null;
4603
+ digest?: string | null;
4604
+ reason?: string | null;
4605
+ ra?: string | null;
4606
+ rb?: string | null;
4607
+ rc?: string | null;
4608
+ rd?: string | null;
4609
+ len?: string | null;
4610
+ receiptType: GqlReceiptType;
4611
+ result?: string | null;
4612
+ gasUsed?: string | null;
4613
+ data?: string | null;
4614
+ sender?: string | null;
4615
+ recipient?: string | null;
4616
+ nonce?: string | null;
4617
+ contractId?: string | null;
4618
+ subId?: string | null;
4619
+ }> | null;
3538
4620
  } | {
3539
4621
  reason: string;
3540
4622
  type: 'SqueezedOutStatus';
@@ -3622,6 +4704,14 @@ export type GqlStatusChangeSubscription = {
3622
4704
  }>;
3623
4705
  };
3624
4706
  };
4707
+ export declare const InputCoinFragmentDoc: DocumentNode;
4708
+ export declare const InputMessageFragmentDoc: DocumentNode;
4709
+ export declare const InputContractFragmentDoc: DocumentNode;
4710
+ export declare const OutputCoinFragmentDoc: DocumentNode;
4711
+ export declare const OutputContractFragmentDoc: DocumentNode;
4712
+ export declare const OutputChangeFragmentDoc: DocumentNode;
4713
+ export declare const OutputVariableFragmentDoc: DocumentNode;
4714
+ export declare const OutputContractCreatedFragmentDoc: DocumentNode;
3625
4715
  export declare const SubmittedStatusFragmentDoc: DocumentNode;
3626
4716
  export declare const ReceiptFragmentDoc: DocumentNode;
3627
4717
  export declare const SuccessStatusFragmentDoc: DocumentNode;
@@ -3630,12 +4720,16 @@ export declare const MalleableTransactionFieldsFragmentDoc: DocumentNode;
3630
4720
  export declare const FailureStatusFragmentDoc: DocumentNode;
3631
4721
  export declare const FailureStatusWithBlockIdFragmentDoc: DocumentNode;
3632
4722
  export declare const SqueezedOutStatusFragmentDoc: DocumentNode;
4723
+ export declare const PreconfirmationSuccessStatusFragmentDoc: DocumentNode;
4724
+ export declare const PreconfirmationFailureStatusFragmentDoc: DocumentNode;
3633
4725
  export declare const TransactionStatusSubscriptionFragmentDoc: DocumentNode;
3634
4726
  export declare const TransactionStatusFragmentDoc: DocumentNode;
3635
4727
  export declare const TransactionFragmentDoc: DocumentNode;
3636
4728
  export declare const TransactionRawPayloadFragmentDoc: DocumentNode;
3637
4729
  export declare const InputEstimatePredicatesFragmentDoc: DocumentNode;
3638
4730
  export declare const TransactionEstimatePredicatesFragmentDoc: DocumentNode;
4731
+ export declare const DryRunFailureAssembleTxFragmentDoc: DocumentNode;
4732
+ export declare const DryRunSuccessAssembleTxFragmentDoc: DocumentNode;
3639
4733
  export declare const DryRunFailureStatusFragmentDoc: DocumentNode;
3640
4734
  export declare const DryRunSuccessStatusFragmentDoc: DocumentNode;
3641
4735
  export declare const DryRunTransactionStatusFragmentDoc: DocumentNode;
@@ -3691,6 +4785,7 @@ export declare const GetMessageProofDocument: DocumentNode;
3691
4785
  export declare const GetMessageStatusDocument: DocumentNode;
3692
4786
  export declare const GetRelayedTransactionStatusDocument: DocumentNode;
3693
4787
  export declare const GetAssetDetailsDocument: DocumentNode;
4788
+ export declare const AssembleTxDocument: DocumentNode;
3694
4789
  export declare const DryRunDocument: DocumentNode;
3695
4790
  export declare const SubmitDocument: DocumentNode;
3696
4791
  export declare const ProduceBlocksDocument: DocumentNode;
@@ -3733,6 +4828,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
3733
4828
  getMessageStatus(variables: GqlGetMessageStatusQueryVariables, options?: C): Promise<GqlGetMessageStatusQuery>;
3734
4829
  getRelayedTransactionStatus(variables: GqlGetRelayedTransactionStatusQueryVariables, options?: C): Promise<GqlGetRelayedTransactionStatusQuery>;
3735
4830
  getAssetDetails(variables: GqlGetAssetDetailsQueryVariables, options?: C): Promise<GqlGetAssetDetailsQuery>;
4831
+ assembleTx(variables: GqlAssembleTxQueryVariables, options?: C): Promise<GqlAssembleTxQuery>;
3736
4832
  dryRun(variables: GqlDryRunMutationVariables, options?: C): Promise<GqlDryRunMutation>;
3737
4833
  submit(variables: GqlSubmitMutationVariables, options?: C): Promise<GqlSubmitMutation>;
3738
4834
  produceBlocks(variables: GqlProduceBlocksMutationVariables, options?: C): Promise<GqlProduceBlocksMutation>;