diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 1682c60..19f143e 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -22,7 +22,7 @@ jobs: id: checkUserMember with: username: ${{ github.actor }} - organization: 'LiskHQ' + organization: 'KlayrHQ' team: 'platform' GITHUB_TOKEN: ${{ secrets.READ_ACCESS_TOKEN }} - name: Set TEAM_MEMBER_STATUS to false if READ_ACCESS_TOKEN is not present diff --git a/README.md b/README.md index 8997467..96773e4 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,11 @@ -![Logo](./docs/assets/banner_app_registry.png) +# Klayr Application Registry -# Lisk Application Registry - -Welcome to the Lisk Application Registry. The repository contains off-chain metadata for applications developed based on the Lisk SDK and any other applications that are compatible with the Lisk Protocol. +Welcome to the Klayr Application Registry. The repository contains off-chain metadata for applications developed based on the Klayr SDK and any other applications that are compatible with the Klayr Protocol. Each application will include the [*app.json*](#app-json) containing the blockchain application-specific metadata and [*nativetokens.json*](#native-tokens-json) containing metadata about the application's native tokens. ## Repository Structure -The blockchain application metadata is arranged in the following structure:
`{network}/{application}`, such as *mainnet/Lisk*. +The blockchain application metadata is arranged in the following structure:
`{network}/{application}`, such as *mainnet/Klayr*. The repository currently supports adding off-chain application metadata for the following networks: - mainnet @@ -16,15 +14,15 @@ The repository currently supports adding off-chain application metadata for the ### App JSON -*app.json* contains high-level metadata about a specific blockchain application, such as the `chainName` corresponding to an existing `chainID`. It also supplies information regarding the application's genesis block (`genesisURL`), seed nodes (`appNodes`), corresponding Lisk Service deployments (`serviceURLs`), explorers and more. This information makes it easy to bootstrap a new node in the network or interact with an existing node. +*app.json* contains high-level metadata about a specific blockchain application, such as the `chainName` corresponding to an existing `chainID`. It also supplies information regarding the application's genesis block (`genesisURL`), seed nodes (`appNodes`), corresponding Klayr Service deployments (`serviceURLs`), explorers and more. This information makes it easy to bootstrap a new node in the network or interact with an existing node. All the *app.json* files within the repository must adhere to the schema specified [here](./schema/app.json). -Example: *mainnet/Lisk/app.json* +Example: *mainnet/Klayr/app.json* *Important information*: - All the specified URLs in *app.json* (i.e. `genesisURL`, `appNodes`, and `serviceURLs`, etc.) are validated in real-time. Hence, please ensure that they are valid and reachable at the time of submission. -- Prior to the metadata submission, please ensure that the Lisk applications are registered on the Lisk mainchain and vice-versa. +- Prior to the metadata submission, please ensure that the Klayr applications are registered on the Klayr mainchain and vice-versa. - For logos pointing to app-registry GitHub URL, use the main branch in the URL to ensure working functionality after PR merge. All logos submitted need to adhere to `64px x 64px` resolution. - For `mainnet` and `testnet` submissions, it is necessary that all the API deployments are secured with SSL/TLS. - For every SSL/TLS secured API deployment (i.e. for `appNodes`, and `serviceURLs`), it is mandatory to specify the `apiCertificatePublicKey`. @@ -36,14 +34,14 @@ Example: *mainnet/Lisk/app.json* ### Native Tokens JSON -*nativetokens.json* contains metadata about the blockchain application's native tokens, which enables token discoverability across the Lisk ecosystem and for community tools. +*nativetokens.json* contains metadata about the blockchain application's native tokens, which enables token discoverability across the Klayr ecosystem and for community tools. All the *nativetokens.json* files within the repository must adhere to the schema specified [here](./schema/nativetokens.json). -Example: *mainnet/Lisk/nativetokens.json* +Example: *mainnet/Klayr/nativetokens.json* *Important information*: -- Prior to the metadata submission, please ensure that the Lisk applications are registered on the Lisk mainchain and vice-versa. +- Prior to the metadata submission, please ensure that the Klayr applications are registered on the Klayr mainchain and vice-versa. - For logos pointing to app-registry GitHub URL, use the main branch in the URL to ensure working functionality after PR merge. All logos submitted need to adhere to `64px x 64px` resolution. ### Logo Images @@ -52,7 +50,7 @@ We recommend that all the *svg* and *png* format logo images added to the reposi We also recommend that all the images are stored directly under the application's directory in the `images` subdirectory. -Example: *mainnet/Lisk/images/application/lisk.svg* +Example: *mainnet/Klayr/images/application/klayr.svg* ## Contributing To contribute to the application registry with the metadata for your blockchain application, please [fork this repository and submit a *Pull Request*](./docs/creating-pull-request-from-a-fork.md) with the necessary changes. Before submitting a PR, please read through the [Repository Structure](#repository-structure) section. @@ -61,10 +59,11 @@ This app-registry was inspired by [Cosmos Chain Registry](https://github.com/cos ## Contributors -https://github.com/LiskHQ/app-registry/graphs/contributors +https://github.com/KlayrHQ/app-registry/graphs/contributors ## License +Copyright 2024 Klayr Holding B.V. Copyright 2016-2024 Lisk Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 diff --git a/devnet/Klayr/app.json b/devnet/Klayr/app.json new file mode 100644 index 0000000..01dc2e2 --- /dev/null +++ b/devnet/Klayr/app.json @@ -0,0 +1,28 @@ +{ + "title": "Klayr - Devnet", + "description": "Metadata configuration for the Klayr blockchain (mainchain) in devnet", + "chainName": "klayr_mainchain", + "displayName": "Klayr", + "chainID": "04000000", + "networkType": "devnet", + "genesisURL": "https://github.com/KlayrHQ/klayr-core/blob/development/config/devnet/genesis_assets.json", + "projectPage": "https://klayr.xyz", + "logo": { + "png": "https://downloads.klayr.xyz/media/klayr.png", + "svg": "https://downloads.klayr.xyz/media/klayr.svg" + }, + "backgroundColor": "#EDEDCE", + "serviceURLs": [ + { + "http": "http://127.0.0.1:9901", + "ws": "ws://127.0.0.1:9901" + } + ], + "explorers": [], + "appNodes": [ + { + "url": "ws://127.0.0.1:7887", + "maintainer": "Klayr Labs B.V." + } + ] +} diff --git a/devnet/Klayr/images/application/klayr.png b/devnet/Klayr/images/application/klayr.png new file mode 100644 index 0000000..67235d6 Binary files /dev/null and b/devnet/Klayr/images/application/klayr.png differ diff --git a/devnet/Klayr/images/application/klayr.svg b/devnet/Klayr/images/application/klayr.svg new file mode 100644 index 0000000..a28c3fd --- /dev/null +++ b/devnet/Klayr/images/application/klayr.svg @@ -0,0 +1,43 @@ + + diff --git a/devnet/Klayr/images/tokens/klayr.png b/devnet/Klayr/images/tokens/klayr.png new file mode 100644 index 0000000..67235d6 Binary files /dev/null and b/devnet/Klayr/images/tokens/klayr.png differ diff --git a/devnet/Klayr/images/tokens/klayr.svg b/devnet/Klayr/images/tokens/klayr.svg new file mode 100644 index 0000000..a28c3fd --- /dev/null +++ b/devnet/Klayr/images/tokens/klayr.svg @@ -0,0 +1,43 @@ + + diff --git a/devnet/Lisk/nativetokens.json b/devnet/Klayr/nativetokens.json similarity index 50% rename from devnet/Lisk/nativetokens.json rename to devnet/Klayr/nativetokens.json index d36604c..73eabad 100644 --- a/devnet/Lisk/nativetokens.json +++ b/devnet/Klayr/nativetokens.json @@ -1,10 +1,10 @@ { - "title": "Lisk - Devnet - Native tokens", + "title": "Klayr - Devnet - Native tokens", "tokens": [ { "tokenID": "0400000000000000", - "tokenName": "Lisk", - "description": "Default token for the entire Lisk ecosystem", + "tokenName": "Klayr", + "description": "Default token for the entire Klayr ecosystem", "denomUnits": [ { "denom": "beddows", @@ -14,19 +14,19 @@ ] }, { - "denom": "lsk", + "denom": "kly", "decimals": 8, "aliases": [ - "Lisk" + "Klayr" ] } ], "baseDenom": "beddows", - "displayDenom": "lsk", - "symbol": "LSK", + "displayDenom": "kly", + "symbol": "KLY", "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/devnet/Lisk/images/tokens/lisk.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/devnet/Lisk/images/tokens/lisk.svg" + "png": "https://downloads.klayr.xyz/media/klayr.png", + "svg": "https://downloads.klayr.xyz/media/klayr.svg" } } ] diff --git a/devnet/Lisk/app.json b/devnet/Lisk/app.json deleted file mode 100644 index 3fa78b4..0000000 --- a/devnet/Lisk/app.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "title": "Lisk - Devnet", - "description": "Metadata configuration for the Lisk blockchain (mainchain) in devnet", - "chainName": "lisk_mainchain", - "displayName": "Lisk", - "chainID": "04000000", - "networkType": "devnet", - "genesisURL": "https://github.com/LiskHQ/lisk-core/blob/development/config/devnet/genesis_assets.json", - "projectPage": "https://lisk.com", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/devnet/Lisk/images/application/lisk.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/devnet/Lisk/images/application/lisk.svg" - }, - "backgroundColor": "#f7f9fb", - "serviceURLs": [ - { - "http": "http://127.0.0.1:9901", - "ws": "ws://127.0.0.1:9901" - } - ], - "explorers": [], - "appNodes": [ - { - "url": "ws://127.0.0.1:7887", - "maintainer": "Lightcurve GmbH" - } - ] -} diff --git a/devnet/Lisk/images/application/lisk.png b/devnet/Lisk/images/application/lisk.png deleted file mode 100644 index cfa2e61..0000000 Binary files a/devnet/Lisk/images/application/lisk.png and /dev/null differ diff --git a/devnet/Lisk/images/application/lisk.svg b/devnet/Lisk/images/application/lisk.svg deleted file mode 100644 index ad3b96c..0000000 --- a/devnet/Lisk/images/application/lisk.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/devnet/Lisk/images/tokens/lisk.png b/devnet/Lisk/images/tokens/lisk.png deleted file mode 100644 index cfa2e61..0000000 Binary files a/devnet/Lisk/images/tokens/lisk.png and /dev/null differ diff --git a/devnet/Lisk/images/tokens/lisk.svg b/devnet/Lisk/images/tokens/lisk.svg deleted file mode 100644 index ad3b96c..0000000 --- a/devnet/Lisk/images/tokens/lisk.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/docs/creating-pull-request-from-a-fork.md b/docs/creating-pull-request-from-a-fork.md index 593fe7e..b794663 100644 --- a/docs/creating-pull-request-from-a-fork.md +++ b/docs/creating-pull-request-from-a-fork.md @@ -8,7 +8,7 @@ 3. On the next page, click on the **compare across forks** link. ![Compare across forks](./assets/contributing/compare-across-forks-link.webp) -4. Next, set "base repository" to `LiskHQ/app-registry` and `base` to `main`. +4. Next, set "base repository" to `klayrhq/app-registry` and `base` to `main`. ![Choose base fork and branch](./assets/contributing/choose-base-fork-and-branch.png) 5. Next, select your own repository as the `head repository` from the drop-down and set `compare` to the branch containing your changes. @@ -20,4 +20,4 @@ 8. To create a pull request that is ready for review, click **Create Pull Request**. To create a draft pull request, use the drop-down and select **Create Draft Pull Request**, then click **Draft Pull Request**. -> **Note:** Please make sure to validate your PR to ensure that all GitHub Actions checks are passing. This will help ensure that your changes meet the project's quality standards and do not introduce any errors or issues. \ No newline at end of file +> **Note:** Please make sure to validate your PR to ensure that all GitHub Actions checks are passing. This will help ensure that your changes meet the project's quality standards and do not introduce any errors or issues. diff --git a/mainnet/Klayr/app.json b/mainnet/Klayr/app.json new file mode 100644 index 0000000..edd9db8 --- /dev/null +++ b/mainnet/Klayr/app.json @@ -0,0 +1,40 @@ +{ + "title": "Klayr - Mainnet", + "description": "Metadata configuration for the Klayr blockchain (mainchain) in mainnet", + "chainName": "klayr_mainchain", + "displayName": "Klayr", + "chainID": "00000000", + "networkType": "mainnet", + "genesisURL": "https://github.com/KlayrHQ/klayr-core/blob/development/config/mainnet/genesis_assets.json", + "projectPage": "https://klayr.xyz", + "logo": { + "png": "https://downloads.klayr.xyz/media/klayr.png", + "svg": "https://downloads.klayr.xyz/media/klayr.svg" + }, + "backgroundColor": "#EDEDCE", + "serviceURLs": [ + { + "http": "https://service.klayr.xyz", + "ws": "wss://service.klayr.xyz", + "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWCLObWsqufJm3aOSigy\nvc+kpjE2058UtgBgNfqp7nfcHePMzSpLZrLiILN8m5y0E4UYT4ywLSe7nzzbmLEW\n+BTSItaAPP/cOLPA89VhbmEDQJa2ndfGT5CGP++duvlQ6yH0JHdOkwIpr+o7Mjvs\nSfgIMtALtm5uNOGN4sJSFoNPjXDpskgHi6rOXXifN89wXx38KNCll+tlzUFjOtLR\nZI8ykq+5TDtS9NBJKqIHS3xIQXpXHK63mA9ogmmMwN/4cPh8S+vVUigzdorH6+4m\nFSdE+KfZHc+eK5mr+FfCRJOo6PKMCEeAM1ykBvyX93PwqCndeM+ldL2/EfQvijN+\n+wIDAQAB\n-----END PUBLIC KEY-----" + } + ], + "explorers": [ + { + "url": "https://explorer.klayr.xyz", + "txnPage": "https://explorer.klayr.xyz/transactions" + } + ], + "appNodes": [ + { + "url": "https://mainnet.klayr.xyz", + "maintainer": "Klayr Labs B.V.", + "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWCLObWsqufJm3aOSigy\nvc+kpjE2058UtgBgNfqp7nfcHePMzSpLZrLiILN8m5y0E4UYT4ywLSe7nzzbmLEW\n+BTSItaAPP/cOLPA89VhbmEDQJa2ndfGT5CGP++duvlQ6yH0JHdOkwIpr+o7Mjvs\nSfgIMtALtm5uNOGN4sJSFoNPjXDpskgHi6rOXXifN89wXx38KNCll+tlzUFjOtLR\nZI8ykq+5TDtS9NBJKqIHS3xIQXpXHK63mA9ogmmMwN/4cPh8S+vVUigzdorH6+4m\nFSdE+KfZHc+eK5mr+FfCRJOo6PKMCEeAM1ykBvyX93PwqCndeM+ldL2/EfQvijN+\n+wIDAQAB\n-----END PUBLIC KEY-----" + }, + { + "url": "wss://mainnet.klayr.xyz", + "maintainer": "Klayr Labs B.V.", + "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWCLObWsqufJm3aOSigy\nvc+kpjE2058UtgBgNfqp7nfcHePMzSpLZrLiILN8m5y0E4UYT4ywLSe7nzzbmLEW\n+BTSItaAPP/cOLPA89VhbmEDQJa2ndfGT5CGP++duvlQ6yH0JHdOkwIpr+o7Mjvs\nSfgIMtALtm5uNOGN4sJSFoNPjXDpskgHi6rOXXifN89wXx38KNCll+tlzUFjOtLR\nZI8ykq+5TDtS9NBJKqIHS3xIQXpXHK63mA9ogmmMwN/4cPh8S+vVUigzdorH6+4m\nFSdE+KfZHc+eK5mr+FfCRJOo6PKMCEeAM1ykBvyX93PwqCndeM+ldL2/EfQvijN+\n+wIDAQAB\n-----END PUBLIC KEY-----" + } + ] +} diff --git a/mainnet/Klayr/images/application/klayr.png b/mainnet/Klayr/images/application/klayr.png new file mode 100644 index 0000000..67235d6 Binary files /dev/null and b/mainnet/Klayr/images/application/klayr.png differ diff --git a/mainnet/Klayr/images/application/klayr.svg b/mainnet/Klayr/images/application/klayr.svg new file mode 100644 index 0000000..a28c3fd --- /dev/null +++ b/mainnet/Klayr/images/application/klayr.svg @@ -0,0 +1,43 @@ + + diff --git a/mainnet/Klayr/images/tokens/klayr.png b/mainnet/Klayr/images/tokens/klayr.png new file mode 100644 index 0000000..67235d6 Binary files /dev/null and b/mainnet/Klayr/images/tokens/klayr.png differ diff --git a/mainnet/Klayr/images/tokens/klayr.svg b/mainnet/Klayr/images/tokens/klayr.svg new file mode 100644 index 0000000..a28c3fd --- /dev/null +++ b/mainnet/Klayr/images/tokens/klayr.svg @@ -0,0 +1,43 @@ + + diff --git a/mainnet/Lisk/nativetokens.json b/mainnet/Klayr/nativetokens.json similarity index 50% rename from mainnet/Lisk/nativetokens.json rename to mainnet/Klayr/nativetokens.json index 2d05271..c0549b2 100644 --- a/mainnet/Lisk/nativetokens.json +++ b/mainnet/Klayr/nativetokens.json @@ -1,10 +1,10 @@ { - "title": "Lisk - Mainnet - Native tokens", + "title": "Klayr - Mainnet - Native tokens", "tokens": [ { "tokenID": "0000000000000000", - "tokenName": "Lisk", - "description": "Default token for the entire Lisk ecosystem", + "tokenName": "Klayr", + "description": "Default token for the entire Klayr ecosystem", "denomUnits": [ { "denom": "beddows", @@ -14,19 +14,19 @@ ] }, { - "denom": "lsk", + "denom": "kly", "decimals": 8, "aliases": [ - "Lisk" + "Klayr" ] } ], "baseDenom": "beddows", - "displayDenom": "lsk", - "symbol": "LSK", + "displayDenom": "kly", + "symbol": "KLY", "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/mainnet/Lisk/images/tokens/lisk.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/mainnet/Lisk/images/tokens/lisk.svg" + "png": "https://downloads.klayr.xyz/media/klayr.png", + "svg": "https://downloads.klayr.xyz/media/klayr.svg" } } ] diff --git a/mainnet/Lisk/app.json b/mainnet/Lisk/app.json deleted file mode 100644 index a77e70e..0000000 --- a/mainnet/Lisk/app.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "title": "Lisk - Mainnet", - "description": "Metadata configuration for the Lisk blockchain (mainchain) in mainnet", - "chainName": "lisk_mainchain", - "displayName": "Lisk", - "chainID": "00000000", - "networkType": "mainnet", - "genesisURL": "https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz", - "projectPage": "https://lisk.com", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/mainnet/Lisk/images/application/lisk.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/mainnet/Lisk/images/application/lisk.svg" - }, - "backgroundColor": "#f7f9fb", - "serviceURLs": [ - { - "http": "https://service.lisk.com", - "ws": "wss://service.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAOGlgzeePs8O7FjSU9a\nUKQg4EYSJNgQqkwD/ITAJ6TzcXRCUK+N230NaFcQ8EFJw/8Al0r8mpjpOOEpPZDq\n+WljcCRkVHXZCJMvgDNcstzdrt1fKzsCrER2jB3hDUXt04xzzlk8ArJG0JeD/CmW\nAsQqL/S6v/GRVTuViHqzWm2eF2XrduUK8wIbQ1y+7HoVdgZDf5MpuvEXluVX4IeJ\nMyzbn9djdrDkHkcbml8dOHyLE6GOS5jKtXj+bKhyTVlSZFbexxKYiBqCpR6kMUnM\nVrURmWGT+jb7UhGkJiP7EpFB7MjAB+yXMiygd6lz67qjG6wFky1wB9NYGJ/50rrV\nDQIDAQAB\n-----END PUBLIC KEY-----" - } - ], - "explorers": [ - { - "url": "https://liskscan.com", - "txnPage": "https://liskscan.com/transactions" - }, - { - "url": "https://lisk.observer", - "txnPage": "https://lisk.observer/transactions" - } - ], - "appNodes": [ - { - "url": "https://mainnet.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqiQIDBSSlqKeWo0st2Hy\nJRbDzqYgcZfQvOpttr4kMbDjAYnz6XvZe3kOHcnMM2ePWrAS66SHTqdVbEEiu9Kf\njEQQkmk/Xv7XSMQ5kwidv+ANNDjTaC9GRnUHQ3pH77ZZY5msq0kEvmDvyMljU9kD\neqpugQn7jQVTG7te7PyXnZxvzMq8tgDILEwRnkF2hUF6jCH5X763aOT7X6yKUKY5\nZSUqmStKGPt1i34E5Pvb2AumsApkyqXfST/N/h8NV3UXRTBQ/fwAEvtOj3IMNNrw\nRUZIYAvwPFxTLXF0Dfj0fEiLFQzq+VPk3jsD9EbH1FotHXPtgA7brvG0uHfWKNsQ\nIQIDAQAB\n-----END PUBLIC KEY-----", - "maintainer": "Lightcurve GmbH" - }, - { - "url": "wss://mainnet.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqiQIDBSSlqKeWo0st2Hy\nJRbDzqYgcZfQvOpttr4kMbDjAYnz6XvZe3kOHcnMM2ePWrAS66SHTqdVbEEiu9Kf\njEQQkmk/Xv7XSMQ5kwidv+ANNDjTaC9GRnUHQ3pH77ZZY5msq0kEvmDvyMljU9kD\neqpugQn7jQVTG7te7PyXnZxvzMq8tgDILEwRnkF2hUF6jCH5X763aOT7X6yKUKY5\nZSUqmStKGPt1i34E5Pvb2AumsApkyqXfST/N/h8NV3UXRTBQ/fwAEvtOj3IMNNrw\nRUZIYAvwPFxTLXF0Dfj0fEiLFQzq+VPk3jsD9EbH1FotHXPtgA7brvG0uHfWKNsQ\nIQIDAQAB\n-----END PUBLIC KEY-----", - "maintainer": "Lightcurve GmbH" - } - ] -} diff --git a/mainnet/Lisk/images/application/lisk.png b/mainnet/Lisk/images/application/lisk.png deleted file mode 100644 index cfa2e61..0000000 Binary files a/mainnet/Lisk/images/application/lisk.png and /dev/null differ diff --git a/mainnet/Lisk/images/application/lisk.svg b/mainnet/Lisk/images/application/lisk.svg deleted file mode 100644 index ad3b96c..0000000 --- a/mainnet/Lisk/images/application/lisk.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/mainnet/Lisk/images/tokens/lisk.png b/mainnet/Lisk/images/tokens/lisk.png deleted file mode 100644 index cfa2e61..0000000 Binary files a/mainnet/Lisk/images/tokens/lisk.png and /dev/null differ diff --git a/mainnet/Lisk/images/tokens/lisk.svg b/mainnet/Lisk/images/tokens/lisk.svg deleted file mode 100644 index ad3b96c..0000000 --- a/mainnet/Lisk/images/tokens/lisk.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/schema/app.json b/schema/app.json index d686be3..fc273e5 100644 --- a/schema/app.json +++ b/schema/app.json @@ -19,12 +19,12 @@ "displayName": { "type": "string", "description": "Application display name for the wallets.", - "example": "Lisk" + "example": "Klayr" }, "chainName": { "type": "string", "description": "Chain name as registered on the network.", - "example": "lisk_mainchain" + "example": "klayr_mainchain" }, "chainID": { "type": "string", @@ -35,7 +35,7 @@ "type": "string", "format": "uri-reference", "description": "URI to the network genesis block.", - "example": "https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz" + "example": "https://downloads.klayr.xyz/klayr/mainnet/genesis_block.json.tar.gz" }, "networkType": { "type": "string", @@ -46,13 +46,13 @@ "type": "string", "format": "uri-reference", "description": "URL to the project's homepage.", - "example": "https://lisk.com" + "example": "https://klayr.xyz" }, "appPage": { "type": "string", "format": "uri-reference", "description": "URL to the blockchain application's frontend, if exists.", - "example": "https://lisk.com" + "example": "https://klayr.xyz" }, "logo": { "$ref": "#/$defs/logoURI" @@ -94,7 +94,7 @@ "type": "string", "format": "uri-reference", "description": "URI to connect and query to the node directly.", - "example": "ws://node.lisk.com:7887" + "example": "ws://node.klayr.xyz:7887" }, "apiCertificatePublicKey": { "type": "string", @@ -139,19 +139,19 @@ "type": "string", "format": "uri-reference", "description": "URI to the PNG format of the application logo.", - "example": "https://lisk.com/logo.png" + "example": "https://klayr.xyz/logo.png" }, "svg": { "type": "string", "format": "uri-reference", "description": "URI to the SVG format of the application logo.", - "example": "https://lisk.com/logo.svg" + "example": "https://klayr.xyz/logo.svg" } } }, "serviceURL": { "type": "object", - "description": "Specifies the HTTP(S) and WSS(S) endpoints to connect to the corresponding Lisk Service deployments. Please note, for the mainnet and testnet, the deployments need to be secured with TLS/SSL (i.e. https/wss) and the publicKey also needs to be specified. For the remaining networks, the deployments may or may not be secured.", + "description": "Specifies the HTTP(S) and WSS(S) endpoints to connect to the corresponding Klayr Service deployments. Please note, for the mainnet and testnet, the deployments need to be secured with TLS/SSL (i.e. https/wss) and the publicKey also needs to be specified. For the remaining networks, the deployments may or may not be secured.", "required": [ "ws", "http" @@ -160,14 +160,14 @@ "ws": { "type": "string", "format": "uri-reference", - "description": "WS(S) endpoint to access Lisk Service API against the blockchain application. In case of mainnet and testnet deployments, a WSS URL is required.", - "example": "https://service.lisk.com" + "description": "WS(S) endpoint to access Klayr Service API against the blockchain application. In case of mainnet and testnet deployments, a WSS URL is required.", + "example": "https://service.klayr.xyz" }, "http": { "type": "string", "format": "uri-reference", - "description": "HTTP(S) endpoint to access Lisk Service API against the blockchain application. In case of mainnet and testnet deployments, a HTTPS URL is required.", - "example": "wss://service.lisk.com" + "description": "HTTP(S) endpoint to access Klayr Service API against the blockchain application. In case of mainnet and testnet deployments, a HTTPS URL is required.", + "example": "wss://service.klayr.xyz" }, "apiCertificatePublicKey": { "type": "string", diff --git a/schema/nativetokens.json b/schema/nativetokens.json index da2c767..afdc194 100644 --- a/schema/nativetokens.json +++ b/schema/nativetokens.json @@ -2,7 +2,7 @@ "$id": "", "$schema": "", "title": "Native tokens list", - "description": "List of all Lisk protocol compliant fungible native tokens to allow wallets and other third party tools to fetch metadata", + "description": "List of all Klayr protocol compliant fungible native tokens to allow wallets and other third party tools to fetch metadata", "type": "object", "required": [ "tokens" @@ -54,13 +54,13 @@ "type": "string", "format": "uri-reference", "description": "URI to the PNG format of the token logo.", - "example": "https://lisk.com/logo.png" + "example": "https://klayr.xyz/logo.png" }, "svg": { "type": "string", "format": "uri-reference", "description": "URI to the SVG format of the token logo.", - "example": "https://lisk.com/logo.svg" + "example": "https://klayr.xyz/logo.svg" } } }, @@ -77,18 +77,18 @@ "properties": { "tokenID": { "type": "string", - "description": "The universal identifier for the token within the Lisk ecosystem.", + "description": "The universal identifier for the token within the Klayr ecosystem.", "example": "0000000000000000" }, "tokenName": { "type": "string", - "description": "The name of the token. For example Lisk.", - "example": "Lisk" + "description": "The name of the token. For example Klayr.", + "example": "Klayr" }, "description": { "type": "string", "description": "A short description of the token.", - "example": "Default token for the entire Lisk ecosystem." + "example": "Default token for the entire Klayr ecosystem." }, "denomUnits": { "type": "array", diff --git a/testnet/Bloclite/app.json b/testnet/Bloclite/app.json deleted file mode 100644 index e6a63cb..0000000 --- a/testnet/Bloclite/app.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "title": "Bloclite - Testnet", - "description": "Metadata configuration for the Bloclite sidechain in testnet", - "chainName": "bloclite", - "displayName": "Bloclite", - "chainID": "01000001", - "networkType": "testnet", - "genesisURL": "https://lisk-qa.ams3.digitaloceanspaces.com/genesis_block_bloclite.json.tar.gz", - "projectPage": "https://lisk.com", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Bloclite/images/application/bloclite.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Bloclite/images/application/bloclite.svg" - }, - "backgroundColor": "#932CFF", - "serviceURLs": [ - { - "http": "https://testnet-bloclite-service.lisk.com", - "ws": "wss://testnet-bloclite-service.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqiQIDBSSlqKeWo0st2Hy\nJRbDzqYgcZfQvOpttr4kMbDjAYnz6XvZe3kOHcnMM2ePWrAS66SHTqdVbEEiu9Kf\njEQQkmk/Xv7XSMQ5kwidv+ANNDjTaC9GRnUHQ3pH77ZZY5msq0kEvmDvyMljU9kD\neqpugQn7jQVTG7te7PyXnZxvzMq8tgDILEwRnkF2hUF6jCH5X763aOT7X6yKUKY5\nZSUqmStKGPt1i34E5Pvb2AumsApkyqXfST/N/h8NV3UXRTBQ/fwAEvtOj3IMNNrw\nRUZIYAvwPFxTLXF0Dfj0fEiLFQzq+VPk3jsD9EbH1FotHXPtgA7brvG0uHfWKNsQ\nIQIDAQAB\n-----END PUBLIC KEY-----" - } - ], - "explorers": [], - "appNodes": [ - { - "url": "https://testnet-bloclite.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqiQIDBSSlqKeWo0st2Hy\nJRbDzqYgcZfQvOpttr4kMbDjAYnz6XvZe3kOHcnMM2ePWrAS66SHTqdVbEEiu9Kf\njEQQkmk/Xv7XSMQ5kwidv+ANNDjTaC9GRnUHQ3pH77ZZY5msq0kEvmDvyMljU9kD\neqpugQn7jQVTG7te7PyXnZxvzMq8tgDILEwRnkF2hUF6jCH5X763aOT7X6yKUKY5\nZSUqmStKGPt1i34E5Pvb2AumsApkyqXfST/N/h8NV3UXRTBQ/fwAEvtOj3IMNNrw\nRUZIYAvwPFxTLXF0Dfj0fEiLFQzq+VPk3jsD9EbH1FotHXPtgA7brvG0uHfWKNsQ\nIQIDAQAB\n-----END PUBLIC KEY-----", - "maintainer": "Lightcurve GmbH" - }, - { - "url": "wss://testnet-bloclite.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqiQIDBSSlqKeWo0st2Hy\nJRbDzqYgcZfQvOpttr4kMbDjAYnz6XvZe3kOHcnMM2ePWrAS66SHTqdVbEEiu9Kf\njEQQkmk/Xv7XSMQ5kwidv+ANNDjTaC9GRnUHQ3pH77ZZY5msq0kEvmDvyMljU9kD\neqpugQn7jQVTG7te7PyXnZxvzMq8tgDILEwRnkF2hUF6jCH5X763aOT7X6yKUKY5\nZSUqmStKGPt1i34E5Pvb2AumsApkyqXfST/N/h8NV3UXRTBQ/fwAEvtOj3IMNNrw\nRUZIYAvwPFxTLXF0Dfj0fEiLFQzq+VPk3jsD9EbH1FotHXPtgA7brvG0uHfWKNsQ\nIQIDAQAB\n-----END PUBLIC KEY-----", - "maintainer": "Lightcurve GmbH" - } - ] -} diff --git a/testnet/Bloclite/images/application/bloclite.png b/testnet/Bloclite/images/application/bloclite.png deleted file mode 100644 index 4d92bd0..0000000 Binary files a/testnet/Bloclite/images/application/bloclite.png and /dev/null differ diff --git a/testnet/Bloclite/images/application/bloclite.svg b/testnet/Bloclite/images/application/bloclite.svg deleted file mode 100644 index efc883c..0000000 --- a/testnet/Bloclite/images/application/bloclite.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/testnet/Bloclite/images/tokens/bloclite.png b/testnet/Bloclite/images/tokens/bloclite.png deleted file mode 100644 index 4d92bd0..0000000 Binary files a/testnet/Bloclite/images/tokens/bloclite.png and /dev/null differ diff --git a/testnet/Bloclite/images/tokens/bloclite.svg b/testnet/Bloclite/images/tokens/bloclite.svg deleted file mode 100644 index efc883c..0000000 --- a/testnet/Bloclite/images/tokens/bloclite.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/testnet/Bloclite/nativetokens.json b/testnet/Bloclite/nativetokens.json deleted file mode 100644 index 8f3ea21..0000000 --- a/testnet/Bloclite/nativetokens.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "title": "Bloclite - Testnet - Native tokens", - "tokens": [ - { - "tokenID": "0100000100000000", - "tokenName": "bloclite", - "description": "Default token for the entire Bloclite ecosystem", - "denomUnits": [ - { - "denom": "bloc", - "decimals": 8, - "aliases": [ - "Bloc" - ] - }, - { - "denom": "lite", - "decimals": 0, - "aliases": [ - "Lite" - ] - } - ], - "baseDenom": "lite", - "displayDenom": "bloc", - "symbol": "BLOC", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Bloclite/images/tokens/bloclite.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Bloclite/images/tokens/bloclite.svg" - } - } - ] -} diff --git a/testnet/Dex/app.json b/testnet/Dex/app.json deleted file mode 100644 index c47215f..0000000 --- a/testnet/Dex/app.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "title": "Dex - Testnet", - "description": "Metadata configuration for the Dex blockchain (sidechain) in testnet.", - "chainName": "Dex", - "chainID": "01000011", - "networkType": "testnet", - "genesisURL": "https://lisk-qa.ams3.digitaloceanspaces.com/dex-testnet-genesis-block.tar.gz", - "projectPage": "https://lisk.com", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Dex/images/application/dex.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Dex/images/application/dex.svg" - }, - "backgroundColor": "#f7f9fb", - "serviceURLs": [ - { - "http": "https://testnet-dex-service.lisk.com", - "ws": "wss://testnet-dex-service.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa660HFMuGo55VCL26J+2tZsSFWDb\nZDWBRvR+X9fTO7IpoWtjikgffM3owzvnr2qvNtd0HKJT7UeZC8YUGy8A4Q==\n-----END PUBLIC KEY-----\n" - } - ], - "explorers": [], - "appNodes": [ - { - "url": "https://testnet-dex.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr30+qPVRk0PiqYtHw5Y3\nyHCL94Erecl6Y3xvAsukINlqUqZvhqaInWAEM1dGiBvrhRQGQELFTZrrtS5ggM/K\nQcRacxDBLWG8asKVlh8MhZlLj+9u9imxG/f7A+xhp4BnnDq/F8k4Lm4iSg+H+kAu\nS6a4yWBVvy1mUxMU7fSq2/QpwdC+Dc+sAPS+CLnImkl8gi1W4JWRWmHHLZ8ROKAH\nNTMJRaoqSHqb749LUcB10mhmrQx3OSKZVKIeg/XGo6SDewF8bLOCypnOA+QEszSs\nQNrGJLTcnobC0+tTPcQ9SRggP014nZcLBxGuk5BLIMzDueKd6iW0gFGvXemSAGRe\nIQIDAQAB\n-----END PUBLIC KEY-----\n", - "maintainer": "Lightcurve GmbH" - } - ] -} \ No newline at end of file diff --git a/testnet/Dex/images/application/dex.png b/testnet/Dex/images/application/dex.png deleted file mode 100644 index eb816cb..0000000 Binary files a/testnet/Dex/images/application/dex.png and /dev/null differ diff --git a/testnet/Dex/images/application/dex.svg b/testnet/Dex/images/application/dex.svg deleted file mode 100644 index abd9831..0000000 --- a/testnet/Dex/images/application/dex.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/testnet/Dex/images/tokens/dex.png b/testnet/Dex/images/tokens/dex.png deleted file mode 100644 index eb816cb..0000000 Binary files a/testnet/Dex/images/tokens/dex.png and /dev/null differ diff --git a/testnet/Dex/images/tokens/dex.svg b/testnet/Dex/images/tokens/dex.svg deleted file mode 100644 index abd9831..0000000 --- a/testnet/Dex/images/tokens/dex.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/testnet/Dex/nativetokens.json b/testnet/Dex/nativetokens.json deleted file mode 100644 index d9f33f5..0000000 --- a/testnet/Dex/nativetokens.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "title": "Dex - Testnet - Native tokens", - "tokens": [ - { - "tokenID": "0100001100000000", - "tokenName": "Dex", - "description": "Native Utility Token", - "denomUnits": [ - { - "denom": "dex", - "decimals": 0, - "aliases": [ - "Dex" - ] - } - ], - "baseDenom": "dex", - "displayDenom": "dex", - "symbol": "DEX", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Dex/images/tokens/dex.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Dex/images/tokens/dex.svg" - } - } - ] -} \ No newline at end of file diff --git a/testnet/Klayr/app.json b/testnet/Klayr/app.json new file mode 100644 index 0000000..b81ab4d --- /dev/null +++ b/testnet/Klayr/app.json @@ -0,0 +1,40 @@ +{ + "title": "Klayr - Testnet", + "description": "Metadata configuration for the Klayr blockchain (mainchain) in testnet", + "chainName": "klayr_mainchain", + "displayName": "Klayr", + "chainID": "01000000", + "networkType": "testnet", + "genesisURL": "https://github.com/KlayrHQ/klayr-core/blob/development/config/testnet/genesis_assets.json", + "projectPage": "https://klayr.xyz", + "logo": { + "png": "https://downloads.klayr.xyz/media/klayr.png", + "svg": "https://downloads.klayr.xyz/media/klayr.svg" + }, + "backgroundColor": "#EDEDCE", + "serviceURLs": [ + { + "http": "https://testnet-service.klayr.xyz", + "ws": "wss://testnet-service.klayr.xyz", + "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWCLObWsqufJm3aOSigy\nvc+kpjE2058UtgBgNfqp7nfcHePMzSpLZrLiILN8m5y0E4UYT4ywLSe7nzzbmLEW\n+BTSItaAPP/cOLPA89VhbmEDQJa2ndfGT5CGP++duvlQ6yH0JHdOkwIpr+o7Mjvs\nSfgIMtALtm5uNOGN4sJSFoNPjXDpskgHi6rOXXifN89wXx38KNCll+tlzUFjOtLR\nZI8ykq+5TDtS9NBJKqIHS3xIQXpXHK63mA9ogmmMwN/4cPh8S+vVUigzdorH6+4m\nFSdE+KfZHc+eK5mr+FfCRJOo6PKMCEeAM1ykBvyX93PwqCndeM+ldL2/EfQvijN+\n+wIDAQAB\n-----END PUBLIC KEY-----" + } + ], + "explorers": [ + { + "url": "https://testnet-explorer.klayr.xyz", + "txnPage": "https://testnet-explorer.klayr.xyz/transactions" + } + ], + "appNodes": [ + { + "url": "https://testnet.klayr.xyz", + "maintainer": "Klayr Labs B.V.", + "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWCLObWsqufJm3aOSigy\nvc+kpjE2058UtgBgNfqp7nfcHePMzSpLZrLiILN8m5y0E4UYT4ywLSe7nzzbmLEW\n+BTSItaAPP/cOLPA89VhbmEDQJa2ndfGT5CGP++duvlQ6yH0JHdOkwIpr+o7Mjvs\nSfgIMtALtm5uNOGN4sJSFoNPjXDpskgHi6rOXXifN89wXx38KNCll+tlzUFjOtLR\nZI8ykq+5TDtS9NBJKqIHS3xIQXpXHK63mA9ogmmMwN/4cPh8S+vVUigzdorH6+4m\nFSdE+KfZHc+eK5mr+FfCRJOo6PKMCEeAM1ykBvyX93PwqCndeM+ldL2/EfQvijN+\n+wIDAQAB\n-----END PUBLIC KEY-----" + }, + { + "url": "wss://testnet.klayr.xyz", + "maintainer": "Klayr Labs B.V.", + "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoWCLObWsqufJm3aOSigy\nvc+kpjE2058UtgBgNfqp7nfcHePMzSpLZrLiILN8m5y0E4UYT4ywLSe7nzzbmLEW\n+BTSItaAPP/cOLPA89VhbmEDQJa2ndfGT5CGP++duvlQ6yH0JHdOkwIpr+o7Mjvs\nSfgIMtALtm5uNOGN4sJSFoNPjXDpskgHi6rOXXifN89wXx38KNCll+tlzUFjOtLR\nZI8ykq+5TDtS9NBJKqIHS3xIQXpXHK63mA9ogmmMwN/4cPh8S+vVUigzdorH6+4m\nFSdE+KfZHc+eK5mr+FfCRJOo6PKMCEeAM1ykBvyX93PwqCndeM+ldL2/EfQvijN+\n+wIDAQAB\n-----END PUBLIC KEY-----" + } + ] +} diff --git a/testnet/Klayr/images/application/klayr.png b/testnet/Klayr/images/application/klayr.png new file mode 100644 index 0000000..67235d6 Binary files /dev/null and b/testnet/Klayr/images/application/klayr.png differ diff --git a/testnet/Klayr/images/application/klayr.svg b/testnet/Klayr/images/application/klayr.svg new file mode 100644 index 0000000..a28c3fd --- /dev/null +++ b/testnet/Klayr/images/application/klayr.svg @@ -0,0 +1,43 @@ + + diff --git a/testnet/Klayr/images/tokens/klayr.png b/testnet/Klayr/images/tokens/klayr.png new file mode 100644 index 0000000..67235d6 Binary files /dev/null and b/testnet/Klayr/images/tokens/klayr.png differ diff --git a/testnet/Klayr/images/tokens/klayr.svg b/testnet/Klayr/images/tokens/klayr.svg new file mode 100644 index 0000000..a28c3fd --- /dev/null +++ b/testnet/Klayr/images/tokens/klayr.svg @@ -0,0 +1,43 @@ + + diff --git a/testnet/Lisk/nativetokens.json b/testnet/Klayr/nativetokens.json similarity index 50% rename from testnet/Lisk/nativetokens.json rename to testnet/Klayr/nativetokens.json index a84a0f4..d32bd12 100644 --- a/testnet/Lisk/nativetokens.json +++ b/testnet/Klayr/nativetokens.json @@ -1,10 +1,10 @@ { - "title": "Lisk - Testnet - Native tokens", + "title": "Klayr - Testnet - Native tokens", "tokens": [ { "tokenID": "0100000000000000", - "tokenName": "Lisk", - "description": "Default token for the entire Lisk ecosystem", + "tokenName": "Klayr", + "description": "Default token for the entire Klayr ecosystem", "denomUnits": [ { "denom": "beddows", @@ -14,19 +14,19 @@ ] }, { - "denom": "lsk", + "denom": "kly", "decimals": 8, "aliases": [ - "Lisk" + "Klayr" ] } ], "baseDenom": "beddows", - "displayDenom": "lsk", - "symbol": "LSK", + "displayDenom": "kly", + "symbol": "KLY", "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Lisk/images/tokens/lisk.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Lisk/images/tokens/lisk.svg" + "png": "https://downloads.klayr.xyz/media/klayr.png", + "svg": "https://downloads.klayr.xyz/media/klayr.svg" } } ] diff --git a/testnet/Lisk/app.json b/testnet/Lisk/app.json deleted file mode 100644 index 03ced33..0000000 --- a/testnet/Lisk/app.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "title": "Lisk - Testnet", - "description": "Metadata configuration for the Lisk blockchain (mainchain) in testnet", - "chainName": "lisk_mainchain", - "displayName": "Lisk", - "chainID": "01000000", - "networkType": "testnet", - "genesisURL": "https://downloads.lisk.com/lisk/testnet/genesis_block.json.tar.gz", - "projectPage": "https://lisk.com", - "logo": { - "png": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Lisk/images/application/lisk.png", - "svg": "https://raw.githubusercontent.com/LiskHQ/app-registry/main/testnet/Lisk/images/application/lisk.svg" - }, - "backgroundColor": "#f7f9fb", - "serviceURLs": [ - { - "http": "https://testnet-service.lisk.com", - "ws": "wss://testnet-service.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA55eVRxMsjgsakiSmRJGN\ng7u5XCO63BzbyFeUUuZ5YGRodFDw/cVAaIg9mWAtYRQM3FemJRt6zGcneFTbfmFC\nFcrGFbFqbcBssuHeyaBQroP8E5NcYVy7ZYJmZTaFBL9fpFzgrGdnLgjrlTkx7G+d\n95299QFRfX+mtSXuU0qzsSJzLaO9TsED3+I0aH80nJtxO8/ZI+RqjmomV5aAU0EO\n4S7a7npMZjxVKqwEcUcHeGf+4VLFGDc821IV45T4OZCxRG0sWgbc/AglY1xzRzJv\n1PTTWSYaukKM4rsuVEh6P12dAvMowh4wPGGPkQopXfS135xuHeefjnILl5/OcwHF\n3wIDAQAB\n-----END PUBLIC KEY-----" - } - ], - "explorers": [ - { - "url": "https://testnet.liskscan.com", - "txnPage": "https://testnet.liskscan.com/transactions" - }, - { - "url": "https://testnet.lisk.observer", - "txnPage": "https://testnet.lisk.observer/transactions" - } - ], - "appNodes": [ - { - "url": "https://testnet.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA55eVRxMsjgsakiSmRJGN\ng7u5XCO63BzbyFeUUuZ5YGRodFDw/cVAaIg9mWAtYRQM3FemJRt6zGcneFTbfmFC\nFcrGFbFqbcBssuHeyaBQroP8E5NcYVy7ZYJmZTaFBL9fpFzgrGdnLgjrlTkx7G+d\n95299QFRfX+mtSXuU0qzsSJzLaO9TsED3+I0aH80nJtxO8/ZI+RqjmomV5aAU0EO\n4S7a7npMZjxVKqwEcUcHeGf+4VLFGDc821IV45T4OZCxRG0sWgbc/AglY1xzRzJv\n1PTTWSYaukKM4rsuVEh6P12dAvMowh4wPGGPkQopXfS135xuHeefjnILl5/OcwHF\n3wIDAQAB\n-----END PUBLIC KEY-----", - "maintainer": "Lightcurve GmbH" - }, - { - "url": "wss://testnet.lisk.com", - "apiCertificatePublicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA55eVRxMsjgsakiSmRJGN\ng7u5XCO63BzbyFeUUuZ5YGRodFDw/cVAaIg9mWAtYRQM3FemJRt6zGcneFTbfmFC\nFcrGFbFqbcBssuHeyaBQroP8E5NcYVy7ZYJmZTaFBL9fpFzgrGdnLgjrlTkx7G+d\n95299QFRfX+mtSXuU0qzsSJzLaO9TsED3+I0aH80nJtxO8/ZI+RqjmomV5aAU0EO\n4S7a7npMZjxVKqwEcUcHeGf+4VLFGDc821IV45T4OZCxRG0sWgbc/AglY1xzRzJv\n1PTTWSYaukKM4rsuVEh6P12dAvMowh4wPGGPkQopXfS135xuHeefjnILl5/OcwHF\n3wIDAQAB\n-----END PUBLIC KEY-----", - "maintainer": "Lightcurve GmbH" - } - ] -} diff --git a/testnet/Lisk/images/application/lisk.png b/testnet/Lisk/images/application/lisk.png deleted file mode 100644 index cfa2e61..0000000 Binary files a/testnet/Lisk/images/application/lisk.png and /dev/null differ diff --git a/testnet/Lisk/images/application/lisk.svg b/testnet/Lisk/images/application/lisk.svg deleted file mode 100644 index ad3b96c..0000000 --- a/testnet/Lisk/images/application/lisk.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/testnet/Lisk/images/tokens/lisk.png b/testnet/Lisk/images/tokens/lisk.png deleted file mode 100644 index cfa2e61..0000000 Binary files a/testnet/Lisk/images/tokens/lisk.png and /dev/null differ diff --git a/testnet/Lisk/images/tokens/lisk.svg b/testnet/Lisk/images/tokens/lisk.svg deleted file mode 100644 index ad3b96c..0000000 --- a/testnet/Lisk/images/tokens/lisk.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/utility/extractPublicKeyFromCertificate/extractPublicKeyFromCertificate.js b/utility/extractPublicKeyFromCertificate/extractPublicKeyFromCertificate.js index d293fa1..bbd945a 100644 --- a/utility/extractPublicKeyFromCertificate/extractPublicKeyFromCertificate.js +++ b/utility/extractPublicKeyFromCertificate/extractPublicKeyFromCertificate.js @@ -1,5 +1,4 @@ /* - * LiskHQ/lisk-service * Copyright © 2023 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution diff --git a/utility/extractPublicKeyFromURL/extractPublicKeyFromURL.js b/utility/extractPublicKeyFromURL/extractPublicKeyFromURL.js index 7ee67ec..5a373a4 100644 --- a/utility/extractPublicKeyFromURL/extractPublicKeyFromURL.js +++ b/utility/extractPublicKeyFromURL/extractPublicKeyFromURL.js @@ -23,22 +23,21 @@ const getCertificateFromURL = async (url) => new Promise((resolve, reject) => { const { host } = new URL(url); // Use OpenSSL to retrieve the PEM certificate - const command = `openssl s_client -connect ${host}:443 -showcerts /dev/null | openssl x509 -outform PEM`; - + // const command = `openssl s_client -connect ${host}:443 -showcerts 2>/dev/null /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > output.pem`; + const command = `openssl s_client -connect ${host}:443 -showcerts 2>/dev/null { - if (error) { - reject(error); - return; - } - - if (stderr) { - reject(new Error(`Error: ${stderr}`)); - return; - } + if (error) { + reject(error); + return; + } - const pemCertificate = stdout; - resolve(pemCertificate); - }); + if (stderr) { + reject(new Error(`Error: ${stderr}`)); + return; + } + const pemCertificate = stdout; + resolve(pemCertificate); + }); }); const convertCertificateToPemPublicKey = (pemCertificate) => new Promise((resolve, reject) => { diff --git a/validation/README.md b/validation/README.md index 039a244..c7d79ff 100644 --- a/validation/README.md +++ b/validation/README.md @@ -1,11 +1,11 @@ # Validation Scripts -These scripts offer tooling to ensure that every new PR contains the necessary files to validate the submitted metadata configurations against the standardized schema. It also ensures that the submitted metadata information also match the on-chain information using the Lisk Service URLs specified in the metadata. +These scripts offer tooling to ensure that every new PR contains the necessary files to validate the submitted metadata configurations against the standardized schema. It also ensures that the submitted metadata information also match the on-chain information using the Klayr Service URLs specified in the metadata. ## Installation Clone the app-registry repository: ```bash -git clone https://github.com/LiskHQ/app-registry.git +git clone https://github.com/klayrhq/app-registry.git cd ./app-registry/validation npm ci ``` @@ -24,7 +24,7 @@ npm test ## Contributors -https://github.com/LiskHQ/app-registry/graphs/contributors +https://github.com/klayrhq/app-registry/graphs/contributors ## License @@ -42,4 +42,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -[lisk documentation site]: https://lisk.com/documentation \ No newline at end of file +[klayr documentation site]: https://klayr.xyz/documentation diff --git a/validation/config.js b/validation/config.js index d882ebc..4a938cd 100644 --- a/validation/config.js +++ b/validation/config.js @@ -48,7 +48,7 @@ config.filename = { config.whitelistedFilesPath = path.join(__dirname, 'whitelistedFiles'); // Repo URL -config.repositoryURL = 'https://raw.githubusercontent.com/LiskHQ/app-registry'; +config.repositoryURL = 'https://raw.githubusercontent.com/klayrhq/app-registry'; config.repositoryDefaultBranch = 'main'; config.repositoryHashURLRegex = new RegExp(`^${config.repositoryURL}/[0-9a-f]{40}$`); diff --git a/validation/package-lock.json b/validation/package-lock.json index 4734c0b..b622575 100644 --- a/validation/package-lock.json +++ b/validation/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "Apache-2.0", "dependencies": { - "@liskhq/lisk-client": "^6.0.0", + "@klayr/client": "^6.0.3", "ajv": "8.12.0", "ajv-formats": "2.1.1", "ansi-colors": "^4.1.3", @@ -1242,15 +1242,15 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@liskhq/lisk-api-client": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-api-client/-/lisk-api-client-6.0.0.tgz", - "integrity": "sha512-IdApCNokD8TBbxf3ovuQ9Htd1VkhUkifWVt3bM000VAI7Qg7JxZismLvH3P/fhEIEh4xzdyj1bMP7TdZWF0v7Q==", + "node_modules/@klayr/api-client": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@klayr/api-client/-/api-client-6.0.3.tgz", + "integrity": "sha512-IK6np9RpB4401dCsK5aBVLXxAAU1kMODkAjL+eKTcEbNaiPgjFAyE5VuuW+1C47+RYOBYU7hvyixLlOc9XkFLw==", "dependencies": { - "@liskhq/lisk-codec": "^0.4.0", - "@liskhq/lisk-cryptography": "^4.0.0", - "@liskhq/lisk-transactions": "^6.0.0", - "@liskhq/lisk-validator": "^0.8.0", + "@klayr/codec": "^0.4.2", + "@klayr/cryptography": "^4.0.2", + "@klayr/transactions": "^6.0.2", + "@klayr/validator": "^0.8.2", "isomorphic-ws": "4.0.1", "ws": "8.11.0", "zeromq": "6.0.0-beta.6" @@ -1260,19 +1260,19 @@ "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-client": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-client/-/lisk-client-6.0.0.tgz", - "integrity": "sha512-+z9WozvWRj9l0rKIPYeVyBv9jvaiWhrJPLwgx+paAbypD50PUzFsEXMSOfsHR6hjwfnvfTBbhCD5eGvWRdBA9Q==", - "dependencies": { - "@liskhq/lisk-api-client": "^6.0.0", - "@liskhq/lisk-codec": "^0.4.0", - "@liskhq/lisk-cryptography": "^4.0.0", - "@liskhq/lisk-passphrase": "^4.0.0", - "@liskhq/lisk-transactions": "^6.0.0", - "@liskhq/lisk-tree": "^0.4.0", - "@liskhq/lisk-utils": "^0.4.0", - "@liskhq/lisk-validator": "^0.8.0", + "node_modules/@klayr/client": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/@klayr/client/-/client-6.0.3.tgz", + "integrity": "sha512-bUxqHiMyT619dSlK2mn0U/qQBKXkyXyurqp7VZW2YHqmtTXlzCaBbpNO7RArc646b42e7liC6hdi5R8zcPdC7Q==", + "dependencies": { + "@klayr/api-client": "^6.0.3", + "@klayr/codec": "^0.4.2", + "@klayr/cryptography": "^4.0.2", + "@klayr/passphrase": "^4.0.2", + "@klayr/transactions": "^6.0.2", + "@klayr/tree": "^0.4.2", + "@klayr/utils": "^0.4.2", + "@klayr/validator": "^0.8.2", "buffer": "6.0.3" }, "engines": { @@ -1280,26 +1280,26 @@ "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-codec": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-codec/-/lisk-codec-0.4.0.tgz", - "integrity": "sha512-03mgvftrWK5KfjBl/VSceEBtcr2wA4NLGnuBsoxKiwL/Bolfd1f3rdXbQgUKzeY4UJEoDGHN6jRPbXLHH/yUnw==", + "node_modules/@klayr/codec": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@klayr/codec/-/codec-0.4.2.tgz", + "integrity": "sha512-dUPkhQT6B5CCCNIvgqKXqt0kheCIEmrfb5gd9sx52DcQaGjetfHQ5XJgBsbS+UDgZmK5FPKcpw2rpXdld0p1wg==", "dependencies": { - "@liskhq/lisk-cryptography": "^4.0.0", - "@liskhq/lisk-utils": "^0.4.0", - "@liskhq/lisk-validator": "^0.8.0" + "@klayr/cryptography": "^4.0.2", + "@klayr/utils": "^0.4.2", + "@klayr/validator": "^0.8.2" }, "engines": { "node": ">=18.12.0 <=18", "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-cryptography": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-cryptography/-/lisk-cryptography-4.0.0.tgz", - "integrity": "sha512-246hoey+sKx0/2GrECXfsjTmhv5PaD0z/vYpV1zTL4qPOHaDNqbKsSLg/uAt2OfM7et1KoG76jpYzaiifqCJiw==", + "node_modules/@klayr/cryptography": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@klayr/cryptography/-/cryptography-4.0.2.tgz", + "integrity": "sha512-AwgATewCX5RO15NjiaOOfbZ1xZHxorlJ79BL2g7hOr/dcZg1kynmRwKOribxz/0XvGH7YgL2UYdJJxWfD6fpnA==", "dependencies": { - "@liskhq/lisk-passphrase": "^4.0.0", + "@klayr/passphrase": "^4.0.2", "buffer-reverse": "1.0.1", "hash-wasm": "4.9.0", "tweetnacl": "1.0.3" @@ -1321,10 +1321,10 @@ } } }, - "node_modules/@liskhq/lisk-passphrase": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-passphrase/-/lisk-passphrase-4.0.0.tgz", - "integrity": "sha512-bohEKYtKSqMHyajWqQV3fES5Ejto5gUhAem7fZkLZpgyBIKfZt2xjjdVZRINuvvUixzNBvqpqwF3LQvAJl7SSw==", + "node_modules/@klayr/passphrase": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@klayr/passphrase/-/passphrase-4.0.2.tgz", + "integrity": "sha512-A+ajj7ns9EeOpVZtUKFYNlXr8A+BJvZVU9Zd6NSTG3uWpQU16+u1ahSVsSDcA73xESbLEHEYlEGBBDxv1h3l2g==", "dependencies": { "bip39": "3.0.3" }, @@ -1333,37 +1333,37 @@ "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-transactions": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-transactions/-/lisk-transactions-6.0.0.tgz", - "integrity": "sha512-HnvPxtoglIR1qHohIXg7K9HCiU0naMcz2+wZUH1jwgDwugCNaypLSTNat1dI7/5MHn8MpohHun0a1tWmJZYH/A==", + "node_modules/@klayr/transactions": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@klayr/transactions/-/transactions-6.0.2.tgz", + "integrity": "sha512-1cbLz2pY6T0+d+bAFF7aKQmK1hjTSrxlQ0wuBmuOFcSUh1GvU1bldhgvTwY/fZVePlFCN5JXy4mOekT7fGQPXQ==", "dependencies": { - "@liskhq/lisk-codec": "^0.4.0", - "@liskhq/lisk-cryptography": "^4.0.0", - "@liskhq/lisk-validator": "^0.8.0" + "@klayr/codec": "^0.4.2", + "@klayr/cryptography": "^4.0.2", + "@klayr/validator": "^0.8.2" }, "engines": { "node": ">=18.12.0 <=18", "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-tree": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-tree/-/lisk-tree-0.4.0.tgz", - "integrity": "sha512-Gl4NrFMjF5uEo1jnK5i7GLwxChXC6BoRk80lDConU2Xjrm0hBwyiriEnBxXau4NfGHHfYPUbfZxD6OEJ9Wtl/A==", + "node_modules/@klayr/tree": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@klayr/tree/-/tree-0.4.2.tgz", + "integrity": "sha512-Uzdu6jVvvtUZKVsV11kFB7xWFhoyucRngpKEvNg/p+yHfsEYYRLkXib+eiyw60+IFMwUGfrEOv+6WYSA44li6g==", "dependencies": { - "@liskhq/lisk-cryptography": "^4.0.0", - "@liskhq/lisk-utils": "^0.4.0" + "@klayr/cryptography": "^4.0.2", + "@klayr/utils": "^0.4.2" }, "engines": { "node": ">=18.12.0 <=18", "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-utils": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-utils/-/lisk-utils-0.4.0.tgz", - "integrity": "sha512-rzZZrh36GVSqB65Y4LjaZIe2AVLUH8zXNDNBX0MXM7pI5BhBesDmDpVS2qVLoF7lhyBmUPk9SrARI0wK9/+z9g==", + "node_modules/@klayr/utils": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@klayr/utils/-/utils-0.4.2.tgz", + "integrity": "sha512-qEtBp813Ns8YeNq3QUIZk9HHHNHO6BPwlOzLUDkX1qHu77SWNFQgzSkOEOxoNQaY5CW+un0uBB3jH0K8L4U/3w==", "dependencies": { "lodash.clonedeep": "4.5.0" }, @@ -1372,12 +1372,12 @@ "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-validator": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@liskhq/lisk-validator/-/lisk-validator-0.8.0.tgz", - "integrity": "sha512-aChkjwuwBBzvDIQhyCRozOvQ0fTWjzAOLZJi3i53+1op6J3f6LZYG6ffA6q/x6W1/tQbApSoc2GJWrSCjmFpFw==", + "node_modules/@klayr/validator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@klayr/validator/-/validator-0.8.2.tgz", + "integrity": "sha512-pbLwVfOH34sy/sk3wOwm9EQB+c5kQo/PCmWbwOnaVvk+WNVQm315irvQ8XOyY21QVlapE6hAG5hC9c/CzLsAsw==", "dependencies": { - "@liskhq/lisk-cryptography": "^4.0.0", + "@klayr/cryptography": "^4.0.2", "ajv": "8.1.0", "ajv-formats": "2.1.1", "debug": "4.3.4", @@ -1389,7 +1389,7 @@ "npm": ">=8.1.0" } }, - "node_modules/@liskhq/lisk-validator/node_modules/ajv": { + "node_modules/@klayr/validator/node_modules/ajv": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.1.0.tgz", "integrity": "sha512-B/Sk2Ix7A36fs/ZkuGLIR86EdjbgR6fsAcbx9lOP/QBSXujDNbVmIS/U4Itz5k8fPFDeVZl/zQ/gJW4Jrq6XjQ==", diff --git a/validation/package.json b/validation/package.json index 28510ac..8516758 100644 --- a/validation/package.json +++ b/validation/package.json @@ -6,7 +6,7 @@ "main": "src/index.js", "license": "Apache-2.0", "keywords": [ - "lisk", + "klayr", "blockchain", "registry", "off-chain", @@ -19,7 +19,7 @@ "lint:fix": "eslint --fix \"./**/*.js\" " }, "dependencies": { - "@liskhq/lisk-client": "^6.0.0", + "@klayr/client": "^6.0.3", "ajv": "8.12.0", "ajv-formats": "2.1.1", "ansi-colors": "^4.1.3", diff --git a/validation/src/index.js b/validation/src/index.js index 64ce021..00ef586 100644 --- a/validation/src/index.js +++ b/validation/src/index.js @@ -48,7 +48,7 @@ const drawBorder = (messages) => { const validate = async () => { let validationErrors = []; - // Check if the PR author is from the @LiskHQ/platform team + // Check if the PR author is from the @klayrhq/platform team const isAuthorFromDevTeam = process.argv[2] === 'true'; // Get all modified files diff --git a/validation/src/utils/request/index.js b/validation/src/utils/request/index.js index 13b89c0..c8325b7 100644 --- a/validation/src/utils/request/index.js +++ b/validation/src/utils/request/index.js @@ -15,7 +15,7 @@ const axios = require('axios'); const https = require('https'); const io = require('socket.io-client'); -const { apiClient } = require('@liskhq/lisk-client'); +const { apiClient } = require('@klayr/client'); const config = require('../../../config'); const { getCertificateFromURL, convertCertificateToPemPublicKey } = require('./certificate'); @@ -99,7 +99,7 @@ const wsRequest = async (wsEndpoint, wsMethod, wsParams, publicKey, timeout = co return res; }; -const requestInfoFromLiskNodeWSEndpoint = async (wsEndpoint, publicKey) => { +const requestInfoFromKlayrNodeWSEndpoint = async (wsEndpoint, publicKey) => { const { protocol } = new URL(wsEndpoint); if (protocol !== 'ws:' && protocol !== 'wss:') { return Promise.reject(new Error('Invalid WebSocket URL.')); @@ -115,7 +115,7 @@ const requestInfoFromLiskNodeWSEndpoint = async (wsEndpoint, publicKey) => { return res; }; -const requestInfoFromLiskNodeHTTPEndpoint = async (url, publicKey) => { +const requestInfoFromKlayrNodeHTTPEndpoint = async (url, publicKey) => { const { protocol } = new URL(url); if (protocol !== 'http:' && protocol !== 'https:') { return Promise.reject(new Error(`Invalid HTTP URL: ${url}`)); @@ -148,6 +148,6 @@ const requestInfoFromLiskNodeHTTPEndpoint = async (url, publicKey) => { module.exports = { httpRequest, wsRequest, - requestInfoFromLiskNodeWSEndpoint, - requestInfoFromLiskNodeHTTPEndpoint, + requestInfoFromKlayrNodeWSEndpoint, + requestInfoFromKlayrNodeHTTPEndpoint, }; diff --git a/validation/src/validateURLs.js b/validation/src/validateURLs.js index d5eb646..249e3c0 100644 --- a/validation/src/validateURLs.js +++ b/validation/src/validateURLs.js @@ -18,7 +18,7 @@ const sharp = require('sharp'); const { readJsonFile } = require('./utils/fs'); const config = require('../config'); -const { httpRequest, wsRequest, requestInfoFromLiskNodeWSEndpoint, requestInfoFromLiskNodeHTTPEndpoint } = require('./utils/request/index'); +const { httpRequest, wsRequest, requestInfoFromKlayrNodeWSEndpoint, requestInfoFromKlayrNodeHTTPEndpoint } = require('./utils/request/index'); const { readFile } = require('./utils/fs'); const LOCALHOST_IP = '127.0.0.1'; @@ -184,13 +184,13 @@ const validateAppNodeUrls = async (appNodeInfos, chainID, isSecuredNetwork, isAu if (!appNodeUrl.includes(LOCALHOST_IP)) { if (protocol === 'ws:' || protocol === 'wss:') { // Validate ws app node URLs - const nodeSystemInfo = await requestInfoFromLiskNodeWSEndpoint(appNodeUrl, publicKey); + const nodeSystemInfo = await requestInfoFromKlayrNodeWSEndpoint(appNodeUrl, publicKey); if (nodeSystemInfo.chainID !== chainID) { validationErrors.push(`ChainID mismatch on node: ${appNodeUrl}.\nNode chainID: ${nodeSystemInfo.chainID}.\napp.json chainID: ${chainID}.\nPlease ensure that the supplied values in the config are accurate.`); } } else if (protocol === 'http:' || protocol === 'https:') { // Validate HTTP app node URLs - const nodeSystemInfo = await requestInfoFromLiskNodeHTTPEndpoint(appNodeUrl, publicKey); + const nodeSystemInfo = await requestInfoFromKlayrNodeHTTPEndpoint(appNodeUrl, publicKey); if (nodeSystemInfo.chainID !== chainID) { validationErrors.push(`ChainID mismatch on node: ${appNodeUrl}.\nNode chainID: ${nodeSystemInfo.chainID}.\napp.json chainID: ${chainID}.\nPlease ensure that the supplied values in the config are accurate.`); } @@ -224,7 +224,7 @@ const validateServiceURLs = async (serviceURLs, chainID, isSecuredNetwork, isAut if (isSecuredNetwork && (httpProtocol !== 'https:' || wsProtocol !== 'wss:' || !publicKey)) { validationErrors.push(`Require secure URLs and API certificate public key in case of the following networks: ${config.securedNetworks}.`); } else if (!isSecuredNetwork && !((httpProtocol === 'https:' && wsProtocol === 'wss:' && publicKey) || (httpProtocol === 'http:' && wsProtocol === 'ws:'))) { - validationErrors.push('Require Lisk Service HTTP and WS URLs. For secured deployments, please provide apiCertificatePublicKey as well.'); + validationErrors.push('Require Klayr Service HTTP and WS URLs. For secured deployments, please provide apiCertificatePublicKey as well.'); } else { // Validate HTTP service URLs if (httpServiceURL) { diff --git a/validation/tests/constants/invalidAppConfig.js b/validation/tests/constants/invalidAppConfig.js index aaa41ea..cf4632a 100644 --- a/validation/tests/constants/invalidAppConfig.js +++ b/validation/tests/constants/invalidAppConfig.js @@ -1,270 +1,270 @@ const backgroundColorNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const chainIDNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const chainNameNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const explorersNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const genesisURLNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - projectPage: 'https://lisk.com', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const logoNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const networkTypeNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const projectPageNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const serviceUrlIncorrect = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { http: 'Incorrect serviceURL', - ws: 'wss://mainnet-service.lisk.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const serviceURLsNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], diff --git a/validation/tests/constants/invalidNativeTokensConfig.js b/validation/tests/constants/invalidNativeTokensConfig.js index 1db25ca..5a7cdc5 100644 --- a/validation/tests/constants/invalidNativeTokensConfig.js +++ b/validation/tests/constants/invalidNativeTokensConfig.js @@ -1,47 +1,47 @@ const tokensNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', }; const tokensIncorrect = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: 'Tokens', }; const tokenIDNotPresent = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', }, ], explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const tokenNameNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - description: 'Default token for the entire Lisk ecosystem', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -54,7 +54,7 @@ const tokenNameNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -62,57 +62,57 @@ const tokenNameNotPresent = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const denomUnitsNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', baseDenom: 'beddows', displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const denomUnitsDecimalsIncorrect = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: '', baseDenom: 'beddows', displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const denomUnitsDecimalsNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -124,7 +124,7 @@ const denomUnitsDecimalsNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -132,20 +132,20 @@ const denomUnitsDecimalsNotPresent = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const denomUnitsDenomNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { decimals: 0, @@ -157,7 +157,7 @@ const denomUnitsDenomNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -165,20 +165,20 @@ const denomUnitsDenomNotPresent = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const baseDenomNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -191,27 +191,27 @@ const baseDenomNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const displayDenomNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -224,27 +224,27 @@ const displayDenomNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], baseDenom: 'beddows', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const symbolNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -257,27 +257,27 @@ const symbolNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], baseDenom: 'beddows', displayDenom: 'lsk', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const logoNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -290,7 +290,7 @@ const logoNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -298,20 +298,20 @@ const logoNotPresent = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const logoPngNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -324,7 +324,7 @@ const logoPngNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -332,19 +332,19 @@ const logoPngNotPresent = { displayDenom: 'lsk', symbol: 'LSK', logo: { - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const logoSvgNotPresent = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -357,7 +357,7 @@ const logoSvgNotPresent = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -365,19 +365,19 @@ const logoSvgNotPresent = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', }, }, ], }; const logoPNGIncorrect = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -390,7 +390,7 @@ const logoPNGIncorrect = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -399,19 +399,19 @@ const logoPNGIncorrect = { symbol: 'LSK', logo: { png: '', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const logoSVGIncorrect = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -424,7 +424,7 @@ const logoSVGIncorrect = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -432,7 +432,7 @@ const logoSVGIncorrect = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', svg: '', }, }, @@ -440,12 +440,12 @@ const logoSVGIncorrect = { }; const baseDenomWithIncorrectDecimals = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -458,7 +458,7 @@ const baseDenomWithIncorrectDecimals = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -466,20 +466,20 @@ const baseDenomWithIncorrectDecimals = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], }; const baseDenomNotInToken = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -492,7 +492,7 @@ const baseDenomNotInToken = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -500,8 +500,8 @@ const baseDenomNotInToken = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], diff --git a/validation/tests/constants/validConfig.js b/validation/tests/constants/validConfig.js index 82609a4..9e1ced7 100644 --- a/validation/tests/constants/validConfig.js +++ b/validation/tests/constants/validConfig.js @@ -1,21 +1,21 @@ const appConfig = { - title: 'Lisk - Mainnet', - description: 'Metadata configuration for the Lisk blockchain (mainchain) in mainnet', - chainName: 'lisk_mainchain', - displayName: 'Lisk', + title: 'Klayr - Mainnet', + description: 'Metadata configuration for the Klayr blockchain (mainchain) in mainnet', + chainName: 'klayr_mainchain', + displayName: 'Klayr', chainID: '00000000', networkType: 'mainnet', - genesisURL: 'https://downloads.lisk.com/lisk/mainnet/genesis_block.json.tar.gz', - projectPage: 'https://lisk.com', + genesisURL: 'https://downloads.klayr.com/klayr/mainnet/genesis_block.json.tar.gz', + projectPage: 'https://klayr.com', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, backgroundColor: '#f7f9fb', serviceURLs: [ { - http: 'https://mainnet-service.lisk.com', - ws: 'wss://mainnet-service.lisk.com', + http: 'https://mainnet-service.klayr.com', + ws: 'wss://mainnet-service.klayr.com', apiCertificatePublicKey: '-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAOGlgzeePs8O7FjSU9a\nUKQg4EYSJNgQqkwD/ITAJ6TzcXRCUK+N230NaFcQ8EFJw/8Al0r8mpjpOOEpPZDq\n+WljcCRkVHXZCJMvgDNcstzdrt1fKzsCrER2jB3hDUXt04xzzlk8ArJG0JeD/CmW\nAsQqL/S6v/GRVTuViHqzWm2eF2XrduUK8wIbQ1y+7HoVdgZDf5MpuvEXluVX4IeJ\nMyzbn9djdrDkHkcbml8dOHyLE6GOS5jKtXj+bKhyTVlSZFbexxKYiBqCpR6kMUnM\nVrURmWGT+jb7UhGkJiP7EpFB7MjAB+yXMiygd6lz67qjG6wFky1wB9NYGJ/50rrV\nDQIDAQAB\n-----END PUBLIC KEY-----', }, @@ -23,19 +23,19 @@ const appConfig = { explorers: [], appNodes: [ { - url: 'wss://mainnet.lisk.com', + url: 'wss://mainnet.klayr.com', maintainer: 'Lightcurve GmbH', }, ], }; const nativeTokenConfig = { - title: 'Lisk - Mainnet - Native tokens', + title: 'Klayr - Mainnet - Native tokens', tokens: [ { tokenID: '0000000000000000', - tokenName: 'Lisk', - description: 'Default token for the entire Lisk ecosystem', + tokenName: 'Klayr', + description: 'Default token for the entire Klayr ecosystem', denomUnits: [ { denom: 'beddows', @@ -48,7 +48,7 @@ const nativeTokenConfig = { denom: 'lsk', decimals: 8, aliases: [ - 'Lisk', + 'Klayr', ], }, ], @@ -56,8 +56,8 @@ const nativeTokenConfig = { displayDenom: 'lsk', symbol: 'LSK', logo: { - png: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.png', - svg: 'https://lisk-qa.ams3.digitaloceanspaces.com/lisk.svg', + png: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.png', + svg: 'https://klayr-qa.ams3.digitaloceanspaces.com/klayr.svg', }, }, ], diff --git a/validation/tests/helper/setup.js b/validation/tests/helper/setup.js index aa64c8d..9b70931 100644 --- a/validation/tests/helper/setup.js +++ b/validation/tests/helper/setup.js @@ -8,7 +8,7 @@ const createTestEnvironment = async () => { await fs.mkdir(path.join(config.rootDir, 'tempDir')); await fs.mkdir(path.join(config.rootDir, 'tempDir', 'docs')); await fs.mkdir(path.join(config.rootDir, 'tempDir', 'mainnet')); - await fs.mkdir(path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk')); + await fs.mkdir(path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr')); }; const cleanTestEnvironment = async () => { @@ -16,13 +16,13 @@ const cleanTestEnvironment = async () => { }; const createFileInNetwork = async (filename, data) => { - await fs.writeFile(path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk', filename), data); + await fs.writeFile(path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr', filename), data); }; -const getFileFromNetwork = (filename) => path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk', filename); +const getFileFromNetwork = (filename) => path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr', filename); const removeFileFromNetwork = async (filename) => { - await fs.rm(path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk', filename)); + await fs.rm(path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr', filename)); }; const createFileInDocs = async (filename, data) => { @@ -35,8 +35,8 @@ const removeFileFromDocs = async (filename) => { const getJSONFilesFromNetwork = () => { const files = []; - files.push(path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk', config.filename.APP_JSON)); - files.push(path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk', config.filename.NATIVE_TOKENS)); + files.push(path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr', config.filename.APP_JSON)); + files.push(path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr', config.filename.NATIVE_TOKENS)); return files; }; @@ -49,7 +49,7 @@ const getJSONFilesFromDocs = () => { const getNetworkDirs = () => [path.join(config.rootDir, 'tempDir', 'mainnet')]; -const getAppDirs = () => [path.join(config.rootDir, 'tempDir', 'mainnet', 'Lisk')]; +const getAppDirs = () => [path.join(config.rootDir, 'tempDir', 'mainnet', 'Klayr')]; module.exports = { tempDataDir, diff --git a/validation/tests/validateURLs.test.js b/validation/tests/validateURLs.test.js index f4f013e..37795f5 100644 --- a/validation/tests/validateURLs.test.js +++ b/validation/tests/validateURLs.test.js @@ -24,7 +24,7 @@ let filesToTest; jest.mock('axios'); jest.mock('socket.io-client'); -jest.mock('@liskhq/lisk-client'); +jest.mock('@klayr/client'); describe('URL Validation tests', () => { beforeAll(async () => { @@ -51,7 +51,7 @@ describe('URL Validation tests', () => { jest.mock('../src/utils/request/index', () => ({ httpRequest: jest.fn().mockRejectedValueOnce('mock error'), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -72,7 +72,7 @@ describe('URL Validation tests', () => { return mockServiceURLSuccessRes; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockRejectedValueOnce('mock error'), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockRejectedValueOnce('mock error'), })); // Test validation @@ -93,7 +93,7 @@ describe('URL Validation tests', () => { return mockServiceURLSuccessRes; }), wsRequest: jest.fn().mockRejectedValueOnce('mock error'), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -115,7 +115,7 @@ describe('URL Validation tests', () => { return mockServiceURLSuccessRes; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLIncorrectResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -137,7 +137,7 @@ describe('URL Validation tests', () => { return mockServiceURL500Res; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -159,7 +159,7 @@ describe('URL Validation tests', () => { return mockServiceURLSuccessRes; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -181,7 +181,7 @@ describe('URL Validation tests', () => { return mockServiceURLSuccessRes; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -204,7 +204,7 @@ describe('URL Validation tests', () => { return mockServiceURLIncorrectRes; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLSuccessResWs), })); // Test validation @@ -227,7 +227,7 @@ describe('URL Validation tests', () => { return mockServiceURLSuccessRes; }), wsRequest: jest.fn().mockResolvedValueOnce(mockServiceURLSuccessResWs), - requestInfoFromLiskNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLIncorrectResWs), + requestInfoFromKlayrNodeWSEndpoint: jest.fn().mockResolvedValueOnce(mockNodeURLIncorrectResWs), })); // Test validation