Skip to main content
Version: 2.1.x

Interface: VotingPrizeNFT

contracts.examples.VotingPrizeNFT

Hierarchy

  • BaseContract

    VotingPrizeNFT

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
approve(to: string, tokenId: BigNumberish, overrides?: CallOverrides) => Promise<void>
awardItem(winner: string, overrides?: CallOverrides) => Promise<BigNumber>
balanceOf(owner: string, overrides?: CallOverrides) => Promise<BigNumber>
getApproved(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<string>
isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides) => Promise<boolean>
metadataURI(overrides?: CallOverrides) => Promise<string>
name(overrides?: CallOverrides) => Promise<string>
owner(overrides?: CallOverrides) => Promise<string>
ownerOf(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<string>
safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: CallOverrides) => Promise<void>
safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: CallOverrides) => Promise<void>
setApprovalForAll(operator: string, approved: boolean, overrides?: CallOverrides) => Promise<void>
setVotingAddress(_voting: string, overrides?: CallOverrides) => Promise<void>
supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides) => Promise<boolean>
symbol(overrides?: CallOverrides) => Promise<string>
tokenURI(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<string>
transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: CallOverrides) => Promise<void>
voting(overrides?: CallOverrides) => Promise<string>

Overrides

BaseContract.callStatic

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:433


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
approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
awardItem(winner: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
balanceOf(owner: string, overrides?: CallOverrides) => Promise<BigNumber>
getApproved(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides) => Promise<BigNumber>
metadataURI(overrides?: CallOverrides) => Promise<BigNumber>
name(overrides?: CallOverrides) => Promise<BigNumber>
owner(overrides?: CallOverrides) => Promise<BigNumber>
ownerOf(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setVotingAddress(_voting: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides) => Promise<BigNumber>
symbol(overrides?: CallOverrides) => Promise<BigNumber>
tokenURI(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
voting(overrides?: CallOverrides) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:552


filters

filters: Object

Type declaration

NameType
Approval(owner?: null | string, approved?: null | string, tokenId?: null | BigNumberish) => ApprovalEventFilter
Approval(address,address,uint256)(owner?: null | string, approved?: null | string, tokenId?: null | BigNumberish) => ApprovalEventFilter
ApprovalForAll(owner?: null | string, operator?: null | string, approved?: null) => ApprovalForAllEventFilter
ApprovalForAll(address,address,bool)(owner?: null | string, operator?: null | string, approved?: null) => ApprovalForAllEventFilter
BatchMetadataUpdate(_fromTokenId?: null, _toTokenId?: null) => BatchMetadataUpdateEventFilter
BatchMetadataUpdate(uint256,uint256)(_fromTokenId?: null, _toTokenId?: null) => BatchMetadataUpdateEventFilter
MetadataUpdate(_tokenId?: null) => MetadataUpdateEventFilter
MetadataUpdate(uint256)(_tokenId?: null) => MetadataUpdateEventFilter
Transfer(from?: null | string, to?: null | string, tokenId?: null | BigNumberish) => TransferEventFilter
Transfer(address,address,uint256)(from?: null | string, to?: null | string, tokenId?: null | BigNumberish) => TransferEventFilter

Overrides

BaseContract.filters

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:505


functions

functions: Object

Type declaration

NameType
approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
awardItem(winner: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
balanceOf(owner: string, overrides?: CallOverrides) => Promise<[BigNumber]>
getApproved(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<[string]>
isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides) => Promise<[boolean]>
metadataURI(overrides?: CallOverrides) => Promise<[string]>
name(overrides?: CallOverrides) => Promise<[string]>
owner(overrides?: CallOverrides) => Promise<[string]>
ownerOf(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<[string]>
safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setVotingAddress(_voting: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides) => Promise<[boolean]>
symbol(overrides?: CallOverrides) => Promise<[string]>
tokenURI(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<[string]>
transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
voting(overrides?: CallOverrides) => Promise<[string]>

Overrides

BaseContract.functions

Defined in

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


interface

interface: VotingPrizeNFTInterface

Overrides

BaseContract.interface

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:252


off

off: OnEvent<VotingPrizeNFT>

Overrides

BaseContract.off

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:268


on

on: OnEvent<VotingPrizeNFT>

Overrides

BaseContract.on

Defined in

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


once

once: OnEvent<VotingPrizeNFT>

Overrides

BaseContract.once

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:270


populateTransaction

populateTransaction: Object

Type declaration

NameType
approve(to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
awardItem(winner: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
balanceOf(owner: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getApproved(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
isApprovedForAll(owner: string, operator: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
metadataURI(overrides?: CallOverrides) => Promise<PopulatedTransaction>
name(overrides?: CallOverrides) => Promise<PopulatedTransaction>
owner(overrides?: CallOverrides) => Promise<PopulatedTransaction>
ownerOf(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
safeTransferFrom(address,address,uint256)(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
safeTransferFrom(address,address,uint256,bytes)(from: string, to: string, tokenId: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setVotingAddress(_voting: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
symbol(overrides?: CallOverrides) => Promise<PopulatedTransaction>
tokenURI(tokenId: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
transferFrom(from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
voting(overrides?: CallOverrides) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:636


provider

Readonly provider: Provider

Inherited from

BaseContract.provider

Defined in

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


removeListener

removeListener: OnEvent<VotingPrizeNFT>

Overrides

BaseContract.removeListener

Defined in

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


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


approve

approve(to, tokenId, overrides?): Promise<ContractTransaction>

Parameters

NameType
tostring
tokenIdBigNumberish
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:357


attach

attach(addressOrName): VotingPrizeNFT

Parameters

NameType
addressOrNamestring

Returns

VotingPrizeNFT

Overrides

BaseContract.attach

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:249


awardItem

awardItem(winner, overrides?): Promise<ContractTransaction>

Parameters

NameType
winnerstring
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:363


balanceOf

balanceOf(owner, overrides?): Promise<BigNumber>

Parameters

NameType
ownerstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:368


connect

connect(signerOrProvider): VotingPrizeNFT

Parameters

NameType
signerOrProviderstring | Provider | Signer

Returns

VotingPrizeNFT

Overrides

BaseContract.connect

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:248


deployed

deployed(): Promise<VotingPrizeNFT>

Returns

Promise<VotingPrizeNFT>

Overrides

BaseContract.deployed

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:250


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


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


getApproved

getApproved(tokenId, overrides?): Promise<string>

Parameters

NameType
tokenIdBigNumberish
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:370


isApprovedForAll

isApprovedForAll(owner, operator, overrides?): Promise<boolean>

Parameters

NameType
ownerstring
operatorstring
overrides?CallOverrides

Returns

Promise<boolean>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:375


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/VotingPrizeNFT.ts:260

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

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


metadataURI

metadataURI(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:381


name

name(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:383


owner

owner(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:385


ownerOf

ownerOf(tokenId, overrides?): Promise<string>

Parameters

NameType
tokenIdBigNumberish
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:387


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/VotingPrizeNFT.ts:254


removeAllListeners

removeAllListeners<TEvent>(eventFilter): VotingPrizeNFT

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

VotingPrizeNFT

Overrides

BaseContract.removeAllListeners

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:264

removeAllListeners(eventName?): VotingPrizeNFT

Parameters

NameType
eventName?string

Returns

VotingPrizeNFT

Overrides

BaseContract.removeAllListeners

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:267


safeTransferFrom(address,address,uint256)

safeTransferFrom(address,address,uint256)(from, to, tokenId, overrides?): Promise<ContractTransaction>

Parameters

NameType
fromstring
tostring
tokenIdBigNumberish
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:389


safeTransferFrom(address,address,uint256,bytes)

safeTransferFrom(address,address,uint256,bytes)(from, to, tokenId, data, overrides?): Promise<ContractTransaction>

Parameters

NameType
fromstring
tostring
tokenIdBigNumberish
dataBytesLike
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:396


setApprovalForAll

setApprovalForAll(operator, approved, overrides?): Promise<ContractTransaction>

Parameters

NameType
operatorstring
approvedboolean
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:404


setVotingAddress

setVotingAddress(_voting, overrides?): Promise<ContractTransaction>

Parameters

NameType
_votingstring
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:410


supportsInterface

supportsInterface(interfaceId, overrides?): Promise<boolean>

Parameters

NameType
interfaceIdBytesLike
overrides?CallOverrides

Returns

Promise<boolean>

Defined in

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


symbol

symbol(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:420


tokenURI

tokenURI(tokenId, overrides?): Promise<string>

Parameters

NameType
tokenIdBigNumberish
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:422


transferFrom

transferFrom(from, to, tokenId, overrides?): Promise<ContractTransaction>

Parameters

NameType
fromstring
tostring
tokenIdBigNumberish
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:424


voting

voting(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/contracts/typechain/contracts/examples/VotingPrizeNFT.ts:431