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