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

add metadata on schema #8

merged 8 commits into from
Feb 29, 2024

Conversation

JSHan94
Copy link
Collaborator

@JSHan94 JSHan94 commented Feb 28, 2024

No description provided.

@JSHan94 JSHan94 marked this pull request as ready for review February 28, 2024 06:06
@Vritra4
Copy link
Contributor

Vritra4 commented Feb 28, 2024

is it valid? seems very different with other properties

chain.schema.json Outdated Show resolved Hide resolved
Copy link
Contributor

@Vritra4 Vritra4 left a comment

Choose a reason for hiding this comment

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

LGTM
@beer-1 please review this PR :) i think crossreview from you would be nice since i barely know history/content of this repository

},
"additionalProperties": false
},
"description": "[Optional] The list of denoms and their respective amounts that are allowed to be transferred without fees."
Copy link
Contributor

Choose a reason for hiding this comment

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

A list that outlines various coin amounts. Each coin amount, denoted by the denomination (denom) and the amount, establishes a balance threshold where transaction fees are exempted. If a user's balance meets or surpasses any of these coin amounts, transaction fees will not be applied.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

rewrite description like A list specifying coin amounts by denomination that exempt users from transaction fees when their balance meets or exceeds these amounts.

@@ -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/ETH-INIT.png",
Copy link
Contributor

Choose a reason for hiding this comment

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

ETH-INIT => INIT

@@ -539,6 +539,12 @@
"$ref": "#/$defs/endpoint"
}
},
"faucet": {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems saying faucet site not faucet api.
how about change this to faucet_api?

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.

afaik faucet-api won't be exposed to public. i think we need to fix values.

Copy link
Collaborator

Choose a reason for hiding this comment

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

because the object key is apis (not urls) so i think faucet means the faucet api already.

Copy link
Collaborator

Choose a reason for hiding this comment

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

any thought? @Vritra4

Copy link
Contributor

Choose a reason for hiding this comment

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

let's move it to next to explorer as we discussed lol

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.

@JSHan94 fix values of faucet. no -api.

Copy link
Collaborator

Choose a reason for hiding this comment

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

we decided to remove faucet api from the schema and add faucet websites in the same depth with explorers

Copy link
Collaborator

Choose a reason for hiding this comment

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

like faucets?

Copy link
Contributor

Choose a reason for hiding this comment

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

i agree

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

},
"amount": {
"type": "string",
"pattern": "[[:digit:]]+"
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use 0-9 for general usage :)

Copy link
Contributor

Choose a reason for hiding this comment

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

i can't agree more lol

"type": "string"
}
}
},
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

@JSHan94 JSHan94 merged commit 5ce4008 into main Feb 29, 2024
5 checks passed
@JSHan94 JSHan94 deleted the feat/update-schema branch March 1, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants