UNPKG

blocklock-js

Version:

A library for encrypting and decrypting data for the future

159 lines (151 loc) 5.62 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, ContractFactory, ContractTransactionResponse, Interface, } from "ethers"; import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner, } from "ethers"; import type { NonPayableOverrides } from "../common"; import type { ConfirmedOwner, ConfirmedOwnerInterface, } from "../ConfirmedOwner"; const _abi = [ { type: "constructor", inputs: [ { name: "newOwner", type: "address", internalType: "address", }, ], stateMutability: "nonpayable", }, { type: "function", name: "acceptOwnership", inputs: [], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "owner", inputs: [], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "transferOwnership", inputs: [ { name: "to", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "event", name: "OwnershipTransferRequested", inputs: [ { name: "from", type: "address", indexed: true, internalType: "address", }, { name: "to", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, { type: "event", name: "OwnershipTransferred", inputs: [ { name: "from", type: "address", indexed: true, internalType: "address", }, { name: "to", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, ] as const; const _bytecode = "0x608060405234801561000f575f5ffd5b5060405161044338038061044383398101604081905261002e9161016a565b805f6001600160a01b03821661008b5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206f776e657220746f207a65726f000000000000000060448201526064015b60405180910390fd5b5f80546001600160a01b0319166001600160a01b03848116919091179091558116156100ba576100ba816100c2565b505050610197565b336001600160a01b0382160361011a5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401610082565b600180546001600160a01b0319166001600160a01b038381169182179092555f8054604051929316917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b5f6020828403121561017a575f5ffd5b81516001600160a01b0381168114610190575f5ffd5b9392505050565b61029f806101a45f395ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c806379ba5097146100435780638da5cb5b1461004d578063f2fde38b1461006b575b5f5ffd5b61004b61007e565b005b5f54604080516001600160a01b039092168252519081900360200190f35b61004b61007936600461023c565b61012c565b6001546001600160a01b031633146100d65760405162461bcd60e51b815260206004820152601660248201527526bab9ba10313290383937b837b9b2b21037bbb732b960511b60448201526064015b60405180910390fd5b5f8054336001600160a01b0319808316821784556001805490911690556040516001600160a01b0390921692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a350565b610134610140565b61013d81610194565b50565b5f546001600160a01b031633146101925760405162461bcd60e51b815260206004820152601660248201527527b7363c9031b0b63630b1363290313c9037bbb732b960511b60448201526064016100cd565b565b336001600160a01b038216036101ec5760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c6600000000000000000060448201526064016100cd565b600180546001600160a01b0319166001600160a01b038381169182179092555f8054604051929316917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b5f6020828403121561024c575f5ffd5b81356001600160a01b0381168114610262575f5ffd5b939250505056fea2646970667358221220b83364cf0eb8084e8f2584437e3cb9bb0e35fe5e863af3ceab40b6699ab8c98c64736f6c634300081c0033"; type ConfirmedOwnerConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: ConfirmedOwnerConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class ConfirmedOwner__factory extends ContractFactory { constructor(...args: ConfirmedOwnerConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override getDeployTransaction( newOwner: AddressLike, overrides?: NonPayableOverrides & { from?: string } ): Promise<ContractDeployTransaction> { return super.getDeployTransaction(newOwner, overrides || {}); } override deploy( newOwner: AddressLike, overrides?: NonPayableOverrides & { from?: string } ) { return super.deploy(newOwner, overrides || {}) as Promise< ConfirmedOwner & { deploymentTransaction(): ContractTransactionResponse; } >; } override connect(runner: ContractRunner | null): ConfirmedOwner__factory { return super.connect(runner) as ConfirmedOwner__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): ConfirmedOwnerInterface { return new Interface(_abi) as ConfirmedOwnerInterface; } static connect( address: string, runner?: ContractRunner | null ): ConfirmedOwner { return new Contract(address, _abi, runner) as unknown as ConfirmedOwner; } }