@iota/graphql-transport 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/cjs/generated/queries.d.ts +282 -63
  3. package/dist/cjs/generated/queries.d.ts.map +1 -1
  4. package/dist/cjs/generated/queries.js +50 -0
  5. package/dist/cjs/generated/queries.js.map +2 -2
  6. package/dist/cjs/graphql-websocket-client.d.ts +84 -0
  7. package/dist/cjs/graphql-websocket-client.d.ts.map +1 -0
  8. package/dist/cjs/graphql-websocket-client.js +324 -0
  9. package/dist/cjs/graphql-websocket-client.js.map +7 -0
  10. package/dist/cjs/index.d.ts +1 -0
  11. package/dist/cjs/index.d.ts.map +1 -1
  12. package/dist/cjs/index.js +1 -0
  13. package/dist/cjs/index.js.map +2 -2
  14. package/dist/cjs/mappers/bcs.d.ts.map +1 -1
  15. package/dist/cjs/mappers/bcs.js +11 -3
  16. package/dist/cjs/mappers/bcs.js.map +2 -2
  17. package/dist/cjs/mappers/subscription.d.ts +33 -0
  18. package/dist/cjs/mappers/subscription.d.ts.map +1 -0
  19. package/dist/cjs/mappers/subscription.js +95 -0
  20. package/dist/cjs/mappers/subscription.js.map +7 -0
  21. package/dist/cjs/mappers/util.d.ts +3 -0
  22. package/dist/cjs/mappers/util.d.ts.map +1 -1
  23. package/dist/cjs/mappers/util.js +14 -0
  24. package/dist/cjs/mappers/util.js.map +2 -2
  25. package/dist/cjs/methods.d.ts.map +1 -1
  26. package/dist/cjs/methods.js +1 -23
  27. package/dist/cjs/methods.js.map +2 -2
  28. package/dist/cjs/transport.d.ts +5 -0
  29. package/dist/cjs/transport.d.ts.map +1 -1
  30. package/dist/cjs/transport.js +99 -1
  31. package/dist/cjs/transport.js.map +2 -2
  32. package/dist/esm/generated/queries.d.ts +282 -63
  33. package/dist/esm/generated/queries.d.ts.map +1 -1
  34. package/dist/esm/generated/queries.js +50 -0
  35. package/dist/esm/generated/queries.js.map +2 -2
  36. package/dist/esm/graphql-websocket-client.d.ts +84 -0
  37. package/dist/esm/graphql-websocket-client.d.ts.map +1 -0
  38. package/dist/esm/graphql-websocket-client.js +304 -0
  39. package/dist/esm/graphql-websocket-client.js.map +7 -0
  40. package/dist/esm/index.d.ts +1 -0
  41. package/dist/esm/index.d.ts.map +1 -1
  42. package/dist/esm/index.js +1 -0
  43. package/dist/esm/index.js.map +2 -2
  44. package/dist/esm/mappers/bcs.d.ts.map +1 -1
  45. package/dist/esm/mappers/bcs.js +11 -3
  46. package/dist/esm/mappers/bcs.js.map +2 -2
  47. package/dist/esm/mappers/subscription.d.ts +33 -0
  48. package/dist/esm/mappers/subscription.d.ts.map +1 -0
  49. package/dist/esm/mappers/subscription.js +75 -0
  50. package/dist/esm/mappers/subscription.js.map +7 -0
  51. package/dist/esm/mappers/util.d.ts +3 -0
  52. package/dist/esm/mappers/util.d.ts.map +1 -1
  53. package/dist/esm/mappers/util.js +14 -0
  54. package/dist/esm/mappers/util.js.map +2 -2
  55. package/dist/esm/methods.d.ts.map +1 -1
  56. package/dist/esm/methods.js +2 -25
  57. package/dist/esm/methods.js.map +2 -2
  58. package/dist/esm/transport.d.ts +5 -0
  59. package/dist/esm/transport.d.ts.map +1 -1
  60. package/dist/esm/transport.js +112 -2
  61. package/dist/esm/transport.js.map +2 -2
  62. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  63. package/dist/tsconfig.tsbuildinfo +1 -1
  64. package/package.json +4 -3
@@ -215,10 +215,11 @@ export type Address = IOwner & {
215
215
  * defaults to `SENT`.
216
216
  *
217
217
  * `scanLimit` restricts the number of candidate transactions scanned when
218
- * gathering a page of results. It is required for queries that apply
219
- * more than two complex filters (on function, kind, sender, recipient,
220
- * input object, changed object, or ids), and can be at most
221
- * `serviceConfig.maxScanLimit`.
218
+ * gathering a page of results. It is required for queries that apply two
219
+ * or more complex filters (on function, affected address, recipient, input
220
+ * object, changed object, or wrapped or deleted object), and can be at
221
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
222
+ * combined with any of them.
222
223
  *
223
224
  * When the scan limit is reached the page will be returned even if it has
224
225
  * fewer than `first` results when paginating forward (`last` when
@@ -237,6 +238,10 @@ export type Address = IOwner & {
237
238
  * GraphQL, but it can be restricted by the `after` and `before`
238
239
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
239
240
  * `atCheckpoint` filters.
241
+ *
242
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
243
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
244
+ * will thus become obsolete and will be removed as well.
240
245
  */
241
246
  transactionBlocks: TransactionBlockConnection;
242
247
  };
@@ -346,8 +351,16 @@ export type AddressOwner = {
346
351
  __typename?: 'AddressOwner';
347
352
  owner?: Maybe<Owner>;
348
353
  };
349
- /** The possible relationship types for a transaction block: sent or received. */
354
+ /**
355
+ * The possible relationship types for a transaction block: sent, received,
356
+ * or affected.
357
+ */
350
358
  export declare enum AddressTransactionBlockRelationship {
359
+ /**
360
+ * Transactions that affected this address (the address is the sender,
361
+ * a recipient, or the owner of the gas payment).
362
+ */
363
+ Affected = "AFFECTED",
351
364
  /** Transactions that sent objects to this address. */
352
365
  Recv = "RECV",
353
366
  /** Transactions this address has sent. */
@@ -546,6 +559,15 @@ export type ChangeEpochTransactionV2SystemPackagesArgs = {
546
559
  */
547
560
  export type Checkpoint = {
548
561
  __typename?: 'Checkpoint';
562
+ /**
563
+ * The Base64-encoded BCS serialization of this checkpoint's
564
+ * `CheckpointSummary`.
565
+ *
566
+ * # Note
567
+ * For older checkpoints, where this data was not recorded, `null` is
568
+ * returned.
569
+ */
570
+ bcs?: Maybe<Scalars['Base64']['output']>;
549
571
  /**
550
572
  * A 32-byte hash that uniquely identifies the checkpoint contents, encoded
551
573
  * in Base58. This hash can be used to verify checkpoint contents by
@@ -584,10 +606,11 @@ export type Checkpoint = {
584
606
  * Transactions in this checkpoint.
585
607
  *
586
608
  * `scanLimit` restricts the number of candidate transactions scanned when
587
- * gathering a page of results. It is required for queries that apply
588
- * more than two complex filters (on function, kind, sender, recipient,
589
- * input object, changed object, or ids), and can be at most
590
- * `serviceConfig.maxScanLimit`.
609
+ * gathering a page of results. It is required for queries that apply two
610
+ * or more complex filters (on function, affected address, recipient, input
611
+ * object, changed object, or wrapped or deleted object), and can be at
612
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
613
+ * combined with any of them.
591
614
  *
592
615
  * When the scan limit is reached the page will be returned even if it has
593
616
  * fewer than `first` results when paginating forward (`last` when
@@ -604,6 +627,10 @@ export type Checkpoint = {
604
627
  *
605
628
  * By default, the scanning range consists of all transactions in this
606
629
  * checkpoint.
630
+ *
631
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
632
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
633
+ * will thus become obsolete and will be removed as well.
607
634
  */
608
635
  transactionBlocks: TransactionBlockConnection;
609
636
  /**
@@ -735,10 +762,11 @@ export type Coin = IMoveObject & IObject & IOwner & {
735
762
  * The transaction blocks that sent objects to this object.
736
763
  *
737
764
  * `scanLimit` restricts the number of candidate transactions scanned when
738
- * gathering a page of results. It is required for queries that apply
739
- * more than two complex filters (on function, kind, sender, recipient,
740
- * input object, changed object, or ids), and can be at most
741
- * `serviceConfig.maxScanLimit`.
765
+ * gathering a page of results. It is required for queries that apply two
766
+ * or more complex filters (on function, affected address, recipient, input
767
+ * object, changed object, or wrapped or deleted object), and can be at
768
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
769
+ * combined with any of them.
742
770
  *
743
771
  * When the scan limit is reached the page will be returned even if it has
744
772
  * fewer than `first` results when paginating forward (`last` when
@@ -757,6 +785,10 @@ export type Coin = IMoveObject & IObject & IOwner & {
757
785
  * GraphQL, but it can be restricted by the `after` and `before`
758
786
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
759
787
  * `atCheckpoint` filters.
788
+ *
789
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
790
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
791
+ * will thus become obsolete and will be removed as well.
760
792
  */
761
793
  receivedTransactionBlocks: TransactionBlockConnection;
762
794
  /** The `0x3::staking_pool::StakedIota` objects owned by this object. */
@@ -955,10 +987,11 @@ export type CoinMetadata = IMoveObject & IObject & IOwner & {
955
987
  * The transaction blocks that sent objects to this object.
956
988
  *
957
989
  * `scanLimit` restricts the number of candidate transactions scanned when
958
- * gathering a page of results. It is required for queries that apply
959
- * more than two complex filters (on function, kind, sender, recipient,
960
- * input object, changed object, or ids), and can be at most
961
- * `serviceConfig.maxScanLimit`.
990
+ * gathering a page of results. It is required for queries that apply two
991
+ * or more complex filters (on function, affected address, recipient, input
992
+ * object, changed object, or wrapped or deleted object), and can be at
993
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
994
+ * combined with any of them.
962
995
  *
963
996
  * When the scan limit is reached the page will be returned even if it has
964
997
  * fewer than `first` results when paginating forward (`last` when
@@ -977,6 +1010,10 @@ export type CoinMetadata = IMoveObject & IObject & IOwner & {
977
1010
  * GraphQL, but it can be restricted by the `after` and `before`
978
1011
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
979
1012
  * `atCheckpoint` filters.
1013
+ *
1014
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
1015
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
1016
+ * will thus become obsolete and will be removed as well.
980
1017
  */
981
1018
  receivedTransactionBlocks: TransactionBlockConnection;
982
1019
  /** The `0x3::staking_pool::StakedIota` objects owned by this object. */
@@ -1234,7 +1271,7 @@ export type EndOfEpochTransactionTransactionsArgs = {
1234
1271
  first?: InputMaybe<Scalars['Int']['input']>;
1235
1272
  last?: InputMaybe<Scalars['Int']['input']>;
1236
1273
  };
1237
- export type EndOfEpochTransactionKind = ChangeEpochTransaction | ChangeEpochTransactionV2;
1274
+ export type EndOfEpochTransactionKind = ChangeEpochTransaction | ChangeEpochTransactionV2 | TransactionDenyRulesCreateTransaction;
1238
1275
  export type EndOfEpochTransactionKindConnection = {
1239
1276
  __typename?: 'EndOfEpochTransactionKindConnection';
1240
1277
  /** A list of edges. */
@@ -1343,10 +1380,11 @@ export type Epoch = {
1343
1380
  * The epoch's corresponding transaction blocks.
1344
1381
  *
1345
1382
  * `scanLimit` restricts the number of candidate transactions scanned when
1346
- * gathering a page of results. It is required for queries that apply
1347
- * more than two complex filters (on function, kind, sender, recipient,
1348
- * input object, changed object, or ids), and can be at most
1349
- * `serviceConfig.maxScanLimit`.
1383
+ * gathering a page of results. It is required for queries that apply two
1384
+ * or more complex filters (on function, affected address, recipient, input
1385
+ * object, changed object, or wrapped or deleted object), and can be at
1386
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
1387
+ * combined with any of them.
1350
1388
  *
1351
1389
  * When the scan limit is reached the page will be returned even if it has
1352
1390
  * fewer than `first` results when paginating forward (`last` when
@@ -1363,6 +1401,10 @@ export type Epoch = {
1363
1401
  *
1364
1402
  * By default, the scanning range consists of all transactions in this
1365
1403
  * epoch.
1404
+ *
1405
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
1406
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
1407
+ * will thus become obsolete and will be removed as well.
1366
1408
  */
1367
1409
  transactionBlocks: TransactionBlockConnection;
1368
1410
  /**
@@ -2347,10 +2389,11 @@ export type MoveObject = IMoveObject & IObject & IOwner & {
2347
2389
  * The transaction blocks that sent objects to this object.
2348
2390
  *
2349
2391
  * `scanLimit` restricts the number of candidate transactions scanned when
2350
- * gathering a page of results. It is required for queries that apply
2351
- * more than two complex filters (on function, kind, sender, recipient,
2352
- * input object, changed object, or ids), and can be at most
2353
- * `serviceConfig.maxScanLimit`.
2392
+ * gathering a page of results. It is required for queries that apply two
2393
+ * or more complex filters (on function, affected address, recipient, input
2394
+ * object, changed object, or wrapped or deleted object), and can be at
2395
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
2396
+ * combined with any of them.
2354
2397
  *
2355
2398
  * When the scan limit is reached the page will be returned even if it has
2356
2399
  * fewer than `first` results when paginating forward (`last` when
@@ -2369,6 +2412,10 @@ export type MoveObject = IMoveObject & IObject & IOwner & {
2369
2412
  * GraphQL, but it can be restricted by the `after` and `before`
2370
2413
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
2371
2414
  * `atCheckpoint` filters.
2415
+ *
2416
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
2417
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
2418
+ * will thus become obsolete and will be removed as well.
2372
2419
  */
2373
2420
  receivedTransactionBlocks: TransactionBlockConnection;
2374
2421
  /** The `0x3::staking_pool::StakedIota` objects owned by this object. */
@@ -2626,10 +2673,11 @@ export type MovePackage = IObject & IOwner & {
2626
2673
  * Note that objects that have been sent to a package become inaccessible.
2627
2674
  *
2628
2675
  * `scanLimit` restricts the number of candidate transactions scanned when
2629
- * gathering a page of results. It is required for queries that apply
2630
- * more than two complex filters (on function, kind, sender, recipient,
2631
- * input object, changed object, or ids), and can be at most
2632
- * `serviceConfig.maxScanLimit`.
2676
+ * gathering a page of results. It is required for queries that apply two
2677
+ * or more complex filters (on function, affected address, recipient, input
2678
+ * object, changed object, or wrapped or deleted object), and can be at
2679
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
2680
+ * combined with any of them.
2633
2681
  *
2634
2682
  * When the scan limit is reached the page will be returned even if it has
2635
2683
  * fewer than `first` results when paginating forward (`last` when
@@ -2648,6 +2696,10 @@ export type MovePackage = IObject & IOwner & {
2648
2696
  * GraphQL, but it can be restricted by the `after` and `before`
2649
2697
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
2650
2698
  * `atCheckpoint` filters.
2699
+ *
2700
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
2701
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
2702
+ * will thus become obsolete and will be removed as well.
2651
2703
  */
2652
2704
  receivedTransactionBlocks: TransactionBlockConnection;
2653
2705
  /**
@@ -2766,7 +2818,7 @@ export type MovePackageObjectsArgs = {
2766
2818
  * definitions, functions, and dependencies.
2767
2819
  */
2768
2820
  export type MovePackagePackageAtVersionArgs = {
2769
- version: Scalars['Int']['input'];
2821
+ version: Scalars['UInt53']['input'];
2770
2822
  };
2771
2823
  /**
2772
2824
  * A MovePackage is a kind of Move object that represents code that has been
@@ -2899,15 +2951,9 @@ export type MoveStructTypeParameter = {
2899
2951
  /** Represents concrete types (no type parameters, no references). */
2900
2952
  export type MoveType = {
2901
2953
  __typename?: 'MoveType';
2902
- /**
2903
- * The abilities this concrete type has. Returns no abilities if the type
2904
- * is invalid.
2905
- */
2954
+ /** The abilities this concrete type has. */
2906
2955
  abilities: Array<MoveAbility>;
2907
- /**
2908
- * Structured representation of the "shape" of values that match this type.
2909
- * May return MoveTypeLayout::InvalidType for malformed types.
2910
- */
2956
+ /** Structured representation of the "shape" of values that match this type. */
2911
2957
  layout: Scalars['MoveTypeLayout']['output'];
2912
2958
  /** Flat representation of the type signature, as a displayable string. */
2913
2959
  repr: Scalars['String']['output'];
@@ -2978,8 +3024,8 @@ export type Mutation = {
2978
3024
  /**
2979
3025
  * Execute a transaction, committing its effects on chain.
2980
3026
  *
2981
- * - `txBytes` is a `TransactionData` struct that has been BCS-encoded and
2982
- * then Base64-encoded.
3027
+ * - `txBytes` is a `Transaction` struct that has been BCS-encoded and then
3028
+ * Base64-encoded.
2983
3029
  * - `signatures` are a list of `flag || signature || pubkey` bytes,
2984
3030
  * Base64-encoded.
2985
3031
  *
@@ -3099,10 +3145,11 @@ export type NameRegistration = IMoveObject & IOwner & {
3099
3145
  * The transaction blocks that sent objects to this object.
3100
3146
  *
3101
3147
  * `scanLimit` restricts the number of candidate transactions scanned when
3102
- * gathering a page of results. It is required for queries that apply
3103
- * more than two complex filters (on function, kind, sender, recipient,
3104
- * input object, changed object, or ids), and can be at most
3105
- * `serviceConfig.maxScanLimit`.
3148
+ * gathering a page of results. It is required for queries that apply two
3149
+ * or more complex filters (on function, affected address, recipient, input
3150
+ * object, changed object, or wrapped or deleted object), and can be at
3151
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
3152
+ * combined with any of them.
3106
3153
  *
3107
3154
  * When the scan limit is reached the page will be returned even if it has
3108
3155
  * fewer than `first` results when paginating forward (`last` when
@@ -3121,6 +3168,10 @@ export type NameRegistration = IMoveObject & IOwner & {
3121
3168
  * GraphQL, but it can be restricted by the `after` and `before`
3122
3169
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
3123
3170
  * `atCheckpoint` filters.
3171
+ *
3172
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
3173
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
3174
+ * will thus become obsolete and will be removed as well.
3124
3175
  */
3125
3176
  receivedTransactionBlocks: TransactionBlockConnection;
3126
3177
  /** The `0x3::staking_pool::StakedIota` objects owned by this object. */
@@ -3307,10 +3358,11 @@ export type Object = IObject & IOwner & {
3307
3358
  * The transaction blocks that sent objects to this object.
3308
3359
  *
3309
3360
  * `scanLimit` restricts the number of candidate transactions scanned when
3310
- * gathering a page of results. It is required for queries that apply
3311
- * more than two complex filters (on function, kind, sender, recipient,
3312
- * input object, changed object, or ids), and can be at most
3313
- * `serviceConfig.maxScanLimit`.
3361
+ * gathering a page of results. It is required for queries that apply two
3362
+ * or more complex filters (on function, affected address, recipient, input
3363
+ * object, changed object, or wrapped or deleted object), and can be at
3364
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
3365
+ * combined with any of them.
3314
3366
  *
3315
3367
  * When the scan limit is reached the page will be returned even if it has
3316
3368
  * fewer than `first` results when paginating forward (`last` when
@@ -3329,6 +3381,10 @@ export type Object = IObject & IOwner & {
3329
3381
  * GraphQL, but it can be restricted by the `after` and `before`
3330
3382
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
3331
3383
  * `atCheckpoint` filters.
3384
+ *
3385
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
3386
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
3387
+ * will thus become obsolete and will be removed as well.
3332
3388
  */
3333
3389
  receivedTransactionBlocks: TransactionBlockConnection;
3334
3390
  /** The `0x3::staking_pool::StakedIota` objects owned by this object. */
@@ -3970,14 +4026,14 @@ export type Query = {
3970
4026
  * Simulate running a transaction to inspect its effects without
3971
4027
  * committing to them on-chain.
3972
4028
  *
3973
- * `txBytes` either a `TransactionData` struct or a `TransactionKind`
4029
+ * `txBytes` either a `Transaction` struct or a `TransactionKind`
3974
4030
  * struct, BCS-encoded and then Base64-encoded. The expected
3975
4031
  * type is controlled by the presence or absence of `txMeta`: If
3976
4032
  * present, `txBytes` is assumed to be a `TransactionKind`, if
3977
- * absent, then `TransactionData`.
4033
+ * absent, then `Transaction`.
3978
4034
  *
3979
4035
  * `txMeta` the data that is missing from a `TransactionKind` to make
3980
- * a `TransactionData` (sender address and gas information). All
4036
+ * a `Transaction` (sender address and gas information). All
3981
4037
  * its fields are nullable.
3982
4038
  *
3983
4039
  * `skipChecks` optional flag to disable the usual verification
@@ -4085,10 +4141,11 @@ export type Query = {
4085
4141
  * The transaction blocks that exist in the network.
4086
4142
  *
4087
4143
  * `scanLimit` restricts the number of candidate transactions scanned when
4088
- * gathering a page of results. It is required for queries that apply
4089
- * more than two complex filters (on function, kind, sender, recipient,
4090
- * input object, changed object, or ids), and can be at most
4091
- * `serviceConfig.maxScanLimit`.
4144
+ * gathering a page of results. It is required for queries that apply two
4145
+ * or more complex filters (on function, affected address, recipient, input
4146
+ * object, changed object, or wrapped or deleted object), and can be at
4147
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
4148
+ * combined with any of them.
4092
4149
  *
4093
4150
  * When the scan limit is reached the page will be returned even if it has
4094
4151
  * fewer than `first` results when paginating forward (`last` when
@@ -4108,13 +4165,30 @@ export type Query = {
4108
4165
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
4109
4166
  * `atCheckpoint` filters. Transactions that don't have a checkpoint yet
4110
4167
  * are always omitted.
4168
+ *
4169
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
4170
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
4171
+ * will thus become obsolete and will be removed as well.
4111
4172
  */
4112
4173
  transactionBlocks: TransactionBlockConnection;
4113
4174
  /**
4114
4175
  * Fetch multiple transaction blocks by their digests.
4115
4176
  * This includes all transactions, even if they are not checkpointed yet.
4177
+ * @deprecated Use `transactionsByDigests` instead. Will be removed in v1.38.
4116
4178
  */
4117
4179
  transactionBlocksByDigests: Array<Maybe<TransactionBlock>>;
4180
+ /**
4181
+ * Fetch multiple transaction blocks by their digests.
4182
+ *
4183
+ * Unlike `transactionBlocks(filter: { transactionIds })`, this includes
4184
+ * all transactions, even if they are not checkpointed yet.
4185
+ *
4186
+ * Pages keep the order of the `digests` argument and hold one node per
4187
+ * digest, null when the transaction was not found. Only forward
4188
+ * pagination is supported: `limit` caps the page size and `cursor`
4189
+ * resumes after an entry of a previous page.
4190
+ */
4191
+ transactionsByDigests: TransactionsByDigestsPage;
4118
4192
  /**
4119
4193
  * Fetch a structured representation of a concrete type, including its
4120
4194
  * layout information. Fails if the type is malformed.
@@ -4223,6 +4297,11 @@ export type QueryTransactionBlocksArgs = {
4223
4297
  export type QueryTransactionBlocksByDigestsArgs = {
4224
4298
  digests: Array<Scalars['String']['input']>;
4225
4299
  };
4300
+ export type QueryTransactionsByDigestsArgs = {
4301
+ cursor?: InputMaybe<Scalars['String']['input']>;
4302
+ digests: Array<Scalars['String']['input']>;
4303
+ limit?: InputMaybe<Scalars['Int']['input']>;
4304
+ };
4226
4305
  export type QueryTypeArgs = {
4227
4306
  type: Scalars['String']['input'];
4228
4307
  };
@@ -4587,10 +4666,11 @@ export type StakedIota = IMoveObject & IObject & IOwner & {
4587
4666
  * The transaction blocks that sent objects to this object.
4588
4667
  *
4589
4668
  * `scanLimit` restricts the number of candidate transactions scanned when
4590
- * gathering a page of results. It is required for queries that apply
4591
- * more than two complex filters (on function, kind, sender, recipient,
4592
- * input object, changed object, or ids), and can be at most
4593
- * `serviceConfig.maxScanLimit`.
4669
+ * gathering a page of results. It is required for queries that apply two
4670
+ * or more complex filters (on function, affected address, recipient, input
4671
+ * object, changed object, or wrapped or deleted object), and can be at
4672
+ * most `serviceConfig.maxScanLimit`. A `kind` filter cannot be
4673
+ * combined with any of them.
4594
4674
  *
4595
4675
  * When the scan limit is reached the page will be returned even if it has
4596
4676
  * fewer than `first` results when paginating forward (`last` when
@@ -4609,6 +4689,10 @@ export type StakedIota = IMoveObject & IObject & IOwner & {
4609
4689
  * GraphQL, but it can be restricted by the `after` and `before`
4610
4690
  * cursors, and the `beforeCheckpoint`, `afterCheckpoint` and
4611
4691
  * `atCheckpoint` filters.
4692
+ *
4693
+ * DEPRECATION NOTICE: Support for the combination of two or more complex
4694
+ * filters as discussed above will stop with the v1.38 release. `scanLimit`
4695
+ * will thus become obsolete and will be removed as well.
4612
4696
  */
4613
4697
  receivedTransactionBlocks: TransactionBlockConnection;
4614
4698
  /** The epoch at which this object was requested to join a stake pool. */
@@ -4851,8 +4935,8 @@ export type TransactionArgument = GasCoin | Input | Result;
4851
4935
  export type TransactionBlock = {
4852
4936
  __typename?: 'TransactionBlock';
4853
4937
  /**
4854
- * Serialized form of this transaction's `SenderSignedData`, BCS serialized
4855
- * and Base64 encoded.
4938
+ * Serialized form of this transaction's `SenderSignedTransaction`, BCS
4939
+ * serialized and Base64 encoded.
4856
4940
  */
4857
4941
  bcs?: Maybe<Scalars['Base64']['output']>;
4858
4942
  /**
@@ -4933,6 +5017,11 @@ export type TransactionBlockEdge = {
4933
5017
  /** The effects representing the result of executing a transaction block. */
4934
5018
  export type TransactionBlockEffects = {
4935
5019
  __typename?: 'TransactionBlockEffects';
5020
+ /**
5021
+ * The error code of the Move abort, populated if this transaction failed
5022
+ * with a Move abort.
5023
+ */
5024
+ abortCode?: Maybe<Scalars['BigInt']['output']>;
4936
5025
  /**
4937
5026
  * The effect this transaction had on the balances (sum of coin values per
4938
5027
  * coin type) of addresses and objects.
@@ -5020,6 +5109,11 @@ export type TransactionBlockEffectsUnchangedSharedObjectsArgs = {
5020
5109
  };
5021
5110
  /** Represents optional available filters for transaction blocks. */
5022
5111
  export type TransactionBlockFilter = {
5112
+ /**
5113
+ * Limit to transactions that affected the given address (the address is
5114
+ * the sender, a recipient, or the owner of the gas payment).
5115
+ */
5116
+ affectedAddress?: InputMaybe<Scalars['IotaAddress']['input']>;
5023
5117
  /** Limit to transactions that occurred strictly after the given checkpoint. */
5024
5118
  afterCheckpoint?: InputMaybe<Scalars['UInt53']['input']>;
5025
5119
  /** Limit to transactions in the given checkpoint. */
@@ -5055,7 +5149,7 @@ export type TransactionBlockFilter = {
5055
5149
  * The kind of transaction block, either a programmable transaction or a system
5056
5150
  * transaction.
5057
5151
  */
5058
- export type TransactionBlockKind = ConsensusCommitPrologueTransaction | EndOfEpochTransaction | GenesisTransaction | ProgrammableTransactionBlock | RandomnessStateUpdateTransaction;
5152
+ export type TransactionBlockKind = ConsensusCommitPrologueTransaction | EndOfEpochTransaction | GenesisTransaction | ProgrammableTransactionBlock | RandomnessStateUpdateTransaction | TransactionDenyRulesUpdateTransaction;
5059
5153
  /** An input filter selecting for either system or programmable transactions. */
5060
5154
  export declare enum TransactionBlockKindInput {
5061
5155
  /** The consensus commit prologue transaction block. */
@@ -5083,6 +5177,48 @@ export declare enum TransactionBlockKindInput {
5083
5177
  * number of lost payloads.
5084
5178
  */
5085
5179
  export type TransactionBlockSubscriptionPayload = Lagged | TransactionBlock;
5180
+ export type TransactionDenyRulesCreateTransaction = {
5181
+ __typename?: 'TransactionDenyRulesCreateTransaction';
5182
+ /** A workaround to define an empty variant of a GraphQL union. */
5183
+ dummy?: Maybe<Scalars['Boolean']['output']>;
5184
+ };
5185
+ /**
5186
+ * System transaction that applies an add/remove delta to the on-chain
5187
+ * transaction deny rules; the switch states are absolute.
5188
+ */
5189
+ export type TransactionDenyRulesUpdateTransaction = {
5190
+ __typename?: 'TransactionDenyRulesUpdateTransaction';
5191
+ /** Addresses added to the sender-or-sponsor deny list. */
5192
+ addedAddresses: Array<Scalars['IotaAddress']['output']>;
5193
+ /** Objects added to the input-or-receiving deny list. */
5194
+ addedObjects: Array<Scalars['IotaAddress']['output']>;
5195
+ /** Packages added to the dependency deny list. */
5196
+ addedPackages: Array<Scalars['IotaAddress']['output']>;
5197
+ /** The initial version the deny rules object was shared at. */
5198
+ denyRulesObjInitialSharedVersion: Scalars['UInt53']['output'];
5199
+ /** Epoch of the deny rules update transaction. */
5200
+ epoch?: Maybe<Epoch>;
5201
+ /** Whether transactions signed with a Move authenticator are denied. */
5202
+ moveAuthenticatorDisabled: Scalars['Boolean']['output'];
5203
+ /** Whether all package publishing is denied. */
5204
+ packagePublishDisabled: Scalars['Boolean']['output'];
5205
+ /** Whether all package upgrades are denied. */
5206
+ packageUpgradeDisabled: Scalars['Boolean']['output'];
5207
+ /** Whether transactions that contain receiving objects are denied. */
5208
+ receivingObjectsDisabled: Scalars['Boolean']['output'];
5209
+ /** Addresses removed from the sender-or-sponsor deny list. */
5210
+ removedAddresses: Array<Scalars['IotaAddress']['output']>;
5211
+ /** Objects removed from the input-or-receiving deny list. */
5212
+ removedObjects: Array<Scalars['IotaAddress']['output']>;
5213
+ /** Packages removed from the dependency deny list. */
5214
+ removedPackages: Array<Scalars['IotaAddress']['output']>;
5215
+ /** Consensus round of the update. */
5216
+ round: Scalars['UInt53']['output'];
5217
+ /** Whether transactions that use shared objects as inputs are denied. */
5218
+ sharedObjectDisabled: Scalars['Boolean']['output'];
5219
+ /** Whether all user transactions are denied. */
5220
+ userTransactionDisabled: Scalars['Boolean']['output'];
5221
+ };
5086
5222
  export type TransactionInput = OwnedOrImmutable | Pure | Receiving | SharedInput;
5087
5223
  export type TransactionInputConnection = {
5088
5224
  __typename?: 'TransactionInputConnection';
@@ -5115,6 +5251,22 @@ export type TransactionMetadata = {
5115
5251
  gasSponsor?: InputMaybe<Scalars['IotaAddress']['input']>;
5116
5252
  sender?: InputMaybe<Scalars['IotaAddress']['input']>;
5117
5253
  };
5254
+ /** A page of the `transactionsByDigests` query. */
5255
+ export type TransactionsByDigestsPage = {
5256
+ __typename?: 'TransactionsByDigestsPage';
5257
+ /**
5258
+ * Cursor of the last entry of this page; pass it as `cursor` to get the
5259
+ * next page.
5260
+ */
5261
+ endCursor?: Maybe<Scalars['String']['output']>;
5262
+ /** Whether there are more entries after this page. */
5263
+ hasNextPage: Scalars['Boolean']['output'];
5264
+ /**
5265
+ * One entry per digest of the page, in the order of the `digests`
5266
+ * argument, null when the transaction was not found.
5267
+ */
5268
+ nodes: Array<Maybe<TransactionBlock>>;
5269
+ };
5118
5270
  /**
5119
5271
  * Transfers `inputs` to `address`. All inputs must have the `store` ability
5120
5272
  * (allows public transfer) and must not be previously immutable or shared.
@@ -5470,6 +5622,8 @@ export type GetCheckpointQuery = {
5470
5622
  protocolVersion: any;
5471
5623
  };
5472
5624
  } | null;
5625
+ } | {
5626
+ __typename: 'TransactionDenyRulesCreateTransaction';
5473
5627
  }>;
5474
5628
  };
5475
5629
  } | {
@@ -5478,6 +5632,8 @@ export type GetCheckpointQuery = {
5478
5632
  __typename: 'ProgrammableTransactionBlock';
5479
5633
  } | {
5480
5634
  __typename: 'RandomnessStateUpdateTransaction';
5635
+ } | {
5636
+ __typename: 'TransactionDenyRulesUpdateTransaction';
5481
5637
  } | null;
5482
5638
  }>;
5483
5639
  };
@@ -5589,6 +5745,8 @@ export type GetCheckpointsQuery = {
5589
5745
  protocolVersion: any;
5590
5746
  };
5591
5747
  } | null;
5748
+ } | {
5749
+ __typename: 'TransactionDenyRulesCreateTransaction';
5592
5750
  }>;
5593
5751
  };
5594
5752
  } | {
@@ -5597,6 +5755,8 @@ export type GetCheckpointsQuery = {
5597
5755
  __typename: 'ProgrammableTransactionBlock';
5598
5756
  } | {
5599
5757
  __typename: 'RandomnessStateUpdateTransaction';
5758
+ } | {
5759
+ __typename: 'TransactionDenyRulesUpdateTransaction';
5600
5760
  } | null;
5601
5761
  }>;
5602
5762
  };
@@ -5714,6 +5874,8 @@ export type Rpc_Checkpoint_FieldsFragment = {
5714
5874
  protocolVersion: any;
5715
5875
  };
5716
5876
  } | null;
5877
+ } | {
5878
+ __typename: 'TransactionDenyRulesCreateTransaction';
5717
5879
  }>;
5718
5880
  };
5719
5881
  } | {
@@ -5722,6 +5884,8 @@ export type Rpc_Checkpoint_FieldsFragment = {
5722
5884
  __typename: 'ProgrammableTransactionBlock';
5723
5885
  } | {
5724
5886
  __typename: 'RandomnessStateUpdateTransaction';
5887
+ } | {
5888
+ __typename: 'TransactionDenyRulesUpdateTransaction';
5725
5889
  } | null;
5726
5890
  }>;
5727
5891
  };
@@ -8383,6 +8547,59 @@ export type Rpc_Stake_FieldsFragment = {
8383
8547
  json: any;
8384
8548
  } | null;
8385
8549
  };
8550
+ export type SubscribeEventsSubscriptionVariables = Exact<{
8551
+ filter?: InputMaybe<SubscriptionEventFilter>;
8552
+ startAfter?: InputMaybe<Scalars['String']['input']>;
8553
+ }>;
8554
+ export type SubscribeEventsSubscription = {
8555
+ __typename?: 'Subscription';
8556
+ events: {
8557
+ __typename: 'Event';
8558
+ json: any;
8559
+ bcs: any;
8560
+ timestamp?: any | null;
8561
+ transactionBlock?: {
8562
+ __typename?: 'TransactionBlock';
8563
+ digest?: string | null;
8564
+ } | null;
8565
+ sendingModule?: {
8566
+ __typename?: 'MoveModule';
8567
+ name: string;
8568
+ package: {
8569
+ __typename?: 'MovePackage';
8570
+ address: any;
8571
+ };
8572
+ } | null;
8573
+ sender?: {
8574
+ __typename?: 'Address';
8575
+ address: any;
8576
+ } | null;
8577
+ type: {
8578
+ __typename?: 'MoveType';
8579
+ repr: string;
8580
+ };
8581
+ } | {
8582
+ __typename: 'Lagged';
8583
+ count: number;
8584
+ };
8585
+ };
8586
+ export type SubscribeTransactionsSubscriptionVariables = Exact<{
8587
+ filter?: InputMaybe<SubscriptionTransactionFilter>;
8588
+ startAfter?: InputMaybe<Scalars['String']['input']>;
8589
+ }>;
8590
+ export type SubscribeTransactionsSubscription = {
8591
+ __typename?: 'Subscription';
8592
+ transactions: {
8593
+ __typename: 'Lagged';
8594
+ count: number;
8595
+ } | {
8596
+ __typename: 'TransactionBlock';
8597
+ effects?: {
8598
+ __typename?: 'TransactionBlockEffects';
8599
+ bcs: any;
8600
+ } | null;
8601
+ };
8602
+ };
8386
8603
  export type TransactionBlocksByDigestsQueryVariables = Exact<{
8387
8604
  digests: Array<Scalars['String']['input']> | Scalars['String']['input'];
8388
8605
  }>;
@@ -9268,6 +9485,8 @@ export declare const MultiGetObjectsDocument: TypedDocumentString<MultiGetObject
9268
9485
  export declare const QueryEventsDocument: TypedDocumentString<QueryEventsQuery, QueryEventsQueryVariables>;
9269
9486
  export declare const GetStakesDocument: TypedDocumentString<GetStakesQuery, GetStakesQueryVariables>;
9270
9487
  export declare const GetStakesByIdsDocument: TypedDocumentString<GetStakesByIdsQuery, GetStakesByIdsQueryVariables>;
9488
+ export declare const SubscribeEventsDocument: TypedDocumentString<SubscribeEventsSubscription, SubscribeEventsSubscriptionVariables>;
9489
+ export declare const SubscribeTransactionsDocument: TypedDocumentString<SubscribeTransactionsSubscription, SubscribeTransactionsSubscriptionVariables>;
9271
9490
  export declare const TransactionBlocksByDigestsDocument: TypedDocumentString<TransactionBlocksByDigestsQuery, TransactionBlocksByDigestsQueryVariables>;
9272
9491
  export declare const QueryTransactionBlocksDocument: TypedDocumentString<QueryTransactionBlocksQuery, QueryTransactionBlocksQueryVariables>;
9273
9492
  export declare const GetTransactionBlockDocument: TypedDocumentString<GetTransactionBlockQuery, GetTransactionBlockQueryVariables>;