Skip to main content
Version: next

Interface: UnirepVoting

contracts.examples.UnirepVoting

Hierarchy

  • BaseContract

    UnirepVoting

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

BaseContract._deployedPromise

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:100


_runningEvents

_runningEvents: Object

Index signature

[eventTag: string]: RunningEvent

Inherited from

BaseContract._runningEvents

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:101


_wrappedEmits

_wrappedEmits: Object

Index signature

[eventTag: string]: (...args: any[]) => void

Inherited from

BaseContract._wrappedEmits

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:104


address

Readonly address: string

Inherited from

BaseContract.address

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:79


callStatic

callStatic: Object

Type declaration

NameType
claimPrize(receiver: string, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: CallOverrides) => Promise<void>
counts(arg0: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
epochKeyHelper(overrides?: CallOverrides) => Promise<string>
joinProject(projectID: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: CallOverrides) => Promise<void>
nft(overrides?: CallOverrides) => Promise<string>
numProjects(overrides?: CallOverrides) => Promise<BigNumber>
participants(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
projectData(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
repHelper(overrides?: CallOverrides) => Promise<string>
scores(arg0: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
unirep(overrides?: CallOverrides) => Promise<string>
userSignUp(publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: CallOverrides) => Promise<void>
vote(projectID: BigNumberish, option: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: CallOverrides) => Promise<void>
voted(arg0: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
winnerScore(overrides?: CallOverrides) => Promise<BigNumber>

Overrides

BaseContract.callStatic

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:293


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

BaseContract.deployTransaction

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:99


estimateGas

estimateGas: Object

Type declaration

NameType
claimPrize(receiver: string, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<BigNumber>
counts(arg0: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
epochKeyHelper(overrides?: CallOverrides) => Promise<BigNumber>
joinProject(projectID: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<BigNumber>
nft(overrides?: CallOverrides) => Promise<BigNumber>
numProjects(overrides?: CallOverrides) => Promise<BigNumber>
participants(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
projectData(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
repHelper(overrides?: CallOverrides) => Promise<BigNumber>
scores(arg0: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
unirep(overrides?: CallOverrides) => Promise<BigNumber>
userSignUp(publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<BigNumber>
vote(projectID: BigNumberish, option: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<BigNumber>
voted(arg0: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
winnerScore(overrides?: CallOverrides) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:355


filters

filters: Object

Overrides

BaseContract.filters

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:353


functions

functions: Object

Type declaration

NameType
claimPrize(receiver: string, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
counts(arg0: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
epochKeyHelper(overrides?: CallOverrides) => Promise<[string]>
joinProject(projectID: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
nft(overrides?: CallOverrides) => Promise<[string]>
numProjects(overrides?: CallOverrides) => Promise<[BigNumber]>
participants(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
projectData(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
repHelper(overrides?: CallOverrides) => Promise<[string]>
scores(arg0: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
unirep(overrides?: CallOverrides) => Promise<[string]>
userSignUp(publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
vote(projectID: BigNumberish, option: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
voted(arg0: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
winnerScore(overrides?: CallOverrides) => Promise<[BigNumber]>

Overrides

BaseContract.functions

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:175


interface

interface: UnirepVotingInterface

Overrides

BaseContract.interface

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:154


off

off: OnEvent<UnirepVoting>

Overrides

BaseContract.off

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:170


on

on: OnEvent<UnirepVoting>

Overrides

BaseContract.on

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:171


once

once: OnEvent<UnirepVoting>

Overrides

BaseContract.once

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:172


populateTransaction

populateTransaction: Object

Type declaration

NameType
claimPrize(receiver: string, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
counts(arg0: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
epochKeyHelper(overrides?: CallOverrides) => Promise<PopulatedTransaction>
joinProject(projectID: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
nft(overrides?: CallOverrides) => Promise<PopulatedTransaction>
numProjects(overrides?: CallOverrides) => Promise<PopulatedTransaction>
participants(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
projectData(arg0: BigNumberish, arg1: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
repHelper(overrides?: CallOverrides) => Promise<PopulatedTransaction>
scores(arg0: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
unirep(overrides?: CallOverrides) => Promise<PopulatedTransaction>
userSignUp(publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
vote(projectID: BigNumberish, option: BigNumberish, publicSignals: BigNumberish[], proof: BigNumberish[], overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
voted(arg0: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
winnerScore(overrides?: CallOverrides) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:415


provider

Readonly provider: Provider

Inherited from

BaseContract.provider

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:82


removeListener

removeListener: OnEvent<UnirepVoting>

Overrides

BaseContract.removeListener

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:173


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

BaseContract.resolvedAddress

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:98


signer

Readonly signer: Signer

Inherited from

BaseContract.signer

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:81

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

NameType
runningEventRunningEvent

Returns

void

Inherited from

BaseContract._checkRunningEvents

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:121


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<Contract>

Inherited from

BaseContract._deployed

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:114


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

NameType
runningEventRunningEvent
logLog
listenerListener

Returns

Event

Inherited from

BaseContract._wrapEvent

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:122


attach

attach(addressOrName): UnirepVoting

Parameters

NameType
addressOrNamestring

Returns

UnirepVoting

Overrides

BaseContract.attach

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:151


claimPrize

claimPrize(receiver, publicSignals, proof, overrides?): Promise<ContractTransaction>

Parameters

NameType
receiverstring
publicSignalsBigNumberish[]
proofBigNumberish[]
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:235


connect

connect(signerOrProvider): UnirepVoting

Parameters

NameType
signerOrProviderstring | Provider | Signer

Returns

UnirepVoting

Overrides

BaseContract.connect

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:150


counts

counts(arg0, overrides?): Promise<BigNumber>

Parameters

NameType
arg0BigNumberish
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:242


deployed

deployed(): Promise<UnirepVoting>

Returns

Promise<UnirepVoting>

Overrides

BaseContract.deployed

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:152


emit

emit(eventName, ...args): boolean

Parameters

NameType
eventNamestring | EventFilter
...argsany[]

Returns

boolean

Inherited from

BaseContract.emit

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:127


epochKeyHelper

epochKeyHelper(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:244


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

NameType
overrides?TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

BaseContract.fallback

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:115


joinProject

joinProject(projectID, publicSignals, proof, overrides?): Promise<ContractTransaction>

Parameters

NameType
projectIDBigNumberish
publicSignalsBigNumberish[]
proofBigNumberish[]
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:246


listenerCount

listenerCount(eventName?): number

Parameters

NameType
eventName?string | EventFilter

Returns

number

Inherited from

BaseContract.listenerCount

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:128


listeners

listeners<TEvent>(eventFilter?): TypedListener<TEvent>[]

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilter?TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Overrides

BaseContract.listeners

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:162

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:165


nft

nft(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:253


numProjects

numProjects(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:255


participants

participants(arg0, arg1, overrides?): Promise<BigNumber>

Parameters

NameType
arg0BigNumberish
arg1BigNumberish
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:257


projectData

projectData(arg0, arg1, overrides?): Promise<BigNumber>

Parameters

NameType
arg0BigNumberish
arg1BigNumberish
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:263


queryFilter

queryFilter<TEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TEvent[]>

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventTypedEventFilter<TEvent>
fromBlockOrBlockhash?string | number
toBlock?string | number

Returns

Promise<TEvent[]>

Overrides

BaseContract.queryFilter

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:156


removeAllListeners

removeAllListeners<TEvent>(eventFilter): UnirepVoting

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

UnirepVoting

Overrides

BaseContract.removeAllListeners

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:166

removeAllListeners(eventName?): UnirepVoting

Parameters

NameType
eventName?string

Returns

UnirepVoting

Overrides

BaseContract.removeAllListeners

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:169


repHelper

repHelper(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:269


scores

scores(arg0, overrides?): Promise<BigNumber>

Parameters

NameType
arg0BigNumberish
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:271


unirep

unirep(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:273


userSignUp

userSignUp(publicSignals, proof, overrides?): Promise<ContractTransaction>

Parameters

NameType
publicSignalsBigNumberish[]
proofBigNumberish[]
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:275


vote

vote(projectID, option, publicSignals, proof, overrides?): Promise<ContractTransaction>

Parameters

NameType
projectIDBigNumberish
optionBigNumberish
publicSignalsBigNumberish[]
proofBigNumberish[]
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:281


voted

voted(arg0, overrides?): Promise<BigNumber>

Parameters

NameType
arg0BigNumberish
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:289


winnerScore

winnerScore(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/UnirepVoting.ts:291