-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathwallet.schema.json
223 lines (223 loc) · 6.86 KB
/
wallet.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
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
{
"$schema": "https://json-schema.org/draft-07/schema#",
"$id": "https://json-schema.org/draft-07/schema",
"title": "Cosmos Wallet",
"description": "Cosmos Wallet.json is a metadata file that contains information about a wallet of a specific platform and which chains it supports, either natively or via custom client-side addition.",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"wallet_name": {
"type": "string",
"pattern": "[a-z]+"
},
"pretty_name": {
"type": "string"
},
"website": {
"type": "string",
"format": "url"
},
"git_repo": {
"type": "string",
"format": "url"
},
"supported_chains": {
"type": "array",
"items": {
"type": "string",
"pattern": "[a-z0-9]+"
},
"minContains": 1
},
"connection_type": {
"type": "string",
"enum": ["browser_extension", "wallet_connect"]
},
"features": {
"type": "array",
"items": {
"type": "string",
"enum": ["suggest_chain", "get_supported_chains", "icns"]
}
},
"platforms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"device": {
"type": "string",
"enum": ["mobile", "tablet", "desktop", "other"]
},
"type": {
"type": "string",
"enum": ["application", "extension"]
},
"platform": {
"type": "string",
"enum": [
"chrome",
"edge",
"opera",
"brave",
"firefox",
"ios",
"android",
"otherOS",
"otherBrowser"
]
},
"install_link": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false,
"required": ["device", "type", "platform"]
},
"minContains": 1
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/cosmos/wallet-registry/main/(.*)\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/cosmos/wallet-registry/main/(.*)\\.svg$"
},
"theme": {
"type": "object",
"properties": {
"primary_color_hex": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$"
},
"circle": {
"type": "boolean"
},
"dark_mode": {
"type": "boolean"
}
},
"minProperties": 1,
"additionalProperties": false
},
"layout": {
"type": "string",
"enum": ["logo", "logomark", "logotype"],
"description": "logomark == icon only; logotype == text only; logo == icon + text."
},
"text_position": {
"type": "string",
"enum": ["top", "bottom", "left", "right", "integrated"],
"description": "Indicates in which position the text is placed, in case the layout is 'icon' type, it's required only in this case."
}
},
"if": {
"properties": {
"layout": { "const": "logo" }
},
"required": ["layout"]
},
"then": {
"required": ["text_position"]
},
"anyOf": [
{
"required": ["png"]
},
{
"required": ["svg"]
}
],
"required": ["layout"],
"additionalProperties": false
}
},
"wallet_connect": {
"type": "object",
"properties": {
"deeplink": {
"type": "object",
"description": "define all the properties related to deeplink functionality.",
"properties": {
"path": {
"type": "object",
"description": "it is the path of the deelink URL that will trigger wallet connect actions within a mobile wallet.",
"properties": {
"ios": {
"type": "string"
},
"android": {
"type": "string"
},
"universal": {
"type": "string"
}
}
}
}
}
},
"additionalProperties": false
},
"mobile": {
"type": "object",
"properties": {
"android": {
"type": "object",
"properties": {
"package_name": {
"type": "string",
"description": "The package name for your Android standalone app. You make it up, but it needs to be unique on the Play Store. See this [StackOverflow question](https://stackoverflow.com/questions/6273892/android-package-name-convention)."
},
"schema": {
"type": "string",
"description": "Custom schema that provide a way to reference resources inside an app, documented [here](https://developer.android.com/training/app-links/deep-linking)."
},
"universal_schema": {
"type": "string",
"description": "Universal schema for universal deeplink that provide a way to reference resources inside an app, documented [here](https://developer.android.com/training/app-links)."
}
}
},
"ios": {
"type": "object",
"properties": {
"bundle_identifier": {
"type": "string",
"description": "The bundle identifier for your iOS standalone app. You make it up, but it needs to be unique on the App Store. See this [StackOverflow question](https://stackoverflow.com/questions/11347470/what-does-bundle-identifier-mean-in-an-ios-project)."
},
"schema": {
"type": "string",
"description": "Custom URL schemes provide a way to reference resources inside an app, documented [here](https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app)."
},
"universal_schema": {
"type": "string",
"description": "Universal schema for universal deeplink that provide a way to reference resources inside an app, documented [here](https://developer.apple.com/ios/universal-links/)."
}
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"$schema",
"wallet_name",
"pretty_name",
"platforms",
"supported_chains",
"images"
]
}