Returns the AddressDriver's address to which the AddressDriverClient is connected.
Returns the client's provider.
Returns the client's signer.
Note that for read-only client instances created with the {@link createReadonly} method it returns undefined.
Sets the maximum allowance value for the AddressDriver contract over the user's tokens for the given ERC20 token.
The ERC20 token address.
It must preserve amounts, so if some amount of tokens is transferred to an address, then later the same amount must be transferrable from that address. Tokens which rebase the holders' balances, collect taxes on transfers, or impose any restrictions on holding or transferring tokens are not supported. If you use such tokens in the protocol, they can get stuck or lost.
A Promise which resolves to the contract transaction.
Collects the received and already split funds and transfers them from the DripsHub contract to an address.
The ERC20 token address.
It must preserve amounts, so if some amount of tokens is transferred to an address, then later the same amount must be transferrable from that address. Tokens which rebase the holders' balances, collect taxes on transfers, or impose any restrictions on holding or transferring tokens are not supported. If you use such tokens in the protocol, they can get stuck or lost.
The address to send collected funds to.
A Promise which resolves to the contract transaction.
Emits the user's metadata. The key and the value are not standardized by the protocol, it's up to the user to establish and follow conventions to ensure compatibility with the consumers.
The list of user metadata. Note that a metadata key needs to be 32bytes.
Tip: you might want to use Utils.UserMetadata.createFromStrings to easily create metadata instances from string inputs.
A Promise which resolves to the contract transaction.
Returns the remaining number of tokens the AddressDriver contract is allowed to spend on behalf of the user for the given ERC20 token.
The ERC20 token address.
It must preserve amounts, so if some amount of tokens is transferred to an address, then later the same amount must be transferrable from that address. Tokens which rebase the holders' balances, collect taxes on transfers, or impose any restrictions on holding or transferring tokens are not supported. If you use such tokens in the protocol, they can get stuck or lost.
A Promise which resolves to the remaining number of tokens.
Returns the user user ID.
This is the user ID to which the AddressDriverClient is linked and manages Drips.
A Promise which resolves to the user ID.
Returns the user ID for a given address.
The user address.
A Promise which resolves to the user ID.
Gives funds to the receiver.
The receiver can collect them immediately.
Transfers funds from the user's wallet to the DripsHub contract.
The receiver user ID.
The ERC20 token address.
It must preserve amounts, so if some amount of tokens is transferred to an address, then later the same amount must be transferrable from that address. Tokens which rebase the holders' balances, collect taxes on transfers, or impose any restrictions on holding or transferring tokens are not supported. If you use such tokens in the protocol, they can get stuck or lost.
The amount to give (in the smallest unit, e.g., Wei). It must be greater than 0.
A Promise which resolves to the contract transaction.
Sets a Drips configuration.
Transfers funds from the user's wallet to the DripsHub contract to fulfill the change of the drips balance.
The ERC20 token address.
It must preserve amounts, so if some amount of tokens is transferred to an address, then later the same amount must be transferrable from that address. Tokens which rebase the holders' balances, collect taxes on transfers, or impose any restrictions on holding or transferring tokens are not supported. If you use such tokens in the protocol, they can get stuck or lost.
The drips receivers that were set in the last drips update. Pass an empty array if this is the first update.
Tip: you might want to use DripsSubgraphClient.getCurrentDripsReceivers to easily retrieve the list of current receivers.
The new drips receivers (max 100).
Duplicate receivers are not allowed and will only be processed once.
Pass an empty array if you want to clear all receivers.
The address to send funds to in case of decreasing balance.
The drips balance change to be applied:
0 to leave drips balance as is (default value).A Promise which resolves to the contract transaction.
Sets the Splits configuration.
The splits receivers (max 200).
Each splits receiver will be getting weight / TOTAL_SPLITS_WEIGHT share of the funds.
Duplicate receivers are not allowed and will only be processed once.
Pass an empty array if you want to clear all receivers.
A Promise which resolves to the contract transaction.
Creates a new immutable AddressDriverClient instance.
The network provider. It cannot be changed after creation.
The provider must be connected to one of the following supported networks:
1580001The singer used to sign transactions. It cannot be changed after creation.
Important: If the signer is not connected to a provider it will try to connect to the provider, else it will use the signer.provider.
Overrides the AddressDriver contract address.
If it's undefined (default value), the address will be automatically selected based on the provider's network.
A Promise which resolves to the new client instance.
Returns a user's address given a user ID.
The user ID.
The user's address.
Generated using TypeDoc
A client for managing Drips accounts identified by Ethereum addresses.
AddressDriver contract.