niftyswap
Version:
AMM exchange for ERC-1155 tokens, inspired by Uniswap
122 lines (117 loc) • 2.39 kB
text/typescript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer } from "ethers";
import { Provider } from "@ethersproject/providers";
import type { IWrapAndNiftyswap } from "../IWrapAndNiftyswap";
export class IWrapAndNiftyswap__factory {
static connect(
address: string,
signerOrProvider: Signer | Provider
): IWrapAndNiftyswap {
return new Contract(address, _abi, signerOrProvider) as IWrapAndNiftyswap;
}
}
const _abi = [
{
inputs: [
{
internalType: "address",
name: "",
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",
},
{
inputs: [
{
internalType: "uint256",
name: "_maxAmount",
type: "uint256",
},
{
internalType: "address",
name: "_recipient",
type: "address",
},
{
internalType: "bytes",
name: "_niftyswapOrder",
type: "bytes",
},
],
name: "wrapAndSwap",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];