@requestnetwork/payment-detection 0.36.1-next.1864 → 0.36.1-next.1866

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.
@@ -23,10 +23,7 @@ export type Scalars = {
23
23
  BigInt: any;
24
24
  Bytes: any;
25
25
  };
26
- /**
27
- * Account: A higher order entity created for any addresses which interact with
28
- * Superfluid contracts.
29
- */
26
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
30
27
  export type Account = {
31
28
  __typename?: 'Account';
32
29
  id: Scalars['ID'];
@@ -46,10 +43,7 @@ export type Account = {
46
43
  tokenDowngradedEvents: Array<TokenDowngradedEvent>;
47
44
  accountTokenSnapshots: Array<AccountTokenSnapshot>;
48
45
  };
49
- /**
50
- * Account: A higher order entity created for any addresses which interact with
51
- * Superfluid contracts.
52
- */
46
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
53
47
  export type AccountInflowsArgs = {
54
48
  skip?: Maybe<Scalars['Int']>;
55
49
  first?: Maybe<Scalars['Int']>;
@@ -57,10 +51,7 @@ export type AccountInflowsArgs = {
57
51
  orderDirection?: Maybe<OrderDirection>;
58
52
  where?: Maybe<Stream_Filter>;
59
53
  };
60
- /**
61
- * Account: A higher order entity created for any addresses which interact with
62
- * Superfluid contracts.
63
- */
54
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
64
55
  export type AccountOutflowsArgs = {
65
56
  skip?: Maybe<Scalars['Int']>;
66
57
  first?: Maybe<Scalars['Int']>;
@@ -68,10 +59,7 @@ export type AccountOutflowsArgs = {
68
59
  orderDirection?: Maybe<OrderDirection>;
69
60
  where?: Maybe<Stream_Filter>;
70
61
  };
71
- /**
72
- * Account: A higher order entity created for any addresses which interact with
73
- * Superfluid contracts.
74
- */
62
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
75
63
  export type AccountSubscriptionsArgs = {
76
64
  skip?: Maybe<Scalars['Int']>;
77
65
  first?: Maybe<Scalars['Int']>;
@@ -79,10 +67,7 @@ export type AccountSubscriptionsArgs = {
79
67
  orderDirection?: Maybe<OrderDirection>;
80
68
  where?: Maybe<IndexSubscription_Filter>;
81
69
  };
82
- /**
83
- * Account: A higher order entity created for any addresses which interact with
84
- * Superfluid contracts.
85
- */
70
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
86
71
  export type AccountPublishedIndexesArgs = {
87
72
  skip?: Maybe<Scalars['Int']>;
88
73
  first?: Maybe<Scalars['Int']>;
@@ -90,10 +75,7 @@ export type AccountPublishedIndexesArgs = {
90
75
  orderDirection?: Maybe<OrderDirection>;
91
76
  where?: Maybe<Index_Filter>;
92
77
  };
93
- /**
94
- * Account: A higher order entity created for any addresses which interact with
95
- * Superfluid contracts.
96
- */
78
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
97
79
  export type AccountSentTransferEventsArgs = {
98
80
  skip?: Maybe<Scalars['Int']>;
99
81
  first?: Maybe<Scalars['Int']>;
@@ -101,10 +83,7 @@ export type AccountSentTransferEventsArgs = {
101
83
  orderDirection?: Maybe<OrderDirection>;
102
84
  where?: Maybe<TransferEvent_Filter>;
103
85
  };
104
- /**
105
- * Account: A higher order entity created for any addresses which interact with
106
- * Superfluid contracts.
107
- */
86
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
108
87
  export type AccountReceivedTransferEventsArgs = {
109
88
  skip?: Maybe<Scalars['Int']>;
110
89
  first?: Maybe<Scalars['Int']>;
@@ -112,10 +91,7 @@ export type AccountReceivedTransferEventsArgs = {
112
91
  orderDirection?: Maybe<OrderDirection>;
113
92
  where?: Maybe<TransferEvent_Filter>;
114
93
  };
115
- /**
116
- * Account: A higher order entity created for any addresses which interact with
117
- * Superfluid contracts.
118
- */
94
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
119
95
  export type AccountTokenUpgradedEventsArgs = {
120
96
  skip?: Maybe<Scalars['Int']>;
121
97
  first?: Maybe<Scalars['Int']>;
@@ -123,10 +99,7 @@ export type AccountTokenUpgradedEventsArgs = {
123
99
  orderDirection?: Maybe<OrderDirection>;
124
100
  where?: Maybe<TokenUpgradedEvent_Filter>;
125
101
  };
126
- /**
127
- * Account: A higher order entity created for any addresses which interact with
128
- * Superfluid contracts.
129
- */
102
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
130
103
  export type AccountTokenDowngradedEventsArgs = {
131
104
  skip?: Maybe<Scalars['Int']>;
132
105
  first?: Maybe<Scalars['Int']>;
@@ -134,10 +107,7 @@ export type AccountTokenDowngradedEventsArgs = {
134
107
  orderDirection?: Maybe<OrderDirection>;
135
108
  where?: Maybe<TokenDowngradedEvent_Filter>;
136
109
  };
137
- /**
138
- * Account: A higher order entity created for any addresses which interact with
139
- * Superfluid contracts.
140
- */
110
+ /** Account: A higher order entity created for any addresses which interact with Superfluid contracts. */
141
111
  export type AccountAccountTokenSnapshotsArgs = {
142
112
  skip?: Maybe<Scalars['Int']>;
143
113
  first?: Maybe<Scalars['Int']>;
@@ -145,10 +115,7 @@ export type AccountAccountTokenSnapshotsArgs = {
145
115
  orderDirection?: Maybe<OrderDirection>;
146
116
  where?: Maybe<AccountTokenSnapshot_Filter>;
147
117
  };
148
- /**
149
- * AccountTokenSnapshot: An aggregate entity which aggregates data on an account's
150
- * interaction with a `token`.
151
- */
118
+ /** AccountTokenSnapshot: An aggregate entity which aggregates data between an `account`'s interaction with `token`. */
152
119
  export type AccountTokenSnapshot = {
153
120
  __typename?: 'AccountTokenSnapshot';
154
121
  /** ID composed of: accountID-tokenID */
@@ -157,14 +124,14 @@ export type AccountTokenSnapshot = {
157
124
  updatedAtBlockNumber: Scalars['BigInt'];
158
125
  /**
159
126
  * isLiquidationEstimateOptimistic, If `totalSubscriptionsWithUnits > 0`, it is true.
160
- * Optimistic means that it is the earliest time the user will be liquidated as they may receive ongoing distributions which aren't tracked by the subgraph
127
+ * "Optimistic" can be thought of as conservative as it refers to the earliest time the user may be liquidated as they may receive ongoing distributions which aren't tracked by the subgraph.
161
128
  */
162
129
  isLiquidationEstimateOptimistic: Scalars['Boolean'];
163
130
  /** Optimistic liquidation estimation property. */
164
131
  maybeCriticalAtTimestamp?: Maybe<Scalars['BigInt']>;
165
132
  /** The number of currently open streams. */
166
133
  totalNumberOfActiveStreams: Scalars['Int'];
167
- /** The number of all-time closed streams. */
134
+ /** The count of closed streams by `account`. */
168
135
  totalNumberOfClosedStreams: Scalars['Int'];
169
136
  /** The current (as of updatedAt) number of subscriptions with units allocated to them tied to this `account`. */
170
137
  totalSubscriptionsWithUnits: Scalars['Int'];
@@ -180,20 +147,11 @@ export type AccountTokenSnapshot = {
180
147
  totalInflowRate: Scalars['BigInt'];
181
148
  /** The total outflow rate (send flowrate per second) of the `account`. */
182
149
  totalOutflowRate: Scalars['BigInt'];
183
- /**
184
- * The total amount of `token` streamed into this `account` until
185
- * the `updatedAtTimestamp`/`updatedAtBlock`.
186
- */
150
+ /** The total amount of `token` streamed into this `account` until the `updatedAtTimestamp`/`updatedAtBlock`. */
187
151
  totalAmountStreamedInUntilUpdatedAt: Scalars['BigInt'];
188
- /**
189
- * The total amount of `token` streamed from this `account` until
190
- * the `updatedAtTimestamp`/`updatedAtBlock`.
191
- */
152
+ /** The total amount of `token` streamed from this `account` until the `updatedAtTimestamp`/`updatedAtBlock`. */
192
153
  totalAmountStreamedOutUntilUpdatedAt: Scalars['BigInt'];
193
- /**
194
- * The total amount of `token` streamed through this `account` until
195
- * the `updatedAtTimestamp`/`updatedAtBlock`.
196
- */
154
+ /** The total amount of `token` streamed through this `account` until the `updatedAtTimestamp`/`updatedAtBlock`. */
197
155
  totalAmountStreamedUntilUpdatedAt: Scalars['BigInt'];
198
156
  /** The total amount of `token` this `account` has transferred. */
199
157
  totalAmountTransferredUntilUpdatedAt: Scalars['BigInt'];
@@ -202,10 +160,7 @@ export type AccountTokenSnapshot = {
202
160
  flowOperators: Array<FlowOperator>;
203
161
  accountTokenSnapshotLogs: Array<AccountTokenSnapshotLog>;
204
162
  };
205
- /**
206
- * AccountTokenSnapshot: An aggregate entity which aggregates data on an account's
207
- * interaction with a `token`.
208
- */
163
+ /** AccountTokenSnapshot: An aggregate entity which aggregates data between an `account`'s interaction with `token`. */
209
164
  export type AccountTokenSnapshotFlowOperatorsArgs = {
210
165
  skip?: Maybe<Scalars['Int']>;
211
166
  first?: Maybe<Scalars['Int']>;
@@ -213,10 +168,7 @@ export type AccountTokenSnapshotFlowOperatorsArgs = {
213
168
  orderDirection?: Maybe<OrderDirection>;
214
169
  where?: Maybe<FlowOperator_Filter>;
215
170
  };
216
- /**
217
- * AccountTokenSnapshot: An aggregate entity which aggregates data on an account's
218
- * interaction with a `token`.
219
- */
171
+ /** AccountTokenSnapshot: An aggregate entity which aggregates data between an `account`'s interaction with `token`. */
220
172
  export type AccountTokenSnapshotAccountTokenSnapshotLogsArgs = {
221
173
  skip?: Maybe<Scalars['Int']>;
222
174
  first?: Maybe<Scalars['Int']>;
@@ -224,7 +176,7 @@ export type AccountTokenSnapshotAccountTokenSnapshotLogsArgs = {
224
176
  orderDirection?: Maybe<OrderDirection>;
225
177
  where?: Maybe<AccountTokenSnapshotLog_Filter>;
226
178
  };
227
- /** AccountTokenSnapshotLog: Historical entries of AccountTokenSnapshot updates. */
179
+ /** AccountTokenSnapshotLog: Historical entries of `AccountTokenSnapshot` updates. */
228
180
  export type AccountTokenSnapshotLog = {
229
181
  __typename?: 'AccountTokenSnapshotLog';
230
182
  id: Scalars['ID'];
@@ -236,9 +188,9 @@ export type AccountTokenSnapshotLog = {
236
188
  triggeredByEventName: Scalars['String'];
237
189
  /** Optimistic liquidation estimation property. */
238
190
  maybeCriticalAtTimestamp?: Maybe<Scalars['BigInt']>;
239
- /** The current (as of timestamp) number of currently open streams. */
191
+ /** The current (as of timestamp) number of open streams. */
240
192
  totalNumberOfActiveStreams: Scalars['Int'];
241
- /** The current (as of timestamp) number of all-time closed streams. */
193
+ /** The current (as of timestamp) count of closed streams. */
242
194
  totalNumberOfClosedStreams: Scalars['Int'];
243
195
  /** The current (as of timestamp) number of subscriptions with units allocated to them tied to this `account`. */
244
196
  totalSubscriptionsWithUnits: Scalars['Int'];
@@ -248,28 +200,22 @@ export type AccountTokenSnapshotLog = {
248
200
  balance: Scalars['BigInt'];
249
201
  /** The total (as of timestamp) deposit this account has held by the CFA agreement for `account` active streams. */
250
202
  totalDeposit: Scalars['BigInt'];
251
- /** The total (as of timestamp) net flow rate of the `account` as of `timestamp`/`block`. */
203
+ /**
204
+ * The total (as of timestamp) net flow rate of the `account` as of `timestamp`/`block`.
205
+ * This can be obtained by: `totalInflowRate - totalOutflowRate`
206
+ */
252
207
  totalNetFlowRate: Scalars['BigInt'];
253
208
  /** The total (as of timestamp) inflow rate (receive flowRate per second) of the `account`. */
254
209
  totalInflowRate: Scalars['BigInt'];
255
210
  /** The total (as of timestamp) outflow rate (send flowrate per second) of the `account`. */
256
211
  totalOutflowRate: Scalars['BigInt'];
257
- /**
258
- * The total (as of timestamp) amount of `token` streamed into this `account` until
259
- * the `timestamp`/`block`.
260
- */
212
+ /** The total (as of timestamp) amount of `token` streamed into this `account` until the `timestamp`/`block`. */
261
213
  totalAmountStreamedIn: Scalars['BigInt'];
262
- /**
263
- * The total (as of timestamp) amount of `token` streamed from this `account` until
264
- * the `timestamp`/`block`.
265
- */
214
+ /** The total (as of timestamp) amount of `token` streamed from this `account` until the `timestamp`/`block`. */
266
215
  totalAmountStreamedOut: Scalars['BigInt'];
267
- /**
268
- * The total (as of timestamp) net amount of `token` streamed through this `account` until
269
- * the `timestamp`/`block`.
270
- */
216
+ /** The total (as of timestamp) net amount of `token` streamed through this `account` until the `timestamp`/`block`. */
271
217
  totalAmountStreamed: Scalars['BigInt'];
272
- /** The total (as of timestamp) amount of `token` this `account` has transferred. */
218
+ /** The total (as of timestamp) amount of `token` this `account` has transferred out until the `timestamp`/`block`. */
273
219
  totalAmountTransferred: Scalars['BigInt'];
274
220
  account: Account;
275
221
  token: Token;
@@ -549,8 +495,42 @@ export declare enum AccountTokenSnapshotLog_OrderBy {
549
495
  TotalAmountStreamed = "totalAmountStreamed",
550
496
  TotalAmountTransferred = "totalAmountTransferred",
551
497
  Account = "account",
498
+ Account__id = "account__id",
499
+ Account__createdAtTimestamp = "account__createdAtTimestamp",
500
+ Account__createdAtBlockNumber = "account__createdAtBlockNumber",
501
+ Account__updatedAtTimestamp = "account__updatedAtTimestamp",
502
+ Account__updatedAtBlockNumber = "account__updatedAtBlockNumber",
503
+ Account__isSuperApp = "account__isSuperApp",
552
504
  Token = "token",
553
- AccountTokenSnapshot = "accountTokenSnapshot"
505
+ Token__id = "token__id",
506
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
507
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
508
+ Token__decimals = "token__decimals",
509
+ Token__name = "token__name",
510
+ Token__symbol = "token__symbol",
511
+ Token__isSuperToken = "token__isSuperToken",
512
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
513
+ Token__isListed = "token__isListed",
514
+ Token__underlyingAddress = "token__underlyingAddress",
515
+ AccountTokenSnapshot = "accountTokenSnapshot",
516
+ AccountTokenSnapshot__id = "accountTokenSnapshot__id",
517
+ AccountTokenSnapshot__updatedAtTimestamp = "accountTokenSnapshot__updatedAtTimestamp",
518
+ AccountTokenSnapshot__updatedAtBlockNumber = "accountTokenSnapshot__updatedAtBlockNumber",
519
+ AccountTokenSnapshot__isLiquidationEstimateOptimistic = "accountTokenSnapshot__isLiquidationEstimateOptimistic",
520
+ AccountTokenSnapshot__maybeCriticalAtTimestamp = "accountTokenSnapshot__maybeCriticalAtTimestamp",
521
+ AccountTokenSnapshot__totalNumberOfActiveStreams = "accountTokenSnapshot__totalNumberOfActiveStreams",
522
+ AccountTokenSnapshot__totalNumberOfClosedStreams = "accountTokenSnapshot__totalNumberOfClosedStreams",
523
+ AccountTokenSnapshot__totalSubscriptionsWithUnits = "accountTokenSnapshot__totalSubscriptionsWithUnits",
524
+ AccountTokenSnapshot__totalApprovedSubscriptions = "accountTokenSnapshot__totalApprovedSubscriptions",
525
+ AccountTokenSnapshot__balanceUntilUpdatedAt = "accountTokenSnapshot__balanceUntilUpdatedAt",
526
+ AccountTokenSnapshot__totalDeposit = "accountTokenSnapshot__totalDeposit",
527
+ AccountTokenSnapshot__totalNetFlowRate = "accountTokenSnapshot__totalNetFlowRate",
528
+ AccountTokenSnapshot__totalInflowRate = "accountTokenSnapshot__totalInflowRate",
529
+ AccountTokenSnapshot__totalOutflowRate = "accountTokenSnapshot__totalOutflowRate",
530
+ AccountTokenSnapshot__totalAmountStreamedInUntilUpdatedAt = "accountTokenSnapshot__totalAmountStreamedInUntilUpdatedAt",
531
+ AccountTokenSnapshot__totalAmountStreamedOutUntilUpdatedAt = "accountTokenSnapshot__totalAmountStreamedOutUntilUpdatedAt",
532
+ AccountTokenSnapshot__totalAmountStreamedUntilUpdatedAt = "accountTokenSnapshot__totalAmountStreamedUntilUpdatedAt",
533
+ AccountTokenSnapshot__totalAmountTransferredUntilUpdatedAt = "accountTokenSnapshot__totalAmountTransferredUntilUpdatedAt"
554
534
  }
555
535
  export type AccountTokenSnapshot_Filter = {
556
536
  id?: Maybe<Scalars['ID']>;
@@ -762,7 +742,23 @@ export declare enum AccountTokenSnapshot_OrderBy {
762
742
  TotalAmountStreamedUntilUpdatedAt = "totalAmountStreamedUntilUpdatedAt",
763
743
  TotalAmountTransferredUntilUpdatedAt = "totalAmountTransferredUntilUpdatedAt",
764
744
  Account = "account",
745
+ Account__id = "account__id",
746
+ Account__createdAtTimestamp = "account__createdAtTimestamp",
747
+ Account__createdAtBlockNumber = "account__createdAtBlockNumber",
748
+ Account__updatedAtTimestamp = "account__updatedAtTimestamp",
749
+ Account__updatedAtBlockNumber = "account__updatedAtBlockNumber",
750
+ Account__isSuperApp = "account__isSuperApp",
765
751
  Token = "token",
752
+ Token__id = "token__id",
753
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
754
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
755
+ Token__decimals = "token__decimals",
756
+ Token__name = "token__name",
757
+ Token__symbol = "token__symbol",
758
+ Token__isSuperToken = "token__isSuperToken",
759
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
760
+ Token__isListed = "token__isListed",
761
+ Token__underlyingAddress = "token__underlyingAddress",
766
762
  FlowOperators = "flowOperators",
767
763
  AccountTokenSnapshotLogs = "accountTokenSnapshotLogs"
768
764
  }
@@ -847,6 +843,7 @@ export type AgreementClassRegisteredEvent = Event & {
847
843
  id: Scalars['ID'];
848
844
  transactionHash: Scalars['Bytes'];
849
845
  gasPrice: Scalars['BigInt'];
846
+ gasUsed: Scalars['BigInt'];
850
847
  timestamp: Scalars['BigInt'];
851
848
  name: Scalars['String'];
852
849
  /** Empty addresses array. */
@@ -884,6 +881,14 @@ export type AgreementClassRegisteredEvent_Filter = {
884
881
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
885
882
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
886
883
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
884
+ gasUsed?: Maybe<Scalars['BigInt']>;
885
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
886
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
887
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
888
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
889
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
890
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
891
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
887
892
  timestamp?: Maybe<Scalars['BigInt']>;
888
893
  timestamp_not?: Maybe<Scalars['BigInt']>;
889
894
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -971,6 +976,7 @@ export declare enum AgreementClassRegisteredEvent_OrderBy {
971
976
  Id = "id",
972
977
  TransactionHash = "transactionHash",
973
978
  GasPrice = "gasPrice",
979
+ GasUsed = "gasUsed",
974
980
  Timestamp = "timestamp",
975
981
  Name = "name",
976
982
  Addresses = "addresses",
@@ -985,6 +991,7 @@ export type AgreementClassUpdatedEvent = Event & {
985
991
  id: Scalars['ID'];
986
992
  transactionHash: Scalars['Bytes'];
987
993
  gasPrice: Scalars['BigInt'];
994
+ gasUsed: Scalars['BigInt'];
988
995
  timestamp: Scalars['BigInt'];
989
996
  name: Scalars['String'];
990
997
  /** Empty addresses array. */
@@ -1022,6 +1029,14 @@ export type AgreementClassUpdatedEvent_Filter = {
1022
1029
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
1023
1030
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1024
1031
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
1032
+ gasUsed?: Maybe<Scalars['BigInt']>;
1033
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
1034
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
1035
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
1036
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
1037
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
1038
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
1039
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1025
1040
  timestamp?: Maybe<Scalars['BigInt']>;
1026
1041
  timestamp_not?: Maybe<Scalars['BigInt']>;
1027
1042
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -1109,6 +1124,7 @@ export declare enum AgreementClassUpdatedEvent_OrderBy {
1109
1124
  Id = "id",
1110
1125
  TransactionHash = "transactionHash",
1111
1126
  GasPrice = "gasPrice",
1127
+ GasUsed = "gasUsed",
1112
1128
  Timestamp = "timestamp",
1113
1129
  Name = "name",
1114
1130
  Addresses = "addresses",
@@ -1118,14 +1134,27 @@ export declare enum AgreementClassUpdatedEvent_OrderBy {
1118
1134
  AgreementType = "agreementType",
1119
1135
  Code = "code"
1120
1136
  }
1137
+ /**
1138
+ * NOTE: This event was deprecated since the introduction of the 3Ps system.
1139
+ * Replaced by: `AgreementLiquidatedV2Event`
1140
+ * See: https://docs.superfluid.finance/superfluid/sentinels/liquidations-and-toga#patricians-plebs-and-pirates-3ps for more details on the 3Ps system.
1141
+ * See: https://github.com/superfluid-finance/protocol-monorepo/blob/dev/packages/ethereum-contracts/contracts/interfaces/superfluid/ISuperfluidToken.sol#L425 for more details on the events.
1142
+ */
1121
1143
  export type AgreementLiquidatedByEvent = Event & {
1122
1144
  __typename?: 'AgreementLiquidatedByEvent';
1123
1145
  id: Scalars['ID'];
1124
1146
  transactionHash: Scalars['Bytes'];
1125
1147
  gasPrice: Scalars['BigInt'];
1148
+ gasUsed: Scalars['BigInt'];
1126
1149
  timestamp: Scalars['BigInt'];
1127
1150
  name: Scalars['String'];
1128
- /** Holds the token, liquidatorAccount, penaltyAccount and bondAccount addresses. */
1151
+ /**
1152
+ * Contains the addresses that were impacted by this event:
1153
+ * addresses[0] = `token` (superToken)
1154
+ * addresses[1] = liquidatorAccount (executor of liquidation)
1155
+ * addresses[2] = penaltyAccount (the sender of the flow/stream)
1156
+ * addresses[3] = bondAccount (the address receiving the reward - the reward account for the token, pre 3Ps)
1157
+ */
1129
1158
  addresses: Array<Scalars['Bytes']>;
1130
1159
  blockNumber: Scalars['BigInt'];
1131
1160
  logIndex: Scalars['BigInt'];
@@ -1138,6 +1167,10 @@ export type AgreementLiquidatedByEvent = Event & {
1138
1167
  bondAccount: Scalars['Bytes'];
1139
1168
  rewardAmount: Scalars['BigInt'];
1140
1169
  bailoutAmount: Scalars['BigInt'];
1170
+ /** The full deposit amount of the stream that was liquidated. */
1171
+ deposit: Scalars['BigInt'];
1172
+ /** The flow rate of the stream at the time of liquidation. */
1173
+ flowRateAtLiquidation: Scalars['BigInt'];
1141
1174
  };
1142
1175
  export type AgreementLiquidatedByEvent_Filter = {
1143
1176
  id?: Maybe<Scalars['ID']>;
@@ -1166,6 +1199,14 @@ export type AgreementLiquidatedByEvent_Filter = {
1166
1199
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
1167
1200
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1168
1201
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
1202
+ gasUsed?: Maybe<Scalars['BigInt']>;
1203
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
1204
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
1205
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
1206
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
1207
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
1208
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
1209
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1169
1210
  timestamp?: Maybe<Scalars['BigInt']>;
1170
1211
  timestamp_not?: Maybe<Scalars['BigInt']>;
1171
1212
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -1300,6 +1341,22 @@ export type AgreementLiquidatedByEvent_Filter = {
1300
1341
  bailoutAmount_lte?: Maybe<Scalars['BigInt']>;
1301
1342
  bailoutAmount_in?: Maybe<Array<Scalars['BigInt']>>;
1302
1343
  bailoutAmount_not_in?: Maybe<Array<Scalars['BigInt']>>;
1344
+ deposit?: Maybe<Scalars['BigInt']>;
1345
+ deposit_not?: Maybe<Scalars['BigInt']>;
1346
+ deposit_gt?: Maybe<Scalars['BigInt']>;
1347
+ deposit_lt?: Maybe<Scalars['BigInt']>;
1348
+ deposit_gte?: Maybe<Scalars['BigInt']>;
1349
+ deposit_lte?: Maybe<Scalars['BigInt']>;
1350
+ deposit_in?: Maybe<Array<Scalars['BigInt']>>;
1351
+ deposit_not_in?: Maybe<Array<Scalars['BigInt']>>;
1352
+ flowRateAtLiquidation?: Maybe<Scalars['BigInt']>;
1353
+ flowRateAtLiquidation_not?: Maybe<Scalars['BigInt']>;
1354
+ flowRateAtLiquidation_gt?: Maybe<Scalars['BigInt']>;
1355
+ flowRateAtLiquidation_lt?: Maybe<Scalars['BigInt']>;
1356
+ flowRateAtLiquidation_gte?: Maybe<Scalars['BigInt']>;
1357
+ flowRateAtLiquidation_lte?: Maybe<Scalars['BigInt']>;
1358
+ flowRateAtLiquidation_in?: Maybe<Array<Scalars['BigInt']>>;
1359
+ flowRateAtLiquidation_not_in?: Maybe<Array<Scalars['BigInt']>>;
1303
1360
  /** Filter for the block changed event. */
1304
1361
  _change_block?: Maybe<BlockChangedFilter>;
1305
1362
  and?: Maybe<Array<Maybe<AgreementLiquidatedByEvent_Filter>>>;
@@ -1309,6 +1366,7 @@ export declare enum AgreementLiquidatedByEvent_OrderBy {
1309
1366
  Id = "id",
1310
1367
  TransactionHash = "transactionHash",
1311
1368
  GasPrice = "gasPrice",
1369
+ GasUsed = "gasUsed",
1312
1370
  Timestamp = "timestamp",
1313
1371
  Name = "name",
1314
1372
  Addresses = "addresses",
@@ -1322,30 +1380,43 @@ export declare enum AgreementLiquidatedByEvent_OrderBy {
1322
1380
  PenaltyAccount = "penaltyAccount",
1323
1381
  BondAccount = "bondAccount",
1324
1382
  RewardAmount = "rewardAmount",
1325
- BailoutAmount = "bailoutAmount"
1383
+ BailoutAmount = "bailoutAmount",
1384
+ Deposit = "deposit",
1385
+ FlowRateAtLiquidation = "flowRateAtLiquidation"
1326
1386
  }
1327
1387
  export type AgreementLiquidatedV2Event = Event & {
1328
1388
  __typename?: 'AgreementLiquidatedV2Event';
1329
1389
  id: Scalars['ID'];
1330
1390
  transactionHash: Scalars['Bytes'];
1331
1391
  gasPrice: Scalars['BigInt'];
1392
+ gasUsed: Scalars['BigInt'];
1332
1393
  timestamp: Scalars['BigInt'];
1333
1394
  name: Scalars['String'];
1334
- /** Holds the token, liquidatorAccount, targetAccount and rewardAmountReceiver addresses. */
1395
+ /**
1396
+ * Contains the addresses that were impacted by this event:
1397
+ * addresses[0] = `token` (superToken)
1398
+ * addresses[1] = `liquidatorAccount` (executor of liquidation)
1399
+ * addresses[2] = `targetAccount` (the sender of the flow/stream)
1400
+ * addresses[3] = `rewardAmountReceiver` (the address receiving the reward) addresses
1401
+ */
1335
1402
  addresses: Array<Scalars['Bytes']>;
1336
1403
  blockNumber: Scalars['BigInt'];
1337
1404
  logIndex: Scalars['BigInt'];
1338
1405
  order: Scalars['BigInt'];
1339
1406
  token: Scalars['Bytes'];
1340
- liquidatorAccount: Scalars['Bytes'];
1341
1407
  agreementClass: Scalars['Bytes'];
1342
1408
  agreementId: Scalars['Bytes'];
1409
+ liquidatorAccount: Scalars['Bytes'];
1343
1410
  targetAccount: Scalars['Bytes'];
1344
1411
  rewardAmountReceiver: Scalars['Bytes'];
1345
1412
  rewardAmount: Scalars['BigInt'];
1346
1413
  targetAccountBalanceDelta: Scalars['BigInt'];
1347
1414
  version: Scalars['BigInt'];
1348
1415
  liquidationType: Scalars['Int'];
1416
+ /** The full deposit amount of the stream that was liquidated. */
1417
+ deposit: Scalars['BigInt'];
1418
+ /** The flow rate of the stream at the time of liquidation. */
1419
+ flowRateAtLiquidation: Scalars['BigInt'];
1349
1420
  /** TO BE DEPRECATED in v2 endpoint - use rewardAmountReceiver instead */
1350
1421
  rewardAccount: Scalars['Bytes'];
1351
1422
  };
@@ -1376,6 +1447,14 @@ export type AgreementLiquidatedV2Event_Filter = {
1376
1447
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
1377
1448
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1378
1449
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
1450
+ gasUsed?: Maybe<Scalars['BigInt']>;
1451
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
1452
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
1453
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
1454
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
1455
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
1456
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
1457
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1379
1458
  timestamp?: Maybe<Scalars['BigInt']>;
1380
1459
  timestamp_not?: Maybe<Scalars['BigInt']>;
1381
1460
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -1444,16 +1523,6 @@ export type AgreementLiquidatedV2Event_Filter = {
1444
1523
  token_not_in?: Maybe<Array<Scalars['Bytes']>>;
1445
1524
  token_contains?: Maybe<Scalars['Bytes']>;
1446
1525
  token_not_contains?: Maybe<Scalars['Bytes']>;
1447
- liquidatorAccount?: Maybe<Scalars['Bytes']>;
1448
- liquidatorAccount_not?: Maybe<Scalars['Bytes']>;
1449
- liquidatorAccount_gt?: Maybe<Scalars['Bytes']>;
1450
- liquidatorAccount_lt?: Maybe<Scalars['Bytes']>;
1451
- liquidatorAccount_gte?: Maybe<Scalars['Bytes']>;
1452
- liquidatorAccount_lte?: Maybe<Scalars['Bytes']>;
1453
- liquidatorAccount_in?: Maybe<Array<Scalars['Bytes']>>;
1454
- liquidatorAccount_not_in?: Maybe<Array<Scalars['Bytes']>>;
1455
- liquidatorAccount_contains?: Maybe<Scalars['Bytes']>;
1456
- liquidatorAccount_not_contains?: Maybe<Scalars['Bytes']>;
1457
1526
  agreementClass?: Maybe<Scalars['Bytes']>;
1458
1527
  agreementClass_not?: Maybe<Scalars['Bytes']>;
1459
1528
  agreementClass_gt?: Maybe<Scalars['Bytes']>;
@@ -1474,6 +1543,16 @@ export type AgreementLiquidatedV2Event_Filter = {
1474
1543
  agreementId_not_in?: Maybe<Array<Scalars['Bytes']>>;
1475
1544
  agreementId_contains?: Maybe<Scalars['Bytes']>;
1476
1545
  agreementId_not_contains?: Maybe<Scalars['Bytes']>;
1546
+ liquidatorAccount?: Maybe<Scalars['Bytes']>;
1547
+ liquidatorAccount_not?: Maybe<Scalars['Bytes']>;
1548
+ liquidatorAccount_gt?: Maybe<Scalars['Bytes']>;
1549
+ liquidatorAccount_lt?: Maybe<Scalars['Bytes']>;
1550
+ liquidatorAccount_gte?: Maybe<Scalars['Bytes']>;
1551
+ liquidatorAccount_lte?: Maybe<Scalars['Bytes']>;
1552
+ liquidatorAccount_in?: Maybe<Array<Scalars['Bytes']>>;
1553
+ liquidatorAccount_not_in?: Maybe<Array<Scalars['Bytes']>>;
1554
+ liquidatorAccount_contains?: Maybe<Scalars['Bytes']>;
1555
+ liquidatorAccount_not_contains?: Maybe<Scalars['Bytes']>;
1477
1556
  targetAccount?: Maybe<Scalars['Bytes']>;
1478
1557
  targetAccount_not?: Maybe<Scalars['Bytes']>;
1479
1558
  targetAccount_gt?: Maybe<Scalars['Bytes']>;
@@ -1526,6 +1605,22 @@ export type AgreementLiquidatedV2Event_Filter = {
1526
1605
  liquidationType_lte?: Maybe<Scalars['Int']>;
1527
1606
  liquidationType_in?: Maybe<Array<Scalars['Int']>>;
1528
1607
  liquidationType_not_in?: Maybe<Array<Scalars['Int']>>;
1608
+ deposit?: Maybe<Scalars['BigInt']>;
1609
+ deposit_not?: Maybe<Scalars['BigInt']>;
1610
+ deposit_gt?: Maybe<Scalars['BigInt']>;
1611
+ deposit_lt?: Maybe<Scalars['BigInt']>;
1612
+ deposit_gte?: Maybe<Scalars['BigInt']>;
1613
+ deposit_lte?: Maybe<Scalars['BigInt']>;
1614
+ deposit_in?: Maybe<Array<Scalars['BigInt']>>;
1615
+ deposit_not_in?: Maybe<Array<Scalars['BigInt']>>;
1616
+ flowRateAtLiquidation?: Maybe<Scalars['BigInt']>;
1617
+ flowRateAtLiquidation_not?: Maybe<Scalars['BigInt']>;
1618
+ flowRateAtLiquidation_gt?: Maybe<Scalars['BigInt']>;
1619
+ flowRateAtLiquidation_lt?: Maybe<Scalars['BigInt']>;
1620
+ flowRateAtLiquidation_gte?: Maybe<Scalars['BigInt']>;
1621
+ flowRateAtLiquidation_lte?: Maybe<Scalars['BigInt']>;
1622
+ flowRateAtLiquidation_in?: Maybe<Array<Scalars['BigInt']>>;
1623
+ flowRateAtLiquidation_not_in?: Maybe<Array<Scalars['BigInt']>>;
1529
1624
  rewardAccount?: Maybe<Scalars['Bytes']>;
1530
1625
  rewardAccount_not?: Maybe<Scalars['Bytes']>;
1531
1626
  rewardAccount_gt?: Maybe<Scalars['Bytes']>;
@@ -1545,6 +1640,7 @@ export declare enum AgreementLiquidatedV2Event_OrderBy {
1545
1640
  Id = "id",
1546
1641
  TransactionHash = "transactionHash",
1547
1642
  GasPrice = "gasPrice",
1643
+ GasUsed = "gasUsed",
1548
1644
  Timestamp = "timestamp",
1549
1645
  Name = "name",
1550
1646
  Addresses = "addresses",
@@ -1552,15 +1648,17 @@ export declare enum AgreementLiquidatedV2Event_OrderBy {
1552
1648
  LogIndex = "logIndex",
1553
1649
  Order = "order",
1554
1650
  Token = "token",
1555
- LiquidatorAccount = "liquidatorAccount",
1556
1651
  AgreementClass = "agreementClass",
1557
1652
  AgreementId = "agreementId",
1653
+ LiquidatorAccount = "liquidatorAccount",
1558
1654
  TargetAccount = "targetAccount",
1559
1655
  RewardAmountReceiver = "rewardAmountReceiver",
1560
1656
  RewardAmount = "rewardAmount",
1561
1657
  TargetAccountBalanceDelta = "targetAccountBalanceDelta",
1562
1658
  Version = "version",
1563
1659
  LiquidationType = "liquidationType",
1660
+ Deposit = "deposit",
1661
+ FlowRateAtLiquidation = "flowRateAtLiquidation",
1564
1662
  RewardAccount = "rewardAccount"
1565
1663
  }
1566
1664
  export type AppRegisteredEvent = Event & {
@@ -1568,6 +1666,7 @@ export type AppRegisteredEvent = Event & {
1568
1666
  id: Scalars['ID'];
1569
1667
  transactionHash: Scalars['Bytes'];
1570
1668
  gasPrice: Scalars['BigInt'];
1669
+ gasUsed: Scalars['BigInt'];
1571
1670
  timestamp: Scalars['BigInt'];
1572
1671
  name: Scalars['String'];
1573
1672
  /** Empty addresses array. */
@@ -1604,6 +1703,14 @@ export type AppRegisteredEvent_Filter = {
1604
1703
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
1605
1704
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1606
1705
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
1706
+ gasUsed?: Maybe<Scalars['BigInt']>;
1707
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
1708
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
1709
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
1710
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
1711
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
1712
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
1713
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1607
1714
  timestamp?: Maybe<Scalars['BigInt']>;
1608
1715
  timestamp_not?: Maybe<Scalars['BigInt']>;
1609
1716
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -1681,6 +1788,7 @@ export declare enum AppRegisteredEvent_OrderBy {
1681
1788
  Id = "id",
1682
1789
  TransactionHash = "transactionHash",
1683
1790
  GasPrice = "gasPrice",
1791
+ GasUsed = "gasUsed",
1684
1792
  Timestamp = "timestamp",
1685
1793
  Name = "name",
1686
1794
  Addresses = "addresses",
@@ -1697,14 +1805,170 @@ export type Block_Height = {
1697
1805
  number?: Maybe<Scalars['Int']>;
1698
1806
  number_gte?: Maybe<Scalars['Int']>;
1699
1807
  };
1808
+ export type BondIncreasedEvent = Event & {
1809
+ __typename?: 'BondIncreasedEvent';
1810
+ id: Scalars['ID'];
1811
+ transactionHash: Scalars['Bytes'];
1812
+ gasPrice: Scalars['BigInt'];
1813
+ gasUsed: Scalars['BigInt'];
1814
+ timestamp: Scalars['BigInt'];
1815
+ name: Scalars['String'];
1816
+ /**
1817
+ * Contains the addresses that were impacted by this event:
1818
+ * addresses[0] = `token` (superToken)
1819
+ */
1820
+ addresses: Array<Scalars['Bytes']>;
1821
+ blockNumber: Scalars['BigInt'];
1822
+ logIndex: Scalars['BigInt'];
1823
+ order: Scalars['BigInt'];
1824
+ /** The address of the `token` (supertoken). */
1825
+ token: Scalars['Bytes'];
1826
+ /** The additional amount added to the bond by the current Patrician In Charge (PIC). */
1827
+ additionalBond: Scalars['BigInt'];
1828
+ };
1829
+ export type BondIncreasedEvent_Filter = {
1830
+ id?: Maybe<Scalars['ID']>;
1831
+ id_not?: Maybe<Scalars['ID']>;
1832
+ id_gt?: Maybe<Scalars['ID']>;
1833
+ id_lt?: Maybe<Scalars['ID']>;
1834
+ id_gte?: Maybe<Scalars['ID']>;
1835
+ id_lte?: Maybe<Scalars['ID']>;
1836
+ id_in?: Maybe<Array<Scalars['ID']>>;
1837
+ id_not_in?: Maybe<Array<Scalars['ID']>>;
1838
+ transactionHash?: Maybe<Scalars['Bytes']>;
1839
+ transactionHash_not?: Maybe<Scalars['Bytes']>;
1840
+ transactionHash_gt?: Maybe<Scalars['Bytes']>;
1841
+ transactionHash_lt?: Maybe<Scalars['Bytes']>;
1842
+ transactionHash_gte?: Maybe<Scalars['Bytes']>;
1843
+ transactionHash_lte?: Maybe<Scalars['Bytes']>;
1844
+ transactionHash_in?: Maybe<Array<Scalars['Bytes']>>;
1845
+ transactionHash_not_in?: Maybe<Array<Scalars['Bytes']>>;
1846
+ transactionHash_contains?: Maybe<Scalars['Bytes']>;
1847
+ transactionHash_not_contains?: Maybe<Scalars['Bytes']>;
1848
+ gasPrice?: Maybe<Scalars['BigInt']>;
1849
+ gasPrice_not?: Maybe<Scalars['BigInt']>;
1850
+ gasPrice_gt?: Maybe<Scalars['BigInt']>;
1851
+ gasPrice_lt?: Maybe<Scalars['BigInt']>;
1852
+ gasPrice_gte?: Maybe<Scalars['BigInt']>;
1853
+ gasPrice_lte?: Maybe<Scalars['BigInt']>;
1854
+ gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1855
+ gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
1856
+ gasUsed?: Maybe<Scalars['BigInt']>;
1857
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
1858
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
1859
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
1860
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
1861
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
1862
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
1863
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1864
+ timestamp?: Maybe<Scalars['BigInt']>;
1865
+ timestamp_not?: Maybe<Scalars['BigInt']>;
1866
+ timestamp_gt?: Maybe<Scalars['BigInt']>;
1867
+ timestamp_lt?: Maybe<Scalars['BigInt']>;
1868
+ timestamp_gte?: Maybe<Scalars['BigInt']>;
1869
+ timestamp_lte?: Maybe<Scalars['BigInt']>;
1870
+ timestamp_in?: Maybe<Array<Scalars['BigInt']>>;
1871
+ timestamp_not_in?: Maybe<Array<Scalars['BigInt']>>;
1872
+ name?: Maybe<Scalars['String']>;
1873
+ name_not?: Maybe<Scalars['String']>;
1874
+ name_gt?: Maybe<Scalars['String']>;
1875
+ name_lt?: Maybe<Scalars['String']>;
1876
+ name_gte?: Maybe<Scalars['String']>;
1877
+ name_lte?: Maybe<Scalars['String']>;
1878
+ name_in?: Maybe<Array<Scalars['String']>>;
1879
+ name_not_in?: Maybe<Array<Scalars['String']>>;
1880
+ name_contains?: Maybe<Scalars['String']>;
1881
+ name_contains_nocase?: Maybe<Scalars['String']>;
1882
+ name_not_contains?: Maybe<Scalars['String']>;
1883
+ name_not_contains_nocase?: Maybe<Scalars['String']>;
1884
+ name_starts_with?: Maybe<Scalars['String']>;
1885
+ name_starts_with_nocase?: Maybe<Scalars['String']>;
1886
+ name_not_starts_with?: Maybe<Scalars['String']>;
1887
+ name_not_starts_with_nocase?: Maybe<Scalars['String']>;
1888
+ name_ends_with?: Maybe<Scalars['String']>;
1889
+ name_ends_with_nocase?: Maybe<Scalars['String']>;
1890
+ name_not_ends_with?: Maybe<Scalars['String']>;
1891
+ name_not_ends_with_nocase?: Maybe<Scalars['String']>;
1892
+ addresses?: Maybe<Array<Scalars['Bytes']>>;
1893
+ addresses_not?: Maybe<Array<Scalars['Bytes']>>;
1894
+ addresses_contains?: Maybe<Array<Scalars['Bytes']>>;
1895
+ addresses_contains_nocase?: Maybe<Array<Scalars['Bytes']>>;
1896
+ addresses_not_contains?: Maybe<Array<Scalars['Bytes']>>;
1897
+ addresses_not_contains_nocase?: Maybe<Array<Scalars['Bytes']>>;
1898
+ blockNumber?: Maybe<Scalars['BigInt']>;
1899
+ blockNumber_not?: Maybe<Scalars['BigInt']>;
1900
+ blockNumber_gt?: Maybe<Scalars['BigInt']>;
1901
+ blockNumber_lt?: Maybe<Scalars['BigInt']>;
1902
+ blockNumber_gte?: Maybe<Scalars['BigInt']>;
1903
+ blockNumber_lte?: Maybe<Scalars['BigInt']>;
1904
+ blockNumber_in?: Maybe<Array<Scalars['BigInt']>>;
1905
+ blockNumber_not_in?: Maybe<Array<Scalars['BigInt']>>;
1906
+ logIndex?: Maybe<Scalars['BigInt']>;
1907
+ logIndex_not?: Maybe<Scalars['BigInt']>;
1908
+ logIndex_gt?: Maybe<Scalars['BigInt']>;
1909
+ logIndex_lt?: Maybe<Scalars['BigInt']>;
1910
+ logIndex_gte?: Maybe<Scalars['BigInt']>;
1911
+ logIndex_lte?: Maybe<Scalars['BigInt']>;
1912
+ logIndex_in?: Maybe<Array<Scalars['BigInt']>>;
1913
+ logIndex_not_in?: Maybe<Array<Scalars['BigInt']>>;
1914
+ order?: Maybe<Scalars['BigInt']>;
1915
+ order_not?: Maybe<Scalars['BigInt']>;
1916
+ order_gt?: Maybe<Scalars['BigInt']>;
1917
+ order_lt?: Maybe<Scalars['BigInt']>;
1918
+ order_gte?: Maybe<Scalars['BigInt']>;
1919
+ order_lte?: Maybe<Scalars['BigInt']>;
1920
+ order_in?: Maybe<Array<Scalars['BigInt']>>;
1921
+ order_not_in?: Maybe<Array<Scalars['BigInt']>>;
1922
+ token?: Maybe<Scalars['Bytes']>;
1923
+ token_not?: Maybe<Scalars['Bytes']>;
1924
+ token_gt?: Maybe<Scalars['Bytes']>;
1925
+ token_lt?: Maybe<Scalars['Bytes']>;
1926
+ token_gte?: Maybe<Scalars['Bytes']>;
1927
+ token_lte?: Maybe<Scalars['Bytes']>;
1928
+ token_in?: Maybe<Array<Scalars['Bytes']>>;
1929
+ token_not_in?: Maybe<Array<Scalars['Bytes']>>;
1930
+ token_contains?: Maybe<Scalars['Bytes']>;
1931
+ token_not_contains?: Maybe<Scalars['Bytes']>;
1932
+ additionalBond?: Maybe<Scalars['BigInt']>;
1933
+ additionalBond_not?: Maybe<Scalars['BigInt']>;
1934
+ additionalBond_gt?: Maybe<Scalars['BigInt']>;
1935
+ additionalBond_lt?: Maybe<Scalars['BigInt']>;
1936
+ additionalBond_gte?: Maybe<Scalars['BigInt']>;
1937
+ additionalBond_lte?: Maybe<Scalars['BigInt']>;
1938
+ additionalBond_in?: Maybe<Array<Scalars['BigInt']>>;
1939
+ additionalBond_not_in?: Maybe<Array<Scalars['BigInt']>>;
1940
+ /** Filter for the block changed event. */
1941
+ _change_block?: Maybe<BlockChangedFilter>;
1942
+ and?: Maybe<Array<Maybe<BondIncreasedEvent_Filter>>>;
1943
+ or?: Maybe<Array<Maybe<BondIncreasedEvent_Filter>>>;
1944
+ };
1945
+ export declare enum BondIncreasedEvent_OrderBy {
1946
+ Id = "id",
1947
+ TransactionHash = "transactionHash",
1948
+ GasPrice = "gasPrice",
1949
+ GasUsed = "gasUsed",
1950
+ Timestamp = "timestamp",
1951
+ Name = "name",
1952
+ Addresses = "addresses",
1953
+ BlockNumber = "blockNumber",
1954
+ LogIndex = "logIndex",
1955
+ Order = "order",
1956
+ Token = "token",
1957
+ AdditionalBond = "additionalBond"
1958
+ }
1700
1959
  export type BurnedEvent = Event & {
1701
1960
  __typename?: 'BurnedEvent';
1702
1961
  id: Scalars['ID'];
1703
1962
  transactionHash: Scalars['Bytes'];
1704
1963
  gasPrice: Scalars['BigInt'];
1964
+ gasUsed: Scalars['BigInt'];
1705
1965
  timestamp: Scalars['BigInt'];
1706
1966
  name: Scalars['String'];
1707
- /** Holds the token and from addresses. */
1967
+ /**
1968
+ * Contains the addresses that were impacted by this event:
1969
+ * addresses[0] = `token` (superToken)
1970
+ * addresses[1] = `from`
1971
+ */
1708
1972
  addresses: Array<Scalars['Bytes']>;
1709
1973
  blockNumber: Scalars['BigInt'];
1710
1974
  logIndex: Scalars['BigInt'];
@@ -1743,6 +2007,14 @@ export type BurnedEvent_Filter = {
1743
2007
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
1744
2008
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1745
2009
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
2010
+ gasUsed?: Maybe<Scalars['BigInt']>;
2011
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
2012
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
2013
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
2014
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
2015
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
2016
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
2017
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1746
2018
  timestamp?: Maybe<Scalars['BigInt']>;
1747
2019
  timestamp_not?: Maybe<Scalars['BigInt']>;
1748
2020
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -1868,6 +2140,7 @@ export declare enum BurnedEvent_OrderBy {
1868
2140
  Id = "id",
1869
2141
  TransactionHash = "transactionHash",
1870
2142
  GasPrice = "gasPrice",
2143
+ GasUsed = "gasUsed",
1871
2144
  Timestamp = "timestamp",
1872
2145
  Name = "name",
1873
2146
  Addresses = "addresses",
@@ -1886,6 +2159,7 @@ export type CfAv1LiquidationPeriodChangedEvent = Event & {
1886
2159
  id: Scalars['ID'];
1887
2160
  transactionHash: Scalars['Bytes'];
1888
2161
  gasPrice: Scalars['BigInt'];
2162
+ gasUsed: Scalars['BigInt'];
1889
2163
  timestamp: Scalars['BigInt'];
1890
2164
  name: Scalars['String'];
1891
2165
  /** The address of the governance contract the event was emitted from. */
@@ -1927,6 +2201,14 @@ export type CfAv1LiquidationPeriodChangedEvent_Filter = {
1927
2201
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
1928
2202
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
1929
2203
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
2204
+ gasUsed?: Maybe<Scalars['BigInt']>;
2205
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
2206
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
2207
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
2208
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
2209
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
2210
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
2211
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
1930
2212
  timestamp?: Maybe<Scalars['BigInt']>;
1931
2213
  timestamp_not?: Maybe<Scalars['BigInt']>;
1932
2214
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -2036,6 +2318,7 @@ export declare enum CfAv1LiquidationPeriodChangedEvent_OrderBy {
2036
2318
  Id = "id",
2037
2319
  TransactionHash = "transactionHash",
2038
2320
  GasPrice = "gasPrice",
2321
+ GasUsed = "gasUsed",
2039
2322
  Timestamp = "timestamp",
2040
2323
  Name = "name",
2041
2324
  GovernanceAddress = "governanceAddress",
@@ -2053,6 +2336,7 @@ export type ConfigChangedEvent = Event & {
2053
2336
  id: Scalars['ID'];
2054
2337
  transactionHash: Scalars['Bytes'];
2055
2338
  gasPrice: Scalars['BigInt'];
2339
+ gasUsed: Scalars['BigInt'];
2056
2340
  timestamp: Scalars['BigInt'];
2057
2341
  name: Scalars['String'];
2058
2342
  /** The address of the governance contract the event was emitted from. */
@@ -2095,6 +2379,14 @@ export type ConfigChangedEvent_Filter = {
2095
2379
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
2096
2380
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
2097
2381
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
2382
+ gasUsed?: Maybe<Scalars['BigInt']>;
2383
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
2384
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
2385
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
2386
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
2387
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
2388
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
2389
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
2098
2390
  timestamp?: Maybe<Scalars['BigInt']>;
2099
2391
  timestamp_not?: Maybe<Scalars['BigInt']>;
2100
2392
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -2214,6 +2506,7 @@ export declare enum ConfigChangedEvent_OrderBy {
2214
2506
  Id = "id",
2215
2507
  TransactionHash = "transactionHash",
2216
2508
  GasPrice = "gasPrice",
2509
+ GasUsed = "gasUsed",
2217
2510
  Timestamp = "timestamp",
2218
2511
  Name = "name",
2219
2512
  GovernanceAddress = "governanceAddress",
@@ -2232,9 +2525,13 @@ export type CustomSuperTokenCreatedEvent = Event & {
2232
2525
  id: Scalars['ID'];
2233
2526
  transactionHash: Scalars['Bytes'];
2234
2527
  gasPrice: Scalars['BigInt'];
2528
+ gasUsed: Scalars['BigInt'];
2235
2529
  timestamp: Scalars['BigInt'];
2236
2530
  name: Scalars['String'];
2237
- /** Holds the token address. */
2531
+ /**
2532
+ * Contains the addresses that were impacted by this event:
2533
+ * addresses[0] = `token` (superToken)
2534
+ */
2238
2535
  addresses: Array<Scalars['Bytes']>;
2239
2536
  blockNumber: Scalars['BigInt'];
2240
2537
  logIndex: Scalars['BigInt'];
@@ -2268,6 +2565,14 @@ export type CustomSuperTokenCreatedEvent_Filter = {
2268
2565
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
2269
2566
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
2270
2567
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
2568
+ gasUsed?: Maybe<Scalars['BigInt']>;
2569
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
2570
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
2571
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
2572
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
2573
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
2574
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
2575
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
2271
2576
  timestamp?: Maybe<Scalars['BigInt']>;
2272
2577
  timestamp_not?: Maybe<Scalars['BigInt']>;
2273
2578
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -2345,6 +2650,7 @@ export declare enum CustomSuperTokenCreatedEvent_OrderBy {
2345
2650
  Id = "id",
2346
2651
  TransactionHash = "transactionHash",
2347
2652
  GasPrice = "gasPrice",
2653
+ GasUsed = "gasUsed",
2348
2654
  Timestamp = "timestamp",
2349
2655
  Name = "name",
2350
2656
  Addresses = "addresses",
@@ -2353,22 +2659,35 @@ export declare enum CustomSuperTokenCreatedEvent_OrderBy {
2353
2659
  Order = "order",
2354
2660
  Token = "token"
2355
2661
  }
2356
- /**
2357
- * Event: An interface which is shared by all
2358
- * event entities and contains basic transaction
2359
- * data.
2360
- */
2662
+ /** Event: An interface which is shared by all event entities and contains basic transaction data. */
2361
2663
  export type Event = {
2664
+ /** The id of the event entity. */
2362
2665
  id: Scalars['ID'];
2666
+ /** The block number which the event was logged in. */
2363
2667
  blockNumber: Scalars['BigInt'];
2668
+ /** The index of the event, e.g. first event emitted would have `logIndex` of 0. */
2364
2669
  logIndex: Scalars['BigInt'];
2670
+ /**
2671
+ * A number used internally to sort the order of transactions.
2672
+ * The formula: `blockNumber * ORDER_MULTIPLIER + logIndex`
2673
+ * where: ORDER_MULTIPLIER = 10000
2674
+ */
2365
2675
  order: Scalars['BigInt'];
2676
+ /** The name of the event - is a 1-to-1 match with the name in our smart contracts. */
2366
2677
  name: Scalars['String'];
2367
- /** Holds the addresses for accounts that were impacted by the event. */
2678
+ /**
2679
+ * Contains the addresses for accounts that were "impacted" by the event.
2680
+ * This typically involves accounts which experienced a state change as a result of the transaction which emitted this event.
2681
+ */
2368
2682
  addresses: Array<Scalars['Bytes']>;
2683
+ /** The block timestamp which the event was logged in. */
2369
2684
  timestamp: Scalars['BigInt'];
2685
+ /** The transaction hash of the transaction that the event was logged in. */
2370
2686
  transactionHash: Scalars['Bytes'];
2687
+ /** The gas price of the transaction that the event was logged in. */
2371
2688
  gasPrice: Scalars['BigInt'];
2689
+ /** The gas used for this transaction. */
2690
+ gasUsed: Scalars['BigInt'];
2372
2691
  };
2373
2692
  export type Event_Filter = {
2374
2693
  id?: Maybe<Scalars['ID']>;
@@ -2455,6 +2774,14 @@ export type Event_Filter = {
2455
2774
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
2456
2775
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
2457
2776
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
2777
+ gasUsed?: Maybe<Scalars['BigInt']>;
2778
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
2779
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
2780
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
2781
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
2782
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
2783
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
2784
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
2458
2785
  /** Filter for the block changed event. */
2459
2786
  _change_block?: Maybe<BlockChangedFilter>;
2460
2787
  and?: Maybe<Array<Maybe<Event_Filter>>>;
@@ -2469,12 +2796,164 @@ export declare enum Event_OrderBy {
2469
2796
  Addresses = "addresses",
2470
2797
  Timestamp = "timestamp",
2471
2798
  TransactionHash = "transactionHash",
2472
- GasPrice = "gasPrice"
2799
+ GasPrice = "gasPrice",
2800
+ GasUsed = "gasUsed"
2801
+ }
2802
+ export type ExitRateChangedEvent = Event & {
2803
+ __typename?: 'ExitRateChangedEvent';
2804
+ id: Scalars['ID'];
2805
+ transactionHash: Scalars['Bytes'];
2806
+ gasPrice: Scalars['BigInt'];
2807
+ gasUsed: Scalars['BigInt'];
2808
+ timestamp: Scalars['BigInt'];
2809
+ name: Scalars['String'];
2810
+ /**
2811
+ * Contains the addresses that were impacted by this event:
2812
+ * addresses[0] = `token` (superToken)
2813
+ */
2814
+ addresses: Array<Scalars['Bytes']>;
2815
+ blockNumber: Scalars['BigInt'];
2816
+ logIndex: Scalars['BigInt'];
2817
+ order: Scalars['BigInt'];
2818
+ /** The address of the `token` (supertoken). */
2819
+ token: Scalars['Bytes'];
2820
+ /** The flowrate at which the bond is streamed back to the Patrician In Charge. */
2821
+ exitRate: Scalars['BigInt'];
2822
+ };
2823
+ export type ExitRateChangedEvent_Filter = {
2824
+ id?: Maybe<Scalars['ID']>;
2825
+ id_not?: Maybe<Scalars['ID']>;
2826
+ id_gt?: Maybe<Scalars['ID']>;
2827
+ id_lt?: Maybe<Scalars['ID']>;
2828
+ id_gte?: Maybe<Scalars['ID']>;
2829
+ id_lte?: Maybe<Scalars['ID']>;
2830
+ id_in?: Maybe<Array<Scalars['ID']>>;
2831
+ id_not_in?: Maybe<Array<Scalars['ID']>>;
2832
+ transactionHash?: Maybe<Scalars['Bytes']>;
2833
+ transactionHash_not?: Maybe<Scalars['Bytes']>;
2834
+ transactionHash_gt?: Maybe<Scalars['Bytes']>;
2835
+ transactionHash_lt?: Maybe<Scalars['Bytes']>;
2836
+ transactionHash_gte?: Maybe<Scalars['Bytes']>;
2837
+ transactionHash_lte?: Maybe<Scalars['Bytes']>;
2838
+ transactionHash_in?: Maybe<Array<Scalars['Bytes']>>;
2839
+ transactionHash_not_in?: Maybe<Array<Scalars['Bytes']>>;
2840
+ transactionHash_contains?: Maybe<Scalars['Bytes']>;
2841
+ transactionHash_not_contains?: Maybe<Scalars['Bytes']>;
2842
+ gasPrice?: Maybe<Scalars['BigInt']>;
2843
+ gasPrice_not?: Maybe<Scalars['BigInt']>;
2844
+ gasPrice_gt?: Maybe<Scalars['BigInt']>;
2845
+ gasPrice_lt?: Maybe<Scalars['BigInt']>;
2846
+ gasPrice_gte?: Maybe<Scalars['BigInt']>;
2847
+ gasPrice_lte?: Maybe<Scalars['BigInt']>;
2848
+ gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
2849
+ gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
2850
+ gasUsed?: Maybe<Scalars['BigInt']>;
2851
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
2852
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
2853
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
2854
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
2855
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
2856
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
2857
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
2858
+ timestamp?: Maybe<Scalars['BigInt']>;
2859
+ timestamp_not?: Maybe<Scalars['BigInt']>;
2860
+ timestamp_gt?: Maybe<Scalars['BigInt']>;
2861
+ timestamp_lt?: Maybe<Scalars['BigInt']>;
2862
+ timestamp_gte?: Maybe<Scalars['BigInt']>;
2863
+ timestamp_lte?: Maybe<Scalars['BigInt']>;
2864
+ timestamp_in?: Maybe<Array<Scalars['BigInt']>>;
2865
+ timestamp_not_in?: Maybe<Array<Scalars['BigInt']>>;
2866
+ name?: Maybe<Scalars['String']>;
2867
+ name_not?: Maybe<Scalars['String']>;
2868
+ name_gt?: Maybe<Scalars['String']>;
2869
+ name_lt?: Maybe<Scalars['String']>;
2870
+ name_gte?: Maybe<Scalars['String']>;
2871
+ name_lte?: Maybe<Scalars['String']>;
2872
+ name_in?: Maybe<Array<Scalars['String']>>;
2873
+ name_not_in?: Maybe<Array<Scalars['String']>>;
2874
+ name_contains?: Maybe<Scalars['String']>;
2875
+ name_contains_nocase?: Maybe<Scalars['String']>;
2876
+ name_not_contains?: Maybe<Scalars['String']>;
2877
+ name_not_contains_nocase?: Maybe<Scalars['String']>;
2878
+ name_starts_with?: Maybe<Scalars['String']>;
2879
+ name_starts_with_nocase?: Maybe<Scalars['String']>;
2880
+ name_not_starts_with?: Maybe<Scalars['String']>;
2881
+ name_not_starts_with_nocase?: Maybe<Scalars['String']>;
2882
+ name_ends_with?: Maybe<Scalars['String']>;
2883
+ name_ends_with_nocase?: Maybe<Scalars['String']>;
2884
+ name_not_ends_with?: Maybe<Scalars['String']>;
2885
+ name_not_ends_with_nocase?: Maybe<Scalars['String']>;
2886
+ addresses?: Maybe<Array<Scalars['Bytes']>>;
2887
+ addresses_not?: Maybe<Array<Scalars['Bytes']>>;
2888
+ addresses_contains?: Maybe<Array<Scalars['Bytes']>>;
2889
+ addresses_contains_nocase?: Maybe<Array<Scalars['Bytes']>>;
2890
+ addresses_not_contains?: Maybe<Array<Scalars['Bytes']>>;
2891
+ addresses_not_contains_nocase?: Maybe<Array<Scalars['Bytes']>>;
2892
+ blockNumber?: Maybe<Scalars['BigInt']>;
2893
+ blockNumber_not?: Maybe<Scalars['BigInt']>;
2894
+ blockNumber_gt?: Maybe<Scalars['BigInt']>;
2895
+ blockNumber_lt?: Maybe<Scalars['BigInt']>;
2896
+ blockNumber_gte?: Maybe<Scalars['BigInt']>;
2897
+ blockNumber_lte?: Maybe<Scalars['BigInt']>;
2898
+ blockNumber_in?: Maybe<Array<Scalars['BigInt']>>;
2899
+ blockNumber_not_in?: Maybe<Array<Scalars['BigInt']>>;
2900
+ logIndex?: Maybe<Scalars['BigInt']>;
2901
+ logIndex_not?: Maybe<Scalars['BigInt']>;
2902
+ logIndex_gt?: Maybe<Scalars['BigInt']>;
2903
+ logIndex_lt?: Maybe<Scalars['BigInt']>;
2904
+ logIndex_gte?: Maybe<Scalars['BigInt']>;
2905
+ logIndex_lte?: Maybe<Scalars['BigInt']>;
2906
+ logIndex_in?: Maybe<Array<Scalars['BigInt']>>;
2907
+ logIndex_not_in?: Maybe<Array<Scalars['BigInt']>>;
2908
+ order?: Maybe<Scalars['BigInt']>;
2909
+ order_not?: Maybe<Scalars['BigInt']>;
2910
+ order_gt?: Maybe<Scalars['BigInt']>;
2911
+ order_lt?: Maybe<Scalars['BigInt']>;
2912
+ order_gte?: Maybe<Scalars['BigInt']>;
2913
+ order_lte?: Maybe<Scalars['BigInt']>;
2914
+ order_in?: Maybe<Array<Scalars['BigInt']>>;
2915
+ order_not_in?: Maybe<Array<Scalars['BigInt']>>;
2916
+ token?: Maybe<Scalars['Bytes']>;
2917
+ token_not?: Maybe<Scalars['Bytes']>;
2918
+ token_gt?: Maybe<Scalars['Bytes']>;
2919
+ token_lt?: Maybe<Scalars['Bytes']>;
2920
+ token_gte?: Maybe<Scalars['Bytes']>;
2921
+ token_lte?: Maybe<Scalars['Bytes']>;
2922
+ token_in?: Maybe<Array<Scalars['Bytes']>>;
2923
+ token_not_in?: Maybe<Array<Scalars['Bytes']>>;
2924
+ token_contains?: Maybe<Scalars['Bytes']>;
2925
+ token_not_contains?: Maybe<Scalars['Bytes']>;
2926
+ exitRate?: Maybe<Scalars['BigInt']>;
2927
+ exitRate_not?: Maybe<Scalars['BigInt']>;
2928
+ exitRate_gt?: Maybe<Scalars['BigInt']>;
2929
+ exitRate_lt?: Maybe<Scalars['BigInt']>;
2930
+ exitRate_gte?: Maybe<Scalars['BigInt']>;
2931
+ exitRate_lte?: Maybe<Scalars['BigInt']>;
2932
+ exitRate_in?: Maybe<Array<Scalars['BigInt']>>;
2933
+ exitRate_not_in?: Maybe<Array<Scalars['BigInt']>>;
2934
+ /** Filter for the block changed event. */
2935
+ _change_block?: Maybe<BlockChangedFilter>;
2936
+ and?: Maybe<Array<Maybe<ExitRateChangedEvent_Filter>>>;
2937
+ or?: Maybe<Array<Maybe<ExitRateChangedEvent_Filter>>>;
2938
+ };
2939
+ export declare enum ExitRateChangedEvent_OrderBy {
2940
+ Id = "id",
2941
+ TransactionHash = "transactionHash",
2942
+ GasPrice = "gasPrice",
2943
+ GasUsed = "gasUsed",
2944
+ Timestamp = "timestamp",
2945
+ Name = "name",
2946
+ Addresses = "addresses",
2947
+ BlockNumber = "blockNumber",
2948
+ LogIndex = "logIndex",
2949
+ Order = "order",
2950
+ Token = "token",
2951
+ ExitRate = "exitRate"
2473
2952
  }
2474
2953
  /** FlowOperator: A higher order entity that of a flow operator for an `AccountTokenSnapshot`. */
2475
2954
  export type FlowOperator = {
2476
2955
  __typename?: 'FlowOperator';
2477
- /** ID composed of: flowOperator - token - sender */
2956
+ /** ID composed of: flowOperator-token-sender */
2478
2957
  id: Scalars['ID'];
2479
2958
  createdAtTimestamp: Scalars['BigInt'];
2480
2959
  createdAtBlockNumber: Scalars['BigInt'];
@@ -2482,21 +2961,19 @@ export type FlowOperator = {
2482
2961
  updatedAtBlockNumber: Scalars['BigInt'];
2483
2962
  /**
2484
2963
  * The permissions granted to the `flowOperator`.
2485
- * Octo bitmask representation.
2964
+ * Bitmask representation:
2965
+ * Delete | Update | Create
2966
+ * | D | U | C |
2967
+ * | 0 | 0 | 0 |
2486
2968
  */
2487
2969
  permissions: Scalars['Int'];
2488
- /**
2489
- * The flow rate allowance granted to the `flowOperator`
2490
- * by the `sender`. This can be reset if the `sender`
2491
- * updates the `flowOperator` flow rate allowance.
2492
- */
2970
+ /** The flow rate allowance granted to the `flowOperator` by the `sender`. This can be reset if the `sender` updates the `flowOperator` flow rate allowance. */
2493
2971
  flowRateAllowanceGranted: Scalars['BigInt'];
2494
2972
  /**
2495
- * The remaining flow rate allowance the `flowOperator` has,
2496
- * this will go down every time when `flowOperator` uses it
2497
- * (if they increase flowRate or create a new flow)
2498
- * and can only be reset if the `sender` updates the flow
2499
- * rate allowance.
2973
+ * The remaining flow rate allowance the `flowOperator` has.
2974
+ * This will go down every time when the `flowOperator` uses the allowance, that is, if they increase flowRate for `sender` or create a new flow on behalf of `sender`.
2975
+ * It can only be reset if the `sender` updates the flow rate allowance.
2976
+ * NOTE: this value will NOT go down if max flow rate allowance is set.
2500
2977
  */
2501
2978
  flowRateAllowanceRemaining: Scalars['BigInt'];
2502
2979
  flowOperator: Scalars['Bytes'];
@@ -2518,9 +2995,15 @@ export type FlowOperatorUpdatedEvent = Event & {
2518
2995
  id: Scalars['ID'];
2519
2996
  transactionHash: Scalars['Bytes'];
2520
2997
  gasPrice: Scalars['BigInt'];
2998
+ gasUsed: Scalars['BigInt'];
2521
2999
  timestamp: Scalars['BigInt'];
2522
3000
  name: Scalars['String'];
2523
- /** Holds the token, sender, and flowOperator addresses. */
3001
+ /**
3002
+ * Contains the addresses that were impacted by this event:
3003
+ * addresses[0] = `token` (superToken)
3004
+ * addresses[1] = sender
3005
+ * addresses[2] = `flowOperator`
3006
+ */
2524
3007
  addresses: Array<Scalars['Bytes']>;
2525
3008
  blockNumber: Scalars['BigInt'];
2526
3009
  logIndex: Scalars['BigInt'];
@@ -2563,6 +3046,14 @@ export type FlowOperatorUpdatedEvent_Filter = {
2563
3046
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
2564
3047
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
2565
3048
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
3049
+ gasUsed?: Maybe<Scalars['BigInt']>;
3050
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
3051
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
3052
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
3053
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
3054
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
3055
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
3056
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
2566
3057
  timestamp?: Maybe<Scalars['BigInt']>;
2567
3058
  timestamp_not?: Maybe<Scalars['BigInt']>;
2568
3059
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -2687,6 +3178,7 @@ export declare enum FlowOperatorUpdatedEvent_OrderBy {
2687
3178
  Id = "id",
2688
3179
  TransactionHash = "transactionHash",
2689
3180
  GasPrice = "gasPrice",
3181
+ GasUsed = "gasUsed",
2690
3182
  Timestamp = "timestamp",
2691
3183
  Name = "name",
2692
3184
  Addresses = "addresses",
@@ -2697,7 +3189,16 @@ export declare enum FlowOperatorUpdatedEvent_OrderBy {
2697
3189
  Sender = "sender",
2698
3190
  Permissions = "permissions",
2699
3191
  FlowRateAllowance = "flowRateAllowance",
2700
- FlowOperator = "flowOperator"
3192
+ FlowOperator = "flowOperator",
3193
+ FlowOperator__id = "flowOperator__id",
3194
+ FlowOperator__createdAtTimestamp = "flowOperator__createdAtTimestamp",
3195
+ FlowOperator__createdAtBlockNumber = "flowOperator__createdAtBlockNumber",
3196
+ FlowOperator__updatedAtTimestamp = "flowOperator__updatedAtTimestamp",
3197
+ FlowOperator__updatedAtBlockNumber = "flowOperator__updatedAtBlockNumber",
3198
+ FlowOperator__permissions = "flowOperator__permissions",
3199
+ FlowOperator__flowRateAllowanceGranted = "flowOperator__flowRateAllowanceGranted",
3200
+ FlowOperator__flowRateAllowanceRemaining = "flowOperator__flowRateAllowanceRemaining",
3201
+ FlowOperator__flowOperator = "flowOperator__flowOperator"
2701
3202
  }
2702
3203
  export type FlowOperator_Filter = {
2703
3204
  id?: Maybe<Scalars['ID']>;
@@ -2854,8 +3355,42 @@ export declare enum FlowOperator_OrderBy {
2854
3355
  FlowRateAllowanceRemaining = "flowRateAllowanceRemaining",
2855
3356
  FlowOperator = "flowOperator",
2856
3357
  Sender = "sender",
3358
+ Sender__id = "sender__id",
3359
+ Sender__createdAtTimestamp = "sender__createdAtTimestamp",
3360
+ Sender__createdAtBlockNumber = "sender__createdAtBlockNumber",
3361
+ Sender__updatedAtTimestamp = "sender__updatedAtTimestamp",
3362
+ Sender__updatedAtBlockNumber = "sender__updatedAtBlockNumber",
3363
+ Sender__isSuperApp = "sender__isSuperApp",
2857
3364
  Token = "token",
3365
+ Token__id = "token__id",
3366
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
3367
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
3368
+ Token__decimals = "token__decimals",
3369
+ Token__name = "token__name",
3370
+ Token__symbol = "token__symbol",
3371
+ Token__isSuperToken = "token__isSuperToken",
3372
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
3373
+ Token__isListed = "token__isListed",
3374
+ Token__underlyingAddress = "token__underlyingAddress",
2858
3375
  AccountTokenSnapshot = "accountTokenSnapshot",
3376
+ AccountTokenSnapshot__id = "accountTokenSnapshot__id",
3377
+ AccountTokenSnapshot__updatedAtTimestamp = "accountTokenSnapshot__updatedAtTimestamp",
3378
+ AccountTokenSnapshot__updatedAtBlockNumber = "accountTokenSnapshot__updatedAtBlockNumber",
3379
+ AccountTokenSnapshot__isLiquidationEstimateOptimistic = "accountTokenSnapshot__isLiquidationEstimateOptimistic",
3380
+ AccountTokenSnapshot__maybeCriticalAtTimestamp = "accountTokenSnapshot__maybeCriticalAtTimestamp",
3381
+ AccountTokenSnapshot__totalNumberOfActiveStreams = "accountTokenSnapshot__totalNumberOfActiveStreams",
3382
+ AccountTokenSnapshot__totalNumberOfClosedStreams = "accountTokenSnapshot__totalNumberOfClosedStreams",
3383
+ AccountTokenSnapshot__totalSubscriptionsWithUnits = "accountTokenSnapshot__totalSubscriptionsWithUnits",
3384
+ AccountTokenSnapshot__totalApprovedSubscriptions = "accountTokenSnapshot__totalApprovedSubscriptions",
3385
+ AccountTokenSnapshot__balanceUntilUpdatedAt = "accountTokenSnapshot__balanceUntilUpdatedAt",
3386
+ AccountTokenSnapshot__totalDeposit = "accountTokenSnapshot__totalDeposit",
3387
+ AccountTokenSnapshot__totalNetFlowRate = "accountTokenSnapshot__totalNetFlowRate",
3388
+ AccountTokenSnapshot__totalInflowRate = "accountTokenSnapshot__totalInflowRate",
3389
+ AccountTokenSnapshot__totalOutflowRate = "accountTokenSnapshot__totalOutflowRate",
3390
+ AccountTokenSnapshot__totalAmountStreamedInUntilUpdatedAt = "accountTokenSnapshot__totalAmountStreamedInUntilUpdatedAt",
3391
+ AccountTokenSnapshot__totalAmountStreamedOutUntilUpdatedAt = "accountTokenSnapshot__totalAmountStreamedOutUntilUpdatedAt",
3392
+ AccountTokenSnapshot__totalAmountStreamedUntilUpdatedAt = "accountTokenSnapshot__totalAmountStreamedUntilUpdatedAt",
3393
+ AccountTokenSnapshot__totalAmountTransferredUntilUpdatedAt = "accountTokenSnapshot__totalAmountTransferredUntilUpdatedAt",
2859
3394
  FlowOperatorUpdatedEvents = "flowOperatorUpdatedEvents"
2860
3395
  }
2861
3396
  /**
@@ -2867,30 +3402,41 @@ export type FlowUpdatedEvent = Event & {
2867
3402
  id: Scalars['ID'];
2868
3403
  transactionHash: Scalars['Bytes'];
2869
3404
  gasPrice: Scalars['BigInt'];
3405
+ gasUsed: Scalars['BigInt'];
2870
3406
  timestamp: Scalars['BigInt'];
2871
3407
  name: Scalars['String'];
2872
- /** Holds the token, sender and receiver addresses. */
3408
+ /**
3409
+ * Contains the addresses that were impacted by this event:
3410
+ * addresses[0] = `token` (supertoken)
3411
+ * addresses[1] = `sender`
3412
+ * addresses[2] = `receiver`
3413
+ */
2873
3414
  addresses: Array<Scalars['Bytes']>;
2874
3415
  blockNumber: Scalars['BigInt'];
2875
3416
  logIndex: Scalars['BigInt'];
2876
3417
  order: Scalars['BigInt'];
2877
- /** The address of the `token` being streamed. */
3418
+ /** The address of the `token` (supertoken) being streamed. */
2878
3419
  token: Scalars['Bytes'];
3420
+ /** The address of the flow sender. */
2879
3421
  sender: Scalars['Bytes'];
3422
+ /** The address of the flow receiver. */
2880
3423
  receiver: Scalars['Bytes'];
2881
3424
  /**
2882
- * The address that is triggering the flow update.
2883
- * This will be the zero address until the flowOperator
2884
- * feature is live.
3425
+ * The address that is executing the flow update transaction.
3426
+ * This will be the zero address until the flowOperator feature is live.
2885
3427
  */
2886
3428
  flowOperator: Scalars['Bytes'];
2887
3429
  /** The flow rate per second. */
2888
3430
  flowRate: Scalars['BigInt'];
3431
+ /** The total (global/account level) flow rate of `sender` for `token` as of this event. */
2889
3432
  totalSenderFlowRate: Scalars['BigInt'];
3433
+ /** The total (global/account level) flow rate of `receiver` for `token` as of this event. */
2890
3434
  totalReceiverFlowRate: Scalars['BigInt'];
3435
+ /** The deposit amount put up for the creation of the flow. */
2891
3436
  deposit: Scalars['BigInt'];
3437
+ /** Arbitrary bytes (additional data) passed upon flow creation. */
2892
3438
  userData: Scalars['Bytes'];
2893
- /** The previous flow rate. */
3439
+ /** The previous flow rate, the absolute (positive) value. */
2894
3440
  oldFlowRate: Scalars['BigInt'];
2895
3441
  /**
2896
3442
  * The "type" of the `FlowUpdated` event.
@@ -2934,6 +3480,14 @@ export type FlowUpdatedEvent_Filter = {
2934
3480
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
2935
3481
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
2936
3482
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
3483
+ gasUsed?: Maybe<Scalars['BigInt']>;
3484
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
3485
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
3486
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
3487
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
3488
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
3489
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
3490
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
2937
3491
  timestamp?: Maybe<Scalars['BigInt']>;
2938
3492
  timestamp_not?: Maybe<Scalars['BigInt']>;
2939
3493
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -3128,6 +3682,7 @@ export declare enum FlowUpdatedEvent_OrderBy {
3128
3682
  Id = "id",
3129
3683
  TransactionHash = "transactionHash",
3130
3684
  GasPrice = "gasPrice",
3685
+ GasUsed = "gasUsed",
3131
3686
  Timestamp = "timestamp",
3132
3687
  Name = "name",
3133
3688
  Addresses = "addresses",
@@ -3146,13 +3701,22 @@ export declare enum FlowUpdatedEvent_OrderBy {
3146
3701
  OldFlowRate = "oldFlowRate",
3147
3702
  Type = "type",
3148
3703
  TotalAmountStreamedUntilTimestamp = "totalAmountStreamedUntilTimestamp",
3149
- Stream = "stream"
3704
+ Stream = "stream",
3705
+ Stream__id = "stream__id",
3706
+ Stream__createdAtTimestamp = "stream__createdAtTimestamp",
3707
+ Stream__createdAtBlockNumber = "stream__createdAtBlockNumber",
3708
+ Stream__updatedAtTimestamp = "stream__updatedAtTimestamp",
3709
+ Stream__updatedAtBlockNumber = "stream__updatedAtBlockNumber",
3710
+ Stream__currentFlowRate = "stream__currentFlowRate",
3711
+ Stream__deposit = "stream__deposit",
3712
+ Stream__streamedUntilUpdatedAt = "stream__streamedUntilUpdatedAt"
3150
3713
  }
3151
3714
  export type GovernanceReplacedEvent = Event & {
3152
3715
  __typename?: 'GovernanceReplacedEvent';
3153
3716
  id: Scalars['ID'];
3154
3717
  transactionHash: Scalars['Bytes'];
3155
3718
  gasPrice: Scalars['BigInt'];
3719
+ gasUsed: Scalars['BigInt'];
3156
3720
  timestamp: Scalars['BigInt'];
3157
3721
  name: Scalars['String'];
3158
3722
  blockNumber: Scalars['BigInt'];
@@ -3190,6 +3754,14 @@ export type GovernanceReplacedEvent_Filter = {
3190
3754
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
3191
3755
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
3192
3756
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
3757
+ gasUsed?: Maybe<Scalars['BigInt']>;
3758
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
3759
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
3760
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
3761
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
3762
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
3763
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
3764
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
3193
3765
  timestamp?: Maybe<Scalars['BigInt']>;
3194
3766
  timestamp_not?: Maybe<Scalars['BigInt']>;
3195
3767
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -3277,6 +3849,7 @@ export declare enum GovernanceReplacedEvent_OrderBy {
3277
3849
  Id = "id",
3278
3850
  TransactionHash = "transactionHash",
3279
3851
  GasPrice = "gasPrice",
3852
+ GasUsed = "gasUsed",
3280
3853
  Timestamp = "timestamp",
3281
3854
  Name = "name",
3282
3855
  BlockNumber = "blockNumber",
@@ -3295,21 +3868,22 @@ export type Index = {
3295
3868
  createdAtBlockNumber: Scalars['BigInt'];
3296
3869
  updatedAtTimestamp: Scalars['BigInt'];
3297
3870
  updatedAtBlockNumber: Scalars['BigInt'];
3298
- /** indexId is not the id of the `Index` entity. */
3871
+ /**
3872
+ * NOTE: indexId is not the same as the id of the `Index` entity.
3873
+ * An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`.
3874
+ */
3299
3875
  indexId: Scalars['BigInt'];
3300
3876
  indexValue: Scalars['BigInt'];
3301
3877
  /** The number of subscriptions which have units allocated to them on the `Index`. */
3302
3878
  totalSubscriptionsWithUnits: Scalars['Int'];
3303
3879
  /**
3304
3880
  * The number of units allocated by the `Index` that are pending.
3305
- * This refers to the current (as of updatedAt) `totalUnitsPending`
3306
- * - not all that has ever been pending.
3881
+ * This refers to the current (as of updatedAt) `totalUnitsPending`-not all that has ever been pending.
3307
3882
  */
3308
3883
  totalUnitsPending: Scalars['BigInt'];
3309
3884
  /**
3310
3885
  * The number of units allocated by the `Index` that are approved.
3311
- * This refers to the current (as of updatedAt) `totalUnitsApproved`
3312
- * - not all that has ever been approved.
3886
+ * This refers to the current (as of updatedAt) `totalUnitsApproved`-not all that has ever been approved.
3313
3887
  */
3314
3888
  totalUnitsApproved: Scalars['BigInt'];
3315
3889
  /** The sum of `totalUnitsPending` and `totalUnitsApproved`. */
@@ -3384,15 +3958,22 @@ export type IndexCreatedEvent = Event & {
3384
3958
  id: Scalars['ID'];
3385
3959
  transactionHash: Scalars['Bytes'];
3386
3960
  gasPrice: Scalars['BigInt'];
3961
+ gasUsed: Scalars['BigInt'];
3387
3962
  timestamp: Scalars['BigInt'];
3388
3963
  name: Scalars['String'];
3389
- /** Holds the token and publisher addresses. */
3964
+ /**
3965
+ * Contains the addresses that were impacted by this event:
3966
+ * addresses[0] = `token` (superToken)
3967
+ * addresses[1] = `publisher`
3968
+ */
3390
3969
  addresses: Array<Scalars['Bytes']>;
3391
3970
  blockNumber: Scalars['BigInt'];
3392
3971
  logIndex: Scalars['BigInt'];
3393
3972
  order: Scalars['BigInt'];
3394
3973
  token: Scalars['Bytes'];
3974
+ /** The creator of the `index`. */
3395
3975
  publisher: Scalars['Bytes'];
3976
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
3396
3977
  indexId: Scalars['BigInt'];
3397
3978
  userData: Scalars['Bytes'];
3398
3979
  index: Index;
@@ -3424,6 +4005,14 @@ export type IndexCreatedEvent_Filter = {
3424
4005
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
3425
4006
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
3426
4007
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
4008
+ gasUsed?: Maybe<Scalars['BigInt']>;
4009
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
4010
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
4011
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
4012
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
4013
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
4014
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
4015
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
3427
4016
  timestamp?: Maybe<Scalars['BigInt']>;
3428
4017
  timestamp_not?: Maybe<Scalars['BigInt']>;
3429
4018
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -3550,6 +4139,7 @@ export declare enum IndexCreatedEvent_OrderBy {
3550
4139
  Id = "id",
3551
4140
  TransactionHash = "transactionHash",
3552
4141
  GasPrice = "gasPrice",
4142
+ GasUsed = "gasUsed",
3553
4143
  Timestamp = "timestamp",
3554
4144
  Name = "name",
3555
4145
  Addresses = "addresses",
@@ -3560,23 +4150,47 @@ export declare enum IndexCreatedEvent_OrderBy {
3560
4150
  Publisher = "publisher",
3561
4151
  IndexId = "indexId",
3562
4152
  UserData = "userData",
3563
- Index = "index"
4153
+ Index = "index",
4154
+ Index__id = "index__id",
4155
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
4156
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
4157
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
4158
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
4159
+ Index__indexId = "index__indexId",
4160
+ Index__indexValue = "index__indexValue",
4161
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
4162
+ Index__totalUnitsPending = "index__totalUnitsPending",
4163
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
4164
+ Index__totalUnits = "index__totalUnits",
4165
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt"
3564
4166
  }
3565
4167
  export type IndexDistributionClaimedEvent = Event & {
3566
4168
  __typename?: 'IndexDistributionClaimedEvent';
3567
4169
  id: Scalars['ID'];
3568
4170
  transactionHash: Scalars['Bytes'];
3569
4171
  gasPrice: Scalars['BigInt'];
4172
+ gasUsed: Scalars['BigInt'];
3570
4173
  timestamp: Scalars['BigInt'];
3571
4174
  name: Scalars['String'];
3572
- /** Holds the token, publisher and subscriber addresses. */
4175
+ /**
4176
+ * Contains the addresses that were impacted by this event:
4177
+ * addresses[0] = `token` (superToken)
4178
+ * addresses[1] = `publisher`
4179
+ * addresses[2] = `subscriber`
4180
+ */
3573
4181
  addresses: Array<Scalars['Bytes']>;
3574
4182
  blockNumber: Scalars['BigInt'];
3575
4183
  logIndex: Scalars['BigInt'];
3576
4184
  order: Scalars['BigInt'];
3577
4185
  token: Scalars['Bytes'];
4186
+ /** The creator of the `index`. */
3578
4187
  publisher: Scalars['Bytes'];
4188
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
3579
4189
  indexId: Scalars['BigInt'];
4190
+ /**
4191
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
4192
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
4193
+ */
3580
4194
  subscriber: Scalars['Bytes'];
3581
4195
  amount: Scalars['BigInt'];
3582
4196
  index: Index;
@@ -3608,6 +4222,14 @@ export type IndexDistributionClaimedEvent_Filter = {
3608
4222
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
3609
4223
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
3610
4224
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
4225
+ gasUsed?: Maybe<Scalars['BigInt']>;
4226
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
4227
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
4228
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
4229
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
4230
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
4231
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
4232
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
3611
4233
  timestamp?: Maybe<Scalars['BigInt']>;
3612
4234
  timestamp_not?: Maybe<Scalars['BigInt']>;
3613
4235
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -3742,6 +4364,7 @@ export declare enum IndexDistributionClaimedEvent_OrderBy {
3742
4364
  Id = "id",
3743
4365
  TransactionHash = "transactionHash",
3744
4366
  GasPrice = "gasPrice",
4367
+ GasUsed = "gasUsed",
3745
4368
  Timestamp = "timestamp",
3746
4369
  Name = "name",
3747
4370
  Addresses = "addresses",
@@ -3753,23 +4376,47 @@ export declare enum IndexDistributionClaimedEvent_OrderBy {
3753
4376
  IndexId = "indexId",
3754
4377
  Subscriber = "subscriber",
3755
4378
  Amount = "amount",
3756
- Index = "index"
4379
+ Index = "index",
4380
+ Index__id = "index__id",
4381
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
4382
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
4383
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
4384
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
4385
+ Index__indexId = "index__indexId",
4386
+ Index__indexValue = "index__indexValue",
4387
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
4388
+ Index__totalUnitsPending = "index__totalUnitsPending",
4389
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
4390
+ Index__totalUnits = "index__totalUnits",
4391
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt"
3757
4392
  }
3758
4393
  export type IndexSubscribedEvent = Event & {
3759
4394
  __typename?: 'IndexSubscribedEvent';
3760
4395
  id: Scalars['ID'];
3761
4396
  transactionHash: Scalars['Bytes'];
3762
4397
  gasPrice: Scalars['BigInt'];
4398
+ gasUsed: Scalars['BigInt'];
3763
4399
  timestamp: Scalars['BigInt'];
3764
4400
  name: Scalars['String'];
3765
- /** Holds the token, publisher and subscriber addresses. */
4401
+ /**
4402
+ * Contains the addresses that were impacted by this event:
4403
+ * addresses[0] = `token` (superToken)
4404
+ * addresses[1] = `publisher`
4405
+ * addresses[2] = `subscriber`
4406
+ */
3766
4407
  addresses: Array<Scalars['Bytes']>;
3767
4408
  blockNumber: Scalars['BigInt'];
3768
4409
  logIndex: Scalars['BigInt'];
3769
4410
  order: Scalars['BigInt'];
3770
4411
  token: Scalars['Bytes'];
4412
+ /** The creator of the `index`. */
3771
4413
  publisher: Scalars['Bytes'];
4414
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
3772
4415
  indexId: Scalars['BigInt'];
4416
+ /**
4417
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
4418
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
4419
+ */
3773
4420
  subscriber: Scalars['Bytes'];
3774
4421
  userData: Scalars['Bytes'];
3775
4422
  index: Index;
@@ -3801,6 +4448,14 @@ export type IndexSubscribedEvent_Filter = {
3801
4448
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
3802
4449
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
3803
4450
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
4451
+ gasUsed?: Maybe<Scalars['BigInt']>;
4452
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
4453
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
4454
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
4455
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
4456
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
4457
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
4458
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
3804
4459
  timestamp?: Maybe<Scalars['BigInt']>;
3805
4460
  timestamp_not?: Maybe<Scalars['BigInt']>;
3806
4461
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -3937,6 +4592,7 @@ export declare enum IndexSubscribedEvent_OrderBy {
3937
4592
  Id = "id",
3938
4593
  TransactionHash = "transactionHash",
3939
4594
  GasPrice = "gasPrice",
4595
+ GasUsed = "gasUsed",
3940
4596
  Timestamp = "timestamp",
3941
4597
  Name = "name",
3942
4598
  Addresses = "addresses",
@@ -3948,12 +4604,21 @@ export declare enum IndexSubscribedEvent_OrderBy {
3948
4604
  IndexId = "indexId",
3949
4605
  Subscriber = "subscriber",
3950
4606
  UserData = "userData",
3951
- Index = "index"
4607
+ Index = "index",
4608
+ Index__id = "index__id",
4609
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
4610
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
4611
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
4612
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
4613
+ Index__indexId = "index__indexId",
4614
+ Index__indexValue = "index__indexValue",
4615
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
4616
+ Index__totalUnitsPending = "index__totalUnitsPending",
4617
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
4618
+ Index__totalUnits = "index__totalUnits",
4619
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt"
3952
4620
  }
3953
- /**
3954
- * IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular
3955
- * `Index`.
3956
- */
4621
+ /** IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular `Index`. */
3957
4622
  export type IndexSubscription = {
3958
4623
  __typename?: 'IndexSubscription';
3959
4624
  /** ID composed of: subscriberAddress-publisherAddress-tokenAddress-IndexId */
@@ -3964,14 +4629,11 @@ export type IndexSubscription = {
3964
4629
  updatedAtBlockNumber: Scalars['BigInt'];
3965
4630
  subscriber: Account;
3966
4631
  /**
3967
- * Approved subscriptions don't require subscribers to claim tokens that are distributed from
3968
- * the publisher.
4632
+ * A boolean indicating whether the `IndexSubscription` is approved.
4633
+ * Approved subscriptions don't require `subscriber` to claim tokens that are distributed from the publisher.
3969
4634
  */
3970
4635
  approved: Scalars['Boolean'];
3971
- /**
3972
- * If units is 0, it indicates that the subscription is "deleted". They are no longer
3973
- * subscribed to the index.
3974
- */
4636
+ /** If `units` is `0`, it indicates that the subscription is "deleted" and `subscriber` is no longer subscribed to `index`. */
3975
4637
  units: Scalars['BigInt'];
3976
4638
  /**
3977
4639
  * The total amount of tokens you've received via IDA until
@@ -3979,8 +4641,8 @@ export type IndexSubscription = {
3979
4641
  */
3980
4642
  totalAmountReceivedUntilUpdatedAt: Scalars['BigInt'];
3981
4643
  /**
3982
- * The previous index value - used to calculate `totalAmountReceivedUntilUpdatedAt` field as of the
3983
- * `index.updatedAtTimestamp`. The formula to get this value is:
4644
+ * The previous index value - used to calculate `totalAmountReceivedUntilUpdatedAt` field as of the `index.updatedAtTimestamp`.
4645
+ * The formula to get this value is:
3984
4646
  * `IndexSubscription.totalAmountReceivedUntilUpdatedAt + ((index.newIndexValue - indexSubscription.indexValueUntilUpdatedAt) * indexSubscription.units)`.
3985
4647
  */
3986
4648
  indexValueUntilUpdatedAt: Scalars['BigInt'];
@@ -3991,10 +4653,7 @@ export type IndexSubscription = {
3991
4653
  subscriptionRevokedEvents: Array<SubscriptionRevokedEvent>;
3992
4654
  subscriptionUnitsUpdatedEvents: Array<SubscriptionUnitsUpdatedEvent>;
3993
4655
  };
3994
- /**
3995
- * IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular
3996
- * `Index`.
3997
- */
4656
+ /** IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular `Index`. */
3998
4657
  export type IndexSubscriptionSubscriptionApprovedEventsArgs = {
3999
4658
  skip?: Maybe<Scalars['Int']>;
4000
4659
  first?: Maybe<Scalars['Int']>;
@@ -4002,10 +4661,7 @@ export type IndexSubscriptionSubscriptionApprovedEventsArgs = {
4002
4661
  orderDirection?: Maybe<OrderDirection>;
4003
4662
  where?: Maybe<SubscriptionApprovedEvent_Filter>;
4004
4663
  };
4005
- /**
4006
- * IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular
4007
- * `Index`.
4008
- */
4664
+ /** IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular `Index`. */
4009
4665
  export type IndexSubscriptionSubscriptionDistributionClaimedEventsArgs = {
4010
4666
  skip?: Maybe<Scalars['Int']>;
4011
4667
  first?: Maybe<Scalars['Int']>;
@@ -4013,10 +4669,7 @@ export type IndexSubscriptionSubscriptionDistributionClaimedEventsArgs = {
4013
4669
  orderDirection?: Maybe<OrderDirection>;
4014
4670
  where?: Maybe<SubscriptionDistributionClaimedEvent_Filter>;
4015
4671
  };
4016
- /**
4017
- * IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular
4018
- * `Index`.
4019
- */
4672
+ /** IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular `Index`. */
4020
4673
  export type IndexSubscriptionSubscriptionRevokedEventsArgs = {
4021
4674
  skip?: Maybe<Scalars['Int']>;
4022
4675
  first?: Maybe<Scalars['Int']>;
@@ -4024,10 +4677,7 @@ export type IndexSubscriptionSubscriptionRevokedEventsArgs = {
4024
4677
  orderDirection?: Maybe<OrderDirection>;
4025
4678
  where?: Maybe<SubscriptionRevokedEvent_Filter>;
4026
4679
  };
4027
- /**
4028
- * IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular
4029
- * `Index`.
4030
- */
4680
+ /** IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular `Index`. */
4031
4681
  export type IndexSubscriptionSubscriptionUnitsUpdatedEventsArgs = {
4032
4682
  skip?: Maybe<Scalars['Int']>;
4033
4683
  first?: Maybe<Scalars['Int']>;
@@ -4162,11 +4812,29 @@ export declare enum IndexSubscription_OrderBy {
4162
4812
  UpdatedAtTimestamp = "updatedAtTimestamp",
4163
4813
  UpdatedAtBlockNumber = "updatedAtBlockNumber",
4164
4814
  Subscriber = "subscriber",
4815
+ Subscriber__id = "subscriber__id",
4816
+ Subscriber__createdAtTimestamp = "subscriber__createdAtTimestamp",
4817
+ Subscriber__createdAtBlockNumber = "subscriber__createdAtBlockNumber",
4818
+ Subscriber__updatedAtTimestamp = "subscriber__updatedAtTimestamp",
4819
+ Subscriber__updatedAtBlockNumber = "subscriber__updatedAtBlockNumber",
4820
+ Subscriber__isSuperApp = "subscriber__isSuperApp",
4165
4821
  Approved = "approved",
4166
4822
  Units = "units",
4167
4823
  TotalAmountReceivedUntilUpdatedAt = "totalAmountReceivedUntilUpdatedAt",
4168
4824
  IndexValueUntilUpdatedAt = "indexValueUntilUpdatedAt",
4169
4825
  Index = "index",
4826
+ Index__id = "index__id",
4827
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
4828
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
4829
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
4830
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
4831
+ Index__indexId = "index__indexId",
4832
+ Index__indexValue = "index__indexValue",
4833
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
4834
+ Index__totalUnitsPending = "index__totalUnitsPending",
4835
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
4836
+ Index__totalUnits = "index__totalUnits",
4837
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt",
4170
4838
  SubscriptionApprovedEvents = "subscriptionApprovedEvents",
4171
4839
  SubscriptionDistributionClaimedEvents = "subscriptionDistributionClaimedEvents",
4172
4840
  SubscriptionRevokedEvents = "subscriptionRevokedEvents",
@@ -4177,16 +4845,28 @@ export type IndexUnitsUpdatedEvent = Event & {
4177
4845
  id: Scalars['ID'];
4178
4846
  transactionHash: Scalars['Bytes'];
4179
4847
  gasPrice: Scalars['BigInt'];
4848
+ gasUsed: Scalars['BigInt'];
4180
4849
  timestamp: Scalars['BigInt'];
4181
4850
  name: Scalars['String'];
4182
- /** Holds the token, publisher and subscriber addresses. */
4851
+ /**
4852
+ * Contains the addresses that were impacted by this event:
4853
+ * addresses[0] = `token` (superToken)
4854
+ * addresses[1] = `publisher`
4855
+ * addresses[2] = `subscriber`
4856
+ */
4183
4857
  addresses: Array<Scalars['Bytes']>;
4184
4858
  blockNumber: Scalars['BigInt'];
4185
4859
  logIndex: Scalars['BigInt'];
4186
4860
  order: Scalars['BigInt'];
4187
4861
  token: Scalars['Bytes'];
4862
+ /** The creator of the `index`. */
4188
4863
  publisher: Scalars['Bytes'];
4864
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
4189
4865
  indexId: Scalars['BigInt'];
4866
+ /**
4867
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
4868
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
4869
+ */
4190
4870
  subscriber: Scalars['Bytes'];
4191
4871
  units: Scalars['BigInt'];
4192
4872
  userData: Scalars['Bytes'];
@@ -4220,6 +4900,14 @@ export type IndexUnitsUpdatedEvent_Filter = {
4220
4900
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
4221
4901
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
4222
4902
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
4903
+ gasUsed?: Maybe<Scalars['BigInt']>;
4904
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
4905
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
4906
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
4907
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
4908
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
4909
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
4910
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
4223
4911
  timestamp?: Maybe<Scalars['BigInt']>;
4224
4912
  timestamp_not?: Maybe<Scalars['BigInt']>;
4225
4913
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -4372,6 +5060,7 @@ export declare enum IndexUnitsUpdatedEvent_OrderBy {
4372
5060
  Id = "id",
4373
5061
  TransactionHash = "transactionHash",
4374
5062
  GasPrice = "gasPrice",
5063
+ GasUsed = "gasUsed",
4375
5064
  Timestamp = "timestamp",
4376
5065
  Name = "name",
4377
5066
  Addresses = "addresses",
@@ -4385,23 +5074,47 @@ export declare enum IndexUnitsUpdatedEvent_OrderBy {
4385
5074
  Units = "units",
4386
5075
  UserData = "userData",
4387
5076
  OldUnits = "oldUnits",
4388
- Index = "index"
5077
+ Index = "index",
5078
+ Index__id = "index__id",
5079
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
5080
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
5081
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
5082
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
5083
+ Index__indexId = "index__indexId",
5084
+ Index__indexValue = "index__indexValue",
5085
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
5086
+ Index__totalUnitsPending = "index__totalUnitsPending",
5087
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
5088
+ Index__totalUnits = "index__totalUnits",
5089
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt"
4389
5090
  }
4390
5091
  export type IndexUnsubscribedEvent = Event & {
4391
5092
  __typename?: 'IndexUnsubscribedEvent';
4392
5093
  id: Scalars['ID'];
4393
5094
  transactionHash: Scalars['Bytes'];
4394
5095
  gasPrice: Scalars['BigInt'];
5096
+ gasUsed: Scalars['BigInt'];
4395
5097
  timestamp: Scalars['BigInt'];
4396
5098
  name: Scalars['String'];
4397
- /** Holds the token, publisher and subscriber addresses. */
5099
+ /**
5100
+ * Contains the addresses that were impacted by this event:
5101
+ * addresses[0] = `token` (superToken)
5102
+ * addresses[1] = `publisher`
5103
+ * addresses[2] = `subscriber`
5104
+ */
4398
5105
  addresses: Array<Scalars['Bytes']>;
4399
5106
  blockNumber: Scalars['BigInt'];
4400
5107
  logIndex: Scalars['BigInt'];
4401
5108
  order: Scalars['BigInt'];
4402
5109
  token: Scalars['Bytes'];
5110
+ /** The creator of the `index`. */
4403
5111
  publisher: Scalars['Bytes'];
5112
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
4404
5113
  indexId: Scalars['BigInt'];
5114
+ /**
5115
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
5116
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
5117
+ */
4405
5118
  subscriber: Scalars['Bytes'];
4406
5119
  userData: Scalars['Bytes'];
4407
5120
  index: Index;
@@ -4433,6 +5146,14 @@ export type IndexUnsubscribedEvent_Filter = {
4433
5146
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
4434
5147
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
4435
5148
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
5149
+ gasUsed?: Maybe<Scalars['BigInt']>;
5150
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
5151
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
5152
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
5153
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
5154
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
5155
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
5156
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
4436
5157
  timestamp?: Maybe<Scalars['BigInt']>;
4437
5158
  timestamp_not?: Maybe<Scalars['BigInt']>;
4438
5159
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -4569,6 +5290,7 @@ export declare enum IndexUnsubscribedEvent_OrderBy {
4569
5290
  Id = "id",
4570
5291
  TransactionHash = "transactionHash",
4571
5292
  GasPrice = "gasPrice",
5293
+ GasUsed = "gasUsed",
4572
5294
  Timestamp = "timestamp",
4573
5295
  Name = "name",
4574
5296
  Addresses = "addresses",
@@ -4580,22 +5302,41 @@ export declare enum IndexUnsubscribedEvent_OrderBy {
4580
5302
  IndexId = "indexId",
4581
5303
  Subscriber = "subscriber",
4582
5304
  UserData = "userData",
4583
- Index = "index"
5305
+ Index = "index",
5306
+ Index__id = "index__id",
5307
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
5308
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
5309
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
5310
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
5311
+ Index__indexId = "index__indexId",
5312
+ Index__indexValue = "index__indexValue",
5313
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
5314
+ Index__totalUnitsPending = "index__totalUnitsPending",
5315
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
5316
+ Index__totalUnits = "index__totalUnits",
5317
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt"
4584
5318
  }
4585
5319
  export type IndexUpdatedEvent = Event & {
4586
5320
  __typename?: 'IndexUpdatedEvent';
4587
5321
  id: Scalars['ID'];
4588
5322
  transactionHash: Scalars['Bytes'];
4589
5323
  gasPrice: Scalars['BigInt'];
5324
+ gasUsed: Scalars['BigInt'];
4590
5325
  timestamp: Scalars['BigInt'];
4591
5326
  name: Scalars['String'];
4592
- /** Holds the token and publisher addresses. */
5327
+ /**
5328
+ * Contains the addresses that were impacted by this event:
5329
+ * addresses[0] = `token` (superToken)
5330
+ * addresses[1] = `publisher`
5331
+ */
4593
5332
  addresses: Array<Scalars['Bytes']>;
4594
5333
  blockNumber: Scalars['BigInt'];
4595
5334
  logIndex: Scalars['BigInt'];
4596
5335
  order: Scalars['BigInt'];
4597
5336
  token: Scalars['Bytes'];
5337
+ /** The creator of the `index`. */
4598
5338
  publisher: Scalars['Bytes'];
5339
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
4599
5340
  indexId: Scalars['BigInt'];
4600
5341
  oldIndexValue: Scalars['BigInt'];
4601
5342
  newIndexValue: Scalars['BigInt'];
@@ -4631,6 +5372,14 @@ export type IndexUpdatedEvent_Filter = {
4631
5372
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
4632
5373
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
4633
5374
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
5375
+ gasUsed?: Maybe<Scalars['BigInt']>;
5376
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
5377
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
5378
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
5379
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
5380
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
5381
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
5382
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
4634
5383
  timestamp?: Maybe<Scalars['BigInt']>;
4635
5384
  timestamp_not?: Maybe<Scalars['BigInt']>;
4636
5385
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -4789,6 +5538,7 @@ export declare enum IndexUpdatedEvent_OrderBy {
4789
5538
  Id = "id",
4790
5539
  TransactionHash = "transactionHash",
4791
5540
  GasPrice = "gasPrice",
5541
+ GasUsed = "gasUsed",
4792
5542
  Timestamp = "timestamp",
4793
5543
  Name = "name",
4794
5544
  Addresses = "addresses",
@@ -4803,7 +5553,19 @@ export declare enum IndexUpdatedEvent_OrderBy {
4803
5553
  TotalUnitsPending = "totalUnitsPending",
4804
5554
  TotalUnitsApproved = "totalUnitsApproved",
4805
5555
  UserData = "userData",
4806
- Index = "index"
5556
+ Index = "index",
5557
+ Index__id = "index__id",
5558
+ Index__createdAtTimestamp = "index__createdAtTimestamp",
5559
+ Index__createdAtBlockNumber = "index__createdAtBlockNumber",
5560
+ Index__updatedAtTimestamp = "index__updatedAtTimestamp",
5561
+ Index__updatedAtBlockNumber = "index__updatedAtBlockNumber",
5562
+ Index__indexId = "index__indexId",
5563
+ Index__indexValue = "index__indexValue",
5564
+ Index__totalSubscriptionsWithUnits = "index__totalSubscriptionsWithUnits",
5565
+ Index__totalUnitsPending = "index__totalUnitsPending",
5566
+ Index__totalUnitsApproved = "index__totalUnitsApproved",
5567
+ Index__totalUnits = "index__totalUnits",
5568
+ Index__totalAmountDistributedUntilUpdatedAt = "index__totalAmountDistributedUntilUpdatedAt"
4807
5569
  }
4808
5570
  export type Index_Filter = {
4809
5571
  id?: Maybe<Scalars['ID']>;
@@ -4990,9 +5752,38 @@ export declare enum Index_OrderBy {
4990
5752
  TotalUnits = "totalUnits",
4991
5753
  TotalAmountDistributedUntilUpdatedAt = "totalAmountDistributedUntilUpdatedAt",
4992
5754
  Token = "token",
5755
+ Token__id = "token__id",
5756
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
5757
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
5758
+ Token__decimals = "token__decimals",
5759
+ Token__name = "token__name",
5760
+ Token__symbol = "token__symbol",
5761
+ Token__isSuperToken = "token__isSuperToken",
5762
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
5763
+ Token__isListed = "token__isListed",
5764
+ Token__underlyingAddress = "token__underlyingAddress",
4993
5765
  Publisher = "publisher",
5766
+ Publisher__id = "publisher__id",
5767
+ Publisher__createdAtTimestamp = "publisher__createdAtTimestamp",
5768
+ Publisher__createdAtBlockNumber = "publisher__createdAtBlockNumber",
5769
+ Publisher__updatedAtTimestamp = "publisher__updatedAtTimestamp",
5770
+ Publisher__updatedAtBlockNumber = "publisher__updatedAtBlockNumber",
5771
+ Publisher__isSuperApp = "publisher__isSuperApp",
4994
5772
  Subscriptions = "subscriptions",
4995
5773
  IndexCreatedEvent = "indexCreatedEvent",
5774
+ IndexCreatedEvent__id = "indexCreatedEvent__id",
5775
+ IndexCreatedEvent__transactionHash = "indexCreatedEvent__transactionHash",
5776
+ IndexCreatedEvent__gasPrice = "indexCreatedEvent__gasPrice",
5777
+ IndexCreatedEvent__gasUsed = "indexCreatedEvent__gasUsed",
5778
+ IndexCreatedEvent__timestamp = "indexCreatedEvent__timestamp",
5779
+ IndexCreatedEvent__name = "indexCreatedEvent__name",
5780
+ IndexCreatedEvent__blockNumber = "indexCreatedEvent__blockNumber",
5781
+ IndexCreatedEvent__logIndex = "indexCreatedEvent__logIndex",
5782
+ IndexCreatedEvent__order = "indexCreatedEvent__order",
5783
+ IndexCreatedEvent__token = "indexCreatedEvent__token",
5784
+ IndexCreatedEvent__publisher = "indexCreatedEvent__publisher",
5785
+ IndexCreatedEvent__indexId = "indexCreatedEvent__indexId",
5786
+ IndexCreatedEvent__userData = "indexCreatedEvent__userData",
4996
5787
  IndexDistributionClaimedEvents = "indexDistributionClaimedEvents",
4997
5788
  IndexUpdatedEvents = "indexUpdatedEvents",
4998
5789
  IndexSubscribedEvents = "indexSubscribedEvents",
@@ -5004,6 +5795,7 @@ export type JailEvent = Event & {
5004
5795
  id: Scalars['ID'];
5005
5796
  transactionHash: Scalars['Bytes'];
5006
5797
  gasPrice: Scalars['BigInt'];
5798
+ gasUsed: Scalars['BigInt'];
5007
5799
  timestamp: Scalars['BigInt'];
5008
5800
  name: Scalars['String'];
5009
5801
  /** Empty addresses array. */
@@ -5041,6 +5833,14 @@ export type JailEvent_Filter = {
5041
5833
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
5042
5834
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
5043
5835
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
5836
+ gasUsed?: Maybe<Scalars['BigInt']>;
5837
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
5838
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
5839
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
5840
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
5841
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
5842
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
5843
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
5044
5844
  timestamp?: Maybe<Scalars['BigInt']>;
5045
5845
  timestamp_not?: Maybe<Scalars['BigInt']>;
5046
5846
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -5126,6 +5926,7 @@ export declare enum JailEvent_OrderBy {
5126
5926
  Id = "id",
5127
5927
  TransactionHash = "transactionHash",
5128
5928
  GasPrice = "gasPrice",
5929
+ GasUsed = "gasUsed",
5129
5930
  Timestamp = "timestamp",
5130
5931
  Name = "name",
5131
5932
  Addresses = "addresses",
@@ -5140,9 +5941,15 @@ export type MintedEvent = Event & {
5140
5941
  id: Scalars['ID'];
5141
5942
  transactionHash: Scalars['Bytes'];
5142
5943
  gasPrice: Scalars['BigInt'];
5944
+ gasUsed: Scalars['BigInt'];
5143
5945
  timestamp: Scalars['BigInt'];
5144
5946
  name: Scalars['String'];
5145
- /** Holds the token, operator and to addresses. */
5947
+ /**
5948
+ * Contains the addresses that were impacted by this event:
5949
+ * addresses[0] = `token` (superToken)
5950
+ * addresses[1] = `operator`
5951
+ * addresses[2] = `to`
5952
+ */
5146
5953
  addresses: Array<Scalars['Bytes']>;
5147
5954
  blockNumber: Scalars['BigInt'];
5148
5955
  logIndex: Scalars['BigInt'];
@@ -5181,6 +5988,14 @@ export type MintedEvent_Filter = {
5181
5988
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
5182
5989
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
5183
5990
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
5991
+ gasUsed?: Maybe<Scalars['BigInt']>;
5992
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
5993
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
5994
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
5995
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
5996
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
5997
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
5998
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
5184
5999
  timestamp?: Maybe<Scalars['BigInt']>;
5185
6000
  timestamp_not?: Maybe<Scalars['BigInt']>;
5186
6001
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -5306,6 +6121,7 @@ export declare enum MintedEvent_OrderBy {
5306
6121
  Id = "id",
5307
6122
  TransactionHash = "transactionHash",
5308
6123
  GasPrice = "gasPrice",
6124
+ GasUsed = "gasUsed",
5309
6125
  Timestamp = "timestamp",
5310
6126
  Name = "name",
5311
6127
  Addresses = "addresses",
@@ -5319,6 +6135,182 @@ export declare enum MintedEvent_OrderBy {
5319
6135
  Token = "token",
5320
6136
  OperatorData = "operatorData"
5321
6137
  }
6138
+ export type NewPicEvent = Event & {
6139
+ __typename?: 'NewPICEvent';
6140
+ id: Scalars['ID'];
6141
+ transactionHash: Scalars['Bytes'];
6142
+ gasPrice: Scalars['BigInt'];
6143
+ gasUsed: Scalars['BigInt'];
6144
+ timestamp: Scalars['BigInt'];
6145
+ name: Scalars['String'];
6146
+ /**
6147
+ * Contains the addresses that were impacted by this event:
6148
+ * addresses[0] = `token` (superToken)
6149
+ * addresses[1] = `pic` (new Patrician In Charge)
6150
+ */
6151
+ addresses: Array<Scalars['Bytes']>;
6152
+ blockNumber: Scalars['BigInt'];
6153
+ logIndex: Scalars['BigInt'];
6154
+ order: Scalars['BigInt'];
6155
+ /** The address of the `token` (supertoken) the PIC is posting a bond for. */
6156
+ token: Scalars['Bytes'];
6157
+ /** The address of the new Patrician In Charge (PIC). */
6158
+ pic: Scalars['Bytes'];
6159
+ /** The bond the new PIC staked in order to claim the position. */
6160
+ bond: Scalars['BigInt'];
6161
+ /** The flowrate at which the bond is streamed back to the PIC. */
6162
+ exitRate: Scalars['BigInt'];
6163
+ };
6164
+ export type NewPicEvent_Filter = {
6165
+ id?: Maybe<Scalars['ID']>;
6166
+ id_not?: Maybe<Scalars['ID']>;
6167
+ id_gt?: Maybe<Scalars['ID']>;
6168
+ id_lt?: Maybe<Scalars['ID']>;
6169
+ id_gte?: Maybe<Scalars['ID']>;
6170
+ id_lte?: Maybe<Scalars['ID']>;
6171
+ id_in?: Maybe<Array<Scalars['ID']>>;
6172
+ id_not_in?: Maybe<Array<Scalars['ID']>>;
6173
+ transactionHash?: Maybe<Scalars['Bytes']>;
6174
+ transactionHash_not?: Maybe<Scalars['Bytes']>;
6175
+ transactionHash_gt?: Maybe<Scalars['Bytes']>;
6176
+ transactionHash_lt?: Maybe<Scalars['Bytes']>;
6177
+ transactionHash_gte?: Maybe<Scalars['Bytes']>;
6178
+ transactionHash_lte?: Maybe<Scalars['Bytes']>;
6179
+ transactionHash_in?: Maybe<Array<Scalars['Bytes']>>;
6180
+ transactionHash_not_in?: Maybe<Array<Scalars['Bytes']>>;
6181
+ transactionHash_contains?: Maybe<Scalars['Bytes']>;
6182
+ transactionHash_not_contains?: Maybe<Scalars['Bytes']>;
6183
+ gasPrice?: Maybe<Scalars['BigInt']>;
6184
+ gasPrice_not?: Maybe<Scalars['BigInt']>;
6185
+ gasPrice_gt?: Maybe<Scalars['BigInt']>;
6186
+ gasPrice_lt?: Maybe<Scalars['BigInt']>;
6187
+ gasPrice_gte?: Maybe<Scalars['BigInt']>;
6188
+ gasPrice_lte?: Maybe<Scalars['BigInt']>;
6189
+ gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
6190
+ gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
6191
+ gasUsed?: Maybe<Scalars['BigInt']>;
6192
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
6193
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
6194
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
6195
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
6196
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
6197
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
6198
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
6199
+ timestamp?: Maybe<Scalars['BigInt']>;
6200
+ timestamp_not?: Maybe<Scalars['BigInt']>;
6201
+ timestamp_gt?: Maybe<Scalars['BigInt']>;
6202
+ timestamp_lt?: Maybe<Scalars['BigInt']>;
6203
+ timestamp_gte?: Maybe<Scalars['BigInt']>;
6204
+ timestamp_lte?: Maybe<Scalars['BigInt']>;
6205
+ timestamp_in?: Maybe<Array<Scalars['BigInt']>>;
6206
+ timestamp_not_in?: Maybe<Array<Scalars['BigInt']>>;
6207
+ name?: Maybe<Scalars['String']>;
6208
+ name_not?: Maybe<Scalars['String']>;
6209
+ name_gt?: Maybe<Scalars['String']>;
6210
+ name_lt?: Maybe<Scalars['String']>;
6211
+ name_gte?: Maybe<Scalars['String']>;
6212
+ name_lte?: Maybe<Scalars['String']>;
6213
+ name_in?: Maybe<Array<Scalars['String']>>;
6214
+ name_not_in?: Maybe<Array<Scalars['String']>>;
6215
+ name_contains?: Maybe<Scalars['String']>;
6216
+ name_contains_nocase?: Maybe<Scalars['String']>;
6217
+ name_not_contains?: Maybe<Scalars['String']>;
6218
+ name_not_contains_nocase?: Maybe<Scalars['String']>;
6219
+ name_starts_with?: Maybe<Scalars['String']>;
6220
+ name_starts_with_nocase?: Maybe<Scalars['String']>;
6221
+ name_not_starts_with?: Maybe<Scalars['String']>;
6222
+ name_not_starts_with_nocase?: Maybe<Scalars['String']>;
6223
+ name_ends_with?: Maybe<Scalars['String']>;
6224
+ name_ends_with_nocase?: Maybe<Scalars['String']>;
6225
+ name_not_ends_with?: Maybe<Scalars['String']>;
6226
+ name_not_ends_with_nocase?: Maybe<Scalars['String']>;
6227
+ addresses?: Maybe<Array<Scalars['Bytes']>>;
6228
+ addresses_not?: Maybe<Array<Scalars['Bytes']>>;
6229
+ addresses_contains?: Maybe<Array<Scalars['Bytes']>>;
6230
+ addresses_contains_nocase?: Maybe<Array<Scalars['Bytes']>>;
6231
+ addresses_not_contains?: Maybe<Array<Scalars['Bytes']>>;
6232
+ addresses_not_contains_nocase?: Maybe<Array<Scalars['Bytes']>>;
6233
+ blockNumber?: Maybe<Scalars['BigInt']>;
6234
+ blockNumber_not?: Maybe<Scalars['BigInt']>;
6235
+ blockNumber_gt?: Maybe<Scalars['BigInt']>;
6236
+ blockNumber_lt?: Maybe<Scalars['BigInt']>;
6237
+ blockNumber_gte?: Maybe<Scalars['BigInt']>;
6238
+ blockNumber_lte?: Maybe<Scalars['BigInt']>;
6239
+ blockNumber_in?: Maybe<Array<Scalars['BigInt']>>;
6240
+ blockNumber_not_in?: Maybe<Array<Scalars['BigInt']>>;
6241
+ logIndex?: Maybe<Scalars['BigInt']>;
6242
+ logIndex_not?: Maybe<Scalars['BigInt']>;
6243
+ logIndex_gt?: Maybe<Scalars['BigInt']>;
6244
+ logIndex_lt?: Maybe<Scalars['BigInt']>;
6245
+ logIndex_gte?: Maybe<Scalars['BigInt']>;
6246
+ logIndex_lte?: Maybe<Scalars['BigInt']>;
6247
+ logIndex_in?: Maybe<Array<Scalars['BigInt']>>;
6248
+ logIndex_not_in?: Maybe<Array<Scalars['BigInt']>>;
6249
+ order?: Maybe<Scalars['BigInt']>;
6250
+ order_not?: Maybe<Scalars['BigInt']>;
6251
+ order_gt?: Maybe<Scalars['BigInt']>;
6252
+ order_lt?: Maybe<Scalars['BigInt']>;
6253
+ order_gte?: Maybe<Scalars['BigInt']>;
6254
+ order_lte?: Maybe<Scalars['BigInt']>;
6255
+ order_in?: Maybe<Array<Scalars['BigInt']>>;
6256
+ order_not_in?: Maybe<Array<Scalars['BigInt']>>;
6257
+ token?: Maybe<Scalars['Bytes']>;
6258
+ token_not?: Maybe<Scalars['Bytes']>;
6259
+ token_gt?: Maybe<Scalars['Bytes']>;
6260
+ token_lt?: Maybe<Scalars['Bytes']>;
6261
+ token_gte?: Maybe<Scalars['Bytes']>;
6262
+ token_lte?: Maybe<Scalars['Bytes']>;
6263
+ token_in?: Maybe<Array<Scalars['Bytes']>>;
6264
+ token_not_in?: Maybe<Array<Scalars['Bytes']>>;
6265
+ token_contains?: Maybe<Scalars['Bytes']>;
6266
+ token_not_contains?: Maybe<Scalars['Bytes']>;
6267
+ pic?: Maybe<Scalars['Bytes']>;
6268
+ pic_not?: Maybe<Scalars['Bytes']>;
6269
+ pic_gt?: Maybe<Scalars['Bytes']>;
6270
+ pic_lt?: Maybe<Scalars['Bytes']>;
6271
+ pic_gte?: Maybe<Scalars['Bytes']>;
6272
+ pic_lte?: Maybe<Scalars['Bytes']>;
6273
+ pic_in?: Maybe<Array<Scalars['Bytes']>>;
6274
+ pic_not_in?: Maybe<Array<Scalars['Bytes']>>;
6275
+ pic_contains?: Maybe<Scalars['Bytes']>;
6276
+ pic_not_contains?: Maybe<Scalars['Bytes']>;
6277
+ bond?: Maybe<Scalars['BigInt']>;
6278
+ bond_not?: Maybe<Scalars['BigInt']>;
6279
+ bond_gt?: Maybe<Scalars['BigInt']>;
6280
+ bond_lt?: Maybe<Scalars['BigInt']>;
6281
+ bond_gte?: Maybe<Scalars['BigInt']>;
6282
+ bond_lte?: Maybe<Scalars['BigInt']>;
6283
+ bond_in?: Maybe<Array<Scalars['BigInt']>>;
6284
+ bond_not_in?: Maybe<Array<Scalars['BigInt']>>;
6285
+ exitRate?: Maybe<Scalars['BigInt']>;
6286
+ exitRate_not?: Maybe<Scalars['BigInt']>;
6287
+ exitRate_gt?: Maybe<Scalars['BigInt']>;
6288
+ exitRate_lt?: Maybe<Scalars['BigInt']>;
6289
+ exitRate_gte?: Maybe<Scalars['BigInt']>;
6290
+ exitRate_lte?: Maybe<Scalars['BigInt']>;
6291
+ exitRate_in?: Maybe<Array<Scalars['BigInt']>>;
6292
+ exitRate_not_in?: Maybe<Array<Scalars['BigInt']>>;
6293
+ /** Filter for the block changed event. */
6294
+ _change_block?: Maybe<BlockChangedFilter>;
6295
+ and?: Maybe<Array<Maybe<NewPicEvent_Filter>>>;
6296
+ or?: Maybe<Array<Maybe<NewPicEvent_Filter>>>;
6297
+ };
6298
+ export declare enum NewPicEvent_OrderBy {
6299
+ Id = "id",
6300
+ TransactionHash = "transactionHash",
6301
+ GasPrice = "gasPrice",
6302
+ GasUsed = "gasUsed",
6303
+ Timestamp = "timestamp",
6304
+ Name = "name",
6305
+ Addresses = "addresses",
6306
+ BlockNumber = "blockNumber",
6307
+ LogIndex = "logIndex",
6308
+ Order = "order",
6309
+ Token = "token",
6310
+ Pic = "pic",
6311
+ Bond = "bond",
6312
+ ExitRate = "exitRate"
6313
+ }
5322
6314
  /** Defines the order direction, either ascending or descending */
5323
6315
  export declare enum OrderDirection {
5324
6316
  Asc = "asc",
@@ -5329,6 +6321,7 @@ export type PppConfigurationChangedEvent = Event & {
5329
6321
  id: Scalars['ID'];
5330
6322
  transactionHash: Scalars['Bytes'];
5331
6323
  gasPrice: Scalars['BigInt'];
6324
+ gasUsed: Scalars['BigInt'];
5332
6325
  timestamp: Scalars['BigInt'];
5333
6326
  name: Scalars['String'];
5334
6327
  /** The address of the governance contract the event was emitted from. */
@@ -5371,6 +6364,14 @@ export type PppConfigurationChangedEvent_Filter = {
5371
6364
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
5372
6365
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
5373
6366
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
6367
+ gasUsed?: Maybe<Scalars['BigInt']>;
6368
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
6369
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
6370
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
6371
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
6372
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
6373
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
6374
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
5374
6375
  timestamp?: Maybe<Scalars['BigInt']>;
5375
6376
  timestamp_not?: Maybe<Scalars['BigInt']>;
5376
6377
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -5488,6 +6489,7 @@ export declare enum PppConfigurationChangedEvent_OrderBy {
5488
6489
  Id = "id",
5489
6490
  TransactionHash = "transactionHash",
5490
6491
  GasPrice = "gasPrice",
6492
+ GasUsed = "gasUsed",
5491
6493
  Timestamp = "timestamp",
5492
6494
  Name = "name",
5493
6495
  GovernanceAddress = "governanceAddress",
@@ -5581,6 +6583,12 @@ export type Query = {
5581
6583
  superTokenCreatedEvents: Array<SuperTokenCreatedEvent>;
5582
6584
  superTokenLogicCreatedEvent?: Maybe<SuperTokenLogicCreatedEvent>;
5583
6585
  superTokenLogicCreatedEvents: Array<SuperTokenLogicCreatedEvent>;
6586
+ newPICEvent?: Maybe<NewPicEvent>;
6587
+ newPICEvents: Array<NewPicEvent>;
6588
+ exitRateChangedEvent?: Maybe<ExitRateChangedEvent>;
6589
+ exitRateChangedEvents: Array<ExitRateChangedEvent>;
6590
+ bondIncreasedEvent?: Maybe<BondIncreasedEvent>;
6591
+ bondIncreasedEvents: Array<BondIncreasedEvent>;
5584
6592
  account?: Maybe<Account>;
5585
6593
  accounts: Array<Account>;
5586
6594
  index?: Maybe<Index>;
@@ -6160,6 +7168,48 @@ export type QuerySuperTokenLogicCreatedEventsArgs = {
6160
7168
  block?: Maybe<Block_Height>;
6161
7169
  subgraphError?: _SubgraphErrorPolicy_;
6162
7170
  };
7171
+ export type QueryNewPicEventArgs = {
7172
+ id: Scalars['ID'];
7173
+ block?: Maybe<Block_Height>;
7174
+ subgraphError?: _SubgraphErrorPolicy_;
7175
+ };
7176
+ export type QueryNewPicEventsArgs = {
7177
+ skip?: Maybe<Scalars['Int']>;
7178
+ first?: Maybe<Scalars['Int']>;
7179
+ orderBy?: Maybe<NewPicEvent_OrderBy>;
7180
+ orderDirection?: Maybe<OrderDirection>;
7181
+ where?: Maybe<NewPicEvent_Filter>;
7182
+ block?: Maybe<Block_Height>;
7183
+ subgraphError?: _SubgraphErrorPolicy_;
7184
+ };
7185
+ export type QueryExitRateChangedEventArgs = {
7186
+ id: Scalars['ID'];
7187
+ block?: Maybe<Block_Height>;
7188
+ subgraphError?: _SubgraphErrorPolicy_;
7189
+ };
7190
+ export type QueryExitRateChangedEventsArgs = {
7191
+ skip?: Maybe<Scalars['Int']>;
7192
+ first?: Maybe<Scalars['Int']>;
7193
+ orderBy?: Maybe<ExitRateChangedEvent_OrderBy>;
7194
+ orderDirection?: Maybe<OrderDirection>;
7195
+ where?: Maybe<ExitRateChangedEvent_Filter>;
7196
+ block?: Maybe<Block_Height>;
7197
+ subgraphError?: _SubgraphErrorPolicy_;
7198
+ };
7199
+ export type QueryBondIncreasedEventArgs = {
7200
+ id: Scalars['ID'];
7201
+ block?: Maybe<Block_Height>;
7202
+ subgraphError?: _SubgraphErrorPolicy_;
7203
+ };
7204
+ export type QueryBondIncreasedEventsArgs = {
7205
+ skip?: Maybe<Scalars['Int']>;
7206
+ first?: Maybe<Scalars['Int']>;
7207
+ orderBy?: Maybe<BondIncreasedEvent_OrderBy>;
7208
+ orderDirection?: Maybe<OrderDirection>;
7209
+ where?: Maybe<BondIncreasedEvent_Filter>;
7210
+ block?: Maybe<Block_Height>;
7211
+ subgraphError?: _SubgraphErrorPolicy_;
7212
+ };
6163
7213
  export type QueryAccountArgs = {
6164
7214
  id: Scalars['ID'];
6165
7215
  block?: Maybe<Block_Height>;
@@ -6474,6 +7524,7 @@ export type RewardAddressChangedEvent = Event & {
6474
7524
  id: Scalars['ID'];
6475
7525
  transactionHash: Scalars['Bytes'];
6476
7526
  gasPrice: Scalars['BigInt'];
7527
+ gasUsed: Scalars['BigInt'];
6477
7528
  timestamp: Scalars['BigInt'];
6478
7529
  name: Scalars['String'];
6479
7530
  /** The address of the governance contract the event was emitted from. */
@@ -6515,6 +7566,14 @@ export type RewardAddressChangedEvent_Filter = {
6515
7566
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
6516
7567
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
6517
7568
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
7569
+ gasUsed?: Maybe<Scalars['BigInt']>;
7570
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
7571
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
7572
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
7573
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
7574
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
7575
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
7576
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
6518
7577
  timestamp?: Maybe<Scalars['BigInt']>;
6519
7578
  timestamp_not?: Maybe<Scalars['BigInt']>;
6520
7579
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -6626,6 +7685,7 @@ export declare enum RewardAddressChangedEvent_OrderBy {
6626
7685
  Id = "id",
6627
7686
  TransactionHash = "transactionHash",
6628
7687
  GasPrice = "gasPrice",
7688
+ GasUsed = "gasUsed",
6629
7689
  Timestamp = "timestamp",
6630
7690
  Name = "name",
6631
7691
  GovernanceAddress = "governanceAddress",
@@ -6643,6 +7703,7 @@ export type RoleAdminChangedEvent = Event & {
6643
7703
  id: Scalars['ID'];
6644
7704
  transactionHash: Scalars['Bytes'];
6645
7705
  gasPrice: Scalars['BigInt'];
7706
+ gasUsed: Scalars['BigInt'];
6646
7707
  timestamp: Scalars['BigInt'];
6647
7708
  name: Scalars['String'];
6648
7709
  /** Empty addresses array. */
@@ -6681,6 +7742,14 @@ export type RoleAdminChangedEvent_Filter = {
6681
7742
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
6682
7743
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
6683
7744
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
7745
+ gasUsed?: Maybe<Scalars['BigInt']>;
7746
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
7747
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
7748
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
7749
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
7750
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
7751
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
7752
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
6684
7753
  timestamp?: Maybe<Scalars['BigInt']>;
6685
7754
  timestamp_not?: Maybe<Scalars['BigInt']>;
6686
7755
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -6778,6 +7847,7 @@ export declare enum RoleAdminChangedEvent_OrderBy {
6778
7847
  Id = "id",
6779
7848
  TransactionHash = "transactionHash",
6780
7849
  GasPrice = "gasPrice",
7850
+ GasUsed = "gasUsed",
6781
7851
  Timestamp = "timestamp",
6782
7852
  Name = "name",
6783
7853
  Addresses = "addresses",
@@ -6793,6 +7863,7 @@ export type RoleGrantedEvent = Event & {
6793
7863
  id: Scalars['ID'];
6794
7864
  transactionHash: Scalars['Bytes'];
6795
7865
  gasPrice: Scalars['BigInt'];
7866
+ gasUsed: Scalars['BigInt'];
6796
7867
  timestamp: Scalars['BigInt'];
6797
7868
  name: Scalars['String'];
6798
7869
  /** Empty addresses array. */
@@ -6831,6 +7902,14 @@ export type RoleGrantedEvent_Filter = {
6831
7902
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
6832
7903
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
6833
7904
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
7905
+ gasUsed?: Maybe<Scalars['BigInt']>;
7906
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
7907
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
7908
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
7909
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
7910
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
7911
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
7912
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
6834
7913
  timestamp?: Maybe<Scalars['BigInt']>;
6835
7914
  timestamp_not?: Maybe<Scalars['BigInt']>;
6836
7915
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -6928,6 +8007,7 @@ export declare enum RoleGrantedEvent_OrderBy {
6928
8007
  Id = "id",
6929
8008
  TransactionHash = "transactionHash",
6930
8009
  GasPrice = "gasPrice",
8010
+ GasUsed = "gasUsed",
6931
8011
  Timestamp = "timestamp",
6932
8012
  Name = "name",
6933
8013
  Addresses = "addresses",
@@ -6943,6 +8023,7 @@ export type RoleRevokedEvent = Event & {
6943
8023
  id: Scalars['ID'];
6944
8024
  transactionHash: Scalars['Bytes'];
6945
8025
  gasPrice: Scalars['BigInt'];
8026
+ gasUsed: Scalars['BigInt'];
6946
8027
  timestamp: Scalars['BigInt'];
6947
8028
  name: Scalars['String'];
6948
8029
  /** Empty addresses array. */
@@ -6981,6 +8062,14 @@ export type RoleRevokedEvent_Filter = {
6981
8062
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
6982
8063
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
6983
8064
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
8065
+ gasUsed?: Maybe<Scalars['BigInt']>;
8066
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
8067
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
8068
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
8069
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
8070
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
8071
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
8072
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
6984
8073
  timestamp?: Maybe<Scalars['BigInt']>;
6985
8074
  timestamp_not?: Maybe<Scalars['BigInt']>;
6986
8075
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -7078,6 +8167,7 @@ export declare enum RoleRevokedEvent_OrderBy {
7078
8167
  Id = "id",
7079
8168
  TransactionHash = "transactionHash",
7080
8169
  GasPrice = "gasPrice",
8170
+ GasUsed = "gasUsed",
7081
8171
  Timestamp = "timestamp",
7082
8172
  Name = "name",
7083
8173
  Addresses = "addresses",
@@ -7181,9 +8271,15 @@ export type SentEvent = Event & {
7181
8271
  id: Scalars['ID'];
7182
8272
  transactionHash: Scalars['Bytes'];
7183
8273
  gasPrice: Scalars['BigInt'];
8274
+ gasUsed: Scalars['BigInt'];
7184
8275
  timestamp: Scalars['BigInt'];
7185
8276
  name: Scalars['String'];
7186
- /** Holds the token, operator and from addresses. */
8277
+ /**
8278
+ * Contains the addresses that were impacted by this event:
8279
+ * addresses[0] = `token` (superToken)
8280
+ * addresses[1] = `operator`
8281
+ * addresses[2] = `from`
8282
+ */
7187
8283
  addresses: Array<Scalars['Bytes']>;
7188
8284
  blockNumber: Scalars['BigInt'];
7189
8285
  logIndex: Scalars['BigInt'];
@@ -7223,6 +8319,14 @@ export type SentEvent_Filter = {
7223
8319
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
7224
8320
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
7225
8321
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
8322
+ gasUsed?: Maybe<Scalars['BigInt']>;
8323
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
8324
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
8325
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
8326
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
8327
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
8328
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
8329
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
7226
8330
  timestamp?: Maybe<Scalars['BigInt']>;
7227
8331
  timestamp_not?: Maybe<Scalars['BigInt']>;
7228
8332
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -7358,6 +8462,7 @@ export declare enum SentEvent_OrderBy {
7358
8462
  Id = "id",
7359
8463
  TransactionHash = "transactionHash",
7360
8464
  GasPrice = "gasPrice",
8465
+ GasUsed = "gasUsed",
7361
8466
  Timestamp = "timestamp",
7362
8467
  Name = "name",
7363
8468
  Addresses = "addresses",
@@ -7377,6 +8482,7 @@ export type SetEvent = Event & {
7377
8482
  id: Scalars['ID'];
7378
8483
  transactionHash: Scalars['Bytes'];
7379
8484
  gasPrice: Scalars['BigInt'];
8485
+ gasUsed: Scalars['BigInt'];
7380
8486
  timestamp: Scalars['BigInt'];
7381
8487
  name: Scalars['String'];
7382
8488
  /** Empty addresses array. */
@@ -7420,6 +8526,14 @@ export type SetEvent_Filter = {
7420
8526
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
7421
8527
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
7422
8528
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
8529
+ gasUsed?: Maybe<Scalars['BigInt']>;
8530
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
8531
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
8532
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
8533
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
8534
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
8535
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
8536
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
7423
8537
  timestamp?: Maybe<Scalars['BigInt']>;
7424
8538
  timestamp_not?: Maybe<Scalars['BigInt']>;
7425
8539
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -7528,6 +8642,7 @@ export declare enum SetEvent_OrderBy {
7528
8642
  Id = "id",
7529
8643
  TransactionHash = "transactionHash",
7530
8644
  GasPrice = "gasPrice",
8645
+ GasUsed = "gasUsed",
7531
8646
  Timestamp = "timestamp",
7532
8647
  Name = "name",
7533
8648
  Addresses = "addresses",
@@ -7536,14 +8651,21 @@ export declare enum SetEvent_OrderBy {
7536
8651
  Order = "order",
7537
8652
  HashedName = "hashedName",
7538
8653
  Target = "target",
7539
- ResolverEntry = "resolverEntry"
8654
+ ResolverEntry = "resolverEntry",
8655
+ ResolverEntry__id = "resolverEntry__id",
8656
+ ResolverEntry__createdAtTimestamp = "resolverEntry__createdAtTimestamp",
8657
+ ResolverEntry__createdAtBlockNumber = "resolverEntry__createdAtBlockNumber",
8658
+ ResolverEntry__updatedAtTimestamp = "resolverEntry__updatedAtTimestamp",
8659
+ ResolverEntry__updatedAtBlockNumber = "resolverEntry__updatedAtBlockNumber",
8660
+ ResolverEntry__targetAddress = "resolverEntry__targetAddress",
8661
+ ResolverEntry__isToken = "resolverEntry__isToken",
8662
+ ResolverEntry__isListed = "resolverEntry__isListed"
7540
8663
  }
7541
8664
  /**
7542
8665
  * Stream: A higher order entity that represents the lifetime of a stream between a `sender` and a `receiver`.
7543
- * A account can start a stream, update the flow rate, but when they close it, it is
7544
- * considered "dead". The next stream you create with the same `sender` and `receiver`
7545
- * will create a new stream entity. Therefore, multiple stream entities can be created
7546
- * between the same `sender` and `receiver`.
8666
+ * A account can start a stream, update the flow rate, but when they close it, it is considered "dead".
8667
+ * The next stream you create with the same `sender` and `receiver` will create a new stream entity.
8668
+ * Therefore, multiple stream entities can be created between the same `sender` and `receiver`.
7547
8669
  */
7548
8670
  export type Stream = {
7549
8671
  __typename?: 'Stream';
@@ -7556,8 +8678,8 @@ export type Stream = {
7556
8678
  currentFlowRate: Scalars['BigInt'];
7557
8679
  deposit: Scalars['BigInt'];
7558
8680
  /**
7559
- * The amount streamed until `updatedAtTimestamp`/`updatedAtBlock`. The formula to get the current streamed
7560
- * amount is:
8681
+ * The amount streamed until `updatedAtTimestamp`/`updatedAtBlock`.
8682
+ * The formula to get the current streamed amount is:
7561
8683
  * `streamedUntilUpdatedAt + ((currentTime in seconds) - updatedAtTimestamp) * currentFlowRate`.
7562
8684
  */
7563
8685
  streamedUntilUpdatedAt: Scalars['BigInt'];
@@ -7569,10 +8691,9 @@ export type Stream = {
7569
8691
  };
7570
8692
  /**
7571
8693
  * Stream: A higher order entity that represents the lifetime of a stream between a `sender` and a `receiver`.
7572
- * A account can start a stream, update the flow rate, but when they close it, it is
7573
- * considered "dead". The next stream you create with the same `sender` and `receiver`
7574
- * will create a new stream entity. Therefore, multiple stream entities can be created
7575
- * between the same `sender` and `receiver`.
8694
+ * A account can start a stream, update the flow rate, but when they close it, it is considered "dead".
8695
+ * The next stream you create with the same `sender` and `receiver` will create a new stream entity.
8696
+ * Therefore, multiple stream entities can be created between the same `sender` and `receiver`.
7576
8697
  */
7577
8698
  export type StreamFlowUpdatedEventsArgs = {
7578
8699
  skip?: Maybe<Scalars['Int']>;
@@ -7583,10 +8704,9 @@ export type StreamFlowUpdatedEventsArgs = {
7583
8704
  };
7584
8705
  /**
7585
8706
  * Stream: A higher order entity that represents the lifetime of a stream between a `sender` and a `receiver`.
7586
- * A account can start a stream, update the flow rate, but when they close it, it is
7587
- * considered "dead". The next stream you create with the same `sender` and `receiver`
7588
- * will create a new stream entity. Therefore, multiple stream entities can be created
7589
- * between the same `sender` and `receiver`.
8707
+ * A account can start a stream, update the flow rate, but when they close it, it is considered "dead".
8708
+ * The next stream you create with the same `sender` and `receiver` will create a new stream entity.
8709
+ * Therefore, multiple stream entities can be created between the same `sender` and `receiver`.
7590
8710
  */
7591
8711
  export type StreamStreamPeriodsArgs = {
7592
8712
  skip?: Maybe<Scalars['Int']>;
@@ -7814,24 +8934,102 @@ export type StreamPeriod_Filter = {
7814
8934
  export declare enum StreamPeriod_OrderBy {
7815
8935
  Id = "id",
7816
8936
  Stream = "stream",
8937
+ Stream__id = "stream__id",
8938
+ Stream__createdAtTimestamp = "stream__createdAtTimestamp",
8939
+ Stream__createdAtBlockNumber = "stream__createdAtBlockNumber",
8940
+ Stream__updatedAtTimestamp = "stream__updatedAtTimestamp",
8941
+ Stream__updatedAtBlockNumber = "stream__updatedAtBlockNumber",
8942
+ Stream__currentFlowRate = "stream__currentFlowRate",
8943
+ Stream__deposit = "stream__deposit",
8944
+ Stream__streamedUntilUpdatedAt = "stream__streamedUntilUpdatedAt",
7817
8945
  Sender = "sender",
8946
+ Sender__id = "sender__id",
8947
+ Sender__createdAtTimestamp = "sender__createdAtTimestamp",
8948
+ Sender__createdAtBlockNumber = "sender__createdAtBlockNumber",
8949
+ Sender__updatedAtTimestamp = "sender__updatedAtTimestamp",
8950
+ Sender__updatedAtBlockNumber = "sender__updatedAtBlockNumber",
8951
+ Sender__isSuperApp = "sender__isSuperApp",
7818
8952
  Receiver = "receiver",
8953
+ Receiver__id = "receiver__id",
8954
+ Receiver__createdAtTimestamp = "receiver__createdAtTimestamp",
8955
+ Receiver__createdAtBlockNumber = "receiver__createdAtBlockNumber",
8956
+ Receiver__updatedAtTimestamp = "receiver__updatedAtTimestamp",
8957
+ Receiver__updatedAtBlockNumber = "receiver__updatedAtBlockNumber",
8958
+ Receiver__isSuperApp = "receiver__isSuperApp",
7819
8959
  Token = "token",
8960
+ Token__id = "token__id",
8961
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
8962
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
8963
+ Token__decimals = "token__decimals",
8964
+ Token__name = "token__name",
8965
+ Token__symbol = "token__symbol",
8966
+ Token__isSuperToken = "token__isSuperToken",
8967
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
8968
+ Token__isListed = "token__isListed",
8969
+ Token__underlyingAddress = "token__underlyingAddress",
7820
8970
  FlowRate = "flowRate",
7821
8971
  Deposit = "deposit",
7822
8972
  StartedAtTimestamp = "startedAtTimestamp",
7823
8973
  StartedAtBlockNumber = "startedAtBlockNumber",
7824
8974
  StartedAtEvent = "startedAtEvent",
8975
+ StartedAtEvent__id = "startedAtEvent__id",
8976
+ StartedAtEvent__transactionHash = "startedAtEvent__transactionHash",
8977
+ StartedAtEvent__gasPrice = "startedAtEvent__gasPrice",
8978
+ StartedAtEvent__gasUsed = "startedAtEvent__gasUsed",
8979
+ StartedAtEvent__timestamp = "startedAtEvent__timestamp",
8980
+ StartedAtEvent__name = "startedAtEvent__name",
8981
+ StartedAtEvent__blockNumber = "startedAtEvent__blockNumber",
8982
+ StartedAtEvent__logIndex = "startedAtEvent__logIndex",
8983
+ StartedAtEvent__order = "startedAtEvent__order",
8984
+ StartedAtEvent__token = "startedAtEvent__token",
8985
+ StartedAtEvent__sender = "startedAtEvent__sender",
8986
+ StartedAtEvent__receiver = "startedAtEvent__receiver",
8987
+ StartedAtEvent__flowOperator = "startedAtEvent__flowOperator",
8988
+ StartedAtEvent__flowRate = "startedAtEvent__flowRate",
8989
+ StartedAtEvent__totalSenderFlowRate = "startedAtEvent__totalSenderFlowRate",
8990
+ StartedAtEvent__totalReceiverFlowRate = "startedAtEvent__totalReceiverFlowRate",
8991
+ StartedAtEvent__deposit = "startedAtEvent__deposit",
8992
+ StartedAtEvent__userData = "startedAtEvent__userData",
8993
+ StartedAtEvent__oldFlowRate = "startedAtEvent__oldFlowRate",
8994
+ StartedAtEvent__type = "startedAtEvent__type",
8995
+ StartedAtEvent__totalAmountStreamedUntilTimestamp = "startedAtEvent__totalAmountStreamedUntilTimestamp",
7825
8996
  StoppedAtTimestamp = "stoppedAtTimestamp",
7826
8997
  StoppedAtBlockNumber = "stoppedAtBlockNumber",
7827
8998
  StoppedAtEvent = "stoppedAtEvent",
8999
+ StoppedAtEvent__id = "stoppedAtEvent__id",
9000
+ StoppedAtEvent__transactionHash = "stoppedAtEvent__transactionHash",
9001
+ StoppedAtEvent__gasPrice = "stoppedAtEvent__gasPrice",
9002
+ StoppedAtEvent__gasUsed = "stoppedAtEvent__gasUsed",
9003
+ StoppedAtEvent__timestamp = "stoppedAtEvent__timestamp",
9004
+ StoppedAtEvent__name = "stoppedAtEvent__name",
9005
+ StoppedAtEvent__blockNumber = "stoppedAtEvent__blockNumber",
9006
+ StoppedAtEvent__logIndex = "stoppedAtEvent__logIndex",
9007
+ StoppedAtEvent__order = "stoppedAtEvent__order",
9008
+ StoppedAtEvent__token = "stoppedAtEvent__token",
9009
+ StoppedAtEvent__sender = "stoppedAtEvent__sender",
9010
+ StoppedAtEvent__receiver = "stoppedAtEvent__receiver",
9011
+ StoppedAtEvent__flowOperator = "stoppedAtEvent__flowOperator",
9012
+ StoppedAtEvent__flowRate = "stoppedAtEvent__flowRate",
9013
+ StoppedAtEvent__totalSenderFlowRate = "stoppedAtEvent__totalSenderFlowRate",
9014
+ StoppedAtEvent__totalReceiverFlowRate = "stoppedAtEvent__totalReceiverFlowRate",
9015
+ StoppedAtEvent__deposit = "stoppedAtEvent__deposit",
9016
+ StoppedAtEvent__userData = "stoppedAtEvent__userData",
9017
+ StoppedAtEvent__oldFlowRate = "stoppedAtEvent__oldFlowRate",
9018
+ StoppedAtEvent__type = "stoppedAtEvent__type",
9019
+ StoppedAtEvent__totalAmountStreamedUntilTimestamp = "stoppedAtEvent__totalAmountStreamedUntilTimestamp",
7828
9020
  TotalAmountStreamed = "totalAmountStreamed"
7829
9021
  }
7830
9022
  export type StreamRevision = {
7831
9023
  __typename?: 'StreamRevision';
9024
+ /** ID composed of: keccak256(abi.encode(sender,receiver))-tokenAddress */
7832
9025
  id: Scalars['ID'];
7833
9026
  revisionIndex: Scalars['Int'];
7834
9027
  periodRevisionIndex: Scalars['Int'];
9028
+ /**
9029
+ * The "most recently alive" stream between a sender and receiver.
9030
+ * Note: The `revisionIndex` property may not be the same as the `revisionIndex` of `mostRecentStream`. Which means `mostRecentStream` has been closed and no new stream has been opened.
9031
+ */
9032
+ mostRecentStream: Stream;
7835
9033
  };
7836
9034
  export type StreamRevision_Filter = {
7837
9035
  id?: Maybe<Scalars['ID']>;
@@ -7858,6 +9056,27 @@ export type StreamRevision_Filter = {
7858
9056
  periodRevisionIndex_lte?: Maybe<Scalars['Int']>;
7859
9057
  periodRevisionIndex_in?: Maybe<Array<Scalars['Int']>>;
7860
9058
  periodRevisionIndex_not_in?: Maybe<Array<Scalars['Int']>>;
9059
+ mostRecentStream?: Maybe<Scalars['String']>;
9060
+ mostRecentStream_not?: Maybe<Scalars['String']>;
9061
+ mostRecentStream_gt?: Maybe<Scalars['String']>;
9062
+ mostRecentStream_lt?: Maybe<Scalars['String']>;
9063
+ mostRecentStream_gte?: Maybe<Scalars['String']>;
9064
+ mostRecentStream_lte?: Maybe<Scalars['String']>;
9065
+ mostRecentStream_in?: Maybe<Array<Scalars['String']>>;
9066
+ mostRecentStream_not_in?: Maybe<Array<Scalars['String']>>;
9067
+ mostRecentStream_contains?: Maybe<Scalars['String']>;
9068
+ mostRecentStream_contains_nocase?: Maybe<Scalars['String']>;
9069
+ mostRecentStream_not_contains?: Maybe<Scalars['String']>;
9070
+ mostRecentStream_not_contains_nocase?: Maybe<Scalars['String']>;
9071
+ mostRecentStream_starts_with?: Maybe<Scalars['String']>;
9072
+ mostRecentStream_starts_with_nocase?: Maybe<Scalars['String']>;
9073
+ mostRecentStream_not_starts_with?: Maybe<Scalars['String']>;
9074
+ mostRecentStream_not_starts_with_nocase?: Maybe<Scalars['String']>;
9075
+ mostRecentStream_ends_with?: Maybe<Scalars['String']>;
9076
+ mostRecentStream_ends_with_nocase?: Maybe<Scalars['String']>;
9077
+ mostRecentStream_not_ends_with?: Maybe<Scalars['String']>;
9078
+ mostRecentStream_not_ends_with_nocase?: Maybe<Scalars['String']>;
9079
+ mostRecentStream_?: Maybe<Stream_Filter>;
7861
9080
  /** Filter for the block changed event. */
7862
9081
  _change_block?: Maybe<BlockChangedFilter>;
7863
9082
  and?: Maybe<Array<Maybe<StreamRevision_Filter>>>;
@@ -7866,7 +9085,16 @@ export type StreamRevision_Filter = {
7866
9085
  export declare enum StreamRevision_OrderBy {
7867
9086
  Id = "id",
7868
9087
  RevisionIndex = "revisionIndex",
7869
- PeriodRevisionIndex = "periodRevisionIndex"
9088
+ PeriodRevisionIndex = "periodRevisionIndex",
9089
+ MostRecentStream = "mostRecentStream",
9090
+ MostRecentStream__id = "mostRecentStream__id",
9091
+ MostRecentStream__createdAtTimestamp = "mostRecentStream__createdAtTimestamp",
9092
+ MostRecentStream__createdAtBlockNumber = "mostRecentStream__createdAtBlockNumber",
9093
+ MostRecentStream__updatedAtTimestamp = "mostRecentStream__updatedAtTimestamp",
9094
+ MostRecentStream__updatedAtBlockNumber = "mostRecentStream__updatedAtBlockNumber",
9095
+ MostRecentStream__currentFlowRate = "mostRecentStream__currentFlowRate",
9096
+ MostRecentStream__deposit = "mostRecentStream__deposit",
9097
+ MostRecentStream__streamedUntilUpdatedAt = "mostRecentStream__streamedUntilUpdatedAt"
7870
9098
  }
7871
9099
  export type Stream_Filter = {
7872
9100
  id?: Maybe<Scalars['ID']>;
@@ -8013,8 +9241,30 @@ export declare enum Stream_OrderBy {
8013
9241
  Deposit = "deposit",
8014
9242
  StreamedUntilUpdatedAt = "streamedUntilUpdatedAt",
8015
9243
  Token = "token",
9244
+ Token__id = "token__id",
9245
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
9246
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
9247
+ Token__decimals = "token__decimals",
9248
+ Token__name = "token__name",
9249
+ Token__symbol = "token__symbol",
9250
+ Token__isSuperToken = "token__isSuperToken",
9251
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
9252
+ Token__isListed = "token__isListed",
9253
+ Token__underlyingAddress = "token__underlyingAddress",
8016
9254
  Sender = "sender",
9255
+ Sender__id = "sender__id",
9256
+ Sender__createdAtTimestamp = "sender__createdAtTimestamp",
9257
+ Sender__createdAtBlockNumber = "sender__createdAtBlockNumber",
9258
+ Sender__updatedAtTimestamp = "sender__updatedAtTimestamp",
9259
+ Sender__updatedAtBlockNumber = "sender__updatedAtBlockNumber",
9260
+ Sender__isSuperApp = "sender__isSuperApp",
8017
9261
  Receiver = "receiver",
9262
+ Receiver__id = "receiver__id",
9263
+ Receiver__createdAtTimestamp = "receiver__createdAtTimestamp",
9264
+ Receiver__createdAtBlockNumber = "receiver__createdAtBlockNumber",
9265
+ Receiver__updatedAtTimestamp = "receiver__updatedAtTimestamp",
9266
+ Receiver__updatedAtBlockNumber = "receiver__updatedAtBlockNumber",
9267
+ Receiver__isSuperApp = "receiver__isSuperApp",
8018
9268
  FlowUpdatedEvents = "flowUpdatedEvents",
8019
9269
  StreamPeriods = "streamPeriods"
8020
9270
  }
@@ -8098,6 +9348,12 @@ export type Subscription = {
8098
9348
  superTokenCreatedEvents: Array<SuperTokenCreatedEvent>;
8099
9349
  superTokenLogicCreatedEvent?: Maybe<SuperTokenLogicCreatedEvent>;
8100
9350
  superTokenLogicCreatedEvents: Array<SuperTokenLogicCreatedEvent>;
9351
+ newPICEvent?: Maybe<NewPicEvent>;
9352
+ newPICEvents: Array<NewPicEvent>;
9353
+ exitRateChangedEvent?: Maybe<ExitRateChangedEvent>;
9354
+ exitRateChangedEvents: Array<ExitRateChangedEvent>;
9355
+ bondIncreasedEvent?: Maybe<BondIncreasedEvent>;
9356
+ bondIncreasedEvents: Array<BondIncreasedEvent>;
8101
9357
  account?: Maybe<Account>;
8102
9358
  accounts: Array<Account>;
8103
9359
  index?: Maybe<Index>;
@@ -8677,6 +9933,48 @@ export type SubscriptionSuperTokenLogicCreatedEventsArgs = {
8677
9933
  block?: Maybe<Block_Height>;
8678
9934
  subgraphError?: _SubgraphErrorPolicy_;
8679
9935
  };
9936
+ export type SubscriptionNewPicEventArgs = {
9937
+ id: Scalars['ID'];
9938
+ block?: Maybe<Block_Height>;
9939
+ subgraphError?: _SubgraphErrorPolicy_;
9940
+ };
9941
+ export type SubscriptionNewPicEventsArgs = {
9942
+ skip?: Maybe<Scalars['Int']>;
9943
+ first?: Maybe<Scalars['Int']>;
9944
+ orderBy?: Maybe<NewPicEvent_OrderBy>;
9945
+ orderDirection?: Maybe<OrderDirection>;
9946
+ where?: Maybe<NewPicEvent_Filter>;
9947
+ block?: Maybe<Block_Height>;
9948
+ subgraphError?: _SubgraphErrorPolicy_;
9949
+ };
9950
+ export type SubscriptionExitRateChangedEventArgs = {
9951
+ id: Scalars['ID'];
9952
+ block?: Maybe<Block_Height>;
9953
+ subgraphError?: _SubgraphErrorPolicy_;
9954
+ };
9955
+ export type SubscriptionExitRateChangedEventsArgs = {
9956
+ skip?: Maybe<Scalars['Int']>;
9957
+ first?: Maybe<Scalars['Int']>;
9958
+ orderBy?: Maybe<ExitRateChangedEvent_OrderBy>;
9959
+ orderDirection?: Maybe<OrderDirection>;
9960
+ where?: Maybe<ExitRateChangedEvent_Filter>;
9961
+ block?: Maybe<Block_Height>;
9962
+ subgraphError?: _SubgraphErrorPolicy_;
9963
+ };
9964
+ export type SubscriptionBondIncreasedEventArgs = {
9965
+ id: Scalars['ID'];
9966
+ block?: Maybe<Block_Height>;
9967
+ subgraphError?: _SubgraphErrorPolicy_;
9968
+ };
9969
+ export type SubscriptionBondIncreasedEventsArgs = {
9970
+ skip?: Maybe<Scalars['Int']>;
9971
+ first?: Maybe<Scalars['Int']>;
9972
+ orderBy?: Maybe<BondIncreasedEvent_OrderBy>;
9973
+ orderDirection?: Maybe<OrderDirection>;
9974
+ where?: Maybe<BondIncreasedEvent_Filter>;
9975
+ block?: Maybe<Block_Height>;
9976
+ subgraphError?: _SubgraphErrorPolicy_;
9977
+ };
8680
9978
  export type SubscriptionAccountArgs = {
8681
9979
  id: Scalars['ID'];
8682
9980
  block?: Maybe<Block_Height>;
@@ -8895,16 +10193,28 @@ export type SubscriptionApprovedEvent = Event & {
8895
10193
  id: Scalars['ID'];
8896
10194
  transactionHash: Scalars['Bytes'];
8897
10195
  gasPrice: Scalars['BigInt'];
10196
+ gasUsed: Scalars['BigInt'];
8898
10197
  timestamp: Scalars['BigInt'];
8899
10198
  name: Scalars['String'];
8900
- /** Holds the token, publisher and subscriber addresses. */
10199
+ /**
10200
+ * Contains the addresses that were impacted by this event:
10201
+ * addresses[0] = `token` (superToken)
10202
+ * addresses[1] = `publisher`
10203
+ * addresses[2] = `subscriber`
10204
+ */
8901
10205
  addresses: Array<Scalars['Bytes']>;
8902
10206
  blockNumber: Scalars['BigInt'];
8903
10207
  logIndex: Scalars['BigInt'];
8904
10208
  order: Scalars['BigInt'];
8905
10209
  token: Scalars['Bytes'];
10210
+ /**
10211
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
10212
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
10213
+ */
8906
10214
  subscriber: Scalars['Bytes'];
10215
+ /** The creator of the `index`. */
8907
10216
  publisher: Scalars['Bytes'];
10217
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
8908
10218
  indexId: Scalars['BigInt'];
8909
10219
  userData: Scalars['Bytes'];
8910
10220
  subscription: IndexSubscription;
@@ -8936,6 +10246,14 @@ export type SubscriptionApprovedEvent_Filter = {
8936
10246
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
8937
10247
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
8938
10248
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
10249
+ gasUsed?: Maybe<Scalars['BigInt']>;
10250
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
10251
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
10252
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
10253
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
10254
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
10255
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
10256
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
8939
10257
  timestamp?: Maybe<Scalars['BigInt']>;
8940
10258
  timestamp_not?: Maybe<Scalars['BigInt']>;
8941
10259
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -9072,6 +10390,7 @@ export declare enum SubscriptionApprovedEvent_OrderBy {
9072
10390
  Id = "id",
9073
10391
  TransactionHash = "transactionHash",
9074
10392
  GasPrice = "gasPrice",
10393
+ GasUsed = "gasUsed",
9075
10394
  Timestamp = "timestamp",
9076
10395
  Name = "name",
9077
10396
  Addresses = "addresses",
@@ -9083,23 +10402,44 @@ export declare enum SubscriptionApprovedEvent_OrderBy {
9083
10402
  Publisher = "publisher",
9084
10403
  IndexId = "indexId",
9085
10404
  UserData = "userData",
9086
- Subscription = "subscription"
10405
+ Subscription = "subscription",
10406
+ Subscription__id = "subscription__id",
10407
+ Subscription__createdAtTimestamp = "subscription__createdAtTimestamp",
10408
+ Subscription__createdAtBlockNumber = "subscription__createdAtBlockNumber",
10409
+ Subscription__updatedAtTimestamp = "subscription__updatedAtTimestamp",
10410
+ Subscription__updatedAtBlockNumber = "subscription__updatedAtBlockNumber",
10411
+ Subscription__approved = "subscription__approved",
10412
+ Subscription__units = "subscription__units",
10413
+ Subscription__totalAmountReceivedUntilUpdatedAt = "subscription__totalAmountReceivedUntilUpdatedAt",
10414
+ Subscription__indexValueUntilUpdatedAt = "subscription__indexValueUntilUpdatedAt"
9087
10415
  }
9088
10416
  export type SubscriptionDistributionClaimedEvent = Event & {
9089
10417
  __typename?: 'SubscriptionDistributionClaimedEvent';
9090
10418
  id: Scalars['ID'];
9091
10419
  transactionHash: Scalars['Bytes'];
9092
10420
  gasPrice: Scalars['BigInt'];
10421
+ gasUsed: Scalars['BigInt'];
9093
10422
  timestamp: Scalars['BigInt'];
9094
10423
  name: Scalars['String'];
9095
- /** Holds the token, publisher and subscriber addresses. */
10424
+ /**
10425
+ * Contains the addresses that were impacted by this event:
10426
+ * addresses[0] = `token` (superToken)
10427
+ * addresses[1] = `publisher`
10428
+ * addresses[2] = `subscriber`
10429
+ */
9096
10430
  addresses: Array<Scalars['Bytes']>;
9097
10431
  blockNumber: Scalars['BigInt'];
9098
10432
  logIndex: Scalars['BigInt'];
9099
10433
  order: Scalars['BigInt'];
9100
10434
  token: Scalars['Bytes'];
10435
+ /**
10436
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
10437
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
10438
+ */
9101
10439
  subscriber: Scalars['Bytes'];
10440
+ /** The creator of the `index`. */
9102
10441
  publisher: Scalars['Bytes'];
10442
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
9103
10443
  indexId: Scalars['BigInt'];
9104
10444
  amount: Scalars['BigInt'];
9105
10445
  subscription: IndexSubscription;
@@ -9131,6 +10471,14 @@ export type SubscriptionDistributionClaimedEvent_Filter = {
9131
10471
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
9132
10472
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
9133
10473
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
10474
+ gasUsed?: Maybe<Scalars['BigInt']>;
10475
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
10476
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
10477
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
10478
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
10479
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
10480
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
10481
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
9134
10482
  timestamp?: Maybe<Scalars['BigInt']>;
9135
10483
  timestamp_not?: Maybe<Scalars['BigInt']>;
9136
10484
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -9265,6 +10613,7 @@ export declare enum SubscriptionDistributionClaimedEvent_OrderBy {
9265
10613
  Id = "id",
9266
10614
  TransactionHash = "transactionHash",
9267
10615
  GasPrice = "gasPrice",
10616
+ GasUsed = "gasUsed",
9268
10617
  Timestamp = "timestamp",
9269
10618
  Name = "name",
9270
10619
  Addresses = "addresses",
@@ -9276,23 +10625,44 @@ export declare enum SubscriptionDistributionClaimedEvent_OrderBy {
9276
10625
  Publisher = "publisher",
9277
10626
  IndexId = "indexId",
9278
10627
  Amount = "amount",
9279
- Subscription = "subscription"
10628
+ Subscription = "subscription",
10629
+ Subscription__id = "subscription__id",
10630
+ Subscription__createdAtTimestamp = "subscription__createdAtTimestamp",
10631
+ Subscription__createdAtBlockNumber = "subscription__createdAtBlockNumber",
10632
+ Subscription__updatedAtTimestamp = "subscription__updatedAtTimestamp",
10633
+ Subscription__updatedAtBlockNumber = "subscription__updatedAtBlockNumber",
10634
+ Subscription__approved = "subscription__approved",
10635
+ Subscription__units = "subscription__units",
10636
+ Subscription__totalAmountReceivedUntilUpdatedAt = "subscription__totalAmountReceivedUntilUpdatedAt",
10637
+ Subscription__indexValueUntilUpdatedAt = "subscription__indexValueUntilUpdatedAt"
9280
10638
  }
9281
10639
  export type SubscriptionRevokedEvent = Event & {
9282
10640
  __typename?: 'SubscriptionRevokedEvent';
9283
10641
  id: Scalars['ID'];
9284
10642
  transactionHash: Scalars['Bytes'];
9285
10643
  gasPrice: Scalars['BigInt'];
10644
+ gasUsed: Scalars['BigInt'];
9286
10645
  timestamp: Scalars['BigInt'];
9287
10646
  name: Scalars['String'];
9288
- /** Holds the token, publisher and subscriber addresses. */
10647
+ /**
10648
+ * Contains the addresses that were impacted by this event:
10649
+ * addresses[0] = `token` (superToken)
10650
+ * addresses[1] = `publisher`
10651
+ * addresses[2] = `subscriber`
10652
+ */
9289
10653
  addresses: Array<Scalars['Bytes']>;
9290
10654
  blockNumber: Scalars['BigInt'];
9291
10655
  logIndex: Scalars['BigInt'];
9292
10656
  order: Scalars['BigInt'];
9293
10657
  token: Scalars['Bytes'];
10658
+ /**
10659
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
10660
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
10661
+ */
9294
10662
  subscriber: Scalars['Bytes'];
10663
+ /** The creator of the `index`. */
9295
10664
  publisher: Scalars['Bytes'];
10665
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
9296
10666
  indexId: Scalars['BigInt'];
9297
10667
  userData: Scalars['Bytes'];
9298
10668
  subscription: IndexSubscription;
@@ -9324,6 +10694,14 @@ export type SubscriptionRevokedEvent_Filter = {
9324
10694
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
9325
10695
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
9326
10696
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
10697
+ gasUsed?: Maybe<Scalars['BigInt']>;
10698
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
10699
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
10700
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
10701
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
10702
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
10703
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
10704
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
9327
10705
  timestamp?: Maybe<Scalars['BigInt']>;
9328
10706
  timestamp_not?: Maybe<Scalars['BigInt']>;
9329
10707
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -9460,6 +10838,7 @@ export declare enum SubscriptionRevokedEvent_OrderBy {
9460
10838
  Id = "id",
9461
10839
  TransactionHash = "transactionHash",
9462
10840
  GasPrice = "gasPrice",
10841
+ GasUsed = "gasUsed",
9463
10842
  Timestamp = "timestamp",
9464
10843
  Name = "name",
9465
10844
  Addresses = "addresses",
@@ -9471,23 +10850,44 @@ export declare enum SubscriptionRevokedEvent_OrderBy {
9471
10850
  Publisher = "publisher",
9472
10851
  IndexId = "indexId",
9473
10852
  UserData = "userData",
9474
- Subscription = "subscription"
10853
+ Subscription = "subscription",
10854
+ Subscription__id = "subscription__id",
10855
+ Subscription__createdAtTimestamp = "subscription__createdAtTimestamp",
10856
+ Subscription__createdAtBlockNumber = "subscription__createdAtBlockNumber",
10857
+ Subscription__updatedAtTimestamp = "subscription__updatedAtTimestamp",
10858
+ Subscription__updatedAtBlockNumber = "subscription__updatedAtBlockNumber",
10859
+ Subscription__approved = "subscription__approved",
10860
+ Subscription__units = "subscription__units",
10861
+ Subscription__totalAmountReceivedUntilUpdatedAt = "subscription__totalAmountReceivedUntilUpdatedAt",
10862
+ Subscription__indexValueUntilUpdatedAt = "subscription__indexValueUntilUpdatedAt"
9475
10863
  }
9476
10864
  export type SubscriptionUnitsUpdatedEvent = Event & {
9477
10865
  __typename?: 'SubscriptionUnitsUpdatedEvent';
9478
10866
  id: Scalars['ID'];
9479
10867
  transactionHash: Scalars['Bytes'];
9480
10868
  gasPrice: Scalars['BigInt'];
10869
+ gasUsed: Scalars['BigInt'];
9481
10870
  timestamp: Scalars['BigInt'];
9482
10871
  name: Scalars['String'];
9483
- /** Holds the token, publisher and subscriber addresses. */
10872
+ /**
10873
+ * Contains the addresses that were impacted by this event:
10874
+ * addresses[0] = `token` (superToken)
10875
+ * addresses[1] = `publisher`
10876
+ * addresses[2] = `subscriber`
10877
+ */
9484
10878
  addresses: Array<Scalars['Bytes']>;
9485
10879
  blockNumber: Scalars['BigInt'];
9486
10880
  logIndex: Scalars['BigInt'];
9487
10881
  order: Scalars['BigInt'];
9488
10882
  token: Scalars['Bytes'];
10883
+ /**
10884
+ * The account that is subscribed to `index`. A possible recipient of distributions from the `publisher`.
10885
+ * `subscriber` only receives tokens if they have been allocated units (can be thought of as shares).
10886
+ */
9489
10887
  subscriber: Scalars['Bytes'];
10888
+ /** The creator of the `index`. */
9490
10889
  publisher: Scalars['Bytes'];
10890
+ /** An arbitrary uint32 value used to allow a publisher to create multiple indexes for a specific `token`. */
9491
10891
  indexId: Scalars['BigInt'];
9492
10892
  units: Scalars['BigInt'];
9493
10893
  userData: Scalars['Bytes'];
@@ -9521,6 +10921,14 @@ export type SubscriptionUnitsUpdatedEvent_Filter = {
9521
10921
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
9522
10922
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
9523
10923
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
10924
+ gasUsed?: Maybe<Scalars['BigInt']>;
10925
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
10926
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
10927
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
10928
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
10929
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
10930
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
10931
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
9524
10932
  timestamp?: Maybe<Scalars['BigInt']>;
9525
10933
  timestamp_not?: Maybe<Scalars['BigInt']>;
9526
10934
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -9673,6 +11081,7 @@ export declare enum SubscriptionUnitsUpdatedEvent_OrderBy {
9673
11081
  Id = "id",
9674
11082
  TransactionHash = "transactionHash",
9675
11083
  GasPrice = "gasPrice",
11084
+ GasUsed = "gasUsed",
9676
11085
  Timestamp = "timestamp",
9677
11086
  Name = "name",
9678
11087
  Addresses = "addresses",
@@ -9686,16 +11095,29 @@ export declare enum SubscriptionUnitsUpdatedEvent_OrderBy {
9686
11095
  Units = "units",
9687
11096
  UserData = "userData",
9688
11097
  OldUnits = "oldUnits",
9689
- Subscription = "subscription"
11098
+ Subscription = "subscription",
11099
+ Subscription__id = "subscription__id",
11100
+ Subscription__createdAtTimestamp = "subscription__createdAtTimestamp",
11101
+ Subscription__createdAtBlockNumber = "subscription__createdAtBlockNumber",
11102
+ Subscription__updatedAtTimestamp = "subscription__updatedAtTimestamp",
11103
+ Subscription__updatedAtBlockNumber = "subscription__updatedAtBlockNumber",
11104
+ Subscription__approved = "subscription__approved",
11105
+ Subscription__units = "subscription__units",
11106
+ Subscription__totalAmountReceivedUntilUpdatedAt = "subscription__totalAmountReceivedUntilUpdatedAt",
11107
+ Subscription__indexValueUntilUpdatedAt = "subscription__indexValueUntilUpdatedAt"
9690
11108
  }
9691
11109
  export type SuperTokenCreatedEvent = Event & {
9692
11110
  __typename?: 'SuperTokenCreatedEvent';
9693
11111
  id: Scalars['ID'];
9694
11112
  transactionHash: Scalars['Bytes'];
9695
11113
  gasPrice: Scalars['BigInt'];
11114
+ gasUsed: Scalars['BigInt'];
9696
11115
  timestamp: Scalars['BigInt'];
9697
11116
  name: Scalars['String'];
9698
- /** Holds the token address. */
11117
+ /**
11118
+ * Contains the addresses that were impacted by this event:
11119
+ * addresses[0] = `token` (superToken)
11120
+ */
9699
11121
  addresses: Array<Scalars['Bytes']>;
9700
11122
  blockNumber: Scalars['BigInt'];
9701
11123
  logIndex: Scalars['BigInt'];
@@ -9729,6 +11151,14 @@ export type SuperTokenCreatedEvent_Filter = {
9729
11151
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
9730
11152
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
9731
11153
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
11154
+ gasUsed?: Maybe<Scalars['BigInt']>;
11155
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
11156
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
11157
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
11158
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
11159
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
11160
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
11161
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
9732
11162
  timestamp?: Maybe<Scalars['BigInt']>;
9733
11163
  timestamp_not?: Maybe<Scalars['BigInt']>;
9734
11164
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -9806,6 +11236,7 @@ export declare enum SuperTokenCreatedEvent_OrderBy {
9806
11236
  Id = "id",
9807
11237
  TransactionHash = "transactionHash",
9808
11238
  GasPrice = "gasPrice",
11239
+ GasUsed = "gasUsed",
9809
11240
  Timestamp = "timestamp",
9810
11241
  Name = "name",
9811
11242
  Addresses = "addresses",
@@ -9819,6 +11250,7 @@ export type SuperTokenFactoryUpdatedEvent = Event & {
9819
11250
  id: Scalars['ID'];
9820
11251
  transactionHash: Scalars['Bytes'];
9821
11252
  gasPrice: Scalars['BigInt'];
11253
+ gasUsed: Scalars['BigInt'];
9822
11254
  timestamp: Scalars['BigInt'];
9823
11255
  name: Scalars['String'];
9824
11256
  /** Empty addresses array. */
@@ -9855,6 +11287,14 @@ export type SuperTokenFactoryUpdatedEvent_Filter = {
9855
11287
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
9856
11288
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
9857
11289
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
11290
+ gasUsed?: Maybe<Scalars['BigInt']>;
11291
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
11292
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
11293
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
11294
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
11295
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
11296
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
11297
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
9858
11298
  timestamp?: Maybe<Scalars['BigInt']>;
9859
11299
  timestamp_not?: Maybe<Scalars['BigInt']>;
9860
11300
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -9932,6 +11372,7 @@ export declare enum SuperTokenFactoryUpdatedEvent_OrderBy {
9932
11372
  Id = "id",
9933
11373
  TransactionHash = "transactionHash",
9934
11374
  GasPrice = "gasPrice",
11375
+ GasUsed = "gasUsed",
9935
11376
  Timestamp = "timestamp",
9936
11377
  Name = "name",
9937
11378
  Addresses = "addresses",
@@ -9945,6 +11386,7 @@ export type SuperTokenLogicCreatedEvent = Event & {
9945
11386
  id: Scalars['ID'];
9946
11387
  transactionHash: Scalars['Bytes'];
9947
11388
  gasPrice: Scalars['BigInt'];
11389
+ gasUsed: Scalars['BigInt'];
9948
11390
  timestamp: Scalars['BigInt'];
9949
11391
  name: Scalars['String'];
9950
11392
  /** Empty addresses array. */
@@ -9981,6 +11423,14 @@ export type SuperTokenLogicCreatedEvent_Filter = {
9981
11423
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
9982
11424
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
9983
11425
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
11426
+ gasUsed?: Maybe<Scalars['BigInt']>;
11427
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
11428
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
11429
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
11430
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
11431
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
11432
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
11433
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
9984
11434
  timestamp?: Maybe<Scalars['BigInt']>;
9985
11435
  timestamp_not?: Maybe<Scalars['BigInt']>;
9986
11436
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -10058,6 +11508,7 @@ export declare enum SuperTokenLogicCreatedEvent_OrderBy {
10058
11508
  Id = "id",
10059
11509
  TransactionHash = "transactionHash",
10060
11510
  GasPrice = "gasPrice",
11511
+ GasUsed = "gasUsed",
10061
11512
  Timestamp = "timestamp",
10062
11513
  Name = "name",
10063
11514
  Addresses = "addresses",
@@ -10071,6 +11522,7 @@ export type SuperTokenLogicUpdatedEvent = Event & {
10071
11522
  id: Scalars['ID'];
10072
11523
  transactionHash: Scalars['Bytes'];
10073
11524
  gasPrice: Scalars['BigInt'];
11525
+ gasUsed: Scalars['BigInt'];
10074
11526
  timestamp: Scalars['BigInt'];
10075
11527
  name: Scalars['String'];
10076
11528
  /** Empty addresses array. */
@@ -10108,6 +11560,14 @@ export type SuperTokenLogicUpdatedEvent_Filter = {
10108
11560
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
10109
11561
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
10110
11562
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
11563
+ gasUsed?: Maybe<Scalars['BigInt']>;
11564
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
11565
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
11566
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
11567
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
11568
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
11569
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
11570
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
10111
11571
  timestamp?: Maybe<Scalars['BigInt']>;
10112
11572
  timestamp_not?: Maybe<Scalars['BigInt']>;
10113
11573
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -10195,6 +11655,7 @@ export declare enum SuperTokenLogicUpdatedEvent_OrderBy {
10195
11655
  Id = "id",
10196
11656
  TransactionHash = "transactionHash",
10197
11657
  GasPrice = "gasPrice",
11658
+ GasUsed = "gasUsed",
10198
11659
  Timestamp = "timestamp",
10199
11660
  Name = "name",
10200
11661
  Addresses = "addresses",
@@ -10204,10 +11665,7 @@ export declare enum SuperTokenLogicUpdatedEvent_OrderBy {
10204
11665
  Token = "token",
10205
11666
  Code = "code"
10206
11667
  }
10207
- /**
10208
- * Token: A higher order entity created for super tokens that are "valid" (tokens that have
10209
- * Superfluid's host contract address set as the host).
10210
- */
11668
+ /** Token: A higher order entity created for super tokens (and underlying tokens) that are "valid" (tokens that have Superfluid's host contract address set as the host). */
10211
11669
  export type Token = {
10212
11670
  __typename?: 'Token';
10213
11671
  /** ID: the token address */
@@ -10218,16 +11676,13 @@ export type Token = {
10218
11676
  name: Scalars['String'];
10219
11677
  symbol: Scalars['String'];
10220
11678
  isSuperToken: Scalars['Boolean'];
10221
- /** This indicates whether the token is a NativeAssetSuperToken. */
11679
+ /** A boolean indicating whether the token is a NativeAssetSuperToken. */
10222
11680
  isNativeAssetSuperToken: Scalars['Boolean'];
10223
- /** This indicates whether the token is a part of our resolver list. */
11681
+ /** A boolean indicating whether the token is a part of our resolver list. */
10224
11682
  isListed: Scalars['Boolean'];
10225
- /** The address of the underlying ERC20 token. */
11683
+ /** The address of the underlying ERC20 token (zero address for non-ERC20WrapperSuperToken's) */
10226
11684
  underlyingAddress: Scalars['Bytes'];
10227
- /**
10228
- * The underlying ERC20 token for a SuperToken or
10229
- * null for a regular ERC20 token.
10230
- */
11685
+ /** The underlying ERC20 token for a ERC20WrapperSuperToken otherwise null. */
10231
11686
  underlyingToken?: Maybe<Token>;
10232
11687
  };
10233
11688
  export type TokenDowngradedEvent = Event & {
@@ -10236,9 +11691,14 @@ export type TokenDowngradedEvent = Event & {
10236
11691
  account: Account;
10237
11692
  transactionHash: Scalars['Bytes'];
10238
11693
  gasPrice: Scalars['BigInt'];
11694
+ gasUsed: Scalars['BigInt'];
10239
11695
  timestamp: Scalars['BigInt'];
10240
11696
  name: Scalars['String'];
10241
- /** Holds the token and account addresses. */
11697
+ /**
11698
+ * Contains the addresses that were impacted by this event:
11699
+ * addresses[0] = `token` (superToken)
11700
+ * addresses[1] = `account`
11701
+ */
10242
11702
  addresses: Array<Scalars['Bytes']>;
10243
11703
  blockNumber: Scalars['BigInt'];
10244
11704
  logIndex: Scalars['BigInt'];
@@ -10294,6 +11754,14 @@ export type TokenDowngradedEvent_Filter = {
10294
11754
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
10295
11755
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
10296
11756
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
11757
+ gasUsed?: Maybe<Scalars['BigInt']>;
11758
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
11759
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
11760
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
11761
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
11762
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
11763
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
11764
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
10297
11765
  timestamp?: Maybe<Scalars['BigInt']>;
10298
11766
  timestamp_not?: Maybe<Scalars['BigInt']>;
10299
11767
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -10378,8 +11846,15 @@ export type TokenDowngradedEvent_Filter = {
10378
11846
  export declare enum TokenDowngradedEvent_OrderBy {
10379
11847
  Id = "id",
10380
11848
  Account = "account",
11849
+ Account__id = "account__id",
11850
+ Account__createdAtTimestamp = "account__createdAtTimestamp",
11851
+ Account__createdAtBlockNumber = "account__createdAtBlockNumber",
11852
+ Account__updatedAtTimestamp = "account__updatedAtTimestamp",
11853
+ Account__updatedAtBlockNumber = "account__updatedAtBlockNumber",
11854
+ Account__isSuperApp = "account__isSuperApp",
10381
11855
  TransactionHash = "transactionHash",
10382
11856
  GasPrice = "gasPrice",
11857
+ GasUsed = "gasUsed",
10383
11858
  Timestamp = "timestamp",
10384
11859
  Name = "name",
10385
11860
  Addresses = "addresses",
@@ -10389,28 +11864,22 @@ export declare enum TokenDowngradedEvent_OrderBy {
10389
11864
  Token = "token",
10390
11865
  Amount = "amount"
10391
11866
  }
10392
- /** TokenStatistic: An aggregate entity which aggregates data of a single `token`. */
11867
+ /** TokenStatistic: An aggregate entity which contains aggregate data for `token`. */
10393
11868
  export type TokenStatistic = {
10394
11869
  __typename?: 'TokenStatistic';
10395
- /** id: token address */
11870
+ /** id: `token` (superToken) address */
10396
11871
  id: Scalars['ID'];
10397
11872
  updatedAtTimestamp: Scalars['BigInt'];
10398
11873
  updatedAtBlockNumber: Scalars['BigInt'];
10399
11874
  /** The total number of currently active `token` streams. */
10400
11875
  totalNumberOfActiveStreams: Scalars['Int'];
10401
- /** The all-time number of closed streams. */
11876
+ /** The count of closed streams for `token`. */
10402
11877
  totalNumberOfClosedStreams: Scalars['Int'];
10403
11878
  /** The total number of Indexes created with `token`. */
10404
11879
  totalNumberOfIndexes: Scalars['Int'];
10405
- /**
10406
- * The total number of "active" (has greater than 0 units and has distributed it at
10407
- * least once) Indexes created with `token`.
10408
- */
11880
+ /** The total number of "active" (has greater than 0 units and has distributed it at least once) Indexes created with `token`. */
10409
11881
  totalNumberOfActiveIndexes: Scalars['Int'];
10410
- /**
10411
- * The number of subscriptions which have units allocated to them
10412
- * created with Indexes that distribute `token`.
10413
- */
11882
+ /** The number of subscriptions which have units allocated to them created with Indexes that distribute `token`. */
10414
11883
  totalSubscriptionsWithUnits: Scalars['Int'];
10415
11884
  /** Counts all approved subscriptions whether or not they have units. */
10416
11885
  totalApprovedSubscriptions: Scalars['Int'];
@@ -10424,15 +11893,12 @@ export type TokenStatistic = {
10424
11893
  totalAmountTransferredUntilUpdatedAt: Scalars['BigInt'];
10425
11894
  /** The all-time total amount distributed until the `updatedAtTimestamp`/`updatedAtBlock`. */
10426
11895
  totalAmountDistributedUntilUpdatedAt: Scalars['BigInt'];
10427
- /**
10428
- * The total supply of the token - this is impacted by users upgrading/downgrading their
10429
- * tokens.
10430
- */
11896
+ /** The total supply of the token - this is impacted by users upgrading/downgrading their tokens. */
10431
11897
  totalSupply: Scalars['BigInt'];
10432
11898
  token: Token;
10433
11899
  tokenStatisticLogs: Array<TokenStatisticLog>;
10434
11900
  };
10435
- /** TokenStatistic: An aggregate entity which aggregates data of a single `token`. */
11901
+ /** TokenStatistic: An aggregate entity which contains aggregate data for `token`. */
10436
11902
  export type TokenStatisticTokenStatisticLogsArgs = {
10437
11903
  skip?: Maybe<Scalars['Int']>;
10438
11904
  first?: Maybe<Scalars['Int']>;
@@ -10440,7 +11906,7 @@ export type TokenStatisticTokenStatisticLogsArgs = {
10440
11906
  orderDirection?: Maybe<OrderDirection>;
10441
11907
  where?: Maybe<TokenStatisticLog_Filter>;
10442
11908
  };
10443
- /** TokenStatisticLog: Historical entries of TokenStatistic updates. */
11909
+ /** TokenStatisticLog: Historical entries of `TokenStatistic` updates. */
10444
11910
  export type TokenStatisticLog = {
10445
11911
  __typename?: 'TokenStatisticLog';
10446
11912
  id: Scalars['ID'];
@@ -10452,19 +11918,13 @@ export type TokenStatisticLog = {
10452
11918
  triggeredByEventName: Scalars['String'];
10453
11919
  /** The total number of currently active `token` streams. */
10454
11920
  totalNumberOfActiveStreams: Scalars['Int'];
10455
- /** The all-time number of closed streams. */
11921
+ /** The count of closed streams for `token`. */
10456
11922
  totalNumberOfClosedStreams: Scalars['Int'];
10457
11923
  /** The total number of Indexes created with `token`. */
10458
11924
  totalNumberOfIndexes: Scalars['Int'];
10459
- /**
10460
- * The total number of "active" (has greater than 0 units and has distributed it at
10461
- * least once) Indexes created with `token`.
10462
- */
11925
+ /** The total number of "active" (has greater than 0 units and has distributed it at least once) Indexes created with `token`. */
10463
11926
  totalNumberOfActiveIndexes: Scalars['Int'];
10464
- /**
10465
- * The number of subscriptions which have units allocated to them
10466
- * created with Indexes that distribute `token`.
10467
- */
11927
+ /** The number of subscriptions which have units allocated to them created with Indexes that distribute `token`. */
10468
11928
  totalSubscriptionsWithUnits: Scalars['Int'];
10469
11929
  /** Counts all approved subscriptions whether or not they have units. */
10470
11930
  totalApprovedSubscriptions: Scalars['Int'];
@@ -10472,16 +11932,13 @@ export type TokenStatisticLog = {
10472
11932
  totalDeposit: Scalars['BigInt'];
10473
11933
  /** The total outflow rate of the `token` (how much value is being moved). */
10474
11934
  totalOutflowRate: Scalars['BigInt'];
10475
- /** The all-time total amount streamed (outflows) until the `timestamp`/`block`. */
11935
+ /** The all-time total amount of `token` streamed (outflows) until the `timestamp`/`block`. */
10476
11936
  totalAmountStreamed: Scalars['BigInt'];
10477
- /** The all-time total amount transferred until the `timestamp`/`block`. */
11937
+ /** The all-time total amount of `token` transferred until the `timestamp`/`block`. */
10478
11938
  totalAmountTransferred: Scalars['BigInt'];
10479
- /** The all-time total amount distributed until the `timestamp`/`block`. */
11939
+ /** The all-time total amount of `token` distributed until the `timestamp`/`block`. */
10480
11940
  totalAmountDistributed: Scalars['BigInt'];
10481
- /**
10482
- * The total supply of the token - this is impacted by users upgrading/downgrading their
10483
- * tokens.
10484
- */
11941
+ /** The total supply of the token - this is impacted by users upgrading/downgrading their tokens. */
10485
11942
  totalSupply: Scalars['BigInt'];
10486
11943
  token: Token;
10487
11944
  tokenStatistic: TokenStatistic;
@@ -10721,7 +12178,32 @@ export declare enum TokenStatisticLog_OrderBy {
10721
12178
  TotalAmountDistributed = "totalAmountDistributed",
10722
12179
  TotalSupply = "totalSupply",
10723
12180
  Token = "token",
10724
- TokenStatistic = "tokenStatistic"
12181
+ Token__id = "token__id",
12182
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
12183
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
12184
+ Token__decimals = "token__decimals",
12185
+ Token__name = "token__name",
12186
+ Token__symbol = "token__symbol",
12187
+ Token__isSuperToken = "token__isSuperToken",
12188
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
12189
+ Token__isListed = "token__isListed",
12190
+ Token__underlyingAddress = "token__underlyingAddress",
12191
+ TokenStatistic = "tokenStatistic",
12192
+ TokenStatistic__id = "tokenStatistic__id",
12193
+ TokenStatistic__updatedAtTimestamp = "tokenStatistic__updatedAtTimestamp",
12194
+ TokenStatistic__updatedAtBlockNumber = "tokenStatistic__updatedAtBlockNumber",
12195
+ TokenStatistic__totalNumberOfActiveStreams = "tokenStatistic__totalNumberOfActiveStreams",
12196
+ TokenStatistic__totalNumberOfClosedStreams = "tokenStatistic__totalNumberOfClosedStreams",
12197
+ TokenStatistic__totalNumberOfIndexes = "tokenStatistic__totalNumberOfIndexes",
12198
+ TokenStatistic__totalNumberOfActiveIndexes = "tokenStatistic__totalNumberOfActiveIndexes",
12199
+ TokenStatistic__totalSubscriptionsWithUnits = "tokenStatistic__totalSubscriptionsWithUnits",
12200
+ TokenStatistic__totalApprovedSubscriptions = "tokenStatistic__totalApprovedSubscriptions",
12201
+ TokenStatistic__totalDeposit = "tokenStatistic__totalDeposit",
12202
+ TokenStatistic__totalOutflowRate = "tokenStatistic__totalOutflowRate",
12203
+ TokenStatistic__totalAmountStreamedUntilUpdatedAt = "tokenStatistic__totalAmountStreamedUntilUpdatedAt",
12204
+ TokenStatistic__totalAmountTransferredUntilUpdatedAt = "tokenStatistic__totalAmountTransferredUntilUpdatedAt",
12205
+ TokenStatistic__totalAmountDistributedUntilUpdatedAt = "tokenStatistic__totalAmountDistributedUntilUpdatedAt",
12206
+ TokenStatistic__totalSupply = "tokenStatistic__totalSupply"
10725
12207
  }
10726
12208
  export type TokenStatistic_Filter = {
10727
12209
  id?: Maybe<Scalars['ID']>;
@@ -10888,6 +12370,16 @@ export declare enum TokenStatistic_OrderBy {
10888
12370
  TotalAmountDistributedUntilUpdatedAt = "totalAmountDistributedUntilUpdatedAt",
10889
12371
  TotalSupply = "totalSupply",
10890
12372
  Token = "token",
12373
+ Token__id = "token__id",
12374
+ Token__createdAtTimestamp = "token__createdAtTimestamp",
12375
+ Token__createdAtBlockNumber = "token__createdAtBlockNumber",
12376
+ Token__decimals = "token__decimals",
12377
+ Token__name = "token__name",
12378
+ Token__symbol = "token__symbol",
12379
+ Token__isSuperToken = "token__isSuperToken",
12380
+ Token__isNativeAssetSuperToken = "token__isNativeAssetSuperToken",
12381
+ Token__isListed = "token__isListed",
12382
+ Token__underlyingAddress = "token__underlyingAddress",
10891
12383
  TokenStatisticLogs = "tokenStatisticLogs"
10892
12384
  }
10893
12385
  export type TokenUpgradedEvent = Event & {
@@ -10896,9 +12388,14 @@ export type TokenUpgradedEvent = Event & {
10896
12388
  account: Account;
10897
12389
  transactionHash: Scalars['Bytes'];
10898
12390
  gasPrice: Scalars['BigInt'];
12391
+ gasUsed: Scalars['BigInt'];
10899
12392
  timestamp: Scalars['BigInt'];
10900
12393
  name: Scalars['String'];
10901
- /** Holds the token and account addresses. */
12394
+ /**
12395
+ * Contains the addresses that were impacted by this event:
12396
+ * addresses[0] = `token` (superToken)
12397
+ * addresses[1] = `account`
12398
+ */
10902
12399
  addresses: Array<Scalars['Bytes']>;
10903
12400
  blockNumber: Scalars['BigInt'];
10904
12401
  logIndex: Scalars['BigInt'];
@@ -10954,6 +12451,14 @@ export type TokenUpgradedEvent_Filter = {
10954
12451
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
10955
12452
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
10956
12453
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
12454
+ gasUsed?: Maybe<Scalars['BigInt']>;
12455
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
12456
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
12457
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
12458
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
12459
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
12460
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
12461
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
10957
12462
  timestamp?: Maybe<Scalars['BigInt']>;
10958
12463
  timestamp_not?: Maybe<Scalars['BigInt']>;
10959
12464
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -11038,8 +12543,15 @@ export type TokenUpgradedEvent_Filter = {
11038
12543
  export declare enum TokenUpgradedEvent_OrderBy {
11039
12544
  Id = "id",
11040
12545
  Account = "account",
12546
+ Account__id = "account__id",
12547
+ Account__createdAtTimestamp = "account__createdAtTimestamp",
12548
+ Account__createdAtBlockNumber = "account__createdAtBlockNumber",
12549
+ Account__updatedAtTimestamp = "account__updatedAtTimestamp",
12550
+ Account__updatedAtBlockNumber = "account__updatedAtBlockNumber",
12551
+ Account__isSuperApp = "account__isSuperApp",
11041
12552
  TransactionHash = "transactionHash",
11042
12553
  GasPrice = "gasPrice",
12554
+ GasUsed = "gasUsed",
11043
12555
  Timestamp = "timestamp",
11044
12556
  Name = "name",
11045
12557
  Addresses = "addresses",
@@ -11181,16 +12693,32 @@ export declare enum Token_OrderBy {
11181
12693
  IsNativeAssetSuperToken = "isNativeAssetSuperToken",
11182
12694
  IsListed = "isListed",
11183
12695
  UnderlyingAddress = "underlyingAddress",
11184
- UnderlyingToken = "underlyingToken"
12696
+ UnderlyingToken = "underlyingToken",
12697
+ UnderlyingToken__id = "underlyingToken__id",
12698
+ UnderlyingToken__createdAtTimestamp = "underlyingToken__createdAtTimestamp",
12699
+ UnderlyingToken__createdAtBlockNumber = "underlyingToken__createdAtBlockNumber",
12700
+ UnderlyingToken__decimals = "underlyingToken__decimals",
12701
+ UnderlyingToken__name = "underlyingToken__name",
12702
+ UnderlyingToken__symbol = "underlyingToken__symbol",
12703
+ UnderlyingToken__isSuperToken = "underlyingToken__isSuperToken",
12704
+ UnderlyingToken__isNativeAssetSuperToken = "underlyingToken__isNativeAssetSuperToken",
12705
+ UnderlyingToken__isListed = "underlyingToken__isListed",
12706
+ UnderlyingToken__underlyingAddress = "underlyingToken__underlyingAddress"
11185
12707
  }
11186
12708
  export type TransferEvent = Event & {
11187
12709
  __typename?: 'TransferEvent';
11188
12710
  id: Scalars['ID'];
11189
12711
  transactionHash: Scalars['Bytes'];
11190
12712
  gasPrice: Scalars['BigInt'];
12713
+ gasUsed: Scalars['BigInt'];
11191
12714
  timestamp: Scalars['BigInt'];
11192
12715
  name: Scalars['String'];
11193
- /** Holds the token, from and to addresses. */
12716
+ /**
12717
+ * Contains the addresses that were impacted by this event:
12718
+ * addresses[0] = `token` (superToken)
12719
+ * addresses[1] = `from`
12720
+ * addresses[2] = `to`
12721
+ */
11194
12722
  addresses: Array<Scalars['Bytes']>;
11195
12723
  blockNumber: Scalars['BigInt'];
11196
12724
  logIndex: Scalars['BigInt'];
@@ -11227,6 +12755,14 @@ export type TransferEvent_Filter = {
11227
12755
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
11228
12756
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
11229
12757
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
12758
+ gasUsed?: Maybe<Scalars['BigInt']>;
12759
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
12760
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
12761
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
12762
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
12763
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
12764
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
12765
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
11230
12766
  timestamp?: Maybe<Scalars['BigInt']>;
11231
12767
  timestamp_not?: Maybe<Scalars['BigInt']>;
11232
12768
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -11354,6 +12890,7 @@ export declare enum TransferEvent_OrderBy {
11354
12890
  Id = "id",
11355
12891
  TransactionHash = "transactionHash",
11356
12892
  GasPrice = "gasPrice",
12893
+ GasUsed = "gasUsed",
11357
12894
  Timestamp = "timestamp",
11358
12895
  Name = "name",
11359
12896
  Addresses = "addresses",
@@ -11361,7 +12898,19 @@ export declare enum TransferEvent_OrderBy {
11361
12898
  LogIndex = "logIndex",
11362
12899
  Order = "order",
11363
12900
  From = "from",
12901
+ From__id = "from__id",
12902
+ From__createdAtTimestamp = "from__createdAtTimestamp",
12903
+ From__createdAtBlockNumber = "from__createdAtBlockNumber",
12904
+ From__updatedAtTimestamp = "from__updatedAtTimestamp",
12905
+ From__updatedAtBlockNumber = "from__updatedAtBlockNumber",
12906
+ From__isSuperApp = "from__isSuperApp",
11364
12907
  To = "to",
12908
+ To__id = "to__id",
12909
+ To__createdAtTimestamp = "to__createdAtTimestamp",
12910
+ To__createdAtBlockNumber = "to__createdAtBlockNumber",
12911
+ To__updatedAtTimestamp = "to__updatedAtTimestamp",
12912
+ To__updatedAtBlockNumber = "to__updatedAtBlockNumber",
12913
+ To__isSuperApp = "to__isSuperApp",
11365
12914
  Value = "value",
11366
12915
  Token = "token"
11367
12916
  }
@@ -11370,6 +12919,7 @@ export type TrustedForwarderChangedEvent = Event & {
11370
12919
  id: Scalars['ID'];
11371
12920
  transactionHash: Scalars['Bytes'];
11372
12921
  gasPrice: Scalars['BigInt'];
12922
+ gasUsed: Scalars['BigInt'];
11373
12923
  timestamp: Scalars['BigInt'];
11374
12924
  name: Scalars['String'];
11375
12925
  /** The address of the governance contract the event was emitted from. */
@@ -11412,6 +12962,14 @@ export type TrustedForwarderChangedEvent_Filter = {
11412
12962
  gasPrice_lte?: Maybe<Scalars['BigInt']>;
11413
12963
  gasPrice_in?: Maybe<Array<Scalars['BigInt']>>;
11414
12964
  gasPrice_not_in?: Maybe<Array<Scalars['BigInt']>>;
12965
+ gasUsed?: Maybe<Scalars['BigInt']>;
12966
+ gasUsed_not?: Maybe<Scalars['BigInt']>;
12967
+ gasUsed_gt?: Maybe<Scalars['BigInt']>;
12968
+ gasUsed_lt?: Maybe<Scalars['BigInt']>;
12969
+ gasUsed_gte?: Maybe<Scalars['BigInt']>;
12970
+ gasUsed_lte?: Maybe<Scalars['BigInt']>;
12971
+ gasUsed_in?: Maybe<Array<Scalars['BigInt']>>;
12972
+ gasUsed_not_in?: Maybe<Array<Scalars['BigInt']>>;
11415
12973
  timestamp?: Maybe<Scalars['BigInt']>;
11416
12974
  timestamp_not?: Maybe<Scalars['BigInt']>;
11417
12975
  timestamp_gt?: Maybe<Scalars['BigInt']>;
@@ -11527,6 +13085,7 @@ export declare enum TrustedForwarderChangedEvent_OrderBy {
11527
13085
  Id = "id",
11528
13086
  TransactionHash = "transactionHash",
11529
13087
  GasPrice = "gasPrice",
13088
+ GasUsed = "gasUsed",
11530
13089
  Timestamp = "timestamp",
11531
13090
  Name = "name",
11532
13091
  GovernanceAddress = "governanceAddress",