-
Notifications
You must be signed in to change notification settings - Fork 3
/
weifund-schema-example.json
339 lines (339 loc) · 15.6 KB
/
weifund-schema-example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
{
"@context": "http://weifund.io",
"@type": "CampaignContract",
"version": "0.1.0",
"address": "0xc437c87a1ee6ac2cc90ca3788b8209fb6a44d1c8",
"compiler": "solc",
"compilerFlags": "{'optimize': 1}",
"compilerVersion": "0.3.1-1",
"bytecode": "6060604052606060405190810160405280602d81526020017f636f6e747269627574654d736756616c756528293a2875696e7432353620636f81526020017f6e747269627574696f6e4944290000000000000000000000000000000000000081526020015060096000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100b257805160ff19168380011785556100e3565b828001600101855582156100e3579182015b828111156100e25782518260005055916020019190600101906100c4565b5b50905061010e91906100f0565b8082111561010a57600081815060009055506001016100f0565b5090565b5050606060405190810160405280602d81526020017f7061796f7574546f42656e656669636961727928293a2875696e74323536206181526020017f6d6f756e74436c61696d65642900000000000000000000000000000000000000815260200150600a6000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101be57805160ff19168380011785556101ef565b828001600101855582156101ef579182015b828111156101ee5782518260005055916020019190600101906101d0565b5b50905061021a91906101fc565b8082111561021657600081815060009055506001016101fc565b5090565b5050604051611094380380611094833981016040528080518201919060200180519060200190919080519060200190919080519060200190919050505b5b33600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b8360086000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106102d357805160ff1916838001178555610304565b82800160010185558215610304579182015b828111156103035782518260005055916020019190600101906102e5565b5b50905061032f9190610311565b8082111561032b5760008181506000905550600101610311565b5090565b5050826004600050819055508160026000508190555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff0219169083021790555033600060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b50505050610ce6806103ae6000396000f3606060405236156100ed576000357c01000000000000000000000000000000000000000000000000000000009004806306fdde03146100fa5780631cee07001461017557806337c08923146101c557806338af3eed146101e857806354fd4d50146102215780637a3a0e841461029c5780637b3e5e7b146102bf5780638da5cb5b146102e25780638e3390b41461031b578063a4d69fd314610396578063a63c7ba214610411578063ac5db33214610434578063c040e6b814610469578063d52230c41461048c578063db0251e9146104b8578063e184c9be146104db578063fb687c24146104fe576100ed565b6100f85b610002565b565b005b6101076004805050610579565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156101675780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61018b600480803590602001909190505061061a565b604051808473ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390f35b6101d2600480505061067a565b6040518082815260200191505060405180910390f35b6101f5600480505061068f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61022e60048050506106b5565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f16801561028e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a960048050506106cd565b6040518082815260200191505060405180910390f35b6102cc60048050506106d6565b6040518082815260200191505060405180910390f35b6102ef60048050506106df565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103286004805050610705565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156103885780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103a360048050506107a6565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156104035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61041e6004805050610847565b6040518082815260200191505060405180910390f35b61045360048080359060200190919080359060200190919050506109b2565b6040518082815260200191505060405180910390f35b61047660048050506109e7565b6040518082815260200191505060405180910390f35b6104a260048080359060200190919050506109f0565b6040518082815260200191505060405180910390f35b6104c56004805050610a31565b6040518082815260200191505060405180910390f35b6104e86004805050610cc5565b6040518082815260200191505060405180910390f35b61050b6004805050610cce565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f16801561056b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60086000508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106125780601f106105e757610100808354040283529160200191610612565b820191906000526020600020905b8154815290600101906020018083116105f557829003601f168201915b505050505081565b600660005081815481101561000257906000526020600020906003020160005b915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010160005054908060020160005054905083565b6000600660005080549050905061068c565b90565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60206040519081016040528060008152602001505b90565b60026000505481565b60036000505481565b600060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60096000508054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561079e5780601f106107735761010080835404028352916020019161079e565b820191906000526020600020905b81548152906001019060200180831161078157829003601f168201915b505050505081565b600a6000508054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561083f5780601f106108145761010080835404028352916020019161083f565b820191906000526020600020905b81548152906001019060200180831161082257829003601f168201915b505050505081565b600060026004600050544210156108685760006001600050819055506108a8565b42600460005054118015610886575060026000505460036000505410155b1561089b5760026001600050819055506108a7565b60016001600050819055505b5b806001600050541415156108bb57610002565b3073ffffffffffffffffffffffffffffffffffffffff163191508150600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600083604051809050600060405180830381858888f19350505050151561093657610002565b7f22c1e24047f1e0c1af6f78290547f44645cdd2ad4d06b09115a162e41460c4d5600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a1505b90565b600760005060205281600052604060002060005081815481101561000257906000526020600020900160005b91509150505481565b60016000505481565b6000600760005060008373ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600050805490509050610a2c565b919050565b60006000600460005054421015610a52576000600160005081905550610a92565b42600460005054118015610a70575060026000505460036000505410155b15610a85576002600160005081905550610a91565b60016001600050819055505b5b80600160005054141515610aa557610002565b600660005080548091906001019090815481835581811511610b3557600302816003028360005260206000209182019101610b349190610ae0565b80821115610b305760006000820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001820160005060009055600282016000506000905550600301610ae0565b5090565b5b5050509150815060606040519081016040528033815260200134815260200142815260200150600660005083815481101561000257906000526020600020906003020160005b5060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055506020820151816001016000505560408201518160020160005055905050600760005060003373ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000508054806001018281815481835581811511610c4657818360005260206000209182019101610c459190610c27565b80821115610c415760008181506000905550600101610c27565b5090565b5b5050509190906000526020600020900160005b84909190915055503460036000828282505401925050819055507f97a3367c201ad38e0d37322fd0ffa1b93457541ae8baf20eb9aa50bb83fcabef33604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1505b90565b60046000505481565b60206040519081016040528060008152602001505b9056",
"source": "https://github.com/weifund/weifund-contracts/blob/master/contracts/examples/StandardCampaign.sol",
"abi": [
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "contributions",
"outputs": [
{
"name": "sender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "created",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalContributions",
"outputs": [
{
"name": "amount",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "beneficiary",
"outputs": [
{
"name": "",
"type": "address"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "version",
"outputs": [
{
"name": "",
"type": "string"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "fundingGoal",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "amountRaised",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "contributeMethodABI",
"outputs": [
{
"name": "",
"type": "string"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "payoutMethodABI",
"outputs": [
{
"name": "",
"type": "string"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "payoutToBeneficiary",
"outputs": [
{
"name": "amountClaimed",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "uint256"
}
],
"name": "contributionsBySender",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "stage",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_sender",
"type": "address"
}
],
"name": "totalContributionsBySender",
"outputs": [
{
"name": "amount",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "contributeMsgValue",
"outputs": [
{
"name": "contributionID",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "expiry",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "refundMethodABI",
"outputs": [
{
"name": "",
"type": "string"
}
],
"type": "function"
},
{
"inputs": [
{
"name": "_name",
"type": "string"
},
{
"name": "_expiry",
"type": "uint256"
},
{
"name": "_fundingGoal",
"type": "uint256"
},
{
"name": "_beneficiary",
"type": "address"
}
],
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "_contributor",
"type": "address"
}
],
"name": "ContributionMade",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "_payoutDestination",
"type": "address"
},
{
"indexed": false,
"name": "_payoutAmount",
"type": "uint256"
}
],
"name": "RefundPayoutClaimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "_payoutDestination",
"type": "address"
},
{
"indexed": false,
"name": "_payoutAmount",
"type": "uint256"
}
],
"name": "BeneficiaryPayoutClaimed",
"type": "event"
}
],
"transactionHash": "",
"url": "http://nickdodson.com/",
"category": "Food",
"image": "http://nickdodson.com/style/images/Nick_Dodson_Parallels_San_Francisco_Pop_Scene_August_2012_small.jpg",
"mainEntity": "https://www.youtube.com/watch?v=EFEOw9SjjU4",
"i18n": {
"en": {
"name": "Nicks Coffee Run Campaign",
"alternateName": "Coffee Run!",
"description": "Everyone wants coffee, I have no money.. I want to raise around 50 dollars. That way I can buy my floor coffee.",
"disambiguatedDescription": "Everyone wants coffee, let's by them all a cup!",
"about": "Every once and a while you need a coffee. That is what I need, so I started a campaign.",
"contributionDisclaimer": "",
"payoutDisclaimer": "",
"refundDisclaimer": "",
}
},
"mailChimp": {
"forms": [{
"@context": "http://weifund.io",
"@type": "subscribe",
"action": "//weifund.us10.list-manage.com/subscribe/post?u=5fd10dccde0a9e8f200ae4e44&id=6c94b8c26f",
"fields": {
"email": 1
}
}]
},
"relatedContracts": []
}