Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / MockSemaphore__factory

Class: MockSemaphore__factory

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:136

Extends

  • ContractFactory

Constructors

Constructor

new MockSemaphore__factory(...args): MockSemaphore__factory

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:137

Parameters

args

...MockSemaphoreConstructorParams

Returns

MockSemaphore__factory

Overrides

ContractFactory.constructor

Properties

abi

readonly static abi: readonly [{ inputs: readonly [{ internalType: "uint256"; name: "_groupId"; type: "uint256"; }]; stateMutability: "nonpayable"; type: "constructor"; }, { inputs: readonly []; name: "flipValid"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "groupId"; outputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "valid"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "_groupId"; type: "uint256"; }, { components: readonly [{ internalType: "uint256"; name: "merkleTreeDepth"; type: "uint256"; }, { internalType: "uint256"; name: "merkleTreeRoot"; type: "uint256"; }, { internalType: "uint256"; name: "nullifier"; type: "uint256"; }, { internalType: "uint256"; name: "message"; type: "uint256"; }, { internalType: "uint256"; name: "scope"; type: "uint256"; }, { internalType: "uint256[8]"; name: "points"; type: "uint256[8]"; }]; internalType: "struct ISemaphore.SemaphoreProof"; name: "proof"; type: "tuple"; }]; name: "verifyProof"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }] = _abi

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:166


bytecode

readonly static bytecode: "0x60a06040526000805460ff19166001179055348015601c57600080fd5b506040516101bc3803806101bc8339810160408190526039916040565b6080526058565b600060208284031215605157600080fd5b5051919050565b60805161014a6100726000396000609d015261014a6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80633d45d9ea14610051578063456f41881461006a578063a0f44c9214610098578063c1991219146100cd575b600080fd5b6100686000805460ff19811660ff90911615179055565b005b6100836100783660046100da565b505060005460ff1690565b60405190151581526020015b60405180910390f35b6100bf7f000000000000000000000000000000000000000000000000000000000000000081565b60405190815260200161008f565b6000546100839060ff1681565b6000808284036101c08112156100ef57600080fd5b833592506101a0601f198201121561010657600080fd5b50602083019050925092905056fea2646970667358221220178a1c4e9c59382eb746a995374ccbae0d1fb675a150e3c755b606f2d6b0106664736f6c634300081c0033" = _bytecode

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:165

Methods

connect()

connect(runner): MockSemaphore__factory

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:161

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

Parameters

runner

ContractRunner | null

Returns

MockSemaphore__factory

Overrides

ContractFactory.connect


deploy()

deploy(_groupId, overrides?): Promise<MockSemaphore & object>

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:151

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

_groupId

BigNumberish

overrides?

NonPayableOverrides & object

Returns

Promise<MockSemaphore & object>

Overrides

ContractFactory.deploy


getDeployTransaction()

getDeployTransaction(_groupId, overrides?): Promise<ContractDeployTransaction>

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:145

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

Parameters

_groupId

BigNumberish

overrides?

NonPayableOverrides & object

Returns

Promise<ContractDeployTransaction>

Overrides

ContractFactory.getDeployTransaction


connect()

static connect(address, runner?): MockSemaphore

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:170

Parameters

address

string

runner?

ContractRunner | null

Returns

MockSemaphore


createInterface()

static createInterface(): MockSemaphoreInterface

Defined in: contracts/typechain-types/factories/contracts/mocks/MockSemaphore__factory.ts:167

Returns

MockSemaphoreInterface