-
Notifications
You must be signed in to change notification settings - Fork 43
/
config.schema.json
115 lines (115 loc) · 4.11 KB
/
config.schema.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Genesis config",
"description": "Config file for headless genesis block generation",
"type": "object",
"properties": {
"data": {
"type": "object",
"description": "Game data to set into genesis block.",
"properties": {
"tablePath": {
"type": "string",
"description": "A Path of game data table directory."
}
}
},
"currency": {
"type": "object",
"description": "Currency related configurations. Set initial minter(Tx signer) and/or initial currency depositions. If not provided, default values will set.",
"properties": {
"allowMint": {
"type": "boolean"
},
"initialMinter": {
"type": "string",
"description": "Private Key of initial currency minter. If not provided, a new private key will be created and used."
},
"initialCurrencyDeposit": {
"type": "array",
"description": "Initial currency deposition list. If you leave it empty list or even not provide, the `InitialMinter` will get 10000 currency. You can see newly created deposition info in `initial_deposit.csv` file",
"items": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"amount": {
"type": "integer"
},
"start": {
"type": "integer"
},
"end": {
"type": "integer"
}
}
}
}
}
},
"admin": {
"type": "object",
"description": "Admin related configurations. If not provided, no admin will be set.",
"properties": {
"activate": {
"type": "boolean",
"description": "Whether active admin address or not."
},
"address": {
"type": "string",
"description": "Address to give admin privilege. If `Activate` is `true` and no `address` provided, the minter will get admin privilege."
},
"validUntil": {
"type": "integer",
"description": "The block count to persist admin privilege. After this block, admin will no longer be admin."
}
}
},
"initialValidatorSet": {
"type": "array",
"items": {
"type": "object",
"properties": {
"publicKey": {
"type": "string"
},
"power": {
"type": "integer"
}
}
}
},
"initialMeadConfigs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"amount": {
"type": "string"
}
}
}
},
"initialPledgeConfigs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"agentAddress": {
"type": "string"
},
"patronAddress": {
"type": "string"
},
"mead": {
"type": "string"
}
}
}
}
}
}