From 082ed0237f05a33e5653e802b9a0432c680ae001 Mon Sep 17 00:00:00 2001 From: Rafal Date: Sun, 10 Mar 2019 15:42:12 +0100 Subject: [PATCH 1/5] Add functionality to become a matching partner --- app/assets/v2/js/grants/newMatchingPartner.js | 29 +++++++++++++++++++ app/grants/templates/grants/index.html | 5 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 app/assets/v2/js/grants/newMatchingPartner.js diff --git a/app/assets/v2/js/grants/newMatchingPartner.js b/app/assets/v2/js/grants/newMatchingPartner.js new file mode 100644 index 00000000000..a7f3c401b86 --- /dev/null +++ b/app/assets/v2/js/grants/newMatchingPartner.js @@ -0,0 +1,29 @@ +function saveMatchingPartner(hash) { + +}; + +function processPayment() { + + var transactionParams = { + to: '0x00De4B13153673BCAE2616b67bf822500d325Fc3', + from: '0x250608D0AEEB7489Adba2aE5856c80b8714ffABf', + } + + web3.eth.sendTransaction( + transactionParams, + function(error, hash) { + if (error) { + _alert(error.message, 'error'); + } + else { + saveMatchingPartner(hash); + _alert( + 'Thank you for volunteering to match on Gitcoin Grants. You are supporting open source, and we thank you', + 'success' + ); + } + } + ); +}; + + diff --git a/app/grants/templates/grants/index.html b/app/grants/templates/grants/index.html index af50298bd48..6afa463b50a 100644 --- a/app/grants/templates/grants/index.html +++ b/app/grants/templates/grants/index.html @@ -61,7 +61,9 @@

{% trans 'Provide sustainable funding for Open Source

Matching Partners

A special thanks to the following partners who have offered to match contributions to Gitcoin Grants. (Read Announcement Here)

- +
+ {% trans 'Become a Matching Partner' %} +