Skip to content

Commit

Permalink
Merge branch 'main' into add-initiation-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tansawit authored Jul 8, 2024
2 parents 8f7292e + 348a467 commit 711eb97
Show file tree
Hide file tree
Showing 29 changed files with 173 additions and 126 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,25 @@ A sample chain.json includes the following information.
"rpc": [
{
"address": "https://rpc.initiation-1.initia.xyz",
"provider": "Foundation"
"provider": "Initia Labs"
}
],
"rest": [
{
"address": "https://lcd.initiation-1.initia.xyz",
"provider": "Foundation"
"provider": "Initia Labs"
}
],
"api": [
{
"address": "https://api.initiation-1.initia.xyz",
"provider": "Foundation"
"provider": "Initia Labs"
}
],
"grpc": [
{
"address": "grpc://35.247.153.122:9090",
"provider": "Foundation"
"provider": "Initia Labs"
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions _packages/initia-registry/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion _packages/initia-registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@initia/initia-registry",
"version": "0.1.10",
"version": "0.1.12",
"description": "Initia chain registry",
"main": "main/index.js",
"module": "esm/index.js",
Expand Down
8 changes: 8 additions & 0 deletions _packages/initia-registry/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ const chainPaths = glob(`${__dirname}/../../../*/*/chain.json`).filter((a) => {
const index = a.indexOf(spliter);
const splitedDirs = [a.slice(0, index), a.slice(index + spliter.length)];
let dir = splitedDirs.pop();

if (dir.includes("devnets")) {
return false;
}

dir = path.basename(path.dirname(dir));
return !NON_INFO_DIRS.includes(dir);
});
Expand All @@ -417,6 +422,9 @@ const paths = glob(`${__dirname}/../../../*/*/*.json`).filter((a) => {
const splitedDirs = [a.slice(0, index), a.slice(index + spliter.length)];
console.log(splitedDirs);
const filePath = splitedDirs.pop();
if (filePath.includes("devnets")) {
return false;
}
const dir = path.basename(path.dirname(filePath));
return (
!NON_INFO_DIRS.includes(dir) && path.basename(filePath) !== "chain.json"
Expand Down
4 changes: 2 additions & 2 deletions _packages/initia-registry/src/testnet/blackwing/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ const info: Chain = {
rpc: [
{
address:
"https://maze-rpc-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ue1-prod.newmetric.xyz",
"https://maze-rpc-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ase1-prod.newmetric.xyz",
},
],
rest: [
{
address:
"https://maze-rest-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ue1-prod.newmetric.xyz",
"https://maze-rest-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ase1-prod.newmetric.xyz",
},
],
grpc: [
Expand Down
2 changes: 1 addition & 1 deletion _packages/initia-registry/src/testnet/civitia/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const info: Chain = {
$schema: "../../chain.schema.json",
chain_name: "civitia",
chain_id: "landlord-1",
website: "https://www.civitia.xyz/",
website: "https://civitia.org/",
pretty_name: "Civitia",
status: "live",
network_type: "testnet",
Expand Down
6 changes: 3 additions & 3 deletions _packages/initia-registry/src/testnet/initia/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ const info: Chain = {
api: [
{
address: "https://api.initiation-1.initia.xyz",
provider: "Foundation",
provider: "Initia Labs",
},
],
grpc: [
{
address: "grpc://35.247.153.122:9090",
provider: "Foundation",
address: "grpc.initiation-1.initia.xyz:9090",
provider: "Initia Labs",
},
],
},
Expand Down
6 changes: 3 additions & 3 deletions _packages/initia-registry/src/testnet/minimove/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ const info: Chain = {
rpc: [
{
address: "https://rpc.minimove-1.initia.xyz",
provider: "Foundation",
provider: "Initia Labs",
},
],
rest: [
{
address: "https://lcd.minimove-1.initia.xyz",
provider: "Foundation",
provider: "Initia Labs",
},
],
grpc: [
{
address: "grpc://35.198.215.41:9090",
provider: "Foundation",
provider: "Initia Labs",
},
],
},
Expand Down
29 changes: 0 additions & 29 deletions _packages/initia-registry/src/testnet/miniwasm/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,35 +90,6 @@ const info: AssetList = {
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/ETH.svg",
},
},
{
description: "The fake USDC",
denom_units: [
{
denom:
"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5",
exponent: 0,
},
{
denom: "USDC",
exponent: 6,
},
],
base: "ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5",
display: "USDC",
name: "USDC",
symbol: "USDC",
coingecko_id: "",
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/minimove/images/USDC.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/minimove/images/USDC.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/minimove/images/USDC.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/minimove/images/USDC.svg",
},
},
{
description: "The fake TIA",
denom_units: [
Expand Down
6 changes: 3 additions & 3 deletions _packages/initia-registry/src/testnet/miniwasm/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ const info: Chain = {
rpc: [
{
address: "https://rpc.miniwasm-1.initia.xyz",
provider: "Foundation",
provider: "Initia Labs",
},
],
rest: [
{
address: "https://lcd.miniwasm-1.initia.xyz",
provider: "Foundation",
provider: "Initia Labs",
},
],
grpc: [
{
address: "grpc://34.124.190.216:9090",
provider: "Foundation",
provider: "Initia Labs",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion _packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@initia/initia-registry-types",
"version": "0.0.17",
"version": "0.0.18",
"description": "The package provides TypeScript type definitions and Zod integration for initia-registry.",
"types": "./dist/types/index.d.ts",
"exports": {
Expand Down
6 changes: 3 additions & 3 deletions _packages/types/src/types/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export interface Chain {
website?: string;
update_link?: string;
status?: "live" | "upcoming" | "killed";
network_type?: "mainnet" | "testnet" | "devnet";
network_type: "mainnet" | "testnet" | "devnet";
/**
* The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos'
* The default prefix for the human-readable part of addresses that identifies the coin type.
*/
bech32_prefix: string;
bech32_prefix: "init";
/**
* Used to override the bech32_prefix for specific uses.
*/
Expand Down
6 changes: 3 additions & 3 deletions _packages/types/src/zods/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const ChainSchema = z
website: z.string().url().optional(),
update_link: z.string().url().optional(),
status: z.enum(["live", "upcoming", "killed"]).optional(),
network_type: z.enum(["mainnet", "testnet", "devnet"]).optional(),
network_type: z.enum(["mainnet", "testnet", "devnet"]),
bech32_prefix: z
.string()
.literal("init")
.describe(
"The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos'"
"The default prefix for the human-readable part of addresses that identifies the coin type."
),
bech32_config: z
.object({
Expand Down
4 changes: 2 additions & 2 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"enum": ["mainnet", "testnet", "devnet"]
},
"bech32_prefix": {
"type": "string",
"description": "The default prefix for the human-readable part of addresses that identifies the coin type. Must be registered with SLIP-0173. E.g., 'cosmos'"
"const": "init",
"description": "The default prefix for the human-readable part of addresses that identifies the coin type."
},
"bech32_config": {
"type": "object",
Expand Down
106 changes: 106 additions & 0 deletions devnets/initia/assetlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,112 @@
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/ETH-INIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/ETH-INIT.svg"
}
},
{
"description": "Minitswap staked INIT",
"denom_units": [
{
"denom": "uoinit",
"exponent": 0
},
{
"denom": "oINIT",
"exponent": 6
}
],
"base": "uoinit",
"display": "oINIT",
"name": "omniINIT",
"symbol": "oINIT",
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/omniINIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/omniINIT.svg"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/omniINIT.png",
"svg": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/omniINIT.svg"
}
},
{
"description": "Minimove IBC bridged INIT",
"denom_units": [
{
"denom": "ibc/82EB1C694C571F954E68BFD68CFCFCD6123B0EBB69AAA8BAB7A082939B45E802",
"exponent": 0
},
{
"denom": "minimoveINIT",
"exponent": 6
}
],
"base": "ibc/82EB1C694C571F954E68BFD68CFCFCD6123B0EBB69AAA8BAB7A082939B45E802",
"display": "minimoveINIT",
"name": "Minimove IBC INIT",
"symbol": "minimoveINIT",
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/minimoveINIT.png"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/minimoveINIT.png"
}
},
{
"description": "Miniwasm IBC bridged INIT",
"denom_units": [
{
"denom": "ibc/82EB1C694C571F954E68BFD68CFCFCD6123B0EBB69AAA8BAB7A082939B45E802",
"exponent": 0
},
{
"denom": "miniwasmINIT",
"exponent": 6
}
],
"base": "ibc/AD8D520BF2D981113B652A3BCD55368EF146FCB9E016F8B1DAECAA5D570BC8A1",
"display": "miniwasmINIT",
"name": "Miniwasm IBC INIT",
"symbol": "miniwasmINIT",
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/miniwasmINIT.png"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/miniwasmINIT.png"
}
},
{
"description": "Minitswap Minimove IBC INIT Pool Token",
"denom_units": [
{
"denom": "move/e8ff49e574990e63682d93c2e804bc7249d672cc43bd66ee6c1ad2db2f49f933",
"exponent": 0
},
{
"denom": "minimoveINIT-INIT LP",
"exponent": 6
}
],
"base": "move/e8ff49e574990e63682d93c2e804bc7249d672cc43bd66ee6c1ad2db2f49f933",
"display": "minimoveINIT-INIT LP",
"name": "minimoveINIT-INIT LP Token",
"symbol": "minimoveINIT-INIT LP",
"coingecko_id": "",
"images": [
{
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/minimoveINIT-INIT.png"
}
],
"logo_URIs": {
"png": "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/images/minimoveINIT-INIT.png"
}
}
]
}
8 changes: 4 additions & 4 deletions devnets/initia/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,25 @@
"rpc": [
{
"address": "https://rpc.stone-16.initia.xyz",
"provider": "Foundation"
"provider": "Initia Labs"
}
],
"rest": [
{
"address": "https://lcd.stone-16.initia.xyz",
"provider": "Foundation"
"provider": "Initia Labs"
}
],
"api": [
{
"address": "https://api.stone-16.initia.xyz",
"provider": "Foundation"
"provider": "Initia Labs"
}
],
"grpc": [
{
"address": "grpc://34.143.171.2:9090",
"provider": "Foundation"
"provider": "Initia Labs"
}
]
},
Expand Down
Binary file added devnets/initia/images/minimoveINIT-INIT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added devnets/initia/images/minimoveINIT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added devnets/initia/images/miniwasmINIT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added devnets/initia/images/omniINIT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions devnets/initia/images/omniINIT.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 711eb97

Please sign in to comment.