randomness-js
Version:
A library for consuming, verifying and using randomness from the dcipher network
172 lines (164 loc) • 6.53 kB
text/typescript
/* 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 {
ConfirmedOwnerWithProposal,
ConfirmedOwnerWithProposalInterface,
} from "../ConfirmedOwnerWithProposal";
const _abi = [
{
type: "constructor",
inputs: [
{
name: "newOwner",
type: "address",
internalType: "address",
},
{
name: "pendingOwner",
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 =
"0x608060405234801561000f575f5ffd5b5060405161054638038061054683398101604081905261002e91610182565b6001600160a01b0382166100895760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206f776e657220746f207a65726f000000000000000060448201526064015b60405180910390fd5b5f80546001600160a01b0319166001600160a01b03848116919091179091558116156100b8576100b8816100bf565b50506101b3565b336001600160a01b038216036101175760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401610080565b600180546001600160a01b0319166001600160a01b038381169182179092555f8054604051929316917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b80516001600160a01b038116811461017d575f5ffd5b919050565b5f5f60408385031215610193575f5ffd5b61019c83610167565b91506101aa60208401610167565b90509250929050565b610386806101c05f395ff3fe608060405234801561000f575f5ffd5b506004361061003f575f3560e01c806379ba5097146100435780638da5cb5b1461004d578063f2fde38b14610078575b5f5ffd5b61004b61008b565b005b5f546040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61004b610086366004610316565b61018c565b60015473ffffffffffffffffffffffffffffffffffffffff163314610111576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d7573742062652070726f706f736564206f776e65720000000000000000000060448201526064015b60405180910390fd5b5f8054337fffffffffffffffffffffffff00000000000000000000000000000000000000008083168217845560018054909116905560405173ffffffffffffffffffffffffffffffffffffffff90921692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a350565b6101946101a0565b61019d81610222565b50565b5f5473ffffffffffffffffffffffffffffffffffffffff163314610220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4f6e6c792063616c6c61626c65206279206f776e6572000000000000000000006044820152606401610108565b565b3373ffffffffffffffffffffffffffffffffffffffff8216036102a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f43616e6e6f74207472616e7366657220746f2073656c660000000000000000006044820152606401610108565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8381169182179092555f8054604051929316917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b5f60208284031215610326575f5ffd5b813573ffffffffffffffffffffffffffffffffffffffff81168114610349575f5ffd5b939250505056fea26469706673582212201b50ab7b8030206e8c22d6ef9c92e5fa5ce7afbed75c5e3431df44bc5a0e185664736f6c634300081c0033";
type ConfirmedOwnerWithProposalConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: ConfirmedOwnerWithProposalConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class ConfirmedOwnerWithProposal__factory extends ContractFactory {
constructor(...args: ConfirmedOwnerWithProposalConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
override getDeployTransaction(
newOwner: AddressLike,
pendingOwner: AddressLike,
overrides?: NonPayableOverrides & { from?: string }
): Promise<ContractDeployTransaction> {
return super.getDeployTransaction(newOwner, pendingOwner, overrides || {});
}
override deploy(
newOwner: AddressLike,
pendingOwner: AddressLike,
overrides?: NonPayableOverrides & { from?: string }
) {
return super.deploy(newOwner, pendingOwner, overrides || {}) as Promise<
ConfirmedOwnerWithProposal & {
deploymentTransaction(): ContractTransactionResponse;
}
>;
}
override connect(
runner: ContractRunner | null
): ConfirmedOwnerWithProposal__factory {
return super.connect(runner) as ConfirmedOwnerWithProposal__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): ConfirmedOwnerWithProposalInterface {
return new Interface(_abi) as ConfirmedOwnerWithProposalInterface;
}
static connect(
address: string,
runner?: ContractRunner | null
): ConfirmedOwnerWithProposal {
return new Contract(
address,
_abi,
runner
) as unknown as ConfirmedOwnerWithProposal;
}
}