diff --git a/packages/sdk-core/CHANGELOG.md b/packages/sdk-core/CHANGELOG.md index 0191f309fe..67cafc097c 100644 --- a/packages/sdk-core/CHANGELOG.md +++ b/packages/sdk-core/CHANGELOG.md @@ -6,6 +6,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] +### Added +- Added `getTotalAmountReceivedByMember` + ### Changed - Map the name from subgraph to an unknown event, instead of "\_Unknown". - Don't lock metadata version to a specific version, use semver (^). diff --git a/packages/sdk-core/src/SuperfluidPool.ts b/packages/sdk-core/src/SuperfluidPool.ts index 62312f1cfe..dbe642aac9 100644 --- a/packages/sdk-core/src/SuperfluidPool.ts +++ b/packages/sdk-core/src/SuperfluidPool.ts @@ -13,6 +13,7 @@ import { GetClaimableParams, GetDisconnectedBalanceParams, GetMemberFlowRateParams, + GetTotalAmountReceivedByMemberParams, GetUnitsParams, SuperfluidPoolDecreaseAllowanceParams, SuperfluidPoolIncreaseAllowanceParams, @@ -236,6 +237,31 @@ export default class SuperfluidPoolClass { } }; + /** + * Retrieves the flow rate for a specific member. + * @param member The member's address. + * @param providerOrSigner A provider or signer object + * @returns The total amount received by the member. + */ + getTotalAmountReceivedByMember = async ( + params: GetTotalAmountReceivedByMemberParams + ): Promise => { + try { + return ( + await this.contract + .connect(params.providerOrSigner) + .getTotalAmountReceivedByMember(params.member) + ).toString(); + } catch (err) { + throw new SFError({ + type: "SUPERFLUID_POOL_READ", + message: + "There was an error getting the total amount received by member.", + cause: err, + }); + } + }; + /** * Retrieves the claimable amount for a specific member and time. * @param member The member's address. diff --git a/packages/sdk-core/src/interfaces.ts b/packages/sdk-core/src/interfaces.ts index 5207ecc4f2..9093b9ed39 100644 --- a/packages/sdk-core/src/interfaces.ts +++ b/packages/sdk-core/src/interfaces.ts @@ -778,6 +778,11 @@ export interface GetMemberFlowRateParams { readonly providerOrSigner: ethers.providers.Provider | ethers.Signer; } +export interface GetTotalAmountReceivedByMemberParams { + readonly member: string; + readonly providerOrSigner: ethers.providers.Provider | ethers.Signer; +} + export interface ClaimAllForMemberParams { readonly member: string; readonly signer: ethers.Signer; diff --git a/packages/sdk-core/src/subgraph/schema.graphql b/packages/sdk-core/src/subgraph/schema.graphql index 7d73de9331..7c93eab6f2 100644 --- a/packages/sdk-core/src/subgraph/schema.graphql +++ b/packages/sdk-core/src/subgraph/schema.graphql @@ -21,6 +21,9 @@ type _Block_ { """Integer representation of the timestamp stored in blocks for the chain""" timestamp: Int + + """The hash of the parent block""" + parentHash: Bytes } """The type for the top-level _meta field""" @@ -227,23 +230,12 @@ type AccountTokenSnapshot { """ activeGDAOutgoingStreamCount: Int! - """ - The count of active incoming streams to this account for all agreements. - - """ - activeIncomingStreamCount: Int! - """ The count of active incoming streams to this account for the CFA. + GDA incoming streams are *NOT* counted here. """ - activeCFAIncomingStreamCount: Int! - - """ - The count of active incoming streams to this account for the GDA. - - """ - activeGDAIncomingStreamCount: Int! + activeIncomingStreamCount: Int! """ The count of closed streams by `account`, both incoming and outgoing for all agreements. @@ -281,23 +273,12 @@ type AccountTokenSnapshot { """ inactiveGDAOutgoingStreamCount: Int! - """ - The count of closed incoming streams by `account` for all agreements. - - """ - inactiveIncomingStreamCount: Int! - """ The count of closed incoming streams by `account` for the CFA. + Close incoming GDA streams are *NOT* counted here. """ - inactiveCFAIncomingStreamCount: Int! - - """ - The count of closed incoming streams by `account` for the GDA. - - """ - inactiveGDAIncomingStreamCount: Int! + inactiveIncomingStreamCount: Int! """ The current (as of updatedAt) number of subscriptions with units allocated to them tied to this `account`. @@ -350,6 +331,7 @@ type AccountTokenSnapshot { """ The total net flow rate of the `account` as of `updatedAtTimestamp`/`updatedAtBlock` for all flow agreements. This can be obtained by: `totalInflowRate - totalOutflowRate`. + NOTE: this property will NOT be 100% accurate all the time for receivers of GDA flows. """ totalNetFlowRate: BigInt! @@ -360,29 +342,12 @@ type AccountTokenSnapshot { """ totalCFANetFlowRate: BigInt! - """ - The total net flow rate of the `account` as of `updatedAtTimestamp`/`updatedAtBlock` for the GDA. - - """ - totalGDANetFlowRate: BigInt! - - """ - The total inflow rate (receive flowRate per second) of the `account` for all flow agreements. - - """ - totalInflowRate: BigInt! - """ The total inflow rate (receive flowRate per second) of the `account` for the CFA. + GDA inflow rate is *NOT* included here. """ - totalCFAInflowRate: BigInt! - - """ - The total inflow rate (receive flowRate per second) of the `account` for the GDA. - - """ - totalGDAInflowRate: BigInt! + totalInflowRate: BigInt! """ The total outflow rate (send flowrate per second) of the `account` for all flow agreements. @@ -402,24 +367,11 @@ type AccountTokenSnapshot { """ totalGDAOutflowRate: BigInt! - """ - The total amount of `token` streamed into this `account` until the - `updatedAtTimestamp`/`updatedAtBlock` for all flow agreements. - - """ - totalAmountStreamedInUntilUpdatedAt: BigInt! - """ The total amount of `token` streamed into this `account` until the `updatedAtTimestamp`/`updatedAtBlock` for the CFA. """ - totalCFAAmountStreamedInUntilUpdatedAt: BigInt! - - """ - The total amount of `token` streamed into this `account` until the `updatedAtTimestamp`/`updatedAtBlock` for the GDA. - - """ - totalGDAAmountStreamedInUntilUpdatedAt: BigInt! + totalAmountStreamedInUntilUpdatedAt: BigInt! """ The total amount of `token` streamed from this `account` until the @@ -434,12 +386,6 @@ type AccountTokenSnapshot { """ totalCFAAmountStreamedOutUntilUpdatedAt: BigInt! - """ - The total amount of `token` streamed from this `account` until the `updatedAtTimestamp`/`updatedAtBlock` for the GDA. - - """ - totalGDAAmountStreamedOutUntilUpdatedAt: BigInt! - """ The total amount of `token` streamed through this `account` until the `updatedAtTimestamp`/`updatedAtBlock` for all flow agreements. @@ -453,12 +399,6 @@ type AccountTokenSnapshot { """ totalCFAAmountStreamedUntilUpdatedAt: BigInt! - """ - The total amount of `token` streamed through this `account` until the `updatedAtTimestamp`/`updatedAtBlock` for the GDA. - - """ - totalGDAAmountStreamedUntilUpdatedAt: BigInt! - """ The total amount of `token` this `account` has transferred. @@ -563,22 +503,6 @@ input AccountTokenSnapshot_filter { activeIncomingStreamCount_lte: Int activeIncomingStreamCount_in: [Int!] activeIncomingStreamCount_not_in: [Int!] - activeCFAIncomingStreamCount: Int - activeCFAIncomingStreamCount_not: Int - activeCFAIncomingStreamCount_gt: Int - activeCFAIncomingStreamCount_lt: Int - activeCFAIncomingStreamCount_gte: Int - activeCFAIncomingStreamCount_lte: Int - activeCFAIncomingStreamCount_in: [Int!] - activeCFAIncomingStreamCount_not_in: [Int!] - activeGDAIncomingStreamCount: Int - activeGDAIncomingStreamCount_not: Int - activeGDAIncomingStreamCount_gt: Int - activeGDAIncomingStreamCount_lt: Int - activeGDAIncomingStreamCount_gte: Int - activeGDAIncomingStreamCount_lte: Int - activeGDAIncomingStreamCount_in: [Int!] - activeGDAIncomingStreamCount_not_in: [Int!] totalNumberOfClosedStreams: Int totalNumberOfClosedStreams_not: Int totalNumberOfClosedStreams_gt: Int @@ -635,22 +559,6 @@ input AccountTokenSnapshot_filter { inactiveIncomingStreamCount_lte: Int inactiveIncomingStreamCount_in: [Int!] inactiveIncomingStreamCount_not_in: [Int!] - inactiveCFAIncomingStreamCount: Int - inactiveCFAIncomingStreamCount_not: Int - inactiveCFAIncomingStreamCount_gt: Int - inactiveCFAIncomingStreamCount_lt: Int - inactiveCFAIncomingStreamCount_gte: Int - inactiveCFAIncomingStreamCount_lte: Int - inactiveCFAIncomingStreamCount_in: [Int!] - inactiveCFAIncomingStreamCount_not_in: [Int!] - inactiveGDAIncomingStreamCount: Int - inactiveGDAIncomingStreamCount_not: Int - inactiveGDAIncomingStreamCount_gt: Int - inactiveGDAIncomingStreamCount_lt: Int - inactiveGDAIncomingStreamCount_gte: Int - inactiveGDAIncomingStreamCount_lte: Int - inactiveGDAIncomingStreamCount_in: [Int!] - inactiveGDAIncomingStreamCount_not_in: [Int!] totalSubscriptionsWithUnits: Int totalSubscriptionsWithUnits_not: Int totalSubscriptionsWithUnits_gt: Int @@ -731,14 +639,6 @@ input AccountTokenSnapshot_filter { totalCFANetFlowRate_lte: BigInt totalCFANetFlowRate_in: [BigInt!] totalCFANetFlowRate_not_in: [BigInt!] - totalGDANetFlowRate: BigInt - totalGDANetFlowRate_not: BigInt - totalGDANetFlowRate_gt: BigInt - totalGDANetFlowRate_lt: BigInt - totalGDANetFlowRate_gte: BigInt - totalGDANetFlowRate_lte: BigInt - totalGDANetFlowRate_in: [BigInt!] - totalGDANetFlowRate_not_in: [BigInt!] totalInflowRate: BigInt totalInflowRate_not: BigInt totalInflowRate_gt: BigInt @@ -747,22 +647,6 @@ input AccountTokenSnapshot_filter { totalInflowRate_lte: BigInt totalInflowRate_in: [BigInt!] totalInflowRate_not_in: [BigInt!] - totalCFAInflowRate: BigInt - totalCFAInflowRate_not: BigInt - totalCFAInflowRate_gt: BigInt - totalCFAInflowRate_lt: BigInt - totalCFAInflowRate_gte: BigInt - totalCFAInflowRate_lte: BigInt - totalCFAInflowRate_in: [BigInt!] - totalCFAInflowRate_not_in: [BigInt!] - totalGDAInflowRate: BigInt - totalGDAInflowRate_not: BigInt - totalGDAInflowRate_gt: BigInt - totalGDAInflowRate_lt: BigInt - totalGDAInflowRate_gte: BigInt - totalGDAInflowRate_lte: BigInt - totalGDAInflowRate_in: [BigInt!] - totalGDAInflowRate_not_in: [BigInt!] totalOutflowRate: BigInt totalOutflowRate_not: BigInt totalOutflowRate_gt: BigInt @@ -795,22 +679,6 @@ input AccountTokenSnapshot_filter { totalAmountStreamedInUntilUpdatedAt_lte: BigInt totalAmountStreamedInUntilUpdatedAt_in: [BigInt!] totalAmountStreamedInUntilUpdatedAt_not_in: [BigInt!] - totalCFAAmountStreamedInUntilUpdatedAt: BigInt - totalCFAAmountStreamedInUntilUpdatedAt_not: BigInt - totalCFAAmountStreamedInUntilUpdatedAt_gt: BigInt - totalCFAAmountStreamedInUntilUpdatedAt_lt: BigInt - totalCFAAmountStreamedInUntilUpdatedAt_gte: BigInt - totalCFAAmountStreamedInUntilUpdatedAt_lte: BigInt - totalCFAAmountStreamedInUntilUpdatedAt_in: [BigInt!] - totalCFAAmountStreamedInUntilUpdatedAt_not_in: [BigInt!] - totalGDAAmountStreamedInUntilUpdatedAt: BigInt - totalGDAAmountStreamedInUntilUpdatedAt_not: BigInt - totalGDAAmountStreamedInUntilUpdatedAt_gt: BigInt - totalGDAAmountStreamedInUntilUpdatedAt_lt: BigInt - totalGDAAmountStreamedInUntilUpdatedAt_gte: BigInt - totalGDAAmountStreamedInUntilUpdatedAt_lte: BigInt - totalGDAAmountStreamedInUntilUpdatedAt_in: [BigInt!] - totalGDAAmountStreamedInUntilUpdatedAt_not_in: [BigInt!] totalAmountStreamedOutUntilUpdatedAt: BigInt totalAmountStreamedOutUntilUpdatedAt_not: BigInt totalAmountStreamedOutUntilUpdatedAt_gt: BigInt @@ -827,14 +695,6 @@ input AccountTokenSnapshot_filter { totalCFAAmountStreamedOutUntilUpdatedAt_lte: BigInt totalCFAAmountStreamedOutUntilUpdatedAt_in: [BigInt!] totalCFAAmountStreamedOutUntilUpdatedAt_not_in: [BigInt!] - totalGDAAmountStreamedOutUntilUpdatedAt: BigInt - totalGDAAmountStreamedOutUntilUpdatedAt_not: BigInt - totalGDAAmountStreamedOutUntilUpdatedAt_gt: BigInt - totalGDAAmountStreamedOutUntilUpdatedAt_lt: BigInt - totalGDAAmountStreamedOutUntilUpdatedAt_gte: BigInt - totalGDAAmountStreamedOutUntilUpdatedAt_lte: BigInt - totalGDAAmountStreamedOutUntilUpdatedAt_in: [BigInt!] - totalGDAAmountStreamedOutUntilUpdatedAt_not_in: [BigInt!] totalAmountStreamedUntilUpdatedAt: BigInt totalAmountStreamedUntilUpdatedAt_not: BigInt totalAmountStreamedUntilUpdatedAt_gt: BigInt @@ -851,14 +711,6 @@ input AccountTokenSnapshot_filter { totalCFAAmountStreamedUntilUpdatedAt_lte: BigInt totalCFAAmountStreamedUntilUpdatedAt_in: [BigInt!] totalCFAAmountStreamedUntilUpdatedAt_not_in: [BigInt!] - totalGDAAmountStreamedUntilUpdatedAt: BigInt - totalGDAAmountStreamedUntilUpdatedAt_not: BigInt - totalGDAAmountStreamedUntilUpdatedAt_gt: BigInt - totalGDAAmountStreamedUntilUpdatedAt_lt: BigInt - totalGDAAmountStreamedUntilUpdatedAt_gte: BigInt - totalGDAAmountStreamedUntilUpdatedAt_lte: BigInt - totalGDAAmountStreamedUntilUpdatedAt_in: [BigInt!] - totalGDAAmountStreamedUntilUpdatedAt_not_in: [BigInt!] totalAmountTransferredUntilUpdatedAt: BigInt totalAmountTransferredUntilUpdatedAt_not: BigInt totalAmountTransferredUntilUpdatedAt_gt: BigInt @@ -931,8 +783,6 @@ enum AccountTokenSnapshot_orderBy { activeCFAOutgoingStreamCount activeGDAOutgoingStreamCount activeIncomingStreamCount - activeCFAIncomingStreamCount - activeGDAIncomingStreamCount totalNumberOfClosedStreams totalCFANumberOfClosedStreams totalGDANumberOfClosedStreams @@ -940,8 +790,6 @@ enum AccountTokenSnapshot_orderBy { inactiveCFAOutgoingStreamCount inactiveGDAOutgoingStreamCount inactiveIncomingStreamCount - inactiveCFAIncomingStreamCount - inactiveGDAIncomingStreamCount totalSubscriptionsWithUnits totalApprovedSubscriptions totalMembershipsWithUnits @@ -952,22 +800,15 @@ enum AccountTokenSnapshot_orderBy { totalGDADeposit totalNetFlowRate totalCFANetFlowRate - totalGDANetFlowRate totalInflowRate - totalCFAInflowRate - totalGDAInflowRate totalOutflowRate totalCFAOutflowRate totalGDAOutflowRate totalAmountStreamedInUntilUpdatedAt - totalCFAAmountStreamedInUntilUpdatedAt - totalGDAAmountStreamedInUntilUpdatedAt totalAmountStreamedOutUntilUpdatedAt totalCFAAmountStreamedOutUntilUpdatedAt - totalGDAAmountStreamedOutUntilUpdatedAt totalAmountStreamedUntilUpdatedAt totalCFAAmountStreamedUntilUpdatedAt - totalGDAAmountStreamedUntilUpdatedAt totalAmountTransferredUntilUpdatedAt account account__id @@ -1052,18 +893,6 @@ type AccountTokenSnapshotLog { """ activeIncomingStreamCount: Int! - """ - The count of active incoming streams to this account for the CFA. - - """ - activeCFAIncomingStreamCount: Int! - - """ - The count of active incoming streams to this account for the GDA. - - """ - activeGDAIncomingStreamCount: Int! - """ The current (as of timestamp) count of closed streams for all agreements. @@ -1100,23 +929,12 @@ type AccountTokenSnapshotLog { """ inactiveGDAOutgoingStreamCount: Int! - """ - The count of closed incoming streams by `account` for all agreements. - - """ - inactiveIncomingStreamCount: Int! - """ The count of closed incoming streams by `account` for the CFA. + Close incoming GDA streams are *NOT* counted here. """ - inactiveCFAIncomingStreamCount: Int! - - """ - The count of closed incoming streams by `account` for the GDA. - - """ - inactiveGDAIncomingStreamCount: Int! + inactiveIncomingStreamCount: Int! """ The current (as of timestamp) number of subscriptions with units allocated to them tied to this `account`. @@ -1175,36 +993,16 @@ type AccountTokenSnapshotLog { """ The total (as of timestamp) net flow rate of the `account` as of `timestamp`/`block` for the CFA. - This can be obtained by: `totalCFAInflowRate - totalCFAOutflowRate` """ totalCFANetFlowRate: BigInt! - """ - The total (as of timestamp) net flow rate of the `account` as of `timestamp`/`block` for the GDA. - This can be obtained by: `totalGDAInflowRate - totalGDAOutflowRate` - - """ - totalGDANetFlowRate: BigInt! - """ The total (as of timestamp) inflow rate (receive flowRate per second) of the `account`. """ totalInflowRate: BigInt! - """ - The total (as of timestamp) inflow rate (receive flowRate per second) of the `account` for the CFA. - - """ - totalCFAInflowRate: BigInt! - - """ - The total (as of timestamp) inflow rate (receive flowRate per second) of the `account` for the GDA. - - """ - totalGDAInflowRate: BigInt! - """ The total (as of timestamp) outflow rate (send flowrate per second) of the `account`. @@ -1229,18 +1027,6 @@ type AccountTokenSnapshotLog { """ totalAmountStreamedIn: BigInt! - """ - The total (as of timestamp) amount of `token` streamed into this `account` until the `timestamp`/`block` for the CFA. - - """ - totalCFAAmountStreamedIn: BigInt! - - """ - The total (as of timestamp) amount of `token` streamed into this `account` until the `timestamp`/`block` for the GDA. - - """ - totalGDAAmountStreamedIn: BigInt! - """ The total (as of timestamp) amount of `token` streamed from this `account` until the `timestamp`/`block`. @@ -1253,12 +1039,6 @@ type AccountTokenSnapshotLog { """ totalCFAAmountStreamedOut: BigInt! - """ - The total (as of timestamp) amount of `token` streamed from this `account` until the `timestamp`/`block` for the GDA. - - """ - totalGDAAmountStreamedOut: BigInt! - """ The total (as of timestamp) net amount of `token` streamed through this `account` until the `timestamp`/`block`. @@ -1272,13 +1052,6 @@ type AccountTokenSnapshotLog { """ totalCFAAmountStreamed: BigInt! - """ - The total (as of timestamp) net amount of `token` streamed through this - `account` until the `timestamp`/`block` for the GDA. - - """ - totalGDAAmountStreamed: BigInt! - """ The total (as of timestamp) amount of `token` this `account` has transferred out until the `timestamp`/`block`. @@ -1424,22 +1197,6 @@ input AccountTokenSnapshotLog_filter { activeIncomingStreamCount_lte: Int activeIncomingStreamCount_in: [Int!] activeIncomingStreamCount_not_in: [Int!] - activeCFAIncomingStreamCount: Int - activeCFAIncomingStreamCount_not: Int - activeCFAIncomingStreamCount_gt: Int - activeCFAIncomingStreamCount_lt: Int - activeCFAIncomingStreamCount_gte: Int - activeCFAIncomingStreamCount_lte: Int - activeCFAIncomingStreamCount_in: [Int!] - activeCFAIncomingStreamCount_not_in: [Int!] - activeGDAIncomingStreamCount: Int - activeGDAIncomingStreamCount_not: Int - activeGDAIncomingStreamCount_gt: Int - activeGDAIncomingStreamCount_lt: Int - activeGDAIncomingStreamCount_gte: Int - activeGDAIncomingStreamCount_lte: Int - activeGDAIncomingStreamCount_in: [Int!] - activeGDAIncomingStreamCount_not_in: [Int!] totalNumberOfClosedStreams: Int totalNumberOfClosedStreams_not: Int totalNumberOfClosedStreams_gt: Int @@ -1496,22 +1253,6 @@ input AccountTokenSnapshotLog_filter { inactiveIncomingStreamCount_lte: Int inactiveIncomingStreamCount_in: [Int!] inactiveIncomingStreamCount_not_in: [Int!] - inactiveCFAIncomingStreamCount: Int - inactiveCFAIncomingStreamCount_not: Int - inactiveCFAIncomingStreamCount_gt: Int - inactiveCFAIncomingStreamCount_lt: Int - inactiveCFAIncomingStreamCount_gte: Int - inactiveCFAIncomingStreamCount_lte: Int - inactiveCFAIncomingStreamCount_in: [Int!] - inactiveCFAIncomingStreamCount_not_in: [Int!] - inactiveGDAIncomingStreamCount: Int - inactiveGDAIncomingStreamCount_not: Int - inactiveGDAIncomingStreamCount_gt: Int - inactiveGDAIncomingStreamCount_lt: Int - inactiveGDAIncomingStreamCount_gte: Int - inactiveGDAIncomingStreamCount_lte: Int - inactiveGDAIncomingStreamCount_in: [Int!] - inactiveGDAIncomingStreamCount_not_in: [Int!] totalSubscriptionsWithUnits: Int totalSubscriptionsWithUnits_not: Int totalSubscriptionsWithUnits_gt: Int @@ -1592,14 +1333,6 @@ input AccountTokenSnapshotLog_filter { totalCFANetFlowRate_lte: BigInt totalCFANetFlowRate_in: [BigInt!] totalCFANetFlowRate_not_in: [BigInt!] - totalGDANetFlowRate: BigInt - totalGDANetFlowRate_not: BigInt - totalGDANetFlowRate_gt: BigInt - totalGDANetFlowRate_lt: BigInt - totalGDANetFlowRate_gte: BigInt - totalGDANetFlowRate_lte: BigInt - totalGDANetFlowRate_in: [BigInt!] - totalGDANetFlowRate_not_in: [BigInt!] totalInflowRate: BigInt totalInflowRate_not: BigInt totalInflowRate_gt: BigInt @@ -1608,22 +1341,6 @@ input AccountTokenSnapshotLog_filter { totalInflowRate_lte: BigInt totalInflowRate_in: [BigInt!] totalInflowRate_not_in: [BigInt!] - totalCFAInflowRate: BigInt - totalCFAInflowRate_not: BigInt - totalCFAInflowRate_gt: BigInt - totalCFAInflowRate_lt: BigInt - totalCFAInflowRate_gte: BigInt - totalCFAInflowRate_lte: BigInt - totalCFAInflowRate_in: [BigInt!] - totalCFAInflowRate_not_in: [BigInt!] - totalGDAInflowRate: BigInt - totalGDAInflowRate_not: BigInt - totalGDAInflowRate_gt: BigInt - totalGDAInflowRate_lt: BigInt - totalGDAInflowRate_gte: BigInt - totalGDAInflowRate_lte: BigInt - totalGDAInflowRate_in: [BigInt!] - totalGDAInflowRate_not_in: [BigInt!] totalOutflowRate: BigInt totalOutflowRate_not: BigInt totalOutflowRate_gt: BigInt @@ -1656,22 +1373,6 @@ input AccountTokenSnapshotLog_filter { totalAmountStreamedIn_lte: BigInt totalAmountStreamedIn_in: [BigInt!] totalAmountStreamedIn_not_in: [BigInt!] - totalCFAAmountStreamedIn: BigInt - totalCFAAmountStreamedIn_not: BigInt - totalCFAAmountStreamedIn_gt: BigInt - totalCFAAmountStreamedIn_lt: BigInt - totalCFAAmountStreamedIn_gte: BigInt - totalCFAAmountStreamedIn_lte: BigInt - totalCFAAmountStreamedIn_in: [BigInt!] - totalCFAAmountStreamedIn_not_in: [BigInt!] - totalGDAAmountStreamedIn: BigInt - totalGDAAmountStreamedIn_not: BigInt - totalGDAAmountStreamedIn_gt: BigInt - totalGDAAmountStreamedIn_lt: BigInt - totalGDAAmountStreamedIn_gte: BigInt - totalGDAAmountStreamedIn_lte: BigInt - totalGDAAmountStreamedIn_in: [BigInt!] - totalGDAAmountStreamedIn_not_in: [BigInt!] totalAmountStreamedOut: BigInt totalAmountStreamedOut_not: BigInt totalAmountStreamedOut_gt: BigInt @@ -1688,14 +1389,6 @@ input AccountTokenSnapshotLog_filter { totalCFAAmountStreamedOut_lte: BigInt totalCFAAmountStreamedOut_in: [BigInt!] totalCFAAmountStreamedOut_not_in: [BigInt!] - totalGDAAmountStreamedOut: BigInt - totalGDAAmountStreamedOut_not: BigInt - totalGDAAmountStreamedOut_gt: BigInt - totalGDAAmountStreamedOut_lt: BigInt - totalGDAAmountStreamedOut_gte: BigInt - totalGDAAmountStreamedOut_lte: BigInt - totalGDAAmountStreamedOut_in: [BigInt!] - totalGDAAmountStreamedOut_not_in: [BigInt!] totalAmountStreamed: BigInt totalAmountStreamed_not: BigInt totalAmountStreamed_gt: BigInt @@ -1712,14 +1405,6 @@ input AccountTokenSnapshotLog_filter { totalCFAAmountStreamed_lte: BigInt totalCFAAmountStreamed_in: [BigInt!] totalCFAAmountStreamed_not_in: [BigInt!] - totalGDAAmountStreamed: BigInt - totalGDAAmountStreamed_not: BigInt - totalGDAAmountStreamed_gt: BigInt - totalGDAAmountStreamed_lt: BigInt - totalGDAAmountStreamed_gte: BigInt - totalGDAAmountStreamed_lte: BigInt - totalGDAAmountStreamed_in: [BigInt!] - totalGDAAmountStreamed_not_in: [BigInt!] totalAmountTransferred: BigInt totalAmountTransferred_not: BigInt totalAmountTransferred_gt: BigInt @@ -1814,8 +1499,6 @@ enum AccountTokenSnapshotLog_orderBy { activeCFAOutgoingStreamCount activeGDAOutgoingStreamCount activeIncomingStreamCount - activeCFAIncomingStreamCount - activeGDAIncomingStreamCount totalNumberOfClosedStreams totalCFANumberOfClosedStreams totalGDANumberOfClosedStreams @@ -1823,8 +1506,6 @@ enum AccountTokenSnapshotLog_orderBy { inactiveCFAOutgoingStreamCount inactiveGDAOutgoingStreamCount inactiveIncomingStreamCount - inactiveCFAIncomingStreamCount - inactiveGDAIncomingStreamCount totalSubscriptionsWithUnits totalApprovedSubscriptions totalMembershipsWithUnits @@ -1835,22 +1516,15 @@ enum AccountTokenSnapshotLog_orderBy { totalGDADeposit totalNetFlowRate totalCFANetFlowRate - totalGDANetFlowRate totalInflowRate - totalCFAInflowRate - totalGDAInflowRate totalOutflowRate totalCFAOutflowRate totalGDAOutflowRate totalAmountStreamedIn - totalCFAAmountStreamedIn - totalGDAAmountStreamedIn totalAmountStreamedOut totalCFAAmountStreamedOut - totalGDAAmountStreamedOut totalAmountStreamed totalCFAAmountStreamed - totalGDAAmountStreamed totalAmountTransferred account account__id @@ -1883,8 +1557,6 @@ enum AccountTokenSnapshotLog_orderBy { accountTokenSnapshot__activeCFAOutgoingStreamCount accountTokenSnapshot__activeGDAOutgoingStreamCount accountTokenSnapshot__activeIncomingStreamCount - accountTokenSnapshot__activeCFAIncomingStreamCount - accountTokenSnapshot__activeGDAIncomingStreamCount accountTokenSnapshot__totalNumberOfClosedStreams accountTokenSnapshot__totalCFANumberOfClosedStreams accountTokenSnapshot__totalGDANumberOfClosedStreams @@ -1892,8 +1564,6 @@ enum AccountTokenSnapshotLog_orderBy { accountTokenSnapshot__inactiveCFAOutgoingStreamCount accountTokenSnapshot__inactiveGDAOutgoingStreamCount accountTokenSnapshot__inactiveIncomingStreamCount - accountTokenSnapshot__inactiveCFAIncomingStreamCount - accountTokenSnapshot__inactiveGDAIncomingStreamCount accountTokenSnapshot__totalSubscriptionsWithUnits accountTokenSnapshot__totalApprovedSubscriptions accountTokenSnapshot__totalMembershipsWithUnits @@ -1904,25 +1574,23 @@ enum AccountTokenSnapshotLog_orderBy { accountTokenSnapshot__totalGDADeposit accountTokenSnapshot__totalNetFlowRate accountTokenSnapshot__totalCFANetFlowRate - accountTokenSnapshot__totalGDANetFlowRate accountTokenSnapshot__totalInflowRate - accountTokenSnapshot__totalCFAInflowRate - accountTokenSnapshot__totalGDAInflowRate accountTokenSnapshot__totalOutflowRate accountTokenSnapshot__totalCFAOutflowRate accountTokenSnapshot__totalGDAOutflowRate accountTokenSnapshot__totalAmountStreamedInUntilUpdatedAt - accountTokenSnapshot__totalCFAAmountStreamedInUntilUpdatedAt - accountTokenSnapshot__totalGDAAmountStreamedInUntilUpdatedAt accountTokenSnapshot__totalAmountStreamedOutUntilUpdatedAt accountTokenSnapshot__totalCFAAmountStreamedOutUntilUpdatedAt - accountTokenSnapshot__totalGDAAmountStreamedOutUntilUpdatedAt accountTokenSnapshot__totalAmountStreamedUntilUpdatedAt accountTokenSnapshot__totalCFAAmountStreamedUntilUpdatedAt - accountTokenSnapshot__totalGDAAmountStreamedUntilUpdatedAt accountTokenSnapshot__totalAmountTransferredUntilUpdatedAt } +enum Aggregation_interval { + hour + day +} + type AgreementClassRegisteredEvent implements Event { id: ID! transactionHash: Bytes! @@ -1932,7 +1600,8 @@ type AgreementClassRegisteredEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `code` """ addresses: [Bytes!]! @@ -2087,7 +1756,8 @@ type AgreementClassUpdatedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `code` """ addresses: [Bytes!]! @@ -2800,7 +2470,8 @@ type AppRegisteredEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `app` """ addresses: [Bytes!]! @@ -2943,22 +2614,44 @@ type ApprovalEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `isNFTApproval` ? `nft address` : `token` (superToken) + addresses[1] = `owner` + addresses[2] = `to` """ addresses: [Bytes!]! blockNumber: BigInt! logIndex: BigInt! order: BigInt! + + """ + The address that will be granting allowance to transfer ERC20/NFT. + + """ owner: Account! """ - The address that will be granted allowance to transfer the NFT. + The address that will be granted allowance to transfer ERC20/NFT. """ to: Account! """ + Indicates whether the event was emitted for the approval of an NFT. + + """ + isNFTApproval: Boolean! + + """ + If `amount` is non-zero, this event was emitted for the approval of an ERC20. + Tne amount of ERC20 tokens that will be granted allowance to transfer. + + """ + amount: BigInt! + + """ + If `tokenId` is non-zero, this event was emitted for the approval of an NFT. The id of the NFT that will be granted allowance to transfer. The id is: uint256(keccak256(abi.encode(block.chainid, superToken, sender, receiver))) @@ -3101,6 +2794,18 @@ input ApprovalEvent_filter { to_not_ends_with: String to_not_ends_with_nocase: String to_: Account_filter + isNFTApproval: Boolean + isNFTApproval_not: Boolean + isNFTApproval_in: [Boolean!] + isNFTApproval_not_in: [Boolean!] + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] tokenId: BigInt tokenId_not: BigInt tokenId_gt: BigInt @@ -3141,6 +2846,8 @@ enum ApprovalEvent_orderBy { to__updatedAtTimestamp to__updatedAtBlockNumber to__isSuperApp + isNFTApproval + amount tokenId } @@ -3153,7 +2860,10 @@ type ApprovalForAllEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = NFT address + addresses[1] = `owner` + addresses[2] = `operator` """ addresses: [Bytes!]! @@ -3758,6 +3468,9 @@ enum BufferAdjustedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -3997,7 +3710,10 @@ type CFAv1LiquidationPeriodChangedEvent implements Event { governanceAddress: Bytes! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `governanceAddress` + addresses[1] = `host` + addresses[2] = `superToken` """ addresses: [Bytes!]! @@ -4185,7 +3901,10 @@ type ConfigChangedEvent implements Event { governanceAddress: Bytes! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `governanceAddress` + addresses[1] = `host` + addresses[2] = `superToken` """ addresses: [Bytes!]! @@ -4734,6 +4453,9 @@ enum DistributionClaimedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -4751,6 +4473,8 @@ enum DistributionClaimedEvent_orderBy { poolMember__totalAmountClaimed poolMember__poolTotalAmountDistributedUntilUpdatedAt poolMember__totalAmountReceivedUntilUpdatedAt + poolMember__syncedPerUnitSettledValue + poolMember__syncedPerUnitFlowRate } """ @@ -5386,6 +5110,9 @@ enum FlowDistributionUpdatedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -5655,8 +5382,6 @@ enum FlowOperator_orderBy { accountTokenSnapshot__activeCFAOutgoingStreamCount accountTokenSnapshot__activeGDAOutgoingStreamCount accountTokenSnapshot__activeIncomingStreamCount - accountTokenSnapshot__activeCFAIncomingStreamCount - accountTokenSnapshot__activeGDAIncomingStreamCount accountTokenSnapshot__totalNumberOfClosedStreams accountTokenSnapshot__totalCFANumberOfClosedStreams accountTokenSnapshot__totalGDANumberOfClosedStreams @@ -5664,8 +5389,6 @@ enum FlowOperator_orderBy { accountTokenSnapshot__inactiveCFAOutgoingStreamCount accountTokenSnapshot__inactiveGDAOutgoingStreamCount accountTokenSnapshot__inactiveIncomingStreamCount - accountTokenSnapshot__inactiveCFAIncomingStreamCount - accountTokenSnapshot__inactiveGDAIncomingStreamCount accountTokenSnapshot__totalSubscriptionsWithUnits accountTokenSnapshot__totalApprovedSubscriptions accountTokenSnapshot__totalMembershipsWithUnits @@ -5676,22 +5399,15 @@ enum FlowOperator_orderBy { accountTokenSnapshot__totalGDADeposit accountTokenSnapshot__totalNetFlowRate accountTokenSnapshot__totalCFANetFlowRate - accountTokenSnapshot__totalGDANetFlowRate accountTokenSnapshot__totalInflowRate - accountTokenSnapshot__totalCFAInflowRate - accountTokenSnapshot__totalGDAInflowRate accountTokenSnapshot__totalOutflowRate accountTokenSnapshot__totalCFAOutflowRate accountTokenSnapshot__totalGDAOutflowRate accountTokenSnapshot__totalAmountStreamedInUntilUpdatedAt - accountTokenSnapshot__totalCFAAmountStreamedInUntilUpdatedAt - accountTokenSnapshot__totalGDAAmountStreamedInUntilUpdatedAt accountTokenSnapshot__totalAmountStreamedOutUntilUpdatedAt accountTokenSnapshot__totalCFAAmountStreamedOutUntilUpdatedAt - accountTokenSnapshot__totalGDAAmountStreamedOutUntilUpdatedAt accountTokenSnapshot__totalAmountStreamedUntilUpdatedAt accountTokenSnapshot__totalCFAAmountStreamedUntilUpdatedAt - accountTokenSnapshot__totalGDAAmountStreamedUntilUpdatedAt accountTokenSnapshot__totalAmountTransferredUntilUpdatedAt flowOperatorUpdatedEvents } @@ -6301,7 +6017,9 @@ type GovernanceReplacedEvent implements Event { order: BigInt! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `oldGovernance` + addresses[1] = `newGovernance` """ addresses: [Bytes!]! @@ -8695,6 +8413,9 @@ enum InstantDistributionUpdatedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -8729,7 +8450,8 @@ type JailEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `app` """ addresses: [Bytes!]! @@ -9103,6 +8825,9 @@ enum MemberUnitsUpdatedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -9120,6 +8845,8 @@ enum MemberUnitsUpdatedEvent_orderBy { poolMember__totalAmountClaimed poolMember__poolTotalAmountDistributedUntilUpdatedAt poolMember__totalAmountReceivedUntilUpdatedAt + poolMember__syncedPerUnitSettledValue + poolMember__syncedPerUnitFlowRate } type MetadataUpdateEvent implements Event { @@ -9692,6 +9419,9 @@ type Pool { totalAmountInstantlyDistributedUntilUpdatedAt: BigInt! totalAmountFlowedDistributedUntilUpdatedAt: BigInt! totalAmountDistributedUntilUpdatedAt: BigInt! + totalFlowAdjustmentAmountDistributedUntilUpdatedAt: BigInt! + perUnitSettledValue: BigInt! + perUnitFlowRate: BigInt! """ A member is any account which has more than 0 units in the pool. @@ -9815,6 +9545,30 @@ input Pool_filter { totalAmountDistributedUntilUpdatedAt_lte: BigInt totalAmountDistributedUntilUpdatedAt_in: [BigInt!] totalAmountDistributedUntilUpdatedAt_not_in: [BigInt!] + totalFlowAdjustmentAmountDistributedUntilUpdatedAt: BigInt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_not: BigInt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_gt: BigInt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_lt: BigInt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_gte: BigInt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_lte: BigInt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_in: [BigInt!] + totalFlowAdjustmentAmountDistributedUntilUpdatedAt_not_in: [BigInt!] + perUnitSettledValue: BigInt + perUnitSettledValue_not: BigInt + perUnitSettledValue_gt: BigInt + perUnitSettledValue_lt: BigInt + perUnitSettledValue_gte: BigInt + perUnitSettledValue_lte: BigInt + perUnitSettledValue_in: [BigInt!] + perUnitSettledValue_not_in: [BigInt!] + perUnitFlowRate: BigInt + perUnitFlowRate_not: BigInt + perUnitFlowRate_gt: BigInt + perUnitFlowRate_lt: BigInt + perUnitFlowRate_gte: BigInt + perUnitFlowRate_lte: BigInt + perUnitFlowRate_in: [BigInt!] + perUnitFlowRate_not_in: [BigInt!] totalMembers: Int totalMembers_not: Int totalMembers_gt: Int @@ -9933,6 +9687,9 @@ enum Pool_orderBy { totalAmountInstantlyDistributedUntilUpdatedAt totalAmountFlowedDistributedUntilUpdatedAt totalAmountDistributedUntilUpdatedAt + totalFlowAdjustmentAmountDistributedUntilUpdatedAt + perUnitSettledValue + perUnitFlowRate totalMembers totalConnectedMembers totalDisconnectedMembers @@ -10198,6 +9955,9 @@ enum PoolConnectionUpdatedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -10215,6 +9975,8 @@ enum PoolConnectionUpdatedEvent_orderBy { poolMember__totalAmountClaimed poolMember__poolTotalAmountDistributedUntilUpdatedAt poolMember__totalAmountReceivedUntilUpdatedAt + poolMember__syncedPerUnitSettledValue + poolMember__syncedPerUnitFlowRate } type PoolCreatedEvent implements Event { @@ -10420,6 +10182,9 @@ enum PoolCreatedEvent_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -10613,6 +10378,9 @@ enum PoolDistributor_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -10639,6 +10407,8 @@ type PoolMember { totalAmountClaimed: BigInt! poolTotalAmountDistributedUntilUpdatedAt: BigInt! totalAmountReceivedUntilUpdatedAt: BigInt! + syncedPerUnitSettledValue: BigInt! + syncedPerUnitFlowRate: BigInt! account: Account! pool: Pool! poolConnectionUpdatedEvents(skip: Int = 0, first: Int = 100, orderBy: PoolConnectionUpdatedEvent_orderBy, orderDirection: OrderDirection, where: PoolConnectionUpdatedEvent_filter): [PoolConnectionUpdatedEvent!]! @@ -10723,6 +10493,22 @@ input PoolMember_filter { totalAmountReceivedUntilUpdatedAt_lte: BigInt totalAmountReceivedUntilUpdatedAt_in: [BigInt!] totalAmountReceivedUntilUpdatedAt_not_in: [BigInt!] + syncedPerUnitSettledValue: BigInt + syncedPerUnitSettledValue_not: BigInt + syncedPerUnitSettledValue_gt: BigInt + syncedPerUnitSettledValue_lt: BigInt + syncedPerUnitSettledValue_gte: BigInt + syncedPerUnitSettledValue_lte: BigInt + syncedPerUnitSettledValue_in: [BigInt!] + syncedPerUnitSettledValue_not_in: [BigInt!] + syncedPerUnitFlowRate: BigInt + syncedPerUnitFlowRate_not: BigInt + syncedPerUnitFlowRate_gt: BigInt + syncedPerUnitFlowRate_lt: BigInt + syncedPerUnitFlowRate_gte: BigInt + syncedPerUnitFlowRate_lte: BigInt + syncedPerUnitFlowRate_in: [BigInt!] + syncedPerUnitFlowRate_not_in: [BigInt!] account: String account_not: String account_gt: String @@ -10786,6 +10572,8 @@ enum PoolMember_orderBy { totalAmountClaimed poolTotalAmountDistributedUntilUpdatedAt totalAmountReceivedUntilUpdatedAt + syncedPerUnitSettledValue + syncedPerUnitFlowRate account account__id account__createdAtTimestamp @@ -10805,6 +10593,9 @@ enum PoolMember_orderBy { pool__totalAmountInstantlyDistributedUntilUpdatedAt pool__totalAmountFlowedDistributedUntilUpdatedAt pool__totalAmountDistributedUntilUpdatedAt + pool__totalFlowAdjustmentAmountDistributedUntilUpdatedAt + pool__perUnitSettledValue + pool__perUnitFlowRate pool__totalMembers pool__totalConnectedMembers pool__totalDisconnectedMembers @@ -10831,7 +10622,10 @@ type PPPConfigurationChangedEvent implements Event { governanceAddress: Bytes! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `governanceAddress` + addresses[1] = `host` + addresses[2] = `superToken` """ addresses: [Bytes!]! @@ -14010,7 +13804,11 @@ type RewardAddressChangedEvent implements Event { governanceAddress: Bytes! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `governanceAddress` + addresses[1] = `host` + addresses[2] = `superToken` + addresses[3] = `rewardAddress` """ addresses: [Bytes!]! @@ -14194,7 +13992,9 @@ type RoleAdminChangedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `previousAdminRole` + addresses[1] = `newAdminRole` """ addresses: [Bytes!]! @@ -14361,7 +14161,9 @@ type RoleGrantedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `account` + addresses[1] = `sender` """ addresses: [Bytes!]! @@ -14528,7 +14330,9 @@ type RoleRevokedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `account` + addresses[1] = `sender` """ addresses: [Bytes!]! @@ -15115,6 +14919,12 @@ type SFMeta { """ branch: String! + + """ + The subgraph package.json semver version of the current deployment. + + """ + packageVersion: String! } input SFMeta_filter { @@ -15182,6 +14992,26 @@ input SFMeta_filter { branch_ends_with_nocase: String branch_not_ends_with: String branch_not_ends_with_nocase: String + packageVersion: String + packageVersion_not: String + packageVersion_gt: String + packageVersion_lt: String + packageVersion_gte: String + packageVersion_lte: String + packageVersion_in: [String!] + packageVersion_not_in: [String!] + packageVersion_contains: String + packageVersion_contains_nocase: String + packageVersion_not_contains: String + packageVersion_not_contains_nocase: String + packageVersion_starts_with: String + packageVersion_starts_with_nocase: String + packageVersion_not_starts_with: String + packageVersion_not_starts_with_nocase: String + packageVersion_ends_with: String + packageVersion_ends_with_nocase: String + packageVersion_not_ends_with: String + packageVersion_not_ends_with_nocase: String """Filter for the block changed event.""" _change_block: BlockChangedFilter @@ -15195,6 +15025,7 @@ enum SFMeta_orderBy { blockNumber configuration branch + packageVersion } """ @@ -19847,7 +19678,8 @@ type SuperTokenFactoryUpdatedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `newFactory` """ addresses: [Bytes!]! @@ -19990,7 +19822,8 @@ type SuperTokenLogicCreatedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `tokenLogic` """ addresses: [Bytes!]! @@ -20133,7 +19966,9 @@ type SuperTokenLogicUpdatedEvent implements Event { name: String! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `token` + addresses[1] = `code` """ addresses: [Bytes!]! @@ -20294,7 +20129,10 @@ type SuperTokenMinimumDepositChangedEvent implements Event { governanceAddress: Bytes! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `governanceAddress` + addresses[1] = `host` + addresses[2] = `superToken` """ addresses: [Bytes!]! @@ -21210,12 +21048,6 @@ type TokenStatistic { """ totalCFAAmountStreamedUntilUpdatedAt: BigInt! - """ - The all-time total amount streamed (outflows) until the `updatedAtTimestamp`/`updatedAtBlock` for the GDA. - - """ - totalGDAAmountStreamedUntilUpdatedAt: BigInt! - """ The all-time total amount transferred until the `updatedAtTimestamp`/`updatedAtBlock`. @@ -21450,14 +21282,6 @@ input TokenStatistic_filter { totalCFAAmountStreamedUntilUpdatedAt_lte: BigInt totalCFAAmountStreamedUntilUpdatedAt_in: [BigInt!] totalCFAAmountStreamedUntilUpdatedAt_not_in: [BigInt!] - totalGDAAmountStreamedUntilUpdatedAt: BigInt - totalGDAAmountStreamedUntilUpdatedAt_not: BigInt - totalGDAAmountStreamedUntilUpdatedAt_gt: BigInt - totalGDAAmountStreamedUntilUpdatedAt_lt: BigInt - totalGDAAmountStreamedUntilUpdatedAt_gte: BigInt - totalGDAAmountStreamedUntilUpdatedAt_lte: BigInt - totalGDAAmountStreamedUntilUpdatedAt_in: [BigInt!] - totalGDAAmountStreamedUntilUpdatedAt_not_in: [BigInt!] totalAmountTransferredUntilUpdatedAt: BigInt totalAmountTransferredUntilUpdatedAt_not: BigInt totalAmountTransferredUntilUpdatedAt_gt: BigInt @@ -21553,7 +21377,6 @@ enum TokenStatistic_orderBy { totalGDAOutflowRate totalAmountStreamedUntilUpdatedAt totalCFAAmountStreamedUntilUpdatedAt - totalGDAAmountStreamedUntilUpdatedAt totalAmountTransferredUntilUpdatedAt totalAmountDistributedUntilUpdatedAt totalSupply @@ -21718,12 +21541,6 @@ type TokenStatisticLog { """ totalCFAAmountStreamed: BigInt! - """ - The all-time total amount of `token` streamed (outflows) until the `timestamp`/`block` for the GDA. - - """ - totalGDAAmountStreamed: BigInt! - """ The all-time total amount of `token` transferred until the `timestamp`/`block`. @@ -22004,14 +21821,6 @@ input TokenStatisticLog_filter { totalCFAAmountStreamed_lte: BigInt totalCFAAmountStreamed_in: [BigInt!] totalCFAAmountStreamed_not_in: [BigInt!] - totalGDAAmountStreamed: BigInt - totalGDAAmountStreamed_not: BigInt - totalGDAAmountStreamed_gt: BigInt - totalGDAAmountStreamed_lt: BigInt - totalGDAAmountStreamed_gte: BigInt - totalGDAAmountStreamed_lte: BigInt - totalGDAAmountStreamed_in: [BigInt!] - totalGDAAmountStreamed_not_in: [BigInt!] totalAmountTransferred: BigInt totalAmountTransferred_not: BigInt totalAmountTransferred_gt: BigInt @@ -22131,7 +21940,6 @@ enum TokenStatisticLog_orderBy { totalGDAOutflowRate totalAmountStreamed totalCFAAmountStreamed - totalGDAAmountStreamed totalAmountTransferred totalAmountDistributed totalSupply @@ -22174,7 +21982,6 @@ enum TokenStatisticLog_orderBy { tokenStatistic__totalGDAOutflowRate tokenStatistic__totalAmountStreamedUntilUpdatedAt tokenStatistic__totalCFAAmountStreamedUntilUpdatedAt - tokenStatistic__totalGDAAmountStreamedUntilUpdatedAt tokenStatistic__totalAmountTransferredUntilUpdatedAt tokenStatistic__totalAmountDistributedUntilUpdatedAt tokenStatistic__totalSupply @@ -22611,7 +22418,11 @@ type TrustedForwarderChangedEvent implements Event { governanceAddress: Bytes! """ - Empty addresses array. + Contains the addresses that were impacted by this event: + addresses[0] = `governanceAddress` + addresses[1] = `host` + addresses[2] = `superToken` + addresses[3] = `forwarder` """ addresses: [Bytes!]!