/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, ContractTransaction, EventFilter, Signer } from "ethers"; import { Listener, Provider } from "ethers/providers"; import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; import { TransactionOverrides, TypedEventDescription, TypedFunctionDescription, } from "."; interface TokenLockingInterface extends Interface { functions: { authority: TypedFunctionDescription<{ encode([]: []): string }>; owner: TypedFunctionDescription<{ encode([]: []): string }>; setAuthority: TypedFunctionDescription<{ encode([authority_]: [string]): string; }>; setOwner: TypedFunctionDescription<{ encode([owner_]: [string]): string }>; setColonyNetwork: TypedFunctionDescription<{ encode([_colonyNetwork]: [string]): string; }>; getColonyNetwork: TypedFunctionDescription<{ encode([]: []): string }>; lockToken: TypedFunctionDescription<{ encode([_token]: [string]): string }>; unlockTokenForUser: TypedFunctionDescription<{ encode([_token, _user, _lockId]: [string, string, BigNumberish]): string; }>; incrementLockCounterTo: TypedFunctionDescription<{ encode([_token, _lockId]: [string, BigNumberish]): string; }>; deposit: TypedFunctionDescription<{ encode([_token, _amount, _force]: [ string, BigNumberish, boolean ]): string; }>; depositFor: TypedFunctionDescription<{ encode([_token, _amount, _recipient]: [ string, BigNumberish, string ]): string; }>; transfer: TypedFunctionDescription<{ encode([_token, _amount, _recipient, _force]: [ string, BigNumberish, string, boolean ]): string; }>; withdraw: TypedFunctionDescription<{ encode([_token, _amount, _force]: [ string, BigNumberish, boolean ]): string; }>; approveStake: TypedFunctionDescription<{ encode([_user, _amount, _token]: [string, BigNumberish, string]): string; }>; obligateStake: TypedFunctionDescription<{ encode([_user, _amount, _token]: [string, BigNumberish, string]): string; }>; deobligateStake: TypedFunctionDescription<{ encode([_user, _amount, _token]: [string, BigNumberish, string]): string; }>; transferStake: TypedFunctionDescription<{ encode([_user, _amount, _token, _recipient]: [ string, BigNumberish, string, string ]): string; }>; reward: TypedFunctionDescription<{ encode([_recipient, _amount]: [string, BigNumberish]): string; }>; getTotalLockCount: TypedFunctionDescription<{ encode([_token]: [string]): string; }>; getUserLock: TypedFunctionDescription<{ encode([_token, _user]: [string, string]): string; }>; getTotalObligation: TypedFunctionDescription<{ encode([_user, _token]: [string, string]): string; }>; getApproval: TypedFunctionDescription<{ encode([_user, _token, _obligator]: [string, string, string]): string; }>; getObligation: TypedFunctionDescription<{ encode([_user, _token, _obligator]: [string, string, string]): string; }>; }; events: { ColonyNetworkSet: TypedEventDescription<{ encodeTopics([colonyNetwork]: [null]): string[]; }>; LogSetAuthority: TypedEventDescription<{ encodeTopics([authority]: [string | null]): string[]; }>; LogSetOwner: TypedEventDescription<{ encodeTopics([owner]: [string | null]): string[]; }>; TokenLocked: TypedEventDescription<{ encodeTopics([token, lockedBy, lockCount]: [ string | null, string | null, null ]): string[]; }>; UserTokenClaimed: TypedEventDescription<{ encodeTopics([token, user, amount]: [null, null, null]): string[]; }>; UserTokenDeposited: TypedEventDescription<{ encodeTopics([token, user, amount]: [null, null, null]): string[]; }>; UserTokenTransferred: TypedEventDescription<{ encodeTopics([token, user, recipient, amount]: [ null, null, null, null ]): string[]; }>; UserTokenUnlocked: TypedEventDescription<{ encodeTopics([token, user, lockId]: [null, null, null]): string[]; }>; UserTokenWithdrawn: TypedEventDescription<{ encodeTopics([token, user, amount]: [null, null, null]): string[]; }>; }; } export class TokenLocking extends Contract { connect(signerOrProvider: Signer | Provider | string): TokenLocking; attach(addressOrName: string): TokenLocking; deployed(): Promise; on(event: EventFilter | string, listener: Listener): TokenLocking; once(event: EventFilter | string, listener: Listener): TokenLocking; addListener( eventName: EventFilter | string, listener: Listener ): TokenLocking; removeAllListeners(eventName: EventFilter | string): TokenLocking; removeListener(eventName: any, listener: Listener): TokenLocking; interface: TokenLockingInterface; functions: { authority(overrides?: TransactionOverrides): Promise; "authority()"(overrides?: TransactionOverrides): Promise; owner(overrides?: TransactionOverrides): Promise; "owner()"(overrides?: TransactionOverrides): Promise; setAuthority( authority_: string, overrides?: TransactionOverrides ): Promise; "setAuthority(address)"( authority_: string, overrides?: TransactionOverrides ): Promise; setOwner( owner_: string, overrides?: TransactionOverrides ): Promise; "setOwner(address)"( owner_: string, overrides?: TransactionOverrides ): Promise; setColonyNetwork( _colonyNetwork: string, overrides?: TransactionOverrides ): Promise; "setColonyNetwork(address)"( _colonyNetwork: string, overrides?: TransactionOverrides ): Promise; getColonyNetwork(overrides?: TransactionOverrides): Promise; "getColonyNetwork()"(overrides?: TransactionOverrides): Promise; lockToken( _token: string, overrides?: TransactionOverrides ): Promise; "lockToken(address)"( _token: string, overrides?: TransactionOverrides ): Promise; unlockTokenForUser( _token: string, _user: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; "unlockTokenForUser(address,address,uint256)"( _token: string, _user: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; incrementLockCounterTo( _token: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; "incrementLockCounterTo(address,uint256)"( _token: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; deposit( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "deposit(address,uint256,bool)"( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "deposit(address,uint256)"( _token: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; depositFor( _token: string, _amount: BigNumberish, _recipient: string, overrides?: TransactionOverrides ): Promise; "depositFor(address,uint256,address)"( _token: string, _amount: BigNumberish, _recipient: string, overrides?: TransactionOverrides ): Promise; transfer( _token: string, _amount: BigNumberish, _recipient: string, _force: boolean, overrides?: TransactionOverrides ): Promise; "transfer(address,uint256,address,bool)"( _token: string, _amount: BigNumberish, _recipient: string, _force: boolean, overrides?: TransactionOverrides ): Promise; withdraw( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "withdraw(address,uint256,bool)"( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "withdraw(address,uint256)"( _token: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; approveStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "approveStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; obligateStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "obligateStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; deobligateStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "deobligateStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; transferStake( _user: string, _amount: BigNumberish, _token: string, _recipient: string, overrides?: TransactionOverrides ): Promise; "transferStake(address,uint256,address,address)"( _user: string, _amount: BigNumberish, _token: string, _recipient: string, overrides?: TransactionOverrides ): Promise; reward( _recipient: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; "reward(address,uint256)"( _recipient: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; getTotalLockCount( _token: string, overrides?: TransactionOverrides ): Promise; "getTotalLockCount(address)"( _token: string, overrides?: TransactionOverrides ): Promise; getUserLock( _token: string, _user: string, overrides?: TransactionOverrides ): Promise< [BigNumber, BigNumber, BigNumber, BigNumber] & { lockCount: BigNumber; balance: BigNumber; DEPRECATED_timestamp: BigNumber; pendingBalance: BigNumber; } >; "getUserLock(address,address)"( _token: string, _user: string, overrides?: TransactionOverrides ): Promise< [BigNumber, BigNumber, BigNumber, BigNumber] & { lockCount: BigNumber; balance: BigNumber; DEPRECATED_timestamp: BigNumber; pendingBalance: BigNumber; } >; getTotalObligation( _user: string, _token: string, overrides?: TransactionOverrides ): Promise; "getTotalObligation(address,address)"( _user: string, _token: string, overrides?: TransactionOverrides ): Promise; getApproval( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; "getApproval(address,address,address)"( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; getObligation( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; "getObligation(address,address,address)"( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; }; authority(overrides?: TransactionOverrides): Promise; "authority()"(overrides?: TransactionOverrides): Promise; owner(overrides?: TransactionOverrides): Promise; "owner()"(overrides?: TransactionOverrides): Promise; setAuthority( authority_: string, overrides?: TransactionOverrides ): Promise; "setAuthority(address)"( authority_: string, overrides?: TransactionOverrides ): Promise; setOwner( owner_: string, overrides?: TransactionOverrides ): Promise; "setOwner(address)"( owner_: string, overrides?: TransactionOverrides ): Promise; setColonyNetwork( _colonyNetwork: string, overrides?: TransactionOverrides ): Promise; "setColonyNetwork(address)"( _colonyNetwork: string, overrides?: TransactionOverrides ): Promise; getColonyNetwork(overrides?: TransactionOverrides): Promise; "getColonyNetwork()"(overrides?: TransactionOverrides): Promise; lockToken( _token: string, overrides?: TransactionOverrides ): Promise; "lockToken(address)"( _token: string, overrides?: TransactionOverrides ): Promise; unlockTokenForUser( _token: string, _user: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; "unlockTokenForUser(address,address,uint256)"( _token: string, _user: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; incrementLockCounterTo( _token: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; "incrementLockCounterTo(address,uint256)"( _token: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; deposit( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "deposit(address,uint256,bool)"( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "deposit(address,uint256)"( _token: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; depositFor( _token: string, _amount: BigNumberish, _recipient: string, overrides?: TransactionOverrides ): Promise; "depositFor(address,uint256,address)"( _token: string, _amount: BigNumberish, _recipient: string, overrides?: TransactionOverrides ): Promise; transfer( _token: string, _amount: BigNumberish, _recipient: string, _force: boolean, overrides?: TransactionOverrides ): Promise; "transfer(address,uint256,address,bool)"( _token: string, _amount: BigNumberish, _recipient: string, _force: boolean, overrides?: TransactionOverrides ): Promise; withdraw( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "withdraw(address,uint256,bool)"( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "withdraw(address,uint256)"( _token: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; approveStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "approveStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; obligateStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "obligateStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; deobligateStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "deobligateStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; transferStake( _user: string, _amount: BigNumberish, _token: string, _recipient: string, overrides?: TransactionOverrides ): Promise; "transferStake(address,uint256,address,address)"( _user: string, _amount: BigNumberish, _token: string, _recipient: string, overrides?: TransactionOverrides ): Promise; reward( _recipient: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; "reward(address,uint256)"( _recipient: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; getTotalLockCount( _token: string, overrides?: TransactionOverrides ): Promise; "getTotalLockCount(address)"( _token: string, overrides?: TransactionOverrides ): Promise; getUserLock( _token: string, _user: string, overrides?: TransactionOverrides ): Promise< [BigNumber, BigNumber, BigNumber, BigNumber] & { lockCount: BigNumber; balance: BigNumber; DEPRECATED_timestamp: BigNumber; pendingBalance: BigNumber; } >; "getUserLock(address,address)"( _token: string, _user: string, overrides?: TransactionOverrides ): Promise< [BigNumber, BigNumber, BigNumber, BigNumber] & { lockCount: BigNumber; balance: BigNumber; DEPRECATED_timestamp: BigNumber; pendingBalance: BigNumber; } >; getTotalObligation( _user: string, _token: string, overrides?: TransactionOverrides ): Promise; "getTotalObligation(address,address)"( _user: string, _token: string, overrides?: TransactionOverrides ): Promise; getApproval( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; "getApproval(address,address,address)"( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; getObligation( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; "getObligation(address,address,address)"( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; filters: { ColonyNetworkSet(colonyNetwork: null): EventFilter; LogSetAuthority(authority: string | null): EventFilter; LogSetOwner(owner: string | null): EventFilter; TokenLocked( token: string | null, lockedBy: string | null, lockCount: null ): EventFilter; UserTokenClaimed(token: null, user: null, amount: null): EventFilter; UserTokenDeposited(token: null, user: null, amount: null): EventFilter; UserTokenTransferred( token: null, user: null, recipient: null, amount: null ): EventFilter; UserTokenUnlocked(token: null, user: null, lockId: null): EventFilter; UserTokenWithdrawn(token: null, user: null, amount: null): EventFilter; }; estimate: { authority(overrides?: TransactionOverrides): Promise; "authority()"(overrides?: TransactionOverrides): Promise; owner(overrides?: TransactionOverrides): Promise; "owner()"(overrides?: TransactionOverrides): Promise; setAuthority( authority_: string, overrides?: TransactionOverrides ): Promise; "setAuthority(address)"( authority_: string, overrides?: TransactionOverrides ): Promise; setOwner( owner_: string, overrides?: TransactionOverrides ): Promise; "setOwner(address)"( owner_: string, overrides?: TransactionOverrides ): Promise; setColonyNetwork( _colonyNetwork: string, overrides?: TransactionOverrides ): Promise; "setColonyNetwork(address)"( _colonyNetwork: string, overrides?: TransactionOverrides ): Promise; getColonyNetwork(overrides?: TransactionOverrides): Promise; "getColonyNetwork()"(overrides?: TransactionOverrides): Promise; lockToken( _token: string, overrides?: TransactionOverrides ): Promise; "lockToken(address)"( _token: string, overrides?: TransactionOverrides ): Promise; unlockTokenForUser( _token: string, _user: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; "unlockTokenForUser(address,address,uint256)"( _token: string, _user: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; incrementLockCounterTo( _token: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; "incrementLockCounterTo(address,uint256)"( _token: string, _lockId: BigNumberish, overrides?: TransactionOverrides ): Promise; deposit( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "deposit(address,uint256,bool)"( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "deposit(address,uint256)"( _token: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; depositFor( _token: string, _amount: BigNumberish, _recipient: string, overrides?: TransactionOverrides ): Promise; "depositFor(address,uint256,address)"( _token: string, _amount: BigNumberish, _recipient: string, overrides?: TransactionOverrides ): Promise; transfer( _token: string, _amount: BigNumberish, _recipient: string, _force: boolean, overrides?: TransactionOverrides ): Promise; "transfer(address,uint256,address,bool)"( _token: string, _amount: BigNumberish, _recipient: string, _force: boolean, overrides?: TransactionOverrides ): Promise; withdraw( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "withdraw(address,uint256,bool)"( _token: string, _amount: BigNumberish, _force: boolean, overrides?: TransactionOverrides ): Promise; "withdraw(address,uint256)"( _token: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; approveStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "approveStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; obligateStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "obligateStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; deobligateStake( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; "deobligateStake(address,uint256,address)"( _user: string, _amount: BigNumberish, _token: string, overrides?: TransactionOverrides ): Promise; transferStake( _user: string, _amount: BigNumberish, _token: string, _recipient: string, overrides?: TransactionOverrides ): Promise; "transferStake(address,uint256,address,address)"( _user: string, _amount: BigNumberish, _token: string, _recipient: string, overrides?: TransactionOverrides ): Promise; reward( _recipient: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; "reward(address,uint256)"( _recipient: string, _amount: BigNumberish, overrides?: TransactionOverrides ): Promise; getTotalLockCount( _token: string, overrides?: TransactionOverrides ): Promise; "getTotalLockCount(address)"( _token: string, overrides?: TransactionOverrides ): Promise; getUserLock( _token: string, _user: string, overrides?: TransactionOverrides ): Promise; "getUserLock(address,address)"( _token: string, _user: string, overrides?: TransactionOverrides ): Promise; getTotalObligation( _user: string, _token: string, overrides?: TransactionOverrides ): Promise; "getTotalObligation(address,address)"( _user: string, _token: string, overrides?: TransactionOverrides ): Promise; getApproval( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; "getApproval(address,address,address)"( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; getObligation( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; "getObligation(address,address,address)"( _user: string, _token: string, _obligator: string, overrides?: TransactionOverrides ): Promise; }; }