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

casper crosschain | bounties/hackathons #9291

Merged
merged 24 commits into from
Jul 26, 2021
Merged

Conversation

chibie
Copy link
Contributor

@chibie chibie commented Jul 14, 2021

Description

Integrate Casper chain into Gitcoin platform so that users would be allowed to use CSPR for bounties and hackathons

Bounties Integration

Frontend

  • Add chain to bounty creation + hack form form (staff flag)
  • Funder should be able to create bounty with Casper
  • User should be able to start / stop / submit work with Casper
  • Funder should be able to payout using Casper signer

Backend

  • Verify CSPR transaction
  • Update bounty creation and fulfillment endpoints
  • Testing

Refers/Fixes

#GITC-183
#GITC-184
#GITC-185
#GITC-186

Testing

@chibie chibie marked this pull request as ready for review July 21, 2021 03:35
app/app/urls.py Outdated Show resolved Hide resolved
app/dashboard/views.py Show resolved Hide resolved
app/dashboard/views.py Show resolved Hide resolved
app/dashboard/sync/casper.py Outdated Show resolved Hide resolved
Copy link
Contributor

@zlsgh zlsgh left a comment

Choose a reason for hiding this comment

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

Can we add a little more explanation in a comment about the IP address for the Casper URL?

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

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

Nice work @chibie 🚀

@@ -438,7 +438,7 @@ <h5 class="font-body font-weight-semibold">{% trans "SUBMISSIONS" %}</h5>
</div>

<!-- WEB3 MODAL FLOW -->
<div v-else-if="fulfillment.payout_type == 'algorand_ext' || fulfillment.payout_type == 'xinfin_ext' || fulfillment.payout_type == 'rsk_ext' || fulfillment.payout_type == 'web3_modal' || fulfillment.payout_type == 'polkadot_ext' || fulfillment.payout_type == 'harmony_ext' || fulfillment.payout_type == 'binance_ext' || fulfillment.payout_type == 'tezos_ext'" class="px-sm-4">
<div v-else-if="fulfillment.payout_type == 'algorand_ext' || fulfillment.payout_type == 'xinfin_ext' || fulfillment.payout_type == 'rsk_ext' || fulfillment.payout_type == 'web3_modal' || fulfillment.payout_type == 'polkadot_ext' || fulfillment.payout_type == 'harmony_ext' || fulfillment.payout_type == 'binance_ext' || fulfillment.payout_type == 'tezos_ext' || fulfillment.payout_type == 'casper_ext'" class="px-sm-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

we are getting in a moment to rethink the crosschain code 🤣

Copy link
Contributor Author

Choose a reason for hiding this comment

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

swears man! we really need to! 😄

@@ -1163,6 +1163,11 @@ <h3>{{ noscript.keywords }}</h3>
<script src="{% static "v2/js/lib/tezos/taquito-beacon-wallet.min.js" %}"></script>
<script src="{% static "v2/js/pages/bounty_detail/tezos_extension.js" %}"></script>

{% elif web3_type == 'casper_ext' %}

<script src="{% static "v2/js/lib/casper/casper_js_sdk.js" %}"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

@gdixon this is right with the new yarn config?

Copy link
Member

Choose a reason for hiding this comment

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

yup yup ! i asked the same thing in the PR :P all custom lib cross chain file continue to live in the path

@thelostone-mc thelostone-mc merged commit f8ede14 into master Jul 26, 2021
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.

5 participants