Skip to content

Commit

Permalink
Merge pull request #22 from nabla-studio/nabla/feat-assets
Browse files Browse the repository at this point in the history
feat: Add Wallet Assets
JeremyParish69 authored Dec 15, 2023

Verified

This commit was signed with the committer’s verified signature.
d-ryan-ashcraft Ryan Ashcraft
2 parents 3824fe0 + f58a01c commit 789a8e1
Showing 38 changed files with 661 additions and 250 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate_walletjson.yml
Original file line number Diff line number Diff line change
@@ -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
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",
@@ -34,11 +35,7 @@
"type": "array",
"items": {
"type": "string",
"enum": [
"suggest_chain",
"get_supported_chains",
"icns"
]
"enum": ["suggest_chain", "get_supported_chains", "icns"]
}
},
"platforms": {
@@ -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",
@@ -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,
@@ -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/",
@@ -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

0 comments on commit 789a8e1

Please sign in to comment.