UNPKG

ufomarketplace-sdk-new

Version:

SDK to interact with set ufo marketplace contracts

83 lines (75 loc) 3.61 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 { PlasmaWrite, PlasmaWriteInterface, } from "../../PlasmaWrite.s.sol/PlasmaWrite"; 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 = "0x6080604052600c805462ff00ff19166201000117905534801561002157600080fd5b50610294806100316000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063c04062261461003b578063f8ccbf4714610045575b600080fd5b61004361006c565b005b600c546100589062010000900460ff1681565b604051901515815260200160405180910390f35b610074610076565b565b60405163c1978d1f60e01b815260206004820152600560248201526420b236b4b760d91b6044820152600090737109709ecfa91a80626ff3989d68f67f5b1dd12d9063c1978d1f9060640160206040518083038186803b1580156100d957600080fd5b505afa1580156100ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610111919061026e565b60405163ce817d4760e01b81526004810182905290915073d9e6a34db7561c5541fc482ba2f1394bfcd5540990737109709ecfa91a80626ff3989d68f67f5b1dd12d9063ce817d4790602401600060405180830381600087803b15801561017757600080fd5b505af115801561018b573d6000803e3d6000fd5b505060405163ec2de46160e01b815273bc67629883fbdf808acbfc1fcc608b757be9d3786004820152600160248201526001600160a01b038416925063ec2de4619150604401600060405180830381600087803b1580156101eb57600080fd5b505af11580156101ff573d6000803e3d6000fd5b50505050737109709ecfa91a80626ff3989d68f67f5b1dd12d6001600160a01b03166376eadd366040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561025257600080fd5b505af1158015610266573d6000803e3d6000fd5b505050505050565b60006020828403121561028057600080fd5b505191905056fea164736f6c6343000807000a"; type PlasmaWriteConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: PlasmaWriteConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class PlasmaWrite__factory extends ContractFactory { constructor(...args: PlasmaWriteConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override deploy( overrides?: Overrides & { from?: string } ): Promise<PlasmaWrite> { return super.deploy(overrides || {}) as Promise<PlasmaWrite>; } override getDeployTransaction( overrides?: Overrides & { from?: string } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } override attach(address: string): PlasmaWrite { return super.attach(address) as PlasmaWrite; } override connect(signer: Signer): PlasmaWrite__factory { return super.connect(signer) as PlasmaWrite__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): PlasmaWriteInterface { return new utils.Interface(_abi) as PlasmaWriteInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): PlasmaWrite { return new Contract(address, _abi, signerOrProvider) as PlasmaWrite; } }