mlabs-haskell / nft-marketplace

Other
2 stars 0 forks source link

Allow user to buy NFT (using test wallet) #116

Closed nrutledge closed 2 years ago

nrutledge commented 2 years ago

Acceptance Criteria:

Checkout field reference:

BuyParams reference:

Checkout window mockup: image

Note: This functionality will be extended further once more details have been clarified (will be in separate issue).

dimakrsna commented 2 years ago

@nrutledge How can I call the sdk.makeTransaction.buy() method from where to export it is there an example?

nrutledge commented 2 years ago

@nrutledge How can I call the sdk.makeTransaction.buy() method from where to export it is there an example?

@dimakrsna That's from the seabug-sdk. You can check the readme in src/seabug-sdk for an example of getting an sdk instance. (For the params, you could create some environment variables / config file that stores these and just use dummy values for now as it won't matter for getting mock data).

Firdausi1 commented 2 years ago

@dimakrsna can we add a notification toast so when a buyer clicks checkout they see either a success message if it's successful or an error message. we can use react-hot-toast npm package

Firdausi1 commented 2 years ago

Also the modal shouldn't be in the parent div, thats why a bracket () shows on the side @dimakrsna