UNPKG

ufomarketplace-sdk-new

Version:

SDK to interact with set ufo marketplace contracts

87 lines (79 loc) 3.74 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import type { Provider, TransactionRequest } from "@ethersproject/providers"; import type { SuperGalaticFactoryInfo, SuperGalaticFactoryInfoInterface, } from "../../SupergalaticFactoryInfo.s.sol/SuperGalaticFactoryInfo"; const _abi = [ { type: "function", name: "IS_SCRIPT", inputs: [], outputs: [ { name: "", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, { type: "function", name: "run", inputs: [], outputs: [], stateMutability: "view", }, ] as const; const _bytecode = "0x6080604052600c805462ff00ff19166201000117905534801561002157600080fd5b5061025e806100316000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063c04062261461003b578063f8ccbf4714610045575b600080fd5b61004361006c565b005b600c546100589062010000900460ff1681565b604051901515815260200160405180910390f35b6100986040518060400160405280600a815260200169626c6f636b2074696d6560b01b815250426100a2565b6100a06100eb565b565b6100e782826040516024016100b89291906101f4565b60408051601f198184030181529190526020810180516001600160e01b0316632d839cb360e21b1790526101b6565b5050565b6000734eae156ce80a14c408c4bbb93d0719f684c4001390506101b36040518060400160405280601781526020017f3d3d3d776561706f6e20757364742070726963653d3d3d000000000000000000815250826001600160a01b031663b04668636040518163ffffffff1660e01b815260040160206040518083038186803b15801561017657600080fd5b505afa15801561018a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101ae91906101db565b6100a2565b50565b6101b38160006a636f6e736f6c652e6c6f679050600080835160208501845afa505050565b6000602082840312156101ed57600080fd5b5051919050565b604081526000835180604084015260005b818110156102225760208187018101516060868401015201610205565b81811115610234576000606083860101525b50602083019390935250601f91909101601f19160160600191905056fea164736f6c6343000807000a"; type SuperGalaticFactoryInfoConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: SuperGalaticFactoryInfoConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class SuperGalaticFactoryInfo__factory extends ContractFactory { constructor(...args: SuperGalaticFactoryInfoConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override deploy( overrides?: Overrides & { from?: string } ): Promise<SuperGalaticFactoryInfo> { return super.deploy(overrides || {}) as Promise<SuperGalaticFactoryInfo>; } override getDeployTransaction( overrides?: Overrides & { from?: string } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } override attach(address: string): SuperGalaticFactoryInfo { return super.attach(address) as SuperGalaticFactoryInfo; } override connect(signer: Signer): SuperGalaticFactoryInfo__factory { return super.connect(signer) as SuperGalaticFactoryInfo__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): SuperGalaticFactoryInfoInterface { return new utils.Interface(_abi) as SuperGalaticFactoryInfoInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): SuperGalaticFactoryInfo { return new Contract( address, _abi, signerOrProvider ) as SuperGalaticFactoryInfo; } }