Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / ZupassPolicy__factory

Class: ZupassPolicy__factory

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:305

Extends

  • ContractFactory

Constructors

Constructor

new ZupassPolicy__factory(...args): ZupassPolicy__factory

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:306

Parameters

args

...ZupassPolicyConstructorParams

Returns

ZupassPolicy__factory

Overrides

ContractFactory.constructor

Properties

abi

readonly static abi: readonly [{ inputs: readonly []; stateMutability: "payable"; type: "constructor"; }, { inputs: readonly []; name: "AlreadyEnforced"; type: "error"; }, { inputs: readonly []; name: "AlreadyInitialized"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "owner"; type: "address"; }]; name: "OwnableInvalidOwner"; type: "error"; }, { inputs: readonly [{ internalType: "address"; name: "account"; type: "address"; }]; name: "OwnableUnauthorizedAccount"; type: "error"; }, { inputs: readonly []; name: "TargetAlreadySet"; type: "error"; }, { inputs: readonly []; name: "TargetNotSet"; type: "error"; }, { inputs: readonly []; name: "TargetOnly"; type: "error"; }, { inputs: readonly []; name: "UnsuccessfulCheck"; type: "error"; }, { inputs: readonly []; name: "ZeroAddress"; type: "error"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "subject"; type: "address"; }, { indexed: true; internalType: "address"; name: "guarded"; type: "address"; }, { indexed: false; internalType: "bytes"; name: "evidence"; type: "bytes"; }]; name: "Enforced"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "previousOwner"; type: "address"; }, { indexed: true; internalType: "address"; name: "newOwner"; type: "address"; }]; name: "OwnershipTransferred"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; internalType: "address"; name: "guarded"; type: "address"; }]; name: "TargetSet"; type: "event"; }, { inputs: readonly []; name: "BASE_CHECKER"; outputs: readonly [{ internalType: "contract BaseChecker"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "subject"; type: "address"; }, { internalType: "bytes"; name: "evidence"; type: "bytes"; }]; name: "enforce"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint256"; name: ""; type: "uint256"; }]; name: "enforcedTickets"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "getAppendedBytes"; outputs: readonly [{ internalType: "bytes"; name: "appendedBytes"; type: "bytes"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "guarded"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "initialize"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "initialized"; outputs: readonly [{ internalType: "bool"; name: ""; type: "bool"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "owner"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "renounceOwnership"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "_guarded"; type: "address"; }]; name: "setTarget"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly []; name: "trait"; outputs: readonly [{ internalType: "string"; name: ""; type: "string"; }]; stateMutability: "pure"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "newOwner"; type: "address"; }]; name: "transferOwnership"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }] = _abi

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:331


bytecode

readonly static bytecode: "0x60806040523380602957604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6030816035565b50608e565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b6109c08061009d6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638129fc1c116100715780638129fc1c146101495780638da5cb5b14610151578063a86c9aea14610167578063b41a4b191461018a578063ce343deb1461019f578063f2fde38b146101c157600080fd5b8063158ef93e146100b95780631e898ef1146100db578063715018a6146100f057806372f7a030146100f8578063776d1a01146101235780637e16420414610136575b600080fd5b6000546100c69060ff1681565b60405190151581526020015b60405180910390f35b6100ee6100e936600461060e565b6101d4565b005b6100ee61020f565b60015461010b906001600160a01b031681565b6040516001600160a01b0390911681526020016100d2565b6100ee610131366004610695565b610223565b60025461010b906001600160a01b031681565b6100ee6102c6565b60005461010090046001600160a01b031661010b565b6100c66101753660046106b9565b60036020526000908152604090205460ff1681565b6101926102ce565b6040516100d29190610718565b6040805180820190915260068152655a757061737360d01b6020820152610192565b6100ee6101cf366004610695565b6102dd565b6001546001600160a01b031633146101ff57604051631f492dbf60e21b815260040160405180910390fd5b61020a838383610320565b505050565b6102176103b1565b61022160006103e4565b565b61022b6103b1565b6001600160a01b0381166102525760405163d92e233d60e01b815260040160405180910390fd5b6001546001600160a01b03161561027c5760405163e0f2d7b160e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040517f3bfb4bbf112628248058745a3c57e35b13369386e474b8e56c552f3063a4a19690600090a250565b61022161043d565b60606102d8610499565b905090565b6102e56103b1565b6001600160a01b03811661031457604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b61031d816103e4565b50565b600061032e828401846107c0565b9350505050600081600060268110610348576103486108a5565b602090810291909101516000818152600390925260409091205490915060ff161561038657604051633440c93360e21b815260040160405180910390fd5b6000818152600360205260409020805460ff191660011790556103aa8585856104a4565b5050505050565b6000546001600160a01b036101009091041633146102215760405163118cdaa760e01b815233600482015260240161030b565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b610445610587565b600061044f610499565b90506000808280602001905181019061046891906108bb565b91509150610475826103e4565b600280546001600160a01b0319166001600160a01b03929092169190911790555050565b60606102d830610598565b60025460405163e2b2408560e01b81526001600160a01b039091169063e2b24085906104d89086908690869060040161091e565b602060405180830381865afa1580156104f5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610519919061094c565b61053657604051634715494560e01b815260040160405180910390fd5b6001546040516001600160a01b03918216918516907fc013b39287cb7a53f776482ac9573829321f002f31ef8782129b41d60047bda09061057a908690869061096e565b60405180910390a3505050565b61058f6105c7565b610221336103e4565b60405164ffffffffff602c19833b0116808252602090810190602d908301843c60408101815101604052919050565b60005460ff16156105ea5760405162dc149f60e41b815260040160405180910390fd5b6000805460ff19166001179055565b6001600160a01b038116811461031d57600080fd5b60008060006040848603121561062357600080fd5b833561062e816105f9565b9250602084013567ffffffffffffffff81111561064a57600080fd5b8401601f8101861361065b57600080fd5b803567ffffffffffffffff81111561067257600080fd5b86602082840101111561068457600080fd5b939660209190910195509293505050565b6000602082840312156106a757600080fd5b81356106b2816105f9565b9392505050565b6000602082840312156106cb57600080fd5b5035919050565b6000815180845260005b818110156106f8576020818501810151868301820152016106dc565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006106b260208301846106d2565b604051601f8201601f1916810167ffffffffffffffff8111828210171561076257634e487b7160e01b600052604160045260246000fd5b604052919050565b600082601f83011261077b57600080fd5b6000610787604061072b565b905080604084018581111561079b57600080fd5b845b818110156107b557803583526020928301920161079d565b509195945050505050565b6000806000806105c085870312156107d757600080fd5b6107e1868661076a565b935085605f8601126107f257600080fd5b60406107fd8161072b565b8060c088018981111561080f57600080fd5b8389015b81811015610834576108258b8261076a565b84526020909301928401610813565b508196506108428a8261076a565b9550505050506101008501600087601f83011261085d578081fd5b806104c061086a8161072b565b91508301818a82111561087b578384fd5b5b8185101561089457843581526020948501940161087c565b509699959850939650929450505050565b634e487b7160e01b600052603260045260246000fd5b600080604083850312156108ce57600080fd5b82516108d9816105f9565b60208401519092506108ea816105f9565b809150509250929050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061094390830184866108f5565b95945050505050565b60006020828403121561095e57600080fd5b815180151581146106b257600080fd5b6020815260006109826020830184866108f5565b94935050505056fea26469706673582212200920cd39b909e3d9ab24e30d3475c22fa8f70235feba7a5bcdefa318d263aa8264736f6c634300081c0033" = _bytecode

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:330

Methods

connect()

connect(runner): ZupassPolicy__factory

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:326

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

Parameters

runner

ContractRunner | null

Returns

ZupassPolicy__factory

Overrides

ContractFactory.connect


deploy()

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

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:319

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?

PayableOverrides & object

Returns

Promise<ZupassPolicy & object>

Overrides

ContractFactory.deploy


getDeployTransaction()

getDeployTransaction(overrides?): Promise<ContractDeployTransaction>

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:314

Resolves to the transaction to deploy the contract, passing %%args%% into the constructor.

Parameters

overrides?

PayableOverrides & object

Returns

Promise<ContractDeployTransaction>

Overrides

ContractFactory.getDeployTransaction


connect()

static connect(address, runner?): ZupassPolicy

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:335

Parameters

address

string

runner?

ContractRunner | null

Returns

ZupassPolicy


createInterface()

static createInterface(): ZupassPolicyInterface

Defined in: contracts/typechain-types/factories/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy__factory.ts:332

Returns

ZupassPolicyInterface