Methods
addPauser
- addPauser(account: string): ContractSendMethod
Parameters
Returns ContractSendMethod
balanceOf
Parameters
streamId: number
who: string
createCompoundingStream
- createCompoundingStream(recipient: string, deposit: string | number, tokenAddress: string, startTime: number, stopTime: number, senderSharePercentage: number, recipientSharePercentage: number): ContractCallMethod<number>
Parameters
recipient: string
deposit: string | number
tokenAddress: string
startTime: number
stopTime: number
senderSharePercentage: number
recipientSharePercentage: number
createStream
- createStream(recipient: string, deposit: string | number, tokenAddress: string, startTime: number, stopTime: number): ContractCallMethod<number>
Parameters
recipient: string
deposit: string | number
tokenAddress: string
startTime: number
stopTime: number
getCompoundingStream
- getCompoundingStream(streamId: number): ContractCallMethod<{ 0: string; 1: string; 10: number; 2: number; 3: string; 4: number; 5: number; 6: number; 7: number; 8: number; 9: number }>
Parameters
Returns ContractCallMethod<{ 0: string; 1: string; 10: number; 2: number; 3: string; 4: number; 5: number; 6: number; 7: number; 8: number; 9: number }>
getStream
- getStream(streamId: number): ContractCallMethod<{ 0: string; 1: string; 2: number; 3: string; 4: number; 5: number; 6: number; 7: number }>
Parameters
Returns ContractCallMethod<{ 0: string; 1: string; 2: number; 3: string; 4: number; 5: number; 6: number; 7: number }>
getTokenDecimalsFromStream
initialize
- initialize(sender: string): ContractSendMethod
Parameters
Returns ContractSendMethod
interestOf
- interestOf(streamId: number, amount: number): ContractCallMethod<{ 0: number; 1: number; 2: number }>
Parameters
streamId: number
amount: number
Returns ContractCallMethod<{ 0: number; 1: number; 2: number }>
pause
- pause(): ContractSendMethod
Returns ContractSendMethod
takeEarnings
- takeEarnings(tokenAddress: string, amount: string | number): ContractSendMethod
Parameters
tokenAddress: string
amount: string | number
Returns ContractSendMethod
transferOwnership
- transferOwnership(newOwner: string): ContractSendMethod
Parameters
Returns ContractSendMethod
unpause
- unpause(): ContractSendMethod
Returns ContractSendMethod
updateFee
- updateFee(feePercentage: number): ContractSendMethod
Parameters
Returns ContractSendMethod
withdrawFromStream
- withdrawFromStream(streamId: number, amount: string | number): ContractCallMethod<boolean>
Parameters
streamId: number
amount: string | number