@fuel-ts/account 0.0.0-rc-1976-20240404073406 → 0.0.0-rc-1764-20240404125616

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.

Potentially problematic release.


This version of @fuel-ts/account might be problematic. Click here for more details.

Files changed (57) hide show
  1. package/README.md +1 -1
  2. package/dist/account.d.ts +5 -4
  3. package/dist/account.d.ts.map +1 -1
  4. package/dist/configs.d.ts.map +1 -1
  5. package/dist/configs.global.js +1 -1
  6. package/dist/configs.global.js.map +1 -1
  7. package/dist/configs.js +1 -1
  8. package/dist/configs.js.map +1 -1
  9. package/dist/configs.mjs +1 -1
  10. package/dist/configs.mjs.map +1 -1
  11. package/dist/index.global.js +912 -544
  12. package/dist/index.global.js.map +1 -1
  13. package/dist/index.js +1032 -714
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +909 -587
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/predicate/predicate.d.ts +10 -2
  18. package/dist/predicate/predicate.d.ts.map +1 -1
  19. package/dist/providers/__generated__/operations.d.ts +822 -303
  20. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  21. package/dist/providers/coin-quantity.d.ts +3 -3
  22. package/dist/providers/coin-quantity.d.ts.map +1 -1
  23. package/dist/providers/coin.d.ts +4 -2
  24. package/dist/providers/coin.d.ts.map +1 -1
  25. package/dist/providers/fuel-graphql-subscriber.d.ts.map +1 -1
  26. package/dist/providers/message.d.ts +3 -0
  27. package/dist/providers/message.d.ts.map +1 -1
  28. package/dist/providers/provider.d.ts +44 -31
  29. package/dist/providers/provider.d.ts.map +1 -1
  30. package/dist/providers/transaction-request/input.d.ts +2 -2
  31. package/dist/providers/transaction-request/input.d.ts.map +1 -1
  32. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  33. package/dist/providers/transaction-request/transaction-request.d.ts +9 -29
  34. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  35. package/dist/providers/transaction-request/utils.d.ts +3 -0
  36. package/dist/providers/transaction-request/utils.d.ts.map +1 -1
  37. package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
  38. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +2 -0
  39. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  40. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +3 -2
  41. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +1 -1
  42. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  43. package/dist/providers/utils/extract-tx-error.d.ts +36 -0
  44. package/dist/providers/utils/extract-tx-error.d.ts.map +1 -0
  45. package/dist/providers/utils/gas.d.ts +8 -2
  46. package/dist/providers/utils/gas.d.ts.map +1 -1
  47. package/dist/providers/utils/index.d.ts +1 -0
  48. package/dist/providers/utils/index.d.ts.map +1 -1
  49. package/dist/test-utils/launchNode.d.ts.map +1 -1
  50. package/dist/test-utils.global.js +871 -540
  51. package/dist/test-utils.global.js.map +1 -1
  52. package/dist/test-utils.js +944 -671
  53. package/dist/test-utils.js.map +1 -1
  54. package/dist/test-utils.mjs +832 -551
  55. package/dist/test-utils.mjs.map +1 -1
  56. package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
  57. package/package.json +17 -17
@@ -67,6 +67,7 @@ export type GqlBlock = {
67
67
  __typename: 'Block';
68
68
  consensus: GqlConsensus;
69
69
  header: GqlHeader;
70
+ height: Scalars['U32'];
70
71
  id: Scalars['BlockId'];
71
72
  transactions: Array<GqlTransaction>;
72
73
  };
@@ -87,6 +88,7 @@ export type GqlBlockEdge = {
87
88
  /** The item at the end of the edge */
88
89
  node: GqlBlock;
89
90
  };
91
+ /** Breakpoint, defined as a tuple of contract ID and relative PC offset inside it */
90
92
  export type GqlBreakpoint = {
91
93
  contract: Scalars['ContractId'];
92
94
  pc: Scalars['U64'];
@@ -111,7 +113,6 @@ export type GqlCoin = {
111
113
  assetId: Scalars['AssetId'];
112
114
  /** TxPointer - the height of the block this coin was created in */
113
115
  blockCreated: Scalars['U32'];
114
- maturity: Scalars['U32'];
115
116
  owner: Scalars['Address'];
116
117
  /** TxPointer - the index of the transaction that created this coin */
117
118
  txCreatedIdx: Scalars['U64'];
@@ -195,7 +196,7 @@ export type GqlContractBalanceFilterInput = {
195
196
  };
196
197
  export type GqlContractCreated = {
197
198
  __typename: 'ContractCreated';
198
- contract: GqlContract;
199
+ contract: Scalars['ContractId'];
199
200
  stateRoot: Scalars['Bytes32'];
200
201
  };
201
202
  export type GqlContractOutput = {
@@ -210,6 +211,28 @@ export type GqlContractParameters = {
210
211
  maxStorageSlots: Scalars['U64'];
211
212
  };
212
213
  export type GqlDependentCost = GqlHeavyOperation | GqlLightOperation;
214
+ export type GqlDryRunFailureStatus = {
215
+ __typename: 'DryRunFailureStatus';
216
+ programState?: Maybe<GqlProgramState>;
217
+ reason: Scalars['String'];
218
+ receipts: Array<GqlReceipt>;
219
+ };
220
+ export type GqlDryRunSuccessStatus = {
221
+ __typename: 'DryRunSuccessStatus';
222
+ programState?: Maybe<GqlProgramState>;
223
+ receipts: Array<GqlReceipt>;
224
+ };
225
+ export type GqlDryRunTransactionExecutionStatus = {
226
+ __typename: 'DryRunTransactionExecutionStatus';
227
+ id: Scalars['TransactionId'];
228
+ receipts: Array<GqlReceipt>;
229
+ status: GqlDryRunTransactionStatus;
230
+ };
231
+ export type GqlDryRunTransactionStatus = GqlDryRunFailureStatus | GqlDryRunSuccessStatus;
232
+ export type GqlEstimateGasPrice = {
233
+ __typename: 'EstimateGasPrice';
234
+ gasPrice: Scalars['U64'];
235
+ };
213
236
  export type GqlExcludeInput = {
214
237
  /** Messages to exclude from the selection. */
215
238
  messages: Array<Scalars['Nonce']>;
@@ -247,7 +270,7 @@ export type GqlGasCosts = {
247
270
  cfei: Scalars['U64'];
248
271
  cfsi: Scalars['U64'];
249
272
  contractRoot: GqlDependentCost;
250
- croo: Scalars['U64'];
273
+ croo: GqlDependentCost;
251
274
  csiz: GqlDependentCost;
252
275
  div: Scalars['U64'];
253
276
  divi: Scalars['U64'];
@@ -390,7 +413,6 @@ export type GqlInputCoin = {
390
413
  __typename: 'InputCoin';
391
414
  amount: Scalars['U64'];
392
415
  assetId: Scalars['AssetId'];
393
- maturity: Scalars['U32'];
394
416
  owner: Scalars['Address'];
395
417
  predicate: Scalars['HexString'];
396
418
  predicateData: Scalars['HexString'];
@@ -402,7 +424,7 @@ export type GqlInputCoin = {
402
424
  export type GqlInputContract = {
403
425
  __typename: 'InputContract';
404
426
  balanceRoot: Scalars['Bytes32'];
405
- contract: GqlContract;
427
+ contractId: Scalars['ContractId'];
406
428
  stateRoot: Scalars['Bytes32'];
407
429
  txPointer: Scalars['TxPointer'];
408
430
  utxoId: Scalars['UtxoId'];
@@ -419,6 +441,11 @@ export type GqlInputMessage = {
419
441
  sender: Scalars['Address'];
420
442
  witnessIndex: Scalars['Int'];
421
443
  };
444
+ export type GqlLatestGasPrice = {
445
+ __typename: 'LatestGasPrice';
446
+ blockHeight: Scalars['U32'];
447
+ gasPrice: Scalars['U64'];
448
+ };
422
449
  export type GqlLightOperation = {
423
450
  __typename: 'LightOperation';
424
451
  base: Scalars['U64'];
@@ -487,10 +514,16 @@ export type GqlMessageStatus = {
487
514
  };
488
515
  export type GqlMutation = {
489
516
  __typename: 'Mutation';
517
+ /**
518
+ * Resume execution of the VM instance after a breakpoint.
519
+ * Runs until the next breakpoint or until the transaction completes.
520
+ */
490
521
  continueTx: GqlRunResult;
491
- /** Execute a dry-run of the transaction using a fork of current state, no changes are committed. */
492
- dryRun: Array<GqlReceipt>;
522
+ /** Execute a dry-run of multiple transactions using a fork of current state, no changes are committed. */
523
+ dryRun: Array<GqlDryRunTransactionExecutionStatus>;
524
+ /** End debugger session. */
493
525
  endSession: Scalars['Boolean'];
526
+ /** Execute a single fuel-asm instruction. */
494
527
  execute: Scalars['Boolean'];
495
528
  /**
496
529
  * Sequentially produces `blocks_to_produce` blocks. The first block starts with
@@ -499,10 +532,23 @@ export type GqlMutation = {
499
532
  * them. The `start_timestamp` is the timestamp in seconds.
500
533
  */
501
534
  produceBlocks: Scalars['U32'];
535
+ /** Reset the VM instance to the initial state. */
502
536
  reset: Scalars['Boolean'];
537
+ /** Set a breakpoint for a VM instance. */
503
538
  setBreakpoint: Scalars['Boolean'];
539
+ /** Set single-stepping mode for the VM instance. */
504
540
  setSingleStepping: Scalars['Boolean'];
541
+ /**
542
+ * Initialize a new debugger session, returning its ID.
543
+ * A new VM instance is spawned for each session.
544
+ * The session is run in a separate database transaction,
545
+ * on top of the most recent node state.
546
+ */
505
547
  startSession: Scalars['ID'];
548
+ /**
549
+ * Run a single transaction in given session until it
550
+ * hits a breakpoint or completes.
551
+ */
506
552
  startTx: GqlRunResult;
507
553
  /**
508
554
  * Submits transaction to the `TxPool`.
@@ -515,7 +561,7 @@ export type GqlMutationContinueTxArgs = {
515
561
  id: Scalars['ID'];
516
562
  };
517
563
  export type GqlMutationDryRunArgs = {
518
- tx: Scalars['HexString'];
564
+ txs: Array<Scalars['HexString']>;
519
565
  utxoValidation?: InputMaybe<Scalars['Boolean']>;
520
566
  };
521
567
  export type GqlMutationEndSessionArgs = {
@@ -601,9 +647,9 @@ export type GqlPoAConsensus = {
601
647
  };
602
648
  export type GqlPolicies = {
603
649
  __typename: 'Policies';
604
- gasPrice?: Maybe<Scalars['U64']>;
605
650
  maturity?: Maybe<Scalars['U32']>;
606
651
  maxFee?: Maybe<Scalars['U64']>;
652
+ tip?: Maybe<Scalars['U64']>;
607
653
  witnessLimit?: Maybe<Scalars['U64']>;
608
654
  };
609
655
  export type GqlPredicateParameters = {
@@ -645,15 +691,20 @@ export type GqlQuery = {
645
691
  contract?: Maybe<GqlContract>;
646
692
  contractBalance: GqlContractBalance;
647
693
  contractBalances: GqlContractBalanceConnection;
694
+ estimateGasPrice: GqlEstimateGasPrice;
648
695
  /** Estimate the predicate gas for the provided transaction */
649
696
  estimatePredicates: GqlTransaction;
650
697
  /** Returns true when the GraphQL API is serving requests. */
651
698
  health: Scalars['Boolean'];
699
+ latestGasPrice: GqlLatestGasPrice;
700
+ /** Read read a range of memory bytes. */
652
701
  memory: Scalars['String'];
702
+ message?: Maybe<GqlMessage>;
653
703
  messageProof?: Maybe<GqlMessageProof>;
654
704
  messageStatus: GqlMessageStatus;
655
705
  messages: GqlMessageConnection;
656
706
  nodeInfo: GqlNodeInfo;
707
+ /** Read register value by index. */
657
708
  register: Scalars['U64'];
658
709
  transaction?: Maybe<GqlTransaction>;
659
710
  transactions: GqlTransactionConnection;
@@ -709,6 +760,9 @@ export type GqlQueryContractBalancesArgs = {
709
760
  first?: InputMaybe<Scalars['Int']>;
710
761
  last?: InputMaybe<Scalars['Int']>;
711
762
  };
763
+ export type GqlQueryEstimateGasPriceArgs = {
764
+ blockHorizon?: InputMaybe<Scalars['U32']>;
765
+ };
712
766
  export type GqlQueryEstimatePredicatesArgs = {
713
767
  tx: Scalars['HexString'];
714
768
  };
@@ -717,6 +771,9 @@ export type GqlQueryMemoryArgs = {
717
771
  size: Scalars['U32'];
718
772
  start: Scalars['U32'];
719
773
  };
774
+ export type GqlQueryMessageArgs = {
775
+ nonce: Scalars['Nonce'];
776
+ };
720
777
  export type GqlQueryMessageProofArgs = {
721
778
  commitBlockHeight?: InputMaybe<Scalars['U32']>;
722
779
  commitBlockId?: InputMaybe<Scalars['BlockId']>;
@@ -757,12 +814,13 @@ export type GqlReceipt = {
757
814
  __typename: 'Receipt';
758
815
  amount?: Maybe<Scalars['U64']>;
759
816
  assetId?: Maybe<Scalars['AssetId']>;
760
- contract?: Maybe<GqlContract>;
817
+ /** Set in the case of a Panic receipt to indicate a missing contract input id */
761
818
  contractId?: Maybe<Scalars['ContractId']>;
762
819
  data?: Maybe<Scalars['HexString']>;
763
820
  digest?: Maybe<Scalars['Bytes32']>;
764
821
  gas?: Maybe<Scalars['U64']>;
765
822
  gasUsed?: Maybe<Scalars['U64']>;
823
+ id?: Maybe<Scalars['ContractId']>;
766
824
  is?: Maybe<Scalars['U64']>;
767
825
  len?: Maybe<Scalars['U64']>;
768
826
  nonce?: Maybe<Scalars['Nonce']>;
@@ -780,7 +838,7 @@ export type GqlReceipt = {
780
838
  result?: Maybe<Scalars['U64']>;
781
839
  sender?: Maybe<Scalars['Address']>;
782
840
  subId?: Maybe<Scalars['Bytes32']>;
783
- to?: Maybe<GqlContract>;
841
+ to?: Maybe<Scalars['ContractId']>;
784
842
  toAddress?: Maybe<Scalars['Address']>;
785
843
  val?: Maybe<Scalars['U64']>;
786
844
  };
@@ -875,11 +933,10 @@ export type GqlTransaction = {
875
933
  __typename: 'Transaction';
876
934
  bytecodeLength?: Maybe<Scalars['U64']>;
877
935
  bytecodeWitnessIndex?: Maybe<Scalars['Int']>;
878
- gasPrice?: Maybe<Scalars['U64']>;
879
936
  id: Scalars['TransactionId'];
880
937
  inputAssetIds?: Maybe<Array<Scalars['AssetId']>>;
881
938
  inputContract?: Maybe<GqlInputContract>;
882
- inputContracts?: Maybe<Array<GqlContract>>;
939
+ inputContracts?: Maybe<Array<Scalars['ContractId']>>;
883
940
  inputs?: Maybe<Array<GqlInput>>;
884
941
  isCreate: Scalars['Boolean'];
885
942
  isMint: Scalars['Boolean'];
@@ -887,12 +944,12 @@ export type GqlTransaction = {
887
944
  maturity?: Maybe<Scalars['U32']>;
888
945
  mintAmount?: Maybe<Scalars['U64']>;
889
946
  mintAssetId?: Maybe<Scalars['AssetId']>;
947
+ mintGasPrice?: Maybe<Scalars['U64']>;
890
948
  outputContract?: Maybe<GqlContractOutput>;
891
949
  outputs: Array<GqlOutput>;
892
950
  policies?: Maybe<GqlPolicies>;
893
951
  /** Return the transaction bytes using canonical encoding */
894
952
  rawPayload: Scalars['HexString'];
895
- receipts?: Maybe<Array<GqlReceipt>>;
896
953
  receiptsRoot?: Maybe<Scalars['Bytes32']>;
897
954
  salt?: Maybe<Scalars['Salt']>;
898
955
  script?: Maybe<Scalars['HexString']>;
@@ -944,6 +1001,37 @@ type GqlTransactionStatusFragment_FailureStatus_Fragment = {
944
1001
  __typename: 'Block';
945
1002
  id: string;
946
1003
  };
1004
+ receipts: Array<{
1005
+ __typename: 'Receipt';
1006
+ id?: string | null;
1007
+ pc?: string | null;
1008
+ is?: string | null;
1009
+ to?: string | null;
1010
+ toAddress?: string | null;
1011
+ amount?: string | null;
1012
+ assetId?: string | null;
1013
+ gas?: string | null;
1014
+ param1?: string | null;
1015
+ param2?: string | null;
1016
+ val?: string | null;
1017
+ ptr?: string | null;
1018
+ digest?: string | null;
1019
+ reason?: string | null;
1020
+ ra?: string | null;
1021
+ rb?: string | null;
1022
+ rc?: string | null;
1023
+ rd?: string | null;
1024
+ len?: string | null;
1025
+ receiptType: GqlReceiptType;
1026
+ result?: string | null;
1027
+ gasUsed?: string | null;
1028
+ data?: string | null;
1029
+ sender?: string | null;
1030
+ recipient?: string | null;
1031
+ nonce?: string | null;
1032
+ contractId?: string | null;
1033
+ subId?: string | null;
1034
+ }>;
947
1035
  };
948
1036
  type GqlTransactionStatusFragment_SqueezedOutStatus_Fragment = {
949
1037
  __typename: 'SqueezedOutStatus';
@@ -963,22 +1051,12 @@ type GqlTransactionStatusFragment_SuccessStatus_Fragment = {
963
1051
  __typename: 'Block';
964
1052
  id: string;
965
1053
  };
966
- programState?: {
967
- __typename: 'ProgramState';
968
- returnType: GqlReturnType;
969
- data: string;
970
- } | null;
971
- };
972
- export type GqlTransactionStatusFragmentFragment = GqlTransactionStatusFragment_FailureStatus_Fragment | GqlTransactionStatusFragment_SqueezedOutStatus_Fragment | GqlTransactionStatusFragment_SubmittedStatus_Fragment | GqlTransactionStatusFragment_SuccessStatus_Fragment;
973
- export type GqlTransactionFragmentFragment = {
974
- __typename: 'Transaction';
975
- id: string;
976
- rawPayload: string;
977
- gasPrice?: string | null;
978
- receipts?: Array<{
1054
+ receipts: Array<{
979
1055
  __typename: 'Receipt';
1056
+ id?: string | null;
980
1057
  pc?: string | null;
981
1058
  is?: string | null;
1059
+ to?: string | null;
982
1060
  toAddress?: string | null;
983
1061
  amount?: string | null;
984
1062
  assetId?: string | null;
@@ -1003,15 +1081,18 @@ export type GqlTransactionFragmentFragment = {
1003
1081
  nonce?: string | null;
1004
1082
  contractId?: string | null;
1005
1083
  subId?: string | null;
1006
- contract?: {
1007
- __typename: 'Contract';
1008
- id: string;
1009
- } | null;
1010
- to?: {
1011
- __typename: 'Contract';
1012
- id: string;
1013
- } | null;
1014
- }> | null;
1084
+ }>;
1085
+ programState?: {
1086
+ __typename: 'ProgramState';
1087
+ returnType: GqlReturnType;
1088
+ data: string;
1089
+ } | null;
1090
+ };
1091
+ export type GqlTransactionStatusFragmentFragment = GqlTransactionStatusFragment_FailureStatus_Fragment | GqlTransactionStatusFragment_SqueezedOutStatus_Fragment | GqlTransactionStatusFragment_SubmittedStatus_Fragment | GqlTransactionStatusFragment_SuccessStatus_Fragment;
1092
+ export type GqlTransactionFragmentFragment = {
1093
+ __typename: 'Transaction';
1094
+ id: string;
1095
+ rawPayload: string;
1015
1096
  status?: {
1016
1097
  __typename: 'FailureStatus';
1017
1098
  time: string;
@@ -1021,6 +1102,37 @@ export type GqlTransactionFragmentFragment = {
1021
1102
  __typename: 'Block';
1022
1103
  id: string;
1023
1104
  };
1105
+ receipts: Array<{
1106
+ __typename: 'Receipt';
1107
+ id?: string | null;
1108
+ pc?: string | null;
1109
+ is?: string | null;
1110
+ to?: string | null;
1111
+ toAddress?: string | null;
1112
+ amount?: string | null;
1113
+ assetId?: string | null;
1114
+ gas?: string | null;
1115
+ param1?: string | null;
1116
+ param2?: string | null;
1117
+ val?: string | null;
1118
+ ptr?: string | null;
1119
+ digest?: string | null;
1120
+ reason?: string | null;
1121
+ ra?: string | null;
1122
+ rb?: string | null;
1123
+ rc?: string | null;
1124
+ rd?: string | null;
1125
+ len?: string | null;
1126
+ receiptType: GqlReceiptType;
1127
+ result?: string | null;
1128
+ gasUsed?: string | null;
1129
+ data?: string | null;
1130
+ sender?: string | null;
1131
+ recipient?: string | null;
1132
+ nonce?: string | null;
1133
+ contractId?: string | null;
1134
+ subId?: string | null;
1135
+ }>;
1024
1136
  } | {
1025
1137
  __typename: 'SqueezedOutStatus';
1026
1138
  reason: string;
@@ -1037,6 +1149,37 @@ export type GqlTransactionFragmentFragment = {
1037
1149
  __typename: 'Block';
1038
1150
  id: string;
1039
1151
  };
1152
+ receipts: Array<{
1153
+ __typename: 'Receipt';
1154
+ id?: string | null;
1155
+ pc?: string | null;
1156
+ is?: string | null;
1157
+ to?: string | null;
1158
+ toAddress?: string | null;
1159
+ amount?: string | null;
1160
+ assetId?: string | null;
1161
+ gas?: string | null;
1162
+ param1?: string | null;
1163
+ param2?: string | null;
1164
+ val?: string | null;
1165
+ ptr?: string | null;
1166
+ digest?: string | null;
1167
+ reason?: string | null;
1168
+ ra?: string | null;
1169
+ rb?: string | null;
1170
+ rc?: string | null;
1171
+ rd?: string | null;
1172
+ len?: string | null;
1173
+ receiptType: GqlReceiptType;
1174
+ result?: string | null;
1175
+ gasUsed?: string | null;
1176
+ data?: string | null;
1177
+ sender?: string | null;
1178
+ recipient?: string | null;
1179
+ nonce?: string | null;
1180
+ contractId?: string | null;
1181
+ subId?: string | null;
1182
+ }>;
1040
1183
  programState?: {
1041
1184
  __typename: 'ProgramState';
1042
1185
  returnType: GqlReturnType;
@@ -1068,10 +1211,29 @@ export type GqlTransactionEstimatePredicatesFragmentFragment = {
1068
1211
  predicateGasUsed: string;
1069
1212
  }> | null;
1070
1213
  };
1214
+ export type GqlDryRunFailureStatusFragmentFragment = {
1215
+ __typename: 'DryRunFailureStatus';
1216
+ reason: string;
1217
+ programState?: {
1218
+ __typename: 'ProgramState';
1219
+ returnType: GqlReturnType;
1220
+ data: string;
1221
+ } | null;
1222
+ };
1223
+ export type GqlDryRunSuccessStatusFragmentFragment = {
1224
+ __typename: 'DryRunSuccessStatus';
1225
+ programState?: {
1226
+ __typename: 'ProgramState';
1227
+ returnType: GqlReturnType;
1228
+ data: string;
1229
+ } | null;
1230
+ };
1071
1231
  export type GqlReceiptFragmentFragment = {
1072
1232
  __typename: 'Receipt';
1233
+ id?: string | null;
1073
1234
  pc?: string | null;
1074
1235
  is?: string | null;
1236
+ to?: string | null;
1075
1237
  toAddress?: string | null;
1076
1238
  amount?: string | null;
1077
1239
  assetId?: string | null;
@@ -1096,21 +1258,82 @@ export type GqlReceiptFragmentFragment = {
1096
1258
  nonce?: string | null;
1097
1259
  contractId?: string | null;
1098
1260
  subId?: string | null;
1099
- contract?: {
1100
- __typename: 'Contract';
1101
- id: string;
1261
+ };
1262
+ type GqlDryRunTransactionStatusFragment_DryRunFailureStatus_Fragment = {
1263
+ __typename: 'DryRunFailureStatus';
1264
+ reason: string;
1265
+ programState?: {
1266
+ __typename: 'ProgramState';
1267
+ returnType: GqlReturnType;
1268
+ data: string;
1102
1269
  } | null;
1103
- to?: {
1104
- __typename: 'Contract';
1105
- id: string;
1270
+ };
1271
+ type GqlDryRunTransactionStatusFragment_DryRunSuccessStatus_Fragment = {
1272
+ __typename: 'DryRunSuccessStatus';
1273
+ programState?: {
1274
+ __typename: 'ProgramState';
1275
+ returnType: GqlReturnType;
1276
+ data: string;
1106
1277
  } | null;
1107
1278
  };
1279
+ export type GqlDryRunTransactionStatusFragmentFragment = GqlDryRunTransactionStatusFragment_DryRunFailureStatus_Fragment | GqlDryRunTransactionStatusFragment_DryRunSuccessStatus_Fragment;
1280
+ export type GqlDryRunTransactionExecutionStatusFragmentFragment = {
1281
+ __typename: 'DryRunTransactionExecutionStatus';
1282
+ id: string;
1283
+ status: {
1284
+ __typename: 'DryRunFailureStatus';
1285
+ reason: string;
1286
+ programState?: {
1287
+ __typename: 'ProgramState';
1288
+ returnType: GqlReturnType;
1289
+ data: string;
1290
+ } | null;
1291
+ } | {
1292
+ __typename: 'DryRunSuccessStatus';
1293
+ programState?: {
1294
+ __typename: 'ProgramState';
1295
+ returnType: GqlReturnType;
1296
+ data: string;
1297
+ } | null;
1298
+ };
1299
+ receipts: Array<{
1300
+ __typename: 'Receipt';
1301
+ id?: string | null;
1302
+ pc?: string | null;
1303
+ is?: string | null;
1304
+ to?: string | null;
1305
+ toAddress?: string | null;
1306
+ amount?: string | null;
1307
+ assetId?: string | null;
1308
+ gas?: string | null;
1309
+ param1?: string | null;
1310
+ param2?: string | null;
1311
+ val?: string | null;
1312
+ ptr?: string | null;
1313
+ digest?: string | null;
1314
+ reason?: string | null;
1315
+ ra?: string | null;
1316
+ rb?: string | null;
1317
+ rc?: string | null;
1318
+ rd?: string | null;
1319
+ len?: string | null;
1320
+ receiptType: GqlReceiptType;
1321
+ result?: string | null;
1322
+ gasUsed?: string | null;
1323
+ data?: string | null;
1324
+ sender?: string | null;
1325
+ recipient?: string | null;
1326
+ nonce?: string | null;
1327
+ contractId?: string | null;
1328
+ subId?: string | null;
1329
+ }>;
1330
+ };
1108
1331
  export type GqlBlockFragmentFragment = {
1109
1332
  __typename: 'Block';
1110
1333
  id: string;
1334
+ height: any;
1111
1335
  header: {
1112
1336
  __typename: 'Header';
1113
- height: any;
1114
1337
  time: string;
1115
1338
  };
1116
1339
  transactions: Array<{
@@ -1124,7 +1347,6 @@ export type GqlCoinFragmentFragment = {
1124
1347
  owner: string;
1125
1348
  amount: string;
1126
1349
  assetId: string;
1127
- maturity: any;
1128
1350
  blockCreated: any;
1129
1351
  txCreatedIdx: string;
1130
1352
  };
@@ -1251,7 +1473,6 @@ export type GqlGasCostsFragmentFragment = {
1251
1473
  cb: string;
1252
1474
  cfei: string;
1253
1475
  cfsi: string;
1254
- croo: string;
1255
1476
  div: string;
1256
1477
  divi: string;
1257
1478
  ecr1: string;
@@ -1347,6 +1568,15 @@ export type GqlGasCostsFragmentFragment = {
1347
1568
  base: string;
1348
1569
  unitsPerGas: string;
1349
1570
  };
1571
+ croo: {
1572
+ __typename: 'HeavyOperation';
1573
+ base: string;
1574
+ gasPerUnit: string;
1575
+ } | {
1576
+ __typename: 'LightOperation';
1577
+ base: string;
1578
+ unitsPerGas: string;
1579
+ };
1350
1580
  csiz: {
1351
1581
  __typename: 'HeavyOperation';
1352
1582
  base: string;
@@ -1558,7 +1788,6 @@ export type GqlConsensusParametersFragmentFragment = {
1558
1788
  cb: string;
1559
1789
  cfei: string;
1560
1790
  cfsi: string;
1561
- croo: string;
1562
1791
  div: string;
1563
1792
  divi: string;
1564
1793
  ecr1: string;
@@ -1654,6 +1883,15 @@ export type GqlConsensusParametersFragmentFragment = {
1654
1883
  base: string;
1655
1884
  unitsPerGas: string;
1656
1885
  };
1886
+ croo: {
1887
+ __typename: 'HeavyOperation';
1888
+ base: string;
1889
+ gasPerUnit: string;
1890
+ } | {
1891
+ __typename: 'LightOperation';
1892
+ base: string;
1893
+ unitsPerGas: string;
1894
+ };
1657
1895
  csiz: {
1658
1896
  __typename: 'HeavyOperation';
1659
1897
  base: string;
@@ -1825,9 +2063,9 @@ export type GqlChainInfoFragmentFragment = {
1825
2063
  latestBlock: {
1826
2064
  __typename: 'Block';
1827
2065
  id: string;
2066
+ height: any;
1828
2067
  header: {
1829
2068
  __typename: 'Header';
1830
- height: any;
1831
2069
  time: string;
1832
2070
  };
1833
2071
  transactions: Array<{
@@ -1883,7 +2121,6 @@ export type GqlChainInfoFragmentFragment = {
1883
2121
  cb: string;
1884
2122
  cfei: string;
1885
2123
  cfsi: string;
1886
- croo: string;
1887
2124
  div: string;
1888
2125
  divi: string;
1889
2126
  ecr1: string;
@@ -1979,6 +2216,15 @@ export type GqlChainInfoFragmentFragment = {
1979
2216
  base: string;
1980
2217
  unitsPerGas: string;
1981
2218
  };
2219
+ croo: {
2220
+ __typename: 'HeavyOperation';
2221
+ base: string;
2222
+ gasPerUnit: string;
2223
+ } | {
2224
+ __typename: 'LightOperation';
2225
+ base: string;
2226
+ unitsPerGas: string;
2227
+ };
1982
2228
  csiz: {
1983
2229
  __typename: 'HeavyOperation';
1984
2230
  base: string;
@@ -2175,15 +2421,6 @@ export type GqlNodeInfoFragmentFragment = {
2175
2421
  maxTx: string;
2176
2422
  maxDepth: string;
2177
2423
  nodeVersion: string;
2178
- peers: Array<{
2179
- __typename: 'PeerInfo';
2180
- id: string;
2181
- addresses: Array<string>;
2182
- clientVersion?: string | null;
2183
- blockHeight?: any | null;
2184
- lastHeartbeatMs: string;
2185
- appScore: number;
2186
- }>;
2187
2424
  };
2188
2425
  export type GqlGetNodeInfoQueryVariables = Exact<{
2189
2426
  [key: string]: never;
@@ -2198,15 +2435,6 @@ export type GqlGetNodeInfoQuery = {
2198
2435
  maxTx: string;
2199
2436
  maxDepth: string;
2200
2437
  nodeVersion: string;
2201
- peers: Array<{
2202
- __typename: 'PeerInfo';
2203
- id: string;
2204
- addresses: Array<string>;
2205
- clientVersion?: string | null;
2206
- blockHeight?: any | null;
2207
- lastHeartbeatMs: string;
2208
- appScore: number;
2209
- }>;
2210
2438
  };
2211
2439
  };
2212
2440
  export type GqlGetChainQueryVariables = Exact<{
@@ -2221,9 +2449,9 @@ export type GqlGetChainQuery = {
2221
2449
  latestBlock: {
2222
2450
  __typename: 'Block';
2223
2451
  id: string;
2452
+ height: any;
2224
2453
  header: {
2225
2454
  __typename: 'Header';
2226
- height: any;
2227
2455
  time: string;
2228
2456
  };
2229
2457
  transactions: Array<{
@@ -2279,7 +2507,6 @@ export type GqlGetChainQuery = {
2279
2507
  cb: string;
2280
2508
  cfei: string;
2281
2509
  cfsi: string;
2282
- croo: string;
2283
2510
  div: string;
2284
2511
  divi: string;
2285
2512
  ecr1: string;
@@ -2375,6 +2602,15 @@ export type GqlGetChainQuery = {
2375
2602
  base: string;
2376
2603
  unitsPerGas: string;
2377
2604
  };
2605
+ croo: {
2606
+ __typename: 'HeavyOperation';
2607
+ base: string;
2608
+ gasPerUnit: string;
2609
+ } | {
2610
+ __typename: 'LightOperation';
2611
+ base: string;
2612
+ unitsPerGas: string;
2613
+ };
2378
2614
  csiz: {
2379
2615
  __typename: 'HeavyOperation';
2380
2616
  base: string;
@@ -2550,44 +2786,6 @@ export type GqlGetTransactionQuery = {
2550
2786
  __typename: 'Transaction';
2551
2787
  id: string;
2552
2788
  rawPayload: string;
2553
- gasPrice?: string | null;
2554
- receipts?: Array<{
2555
- __typename: 'Receipt';
2556
- pc?: string | null;
2557
- is?: string | null;
2558
- toAddress?: string | null;
2559
- amount?: string | null;
2560
- assetId?: string | null;
2561
- gas?: string | null;
2562
- param1?: string | null;
2563
- param2?: string | null;
2564
- val?: string | null;
2565
- ptr?: string | null;
2566
- digest?: string | null;
2567
- reason?: string | null;
2568
- ra?: string | null;
2569
- rb?: string | null;
2570
- rc?: string | null;
2571
- rd?: string | null;
2572
- len?: string | null;
2573
- receiptType: GqlReceiptType;
2574
- result?: string | null;
2575
- gasUsed?: string | null;
2576
- data?: string | null;
2577
- sender?: string | null;
2578
- recipient?: string | null;
2579
- nonce?: string | null;
2580
- contractId?: string | null;
2581
- subId?: string | null;
2582
- contract?: {
2583
- __typename: 'Contract';
2584
- id: string;
2585
- } | null;
2586
- to?: {
2587
- __typename: 'Contract';
2588
- id: string;
2589
- } | null;
2590
- }> | null;
2591
2789
  status?: {
2592
2790
  __typename: 'FailureStatus';
2593
2791
  time: string;
@@ -2597,6 +2795,37 @@ export type GqlGetTransactionQuery = {
2597
2795
  __typename: 'Block';
2598
2796
  id: string;
2599
2797
  };
2798
+ receipts: Array<{
2799
+ __typename: 'Receipt';
2800
+ id?: string | null;
2801
+ pc?: string | null;
2802
+ is?: string | null;
2803
+ to?: string | null;
2804
+ toAddress?: string | null;
2805
+ amount?: string | null;
2806
+ assetId?: string | null;
2807
+ gas?: string | null;
2808
+ param1?: string | null;
2809
+ param2?: string | null;
2810
+ val?: string | null;
2811
+ ptr?: string | null;
2812
+ digest?: string | null;
2813
+ reason?: string | null;
2814
+ ra?: string | null;
2815
+ rb?: string | null;
2816
+ rc?: string | null;
2817
+ rd?: string | null;
2818
+ len?: string | null;
2819
+ receiptType: GqlReceiptType;
2820
+ result?: string | null;
2821
+ gasUsed?: string | null;
2822
+ data?: string | null;
2823
+ sender?: string | null;
2824
+ recipient?: string | null;
2825
+ nonce?: string | null;
2826
+ contractId?: string | null;
2827
+ subId?: string | null;
2828
+ }>;
2600
2829
  } | {
2601
2830
  __typename: 'SqueezedOutStatus';
2602
2831
  reason: string;
@@ -2613,6 +2842,37 @@ export type GqlGetTransactionQuery = {
2613
2842
  __typename: 'Block';
2614
2843
  id: string;
2615
2844
  };
2845
+ receipts: Array<{
2846
+ __typename: 'Receipt';
2847
+ id?: string | null;
2848
+ pc?: string | null;
2849
+ is?: string | null;
2850
+ to?: string | null;
2851
+ toAddress?: string | null;
2852
+ amount?: string | null;
2853
+ assetId?: string | null;
2854
+ gas?: string | null;
2855
+ param1?: string | null;
2856
+ param2?: string | null;
2857
+ val?: string | null;
2858
+ ptr?: string | null;
2859
+ digest?: string | null;
2860
+ reason?: string | null;
2861
+ ra?: string | null;
2862
+ rb?: string | null;
2863
+ rc?: string | null;
2864
+ rd?: string | null;
2865
+ len?: string | null;
2866
+ receiptType: GqlReceiptType;
2867
+ result?: string | null;
2868
+ gasUsed?: string | null;
2869
+ data?: string | null;
2870
+ sender?: string | null;
2871
+ recipient?: string | null;
2872
+ nonce?: string | null;
2873
+ contractId?: string | null;
2874
+ subId?: string | null;
2875
+ }>;
2616
2876
  programState?: {
2617
2877
  __typename: 'ProgramState';
2618
2878
  returnType: GqlReturnType;
@@ -2630,44 +2890,6 @@ export type GqlGetTransactionWithReceiptsQuery = {
2630
2890
  __typename: 'Transaction';
2631
2891
  id: string;
2632
2892
  rawPayload: string;
2633
- gasPrice?: string | null;
2634
- receipts?: Array<{
2635
- __typename: 'Receipt';
2636
- pc?: string | null;
2637
- is?: string | null;
2638
- toAddress?: string | null;
2639
- amount?: string | null;
2640
- assetId?: string | null;
2641
- gas?: string | null;
2642
- param1?: string | null;
2643
- param2?: string | null;
2644
- val?: string | null;
2645
- ptr?: string | null;
2646
- digest?: string | null;
2647
- reason?: string | null;
2648
- ra?: string | null;
2649
- rb?: string | null;
2650
- rc?: string | null;
2651
- rd?: string | null;
2652
- len?: string | null;
2653
- receiptType: GqlReceiptType;
2654
- result?: string | null;
2655
- gasUsed?: string | null;
2656
- data?: string | null;
2657
- sender?: string | null;
2658
- recipient?: string | null;
2659
- nonce?: string | null;
2660
- contractId?: string | null;
2661
- subId?: string | null;
2662
- contract?: {
2663
- __typename: 'Contract';
2664
- id: string;
2665
- } | null;
2666
- to?: {
2667
- __typename: 'Contract';
2668
- id: string;
2669
- } | null;
2670
- }> | null;
2671
2893
  status?: {
2672
2894
  __typename: 'FailureStatus';
2673
2895
  time: string;
@@ -2677,6 +2899,37 @@ export type GqlGetTransactionWithReceiptsQuery = {
2677
2899
  __typename: 'Block';
2678
2900
  id: string;
2679
2901
  };
2902
+ receipts: Array<{
2903
+ __typename: 'Receipt';
2904
+ id?: string | null;
2905
+ pc?: string | null;
2906
+ is?: string | null;
2907
+ to?: string | null;
2908
+ toAddress?: string | null;
2909
+ amount?: string | null;
2910
+ assetId?: string | null;
2911
+ gas?: string | null;
2912
+ param1?: string | null;
2913
+ param2?: string | null;
2914
+ val?: string | null;
2915
+ ptr?: string | null;
2916
+ digest?: string | null;
2917
+ reason?: string | null;
2918
+ ra?: string | null;
2919
+ rb?: string | null;
2920
+ rc?: string | null;
2921
+ rd?: string | null;
2922
+ len?: string | null;
2923
+ receiptType: GqlReceiptType;
2924
+ result?: string | null;
2925
+ gasUsed?: string | null;
2926
+ data?: string | null;
2927
+ sender?: string | null;
2928
+ recipient?: string | null;
2929
+ nonce?: string | null;
2930
+ contractId?: string | null;
2931
+ subId?: string | null;
2932
+ }>;
2680
2933
  } | {
2681
2934
  __typename: 'SqueezedOutStatus';
2682
2935
  reason: string;
@@ -2693,6 +2946,37 @@ export type GqlGetTransactionWithReceiptsQuery = {
2693
2946
  __typename: 'Block';
2694
2947
  id: string;
2695
2948
  };
2949
+ receipts: Array<{
2950
+ __typename: 'Receipt';
2951
+ id?: string | null;
2952
+ pc?: string | null;
2953
+ is?: string | null;
2954
+ to?: string | null;
2955
+ toAddress?: string | null;
2956
+ amount?: string | null;
2957
+ assetId?: string | null;
2958
+ gas?: string | null;
2959
+ param1?: string | null;
2960
+ param2?: string | null;
2961
+ val?: string | null;
2962
+ ptr?: string | null;
2963
+ digest?: string | null;
2964
+ reason?: string | null;
2965
+ ra?: string | null;
2966
+ rb?: string | null;
2967
+ rc?: string | null;
2968
+ rd?: string | null;
2969
+ len?: string | null;
2970
+ receiptType: GqlReceiptType;
2971
+ result?: string | null;
2972
+ gasUsed?: string | null;
2973
+ data?: string | null;
2974
+ sender?: string | null;
2975
+ recipient?: string | null;
2976
+ nonce?: string | null;
2977
+ contractId?: string | null;
2978
+ subId?: string | null;
2979
+ }>;
2696
2980
  programState?: {
2697
2981
  __typename: 'ProgramState';
2698
2982
  returnType: GqlReturnType;
@@ -2717,44 +3001,6 @@ export type GqlGetTransactionsQuery = {
2717
3001
  __typename: 'Transaction';
2718
3002
  id: string;
2719
3003
  rawPayload: string;
2720
- gasPrice?: string | null;
2721
- receipts?: Array<{
2722
- __typename: 'Receipt';
2723
- pc?: string | null;
2724
- is?: string | null;
2725
- toAddress?: string | null;
2726
- amount?: string | null;
2727
- assetId?: string | null;
2728
- gas?: string | null;
2729
- param1?: string | null;
2730
- param2?: string | null;
2731
- val?: string | null;
2732
- ptr?: string | null;
2733
- digest?: string | null;
2734
- reason?: string | null;
2735
- ra?: string | null;
2736
- rb?: string | null;
2737
- rc?: string | null;
2738
- rd?: string | null;
2739
- len?: string | null;
2740
- receiptType: GqlReceiptType;
2741
- result?: string | null;
2742
- gasUsed?: string | null;
2743
- data?: string | null;
2744
- sender?: string | null;
2745
- recipient?: string | null;
2746
- nonce?: string | null;
2747
- contractId?: string | null;
2748
- subId?: string | null;
2749
- contract?: {
2750
- __typename: 'Contract';
2751
- id: string;
2752
- } | null;
2753
- to?: {
2754
- __typename: 'Contract';
2755
- id: string;
2756
- } | null;
2757
- }> | null;
2758
3004
  status?: {
2759
3005
  __typename: 'FailureStatus';
2760
3006
  time: string;
@@ -2764,6 +3010,37 @@ export type GqlGetTransactionsQuery = {
2764
3010
  __typename: 'Block';
2765
3011
  id: string;
2766
3012
  };
3013
+ receipts: Array<{
3014
+ __typename: 'Receipt';
3015
+ id?: string | null;
3016
+ pc?: string | null;
3017
+ is?: string | null;
3018
+ to?: string | null;
3019
+ toAddress?: string | null;
3020
+ amount?: string | null;
3021
+ assetId?: string | null;
3022
+ gas?: string | null;
3023
+ param1?: string | null;
3024
+ param2?: string | null;
3025
+ val?: string | null;
3026
+ ptr?: string | null;
3027
+ digest?: string | null;
3028
+ reason?: string | null;
3029
+ ra?: string | null;
3030
+ rb?: string | null;
3031
+ rc?: string | null;
3032
+ rd?: string | null;
3033
+ len?: string | null;
3034
+ receiptType: GqlReceiptType;
3035
+ result?: string | null;
3036
+ gasUsed?: string | null;
3037
+ data?: string | null;
3038
+ sender?: string | null;
3039
+ recipient?: string | null;
3040
+ nonce?: string | null;
3041
+ contractId?: string | null;
3042
+ subId?: string | null;
3043
+ }>;
2767
3044
  } | {
2768
3045
  __typename: 'SqueezedOutStatus';
2769
3046
  reason: string;
@@ -2780,6 +3057,37 @@ export type GqlGetTransactionsQuery = {
2780
3057
  __typename: 'Block';
2781
3058
  id: string;
2782
3059
  };
3060
+ receipts: Array<{
3061
+ __typename: 'Receipt';
3062
+ id?: string | null;
3063
+ pc?: string | null;
3064
+ is?: string | null;
3065
+ to?: string | null;
3066
+ toAddress?: string | null;
3067
+ amount?: string | null;
3068
+ assetId?: string | null;
3069
+ gas?: string | null;
3070
+ param1?: string | null;
3071
+ param2?: string | null;
3072
+ val?: string | null;
3073
+ ptr?: string | null;
3074
+ digest?: string | null;
3075
+ reason?: string | null;
3076
+ ra?: string | null;
3077
+ rb?: string | null;
3078
+ rc?: string | null;
3079
+ rd?: string | null;
3080
+ len?: string | null;
3081
+ receiptType: GqlReceiptType;
3082
+ result?: string | null;
3083
+ gasUsed?: string | null;
3084
+ data?: string | null;
3085
+ sender?: string | null;
3086
+ recipient?: string | null;
3087
+ nonce?: string | null;
3088
+ contractId?: string | null;
3089
+ subId?: string | null;
3090
+ }>;
2783
3091
  programState?: {
2784
3092
  __typename: 'ProgramState';
2785
3093
  returnType: GqlReturnType;
@@ -2814,44 +3122,6 @@ export type GqlGetTransactionsByOwnerQuery = {
2814
3122
  __typename: 'Transaction';
2815
3123
  id: string;
2816
3124
  rawPayload: string;
2817
- gasPrice?: string | null;
2818
- receipts?: Array<{
2819
- __typename: 'Receipt';
2820
- pc?: string | null;
2821
- is?: string | null;
2822
- toAddress?: string | null;
2823
- amount?: string | null;
2824
- assetId?: string | null;
2825
- gas?: string | null;
2826
- param1?: string | null;
2827
- param2?: string | null;
2828
- val?: string | null;
2829
- ptr?: string | null;
2830
- digest?: string | null;
2831
- reason?: string | null;
2832
- ra?: string | null;
2833
- rb?: string | null;
2834
- rc?: string | null;
2835
- rd?: string | null;
2836
- len?: string | null;
2837
- receiptType: GqlReceiptType;
2838
- result?: string | null;
2839
- gasUsed?: string | null;
2840
- data?: string | null;
2841
- sender?: string | null;
2842
- recipient?: string | null;
2843
- nonce?: string | null;
2844
- contractId?: string | null;
2845
- subId?: string | null;
2846
- contract?: {
2847
- __typename: 'Contract';
2848
- id: string;
2849
- } | null;
2850
- to?: {
2851
- __typename: 'Contract';
2852
- id: string;
2853
- } | null;
2854
- }> | null;
2855
3125
  status?: {
2856
3126
  __typename: 'FailureStatus';
2857
3127
  time: string;
@@ -2861,6 +3131,37 @@ export type GqlGetTransactionsByOwnerQuery = {
2861
3131
  __typename: 'Block';
2862
3132
  id: string;
2863
3133
  };
3134
+ receipts: Array<{
3135
+ __typename: 'Receipt';
3136
+ id?: string | null;
3137
+ pc?: string | null;
3138
+ is?: string | null;
3139
+ to?: string | null;
3140
+ toAddress?: string | null;
3141
+ amount?: string | null;
3142
+ assetId?: string | null;
3143
+ gas?: string | null;
3144
+ param1?: string | null;
3145
+ param2?: string | null;
3146
+ val?: string | null;
3147
+ ptr?: string | null;
3148
+ digest?: string | null;
3149
+ reason?: string | null;
3150
+ ra?: string | null;
3151
+ rb?: string | null;
3152
+ rc?: string | null;
3153
+ rd?: string | null;
3154
+ len?: string | null;
3155
+ receiptType: GqlReceiptType;
3156
+ result?: string | null;
3157
+ gasUsed?: string | null;
3158
+ data?: string | null;
3159
+ sender?: string | null;
3160
+ recipient?: string | null;
3161
+ nonce?: string | null;
3162
+ contractId?: string | null;
3163
+ subId?: string | null;
3164
+ }>;
2864
3165
  } | {
2865
3166
  __typename: 'SqueezedOutStatus';
2866
3167
  reason: string;
@@ -2877,6 +3178,37 @@ export type GqlGetTransactionsByOwnerQuery = {
2877
3178
  __typename: 'Block';
2878
3179
  id: string;
2879
3180
  };
3181
+ receipts: Array<{
3182
+ __typename: 'Receipt';
3183
+ id?: string | null;
3184
+ pc?: string | null;
3185
+ is?: string | null;
3186
+ to?: string | null;
3187
+ toAddress?: string | null;
3188
+ amount?: string | null;
3189
+ assetId?: string | null;
3190
+ gas?: string | null;
3191
+ param1?: string | null;
3192
+ param2?: string | null;
3193
+ val?: string | null;
3194
+ ptr?: string | null;
3195
+ digest?: string | null;
3196
+ reason?: string | null;
3197
+ ra?: string | null;
3198
+ rb?: string | null;
3199
+ rc?: string | null;
3200
+ rd?: string | null;
3201
+ len?: string | null;
3202
+ receiptType: GqlReceiptType;
3203
+ result?: string | null;
3204
+ gasUsed?: string | null;
3205
+ data?: string | null;
3206
+ sender?: string | null;
3207
+ recipient?: string | null;
3208
+ nonce?: string | null;
3209
+ contractId?: string | null;
3210
+ subId?: string | null;
3211
+ }>;
2880
3212
  programState?: {
2881
3213
  __typename: 'ProgramState';
2882
3214
  returnType: GqlReturnType;
@@ -2914,9 +3246,9 @@ export type GqlGetBlockQuery = {
2914
3246
  block?: {
2915
3247
  __typename: 'Block';
2916
3248
  id: string;
3249
+ height: any;
2917
3250
  header: {
2918
3251
  __typename: 'Header';
2919
- height: any;
2920
3252
  time: string;
2921
3253
  };
2922
3254
  transactions: Array<{
@@ -2934,48 +3266,11 @@ export type GqlGetBlockWithTransactionsQuery = {
2934
3266
  block?: {
2935
3267
  __typename: 'Block';
2936
3268
  id: string;
3269
+ height: any;
2937
3270
  transactions: Array<{
2938
- __typename: 'Transaction';
2939
- id: string;
2940
- rawPayload: string;
2941
- gasPrice?: string | null;
2942
- receipts?: Array<{
2943
- __typename: 'Receipt';
2944
- pc?: string | null;
2945
- is?: string | null;
2946
- toAddress?: string | null;
2947
- amount?: string | null;
2948
- assetId?: string | null;
2949
- gas?: string | null;
2950
- param1?: string | null;
2951
- param2?: string | null;
2952
- val?: string | null;
2953
- ptr?: string | null;
2954
- digest?: string | null;
2955
- reason?: string | null;
2956
- ra?: string | null;
2957
- rb?: string | null;
2958
- rc?: string | null;
2959
- rd?: string | null;
2960
- len?: string | null;
2961
- receiptType: GqlReceiptType;
2962
- result?: string | null;
2963
- gasUsed?: string | null;
2964
- data?: string | null;
2965
- sender?: string | null;
2966
- recipient?: string | null;
2967
- nonce?: string | null;
2968
- contractId?: string | null;
2969
- subId?: string | null;
2970
- contract?: {
2971
- __typename: 'Contract';
2972
- id: string;
2973
- } | null;
2974
- to?: {
2975
- __typename: 'Contract';
2976
- id: string;
2977
- } | null;
2978
- }> | null;
3271
+ __typename: 'Transaction';
3272
+ id: string;
3273
+ rawPayload: string;
2979
3274
  status?: {
2980
3275
  __typename: 'FailureStatus';
2981
3276
  time: string;
@@ -2985,6 +3280,37 @@ export type GqlGetBlockWithTransactionsQuery = {
2985
3280
  __typename: 'Block';
2986
3281
  id: string;
2987
3282
  };
3283
+ receipts: Array<{
3284
+ __typename: 'Receipt';
3285
+ id?: string | null;
3286
+ pc?: string | null;
3287
+ is?: string | null;
3288
+ to?: string | null;
3289
+ toAddress?: string | null;
3290
+ amount?: string | null;
3291
+ assetId?: string | null;
3292
+ gas?: string | null;
3293
+ param1?: string | null;
3294
+ param2?: string | null;
3295
+ val?: string | null;
3296
+ ptr?: string | null;
3297
+ digest?: string | null;
3298
+ reason?: string | null;
3299
+ ra?: string | null;
3300
+ rb?: string | null;
3301
+ rc?: string | null;
3302
+ rd?: string | null;
3303
+ len?: string | null;
3304
+ receiptType: GqlReceiptType;
3305
+ result?: string | null;
3306
+ gasUsed?: string | null;
3307
+ data?: string | null;
3308
+ sender?: string | null;
3309
+ recipient?: string | null;
3310
+ nonce?: string | null;
3311
+ contractId?: string | null;
3312
+ subId?: string | null;
3313
+ }>;
2988
3314
  } | {
2989
3315
  __typename: 'SqueezedOutStatus';
2990
3316
  reason: string;
@@ -3001,6 +3327,37 @@ export type GqlGetBlockWithTransactionsQuery = {
3001
3327
  __typename: 'Block';
3002
3328
  id: string;
3003
3329
  };
3330
+ receipts: Array<{
3331
+ __typename: 'Receipt';
3332
+ id?: string | null;
3333
+ pc?: string | null;
3334
+ is?: string | null;
3335
+ to?: string | null;
3336
+ toAddress?: string | null;
3337
+ amount?: string | null;
3338
+ assetId?: string | null;
3339
+ gas?: string | null;
3340
+ param1?: string | null;
3341
+ param2?: string | null;
3342
+ val?: string | null;
3343
+ ptr?: string | null;
3344
+ digest?: string | null;
3345
+ reason?: string | null;
3346
+ ra?: string | null;
3347
+ rb?: string | null;
3348
+ rc?: string | null;
3349
+ rd?: string | null;
3350
+ len?: string | null;
3351
+ receiptType: GqlReceiptType;
3352
+ result?: string | null;
3353
+ gasUsed?: string | null;
3354
+ data?: string | null;
3355
+ sender?: string | null;
3356
+ recipient?: string | null;
3357
+ nonce?: string | null;
3358
+ contractId?: string | null;
3359
+ subId?: string | null;
3360
+ }>;
3004
3361
  programState?: {
3005
3362
  __typename: 'ProgramState';
3006
3363
  returnType: GqlReturnType;
@@ -3010,7 +3367,6 @@ export type GqlGetBlockWithTransactionsQuery = {
3010
3367
  }>;
3011
3368
  header: {
3012
3369
  __typename: 'Header';
3013
- height: any;
3014
3370
  time: string;
3015
3371
  };
3016
3372
  } | null;
@@ -3030,9 +3386,9 @@ export type GqlGetBlocksQuery = {
3030
3386
  node: {
3031
3387
  __typename: 'Block';
3032
3388
  id: string;
3389
+ height: any;
3033
3390
  header: {
3034
3391
  __typename: 'Header';
3035
- height: any;
3036
3392
  time: string;
3037
3393
  };
3038
3394
  transactions: Array<{
@@ -3054,7 +3410,6 @@ export type GqlGetCoinQuery = {
3054
3410
  owner: string;
3055
3411
  amount: string;
3056
3412
  assetId: string;
3057
- maturity: any;
3058
3413
  blockCreated: any;
3059
3414
  txCreatedIdx: string;
3060
3415
  } | null;
@@ -3078,7 +3433,6 @@ export type GqlGetCoinsQuery = {
3078
3433
  owner: string;
3079
3434
  amount: string;
3080
3435
  assetId: string;
3081
- maturity: any;
3082
3436
  blockCreated: any;
3083
3437
  txCreatedIdx: string;
3084
3438
  };
@@ -3098,7 +3452,6 @@ export type GqlGetCoinsToSpendQuery = {
3098
3452
  owner: string;
3099
3453
  amount: string;
3100
3454
  assetId: string;
3101
- maturity: any;
3102
3455
  blockCreated: any;
3103
3456
  txCreatedIdx: string;
3104
3457
  } | {
@@ -3148,6 +3501,26 @@ export type GqlGetBalanceQuery = {
3148
3501
  assetId: string;
3149
3502
  };
3150
3503
  };
3504
+ export type GqlGetLatestGasPriceQueryVariables = Exact<{
3505
+ [key: string]: never;
3506
+ }>;
3507
+ export type GqlGetLatestGasPriceQuery = {
3508
+ __typename: 'Query';
3509
+ latestGasPrice: {
3510
+ __typename: 'LatestGasPrice';
3511
+ gasPrice: string;
3512
+ };
3513
+ };
3514
+ export type GqlEstimateGasPriceQueryVariables = Exact<{
3515
+ blockHorizon: Scalars['U32'];
3516
+ }>;
3517
+ export type GqlEstimateGasPriceQuery = {
3518
+ __typename: 'Query';
3519
+ estimateGasPrice: {
3520
+ __typename: 'EstimateGasPrice';
3521
+ gasPrice: string;
3522
+ };
3523
+ };
3151
3524
  export type GqlGetBalancesQueryVariables = Exact<{
3152
3525
  filter: GqlBalanceFilterInput;
3153
3526
  after?: InputMaybe<Scalars['String']>;
@@ -3259,47 +3632,61 @@ export type GqlGetMessageStatusQuery = {
3259
3632
  };
3260
3633
  };
3261
3634
  export type GqlDryRunMutationVariables = Exact<{
3262
- encodedTransaction: Scalars['HexString'];
3635
+ encodedTransactions: Array<Scalars['HexString']> | Scalars['HexString'];
3263
3636
  utxoValidation?: InputMaybe<Scalars['Boolean']>;
3264
3637
  }>;
3265
3638
  export type GqlDryRunMutation = {
3266
3639
  __typename: 'Mutation';
3267
3640
  dryRun: Array<{
3268
- __typename: 'Receipt';
3269
- pc?: string | null;
3270
- is?: string | null;
3271
- toAddress?: string | null;
3272
- amount?: string | null;
3273
- assetId?: string | null;
3274
- gas?: string | null;
3275
- param1?: string | null;
3276
- param2?: string | null;
3277
- val?: string | null;
3278
- ptr?: string | null;
3279
- digest?: string | null;
3280
- reason?: string | null;
3281
- ra?: string | null;
3282
- rb?: string | null;
3283
- rc?: string | null;
3284
- rd?: string | null;
3285
- len?: string | null;
3286
- receiptType: GqlReceiptType;
3287
- result?: string | null;
3288
- gasUsed?: string | null;
3289
- data?: string | null;
3290
- sender?: string | null;
3291
- recipient?: string | null;
3292
- nonce?: string | null;
3293
- contractId?: string | null;
3294
- subId?: string | null;
3295
- contract?: {
3296
- __typename: 'Contract';
3297
- id: string;
3298
- } | null;
3299
- to?: {
3300
- __typename: 'Contract';
3301
- id: string;
3302
- } | null;
3641
+ __typename: 'DryRunTransactionExecutionStatus';
3642
+ id: string;
3643
+ status: {
3644
+ __typename: 'DryRunFailureStatus';
3645
+ reason: string;
3646
+ programState?: {
3647
+ __typename: 'ProgramState';
3648
+ returnType: GqlReturnType;
3649
+ data: string;
3650
+ } | null;
3651
+ } | {
3652
+ __typename: 'DryRunSuccessStatus';
3653
+ programState?: {
3654
+ __typename: 'ProgramState';
3655
+ returnType: GqlReturnType;
3656
+ data: string;
3657
+ } | null;
3658
+ };
3659
+ receipts: Array<{
3660
+ __typename: 'Receipt';
3661
+ id?: string | null;
3662
+ pc?: string | null;
3663
+ is?: string | null;
3664
+ to?: string | null;
3665
+ toAddress?: string | null;
3666
+ amount?: string | null;
3667
+ assetId?: string | null;
3668
+ gas?: string | null;
3669
+ param1?: string | null;
3670
+ param2?: string | null;
3671
+ val?: string | null;
3672
+ ptr?: string | null;
3673
+ digest?: string | null;
3674
+ reason?: string | null;
3675
+ ra?: string | null;
3676
+ rb?: string | null;
3677
+ rc?: string | null;
3678
+ rd?: string | null;
3679
+ len?: string | null;
3680
+ receiptType: GqlReceiptType;
3681
+ result?: string | null;
3682
+ gasUsed?: string | null;
3683
+ data?: string | null;
3684
+ sender?: string | null;
3685
+ recipient?: string | null;
3686
+ nonce?: string | null;
3687
+ contractId?: string | null;
3688
+ subId?: string | null;
3689
+ }>;
3303
3690
  }>;
3304
3691
  };
3305
3692
  export type GqlSubmitMutationVariables = Exact<{
@@ -3334,6 +3721,37 @@ export type GqlSubmitAndAwaitSubscription = {
3334
3721
  __typename: 'Block';
3335
3722
  id: string;
3336
3723
  };
3724
+ receipts: Array<{
3725
+ __typename: 'Receipt';
3726
+ id?: string | null;
3727
+ pc?: string | null;
3728
+ is?: string | null;
3729
+ to?: string | null;
3730
+ toAddress?: string | null;
3731
+ amount?: string | null;
3732
+ assetId?: string | null;
3733
+ gas?: string | null;
3734
+ param1?: string | null;
3735
+ param2?: string | null;
3736
+ val?: string | null;
3737
+ ptr?: string | null;
3738
+ digest?: string | null;
3739
+ reason?: string | null;
3740
+ ra?: string | null;
3741
+ rb?: string | null;
3742
+ rc?: string | null;
3743
+ rd?: string | null;
3744
+ len?: string | null;
3745
+ receiptType: GqlReceiptType;
3746
+ result?: string | null;
3747
+ gasUsed?: string | null;
3748
+ data?: string | null;
3749
+ sender?: string | null;
3750
+ recipient?: string | null;
3751
+ nonce?: string | null;
3752
+ contractId?: string | null;
3753
+ subId?: string | null;
3754
+ }>;
3337
3755
  } | {
3338
3756
  __typename: 'SqueezedOutStatus';
3339
3757
  reason: string;
@@ -3350,6 +3768,37 @@ export type GqlSubmitAndAwaitSubscription = {
3350
3768
  __typename: 'Block';
3351
3769
  id: string;
3352
3770
  };
3771
+ receipts: Array<{
3772
+ __typename: 'Receipt';
3773
+ id?: string | null;
3774
+ pc?: string | null;
3775
+ is?: string | null;
3776
+ to?: string | null;
3777
+ toAddress?: string | null;
3778
+ amount?: string | null;
3779
+ assetId?: string | null;
3780
+ gas?: string | null;
3781
+ param1?: string | null;
3782
+ param2?: string | null;
3783
+ val?: string | null;
3784
+ ptr?: string | null;
3785
+ digest?: string | null;
3786
+ reason?: string | null;
3787
+ ra?: string | null;
3788
+ rb?: string | null;
3789
+ rc?: string | null;
3790
+ rd?: string | null;
3791
+ len?: string | null;
3792
+ receiptType: GqlReceiptType;
3793
+ result?: string | null;
3794
+ gasUsed?: string | null;
3795
+ data?: string | null;
3796
+ sender?: string | null;
3797
+ recipient?: string | null;
3798
+ nonce?: string | null;
3799
+ contractId?: string | null;
3800
+ subId?: string | null;
3801
+ }>;
3353
3802
  programState?: {
3354
3803
  __typename: 'ProgramState';
3355
3804
  returnType: GqlReturnType;
@@ -3371,6 +3820,37 @@ export type GqlStatusChangeSubscription = {
3371
3820
  __typename: 'Block';
3372
3821
  id: string;
3373
3822
  };
3823
+ receipts: Array<{
3824
+ __typename: 'Receipt';
3825
+ id?: string | null;
3826
+ pc?: string | null;
3827
+ is?: string | null;
3828
+ to?: string | null;
3829
+ toAddress?: string | null;
3830
+ amount?: string | null;
3831
+ assetId?: string | null;
3832
+ gas?: string | null;
3833
+ param1?: string | null;
3834
+ param2?: string | null;
3835
+ val?: string | null;
3836
+ ptr?: string | null;
3837
+ digest?: string | null;
3838
+ reason?: string | null;
3839
+ ra?: string | null;
3840
+ rb?: string | null;
3841
+ rc?: string | null;
3842
+ rd?: string | null;
3843
+ len?: string | null;
3844
+ receiptType: GqlReceiptType;
3845
+ result?: string | null;
3846
+ gasUsed?: string | null;
3847
+ data?: string | null;
3848
+ sender?: string | null;
3849
+ recipient?: string | null;
3850
+ nonce?: string | null;
3851
+ contractId?: string | null;
3852
+ subId?: string | null;
3853
+ }>;
3374
3854
  } | {
3375
3855
  __typename: 'SqueezedOutStatus';
3376
3856
  reason: string;
@@ -3387,6 +3867,37 @@ export type GqlStatusChangeSubscription = {
3387
3867
  __typename: 'Block';
3388
3868
  id: string;
3389
3869
  };
3870
+ receipts: Array<{
3871
+ __typename: 'Receipt';
3872
+ id?: string | null;
3873
+ pc?: string | null;
3874
+ is?: string | null;
3875
+ to?: string | null;
3876
+ toAddress?: string | null;
3877
+ amount?: string | null;
3878
+ assetId?: string | null;
3879
+ gas?: string | null;
3880
+ param1?: string | null;
3881
+ param2?: string | null;
3882
+ val?: string | null;
3883
+ ptr?: string | null;
3884
+ digest?: string | null;
3885
+ reason?: string | null;
3886
+ ra?: string | null;
3887
+ rb?: string | null;
3888
+ rc?: string | null;
3889
+ rd?: string | null;
3890
+ len?: string | null;
3891
+ receiptType: GqlReceiptType;
3892
+ result?: string | null;
3893
+ gasUsed?: string | null;
3894
+ data?: string | null;
3895
+ sender?: string | null;
3896
+ recipient?: string | null;
3897
+ nonce?: string | null;
3898
+ contractId?: string | null;
3899
+ subId?: string | null;
3900
+ }>;
3390
3901
  programState?: {
3391
3902
  __typename: 'ProgramState';
3392
3903
  returnType: GqlReturnType;
@@ -3399,6 +3910,10 @@ export declare const TransactionStatusFragmentFragmentDoc: DocumentNode;
3399
3910
  export declare const TransactionFragmentFragmentDoc: DocumentNode;
3400
3911
  export declare const InputEstimatePredicatesFragmentFragmentDoc: DocumentNode;
3401
3912
  export declare const TransactionEstimatePredicatesFragmentFragmentDoc: DocumentNode;
3913
+ export declare const DryRunFailureStatusFragmentFragmentDoc: DocumentNode;
3914
+ export declare const DryRunSuccessStatusFragmentFragmentDoc: DocumentNode;
3915
+ export declare const DryRunTransactionStatusFragmentFragmentDoc: DocumentNode;
3916
+ export declare const DryRunTransactionExecutionStatusFragmentFragmentDoc: DocumentNode;
3402
3917
  export declare const CoinFragmentFragmentDoc: DocumentNode;
3403
3918
  export declare const MessageCoinFragmentFragmentDoc: DocumentNode;
3404
3919
  export declare const MessageFragmentFragmentDoc: DocumentNode;
@@ -3434,6 +3949,8 @@ export declare const GetCoinsToSpendDocument: DocumentNode;
3434
3949
  export declare const GetContractDocument: DocumentNode;
3435
3950
  export declare const GetContractBalanceDocument: DocumentNode;
3436
3951
  export declare const GetBalanceDocument: DocumentNode;
3952
+ export declare const GetLatestGasPriceDocument: DocumentNode;
3953
+ export declare const EstimateGasPriceDocument: DocumentNode;
3437
3954
  export declare const GetBalancesDocument: DocumentNode;
3438
3955
  export declare const GetMessagesDocument: DocumentNode;
3439
3956
  export declare const GetMessageProofDocument: DocumentNode;
@@ -3462,6 +3979,8 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
3462
3979
  getContract(variables: GqlGetContractQueryVariables, options?: C): Promise<GqlGetContractQuery>;
3463
3980
  getContractBalance(variables: GqlGetContractBalanceQueryVariables, options?: C): Promise<GqlGetContractBalanceQuery>;
3464
3981
  getBalance(variables: GqlGetBalanceQueryVariables, options?: C): Promise<GqlGetBalanceQuery>;
3982
+ getLatestGasPrice(variables?: GqlGetLatestGasPriceQueryVariables, options?: C): Promise<GqlGetLatestGasPriceQuery>;
3983
+ estimateGasPrice(variables: GqlEstimateGasPriceQueryVariables, options?: C): Promise<GqlEstimateGasPriceQuery>;
3465
3984
  getBalances(variables: GqlGetBalancesQueryVariables, options?: C): Promise<GqlGetBalancesQuery>;
3466
3985
  getMessages(variables: GqlGetMessagesQueryVariables, options?: C): Promise<GqlGetMessagesQuery>;
3467
3986
  getMessageProof(variables: GqlGetMessageProofQueryVariables, options?: C): Promise<GqlGetMessageProofQuery>;