Skip to main content
Version: next

Class: UnirepVoting__factory

contracts.examples.UnirepVoting__factory

Hierarchy

  • ContractFactory

    UnirepVoting__factory

Constructors

constructor

new UnirepVoting__factory(...args)

Parameters

NameType
...argsUnirepVotingConstructorParams

Overrides

ContractFactory.constructor

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:344

Properties

bytecode

Readonly bytecode: string

Inherited from

ContractFactory.bytecode

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:139


interface

Readonly interface: Interface

Inherited from

ContractFactory.interface

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:138


signer

Readonly signer: Signer

Inherited from

ContractFactory.signer

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:140


abi

Static Readonly abi: readonly [{ inputs: readonly [{ internalType: "contract Unirep" = "contract Unirep"; name: "_unirep" = "_unirep"; type: "address" = "address" }, { internalType: "contract ReputationVerifierHelper" = "contract ReputationVerifierHelper"; name: "_repHelper" = "_repHelper"; type: "address" = "address" }, { internalType: "contract EpochKeyVerifierHelper" = "contract EpochKeyVerifierHelper"; name: "_epochKeyHelper" = "_epochKeyHelper"; type: "address" = "address" }, { internalType: "contract VotingPrizeNFT" = "contract VotingPrizeNFT"; name: "_nft" = "_nft"; type: "address" = "address" }, { internalType: "uint8" = "uint8"; name: "_numProjects" = "_numProjects"; type: "uint8" = "uint8" }, { internalType: "uint48" = "uint48"; name: "_epochLength" = "_epochLength"; type: "uint48" = "uint48" }] ; stateMutability: "nonpayable" = "nonpayable"; type: "constructor" = "constructor" }, { inputs: readonly [{ internalType: "address" = "address"; name: "receiver" = "receiver"; type: "address" = "address" }, { internalType: "uint256[]" = "uint256[]"; name: "publicSignals" = "publicSignals"; type: "uint256[]" = "uint256[]" }, { internalType: "uint256[8]" = "uint256[8]"; name: "proof" = "proof"; type: "uint256[8]" = "uint256[8]" }] ; name: "claimPrize" = "claimPrize"; outputs: readonly [] = []; stateMutability: "nonpayable" = "nonpayable"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; name: "counts" = "counts"; outputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [] = []; name: "epochKeyHelper" = "epochKeyHelper"; outputs: readonly [{ internalType: "contract EpochKeyVerifierHelper" = "contract EpochKeyVerifierHelper"; name: "" = ""; type: "address" = "address" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "projectID" = "projectID"; type: "uint256" = "uint256" }, { internalType: "uint256[]" = "uint256[]"; name: "publicSignals" = "publicSignals"; type: "uint256[]" = "uint256[]" }, { internalType: "uint256[8]" = "uint256[8]"; name: "proof" = "proof"; type: "uint256[8]" = "uint256[8]" }] ; name: "joinProject" = "joinProject"; outputs: readonly [] = []; stateMutability: "nonpayable" = "nonpayable"; type: "function" = "function" }, { inputs: readonly [] = []; name: "nft" = "nft"; outputs: readonly [{ internalType: "contract VotingPrizeNFT" = "contract VotingPrizeNFT"; name: "" = ""; type: "address" = "address" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [] = []; name: "numProjects" = "numProjects"; outputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }, { internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; name: "participants" = "participants"; outputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }, { internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; name: "projectData" = "projectData"; outputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [] = []; name: "repHelper" = "repHelper"; outputs: readonly [{ internalType: "contract ReputationVerifierHelper" = "contract ReputationVerifierHelper"; name: "" = ""; type: "address" = "address" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; name: "scores" = "scores"; outputs: readonly [{ internalType: "int256" = "int256"; name: "" = ""; type: "int256" = "int256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [] = []; name: "unirep" = "unirep"; outputs: readonly [{ internalType: "contract Unirep" = "contract Unirep"; name: "" = ""; type: "address" = "address" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256[]" = "uint256[]"; name: "publicSignals" = "publicSignals"; type: "uint256[]" = "uint256[]" }, { internalType: "uint256[8]" = "uint256[8]"; name: "proof" = "proof"; type: "uint256[8]" = "uint256[8]" }] ; name: "userSignUp" = "userSignUp"; outputs: readonly [] = []; stateMutability: "nonpayable" = "nonpayable"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "projectID" = "projectID"; type: "uint256" = "uint256" }, { internalType: "enum Option" = "enum Option"; name: "option" = "option"; type: "uint8" = "uint8" }, { internalType: "uint256[]" = "uint256[]"; name: "publicSignals" = "publicSignals"; type: "uint256[]" = "uint256[]" }, { internalType: "uint256[8]" = "uint256[8]"; name: "proof" = "proof"; type: "uint256[8]" = "uint256[8]" }] ; name: "vote" = "vote"; outputs: readonly [] = []; stateMutability: "nonpayable" = "nonpayable"; type: "function" = "function" }, { inputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; name: "voted" = "voted"; outputs: readonly [{ internalType: "uint256" = "uint256"; name: "" = ""; type: "uint256" = "uint256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }, { inputs: readonly [] = []; name: "winnerScore" = "winnerScore"; outputs: readonly [{ internalType: "int256" = "int256"; name: "" = ""; type: "int256" = "int256" }] ; stateMutability: "view" = "view"; type: "function" = "function" }] = _abi

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:398


bytecode

Static Readonly bytecode: "0x60a06040526007805460ff191690553480156200001b57600080fd5b50604051620020a8380380620020a88339810160408190526200003e9162000352565b600080546001600160a01b038881166001600160a01b031992831681179093556001805489831690841617905560028054888316908416179055600380549187169190921617905560405163b1f712af60e01b815265ffffffffffff8316600482015263b1f712af90602401600060405180830381600087803b158015620000c557600080fd5b505af1158015620000da573d6000803e3d6000fd5b5050505060ff821660808190526001600160401b03811115620001015762000101620003f5565b6040519080825280602002602001820160405280156200012b578160200160208202803683370190505b508051620001429160059160209091019062000231565b506080516001600160401b03811115620001605762000160620003f5565b6040519080825280602002602001820160405280156200019557816020015b60608152602001906001900390816200017f5790505b508051620001ac9160049160209091019062000281565b5060005b608051811015620002245760408051600280825260608201835290916020830190803683370190505060048281548110620001ef57620001ef6200040b565b9060005260206000200190805190602001906200020e92919062000231565b50806200021b8162000421565b915050620001b0565b5050505050505062000449565b8280548282559060005260206000209081019282156200026f579160200282015b828111156200026f57825182559160200191906001019062000252565b506200027d929150620002e1565b5090565b828054828255906000526020600020908101928215620002d3579160200282015b82811115620002d35782518051620002c291849160209091019062000231565b5091602001919060010190620002a2565b506200027d929150620002f8565b5b808211156200027d5760008155600101620002e2565b808211156200027d5760006200030f828262000319565b50600101620002f8565b5080546000825590600052602060002090810190620003399190620002e1565b50565b6001600160a01b03811681146200033957600080fd5b60008060008060008060c087890312156200036c57600080fd5b865162000379816200033c565b60208801519096506200038c816200033c565b60408801519095506200039f816200033c565b6060880151909450620003b2816200033c565b608088015190935060ff81168114620003ca57600080fd5b60a088015190925065ffffffffffff81168114620003e757600080fd5b809150509295509295509295565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000600182016200044257634e487b7160e01b600052601160045260246000fd5b5060010190565b608051611c2e6200047a600039600081816101a80152818161082d01528181610e3601526113770152611c2e6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806381fb1fb411610097578063a15d181611610066578063a15d181614610236578063dc715d1b14610249578063e56d749714610269578063f85ec78f1461028957600080fd5b806381fb1fb4146101dd5780638fbb38ff146101f05780639789de2b146102105780639ef7bb181461022357600080fd5b80634144f051116100d35780634144f0511461016e57806347ccca02146101835780635a067baa146101a35780635f9455c3146101ca57600080fd5b80632a0ea524146100fa5780632ee691a314610116578063347f77a814610129575b600080fd5b61010360065481565b6040519081526020015b60405180910390f35b610103610124366004611426565b6102a9565b6002546101499073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010d565b61018161017c3660046114a3565b6102ca565b005b6003546101499073ffffffffffffffffffffffffffffffffffffffff1681565b6101037f000000000000000000000000000000000000000000000000000000000000000081565b6101036101d83660046114f9565b61035b565b6101036101eb3660046114f9565b610398565b6101036101fe366004611426565b600a6020526000908152604090205481565b61018161021e366004611540565b6103b4565b6101816102313660046115a9565b61082b565b61018161024436600461173d565b610e34565b610103610257366004611426565b60096020526000908152604090205481565b6001546101499073ffffffffffffffffffffffffffffffffffffffff1681565b6000546101499073ffffffffffffffffffffffffffffffffffffffff1681565b600581815481106102b957600080fd5b600091825260209091200154905081565b6000546040517f4144f05100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690634144f05190610324908690869086906004016117f8565b600060405180830381600087803b15801561033e57600080fd5b505af1158015610352573d6000803e3d6000fd5b50505050505050565b6004828154811061036b57600080fd5b90600052602060002001818154811061038357600080fd5b90600052602060002001600091509150505481565b6008602052816000526040600020818154811061038357600080fd5b600080546040517f983c9cdb0000000000000000000000000000000000000000000000000000000081523060048201819052929173ffffffffffffffffffffffffffffffffffffffff169063983c9cdb90602401602060405180830381865afa158015610425573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104499190611870565b65ffffffffffff161161045b57600080fd5b6001546040517f870316bb00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff169063870316bb906104b6908890889088906004016117f8565b6101e060405180830381865afa1580156104d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f891906118be565b905060008160e0015165ffffffffffff1611610575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f696e76616c69642065706f636820746f20636c61696d207072697a650000000060448201526064015b60405180910390fd5b61014081015115156001146105e6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72657665616c206e6f6e63652077726f6e670000000000000000000000000000604482015260640161056c565b80610120015160ff16600114610658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6e6f6e63652077726f6e67000000000000000000000000000000000000000000604482015260640161056c565b80516000908152600b602052604090205460ff16156106d3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c726561647920636c61696d65640000000000000000000000000000000000604482015260640161056c565b60075460ff166106e5576106e5611371565b60065481604001511215610755576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e73756666696369656e742073636f72650000000000000000000000000000604482015260640161056c565b6003546040517ff2fb212000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301529091169063f2fb2120906024016020604051808303816000875af11580156107c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107eb91906119b6565b50516000908152600b6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050505050565b7f000000000000000000000000000000000000000000000000000000000000000085106108b4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f70726f6a6563744944206f7574206f662072616e676500000000000000000000604482015260640161056c565b6002546040517f870316bb00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff169063870316bb9061090f908790879087906004016117f8565b61010060405180830381865afa15801561092d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095191906119cf565b90508060e00151151560011515146109c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72657665616c206e6f6e63652077726f6e670000000000000000000000000000604482015260640161056c565b8060c0015160ff16600114610a36576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6e6f6e63652077726f6e67000000000000000000000000000000000000000000604482015260640161056c565b608081015165ffffffffffff1615610aaa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f696e76616c69642065706f636820746f20766f74650000000000000000000000604482015260640161056c565b600160048781548110610abf57610abf611a60565b90600052602060002001866001811115610adb57610adb611a8f565b81548110610aeb57610aeb611a60565b906000526020600020016000828254610b049190611aed565b909155505080516000908152600a60205260408120805460019290610b2a908490611aed565b9091555060009050856001811115610b4457610b44611a8f565b03610b8257600160058781548110610b5e57610b5e611a60565b906000526020600020016000828254610b779190611b00565b90915550610bcf9050565b6001856001811115610b9657610b96611a8f565b03610bcf57600160058781548110610bb057610bb0611a60565b906000526020600020016000828254610bc99190611b28565b90915550505b600086815260086020908152604080832080548251818502810185019093528083529192909190830182828015610c2557602002820191906000526020600020905b815481526020019060010190808311610c11575b5050600080546040517f983c9cdb000000000000000000000000000000000000000000000000000000008152306004820152959650909473ffffffffffffffffffffffffffffffffffffffff909116935063983c9cdb92506024019050602060405180830381865afa158015610c9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc39190611870565b905065ffffffffffff811615610d35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6e6f7420766f74696e672065706f636800000000000000000000000000000000604482015260640161056c565b60005b8251811015610e2957600054835173ffffffffffffffffffffffffffffffffffffffff9091169063d9d241dc90859084908110610d7757610d77611a60565b6020026020010151848b6001811115610d9257610d92611a8f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b168152600481019390935265ffffffffffff9091166024830152604482015260016064820152608401600060405180830381600087803b158015610dfe57600080fd5b505af1158015610e12573d6000803e3d6000fd5b505050508080610e2190611b4f565b915050610d38565b505050505050505050565b7f00000000000000000000000000000000000000000000000000000000000000008310610ebd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f70726f6a6563744944206f7574206f662072616e676500000000000000000000604482015260640161056c565b6002546040517f870316bb00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff169063870316bb90610f169086908690600401611b87565b61010060405180830381865afa158015610f34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5891906119cf565b90508060e0015115156001151514610fcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f566f74656174686f6e3a2073686f756c642072657665616c206e6f6e63650000604482015260640161056c565b60c081015160ff161561103b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f566f74656174686f6e3a20696e76616c6964206e6f6e63650000000000000000604482015260640161056c565b600084815260096020526040902054600a116110d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f566f74656174686f6e3a206d6178696d756d207061727469636970616e74732060448201527f696e20612070726f6a6563740000000000000000000000000000000000000000606482015260840161056c565b6000848152600860209081526040808320845181546001810183559185529284200191909155815490517f983c9cdb00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff9091169063983c9cdb90602401602060405180830381865afa15801561116b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118f9190611870565b905065ffffffffffff811615611201576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f566f74656174686f6e3a206e6f74206a6f696e2065706f636800000000000000604482015260640161056c565b60006004868154811061121657611216611a60565b9060005260206000200180548060200260200160405190810160405280929190818152602001828054801561126a57602002820191906000526020600020905b815481526020019060010190808311611256575b5050505050905060005b8151811015611344576000548451835173ffffffffffffffffffffffffffffffffffffffff9092169163d9d241dc9190869085908790829081106112ba576112ba611a60565b60200260200101516040518563ffffffff1660e01b81526004016112ff949392919093845265ffffffffffff9290921660208401526040830152606082015260800190565b600060405180830381600087803b15801561131957600080fd5b505af115801561132d573d6000803e3d6000fd5b50505050808061133c90611b4f565b915050611274565b506000868152600960205260408120805460019290611364908490611aed565b9091555050505050505050565b6000805b7f00000000000000000000000000000000000000000000000000000000000000008110156113f55781600582815481106113b1576113b1611a60565b906000526020600020015413156113e357600581815481106113d5576113d5611a60565b906000526020600020015491505b806113ed81611b4f565b915050611375565b50600655600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60006020828403121561143857600080fd5b5035919050565b60008083601f84011261145157600080fd5b50813567ffffffffffffffff81111561146957600080fd5b6020830191508360208260051b850101111561148457600080fd5b9250929050565b80610100810183101561149d57600080fd5b92915050565b600080600061012084860312156114b957600080fd5b833567ffffffffffffffff8111156114d057600080fd5b6114dc8682870161143f565b90945092506114f09050856020860161148b565b90509250925092565b6000806040838503121561150c57600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461153d57600080fd5b50565b600080600080610140858703121561155757600080fd5b84356115628161151b565b9350602085013567ffffffffffffffff81111561157e57600080fd5b61158a8782880161143f565b909450925061159e9050866040870161148b565b905092959194509250565b600080600080600061016086880312156115c257600080fd5b853594506020860135600281106115d857600080fd5b9350604086013567ffffffffffffffff8111156115f457600080fd5b6116008882890161143f565b90945092506116149050876060880161148b565b90509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610100810167ffffffffffffffff8111828210171561167357611673611620565b60405290565b6040516101e0810167ffffffffffffffff8111828210171561167357611673611620565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116e4576116e4611620565b604052919050565b600082601f8301126116fd57600080fd5b61170561164f565b8061010084018581111561171857600080fd5b845b8181101561173257803584526020938401930161171a565b509095945050505050565b6000806000610140848603121561175357600080fd5b8335925060208085013567ffffffffffffffff8082111561177357600080fd5b818701915087601f83011261178757600080fd5b81358181111561179957611799611620565b8060051b91506117aa84830161169d565b818152918301840191848101908a8411156117c457600080fd5b938501935b838510156117e2578435825293850193908501906117c9565b8097505050505050506114f085604086016116ec565b610120808252810183905260006101407f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85111561183557600080fd5b8460051b8087838601378301019050610100836020840137949350505050565b805165ffffffffffff8116811461186b57600080fd5b919050565b60006020828403121561188257600080fd5b61188b82611855565b9392505050565b805161186b8161151b565b805160ff8116811461186b57600080fd5b8051801515811461186b57600080fd5b60006101e082840312156118d157600080fd5b6118d9611679565b825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015261191b60c08401611892565b60c082015261192c60e08401611855565b60e082015261010061193f818501611855565b9082015261012061195184820161189d565b908201526101406119638482016118ae565b908201526101606119758482016118ae565b908201526101806119878482016118ae565b908201526101a06119998482016118ae565b908201526101c06119ab8482016118ae565b908201529392505050565b6000602082840312156119c857600080fd5b5051919050565b600061010082840312156119e257600080fd5b6119ea61164f565b8251815260208301516020820152604083015160408201526060830151611a108161151b565b6060820152611a2160808401611855565b6080820152611a3260a08401611855565b60a0820152611a4360c0840161189d565b60c0820152611a5460e084016118ae565b60e08201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561149d5761149d611abe565b8082018281126000831280158216821582161715611b2057611b20611abe565b505092915050565b8181036000831280158383131683831282161715611b4857611b48611abe565b5092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b8057611b80611abe565b5060010190565b6101208082528351908201819052600090610140830190602090818701845b82811015611bc257815185529383019390830190600101611ba6565b509293505083810191508460005b6008811015611bed57815184529282019290820190600101611bd0565b50505050939250505056fea264697066735822122070ffc828ce9bcd60784e254fe329d75d4fa75277c387f643e8af29498d9895da64736f6c63430008130033"

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:397

Methods

attach

attach(address): UnirepVoting

Parameters

NameType
addressstring

Returns

UnirepVoting

Overrides

ContractFactory.attach

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:390


connect

connect(signer): UnirepVoting__factory

Parameters

NameType
signerSigner

Returns

UnirepVoting__factory

Overrides

ContractFactory.connect

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:393


deploy

deploy(_unirep, _repHelper, _epochKeyHelper, _nft, _numProjects, _epochLength, overrides?): Promise<UnirepVoting>

Parameters

NameType
_unirepstring
_repHelperstring
_epochKeyHelperstring
_nftstring
_numProjectsBigNumberish
_epochLengthBigNumberish
overrides?Overrides & { from?: string }

Returns

Promise<UnirepVoting>

Overrides

ContractFactory.deploy

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:352


getDeployTransaction

getDeployTransaction(_unirep, _repHelper, _epochKeyHelper, _nft, _numProjects, _epochLength, overrides?): TransactionRequest

Parameters

NameType
_unirepstring
_repHelperstring
_epochKeyHelperstring
_nftstring
_numProjectsBigNumberish
_epochLengthBigNumberish
overrides?Overrides & { from?: string }

Returns

TransactionRequest

Overrides

ContractFactory.getDeployTransaction

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:371


connect

Static connect(address, signerOrProvider): UnirepVoting

Parameters

NameType
addressstring
signerOrProviderProvider | Signer

Returns

UnirepVoting

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:402


createInterface

Static createInterface(): UnirepVotingInterface

Returns

UnirepVotingInterface

Defined in

packages/contracts/typechain/factories/contracts/examples/UnirepVoting__factory.ts:399


fromSolidity

Static fromSolidity(compilerOutput, signer?): ContractFactory

Parameters

NameType
compilerOutputany
signer?Signer

Returns

ContractFactory

Inherited from

ContractFactory.fromSolidity

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:148


getContract

Static getContract(address, contractInterface, signer?): Contract

Parameters

NameType
addressstring
contractInterfaceContractInterface
signer?Signer

Returns

Contract

Inherited from

ContractFactory.getContract

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:154


getContractAddress

Static getContractAddress(tx): string

Parameters

NameType
txObject
tx.fromstring
tx.noncenumber | BytesLike | BigNumber

Returns

string

Inherited from

ContractFactory.getContractAddress

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:150


getInterface

Static getInterface(contractInterface): Interface

Parameters

NameType
contractInterfaceContractInterface

Returns

Interface

Inherited from

ContractFactory.getInterface

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:149