-
Notifications
You must be signed in to change notification settings - Fork 0
/
aegis.abi
135 lines (135 loc) · 8.38 KB
/
aegis.abi
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
{
"____comment": "This file was generated by eosio-abigen. DO NOT EDIT - 2018-06-26T12:09:53",
"version": "eosio::abi/1.0",
"types": [],
"structs": [{
"name": "patron",
"base": "",
"fields": [{
"name": "name",
"type": "name"
},{
"name": "balance",
"type": "asset"
}
]
},{
"name": "claim",
"base": "",
"fields": []
},{
"name": "refund",
"base": "",
"fields": [{
"name": "patron",
"type": "name"
}
]
},{
"name": "setreceiver",
"base": "",
"fields": [{
"name": "receiver",
"type": "name"
}
]
},{
"name": "aegis_state",
"base": "",
"fields": [{
"name": "receiver",
"type": "name"
},{
"name": "last_claim",
"type": "time_point_sec"
}
]
}
],
"actions": [{
"name": "claim",
"type": "claim",
"ricardian_contract": "# CONTRACT FOR aegis::claim\n\n## ACTION NAME: claim\n\n### Parameters\n\nImplied parameters: \n\n* `account_name` (name of the party invoking and signing the contract)\n\n### Intent\nINTENT. The intention of the author and the invoker of this contract is to claim a 10% of the budget set by patrons per week to the receiver. It shall have no other effect.\n\n### Term\nTERM. This Contract expires at the conclusion of code execution.\n"
},{
"name": "refund",
"type": "refund",
"ricardian_contract": "# CONTRACT FOR aegis::refund\n\n## ACTION NAME: refund\n\n### Parameters\nInput parameters:\n\n* `patron` (name of the party receiving back his part of the funds)\n\nImplied parameters: \n\n* `account_name` (name of the party invoking and signing the contract)\n\n### Intent\nINTENT. The intention of the author and the invoker of this contract is to refund partially to the patron. It shall have no other effect.\n\n### Term\nTERM. This Contract expires at the conclusion of code execution."
},{
"name": "setreceiver",
"type": "setreceiver",
"ricardian_contract": "# CONTRACT FOR aegis::setreceiver\n\n## ACTION NAME: setreceiver\n\n### Parameters\nInput parameters:\n\n* `receiver` (name of the party to receive funds from the contract with the possibility to claim)\n\nImplied parameters: \n\n* `account_name` (name of the party invoking and signing the contract)\n\n### Intent\nINTENT. The intention of the author and the invoker of this contract is to set a receiver for the funds. It shall have no other effect.\n\n### Term\nTERM. This Contract expires at the conclusion of code execution."
}
],
"tables": [{
"name": "patrons",
"index_type": "i64",
"key_names": [
"name"
],
"key_types": [
"name"
],
"type": "patron"
},{
"name": "history",
"index_type": "i64",
"key_names": [
"name"
],
"key_types": [
"name"
],
"type": "patron"
},
{
"name": "global",
"type": "aegis_state",
"index_type": "i64",
"key_names" : [],
"key_types" : []
}
],
"ricardian_clauses": [{
"id": "Warranty",
"body": "WARRANTY. The invoker of the contract action shall uphold its Obligations under this Contract in a timely and workmanlike manner, using knowledge and recommendations for performing the services which meet generally acceptable standards set forth by EOS.IO Blockchain Block Producers.\n\n"
},{
"id": "Default",
"body": "DEFAULT. The occurrence of any of the following shall constitute a material default under this Contract: \n\n"
},{
"id": "Remedies",
"body": "REMEDIES. In addition to any and all other rights a party may have available according to law, if a party defaults by failing to substantially perform any provision, term or condition of this Contract, the other party may terminate the Contract by providing written notice to the defaulting party. This notice shall describe with sufficient detail the nature of the default. The party receiving such notice shall promptly be removed from being a Block Producer and this Contract shall be automatically terminated. \n \n"
},{
"id": "Force Majeure",
"body": "FORCE MAJEURE. If performance of this Contract or any obligation under this Contract is prevented, restricted, or interfered with by causes beyond either party's reasonable control (\"Force Majeure\"), and if the party unable to carry out its obligations gives the other party prompt written notice of such event, then the obligations of the party invoking this provision shall be suspended to the extent necessary by such event. The term Force Majeure shall include, without limitation, acts of God, fire, explosion, vandalism, storm or other similar occurrence, orders or acts of military or civil authority, or by national emergencies, insurrections, riots, or wars, or strikes, lock-outs, work stoppages, or supplier failures. The excused party shall use reasonable efforts under the circumstances to avoid or remove such causes of non-performance and shall proceed to perform with reasonable dispatch whenever such causes are removed or ceased. An act or omission shall be deemed within the reasonable control of a party if committed, omitted, or caused by such party, or its employees, officers, agents, or affiliates. \n \n"
},{
"id": "Dispute Resolution",
"body": "DISPUTE RESOLUTION. Any controversies or disputes arising out of or relating to this Contract will be resolved by binding arbitration under the default rules set forth by the EOS.IO Blockchain. The arbitrator's award will be final, and judgment may be entered upon it by any court having proper jurisdiction. \n \n"
},{
"id": "Entire Agreement",
"body": "ENTIRE AGREEMENT. This Contract contains the entire agreement of the parties, and there are no other promises or conditions in any other agreement whether oral or written concerning the subject matter of this Contract. This Contract supersedes any prior written or oral agreements between the parties. \n\n"
},{
"id": "Severability",
"body": "SEVERABILITY. If any provision of this Contract will be held to be invalid or unenforceable for any reason, the remaining provisions will continue to be valid and enforceable. If a court finds that any provision of this Contract is invalid or unenforceable, but that by limiting such provision it would become valid and enforceable, then such provision will be deemed to be written, construed, and enforced as so limited. \n\n"
},{
"id": "Amendment",
"body": "AMENDMENT. This Contract may be modified or amended in writing by mutual agreement between the parties, if the writing is signed by the party obligated under the amendment. \n\n"
},{
"id": "Governing Law",
"body": "GOVERNING LAW. This Contract shall be construed in accordance with the Maxims of Equity. \n\n"
},{
"id": "Notice",
"body": "NOTICE. Any notice or communication required or permitted under this Contract shall be sufficiently given if delivered to a verifiable email address or to such other email address as one party may have publicly furnished in writing, or published on a broadcast contract provided by this blockchain for purposes of providing notices of this type. \n"
},{
"id": "Waiver of Contractual Right",
"body": "WAIVER OF CONTRACTUAL RIGHT. The failure of either party to enforce any provision of this Contract shall not be construed as a waiver or limitation of that party's right to subsequently enforce and compel strict compliance with every provision of this Contract. \n\n"
},{
"id": "Arbitrator's Fees to Prevailing Party",
"body": "ARBITRATOR'S FEES TO PREVAILING PARTY. In any action arising hereunder or any separate action pertaining to the validity of this Agreement, both sides shall pay half the initial cost of arbitration, and the prevailing party shall be awarded reasonable arbitrator's fees and costs.\n \n"
},{
"id": "Construction and Interpretation",
"body": "CONSTRUCTION AND INTERPRETATION. The rule requiring construction or interpretation against the drafter is waived. The document shall be deemed as if it were drafted by both parties in a mutual effort. \n \n"
}
],
"error_messages": [],
"abi_extensions": []
}