Minimal Anti Collusion Infrastructure (MACI) / Utilities__factory
Class: Utilities__factory
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:308
Extends
ContractFactory
Constructors
Constructor
new Utilities__factory(...
args):Utilities__factory
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:309
Parameters
args
...UtilitiesConstructorParams
Returns
Utilities__factory
Overrides
ContractFactory.constructor
Properties
abi
readonlystaticabi: readonly [{inputs: readonly [];name:"InvalidMessage";type:"error"; }, {inputs: readonly [];name:"MESSAGE_DATA_LENGTH";outputs: readonly [{internalType:"uint8";name:"";type:"uint8"; }];stateMutability:"view";type:"function"; }, {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 [{components: readonly [{internalType:"uint256[10]";name:"data";type:"uint256[10]"; }];internalType:"struct DomainObjs.Message";name:"_message";type:"tuple"; }, {components: readonly [{internalType:"uint256";name:"x";type:"uint256"; }, {internalType:"uint256";name:"y";type:"uint256"; }];internalType:"struct DomainObjs.PublicKey";name:"_encryptionPublicKey";type:"tuple"; }];name:"hashMessageAndPublicKey";outputs: readonly [{internalType:"uint256";name:"msgHash";type:"uint256"; }];stateMutability:"pure";type:"function"; }, {inputs: readonly [{components: readonly [{components: readonly [{internalType:"uint256";name:"x";type:"uint256"; }, {internalType:"uint256";name:"y";type:"uint256"; }];internalType:"struct DomainObjs.PublicKey";name:"publicKey";type:"tuple"; }, {internalType:"uint256";name:"voiceCreditBalance";type:"uint256"; }];internalType:"struct DomainObjs.StateLeaf";name:"_stateLeaf";type:"tuple"; }];name:"hashStateLeaf";outputs: readonly [{internalType:"uint256";name:"ciphertext";type:"uint256"; }];stateMutability:"pure";type:"function"; }, {inputs: readonly [{internalType:"uint256[2]";name:"dataToPad";type:"uint256[2]"; }];name:"padAndHashMessage";outputs: readonly [{components: readonly [{internalType:"uint256[10]";name:"data";type:"uint256[10]"; }];internalType:"struct DomainObjs.Message";name:"message";type:"tuple"; }, {components: readonly [{internalType:"uint256";name:"x";type:"uint256"; }, {internalType:"uint256";name:"y";type:"uint256"; }];internalType:"struct DomainObjs.PublicKey";name:"padKey";type:"tuple"; }, {internalType:"uint256";name:"msgHash";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/utilities/Utilities__factory.ts:373
bytecode
readonlystaticbytecode:"0x6080604052348015600f57600080fd5b50610b0e8061001f6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c8063683f3dc311610066578063683f3dc314610115578063793c56321461012f5780639cfced9714610142578063bea140b314610155578063edbfe83f1461016857600080fd5b806301405426146100a35780633dfb88b2146100c957806358bfc379146100dc5780635bb93995146100ef57806362a361bb14610102575b600080fd5b6100b66100b1366004610653565b61018a565b6040519081526020015b60405180910390f35b6100b66100d7366004610705565b610258565b6100b66100ea36600461076d565b6102d9565b6100b66100fd36600461081e565b610373565b6100b6610110366004610840565b610398565b61011d600a81565b60405160ff90911681526020016100c0565b6100b661013d366004610883565b6103d2565b6100b66101503660046108bd565b610405565b6100b6610163366004610900565b61043f565b61017b610176366004610840565b610479565b6040516100c093929190610943565b6000610194610521565b83515181528351602090810151908201528351604090810151908201528351606090810151908201528351608090810151908201526101d1610521565b845160a001518152845160c001516020820152845160e0015160408083019190915285516101000151606083015285516101200151608080840191909152815190810190915261024f908061022585610405565b815260200161023384610405565b8152602001866000015181526020018660200151815250610258565b95945050505050565b60405163248f667760e01b815260009073__$ce9c2c925f157047e54fa833ec4e61409f$__9063248f66779061029290859060040161098f565b602060405180830381865af41580156102af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d391906109c0565b92915050565b60007f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f000000160028360405160200161030f91906109d9565b60408051601f198184030181529082905261032991610a0f565b602060405180830381855afa158015610346573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061036991906109c0565b6102d39190610a3e565b600061037d61053f565b8381526020810183905261039081610398565b949350505050565b6040516314d2f97b60e11b815260009073__$6574937f64fc1d7710ec0e28b7a36713bb$__906329a5f2f690610292908590600401610a60565b60006103dc61055d565b825151815282516020908101518183015283015160408201526103fe8161043f565b9392505050565b604051630926f44b60e31b815260009073__$20527677031d76601747626a9845039fe4$__90634937a25890610292908590600401610a88565b6040516304b98e1d60e31b815260009073__$dc01a9744591ab014bc46a3b7671cdaefb$__906325cc70e890610292908590600401610ab0565b61048161057b565b6040805180820190915260008082526020820152600061049f610593565b84518152602080860151828201526040805180820182527f171e826ad4a870fd925e0bf0e87884e70e080879c2205ef10114f28a3b6f6dd781527f2bd407d897fbbca9f88adfd2d15252e69de8c1564eb4d3d27162e259172f1a1d8184015281519283019091528282529094509250610518848461018a565b93959294505050565b6040518060a001604052806005906020820280368337509192915050565b60405180604001604052806002906020820280368337509192915050565b60405180606001604052806003906020820280368337509192915050565b604051806020016040528061058e610593565b905290565b604051806101400160405280600a906020820280368337509192915050565b634e487b7160e01b600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156105eb576105eb6105b2565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561061a5761061a6105b2565b604052919050565b60006040828403121561063457600080fd5b61063c6105c8565b823581526020928301359281019290925250919050565b60008082840361018081121561066857600080fd5b61014081121561067757600080fd5b506040516020810167ffffffffffffffff8111828210171561069b5761069b6105b2565b604052601f840185136106ad57600080fd5b60006101406106bb816105f1565b9150850181878211156106cd57600080fd5b865b828110156106e75780358252602091820191016106cf565b50508183528294506106f98782610622565b93505050509250929050565b60006080828403121561071757600080fd5b600083601f840112610727578081fd5b8061073260806105f1565b9050809150608084018581111561074857600080fd5b845b8181101561076257803584526020938401930161074a565b509095945050505050565b60006020828403121561077f57600080fd5b813567ffffffffffffffff81111561079657600080fd5b8201601f810184136107a757600080fd5b803567ffffffffffffffff8111156107c1576107c16105b2565b8060051b6107d1602082016105f1565b918252602081840181019290810190878411156107ed57600080fd5b6020850194505b83851015610813578435808352602095860195909350909101906107f4565b979650505050505050565b6000806040838503121561083157600080fd5b50508035926020909101359150565b60006040828403121561085257600080fd5b600083601f840112610862578081fd5b8061086d60406105f1565b9050809150604084018581111561074857600080fd5b6000606082840312801561089657600080fd5b5061089f6105c8565b6108a98484610622565b815260409290920135602083015250919050565b600060a082840312156108cf57600080fd5b600083601f8401126108df578081fd5b806108ea60a06105f1565b905080915060a084018581111561074857600080fd5b60006060828403121561091257600080fd5b600083601f840112610922578081fd5b8061092d60606105f1565b9050809150606084018581111561074857600080fd5b83516101a08201908260005b600a81101561096e57825182526020928301929091019060010161094f565b50508451610140840152506020909301516101608201526101800152919050565b60808101818360005b60048110156109b7578151835260209283019290910190600101610998565b50505092915050565b6000602082840312156109d257600080fd5b5051919050565b8151600090829060208501835b82811015610a045781518452602093840193909101906001016109e6565b509195945050505050565b6000825160005b81811015610a305760208186018101518583015201610a16565b506000920191825250919050565b600082610a5b57634e487b7160e01b600052601260045260246000fd5b500690565b60408101818360005b60028110156109b7578151835260209283019290910190600101610a69565b60a08101818360005b60058110156109b7578151835260209283019290910190600101610a91565b60608101818360005b60038110156109b7578151835260209283019290910190600101610ab956fea2646970667358221220fa18a708d4ebd2044601c299d46b840b3607450038f85ecc4d2220afc4cc86b264736f6c634300081c0033"=_bytecode
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:372
Methods
connect()
connect(
runner):Utilities__factory
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:368
Return a new ContractFactory with the same ABI and bytecode, but connected to %%runner%%.
Parameters
runner
ContractRunner | null
Returns
Utilities__factory
Overrides
ContractFactory.connect
deploy()
deploy(
overrides?):Promise<Utilities&object>
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:361
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<Utilities & object>
Overrides
ContractFactory.deploy
getDeployTransaction()
getDeployTransaction(
overrides?):Promise<ContractDeployTransaction>
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:356
Resolves to the transaction to deploy the contract, passing %%args%% into the constructor.
Parameters
overrides?
NonPayableOverrides & object
Returns
Promise<ContractDeployTransaction>
Overrides
ContractFactory.getDeployTransaction
connect()
staticconnect(address,runner?):Utilities
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:377
Parameters
address
string
runner?
ContractRunner | null
Returns
createInterface()
staticcreateInterface():UtilitiesInterface
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:374
Returns
UtilitiesInterface
linkBytecode()
staticlinkBytecode(linkLibraryAddresses):string
Defined in: contracts/typechain-types/factories/contracts/utilities/Utilities__factory.ts:322
Parameters
linkLibraryAddresses
UtilitiesLibraryAddresses
Returns
string