UNPKG

ufomarketplace-sdk-new

Version:

SDK to interact with set ufo marketplace contracts

78 lines (70 loc) 3.42 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 { UapInfo, UapInfoInterface } from "../../UapInfo.s.sol/UapInfo"; const _abi = [ { type: "function", name: "IS_SCRIPT", inputs: [], outputs: [ { name: "", type: "bool", internalType: "bool", }, ], stateMutability: "view", }, { type: "function", name: "run", inputs: [], outputs: [], stateMutability: "nonpayable", }, ] as const; const _bytecode = "0x6080604052600c805462ff00ff19166201000117905534801561002157600080fd5b50610262806100316000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063c04062261461003b578063f8ccbf4714610045575b600080fd5b61004361006c565b005b600c546100589062010000900460ff1681565b604051901515815260200160405180910390f35b6100986040518060400160405280600a815260200169626c6f636b2074696d6560b01b815250426100a2565b6100a06100eb565b565b6100e782826040516024016100b89291906101f8565b60408051601f198184030181529190526020810180516001600160e01b0316632d839cb360e21b1790526101ba565b5050565b60408051808201825260168152753d3d3d62616c616e6365206f662041646d696e3d3d3d60501b602082015290516370a0823160e01b815273bcd418c12cd9910dd5b33b1f8ee47ecc562732fc600482015273202dde4d4f51ad105ae43d6e5ebebde725227dfb916101b79183906370a082319060240160206040518083038186803b15801561017a57600080fd5b505afa15801561018e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b291906101df565b6100a2565b50565b6101b78160006a636f6e736f6c652e6c6f679050600080835160208501845afa505050565b6000602082840312156101f157600080fd5b5051919050565b604081526000835180604084015260005b818110156102265760208187018101516060868401015201610209565b81811115610238576000606083860101525b50602083019390935250601f91909101601f19160160600191905056fea164736f6c6343000807000a"; type UapInfoConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: UapInfoConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class UapInfo__factory extends ContractFactory { constructor(...args: UapInfoConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override deploy(overrides?: Overrides & { from?: string }): Promise<UapInfo> { return super.deploy(overrides || {}) as Promise<UapInfo>; } override getDeployTransaction( overrides?: Overrides & { from?: string } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } override attach(address: string): UapInfo { return super.attach(address) as UapInfo; } override connect(signer: Signer): UapInfo__factory { return super.connect(signer) as UapInfo__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): UapInfoInterface { return new utils.Interface(_abi) as UapInfoInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): UapInfo { return new Contract(address, _abi, signerOrProvider) as UapInfo; } }