Skip to content

rockstar-0000/off-chain-coupon-signer

Repository files navigation

nft-sig-verify

install the dependancies

npm install

run on the local

npm run dev

In the .env file, you should add the PK of the auction contract owner into "COUPON_SIGNING_KEY" and auction contract address into "COUPON_PUBLIC_KEY".

Coupon generator input format

const hashBuffer = generateHashBuffer(
["uint256", "uint256", "uint256", "address", "address"],
[couponType, tokenId, bidPrice, winner, nftAddress]
);

  • couponType: 0 for auction, 1 for offer
  • tokenId
  • bidPrice: the price what the bidder place (it will be 9-decimals)
  • winner: winner of auction/offer
  • nftAddress

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published