@ethsub/sol
Version:
ethsub contracts
85 lines (78 loc) • 2.62 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 { OneArgument, OneArgumentInterface } from "../OneArgument";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "argumentOne",
type: "uint256",
},
],
name: "OneArgumentCalled",
type: "event",
},
{
inputs: [
{
internalType: "uint256",
name: "argumentOne",
type: "uint256",
},
],
name: "oneArgument",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
const _bytecode =
"0x6080604052348015600f57600080fd5b5060ad8061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063c95cf0d814602d575b600080fd5b604760048036036020811015604157600080fd5b50356049565b005b60405181907f29ab08c845830c69b55a1fba5c95718f65dc24361a471e3da14cd5ff2b37315990600090a25056fea26469706673582212202b6fe2577e70e7bb04ce32df8dad3d80a4a0ccc088e9805497f49c1a354576ac64736f6c634300060c0033";
type OneArgumentConstructorParams =
| [signer?: Signer]
| ConstructorParameters<typeof ContractFactory>;
const isSuperArgs = (
xs: OneArgumentConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
export class OneArgument__factory extends ContractFactory {
constructor(...args: OneArgumentConstructorParams) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi, _bytecode, args[0]);
}
}
deploy(
overrides?: Overrides & { from?: string | Promise<string> }
): Promise<OneArgument> {
return super.deploy(overrides || {}) as Promise<OneArgument>;
}
getDeployTransaction(
overrides?: Overrides & { from?: string | Promise<string> }
): TransactionRequest {
return super.getDeployTransaction(overrides || {});
}
attach(address: string): OneArgument {
return super.attach(address) as OneArgument;
}
connect(signer: Signer): OneArgument__factory {
return super.connect(signer) as OneArgument__factory;
}
static readonly bytecode = _bytecode;
static readonly abi = _abi;
static createInterface(): OneArgumentInterface {
return new utils.Interface(_abi) as OneArgumentInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): OneArgument {
return new Contract(address, _abi, signerOrProvider) as OneArgument;
}
}