Skip to main content
Version: 2.0.0

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: "_numTeams" = "_numTeams"; 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: "numTeams" = "numTeams"; 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: "0x60a06040526006805460ff191690553480156200001b57600080fd5b50604051620020c6380380620020c68339810160408190526200003e9162000365565b600080546001600160a01b03199081166001600160a01b03898116918217909355600180548316898516179055600280549092168784161790915560068054610100600160a81b031916610100938716939093029290921790915560405163b1f712af60e01b815265ffffffffffff8316600482015263b1f712af90602401600060405180830381600087803b158015620000d857600080fd5b505af1158015620000ed573d6000803e3d6000fd5b5050505060ff821660808190526001600160401b0381111562000114576200011462000408565b6040519080825280602002602001820160405280156200013e578160200160208202803683370190505b508051620001559160039160209091019062000244565b506080516001600160401b0381111562000173576200017362000408565b604051908082528060200260200182016040528015620001a857816020015b6060815260200190600190039081620001925790505b508051620001bf9160059160209091019062000294565b5060005b6080518110156200023757604080516002808252606082018352909160208301908036833701905050600582815481106200020257620002026200041e565b9060005260206000200190805190602001906200022192919062000244565b50806200022e8162000434565b915050620001c3565b505050505050506200045c565b82805482825590600052602060002090810192821562000282579160200282015b828111156200028257825182559160200191906001019062000265565b5062000290929150620002f4565b5090565b828054828255906000526020600020908101928215620002e6579160200282015b82811115620002e65782518051620002d591849160209091019062000244565b5091602001919060010190620002b5565b50620002909291506200030b565b5b80821115620002905760008155600101620002f5565b80821115620002905760006200032282826200032c565b506001016200030b565b50805460008255906000526020600020908101906200034c9190620002f4565b50565b6001600160a01b03811681146200034c57600080fd5b60008060008060008060c087890312156200037f57600080fd5b86516200038c816200034f565b60208801519096506200039f816200034f565b6040880151909550620003b2816200034f565b6060880151909450620003c5816200034f565b608088015190935060ff81168114620003dd57600080fd5b60a088015190925065ffffffffffff81168114620003fa57600080fd5b809150509295509295509295565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000600182016200045557634e487b7160e01b600052601160045260246000fd5b5060010190565b608051611c396200048d6000396000818161024c0152818161083801528181610e4101526113820152611c396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638fbb38ff11610097578063dc715d1b11610066578063dc715d1b14610227578063dde91ab114610247578063e56d74971461026e578063f85ec78f1461028e57600080fd5b80638fbb38ff146101ce5780639789de2b146101ee5780639ef7bb1814610201578063a15d18161461021457600080fd5b80634144f051116100d35780634144f0511461016e57806347ccca02146101835780635f9455c3146101a857806381fb1fb4146101bb57600080fd5b80632a0ea524146100fa5780632ee691a314610116578063347f77a814610129575b600080fd5b61010360045481565b6040519081526020015b60405180910390f35b610103610124366004611431565b6102ae565b6002546101499073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161010d565b61018161017c3660046114ae565b6102cf565b005b60065461014990610100900473ffffffffffffffffffffffffffffffffffffffff1681565b6101036101b6366004611504565b610360565b6101036101c9366004611504565b61039d565b6101036101dc366004611431565b60096020526000908152604090205481565b6101816101fc36600461154b565b6103b9565b61018161020f3660046115b4565b610836565b610181610222366004611748565b610e3f565b610103610235366004611431565b60086020526000908152604090205481565b6101037f000000000000000000000000000000000000000000000000000000000000000081565b6001546101499073ffffffffffffffffffffffffffffffffffffffff1681565b6000546101499073ffffffffffffffffffffffffffffffffffffffff1681565b600381815481106102be57600080fd5b600091825260209091200154905081565b6000546040517f4144f05100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690634144f0519061032990869086908690600401611803565b600060405180830381600087803b15801561034357600080fd5b505af1158015610357573d6000803e3d6000fd5b50505050505050565b6005828154811061037057600080fd5b90600052602060002001818154811061038857600080fd5b90600052602060002001600091509150505481565b6007602052816000526040600020818154811061038857600080fd5b600080546040517f983c9cdb0000000000000000000000000000000000000000000000000000000081523060048201819052929173ffffffffffffffffffffffffffffffffffffffff169063983c9cdb90602401602060405180830381865afa15801561042a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044e919061187b565b65ffffffffffff161161046057600080fd5b6001546040517f870316bb00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff169063870316bb906104bb90889088908890600401611803565b6101e060405180830381865afa1580156104d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104fd91906118c9565b905060008160e0015165ffffffffffff161161057a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f696e76616c69642065706f636820746f20636c61696d207072697a650000000060448201526064015b60405180910390fd5b61014081015115156001146105eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72657665616c206e6f6e63652077726f6e6700000000000000000000000000006044820152606401610571565b80610120015160ff1660011461065d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6e6f6e63652077726f6e670000000000000000000000000000000000000000006044820152606401610571565b80516000908152600a602052604090205460ff16156106d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f416c726561647920636c61696d656400000000000000000000000000000000006044820152606401610571565b60065460ff166106ea576106ea61137c565b6004548160400151121561075a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f496e73756666696369656e742073636f726500000000000000000000000000006044820152606401610571565b6006546040517ff2fb212000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88811660048301526101009092049091169063f2fb2120906024016020604051808303816000875af11580156107d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f691906119c1565b50516000908152600a6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555050505050565b7f000000000000000000000000000000000000000000000000000000000000000085106108bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f70726f6a6563744944206f7574206f662072616e6765000000000000000000006044820152606401610571565b6002546040517f870316bb00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff169063870316bb9061091a90879087908790600401611803565b61010060405180830381865afa158015610938573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095c91906119da565b90508060e00151151560011515146109d0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f72657665616c206e6f6e63652077726f6e6700000000000000000000000000006044820152606401610571565b8060c0015160ff16600114610a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f6e6f6e63652077726f6e670000000000000000000000000000000000000000006044820152606401610571565b608081015165ffffffffffff1615610ab5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f696e76616c69642065706f636820746f20766f746500000000000000000000006044820152606401610571565b600160058781548110610aca57610aca611a6b565b90600052602060002001866001811115610ae657610ae6611a9a565b81548110610af657610af6611a6b565b906000526020600020016000828254610b0f9190611af8565b909155505080516000908152600960205260408120805460019290610b35908490611af8565b9091555060009050856001811115610b4f57610b4f611a9a565b03610b8d57600160038781548110610b6957610b69611a6b565b906000526020600020016000828254610b829190611b0b565b90915550610bda9050565b6001856001811115610ba157610ba1611a9a565b03610bda57600160038781548110610bbb57610bbb611a6b565b906000526020600020016000828254610bd49190611b33565b90915550505b600086815260076020908152604080832080548251818502810185019093528083529192909190830182828015610c3057602002820191906000526020600020905b815481526020019060010190808311610c1c575b5050600080546040517f983c9cdb000000000000000000000000000000000000000000000000000000008152306004820152959650909473ffffffffffffffffffffffffffffffffffffffff909116935063983c9cdb92506024019050602060405180830381865afa158015610caa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cce919061187b565b905065ffffffffffff811615610d40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f6e6f7420766f74696e672065706f6368000000000000000000000000000000006044820152606401610571565b60005b8251811015610e3457600054835173ffffffffffffffffffffffffffffffffffffffff9091169063d9d241dc90859084908110610d8257610d82611a6b565b6020026020010151848b6001811115610d9d57610d9d611a9a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b168152600481019390935265ffffffffffff9091166024830152604482015260016064820152608401600060405180830381600087803b158015610e0957600080fd5b505af1158015610e1d573d6000803e3d6000fd5b505050508080610e2c90611b5a565b915050610d43565b505050505050505050565b7f00000000000000000000000000000000000000000000000000000000000000008310610ec8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f566f74656174686f6e3a20696e76616c69642070726f6a6563742069440000006044820152606401610571565b6002546040517f870316bb00000000000000000000000000000000000000000000000000000000815260009173ffffffffffffffffffffffffffffffffffffffff169063870316bb90610f219086908690600401611b92565b61010060405180830381865afa158015610f3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6391906119da565b90508060e0015115156001151514610fd7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f566f74656174686f6e3a2073686f756c642072657665616c206e6f6e636500006044820152606401610571565b60c081015160ff1615611046576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f566f74656174686f6e3a20696e76616c6964206e6f6e636500000000000000006044820152606401610571565b600084815260086020526040902054600a116110e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f566f74656174686f6e3a206d6178696d756d207061727469636970616e74732060448201527f696e20612070726f6a65637400000000000000000000000000000000000000006064820152608401610571565b6000848152600760209081526040808320845181546001810183559185529284200191909155815490517f983c9cdb00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff9091169063983c9cdb90602401602060405180830381865afa158015611176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119a919061187b565b905065ffffffffffff81161561120c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f566f74656174686f6e3a206e6f74206a6f696e2065706f6368000000000000006044820152606401610571565b60006005868154811061122157611221611a6b565b9060005260206000200180548060200260200160405190810160405280929190818152602001828054801561127557602002820191906000526020600020905b815481526020019060010190808311611261575b5050505050905060005b815181101561134f576000548451835173ffffffffffffffffffffffffffffffffffffffff9092169163d9d241dc9190869085908790829081106112c5576112c5611a6b565b60200260200101516040518563ffffffff1660e01b815260040161130a949392919093845265ffffffffffff9290921660208401526040830152606082015260800190565b600060405180830381600087803b15801561132457600080fd5b505af1158015611338573d6000803e3d6000fd5b50505050808061134790611b5a565b91505061127f565b50600086815260086020526040812080546001929061136f908490611af8565b9091555050505050505050565b6000805b7f00000000000000000000000000000000000000000000000000000000000000008110156114005781600382815481106113bc576113bc611a6b565b906000526020600020015413156113ee57600381815481106113e0576113e0611a6b565b906000526020600020015491505b806113f881611b5a565b915050611380565b50600455600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60006020828403121561144357600080fd5b5035919050565b60008083601f84011261145c57600080fd5b50813567ffffffffffffffff81111561147457600080fd5b6020830191508360208260051b850101111561148f57600080fd5b9250929050565b8061010081018310156114a857600080fd5b92915050565b600080600061012084860312156114c457600080fd5b833567ffffffffffffffff8111156114db57600080fd5b6114e78682870161144a565b90945092506114fb90508560208601611496565b90509250925092565b6000806040838503121561151757600080fd5b50508035926020909101359150565b73ffffffffffffffffffffffffffffffffffffffff8116811461154857600080fd5b50565b600080600080610140858703121561156257600080fd5b843561156d81611526565b9350602085013567ffffffffffffffff81111561158957600080fd5b6115958782880161144a565b90945092506115a990508660408701611496565b905092959194509250565b600080600080600061016086880312156115cd57600080fd5b853594506020860135600281106115e357600080fd5b9350604086013567ffffffffffffffff8111156115ff57600080fd5b61160b8882890161144a565b909450925061161f90508760608801611496565b90509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610100810167ffffffffffffffff8111828210171561167e5761167e61162b565b60405290565b6040516101e0810167ffffffffffffffff8111828210171561167e5761167e61162b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116ef576116ef61162b565b604052919050565b600082601f83011261170857600080fd5b61171061165a565b8061010084018581111561172357600080fd5b845b8181101561173d578035845260209384019301611725565b509095945050505050565b6000806000610140848603121561175e57600080fd5b8335925060208085013567ffffffffffffffff8082111561177e57600080fd5b818701915087601f83011261179257600080fd5b8135818111156117a4576117a461162b565b8060051b91506117b58483016116a8565b818152918301840191848101908a8411156117cf57600080fd5b938501935b838510156117ed578435825293850193908501906117d4565b8097505050505050506114fb85604086016116f7565b610120808252810183905260006101407f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85111561184057600080fd5b8460051b8087838601378301019050610100836020840137949350505050565b805165ffffffffffff8116811461187657600080fd5b919050565b60006020828403121561188d57600080fd5b61189682611860565b9392505050565b805161187681611526565b805160ff8116811461187657600080fd5b8051801515811461187657600080fd5b60006101e082840312156118dc57600080fd5b6118e4611684565b825181526020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015261192660c0840161189d565b60c082015261193760e08401611860565b60e082015261010061194a818501611860565b9082015261012061195c8482016118a8565b9082015261014061196e8482016118b9565b908201526101606119808482016118b9565b908201526101806119928482016118b9565b908201526101a06119a48482016118b9565b908201526101c06119b68482016118b9565b908201529392505050565b6000602082840312156119d357600080fd5b5051919050565b600061010082840312156119ed57600080fd5b6119f561165a565b8251815260208301516020820152604083015160408201526060830151611a1b81611526565b6060820152611a2c60808401611860565b6080820152611a3d60a08401611860565b60a0820152611a4e60c084016118a8565b60c0820152611a5f60e084016118b9565b60e08201529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201808211156114a8576114a8611ac9565b8082018281126000831280158216821582161715611b2b57611b2b611ac9565b505092915050565b8181036000831280158383131683831282161715611b5357611b53611ac9565b5092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b8b57611b8b611ac9565b5060010190565b6101208082528351908201819052600090610140830190602090818701845b82811015611bcd57815185529383019390830190600101611bb1565b509293505083810191508460005b6008811015611bf857815184529282019290820190600101611bdb565b50505050939250505056fea26469706673582212206bde0e920a774e39bdfd027a7ed971bc084979fb5bceaf923849a2378bda334b64736f6c63430008130033"

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, _numTeams, _epochLength, overrides?): Promise<UnirepVoting>

Parameters

NameType
_unirepstring
_repHelperstring
_epochKeyHelperstring
_nftstring
_numTeamsBigNumberish
_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, _numTeams, _epochLength, overrides?): TransactionRequest

Parameters

NameType
_unirepstring
_repHelperstring
_epochKeyHelperstring
_nftstring
_numTeamsBigNumberish
_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