Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / ERC20VotesInitialVoiceCreditProxy__factory

Class: ERC20VotesInitialVoiceCreditProxy__factory

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:132

Extends

  • ContractFactory

Constructors

Constructor

new ERC20VotesInitialVoiceCreditProxy__factory(...args): ERC20VotesInitialVoiceCreditProxy__factory

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:133

Parameters

args

...ERC20VotesInitialVoiceCreditProxyConstructorParams

Returns

ERC20VotesInitialVoiceCreditProxy__factory

Overrides

ContractFactory.constructor

Properties

bytecode

readonly bytecode: string

Defined in: node_modules/.pnpm/[email protected]/node_modules/ethers/lib.commonjs/contract/factory.d.ts:20

The Contract deployment bytecode. Often called the initcode.

Inherited from

ContractFactory.bytecode


interface

readonly interface: Interface

Defined in: node_modules/.pnpm/[email protected]/node_modules/ethers/lib.commonjs/contract/factory.d.ts:16

The Contract Interface.

Inherited from

ContractFactory.interface


runner

readonly runner: null | ContractRunner

Defined in: node_modules/.pnpm/[email protected]/node_modules/ethers/lib.commonjs/contract/factory.d.ts:24

The ContractRunner to deploy the Contract as.

Inherited from

ContractFactory.runner


abi

readonly static abi: readonly [{ inputs: readonly []; name: "AlreadyInitialized"; type: "error"; }, { inputs: readonly []; name: "factor"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getAppendedBytes"; outputs: readonly [{ internalType: "bytes"; name: "appendedBytes"; type: "bytes"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "voter"; type: "address"; }, { internalType: "bytes"; name: ""; type: "bytes"; }]; name: "getVoiceCredits"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "initialize"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "initialized"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "snapshotBlock"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "token"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }] = _abi

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:160


bytecode

readonly static bytecode: "0x6080604052348015600f57600080fd5b506104948061001f6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638129fc1c1161005b5780638129fc1c146100c4578063b36543a9146100ce578063b41a4b19146100e1578063fc0c546a146100f657600080fd5b8063158ef93e146100825780631f90b2a5146100a457806354f703f8146100bb575b600080fd5b60005461008f9060ff1681565b60405190151581526020015b60405180910390f35b6100ad60015481565b60405190815260200161009b565b6100ad60035481565b6100cc610121565b005b6100ad6100dc3660046102ce565b61012b565b6100e96101c9565b60405161009b919061039a565b600254610109906001600160a01b031681565b6040516001600160a01b03909116815260200161009b565b6101296101d8565b565b600354600254600154604051630748d63560e31b8152600093926001600160a01b031691633a46b1a8916101779188916004016001600160a01b03929092168252602082015260400190565b602060405180830381865afa158015610194573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b891906103e8565b6101c29190610401565b9392505050565b60606101d3610234565b905090565b6101e061023f565b60006101ea610234565b90506000806000838060200190518101906102059190610423565b600192909255600280546001600160a01b0319166001600160a01b039290921691909117905560035550505050565b60606101d330610271565b60005460ff16156102625760405162dc149f60e41b815260040160405180910390fd5b6000805460ff19166001179055565b60405164ffffffffff602c19833b0116808252602090810190602d908301843c60408101815101604052919050565b6001600160a01b03811681146102b557600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b600080604083850312156102e157600080fd5b82356102ec816102a0565b9150602083013567ffffffffffffffff81111561030857600080fd5b8301601f8101851361031957600080fd5b803567ffffffffffffffff811115610333576103336102b8565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610362576103626102b8565b60405281815282820160200187101561037a57600080fd5b816020840160208301376000602083830101528093505050509250929050565b602081526000825180602084015260005b818110156103c857602081860181015160408684010152016103ab565b506000604082850101526040601f19601f83011684010191505092915050565b6000602082840312156103fa57600080fd5b5051919050565b60008261041e57634e487b7160e01b600052601260045260246000fd5b500490565b60008060006060848603121561043857600080fd5b8351602085015190935061044b816102a0565b604094909401519295939450919291505056fea2646970667358221220b58704815b48e443a7328fc9c4177b7e51617d908f169c7350b4bd4c3573fe1664736f6c634300081c0033" = _bytecode

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:159

Methods

attach()

attach(target): BaseContract & Omit<BaseContract, keyof BaseContract>

Defined in: node_modules/.pnpm/[email protected]/node_modules/ethers/lib.commonjs/contract/factory.d.ts:35

Parameters

target

string | Addressable

Returns

BaseContract & Omit<BaseContract, keyof BaseContract>

Inherited from

ContractFactory.attach


connect()

connect(runner): ERC20VotesInitialVoiceCreditProxy__factory

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:153

Return a new ContractFactory with the same ABI and bytecode, but connected to %%runner%%.

Parameters

runner

null | ContractRunner

Returns

ERC20VotesInitialVoiceCreditProxy__factory

Overrides

ContractFactory.connect


deploy()

deploy(overrides?): Promise<ERC20VotesInitialVoiceCreditProxy & object>

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:146

Resolves to the Contract deployed by passing %%args%% into the constructor.

This will resolve to the Contract before it has been deployed to the network, so the [[BaseContract-waitForDeployment]] should be used before sending any transactions to it.

Parameters

overrides?

NonPayableOverrides & object

Returns

Promise<ERC20VotesInitialVoiceCreditProxy & object>

Overrides

ContractFactory.deploy


getDeployTransaction()

getDeployTransaction(overrides?): Promise<ContractDeployTransaction>

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:141

Resolves to the transaction to deploy the contract, passing %%args%% into the constructor.

Parameters

overrides?

NonPayableOverrides & object

Returns

Promise<ContractDeployTransaction>

Overrides

ContractFactory.getDeployTransaction


connect()

static connect(address, runner?): ERC20VotesInitialVoiceCreditProxy

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:164

Parameters

address

string

runner?

null | ContractRunner

Returns

ERC20VotesInitialVoiceCreditProxy


createInterface()

static createInterface(): ERC20VotesInitialVoiceCreditProxyInterface

Defined in: packages/contracts/typechain-types/factories/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy__factory.ts:161

Returns

ERC20VotesInitialVoiceCreditProxyInterface


fromSolidity()

static fromSolidity<A, I>(output, runner?): ContractFactory<A, I>

Defined in: node_modules/.pnpm/[email protected]/node_modules/ethers/lib.commonjs/contract/factory.d.ts:60

Create a new ContractFactory from the standard Solidity JSON output.

Type Parameters

A

A extends any[] = any[]

I

I = ContractInterface

Parameters

output

any

runner?

ContractRunner

Returns

ContractFactory<A, I>

Inherited from

ContractFactory.fromSolidity