Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / Hasher__factory

Class: Hasher__factory

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:153

Extends

  • ContractFactory

Constructors

Constructor

new Hasher__factory(...args): Hasher__factory

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:154

Parameters

args

...HasherConstructorParams

Returns

Hasher__factory

Overrides

ContractFactory.constructor

Properties

abi

readonly static abi: readonly [{ inputs: readonly [{ internalType: "uint256[2]"; name: "array"; type: "uint256[2]"; }]; name: "hash2"; outputs: readonly [{ internalType: "uint256"; name: "result"; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint256[3]"; name: "array"; type: "uint256[3]"; }]; name: "hash3"; outputs: readonly [{ internalType: "uint256"; name: "result"; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint256[4]"; name: "array"; type: "uint256[4]"; }]; name: "hash4"; outputs: readonly [{ internalType: "uint256"; name: "result"; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint256[5]"; name: "array"; type: "uint256[5]"; }]; name: "hash5"; outputs: readonly [{ internalType: "uint256"; name: "result"; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: "left"; type: "uint256"; }, { internalType: "uint256"; name: "right"; type: "uint256"; }]; name: "hashLeftRight"; outputs: readonly [{ internalType: "uint256"; name: "result"; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "uint256[]"; name: "array"; type: "uint256[]"; }]; name: "sha256Hash"; outputs: readonly [{ internalType: "uint256"; name: "result"; type: "uint256"; }]; stateMutability: "pure"; type: "function"; }] = _abi

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:214


bytecode

readonly static bytecode: "0x6080604052348015600f57600080fd5b506106c18061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80633dfb88b21461006757806358bfc3791461008c5780635bb939951461009f57806362a361bb146100b25780639cfced97146100c5578063bea140b3146100d8575b600080fd5b61007a61007536600461033e565b6100eb565b60405190815260200160405180910390f35b61007a61009a3660046103a6565b61016c565b61007a6100ad366004610457565b610206565b61007a6100c0366004610479565b61022b565b61007a6100d33660046104bc565b610265565b61007a6100e63660046104ff565b61029f565b60405163248f667760e01b815260009073__$ce9c2c925f157047e54fa833ec4e61409f$__9063248f667790610125908590600401610542565b602060405180830381865af4158015610142573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101669190610573565b92915050565b60007f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016002836040516020016101a2919061058c565b60408051601f19818403018152908290526101bc916105c2565b602060405180830381855afa1580156101d9573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906101fc9190610573565b61016691906105f1565b60006102106102d9565b838152602081018390526102238161022b565b949350505050565b6040516314d2f97b60e11b815260009073__$6574937f64fc1d7710ec0e28b7a36713bb$__906329a5f2f690610125908590600401610613565b604051630926f44b60e31b815260009073__$20527677031d76601747626a9845039fe4$__90634937a2589061012590859060040161063b565b6040516304b98e1d60e31b815260009073__$dc01a9744591ab014bc46a3b7671cdaefb$__906325cc70e890610125908590600401610663565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610336576103366102f7565b604052919050565b60006080828403121561035057600080fd5b600083601f840112610360578081fd5b8061036b608061030d565b9050809150608084018581111561038157600080fd5b845b8181101561039b578035845260209384019301610383565b509095945050505050565b6000602082840312156103b857600080fd5b813567ffffffffffffffff8111156103cf57600080fd5b8201601f810184136103e057600080fd5b803567ffffffffffffffff8111156103fa576103fa6102f7565b8060051b61040a6020820161030d565b9182526020818401810192908101908784111561042657600080fd5b6020850194505b8385101561044c5784358083526020958601959093509091019061042d565b979650505050505050565b6000806040838503121561046a57600080fd5b50508035926020909101359150565b60006040828403121561048b57600080fd5b600083601f84011261049b578081fd5b806104a6604061030d565b9050809150604084018581111561038157600080fd5b600060a082840312156104ce57600080fd5b600083601f8401126104de578081fd5b806104e960a061030d565b905080915060a084018581111561038157600080fd5b60006060828403121561051157600080fd5b600083601f840112610521578081fd5b8061052c606061030d565b9050809150606084018581111561038157600080fd5b60808101818360005b600481101561056a57815183526020928301929091019060010161054b565b50505092915050565b60006020828403121561058557600080fd5b5051919050565b8151600090829060208501835b828110156105b7578151845260209384019390910190600101610599565b509195945050505050565b6000825160005b818110156105e357602081860181015185830152016105c9565b506000920191825250919050565b60008261060e57634e487b7160e01b600052601260045260246000fd5b500690565b60408101818360005b600281101561056a57815183526020928301929091019060010161061c565b60a08101818360005b600581101561056a578151835260209283019290910190600101610644565b60608101818360005b600381101561056a57815183526020928301929091019060010161066c56fea26469706673582212202c418cc19fcf5300682d0fe4008b0292b86ed1af847905664e9ffc1772af9d8164736f6c634300081c0033" = _bytecode

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:213

Methods

connect()

connect(runner): Hasher__factory

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:209

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

Parameters

runner

ContractRunner | null

Returns

Hasher__factory

Overrides

ContractFactory.connect


deploy()

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

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:202

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

Overrides

ContractFactory.deploy


getDeployTransaction()

getDeployTransaction(overrides?): Promise<ContractDeployTransaction>

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:197

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

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:218

Parameters

address

string

runner?

ContractRunner | null

Returns

Hasher


createInterface()

static createInterface(): HasherInterface

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:215

Returns

HasherInterface


linkBytecode()

static linkBytecode(linkLibraryAddresses): string

Defined in: contracts/typechain-types/factories/contracts/crypto/Hasher__factory.ts:163

Parameters

linkLibraryAddresses

HasherLibraryAddresses

Returns

string