Skip to content

Candle Auction on Ink!: Milestone-1 delivery#305

Merged
mmagician merged 1 commit intow3f:masterfrom
agryaznov:delivery
Nov 30, 2021
Merged

Candle Auction on Ink!: Milestone-1 delivery#305
mmagician merged 1 commit intow3f:masterfrom
agryaznov:delivery

Conversation

@agryaznov
Copy link
Copy Markdown
Contributor

Milestone Delivery Checklist

Link to the application pull request: w3f/Grants-Program#666

@semuelle
Copy link
Copy Markdown
Contributor

Thank you for the delivery. We will look into it as soon as possible.

@mmagician
Copy link
Copy Markdown
Contributor

@agryaznov I've done a first review of your code and created a small PR to your repo. Otherwise looks very good!
Please let me know once you've addressed the TODOs from that PR so we can proceed.

@agryaznov
Copy link
Copy Markdown
Contributor Author

agryaznov commented Nov 22, 2021

@mmagician thanks a lot for your review and the feedback! Please find my responses in that PR

@agryaznov
Copy link
Copy Markdown
Contributor Author

@mmagician all mentioned issues have been addressed so far. Is anything else needed to process this delivery?

@mmagician
Copy link
Copy Markdown
Contributor

Hey, thanks for the quick fixes!
I'll revise the delivery by the end of the week and get back to you

@mmagician
Copy link
Copy Markdown
Contributor

Hey, quick follow-up:

  • created another PR to make tests panic more explicitly: Add explicit panic messages agryaznov/candle-auction-ink#2
  • there is no way (aside from watching events) to check the current auction winner. Perhaps it's worth adding this to the output of get_status?
  • I wanted to instantiate the contract twice (with different params), but it errors out with the following message, at least via Canvas-UI: Uncaught error. Something went wrong with the query and rendering of this component. Cannot read properties of undefined (reading 'createType'). Other contracts seem to allow double instantiation (e.g. erc721). Let me know if you can reproduce and if you know a possible cause for this.
  • Payout didn't work. Steps: bid from Alice, outbid by Bob. get_winner() returns Bob correctly. I am unable to call payout() from neither of the participating accounts. The error is:
system.ExtrinsicFailed
contracts.ContractTrapped

Let me know once you've checked these!

@agryaznov
Copy link
Copy Markdown
Contributor Author

agryaznov commented Nov 29, 2021

Hi Marcin,

Hey, quick follow-up:

  • created another PR to make tests panic more explicitly: Add explicit panic messages agryaznov/candle-auction-ink#2
    Great one! I've merged it, thank you.

  • there is no way (aside from watching events) to check the current auction winner. Perhaps it's worth adding this to the output of get_status?

That's right, I agree. I've made a separate get_winning() method for that (because I'm not sure if it has something to do with the auction status itself - opening, ending period or ended). Please check it out @v0.1.9.

Please note that Canvas UI for some reason doesn't show its response correctly. Anyway, PolkadotJS does show it in Contracts section.

  • I wanted to instantiate the contract twice (with different params), but it errors out with the following message, at least via Canvas-UI: Uncaught error. Something went wrong with the query and rendering of this component. Cannot read properties of undefined (reading 'createType'). Other contracts seem to allow double instantiation (e.g. erc721). Let me know if you can reproduce and if you know a possible cause for this.

I confirm that I can reproduce it at Canvas UI current version. However, PolkadotJS app allows instantiation of several candle auction contracts from the same code hash (with different salts), which I've just tested. So I guess this is not a problem of the contract itself, and maybe we should report this issue to Canvas UI?

  • Payout didn't work. Steps: bid from Alice, outbid by Bob. get_winner() returns Bob correctly. I am unable to call payout() from neither of the participating accounts. The error is:
system.ExtrinsicFailed
contracts.ContractTrapped

I can't reproduce it now. But, last time I saw this issue, it was because OutOfGas. Please try to increase Max Gas amount for this transaction.

Thanks for your review and let me know if it helps!

@mmagician
Copy link
Copy Markdown
Contributor

@agryaznov Thanks a lot for quick fixes and replies again!
Sure, it's enough for it to work via the polkadot-js/apps.
I've now accepted milestone 1: https://github.com/w3f/Grant-Milestone-Delivery/blob/master/evaluations/candle-auction-ink_1_mmagician.md

Congratulations and I'm looking forward to the M2!

@mmagician mmagician merged commit ab25611 into w3f:master Nov 30, 2021
robcxyz pushed a commit to geometry-labs/Grant-Milestone-Delivery that referenced this pull request Dec 18, 2021
failfmi pushed a commit to LimeChain/Grant-Milestone-Delivery that referenced this pull request Sep 26, 2022
* Create bit_country_m2.md

initial draft for m2.

* Update bit_country_m2.md

Finalised the tasks in the milestone.

* Update bit_country_m2.md

minor milestone text update

* Update bit_country_m2.md

update team member

* Update bit_country_m2.md

update image.

* Update bit_country_m2.md

Change the amount to be USD as required.

* Update bit_country_m2.md

Add bootstrap tasks for launching testnet.

* Update grant application. (#1)

Restructure and update wording to improve clarity of deliverables.
Add summary and considerations sections.

* Tech stack and changing NFT native to support NFT

Tech stack and changing NFT native to support NFT

* update Duration

update Duration

* fix typo

Co-authored-by: Shannon Christie <20452861+shannon-christie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants