UNPKG

@ethsub/sol

Version:
78 lines (71 loc) 2.63 kB
/* 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 { SafeCaster, SafeCasterInterface } from "../SafeCaster"; const _abi = [ { inputs: [ { internalType: "uint256", name: "input", type: "uint256", }, ], name: "toUint200", outputs: [ { internalType: "uint200", name: "", type: "uint200", }, ], stateMutability: "pure", type: "function", }, ]; const _bytecode = "0x608060405234801561001057600080fd5b50610105806100206000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063720ad67414602d575b600080fd5b604760048036036020811015604157600080fd5b50356063565b604080516001600160c81b039092168252519081900360200190f35b6000606c826072565b92915050565b6000600160c81b821060cb576040805162461bcd60e51b815260206004820152601e60248201527f76616c756520646f6573206e6f742066697420696e2032303020626974730000604482015290519081900360640190fd5b509056fea264697066735822122061962764d358e8f203007da4579cb3c7dec23f080ca795a9ee0f3a58e77dfeb564736f6c634300060c0033"; type SafeCasterConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: SafeCasterConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class SafeCaster__factory extends ContractFactory { constructor(...args: SafeCasterConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } deploy( overrides?: Overrides & { from?: string | Promise<string> } ): Promise<SafeCaster> { return super.deploy(overrides || {}) as Promise<SafeCaster>; } getDeployTransaction( overrides?: Overrides & { from?: string | Promise<string> } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } attach(address: string): SafeCaster { return super.attach(address) as SafeCaster; } connect(signer: Signer): SafeCaster__factory { return super.connect(signer) as SafeCaster__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): SafeCasterInterface { return new utils.Interface(_abi) as SafeCasterInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): SafeCaster { return new Contract(address, _abi, signerOrProvider) as SafeCaster; } }