@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
400 lines (399 loc) • 24.9 kB
TypeScript
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import type { Listener, Provider } from "@ethersproject/providers";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common";
export declare type VotingLockInfoStruct = {
lockedAmount: PromiseOrValue<BigNumberish>;
lockedUntil: PromiseOrValue<BigNumberish>;
pendingUnlockAmount: PromiseOrValue<BigNumberish>;
pendingUnlockTime: PromiseOrValue<BigNumberish>;
};
export declare type VotingLockInfoStructOutput = [
BigNumber,
BigNumber,
BigNumber,
BigNumber
] & {
lockedAmount: BigNumber;
lockedUntil: BigNumber;
pendingUnlockAmount: BigNumber;
pendingUnlockTime: BigNumber;
};
export declare type BaseVotingWeightInfoStruct = {
ownWeight: PromiseOrValue<BigNumberish>;
votingAgent: PromiseOrValue<string>;
delegationStatus: PromiseOrValue<BigNumberish>;
lockedUntil: PromiseOrValue<BigNumberish>;
};
export declare type BaseVotingWeightInfoStructOutput = [
BigNumber,
string,
number,
BigNumber
] & {
ownWeight: BigNumber;
votingAgent: string;
delegationStatus: number;
lockedUntil: BigNumber;
};
export interface VotingWeightProxyInterface extends utils.Interface {
functions: {
"delegationInfos(address)": FunctionFragment;
"lockInfos(address,address)": FunctionFragment;
"initialize(address,string[],string[])": FunctionFragment;
"lock(address,uint256)": FunctionFragment;
"announceUnlock(address,uint256,uint256)": FunctionFragment;
"unlock(address,uint256)": FunctionFragment;
"forceUnlock(address,uint256)": FunctionFragment;
"announceNewVotingAgent(address)": FunctionFragment;
"setNewVotingAgent()": FunctionFragment;
"extendLocking(address,uint256)": FunctionFragment;
"getLockInfo(address,address)": FunctionFragment;
"getBaseVotingWeightInfo(address,uint256)": FunctionFragment;
"getLockedUntil(address)": FunctionFragment;
"getVotingWeight(address,uint256)": FunctionFragment;
"getLockedAmount(address)": FunctionFragment;
};
getFunction(nameOrSignatureOrTopic: "delegationInfos" | "lockInfos" | "initialize" | "lock" | "announceUnlock" | "unlock" | "forceUnlock" | "announceNewVotingAgent" | "setNewVotingAgent" | "extendLocking" | "getLockInfo" | "getBaseVotingWeightInfo" | "getLockedUntil" | "getVotingWeight" | "getLockedAmount"): FunctionFragment;
encodeFunctionData(functionFragment: "delegationInfos", values: [PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "lockInfos", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "initialize", values: [
PromiseOrValue<string>,
PromiseOrValue<string>[],
PromiseOrValue<string>[]
]): string;
encodeFunctionData(functionFragment: "lock", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "announceUnlock", values: [
PromiseOrValue<string>,
PromiseOrValue<BigNumberish>,
PromiseOrValue<BigNumberish>
]): string;
encodeFunctionData(functionFragment: "unlock", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "forceUnlock", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "announceNewVotingAgent", values: [PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "setNewVotingAgent", values?: undefined): string;
encodeFunctionData(functionFragment: "extendLocking", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "getLockInfo", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "getBaseVotingWeightInfo", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "getLockedUntil", values: [PromiseOrValue<string>]): string;
encodeFunctionData(functionFragment: "getVotingWeight", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
encodeFunctionData(functionFragment: "getLockedAmount", values: [PromiseOrValue<string>]): string;
decodeFunctionResult(functionFragment: "delegationInfos", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "lockInfos", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "lock", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "announceUnlock", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "unlock", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "forceUnlock", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "announceNewVotingAgent", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "setNewVotingAgent", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "extendLocking", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getLockInfo", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getBaseVotingWeightInfo", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getLockedUntil", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getVotingWeight", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "getLockedAmount", data: BytesLike): Result;
events: {
"LockedAmountChanged(address,address,uint256)": EventFragment;
"NewVotingAgentAnnounced(address,address,address)": EventFragment;
"PendingUnlockAmountChanged(address,address,uint256)": EventFragment;
"PendingUnlockChanged(address,address,uint256,uint256)": EventFragment;
"VotingAgentChanged(address,address,uint256)": EventFragment;
};
getEvent(nameOrSignatureOrTopic: "LockedAmountChanged"): EventFragment;
getEvent(nameOrSignatureOrTopic: "NewVotingAgentAnnounced"): EventFragment;
getEvent(nameOrSignatureOrTopic: "PendingUnlockAmountChanged"): EventFragment;
getEvent(nameOrSignatureOrTopic: "PendingUnlockChanged"): EventFragment;
getEvent(nameOrSignatureOrTopic: "VotingAgentChanged"): EventFragment;
}
export interface LockedAmountChangedEventObject {
_tokenLockSource: string;
_who: string;
_newLockedAmount: BigNumber;
}
export declare type LockedAmountChangedEvent = TypedEvent<[
string,
string,
BigNumber
], LockedAmountChangedEventObject>;
export declare type LockedAmountChangedEventFilter = TypedEventFilter<LockedAmountChangedEvent>;
export interface NewVotingAgentAnnouncedEventObject {
_who: string;
_prevVotingAgent: string;
_newVotingAgent: string;
}
export declare type NewVotingAgentAnnouncedEvent = TypedEvent<[
string,
string,
string
], NewVotingAgentAnnouncedEventObject>;
export declare type NewVotingAgentAnnouncedEventFilter = TypedEventFilter<NewVotingAgentAnnouncedEvent>;
export interface PendingUnlockAmountChangedEventObject {
_tokenLockSource: string;
_who: string;
_newPendingUnlockAmount: BigNumber;
}
export declare type PendingUnlockAmountChangedEvent = TypedEvent<[
string,
string,
BigNumber
], PendingUnlockAmountChangedEventObject>;
export declare type PendingUnlockAmountChangedEventFilter = TypedEventFilter<PendingUnlockAmountChangedEvent>;
export interface PendingUnlockChangedEventObject {
_tokenLockSource: string;
_who: string;
_newPendingUnlockAmount: BigNumber;
_newPendingUnlockTime: BigNumber;
}
export declare type PendingUnlockChangedEvent = TypedEvent<[
string,
string,
BigNumber,
BigNumber
], PendingUnlockChangedEventObject>;
export declare type PendingUnlockChangedEventFilter = TypedEventFilter<PendingUnlockChangedEvent>;
export interface VotingAgentChangedEventObject {
_who: string;
_votingAgent: string;
_delegatedAmount: BigNumber;
}
export declare type VotingAgentChangedEvent = TypedEvent<[
string,
string,
BigNumber
], VotingAgentChangedEventObject>;
export declare type VotingAgentChangedEventFilter = TypedEventFilter<VotingAgentChangedEvent>;
export interface VotingWeightProxy extends BaseContract {
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
interface: VotingWeightProxyInterface;
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
listeners(eventName?: string): Array<Listener>;
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
removeAllListeners(eventName?: string): this;
off: OnEvent<this>;
on: OnEvent<this>;
once: OnEvent<this>;
removeListener: OnEvent<this>;
functions: {
delegationInfos(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
BigNumber,
string,
boolean,
BigNumber
] & {
receivedWeight: BigNumber;
votingAgent: string;
isPending: boolean;
votingAgentPassOverTime: BigNumber;
}>;
lockInfos(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
BigNumber,
BigNumber,
BigNumber,
BigNumber
] & {
lockedAmount: BigNumber;
lockedUntil: BigNumber;
pendingUnlockAmount: BigNumber;
pendingUnlockTime: BigNumber;
}>;
initialize(_registry: PromiseOrValue<string>, _tokenLockSourcesKeys: PromiseOrValue<string>[], _votingContractsKeys: PromiseOrValue<string>[], overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
lock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
announceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _newUnlockTime: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
unlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
forceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
announceNewVotingAgent(_newAgent: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
setNewVotingAgent(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
extendLocking(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
getLockInfo(_tokenLockSource: PromiseOrValue<string>, _who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[VotingLockInfoStructOutput]>;
getBaseVotingWeightInfo(_user: PromiseOrValue<string>, _votingEndTime: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BaseVotingWeightInfoStructOutput]>;
getLockedUntil(_user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
getVotingWeight(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber]>;
getLockedAmount(_who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
};
delegationInfos(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
BigNumber,
string,
boolean,
BigNumber
] & {
receivedWeight: BigNumber;
votingAgent: string;
isPending: boolean;
votingAgentPassOverTime: BigNumber;
}>;
lockInfos(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
BigNumber,
BigNumber,
BigNumber,
BigNumber
] & {
lockedAmount: BigNumber;
lockedUntil: BigNumber;
pendingUnlockAmount: BigNumber;
pendingUnlockTime: BigNumber;
}>;
initialize(_registry: PromiseOrValue<string>, _tokenLockSourcesKeys: PromiseOrValue<string>[], _votingContractsKeys: PromiseOrValue<string>[], overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
lock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
announceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _newUnlockTime: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
unlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
forceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
announceNewVotingAgent(_newAgent: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
setNewVotingAgent(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
extendLocking(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<ContractTransaction>;
getLockInfo(_tokenLockSource: PromiseOrValue<string>, _who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<VotingLockInfoStructOutput>;
getBaseVotingWeightInfo(_user: PromiseOrValue<string>, _votingEndTime: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BaseVotingWeightInfoStructOutput>;
getLockedUntil(_user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
getVotingWeight(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
getLockedAmount(_who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
callStatic: {
delegationInfos(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
BigNumber,
string,
boolean,
BigNumber
] & {
receivedWeight: BigNumber;
votingAgent: string;
isPending: boolean;
votingAgentPassOverTime: BigNumber;
}>;
lockInfos(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
BigNumber,
BigNumber,
BigNumber,
BigNumber
] & {
lockedAmount: BigNumber;
lockedUntil: BigNumber;
pendingUnlockAmount: BigNumber;
pendingUnlockTime: BigNumber;
}>;
initialize(_registry: PromiseOrValue<string>, _tokenLockSourcesKeys: PromiseOrValue<string>[], _votingContractsKeys: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<void>;
lock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
announceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _newUnlockTime: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
unlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
forceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
announceNewVotingAgent(_newAgent: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
setNewVotingAgent(overrides?: CallOverrides): Promise<void>;
extendLocking(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
getLockInfo(_tokenLockSource: PromiseOrValue<string>, _who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<VotingLockInfoStructOutput>;
getBaseVotingWeightInfo(_user: PromiseOrValue<string>, _votingEndTime: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BaseVotingWeightInfoStructOutput>;
getLockedUntil(_user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
getVotingWeight(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
getLockedAmount(_who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
};
filters: {
"LockedAmountChanged(address,address,uint256)"(_tokenLockSource?: null, _who?: PromiseOrValue<string> | null, _newLockedAmount?: null): LockedAmountChangedEventFilter;
LockedAmountChanged(_tokenLockSource?: null, _who?: PromiseOrValue<string> | null, _newLockedAmount?: null): LockedAmountChangedEventFilter;
"NewVotingAgentAnnounced(address,address,address)"(_who?: PromiseOrValue<string> | null, _prevVotingAgent?: null, _newVotingAgent?: null): NewVotingAgentAnnouncedEventFilter;
NewVotingAgentAnnounced(_who?: PromiseOrValue<string> | null, _prevVotingAgent?: null, _newVotingAgent?: null): NewVotingAgentAnnouncedEventFilter;
"PendingUnlockAmountChanged(address,address,uint256)"(_tokenLockSource?: null, _who?: PromiseOrValue<string> | null, _newPendingUnlockAmount?: null): PendingUnlockAmountChangedEventFilter;
PendingUnlockAmountChanged(_tokenLockSource?: null, _who?: PromiseOrValue<string> | null, _newPendingUnlockAmount?: null): PendingUnlockAmountChangedEventFilter;
"PendingUnlockChanged(address,address,uint256,uint256)"(_tokenLockSource?: null, _who?: PromiseOrValue<string> | null, _newPendingUnlockAmount?: null, _newPendingUnlockTime?: null): PendingUnlockChangedEventFilter;
PendingUnlockChanged(_tokenLockSource?: null, _who?: PromiseOrValue<string> | null, _newPendingUnlockAmount?: null, _newPendingUnlockTime?: null): PendingUnlockChangedEventFilter;
"VotingAgentChanged(address,address,uint256)"(_who?: PromiseOrValue<string> | null, _votingAgent?: PromiseOrValue<string> | null, _delegatedAmount?: null): VotingAgentChangedEventFilter;
VotingAgentChanged(_who?: PromiseOrValue<string> | null, _votingAgent?: PromiseOrValue<string> | null, _delegatedAmount?: null): VotingAgentChangedEventFilter;
};
estimateGas: {
delegationInfos(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
lockInfos(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
initialize(_registry: PromiseOrValue<string>, _tokenLockSourcesKeys: PromiseOrValue<string>[], _votingContractsKeys: PromiseOrValue<string>[], overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
lock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
announceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _newUnlockTime: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
unlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
forceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
announceNewVotingAgent(_newAgent: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
setNewVotingAgent(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
extendLocking(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<BigNumber>;
getLockInfo(_tokenLockSource: PromiseOrValue<string>, _who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
getBaseVotingWeightInfo(_user: PromiseOrValue<string>, _votingEndTime: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
getLockedUntil(_user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
getVotingWeight(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
getLockedAmount(_who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
};
populateTransaction: {
delegationInfos(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
lockInfos(arg0: PromiseOrValue<string>, arg1: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
initialize(_registry: PromiseOrValue<string>, _tokenLockSourcesKeys: PromiseOrValue<string>[], _votingContractsKeys: PromiseOrValue<string>[], overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
lock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
announceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, _newUnlockTime: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
unlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
forceUnlock(_who: PromiseOrValue<string>, _amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
announceNewVotingAgent(_newAgent: PromiseOrValue<string>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
setNewVotingAgent(overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
extendLocking(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
from?: PromiseOrValue<string>;
}): Promise<PopulatedTransaction>;
getLockInfo(_tokenLockSource: PromiseOrValue<string>, _who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
getBaseVotingWeightInfo(_user: PromiseOrValue<string>, _votingEndTime: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
getLockedUntil(_user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
getVotingWeight(_who: PromiseOrValue<string>, _lockNeededUntil: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
getLockedAmount(_who: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
};
}