Skip to content

Commit 32f0440

Browse files
Add abi and update readme
1 parent 911c6ba commit 32f0440

File tree

2 files changed

+86
-10
lines changed

2 files changed

+86
-10
lines changed

Diff for: README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@ I have noticed a common scheme for event organizers and venues.
55

66
> Split the donations (between the event organizer) and a venue (bar, coffee shop, coworking space...) (50 / 50)%
77
8-
* Front end aka site
9-
* contract code
8+
* Front end (coming up soon)
9+
* [contract code](https://github.com/mohamedhayibor/splitDonations/blob/master/contracts/splitDonations.sol) | deployed on [rinkeby](https://rinkeby.etherscan.io/address/0xe50a24d1bfb94d11df0df6d226d382ddeb451def).
1010

11+
Usage:
12+
=========
13+
14+
Just tell the attendees the address of your contract. Work as any simple transfers in Ethereum.
1115

1216
Notes:
1317
=====
1418

15-
Assumption: The person responsible of `donationAddress` will make sure of the conversion to fiat to be given to non-profits.
16-
17-
The contract is the owner of the funds until split between event organanizer and venue owner.
18-
19-
If you have an Eth meetup, put some skin in the game and set up your donations this way.
20-
21-
> splitDonations.sol deployed on [rinkeby](https://rinkeby.etherscan.io/address/0xe50a24d1bfb94d11df0df6d226d382ddeb451def).
19+
* Assumption: The organizer will make sure of the conversion to fiat to be given to non-profits.
20+
* The contract is the owner of the funds until split between event organanizer and venue owner.
21+
* Working on the front-end but for now, you can interact with it with [mycrypto](https://mycrypto.com/contracts/interact)
2222

23-
Working on the front-end but for now, you can interact with [mycrypto](https://mycrypto.com/contracts/interact)

Diff for: contracts/splitDonationsABI.json

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
[
2+
{
3+
"constant": false,
4+
"inputs": [],
5+
"name": "withdraw",
6+
"outputs": [],
7+
"payable": false,
8+
"stateMutability": "nonpayable",
9+
"type": "function"
10+
},
11+
{
12+
"constant": true,
13+
"inputs": [],
14+
"name": "venueAddress",
15+
"outputs": [
16+
{
17+
"name": "",
18+
"type": "address"
19+
}
20+
],
21+
"payable": false,
22+
"stateMutability": "view",
23+
"type": "function"
24+
},
25+
{
26+
"constant": true,
27+
"inputs": [],
28+
"name": "currentContractBalance",
29+
"outputs": [
30+
{
31+
"name": "",
32+
"type": "uint256"
33+
}
34+
],
35+
"payable": false,
36+
"stateMutability": "view",
37+
"type": "function"
38+
},
39+
{
40+
"constant": true,
41+
"inputs": [],
42+
"name": "organizerAddress",
43+
"outputs": [
44+
{
45+
"name": "",
46+
"type": "address"
47+
}
48+
],
49+
"payable": false,
50+
"stateMutability": "view",
51+
"type": "function"
52+
},
53+
{
54+
"constant": false,
55+
"inputs": [],
56+
"name": "deposit",
57+
"outputs": [],
58+
"payable": true,
59+
"stateMutability": "payable",
60+
"type": "function"
61+
},
62+
{
63+
"inputs": [
64+
{
65+
"name": "_organizerAddress",
66+
"type": "address"
67+
},
68+
{
69+
"name": "_venueAddress",
70+
"type": "address"
71+
}
72+
],
73+
"payable": false,
74+
"stateMutability": "nonpayable",
75+
"type": "constructor"
76+
}
77+
]

0 commit comments

Comments
 (0)