Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / MockHatsProtocol__factory

Class: MockHatsProtocol__factory

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:55

Extends​

  • ContractFactory

Constructors​

Constructor​

new MockHatsProtocol__factory(...args): MockHatsProtocol__factory

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:56

Parameters​

args​

...MockHatsProtocolConstructorParams

Returns​

MockHatsProtocol__factory

Overrides​

ContractFactory.constructor

Properties​

abi​

readonly static abi: readonly [{ inputs: readonly [{ internalType: "address"; name: "account"; type: "address"; }, { internalType: "uint256"; name: "hat"; type: "uint256"; }]; name: "isWearerOfHat"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "pure"; type: "function"; }] = _abi

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:81


bytecode​

readonly static bytecode: "0x6080604052348015600f57600080fd5b5060e18061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c80634352409a14602d575b600080fd5b603c60383660046075565b6050565b604051901515815260200160405180910390f35b6000816001148060605750816002145b15606b57506001606f565b5060005b92915050565b60008060408385031215608757600080fd5b82356001600160a01b0381168114609d57600080fd5b94602093909301359350505056fea264697066735822122063454a2010925537de7c69d9944d8190835d49df2c5cac3efe197ca415e7c16c64736f6c634300081c0033" = _bytecode

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:80

Methods​

connect()​

connect(runner): MockHatsProtocol__factory

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:76

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

Parameters​

runner​

ContractRunner | null

Returns​

MockHatsProtocol__factory

Overrides​

ContractFactory.connect


deploy()​

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

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:69

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<MockHatsProtocol & object>

Overrides​

ContractFactory.deploy


getDeployTransaction()​

getDeployTransaction(overrides?): Promise<ContractDeployTransaction>

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:64

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?): MockHatsProtocol

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:85

Parameters​

address​

string

runner?​

ContractRunner | null

Returns​

MockHatsProtocol


createInterface()​

static createInterface(): MockHatsProtocolInterface

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol__factory.ts:82

Returns​

MockHatsProtocolInterface