Returns the DripsSubgraphClient
's API URL.
Returns the chain ID the DripsSubgraphClient
is connected to.
Returns a list of senders for which drips can potentially be squeezed, for the given receiver.
The returned senders have set up a configuration that drips to the given receiver
but it's not guaranteed that the sender is still dripping to this sender.
The sender might be out of funds, for example.
The receiver's user ID.
A Promise
which resolves to a Record
with keys being the sender IDs and values the asset (ERC20 token) IDs.
Returns a list of drips configurations for the given user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's drips configurations.
Calculates the arguments for squeezing all Drips up to "now" for the given sender and token.
Important: This method might fail if two Drips updates were performed in a single block. because the order of the Drips configurations returned by the Subgraph is not guaranteed for such cases. The transaction will fail in the gas estimation phase, so no gas will be wasted.
The ID of the user receiving drips to squeeze funds for.
The ID of the user sending drips to squeeze funds from.
The ERC20 token address.
A Promise
which resolves to the DripsHubClient.squeezeDrips
arguments.
Returns a list of Collected
events for the given user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's Collected
events.
Returns the current Drips receivers for the given configuration.
The user ID.
The ERC20 token address.
A Promise
which resolves to the user's Collected
events.
Returns a list of DripsReceiverSeen
events for the given receiver.
The receiver's user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the receivers's DripsReceiverSeen
events.
Returns a list of DripsSet
events for the given user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's DripsSet
events.
Returns a list of Given
events for the given receiver.
The receiver user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the receiver's Given
events.
Returns a list of Given
events for the given user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's Given
events.
Returns the latest metadata update for the given userId
-key
pair.
The user ID.
The metadata key.
A Promise
which resolves to the user's metadata, or null
if not found.
Returns the history of user metadata updates for the given user.
The user ID.
The metadata key.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's metadata.
Returns a list of token IDs that are associated with the given app.
The name/ID of the app to retrieve accounts for.
Tip: you might want to use Utils.UserMetadata.valueFromString
to create your associatedApp
argument from a string
.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the account IDs.
Returns a list of NFT sub accounts for the given owner.
The owner's address.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the owner's NFT sub accounts.
Returns a list of ReceivedDrips
events for the given user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's ReceivedDrips
events.
Returns a list of Split
entries for the given user.
The receiver's user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the receivers's Split
events.
Returns a list of Split
events for the given receiver.
The receiver user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the receiver's Split
events.
Returns a list of Split
events for the given user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's Split
events.
Returns the splits configuration for the give user.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's splits configuration.
Returns the user's SqueezedDrips
events.
The user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the user's SqueezedDrips
events.
Returns the drips configuration for the given user and asset.
The user ID.
The asset ID.
A Promise
which resolves to the user's drips configuration, or null
if the configuration is not found.
Returns the users that stream funds to the given receiver.
The receiver's user ID.
The number of database entries to skip. Defaults to 0
.
The number of database entries to take. Defaults to 100
.
A Promise
which resolves to the users that stream funds to the given receiver.
Executes the given query against the Drips Subgraph.
The GraphQL query.
The GraphQL query variables.
A Promise
which resolves to the expected data.
Creates a new immutable DripsSubgraphClient
instance.
The chain ID.
Overrides the subgraph's apiUrl
.
If it's undefined
(default value), the apiUrl
will be automatically selected based on the chainId
.
The new DripsSubgraphClient
instance.
Generated using TypeDoc
A client for querying the Drips Subgraph.