UNPKG

niftyswap

Version:

AMM exchange for ERC-1155 tokens, inspired by Uniswap

103 lines (98 loc) 2 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Signer } from "ethers"; import { Provider } from "@ethersproject/providers"; import type { IERC1155TokenReceiver } from "../IERC1155TokenReceiver"; export class IERC1155TokenReceiver__factory { static connect( address: string, signerOrProvider: Signer | Provider ): IERC1155TokenReceiver { return new Contract( address, _abi, signerOrProvider ) as IERC1155TokenReceiver; } } const _abi = [ { inputs: [ { internalType: "address", name: "_operator", type: "address", }, { internalType: "address", name: "_from", type: "address", }, { internalType: "uint256[]", name: "_ids", type: "uint256[]", }, { internalType: "uint256[]", name: "_amounts", type: "uint256[]", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "onERC1155BatchReceived", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_operator", type: "address", }, { internalType: "address", name: "_from", type: "address", }, { internalType: "uint256", name: "_id", type: "uint256", }, { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "onERC1155Received", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "nonpayable", type: "function", }, ];