Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Wallet Assets #22

Merged
merged 23 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
bdb711e
refactor: :recycle: move wallet to specific folder
DavideSegullo Dec 11, 2023
ad9353d
feat: :sparkles: add assets inside schema.json
DavideSegullo Dec 11, 2023
6844717
chore: :wrench: add gitignore
DavideSegullo Dec 11, 2023
557de84
feat: :sparkles: add keplr ext assets
DavideSegullo Dec 11, 2023
267221b
feat:
DavideSegullo Dec 11, 2023
0c8da7e
feat: :sparkles: add cosmostation ext assets
DavideSegullo Dec 11, 2023
74faa39
feat: :sparkles: add cosmostation mobile assets
DavideSegullo Dec 11, 2023
65d8a8a
feat: :sparkles: add leap ext assets
DavideSegullo Dec 11, 2023
a9dac50
feat: :sparkles: add leap mobile assets
DavideSegullo Dec 11, 2023
4637fa3
feat: :sparkles: add trustwallet mobile assets
DavideSegullo Dec 11, 2023
87f6242
build: :construction_worker: update validation workflow
DavideSegullo Dec 11, 2023
0b1174b
feat: :sparkles: remove logo_URIs property
DavideSegullo Dec 12, 2023
f74934d
feat: :sparkles: add layout and text_position fields
DavideSegullo Dec 12, 2023
b7b4980
feat: :sparkles: add new schema for keplr mobile
DavideSegullo Dec 12, 2023
63187f9
feat: :sparkles: add new schema for keplr ext
DavideSegullo Dec 12, 2023
0c9468f
feat: :sparkles: add new schema for cosmostation ext
DavideSegullo Dec 12, 2023
d1f651a
feat: :sparkles: add new schema for cosmostation mobile
DavideSegullo Dec 12, 2023
aa18d98
feat: :sparkles: add new schema for leap ext
DavideSegullo Dec 12, 2023
9697943
feat: :sparkles: add new schema for leap mobile
DavideSegullo Dec 12, 2023
b3e4f3e
feat: :sparkles: add new schema for trust wallet mobile
DavideSegullo Dec 12, 2023
3728a2f
feat: :sparkles: remove png image as required field
DavideSegullo Dec 14, 2023
88e545d
feat: :sparkles: add integrated text_position enum
DavideSegullo Dec 14, 2023
f58a01c
feat: :sparkles: improve images field validation
DavideSegullo Dec 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate_walletjson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Validate Wallet.json schema
run: |
for file in $(find . -name '*.wallet.json'); do
for file in $(find . -name 'wallet.json'); do
if ! jsonschema -i "$file" ./wallet.schema.json; then
exit 1
fi
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
94 changes: 72 additions & 22 deletions wallet.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"$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",
Expand Down Expand Up @@ -34,11 +35,7 @@
"type": "array",
"items": {
"type": "string",
"enum": [
"suggest_chain",
"get_supported_chains",
"icns"
]
"enum": ["suggest_chain", "get_supported_chains", "icns"]
}
},
"platforms": {
Expand All @@ -48,19 +45,11 @@
"properties": {
"device": {
"type": "string",
"enum": [
"mobile",
"tablet",
"desktop",
"other"
]
"enum": ["mobile", "tablet", "desktop", "other"]
},
"type": {
"type": "string",
"enum": [
"application",
"extension"
]
"enum": ["application", "extension"]
},
"platform": {
"type": "string",
Expand All @@ -79,13 +68,73 @@
}
},
"additionalProperties": false,
"required": [
"device",
"type",
"platform"
]
"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
}
}
},
"additionalProperties": false,
Expand All @@ -94,6 +143,7 @@
"wallet_name",
"pretty_name",
"platforms",
"supported_chains"
"supported_chains",
"images"
]
}
77 changes: 0 additions & 77 deletions wallets/cosmostationextension.json

This file was deleted.

Binary file added wallets/cosmostationextension/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions wallets/cosmostationextension/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 86 additions & 0 deletions wallets/cosmostationextension/wallet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"$schema": "../../wallet.schema.json",
"wallet_name": "cosmostationextention",
"pretty_name": "Cosmostation",
"website": "https://www.cosmostation.io/",
"git_repo": "https://github.com/cosmostation/cosmostation-chrome-extension",
"supported_chains": [
"cosmoshub",
"akash",
"assetmantle",
"axelar",
"bandchain",
"bitcanna",
"bitsong",
"canto",
"cerberus",
"chihuahua",
"comdex",
"coreum",
"crescent",
"cryptoorgchain",
"cudos",
"desmos",
"emoney",
"evmos",
"fetchhub",
"gravitybridge",
"injective",
"irisnet",
"impacthub",
"juno",
"kava",
"kichain",
"konstellation",
"kujira",
"kyve",
"likecoin",
"lumnetwork",
"neutron",
"noble",
"nyx",
"omniflixhub",
"onomy",
"osmosis",
"panacea",
"passage",
"persistence",
"provenance",
"quasar",
"regen",
"rizon",
"secretnetwork",
"sentinel",
"shentu",
"sifchain",
"sommelier",
"stafihub",
"stargaze",
"starname",
"stride",
"teritori",
"tgrade",
"umee"
],
"features": ["suggest_chain", "icns"],
"platforms": [
{
"device": "desktop",
"type": "extension",
"platform": "chrome",
"install_link": "https://chrome.google.com/webstore/detail/cosmostation/fpkhgmpbidmiogeglndfbkegfdlnajnf?utm_source=chrome-ntp-icon"
}
],
"images": [
{
"png": "https://raw.githubusercontent.com/cosmos/wallet-registry/main/cosmostationextension/images/logo.png",
"svg": "https://raw.githubusercontent.com/cosmos/wallet-registry/main/cosmostationextension/images/logo.svg",
"theme": {
"primary_color_hex": "#9C6CFF",
"circle": false,
"dark_mode": false
},
"layout": "logomark"
}
]
}
Binary file added wallets/cosmostationmobile/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions wallets/cosmostationmobile/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "../wallet.schema.json",
"$schema": "../../wallet.schema.json",
"wallet_name": "cosmostation",
"pretty_name": "Cosmostation",
"website": "https://www.cosmostation.io/",
Expand Down Expand Up @@ -73,5 +73,17 @@
"platform": "android",
"install_link": "https://play.google.com/store/apps/details?id=wannabit.io.cosmostaion"
}
],
"images": [
{
"png": "https://raw.githubusercontent.com/cosmos/wallet-registry/main/cosmostationmobile/images/logo.png",
"svg": "https://raw.githubusercontent.com/cosmos/wallet-registry/main/cosmostationmobile/images/logo.svg",
"theme": {
"primary_color_hex": "#9C6CFF",
"circle": false,
"dark_mode": false
},
"layout": "logomark"
}
]
}
Loading