Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

Properties

_contract: Web3Contract<SablierMethods, any>
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • addPauser(account: string): Promise<TransactionReceipt<any>>
  • balanceOf(streamId: number, who: string): Promise<string>
  • cancelStream(streamId: number): Promise<TransactionReceipt<any>>
  • connect(): Promise<boolean>
  • createCompoundingStream(recipient: string, deposit: string | number, tokenAddress: string, startTime: number, stopTime: number, senderSharePercentage: number, recipientSharePercentage: number): Promise<TransactionReceipt<any>>
  • Parameters

    • recipient: string
    • deposit: string | number
    • tokenAddress: string
    • startTime: number
    • stopTime: number
    • senderSharePercentage: number
    • recipientSharePercentage: number

    Returns Promise<TransactionReceipt<any>>

  • createStream(recipient: string, deposit: string | number, tokenAddress: string, startTime: number, stopTime: number): Promise<TransactionReceipt<any>>
  • Parameters

    • recipient: string
    • deposit: string | number
    • tokenAddress: string
    • startTime: number
    • stopTime: number

    Returns Promise<TransactionReceipt<any>>

  • deltaOf(streamId: number): Promise<number>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(): Promise<TransactionReceipt<any>>
  • fee(): Promise<string>
  • getEarnings(tokenAddress: string): Promise<string>
  • getTokenDecimals(tokenAddress: string): Promise<undefined>
  • getTokenDecimalsFromStream(streamId: number): Promise<undefined>
  • initialize(sender: string): Promise<TransactionReceipt<any>>
  • isCompoundingStream(streamId: number): Promise<boolean>
  • isPauser(account: string): Promise<boolean>
  • loadAbi(): void
  • loadContract(): void
  • nextStreamId(): Promise<number>
  • owner(): Promise<string>
  • pause(): Promise<TransactionReceipt<any>>
  • paused(): Promise<boolean>
  • sendTx(method: ContractSendMethod, value?: any): Promise<TransactionReceipt<any>>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt<any>>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt<any>>
  • start(): Promise<void>
  • takeEarnings(tokenAddress: string, amount: number): Promise<TransactionReceipt<any>>
  • transferOwnership(newOwner: string): Promise<TransactionReceipt<any>>
  • unpause(): Promise<TransactionReceipt<any>>
  • updateFee(feePercentage: number): Promise<TransactionReceipt<any>>
  • withdrawFromStream(streamId: number, amount: string | number): Promise<TransactionReceipt<any>>
  • Parameters

    • streamId: number
    • amount: string | number

    Returns Promise<TransactionReceipt<any>>

Generated using TypeDoc