@ethsub/sol
Version:
ethsub contracts
96 lines (89 loc) • 3.23 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type { TwoArguments, TwoArgumentsInterface } from "../TwoArguments";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address[]",
name: "argumentOne",
type: "address[]",
},
{
indexed: false,
internalType: "bytes4",
name: "argumentTwo",
type: "bytes4",
},
],
name: "TwoArgumentsCalled",
type: "event",
},
{
inputs: [
{
internalType: "address[]",
name: "argumentOne",
type: "address[]",
},
{
internalType: "bytes4",
name: "argumentTwo",
type: "bytes4",
},
],
name: "twoArguments",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
const _bytecode =
"0x608060405234801561001057600080fd5b5061015c806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806372e0745c14610030575b600080fd5b6100aa6004803603604081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b9193509150356001600160e01b0319166100ac565b005b7fc983106aca50fad459fb18ede1630e8ff8147ff28ad451a856427931fd7f15e38383836040518080602001836001600160e01b03191681526020018281038252858582818152602001925060200280828437600083820152604051601f909101601f1916909201829003965090945050505050a150505056fea26469706673582212207b0c4f2f802db365ae598a9d1284e8a277c91e98939c5170870b81f1a3b23e4664736f6c634300060c0033";
type TwoArgumentsConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: TwoArgumentsConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class TwoArguments__factory extends ContractFactory {
constructor(...args: TwoArgumentsConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
deploy(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<TwoArguments> {
return super.deploy(overrides || {}) as Promise<TwoArguments>;
}
getDeployTransaction(
overrides?: Overrides & { from?: string | Promise<string> }
): TransactionRequest {
return super.getDeployTransaction(overrides || {});
}
attach(address: string): TwoArguments {
return super.attach(address) as TwoArguments;
}
connect(signer: Signer): TwoArguments__factory {
return super.connect(signer) as TwoArguments__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): TwoArgumentsInterface {
return new utils.Interface(_abi) as TwoArgumentsInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): TwoArguments {
return new Contract(address, _abi, signerOrProvider) as TwoArguments;
}
}