-
Notifications
You must be signed in to change notification settings - Fork 3
/
contracts_zh_Hans.json
261 lines (261 loc) · 7.42 KB
/
contracts_zh_Hans.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": "提供存证应用的接口",
"package": "example/depository",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "已完成",
"interfaces": [
{
"name": "Initialize",
"args": [""],
"condition": "无",
"description": "用于初始化合约"
},
{
"name": "EnableACL",
"args": [],
"condition": "none",
"description": "启用ACL访问控制(默认禁用)"
},
{
"name": "DisableACL",
"args": [],
"condition": "none",
"description": "禁用ACL访问控制(默认禁用)"
},
{
"name": "GetValueByIndex",
"args": ["string index"],
"condition": "无",
"description": "基于存证索引(index)查询存证"
},
{
"name": "GetValueByKID",
"args": ["string kid"],
"condition": "无",
"description": "基于存证key id查询存证"
},
{
"name": "BatchPutUntrustValue",
"args": ["string batchValStr"],
"condition": "无",
"description": "用于批次的生成存证(无message签名)"
},
{
"name": "PutUntrustValue",
"args": ["string val"],
"condition": "无",
"description": "用于生成存证(无message签名)"
},
{
"name": "BatchPutValue",
"args": ["message msg", "string batchValStr"],
"condition": "无",
"description": "用于批次的生成存证"
},
{
"name": "PutValue",
"args": ["message msg", "string val"],
"condition": "仅允许合约 client 角色使用(启用ACL后)",
"description": "用于生成存证(有message签名)"
},
{
"name": "Total",
"args": [""],
"condition": "无",
"description": "用于获取存证总数"
},
{
"name": "Check",
"args": ["string account", "uint64 dstNonce"],
"condition": "无",
"description": "用于核验 account 的 nonce 值是否与 dstNonce 相同"
},
{
"name": "Current",
"args": ["string account"],
"condition": "无",
"description": "用于查询 account 的 nonce 值"
},
{
"name": "Increment",
"args": ["string account"],
"condition": "无",
"description": "用于使 account 的 nonce 值自增 1"
}
]
},
{
"name": "AccessControl",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "提供基于角色的访问控制",
"package": "example/acl",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "已完成",
"interfaces": [
{
"name": "GetRoleAdmin",
"args": ["string role"],
"condition": "无",
"description": "获取管理 role 角色的 admin"
},
{
"name": "GrantRole",
"args": ["string role", "string account"],
"condition": "仅允许合约 admin 角色使用",
"description": "用于为 account 授予 role 角色"
},
{
"name": "HasRole",
"args": ["string role", "string account"],
"condition": "无",
"description": "用于查询 account 是否拥有 role 角色"
},
{
"name": "Initialize",
"args": [""],
"condition": "无",
"description": "用于初始化合约"
},
{
"name": "Owner",
"args": [""],
"condition": "无",
"description": "用于查询合约的 owner 地址"
},
{
"name": "RenounceOwnership",
"args": [""],
"condition": "仅允许合约 owner 使用",
"description": "用于重置合约 owner 至零地址"
},
{
"name": "RenounceRole",
"args": ["string role", "string account"],
"condition": "无",
"description": "用于取消自身的 role 角色"
},
{
"name": "RevokeRole",
"args": ["string role", "string account"],
"condition": "仅允许合约 admin 角色使用",
"description": "用于取消 account 的 role 角色"
},
{
"name": "SetRoleAdmin",
"args": ["string role", "string adminRole"],
"condition": "仅允许合约 owner 使用",
"description": "用于修改 Role 管理权限"
},
{
"name": "TransferOwnership",
"args": ["string newOwner"],
"condition": "仅允许合约 owner 使用",
"description": "用于将合约 owner 转移给 newOwner"
}
]
},
{
"name": "Nonce",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "提供类以太坊账户Nonce值的视线",
"package": "example/nonce",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "已完成",
"interfaces": [
{
"name": "Check",
"args": ["string account", "uint64 dstNonce"],
"condition": "无",
"description": "用于核验 account 的 nonce 值是否与 dstNonce 相同"
},
{
"name": "Current",
"args": ["string account"],
"condition": "无",
"description": "用于查询 account 的 nonce 值"
},
{
"name": "Increment",
"args": ["string account"],
"condition": "无",
"description": "用于使 account 的 nonce 值自增 1"
}
]
},
{
"name": "Timelock",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "提供时间锁合约,用于实现操作延时执行",
"package": "example/timelock",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "已完成",
"interfaces": [
{
"name": "Execute",
"args": ["string opHash"],
"condition": "无",
"description": "用于执行哈希值为 opHash 值的操作"
},
{
"name": "GetValue",
"args": ["string key"],
"condition": "无",
"description": "用于查询 key 对应的 value"
},
{
"name": "Schedule",
"args": ["string key", "string value", "uint64 duration"],
"condition": "无",
"description": "用于生成设置 key-value 键值对的操作,并令该操作在 duration 时长后解锁"
}
]
},
{
"name": "ERC1155",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "基于ERC1155协议实现的NFT合约",
"package": "example/erc1155",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "进行中"
},
{
"name": "ERC20",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "基于ERC20协议实现的同质化代币合约",
"package": "example/erc20",
"createdAt": "1683869600398",
"updatedAt": "1683869600398",
"status": "进行中"
},
{
"name": "Market",
"version": "v0.0.1",
"language": "Golang",
"from": "Bestchains Team",
"description": "实现组件市场功能,支持仓库管理、组件管理、License管理",
"package": "example/market",
"createdAt": "1684835189172",
"updatedAt": "1684835189172",
"status": "进行中"
}
]