Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: integrate offer button #4554

Merged
merged 16 commits into from
Jan 13, 2023
Merged

feat: integrate offer button #4554

merged 16 commits into from
Jan 13, 2023

Conversation

preschian
Copy link
Member

@preschian preschian commented Dec 23, 2022

Thank you for your contribution to the KodaDot NFT gallery.

👇 _ Let's make a quick check before the contribution.

PR Type

  • Bugfix
  • Feature
  • Refactoring
  • Redesign

Context

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality
  • I've posted a screenshot of demonstrated change in this PR

Optional

  • I've tested it at </bsx/collection>
  • I've tested PR on mobile
  • I've written unit tests 🧪
  • I've found edge cases

Had issue bounty label?

  • Fill up your KSM address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.

@netlify
Copy link

netlify bot commented Dec 23, 2022

Deploy Preview for koda-nuxt ready!

Name Link
🔨 Latest commit 698aea9
🔍 Latest deploy log https://app.netlify.com/sites/koda-nuxt/deploys/63c0fe47af4250000963d121
😎 Deploy Preview https://deploy-preview-4554--koda-nuxt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodabot
Copy link
Collaborator

kodabot commented Dec 23, 2022

WARNING @preschian PR for issue #4542 which isn't assigned to you. Please be warned that this PR may get rejected if there's another assignee for issue #4542

@preschian
Copy link
Member Author

preschian commented Dec 23, 2022

I need your help @roiLeo @Jarsen136. Does the offer button work on your side on this PR? I just followed the submit() function on AvailableActions. If not, What do I miss anyway?

@roiLeo
Copy link
Contributor

roiLeo commented Dec 23, 2022

I need your help @roiLeo @Jarsen136. Does the offer button work on your side on this PR? I just followed the submit() function on AvailableActions. If not, What do I miss anyway?

wfm, block hash 0xa537886e39455a2d6e0cde1f96177433b5d4c65d996422f9abf0dc1431c6c9ad

it's been a few weeks that Snek [Rococo] endpoint is "stuck" but you can see that the call has been made on chain

note: success toast didn't show up

@Jarsen136
Copy link
Contributor

I need your help @roiLeo @Jarsen136. Does the offer button work on your side on this PR? I just followed the submit() function on AvailableActions. If not, What do I miss anyway?

WFM too

@preschian
Copy link
Member Author

wfm, block hash 0xa537886e39455a2d6e0cde1f96177433b5d4c65d996422f9abf0dc1431c6c9ad

it's been a few weeks that Snek [Rococo] endpoint is "stuck" but you can see that the call has been made on chain

note: success toast didn't show up

WFM too

I see, thanks. I will refactor a little bit and then would be ready for review

@preschian preschian marked this pull request as ready for review December 23, 2022 14:01
@preschian preschian requested a review from a team as a code owner December 23, 2022 14:01
@preschian preschian requested review from Jarsen136 and removed request for a team December 23, 2022 14:01
@yangwao
Copy link
Member

yangwao commented Dec 23, 2022

Snek [Rococo] endpoint is "stuck"

After Brick I sense @vikiival updated only snek@05 for BSX, not for Rococo?

@vikiival
Copy link
Member

Looks like something is wrong with offers. I pinged BSX team

@yangwao
Copy link
Member

yangwao commented Jan 1, 2023

I've made offer on this one https://deploy-preview-4554--koda-nuxt.netlify.app/bsx/gallery/2608295324-7

But it seems on old one doesn't show up.
image

https://basilisk.subscan.io/extrinsic/2460385-2

image

Oh, seems it's on Basilisk team side something ...

@yangwao yangwao added the A-basilisk issues related to basilisk parachain label Jan 1, 2023
@roiLeo roiLeo self-requested a review January 4, 2023 10:52
@vikiival
Copy link
Member

Offers should be already available

@roiLeo
Copy link
Contributor

roiLeo commented Jan 11, 2023

Offers should be already available

Tx is good but it's not visible for me on snek Rococo

@vikiival
Copy link
Member

Tx is good but it's not visible for me on snek Rococo

Because the one that @yangwao made was on BSX

@preschian preschian marked this pull request as draft January 11, 2023 16:59
@preschian preschian marked this pull request as ready for review January 12, 2023 07:46
Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On dark mode text is hard to see
Screenshot 2023-01-12 at 10-29-50 KodaDot - Kusama NFT Market Explorer

I've tested it on /snek/gallery/659233203-7?redesign=true and when I log item I find a wrong tokenId

{
  "interaction": "MAKE_OFFER",
  "currentOwner": "bXhWeVLtArWauM8UmbaVdDmXmo5uSDk6DAa2YxQ5zbt2sDcbW",
  "day": 3,
  "price": ".1",
  "tokenId": "659233203-659233203-7",
  "urlPrefix": "snek",
  "successMessage": "Offer successfully created",
  "errorMessage": "Failed to send item"
}

@preschian
Copy link
Member Author

I've tested it on /snek/gallery/659233203-7?redesign=true and when I log item I find a wrong tokenId

ouch, updated

@roiLeo
Copy link
Contributor

roiLeo commented Jan 12, 2023

✅ Block hash: 0xe77afe69d0712c73bfc45df5a9ac5300ba46d22bb05bf548bfd281ab24e76546 on Rococo

Still blocked by kodadot/snek#130

Copy link
Contributor

@Jarsen136 Jarsen136 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@roiLeo roiLeo added S-code-lgtm-✅ code review guild has reviewed this PR and it's code is approved S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked labels Jan 12, 2023
@vikiival
Copy link
Member

Merged

kodadot/snek#136

@roiLeo
Copy link
Contributor

roiLeo commented Jan 12, 2023

Merged

kodadot/snek#136

https://squiki.kodadot.workers.dev/status/snekk

new endpoint again??? (https://squid.subsquid.io/snekk/graphql)

@vikiival
Copy link
Member

new endpoint again???

Following good practises
https://docs.subsquid.io/deploy-squid/promote-to-production/

@preschian
Copy link
Member Author

preschian commented Jan 12, 2023

Merged
kodadot/snek#136

squiki.kodadot.workers.dev/status/snekk

new endpoint again??? (https://squid.subsquid.io/snekk/graphql)

should I change it to this endpoint in this PR?

@roiLeo
Copy link
Contributor

roiLeo commented Jan 12, 2023

Yeah!! offers are back
Screenshot 2023-01-12 at 16-06-34 Golden Gate KodaDot - Kusama NFT Market Explorer

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ wfm 🚀

Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smol


import type { ActionOffer } from './types'

export async function execTsxOffer(item: ActionOffer, api, executeTransaction) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

execTsxOffer

exec{What}Tx ?

Suggested change
export async function execTsxOffer(item: ActionOffer, api, executeTransaction) {
export async function exectMakeOfferTx(item: ActionOffer, api, executeTransaction) {

Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let it roll 🎲

@codeclimate
Copy link

codeclimate bot commented Jan 13, 2023

Code Climate has analyzed commit 698aea9 and detected 0 issues on this pull request.

View more on Code Climate.

@yangwao yangwao merged commit 07a27a0 into main Jan 13, 2023
@yangwao yangwao deleted the offer-button branch January 13, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-basilisk issues related to basilisk parachain S-blocked-✋ S-code-lgtm-✅ code review guild has reviewed this PR and it's code is approved S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gallery Item Desktop - integrate offer
6 participants