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

Feature/binance chain integration #7738

Merged
merged 31 commits into from
Dec 7, 2020
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
35633ae
include binance_ext in models
chibie Oct 21, 2020
ca0b76e
feat(sync): get binance tx status; sync payout
chibie Oct 22, 2020
e3441a4
feat(binance): sync payouts via management command
chibie Oct 22, 2020
00be2e9
remove handling of replaced tx
chibie Oct 22, 2020
71f0816
fix(sync): optimize use of .get
chibie Oct 22, 2020
a7e74f8
feat(views): + binance_ext in bounty payout/fulfill
chibie Oct 22, 2020
1297511
fix(sync): some optimizations
chibie Oct 22, 2020
50c63d2
fix typo
chibie Oct 22, 2020
b0fe173
fix(binance): set host to gitcoin.co in headers
chibie Oct 23, 2020
bbdf704
feat: update bounty details
chibie Oct 26, 2020
27a5e0c
add placeholders for binance wallet connections
chibie Oct 27, 2020
c890fc7
fix(bounty): fix active class for polkadot selection
chibie Oct 27, 2020
2be26ce
Add BNB svg icon and include BNB token in bounties payable coins.
amustapha Oct 27, 2020
a0367fe
fix active class for polkadot selection
chibie Oct 27, 2020
af6fd71
Merge branch 'feature/binance-chain-integration' of github.com:gitcoi…
amustapha Oct 27, 2020
f68240c
setup binance sync test
chibie Oct 28, 2020
cfa0351
Change to Binance coin
amustapha Oct 28, 2020
191483c
Merge branch 'feature/binance-chain-integration' of github.com:gitcoi…
amustapha Oct 28, 2020
153ad92
feat(binance): add util to get wallet address balance
chibie Oct 30, 2020
d188bc3
feat(binance): handle chainChanged and connection events
chibie Oct 30, 2020
d9cc09c
feat(binance): fetch connected accounts
chibie Oct 30, 2020
9cc376d
feat(binance): add util to transfer token via extension
chibie Oct 30, 2020
28c19b3
feat(binance): add binance_extension.js; refactor
chibie Oct 30, 2020
6e7e0b7
fix(model): add binance tenant
chibie Oct 30, 2020
4c2e773
feat(binance): add missing svg
chibie Oct 30, 2020
fcae00f
feat(binance): select binance in hackathon new bounty
chibie Oct 30, 2020
9a985f1
Merge branch 'master' into feature/binance-chain-integration
chibie Nov 26, 2020
c1762f6
feat(sync): save pending transactions; celo/etc
chibie Nov 26, 2020
504d1c6
remove binance init comment
chibie Nov 26, 2020
c95d5cd
compress binance.svg with svgo
chibie Dec 2, 2020
aab9609
Merge branch 'master' into feature/binance-chain-integration
chibie Dec 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5586,7 +5586,7 @@ def fulfill_bounty_v1(request):
if payout_type == 'fiat' and not fulfiller_identifier:
response['message'] = 'error: missing fulfiller_identifier'
return JsonResponse(response)
elif (payout_type == 'qr' or payout_type == 'polkadot-ext') and not fulfiller_address:
elif payout_type in ['qr', 'polkadot-ext', 'binance-ext'] and not fulfiller_address:
chibie marked this conversation as resolved.
Show resolved Hide resolved
response['message'] = 'error: missing fulfiller_address'
return JsonResponse(response)

Expand Down Expand Up @@ -5700,8 +5700,8 @@ def payout_bounty_v1(request, fulfillment_id):
if not payout_type:
response['message'] = 'error: missing parameter payout_type'
return JsonResponse(response)
if payout_type not in ['fiat', 'qr', 'web3_modal', 'polkadot_ext', 'manual']:
response['message'] = 'error: parameter payout_type must be fiat / qr / web_modal / polkadot_ext / manual'
if payout_type not in ['fiat', 'qr', 'web3_modal', 'polkadot_ext', 'binance_ext', 'manual']:
response['message'] = 'error: parameter payout_type must be fiat / qr / web_modal / polkadot_ext / binance_ext / manual'
return JsonResponse(response)
if payout_type == 'manual' and not bounty.event:
response['message'] = 'error: payout_type manual is eligible only for hackathons'
Expand Down Expand Up @@ -5767,7 +5767,7 @@ def payout_bounty_v1(request, fulfillment_id):
fulfillment.save()
record_bounty_activity(bounty, user, 'worker_paid', None, fulfillment)

elif payout_type in ['qr', 'web3_modal', 'polkadot_ext']:
elif payout_type in ['qr', 'web3_modal', 'polkadot_ext', 'binance_ext']:
fulfillment.payout_status = 'pending'
fulfillment.save()
sync_payout(fulfillment)
Expand Down