UNPKG

gray-market-js

Version:

Utility library for the Gray Market rental marketplace

12 lines (10 loc) 404 B
const { ethers } = require("ethers"); const grayMarketABI = require("./abi/GrayMarket.json"); class RentalListingWithdrawer { constructor() {} async withdraw(signerOrProvider, verifyingContract, listing) { const contract = new ethers.Contract(verifyingContract, grayMarketABI, signerOrProvider); await contract.withdraw(listing); } } module.exports = RentalListingWithdrawer;