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

add metadata on schema #8

Merged
merged 8 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions assetlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
}
},
"additionalProperties": false
Expand All @@ -140,12 +140,12 @@
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
},
"theme": {
"type": "object",
Expand Down
127 changes: 121 additions & 6 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
},
"theme": {
"type": "object",
Expand Down Expand Up @@ -486,12 +486,12 @@
"png": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.png$"
},
"svg": {
"type": "string",
"format": "uri-reference",
"pattern": "^https://raw\\.githubusercontent\\.com/initia/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
"pattern": "^https://raw\\.githubusercontent\\.com/initia-labs/initia-registry/main/(|testnets/|devnets/)[a-z0-9]+/images/.+\\.svg$"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -572,6 +572,12 @@
"$ref": "#/$defs/explorer"
}
},
"faucets": {
"type": "array",
"items": {
"$ref": "#/$defs/faucet"
}
},
"keywords": {
"type": "array",
"maxContains": 20,
Expand All @@ -589,6 +595,79 @@
],
"uniqueItems": true
}
},
"metadata": {
"type": "object",
"properties": {
"is_l1": {
"type": "boolean",
"description": "[Optional] Indicates if the chain is a layer 1 chain."
},
"op_bridge_id": {
"type": "string",
"description": "[Optional] The identifier of the OPinit bridge used to transfer assets between L1 and L2."
},
"creator": {
"type": "string",
"description": "[Optional] The creator of the OPinit bridge."
},
"op_denoms": {
"type": "array",
"items": {
"type": "string"
},
"description": "[Optional] The list of denoms that are supported by the OPinit bridge."
},
"free_tx_threshold": {
"type": "array",
"items": {
Vritra4 marked this conversation as resolved.
Show resolved Hide resolved
"type": "object",
"required": [
"denom",
"amount"
],
"properties": {
"denom": {
"$ref": "#/$defs/denom"
},
"amount": {
"$ref": "#/$defs/amount"
}
},
"additionalProperties": false
},
"description": "[Optional] A list specifying coin amounts by denomination that exempt users from transaction fees when their balance meets or exceeds these amounts."
},
"ibc_channels": {
"type": "object",
"properties": {
"channel": {
"type": "array",
"items": {
"type": "object",
"required": [
"chain_id"
],
"properties": {
"chain_id": {
"type": "string"
},
"transfer": {
"type": "string"
},
"nft-transfer": {
"type": "string"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false,
"description": "[Optional] The list of IBC channels that are supported by the chain."
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
Expand Down Expand Up @@ -649,14 +728,26 @@
},
"additionalProperties": false
},
"faucet": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": false
},
Copy link
Contributor

@Vritra4 Vritra4 Feb 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we need to add "additionalProperties": false into $defs/faucet unless you are intended to allow additional properties.

Copy link
Contributor

@Vritra4 Vritra4 Feb 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also we need to wrap regexes with ^ and $

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. is there any other needed option for faucet? @simcheolhwan

"fee_token": {
"type": "object",
"required": [
"denom"
],
"properties": {
"denom": {
"type": "string"
"$ref": "#/$defs/denom"
},
"fixed_min_gas_price": {
"type": "number"
Expand Down Expand Up @@ -693,7 +784,7 @@
],
"properties": {
"denom": {
"type": "string"
"$ref": "#/$defs/denom"
}
},
"additionalProperties": false
Expand All @@ -715,6 +806,30 @@
}
},
"additionalProperties": false
},
"denom": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9/:._-]{2,127}$"
},
"amount": {
"type": "string",
"pattern": "^[0-9]+$"
},
"coin": {
"type": "object",
"required": [
"denom",
"amount"
],
"properties": {
"denom": {
"$ref": "#/$defs/denom"
},
"amount": {
"$ref": "#/$defs/amount"
}
},
"additionalProperties": false
}
}
}
40 changes: 20 additions & 20 deletions devnets/mahalo/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg"
}
},
{
Expand All @@ -49,13 +49,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH.svg"
}
},
{
Expand All @@ -77,13 +77,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC.svg"
}
},
{
Expand All @@ -105,13 +105,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC-INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC-INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC-INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/USDC-INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/USDC-INIT.svg"
}
},
{
Expand All @@ -133,13 +133,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH-INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH-INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH-INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/ETH-INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/ETH-INIT.svg"
}
}
]
Expand Down
29 changes: 25 additions & 4 deletions devnets/mahalo/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,35 @@
"account_page": "https://scan.initia.xyz/mahalo-1/accounts/${accountAddress}"
}
],
"faucets": [
{
"kind": "faucet",
"url": "https://faucet.mahalo-1.initia.xyz/"
}
],
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/mahalo/images/INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/mahalo/images/INIT.svg"
},
"metadata": {
"is_l1": true,
"ibc_channels": {
"channel": [
{
"chain_id": "minimove-1",
"transfer": "channel-0"
},
{
"chain_id": "miniwasm-1",
"transfer": "channel-1"
}
]
}
}
}
16 changes: 8 additions & 8 deletions devnets/minimove/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/INIT.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg"
}
},
{
Expand All @@ -49,13 +49,13 @@
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/USDC.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia/initia-registry/main/minimove/images/USDC.svg"
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg"
}
}
]
Expand Down
Loading
Loading