@fuel-ts/account 0.83.0 → 0.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (54) hide show
  1. package/README.md +15 -12
  2. package/dist/account.d.ts +1 -1
  3. package/dist/account.d.ts.map +1 -1
  4. package/dist/index.global.js +1624 -1619
  5. package/dist/index.global.js.map +1 -1
  6. package/dist/index.js +365 -207
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +346 -190
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/providers/__generated__/operations.d.ts +203 -80
  11. package/dist/providers/__generated__/operations.d.ts.map +1 -1
  12. package/dist/providers/message.d.ts +2 -2
  13. package/dist/providers/message.d.ts.map +1 -1
  14. package/dist/providers/provider.d.ts +30 -29
  15. package/dist/providers/provider.d.ts.map +1 -1
  16. package/dist/providers/resource.d.ts +0 -1
  17. package/dist/providers/resource.d.ts.map +1 -1
  18. package/dist/providers/transaction-request/helpers.d.ts +8 -0
  19. package/dist/providers/transaction-request/helpers.d.ts.map +1 -0
  20. package/dist/providers/transaction-request/script-transaction-request.d.ts +2 -3
  21. package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
  22. package/dist/providers/transaction-request/transaction-request.d.ts +5 -6
  23. package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
  24. package/dist/providers/transaction-request/utils.d.ts +2 -1
  25. package/dist/providers/transaction-request/utils.d.ts.map +1 -1
  26. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts +2 -2
  27. package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
  28. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +20 -0
  29. package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -0
  30. package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
  31. package/dist/providers/transaction-summary/index.d.ts +1 -1
  32. package/dist/providers/transaction-summary/index.d.ts.map +1 -1
  33. package/dist/providers/transaction-summary/operations.d.ts +4 -0
  34. package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
  35. package/dist/providers/transaction-summary/status.d.ts +5 -1
  36. package/dist/providers/transaction-summary/status.d.ts.map +1 -1
  37. package/dist/providers/transaction-summary/types.d.ts +6 -1
  38. package/dist/providers/transaction-summary/types.d.ts.map +1 -1
  39. package/dist/providers/utils/gas.d.ts +7 -6
  40. package/dist/providers/utils/gas.d.ts.map +1 -1
  41. package/dist/test-utils/launchNode.d.ts.map +1 -1
  42. package/dist/test-utils/resources.d.ts +4 -0
  43. package/dist/test-utils/resources.d.ts.map +1 -0
  44. package/dist/test-utils/transactionRequest.d.ts +5 -0
  45. package/dist/test-utils/transactionRequest.d.ts.map +1 -0
  46. package/dist/test-utils.global.js +1628 -1622
  47. package/dist/test-utils.global.js.map +1 -1
  48. package/dist/test-utils.js +342 -196
  49. package/dist/test-utils.js.map +1 -1
  50. package/dist/test-utils.mjs +327 -181
  51. package/dist/test-utils.mjs.map +1 -1
  52. package/package.json +17 -17
  53. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +0 -22
  54. package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +0 -1
@@ -26,13 +26,14 @@ export type Scalars = {
26
26
  ContractId: string;
27
27
  HexString: string;
28
28
  Nonce: string;
29
+ RelayedTransactionId: string;
29
30
  Salt: string;
30
- Signature: any;
31
+ Signature: string;
31
32
  Tai64Timestamp: string;
32
33
  TransactionId: string;
33
- TxPointer: any;
34
- U16: any;
35
- U32: any;
34
+ TxPointer: string;
35
+ U16: string;
36
+ U32: string;
36
37
  U64: string;
37
38
  UtxoId: string;
38
39
  };
@@ -164,6 +165,11 @@ export type GqlConsensusParameters = {
164
165
  txParams: GqlTxParameters;
165
166
  version: GqlConsensusParametersVersion;
166
167
  };
168
+ export type GqlConsensusParametersPurpose = {
169
+ __typename: 'ConsensusParametersPurpose';
170
+ checksum: Scalars['Bytes32'];
171
+ witnessIndex: Scalars['U16'];
172
+ };
167
173
  export declare enum GqlConsensusParametersVersion {
168
174
  V1 = "V1"
169
175
  }
@@ -226,11 +232,15 @@ export type GqlDryRunFailureStatus = {
226
232
  programState?: Maybe<GqlProgramState>;
227
233
  reason: Scalars['String'];
228
234
  receipts: Array<GqlReceipt>;
235
+ totalFee: Scalars['U64'];
236
+ totalGas: Scalars['U64'];
229
237
  };
230
238
  export type GqlDryRunSuccessStatus = {
231
239
  __typename: 'DryRunSuccessStatus';
232
240
  programState?: Maybe<GqlProgramState>;
233
241
  receipts: Array<GqlReceipt>;
242
+ totalFee: Scalars['U64'];
243
+ totalGas: Scalars['U64'];
234
244
  };
235
245
  export type GqlDryRunTransactionExecutionStatus = {
236
246
  __typename: 'DryRunTransactionExecutionStatus';
@@ -256,6 +266,8 @@ export type GqlFailureStatus = {
256
266
  reason: Scalars['String'];
257
267
  receipts: Array<GqlReceipt>;
258
268
  time: Scalars['Tai64Timestamp'];
269
+ totalFee: Scalars['U64'];
270
+ totalGas: Scalars['U64'];
259
271
  transactionId: Scalars['TransactionId'];
260
272
  };
261
273
  export type GqlFeeParameters = {
@@ -397,6 +409,8 @@ export type GqlGenesis = {
397
409
  contractsRoot: Scalars['Bytes32'];
398
410
  /** The Binary Merkle Tree root of all genesis messages. */
399
411
  messagesRoot: Scalars['Bytes32'];
412
+ /** The Binary Merkle Tree root of all processed transaction ids. */
413
+ transactionsRoot: Scalars['Bytes32'];
400
414
  };
401
415
  export type GqlHeader = {
402
416
  __typename: 'Header';
@@ -415,7 +429,7 @@ export type GqlHeader = {
415
429
  /** Merkle root of message receipts in this block. */
416
430
  messageOutboxRoot: Scalars['Bytes32'];
417
431
  /** Number of message receipts in this block. */
418
- messageReceiptCount: Scalars['U64'];
432
+ messageReceiptCount: Scalars['U32'];
419
433
  /** Merkle root of all previous block header hashes. */
420
434
  prevRoot: Scalars['Bytes32'];
421
435
  /** The version of the state transition bytecode used to create this block. */
@@ -423,7 +437,7 @@ export type GqlHeader = {
423
437
  /** The block producer time. */
424
438
  time: Scalars['Tai64Timestamp'];
425
439
  /** Number of transactions in this block. */
426
- transactionsCount: Scalars['U64'];
440
+ transactionsCount: Scalars['U16'];
427
441
  /** Merkle root of transactions. */
428
442
  transactionsRoot: Scalars['Bytes32'];
429
443
  };
@@ -733,6 +747,7 @@ export type GqlQuery = {
733
747
  nodeInfo: GqlNodeInfo;
734
748
  /** Read register value by index. */
735
749
  register: Scalars['U64'];
750
+ relayedTransactionStatus?: Maybe<GqlRelayedTransactionStatus>;
736
751
  transaction?: Maybe<GqlTransaction>;
737
752
  transactions: GqlTransactionConnection;
738
753
  transactionsByOwner: GqlTransactionConnection;
@@ -821,6 +836,9 @@ export type GqlQueryRegisterArgs = {
821
836
  id: Scalars['ID'];
822
837
  register: Scalars['U32'];
823
838
  };
839
+ export type GqlQueryRelayedTransactionStatusArgs = {
840
+ id: Scalars['RelayedTransactionId'];
841
+ };
824
842
  export type GqlQueryTransactionArgs = {
825
843
  id: Scalars['TransactionId'];
826
844
  };
@@ -884,6 +902,12 @@ export declare enum GqlReceiptType {
884
902
  Transfer = "TRANSFER",
885
903
  TransferOut = "TRANSFER_OUT"
886
904
  }
905
+ export type GqlRelayedTransactionFailed = {
906
+ __typename: 'RelayedTransactionFailed';
907
+ blockHeight: Scalars['U32'];
908
+ failure: Scalars['String'];
909
+ };
910
+ export type GqlRelayedTransactionStatus = GqlRelayedTransactionFailed;
887
911
  export declare enum GqlReturnType {
888
912
  Return = "RETURN",
889
913
  ReturnData = "RETURN_DATA",
@@ -922,6 +946,10 @@ export type GqlSqueezedOutStatus = {
922
946
  __typename: 'SqueezedOutStatus';
923
947
  reason: Scalars['String'];
924
948
  };
949
+ export type GqlStateTransitionPurpose = {
950
+ __typename: 'StateTransitionPurpose';
951
+ root: Scalars['Bytes32'];
952
+ };
925
953
  export type GqlSubmittedStatus = {
926
954
  __typename: 'SubmittedStatus';
927
955
  time: Scalars['Tai64Timestamp'];
@@ -958,10 +986,13 @@ export type GqlSuccessStatus = {
958
986
  programState?: Maybe<GqlProgramState>;
959
987
  receipts: Array<GqlReceipt>;
960
988
  time: Scalars['Tai64Timestamp'];
989
+ totalFee: Scalars['U64'];
990
+ totalGas: Scalars['U64'];
961
991
  transactionId: Scalars['TransactionId'];
962
992
  };
963
993
  export type GqlTransaction = {
964
994
  __typename: 'Transaction';
995
+ bytecodeRoot?: Maybe<Scalars['Bytes32']>;
965
996
  bytecodeWitnessIndex?: Maybe<Scalars['U16']>;
966
997
  id: Scalars['TransactionId'];
967
998
  inputAssetIds?: Maybe<Array<Scalars['AssetId']>>;
@@ -971,6 +1002,8 @@ export type GqlTransaction = {
971
1002
  isCreate: Scalars['Boolean'];
972
1003
  isMint: Scalars['Boolean'];
973
1004
  isScript: Scalars['Boolean'];
1005
+ isUpgrade: Scalars['Boolean'];
1006
+ isUpload: Scalars['Boolean'];
974
1007
  maturity?: Maybe<Scalars['U32']>;
975
1008
  mintAmount?: Maybe<Scalars['U64']>;
976
1009
  mintAssetId?: Maybe<Scalars['AssetId']>;
@@ -978,6 +1011,7 @@ export type GqlTransaction = {
978
1011
  outputContract?: Maybe<GqlContractOutput>;
979
1012
  outputs: Array<GqlOutput>;
980
1013
  policies?: Maybe<GqlPolicies>;
1014
+ proofSet?: Maybe<Array<Scalars['Bytes32']>>;
981
1015
  /** Return the transaction bytes using canonical encoding */
982
1016
  rawPayload: Scalars['HexString'];
983
1017
  receiptsRoot?: Maybe<Scalars['Bytes32']>;
@@ -987,7 +1021,10 @@ export type GqlTransaction = {
987
1021
  scriptGasLimit?: Maybe<Scalars['U64']>;
988
1022
  status?: Maybe<GqlTransactionStatus>;
989
1023
  storageSlots?: Maybe<Array<Scalars['HexString']>>;
1024
+ subsectionIndex?: Maybe<Scalars['U16']>;
1025
+ subsectionsNumber?: Maybe<Scalars['U16']>;
990
1026
  txPointer?: Maybe<Scalars['TxPointer']>;
1027
+ upgradePurpose?: Maybe<GqlUpgradePurpose>;
991
1028
  witnesses?: Maybe<Array<Scalars['HexString']>>;
992
1029
  };
993
1030
  export type GqlTransactionConnection = {
@@ -1010,6 +1047,7 @@ export type GqlTransactionEdge = {
1010
1047
  export type GqlTransactionStatus = GqlFailureStatus | GqlSqueezedOutStatus | GqlSubmittedStatus | GqlSuccessStatus;
1011
1048
  export type GqlTxParameters = {
1012
1049
  __typename: 'TxParameters';
1050
+ maxBytecodeSubsections: Scalars['U16'];
1013
1051
  maxGasPerTx: Scalars['U64'];
1014
1052
  maxInputs: Scalars['U16'];
1015
1053
  maxOutputs: Scalars['U16'];
@@ -1020,6 +1058,7 @@ export type GqlTxParameters = {
1020
1058
  export declare enum GqlTxParametersVersion {
1021
1059
  V1 = "V1"
1022
1060
  }
1061
+ export type GqlUpgradePurpose = GqlConsensusParametersPurpose | GqlStateTransitionPurpose;
1023
1062
  export type GqlVariableOutput = {
1024
1063
  __typename: 'VariableOutput';
1025
1064
  amount: Scalars['U64'];
@@ -1028,6 +1067,8 @@ export type GqlVariableOutput = {
1028
1067
  };
1029
1068
  type GqlTransactionStatusFragment_FailureStatus_Fragment = {
1030
1069
  __typename: 'FailureStatus';
1070
+ totalGas: string;
1071
+ totalFee: string;
1031
1072
  time: string;
1032
1073
  reason: string;
1033
1074
  type: 'FailureStatus';
@@ -1080,11 +1121,18 @@ type GqlTransactionStatusFragment_SubmittedStatus_Fragment = {
1080
1121
  type GqlTransactionStatusFragment_SuccessStatus_Fragment = {
1081
1122
  __typename: 'SuccessStatus';
1082
1123
  time: string;
1124
+ totalGas: string;
1125
+ totalFee: string;
1083
1126
  type: 'SuccessStatus';
1084
1127
  block: {
1085
1128
  __typename: 'Block';
1086
1129
  id: string;
1087
1130
  };
1131
+ programState?: {
1132
+ __typename: 'ProgramState';
1133
+ returnType: GqlReturnType;
1134
+ data: string;
1135
+ } | null;
1088
1136
  receipts: Array<{
1089
1137
  __typename: 'Receipt';
1090
1138
  id?: string | null;
@@ -1116,11 +1164,6 @@ type GqlTransactionStatusFragment_SuccessStatus_Fragment = {
1116
1164
  contractId?: string | null;
1117
1165
  subId?: string | null;
1118
1166
  }>;
1119
- programState?: {
1120
- __typename: 'ProgramState';
1121
- returnType: GqlReturnType;
1122
- data: string;
1123
- } | null;
1124
1167
  };
1125
1168
  export type GqlTransactionStatusFragmentFragment = GqlTransactionStatusFragment_FailureStatus_Fragment | GqlTransactionStatusFragment_SqueezedOutStatus_Fragment | GqlTransactionStatusFragment_SubmittedStatus_Fragment | GqlTransactionStatusFragment_SuccessStatus_Fragment;
1126
1169
  type GqlTransactionStatusSubscriptionFragment_FailureStatus_Fragment = {
@@ -1147,6 +1190,8 @@ export type GqlTransactionFragmentFragment = {
1147
1190
  rawPayload: string;
1148
1191
  status?: {
1149
1192
  __typename: 'FailureStatus';
1193
+ totalGas: string;
1194
+ totalFee: string;
1150
1195
  time: string;
1151
1196
  reason: string;
1152
1197
  type: 'FailureStatus';
@@ -1196,11 +1241,18 @@ export type GqlTransactionFragmentFragment = {
1196
1241
  } | {
1197
1242
  __typename: 'SuccessStatus';
1198
1243
  time: string;
1244
+ totalGas: string;
1245
+ totalFee: string;
1199
1246
  type: 'SuccessStatus';
1200
1247
  block: {
1201
1248
  __typename: 'Block';
1202
1249
  id: string;
1203
1250
  };
1251
+ programState?: {
1252
+ __typename: 'ProgramState';
1253
+ returnType: GqlReturnType;
1254
+ data: string;
1255
+ } | null;
1204
1256
  receipts: Array<{
1205
1257
  __typename: 'Receipt';
1206
1258
  id?: string | null;
@@ -1232,11 +1284,6 @@ export type GqlTransactionFragmentFragment = {
1232
1284
  contractId?: string | null;
1233
1285
  subId?: string | null;
1234
1286
  }>;
1235
- programState?: {
1236
- __typename: 'ProgramState';
1237
- returnType: GqlReturnType;
1238
- data: string;
1239
- } | null;
1240
1287
  } | null;
1241
1288
  };
1242
1289
  type GqlInputEstimatePredicatesFragment_InputCoin_Fragment = {
@@ -1265,6 +1312,8 @@ export type GqlTransactionEstimatePredicatesFragmentFragment = {
1265
1312
  };
1266
1313
  export type GqlDryRunFailureStatusFragmentFragment = {
1267
1314
  __typename: 'DryRunFailureStatus';
1315
+ totalGas: string;
1316
+ totalFee: string;
1268
1317
  reason: string;
1269
1318
  programState?: {
1270
1319
  __typename: 'ProgramState';
@@ -1274,6 +1323,8 @@ export type GqlDryRunFailureStatusFragmentFragment = {
1274
1323
  };
1275
1324
  export type GqlDryRunSuccessStatusFragmentFragment = {
1276
1325
  __typename: 'DryRunSuccessStatus';
1326
+ totalGas: string;
1327
+ totalFee: string;
1277
1328
  programState?: {
1278
1329
  __typename: 'ProgramState';
1279
1330
  returnType: GqlReturnType;
@@ -1313,6 +1364,8 @@ export type GqlReceiptFragmentFragment = {
1313
1364
  };
1314
1365
  type GqlDryRunTransactionStatusFragment_DryRunFailureStatus_Fragment = {
1315
1366
  __typename: 'DryRunFailureStatus';
1367
+ totalGas: string;
1368
+ totalFee: string;
1316
1369
  reason: string;
1317
1370
  programState?: {
1318
1371
  __typename: 'ProgramState';
@@ -1322,6 +1375,8 @@ type GqlDryRunTransactionStatusFragment_DryRunFailureStatus_Fragment = {
1322
1375
  };
1323
1376
  type GqlDryRunTransactionStatusFragment_DryRunSuccessStatus_Fragment = {
1324
1377
  __typename: 'DryRunSuccessStatus';
1378
+ totalGas: string;
1379
+ totalFee: string;
1325
1380
  programState?: {
1326
1381
  __typename: 'ProgramState';
1327
1382
  returnType: GqlReturnType;
@@ -1334,6 +1389,8 @@ export type GqlDryRunTransactionExecutionStatusFragmentFragment = {
1334
1389
  id: string;
1335
1390
  status: {
1336
1391
  __typename: 'DryRunFailureStatus';
1392
+ totalGas: string;
1393
+ totalFee: string;
1337
1394
  reason: string;
1338
1395
  programState?: {
1339
1396
  __typename: 'ProgramState';
@@ -1342,6 +1399,8 @@ export type GqlDryRunTransactionExecutionStatusFragmentFragment = {
1342
1399
  } | null;
1343
1400
  } | {
1344
1401
  __typename: 'DryRunSuccessStatus';
1402
+ totalGas: string;
1403
+ totalFee: string;
1345
1404
  programState?: {
1346
1405
  __typename: 'ProgramState';
1347
1406
  returnType: GqlReturnType;
@@ -1383,7 +1442,7 @@ export type GqlDryRunTransactionExecutionStatusFragmentFragment = {
1383
1442
  export type GqlBlockFragmentFragment = {
1384
1443
  __typename: 'Block';
1385
1444
  id: string;
1386
- height: any;
1445
+ height: string;
1387
1446
  header: {
1388
1447
  __typename: 'Header';
1389
1448
  time: string;
@@ -1399,8 +1458,8 @@ export type GqlCoinFragmentFragment = {
1399
1458
  owner: string;
1400
1459
  amount: string;
1401
1460
  assetId: string;
1402
- blockCreated: any;
1403
- txCreatedIdx: any;
1461
+ blockCreated: string;
1462
+ txCreatedIdx: string;
1404
1463
  };
1405
1464
  export type GqlMessageCoinFragmentFragment = {
1406
1465
  __typename: 'MessageCoin';
@@ -1441,14 +1500,14 @@ export type GqlMessageProofFragmentFragment = {
1441
1500
  __typename: 'Header';
1442
1501
  id: string;
1443
1502
  daHeight: string;
1444
- consensusParametersVersion: any;
1445
- stateTransitionBytecodeVersion: any;
1503
+ consensusParametersVersion: string;
1504
+ stateTransitionBytecodeVersion: string;
1446
1505
  transactionsCount: string;
1447
1506
  messageReceiptCount: string;
1448
1507
  transactionsRoot: string;
1449
1508
  messageOutboxRoot: string;
1450
1509
  eventInboxRoot: string;
1451
- height: any;
1510
+ height: string;
1452
1511
  prevRoot: string;
1453
1512
  time: string;
1454
1513
  applicationHash: string;
@@ -1457,14 +1516,14 @@ export type GqlMessageProofFragmentFragment = {
1457
1516
  __typename: 'Header';
1458
1517
  id: string;
1459
1518
  daHeight: string;
1460
- consensusParametersVersion: any;
1461
- stateTransitionBytecodeVersion: any;
1519
+ consensusParametersVersion: string;
1520
+ stateTransitionBytecodeVersion: string;
1462
1521
  transactionsCount: string;
1463
1522
  messageReceiptCount: string;
1464
1523
  transactionsRoot: string;
1465
1524
  messageOutboxRoot: string;
1466
1525
  eventInboxRoot: string;
1467
- height: any;
1526
+ height: string;
1468
1527
  prevRoot: string;
1469
1528
  time: string;
1470
1529
  applicationHash: string;
@@ -1479,11 +1538,12 @@ export type GqlBalanceFragmentFragment = {
1479
1538
  export type GqlTxParametersFragmentFragment = {
1480
1539
  __typename: 'TxParameters';
1481
1540
  version: GqlTxParametersVersion;
1482
- maxInputs: any;
1483
- maxOutputs: any;
1484
- maxWitnesses: any;
1541
+ maxInputs: string;
1542
+ maxOutputs: string;
1543
+ maxWitnesses: string;
1485
1544
  maxGasPerTx: string;
1486
1545
  maxSize: string;
1546
+ maxBytecodeSubsections: string;
1487
1547
  };
1488
1548
  export type GqlPredicateParametersFragmentFragment = {
1489
1549
  __typename: 'PredicateParameters';
@@ -1812,11 +1872,12 @@ export type GqlConsensusParametersFragmentFragment = {
1812
1872
  txParams: {
1813
1873
  __typename: 'TxParameters';
1814
1874
  version: GqlTxParametersVersion;
1815
- maxInputs: any;
1816
- maxOutputs: any;
1817
- maxWitnesses: any;
1875
+ maxInputs: string;
1876
+ maxOutputs: string;
1877
+ maxWitnesses: string;
1818
1878
  maxGasPerTx: string;
1819
1879
  maxSize: string;
1880
+ maxBytecodeSubsections: string;
1820
1881
  };
1821
1882
  predicateParams: {
1822
1883
  __typename: 'PredicateParameters';
@@ -2134,7 +2195,7 @@ export type GqlChainInfoFragmentFragment = {
2134
2195
  latestBlock: {
2135
2196
  __typename: 'Block';
2136
2197
  id: string;
2137
- height: any;
2198
+ height: string;
2138
2199
  header: {
2139
2200
  __typename: 'Header';
2140
2201
  time: string;
@@ -2152,11 +2213,12 @@ export type GqlChainInfoFragmentFragment = {
2152
2213
  txParams: {
2153
2214
  __typename: 'TxParameters';
2154
2215
  version: GqlTxParametersVersion;
2155
- maxInputs: any;
2156
- maxOutputs: any;
2157
- maxWitnesses: any;
2216
+ maxInputs: string;
2217
+ maxOutputs: string;
2218
+ maxWitnesses: string;
2158
2219
  maxGasPerTx: string;
2159
2220
  maxSize: string;
2221
+ maxBytecodeSubsections: string;
2160
2222
  };
2161
2223
  predicateParams: {
2162
2224
  __typename: 'PredicateParameters';
@@ -2499,6 +2561,11 @@ export type GqlNodeInfoFragmentFragment = {
2499
2561
  maxDepth: string;
2500
2562
  nodeVersion: string;
2501
2563
  };
2564
+ export type GqlRelayedTransactionStatusFragmentFragment = {
2565
+ __typename: 'RelayedTransactionFailed';
2566
+ blockHeight: string;
2567
+ failure: string;
2568
+ };
2502
2569
  export type GqlGetNodeInfoQueryVariables = Exact<{
2503
2570
  [key: string]: never;
2504
2571
  }>;
@@ -2525,7 +2592,7 @@ export type GqlGetChainQuery = {
2525
2592
  latestBlock: {
2526
2593
  __typename: 'Block';
2527
2594
  id: string;
2528
- height: any;
2595
+ height: string;
2529
2596
  header: {
2530
2597
  __typename: 'Header';
2531
2598
  time: string;
@@ -2543,11 +2610,12 @@ export type GqlGetChainQuery = {
2543
2610
  txParams: {
2544
2611
  __typename: 'TxParameters';
2545
2612
  version: GqlTxParametersVersion;
2546
- maxInputs: any;
2547
- maxOutputs: any;
2548
- maxWitnesses: any;
2613
+ maxInputs: string;
2614
+ maxOutputs: string;
2615
+ maxWitnesses: string;
2549
2616
  maxGasPerTx: string;
2550
2617
  maxSize: string;
2618
+ maxBytecodeSubsections: string;
2551
2619
  };
2552
2620
  predicateParams: {
2553
2621
  __typename: 'PredicateParameters';
@@ -2871,6 +2939,8 @@ export type GqlGetTransactionQuery = {
2871
2939
  rawPayload: string;
2872
2940
  status?: {
2873
2941
  __typename: 'FailureStatus';
2942
+ totalGas: string;
2943
+ totalFee: string;
2874
2944
  time: string;
2875
2945
  reason: string;
2876
2946
  type: 'FailureStatus';
@@ -2920,11 +2990,18 @@ export type GqlGetTransactionQuery = {
2920
2990
  } | {
2921
2991
  __typename: 'SuccessStatus';
2922
2992
  time: string;
2993
+ totalGas: string;
2994
+ totalFee: string;
2923
2995
  type: 'SuccessStatus';
2924
2996
  block: {
2925
2997
  __typename: 'Block';
2926
2998
  id: string;
2927
2999
  };
3000
+ programState?: {
3001
+ __typename: 'ProgramState';
3002
+ returnType: GqlReturnType;
3003
+ data: string;
3004
+ } | null;
2928
3005
  receipts: Array<{
2929
3006
  __typename: 'Receipt';
2930
3007
  id?: string | null;
@@ -2956,11 +3033,6 @@ export type GqlGetTransactionQuery = {
2956
3033
  contractId?: string | null;
2957
3034
  subId?: string | null;
2958
3035
  }>;
2959
- programState?: {
2960
- __typename: 'ProgramState';
2961
- returnType: GqlReturnType;
2962
- data: string;
2963
- } | null;
2964
3036
  } | null;
2965
3037
  } | null;
2966
3038
  };
@@ -2975,6 +3047,8 @@ export type GqlGetTransactionWithReceiptsQuery = {
2975
3047
  rawPayload: string;
2976
3048
  status?: {
2977
3049
  __typename: 'FailureStatus';
3050
+ totalGas: string;
3051
+ totalFee: string;
2978
3052
  time: string;
2979
3053
  reason: string;
2980
3054
  type: 'FailureStatus';
@@ -3024,11 +3098,18 @@ export type GqlGetTransactionWithReceiptsQuery = {
3024
3098
  } | {
3025
3099
  __typename: 'SuccessStatus';
3026
3100
  time: string;
3101
+ totalGas: string;
3102
+ totalFee: string;
3027
3103
  type: 'SuccessStatus';
3028
3104
  block: {
3029
3105
  __typename: 'Block';
3030
3106
  id: string;
3031
3107
  };
3108
+ programState?: {
3109
+ __typename: 'ProgramState';
3110
+ returnType: GqlReturnType;
3111
+ data: string;
3112
+ } | null;
3032
3113
  receipts: Array<{
3033
3114
  __typename: 'Receipt';
3034
3115
  id?: string | null;
@@ -3060,11 +3141,6 @@ export type GqlGetTransactionWithReceiptsQuery = {
3060
3141
  contractId?: string | null;
3061
3142
  subId?: string | null;
3062
3143
  }>;
3063
- programState?: {
3064
- __typename: 'ProgramState';
3065
- returnType: GqlReturnType;
3066
- data: string;
3067
- } | null;
3068
3144
  } | null;
3069
3145
  } | null;
3070
3146
  };
@@ -3086,6 +3162,8 @@ export type GqlGetTransactionsQuery = {
3086
3162
  rawPayload: string;
3087
3163
  status?: {
3088
3164
  __typename: 'FailureStatus';
3165
+ totalGas: string;
3166
+ totalFee: string;
3089
3167
  time: string;
3090
3168
  reason: string;
3091
3169
  type: 'FailureStatus';
@@ -3135,11 +3213,18 @@ export type GqlGetTransactionsQuery = {
3135
3213
  } | {
3136
3214
  __typename: 'SuccessStatus';
3137
3215
  time: string;
3216
+ totalGas: string;
3217
+ totalFee: string;
3138
3218
  type: 'SuccessStatus';
3139
3219
  block: {
3140
3220
  __typename: 'Block';
3141
3221
  id: string;
3142
3222
  };
3223
+ programState?: {
3224
+ __typename: 'ProgramState';
3225
+ returnType: GqlReturnType;
3226
+ data: string;
3227
+ } | null;
3143
3228
  receipts: Array<{
3144
3229
  __typename: 'Receipt';
3145
3230
  id?: string | null;
@@ -3171,11 +3256,6 @@ export type GqlGetTransactionsQuery = {
3171
3256
  contractId?: string | null;
3172
3257
  subId?: string | null;
3173
3258
  }>;
3174
- programState?: {
3175
- __typename: 'ProgramState';
3176
- returnType: GqlReturnType;
3177
- data: string;
3178
- } | null;
3179
3259
  } | null;
3180
3260
  };
3181
3261
  }>;
@@ -3207,6 +3287,8 @@ export type GqlGetTransactionsByOwnerQuery = {
3207
3287
  rawPayload: string;
3208
3288
  status?: {
3209
3289
  __typename: 'FailureStatus';
3290
+ totalGas: string;
3291
+ totalFee: string;
3210
3292
  time: string;
3211
3293
  reason: string;
3212
3294
  type: 'FailureStatus';
@@ -3256,11 +3338,18 @@ export type GqlGetTransactionsByOwnerQuery = {
3256
3338
  } | {
3257
3339
  __typename: 'SuccessStatus';
3258
3340
  time: string;
3341
+ totalGas: string;
3342
+ totalFee: string;
3259
3343
  type: 'SuccessStatus';
3260
3344
  block: {
3261
3345
  __typename: 'Block';
3262
3346
  id: string;
3263
3347
  };
3348
+ programState?: {
3349
+ __typename: 'ProgramState';
3350
+ returnType: GqlReturnType;
3351
+ data: string;
3352
+ } | null;
3264
3353
  receipts: Array<{
3265
3354
  __typename: 'Receipt';
3266
3355
  id?: string | null;
@@ -3292,11 +3381,6 @@ export type GqlGetTransactionsByOwnerQuery = {
3292
3381
  contractId?: string | null;
3293
3382
  subId?: string | null;
3294
3383
  }>;
3295
- programState?: {
3296
- __typename: 'ProgramState';
3297
- returnType: GqlReturnType;
3298
- data: string;
3299
- } | null;
3300
3384
  } | null;
3301
3385
  };
3302
3386
  }>;
@@ -3329,7 +3413,7 @@ export type GqlGetBlockQuery = {
3329
3413
  block?: {
3330
3414
  __typename: 'Block';
3331
3415
  id: string;
3332
- height: any;
3416
+ height: string;
3333
3417
  header: {
3334
3418
  __typename: 'Header';
3335
3419
  time: string;
@@ -3349,13 +3433,15 @@ export type GqlGetBlockWithTransactionsQuery = {
3349
3433
  block?: {
3350
3434
  __typename: 'Block';
3351
3435
  id: string;
3352
- height: any;
3436
+ height: string;
3353
3437
  transactions: Array<{
3354
3438
  __typename: 'Transaction';
3355
3439
  id: string;
3356
3440
  rawPayload: string;
3357
3441
  status?: {
3358
3442
  __typename: 'FailureStatus';
3443
+ totalGas: string;
3444
+ totalFee: string;
3359
3445
  time: string;
3360
3446
  reason: string;
3361
3447
  type: 'FailureStatus';
@@ -3405,11 +3491,18 @@ export type GqlGetBlockWithTransactionsQuery = {
3405
3491
  } | {
3406
3492
  __typename: 'SuccessStatus';
3407
3493
  time: string;
3494
+ totalGas: string;
3495
+ totalFee: string;
3408
3496
  type: 'SuccessStatus';
3409
3497
  block: {
3410
3498
  __typename: 'Block';
3411
3499
  id: string;
3412
3500
  };
3501
+ programState?: {
3502
+ __typename: 'ProgramState';
3503
+ returnType: GqlReturnType;
3504
+ data: string;
3505
+ } | null;
3413
3506
  receipts: Array<{
3414
3507
  __typename: 'Receipt';
3415
3508
  id?: string | null;
@@ -3441,11 +3534,6 @@ export type GqlGetBlockWithTransactionsQuery = {
3441
3534
  contractId?: string | null;
3442
3535
  subId?: string | null;
3443
3536
  }>;
3444
- programState?: {
3445
- __typename: 'ProgramState';
3446
- returnType: GqlReturnType;
3447
- data: string;
3448
- } | null;
3449
3537
  } | null;
3450
3538
  }>;
3451
3539
  header: {
@@ -3469,7 +3557,7 @@ export type GqlGetBlocksQuery = {
3469
3557
  node: {
3470
3558
  __typename: 'Block';
3471
3559
  id: string;
3472
- height: any;
3560
+ height: string;
3473
3561
  header: {
3474
3562
  __typename: 'Header';
3475
3563
  time: string;
@@ -3493,8 +3581,8 @@ export type GqlGetCoinQuery = {
3493
3581
  owner: string;
3494
3582
  amount: string;
3495
3583
  assetId: string;
3496
- blockCreated: any;
3497
- txCreatedIdx: any;
3584
+ blockCreated: string;
3585
+ txCreatedIdx: string;
3498
3586
  } | null;
3499
3587
  };
3500
3588
  export type GqlGetCoinsQueryVariables = Exact<{
@@ -3516,8 +3604,8 @@ export type GqlGetCoinsQuery = {
3516
3604
  owner: string;
3517
3605
  amount: string;
3518
3606
  assetId: string;
3519
- blockCreated: any;
3520
- txCreatedIdx: any;
3607
+ blockCreated: string;
3608
+ txCreatedIdx: string;
3521
3609
  };
3522
3610
  }>;
3523
3611
  };
@@ -3535,8 +3623,8 @@ export type GqlGetCoinsToSpendQuery = {
3535
3623
  owner: string;
3536
3624
  amount: string;
3537
3625
  assetId: string;
3538
- blockCreated: any;
3539
- txCreatedIdx: any;
3626
+ blockCreated: string;
3627
+ txCreatedIdx: string;
3540
3628
  } | {
3541
3629
  __typename: 'MessageCoin';
3542
3630
  sender: string;
@@ -3680,14 +3768,14 @@ export type GqlGetMessageProofQuery = {
3680
3768
  __typename: 'Header';
3681
3769
  id: string;
3682
3770
  daHeight: string;
3683
- consensusParametersVersion: any;
3684
- stateTransitionBytecodeVersion: any;
3771
+ consensusParametersVersion: string;
3772
+ stateTransitionBytecodeVersion: string;
3685
3773
  transactionsCount: string;
3686
3774
  messageReceiptCount: string;
3687
3775
  transactionsRoot: string;
3688
3776
  messageOutboxRoot: string;
3689
3777
  eventInboxRoot: string;
3690
- height: any;
3778
+ height: string;
3691
3779
  prevRoot: string;
3692
3780
  time: string;
3693
3781
  applicationHash: string;
@@ -3696,14 +3784,14 @@ export type GqlGetMessageProofQuery = {
3696
3784
  __typename: 'Header';
3697
3785
  id: string;
3698
3786
  daHeight: string;
3699
- consensusParametersVersion: any;
3700
- stateTransitionBytecodeVersion: any;
3787
+ consensusParametersVersion: string;
3788
+ stateTransitionBytecodeVersion: string;
3701
3789
  transactionsCount: string;
3702
3790
  messageReceiptCount: string;
3703
3791
  transactionsRoot: string;
3704
3792
  messageOutboxRoot: string;
3705
3793
  eventInboxRoot: string;
3706
- height: any;
3794
+ height: string;
3707
3795
  prevRoot: string;
3708
3796
  time: string;
3709
3797
  applicationHash: string;
@@ -3720,6 +3808,17 @@ export type GqlGetMessageStatusQuery = {
3720
3808
  state: GqlMessageState;
3721
3809
  };
3722
3810
  };
3811
+ export type GqlGetRelayedTransactionStatusQueryVariables = Exact<{
3812
+ relayedTransactionId: Scalars['RelayedTransactionId'];
3813
+ }>;
3814
+ export type GqlGetRelayedTransactionStatusQuery = {
3815
+ __typename: 'Query';
3816
+ relayedTransactionStatus?: {
3817
+ __typename: 'RelayedTransactionFailed';
3818
+ blockHeight: string;
3819
+ failure: string;
3820
+ } | null;
3821
+ };
3723
3822
  export type GqlDryRunMutationVariables = Exact<{
3724
3823
  encodedTransactions: Array<Scalars['HexString']> | Scalars['HexString'];
3725
3824
  utxoValidation?: InputMaybe<Scalars['Boolean']>;
@@ -3731,6 +3830,8 @@ export type GqlDryRunMutation = {
3731
3830
  id: string;
3732
3831
  status: {
3733
3832
  __typename: 'DryRunFailureStatus';
3833
+ totalGas: string;
3834
+ totalFee: string;
3734
3835
  reason: string;
3735
3836
  programState?: {
3736
3837
  __typename: 'ProgramState';
@@ -3739,6 +3840,8 @@ export type GqlDryRunMutation = {
3739
3840
  } | null;
3740
3841
  } | {
3741
3842
  __typename: 'DryRunSuccessStatus';
3843
+ totalGas: string;
3844
+ totalFee: string;
3742
3845
  programState?: {
3743
3846
  __typename: 'ProgramState';
3744
3847
  returnType: GqlReturnType;
@@ -3794,7 +3897,22 @@ export type GqlProduceBlocksMutationVariables = Exact<{
3794
3897
  }>;
3795
3898
  export type GqlProduceBlocksMutation = {
3796
3899
  __typename: 'Mutation';
3797
- produceBlocks: any;
3900
+ produceBlocks: string;
3901
+ };
3902
+ export type GqlGetMessageByNonceQueryVariables = Exact<{
3903
+ nonce: Scalars['Nonce'];
3904
+ }>;
3905
+ export type GqlGetMessageByNonceQuery = {
3906
+ __typename: 'Query';
3907
+ message?: {
3908
+ __typename: 'Message';
3909
+ amount: string;
3910
+ sender: string;
3911
+ recipient: string;
3912
+ data: string;
3913
+ nonce: string;
3914
+ daHeight: string;
3915
+ } | null;
3798
3916
  };
3799
3917
  export type GqlSubmitAndAwaitSubscriptionVariables = Exact<{
3800
3918
  encodedTransaction: Scalars['HexString'];
@@ -3864,6 +3982,7 @@ export declare const ChainInfoFragmentFragmentDoc: DocumentNode;
3864
3982
  export declare const ContractBalanceFragmentFragmentDoc: DocumentNode;
3865
3983
  export declare const PageInfoFragmentFragmentDoc: DocumentNode;
3866
3984
  export declare const NodeInfoFragmentFragmentDoc: DocumentNode;
3985
+ export declare const RelayedTransactionStatusFragmentFragmentDoc: DocumentNode;
3867
3986
  export declare const GetVersionDocument: DocumentNode;
3868
3987
  export declare const GetNodeInfoDocument: DocumentNode;
3869
3988
  export declare const GetChainDocument: DocumentNode;
@@ -3887,9 +4006,11 @@ export declare const GetBalancesDocument: DocumentNode;
3887
4006
  export declare const GetMessagesDocument: DocumentNode;
3888
4007
  export declare const GetMessageProofDocument: DocumentNode;
3889
4008
  export declare const GetMessageStatusDocument: DocumentNode;
4009
+ export declare const GetRelayedTransactionStatusDocument: DocumentNode;
3890
4010
  export declare const DryRunDocument: DocumentNode;
3891
4011
  export declare const SubmitDocument: DocumentNode;
3892
4012
  export declare const ProduceBlocksDocument: DocumentNode;
4013
+ export declare const GetMessageByNonceDocument: DocumentNode;
3893
4014
  export declare const SubmitAndAwaitDocument: DocumentNode;
3894
4015
  export declare const StatusChangeDocument: DocumentNode;
3895
4016
  export type Requester<C = {}, E = unknown> = <R, V>(doc: DocumentNode, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
@@ -3917,9 +4038,11 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
3917
4038
  getMessages(variables: GqlGetMessagesQueryVariables, options?: C): Promise<GqlGetMessagesQuery>;
3918
4039
  getMessageProof(variables: GqlGetMessageProofQueryVariables, options?: C): Promise<GqlGetMessageProofQuery>;
3919
4040
  getMessageStatus(variables: GqlGetMessageStatusQueryVariables, options?: C): Promise<GqlGetMessageStatusQuery>;
4041
+ getRelayedTransactionStatus(variables: GqlGetRelayedTransactionStatusQueryVariables, options?: C): Promise<GqlGetRelayedTransactionStatusQuery>;
3920
4042
  dryRun(variables: GqlDryRunMutationVariables, options?: C): Promise<GqlDryRunMutation>;
3921
4043
  submit(variables: GqlSubmitMutationVariables, options?: C): Promise<GqlSubmitMutation>;
3922
4044
  produceBlocks(variables: GqlProduceBlocksMutationVariables, options?: C): Promise<GqlProduceBlocksMutation>;
4045
+ getMessageByNonce(variables: GqlGetMessageByNonceQueryVariables, options?: C): Promise<GqlGetMessageByNonceQuery>;
3923
4046
  submitAndAwait(variables: GqlSubmitAndAwaitSubscriptionVariables, options?: C): AsyncIterable<GqlSubmitAndAwaitSubscription>;
3924
4047
  statusChange(variables: GqlStatusChangeSubscriptionVariables, options?: C): AsyncIterable<GqlStatusChangeSubscription>;
3925
4048
  };