-
Notifications
You must be signed in to change notification settings - Fork 3
/
contracts.json
261 lines (261 loc) · 7.36 KB
/
contracts.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
[
{
"name": "Depository",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Provide depository contract with optimized depository key id auto-calculation.",
"package": "example/depository",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "DONE",
"interfaces": [
{
"name": "Initialize",
"args": [""],
"condition": "none",
"description": "initialize the contract"
},
{
"name": "EnableACL",
"args": [],
"condition": "none",
"description": "enable access control in Depository(disabled by default)"
},
{
"name": "DisableACL",
"args": [],
"condition": "none",
"description": "disable access control in Depository(disabled by default)"
},
{
"name": "GetValueByIndex",
"args": ["string index"],
"condition": "none",
"description": "queries deposit value by index"
},
{
"name": "GetValueByKID",
"args": ["string kid"],
"condition": "none",
"description": "queries deposit value by key"
},
{
"name": "BatchPutUntrustValue",
"args": ["string batchValStr"],
"condition": "none",
"description": "generate depositories in a batch(without message signature)"
},
{
"name": "PutUntrustValue",
"args": ["string val"],
"condition": "none",
"description": "generate depository(without message signature)"
},
{
"name": "BatchPutValue",
"args": ["message msg", "string batchValStr"],
"condition": "client role only(when ACL enabled)",
"description": "generate depositories in a batch"
},
{
"name": "PutValue",
"args": ["string val"],
"condition": "client role only(when ACL enabled)",
"description": "generates and saves depository"
},
{
"name": "Total",
"args": [""],
"condition": "none",
"description": "returns total number of deposits"
},
{
"name": "Check",
"args": ["string account", "uint64 dstNonce"],
"condition": "none",
"description": "checks if account's nonce is equal to dstNonce"
},
{
"name": "Current",
"args": ["string account"],
"condition": "none",
"description": "returns the account's current nonce"
},
{
"name": "Increment",
"args": ["string account"],
"condition": "none",
"description": "increase account's nonce by 1"
}
]
},
{
"name": "AcccessControl",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Provide role-based access control",
"package": "example/acl",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "DONE",
"interfaces": [
{
"name": "GetRoleAdmin",
"args": ["string role"],
"condition": "none",
"description": "returns admin that manages role"
},
{
"name": "GrantRole",
"args": ["string role", "string account"],
"condition": "admin role only",
"description": "grants role to account"
},
{
"name": "HasRole",
"args": ["string role", "string account"],
"condition": "none",
"description": "queries if the account has the role"
},
{
"name": "Initialize",
"args": [""],
"condition": "none",
"description": "initialize the contract"
},
{
"name": "Owner",
"args": [""],
"condition": "none",
"description": "returns the contract owner's address"
},
{
"name": "RenounceOwnership",
"args": [""],
"condition": "contract owner only",
"description": "renounces the contract owner to zeroAddress"
},
{
"name": "RenounceRole",
"args": ["string role", "string account"],
"condition": "none",
"description": "renounces the account's own role"
},
{
"name": "RevokeRole",
"args": ["string role", "string account"],
"condition": "admin role only",
"description": "revokes account's role"
},
{
"name": "SetRoleAdmin",
"args": ["string role", "string adminRole"],
"condition": "contract owner only",
"description": "sets the admin role"
},
{
"name": "TransferOwnership",
"args": ["string newOwner"],
"condition": "contract owner only",
"description": "transfers contracts ownership to newOwner"
}
]
},
{
"name": "Nonce",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Provide account nonce management",
"package": "example/nonce",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "DONE",
"interfaces": [
{
"name": "Check",
"args": ["string account", "uint64 dstNonce"],
"condition": "none",
"description": "checks if account's nonce is equal to dstNonce"
},
{
"name": "Current",
"args": ["string account"],
"condition": "none",
"description": "returns the account's current nonce"
},
{
"name": "Increment",
"args": ["string account"],
"condition": "none",
"description": "increase account's nonce by 1"
}
]
},
{
"name": "Timelock",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Provide a basic exmaple for Timelock library usage",
"package": "example/timelock",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "DONE",
"interfaces": [
{
"name": "Execute",
"args": ["string opHash"],
"condition": "none",
"description": "executes operation with hash opHash"
},
{
"name": "GetValue",
"args": ["string key"],
"condition": "none",
"description": "queries value with key"
},
{
"name": "Schedule",
"args": ["string key", "string value", "uint64 duration"],
"condition": "none",
"description": "generates operation of storing key-value pair, sets a time lock that releases after duration time"
}
]
},
{
"name": "ERC1155",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Provide a erc1155 implementation on hyperledger fabric",
"package": "example/erc1155",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "WIP"
},
{
"name": "ERC20",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Provide a erc20 implementation on hyperledger fabric",
"package": "example/erc20",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "WIP"
},
{
"name": "Market",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "Implement Component Market including repository,component,license",
"package": "example/market",
"createdAt": "1684835189172",
"updatedAt": "1684835189172",
"status": "WIP"
}
]