aufacicenta / pulsemarkets

pulsemarkets-v2-web.vercel.app
1 stars 3 forks source link

Migrate NEAR Rust Market contract to Arbitrum Stylus #199

Closed netpoe closed 10 months ago

netpoe commented 11 months ago

Implement the Market contracts library in Arbitrum Stylus

A user should be able to play https://promptwars.xyz with a Metamask or any other EVM compatible wallet connected to the Arbitrum mainnet.

The current working contracts are these:

https://github.com/aufacicenta/pulsemarkets/tree/master/contracts/prompt-wars https://github.com/aufacicenta/pulsemarkets/tree/master/contracts/market-factory

Basically, transpose them to use the Arbitrum Rust SDK so that the game can be played seamlessly in Arbitrum.

Motivation

Currently, https://promptwars.xyz/ is powered by NEAR Rust SDK smart-contracts. We want to move into Arbitrum smart-contracts to harness all EVM compatible wallets.

How to get paid

Simply submit a PR with a working solution (including tests), and we'll transfer the money after merging into master.

Acceptance Criteria

How to communicate with us?

Ask all the questions you want in the github comments of this issue. Or start a PR and we should talk about code 🤗

Additional docs and resources

https://docs.promptwars.xyz/

netpoe commented 11 months ago

/bounty 1500

algora-pbc[bot] commented 11 months ago

💎 $1,500 bounty created by netpoe 🙋 If you start working on this, comment /attempt #199 to notify everyone 👉 To claim this bounty, submit a pull request that includes the text /claim #199 somewhere in its body 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to aufacicenta/pulsemarkets!

Attempt Started (GMT+0) Solution
🔴 @neo773 Oct 15, 2023, 5:53:28 PM WIP
🟢 @mrkirthi-24 Oct 16, 2023, 4:17:16 AM WIP
🟢 @feliciien Oct 24, 2023, 6:03:21 PM WIP
mrkirthi-24 commented 11 months ago

/attempt #199

Options
netpoe commented 11 months ago

@mrkirthi-24 thanks for taking this challenge. Let me know about your discoveries and any inquiries you may have 👍

feliciien commented 11 months ago

/attempt #199

Options
algora-pbc[bot] commented 11 months ago

Note: The user @mrkirthi-24 is already attempting to complete issue #199 and claim the bounty. If you attempt to complete the same issue, there is a chance that @mrkirthi-24 will complete the issue first, and be awarded the bounty. We recommend discussing with @mrkirthi-24 and potentially collaborating on the same solution versus creating an alternate solution.

feliciien commented 11 months ago

I would like to give a try to this one.

mrkirthi-24 commented 11 months ago

I would like to withdraw myself from this issue. @feliciien you can please go ahead with it 👍

netpoe commented 10 months ago

cc @Udit-takkar this is the issue I mentioned on Linkedin.

The Solidity ABI interface methods should be the same as in the Rust contracts, so that Typescript client implementation remains the same: https://github.com/aufacicenta/pulsemarkets/blob/master/app/src/providers/near/contracts/prompt-wars/contract.ts

netpoe commented 10 months ago

@feliciien any progress so far? You may push your progress for early reviewal. No strings attached.

feliciien commented 10 months ago

Hello I already implemented the https://arbitrum.io/stylus Contract but I have. To connect it to the pulse markets and do test I’m also looking for the frontend page so I can add the logo make it work. Diouf

On Sun, 29 Oct 2023 at 16:58 Gus @.***> wrote:

@feliciien https://github.com/feliciien any progress so far? You may push your progress for early reviewal. No strings attached.

— Reply to this email directly, view it on GitHub https://github.com/aufacicenta/pulsemarkets/issues/199#issuecomment-1784167006, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3Y7KB44FP45KNUICWBQXBDYB2DKTAVCNFSM6AAAAAA57LPPG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGE3DOMBQGY . You are receiving this because you were mentioned.Message ID: @.***>

feliciien commented 10 months ago

And when I try to receive the fee token on the metamask nothing happens so I can’t do appropriate test I send them a mail but no response Diouf

On Sun, 29 Oct 2023 at 17:32 Felicien diouf @.***> wrote:

Hello I already implemented the https://arbitrum.io/stylus Contract but I have. To connect it to the pulse markets and do test I’m also looking for the frontend page so I can add the logo make it work.

Diouf

On Sun, 29 Oct 2023 at 16:58 Gus @.***> wrote:

@feliciien https://github.com/feliciien any progress so far? You may push your progress for early reviewal. No strings attached.

— Reply to this email directly, view it on GitHub https://github.com/aufacicenta/pulsemarkets/issues/199#issuecomment-1784167006, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3Y7KB44FP45KNUICWBQXBDYB2DKTAVCNFSM6AAAAAA57LPPG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGE3DOMBQGY . You are receiving this because you were mentioned.Message ID: @.***>

feliciien commented 10 months ago

today i want to rewrite the entire contract in Solidity. This involves defining the contract, functions, and data structures in Solidity syntax. if I finish with that I will do a push for review.

netpoe commented 10 months ago

today i want to rewrite the entire contract in Solidity. This involves defining the contract, functions, and data structures in Solidity syntax. if I finish with that I will do a push for review.

Great. Yeah, Solidity will do best. Stylus is still in alpha, prob. not a good move...