blocklock-js
Version:
A library for encrypting and decrypting data for the future
142 lines (134 loc) • 5.08 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
Contract,
ContractFactory,
ContractTransactionResponse,
Interface,
} from "ethers";
import type {
Signer,
BytesLike,
AddressLike,
ContractDeployTransaction,
ContractRunner,
} from "ethers";
import type { PayableOverrides } from "../common";
import type { ERC1967Proxy, ERC1967ProxyInterface } from "../ERC1967Proxy";
const _abi = [
{
type: "constructor",
inputs: [
{
name: "implementation",
type: "address",
internalType: "address",
},
{
name: "_data",
type: "bytes",
internalType: "bytes",
},
],
stateMutability: "payable",
},
{
type: "fallback",
stateMutability: "payable",
},
{
type: "event",
name: "Upgraded",
inputs: [
{
name: "implementation",
type: "address",
indexed: true,
internalType: "address",
},
],
anonymous: false,
},
{
type: "error",
name: "AddressEmptyCode",
inputs: [
{
name: "target",
type: "address",
internalType: "address",
},
],
},
{
type: "error",
name: "ERC1967InvalidImplementation",
inputs: [
{
name: "implementation",
type: "address",
internalType: "address",
},
],
},
{
type: "error",
name: "ERC1967NonPayable",
inputs: [],
},
{
type: "error",
name: "FailedCall",
inputs: [],
},
] as const;
const _bytecode =
"0x60806040526040516103d03803806103d08339810160408190526100229161023c565b61002c8282610033565b5050610321565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b031684604051610128919061030b565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020f5780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f5f6040838503121561024d575f5ffd5b82516001600160a01b0381168114610263575f5ffd5b60208401519092506001600160401b0381111561027e575f5ffd5b8301601f8101851361028e575f5ffd5b80516001600160401b038111156102a7576102a7610228565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d5576102d5610228565b6040528181528282016020018710156102ec575f5ffd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60a38061032d5f395ff3fe6080604052600a600c565b005b60186014601a565b6050565b565b5f604b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b365f5f375f5f365f845af43d5f5f3e8080156069573d5ff35b3d5ffdfea26469706673582212207c0f56b5c1cff321b66697f2c7e05a42b5402a828ca21c317215b092b0ae17a464736f6c634300081c0033";
type ERC1967ProxyConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: ERC1967ProxyConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class ERC1967Proxy__factory extends ContractFactory {
constructor(...args: ERC1967ProxyConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
override getDeployTransaction(
implementation: AddressLike,
_data: BytesLike,
overrides?: PayableOverrides & { from?: string }
): Promise<ContractDeployTransaction> {
return super.getDeployTransaction(implementation, _data, overrides || {});
}
override deploy(
implementation: AddressLike,
_data: BytesLike,
overrides?: PayableOverrides & { from?: string }
) {
return super.deploy(implementation, _data, overrides || {}) as Promise<
ERC1967Proxy & {
deploymentTransaction(): ContractTransactionResponse;
}
>;
}
override connect(runner: ContractRunner | null): ERC1967Proxy__factory {
return super.connect(runner) as ERC1967Proxy__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): ERC1967ProxyInterface {
return new Interface(_abi) as ERC1967ProxyInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): ERC1967Proxy {
return new Contract(address, _abi, runner) as unknown as ERC1967Proxy;
}
}