Skip to content

Commit

Permalink
update initia-registry npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed May 13, 2024
1 parent 09c1e41 commit 577a36c
Show file tree
Hide file tree
Showing 11 changed files with 320 additions and 2 deletions.
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.7",
"version": "0.1.8",
"description": "Initia chain registry",
"main": "main/index.js",
"module": "esm/index.js",
Expand Down
3 changes: 2 additions & 1 deletion _packages/initia-registry/src/testnet/assets.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { AssetList } from "@initia/initia-registry-types";

import * as _tucana from "./tucana";
import * as _init_ai from "./init_ai";

const assets: AssetList[] = [_init_ai.assets];
const assets: AssetList[] = [_tucana.assets, _init_ai.assets];

export default assets;
101 changes: 101 additions & 0 deletions _packages/initia-registry/src/testnet/blackwing/chain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import { Chain } from "@initia/initia-registry-types";
const info: Chain = {
$schema: "../../chain.schema.json",
chain_name: "blackwing",
chain_id: "tomcat-1",
website: "https://blackwing.fi",
pretty_name: "Blackwing",
status: "live",
network_type: "testnet",
daemon_name: "minitiad",
node_home: "$HOME/.minitia",
key_algos: ["secp256k1"],
slip44: 118,
bech32_prefix: "init",
fees: {
fee_tokens: [
{
denom: "umin",
fixed_min_gas_price: 0.15,
},
{
denom:
"l2/aee375e9d0b181f0d9d3a49f9a3d1d6b05d62b0ac81f8c92b9282afa4213d884",
fixed_min_gas_price: 0.15,
low_gas_price: 0.15,
average_gas_price: 0.15,
high_gas_price: 0.4,
},
{
denom:
"ibc/8E27BA2D5493AF5636760E354E46004562C46AB7EC0CC4C1CA14E9E20E2545B5",
fixed_min_gas_price: 0.15,
low_gas_price: 0.15,
average_gas_price: 0.15,
high_gas_price: 0.4,
},
],
},
staking: {
staking_tokens: [],
},
description: "Blackwing Testnet",
apis: {
rpc: [
{
address:
"https://maze-rpc-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ue1-prod.newmetric.xyz",
},
],
rest: [
{
address:
"https://maze-rest-18bdff44-3aa4-425e-9bc0-06a2afa40af8.ue1-prod.newmetric.xyz",
},
],
},
explorers: [
{
kind: "initia scan",
url: "https://scan.testnet.initia.xyz/tomcat-1",
tx_page: "https://scan.testnet.initia.xyz/tomcat-1/txs/${txHash}",
account_page:
"https://scan.testnet.initia.xyz/tomcat-1/accounts/${accountAddress}",
},
],
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/blackwing/images/BLACKWING.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/blackwing/images/BLACKWING.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/blackwing/images/BLACKWING.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/blackwing/images/BLACKWING.svg",
},
metadata: {
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/blackwing/assetlist.json",
op_bridge_id: "8",
op_denoms: ["uinit"],
ibc_channels: [
{
chain_id: "initiation-1",
port_id: "nft-transfer",
channel_id: "channel-1",
version: "ics721-1",
},
{
chain_id: "initiation-1",
port_id: "transfer",
channel_id: "channel-0",
version: "ics20-1",
},
],
minitia: {
type: "minimove",
version: "v0.2.11",
},
},
};
export default info;
3 changes: 3 additions & 0 deletions _packages/initia-registry/src/testnet/blackwing/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import _chain from "./chain";

export const chain = _chain;
4 changes: 4 additions & 0 deletions _packages/initia-registry/src/testnet/chains.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { Chain } from "@initia/initia-registry-types";

import * as _tucana from "./tucana";
import * as _miniwasm from "./miniwasm";
import * as _minimove from "./minimove";
import * as _initia from "./initia";
import * as _init_ai from "./init_ai";
import * as _blackwing from "./blackwing";

const chains: Chain[] = [
_tucana.chain,
_miniwasm.chain,
_minimove.chain,
_initia.chain,
_init_ai.chain,
_blackwing.chain,
];

export default chains;
2 changes: 2 additions & 0 deletions _packages/initia-registry/src/testnet/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * as tucana from "./tucana";
export * as miniwasm from "./miniwasm";
export * as minimove from "./minimove";
export * as initia from "./initia";
export * as init_ai from "./init_ai";
export * as blackwing from "./blackwing";
24 changes: 24 additions & 0 deletions _packages/initia-registry/src/testnet/initia/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,30 @@ const info: Chain = {
channel_id: "channel-10",
version: "ics721-1",
},
{
chain_id: "birdee-1",
port_id: "transfer",
channel_id: "channel-25",
version: "ics20-1",
},
{
chain_id: "birdee-1",
port_id: "nft-transfer",
channel_id: "channel-26",
version: "ics721-1",
},
{
chain_id: "tomcat-1",
port_id: "transfer",
channel_id: "channel-13",
version: "ics20-1",
},
{
chain_id: "tomcat-1",
port_id: "nft-transfer",
channel_id: "channel-14",
version: "ics721-1",
},
],
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/assetlist.json",
Expand Down
94 changes: 94 additions & 0 deletions _packages/initia-registry/src/testnet/tucana/assets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import { AssetList } from "@initia/initia-registry-types";
const info: AssetList = {
$schema: "../../assetlist.schema.json",
chain_name: "tucana",
assets: [
{
description: "The native token of Initia",
denom_units: [
{
denom:
"l2/333f8e6ae6855338f99d451126bfefc1b920763c16681d55fbc7df68ccb36972",
exponent: 0,
},
{
denom: "INIT",
exponent: 6,
},
],
base: "l2/333f8e6ae6855338f99d451126bfefc1b920763c16681d55fbc7df68ccb36972",
display: "INIT",
name: "Initia Native Token",
symbol: "INIT",
coingecko_id: "",
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/initia/images/INIT.svg",
},
},
{
description: "The native token of Tucana",
denom_units: [
{
denom: "utuc",
exponent: 0,
},
{
denom: "TUC",
exponent: 6,
},
],
base: "utuc",
display: "TUC",
name: "Tucana Native Token",
symbol: "TUC",
coingecko_id: "",
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.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",
},
},
],
};
export default info;
83 changes: 83 additions & 0 deletions _packages/initia-registry/src/testnet/tucana/chain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import { Chain } from "@initia/initia-registry-types";
const info: Chain = {
$schema: "../../chain.schema.json",
chain_name: "tucana",
chain_id: "birdee-1",
pretty_name: "Tucana",
status: "live",
network_type: "testnet",
bech32_prefix: "init",
daemon_name: "minitiad",
key_algos: ["secp256k1"],
slip44: 118,
fees: {
fee_tokens: [
{
denom: "utuc",
fixed_min_gas_price: 0,
low_gas_price: 0,
average_gas_price: 0,
high_gas_price: 0,
},
],
},
description: "Tucana Public Testnet",
apis: {
rpc: [
{
address:
"https://maze-rpc-c9796789-107d-49ab-b6de-059724d2a91d.ue1-prod.newmetric.xyz",
},
],
rest: [
{
address:
"https://maze-rest-c9796789-107d-49ab-b6de-059724d2a91d.ue1-prod.newmetric.xyz",
},
],
},
explorers: [
{
kind: "initia scan",
url: "https://scan.testnet.initia.xyz/birdee-1",
tx_page: "https://scan.testnet.initia.xyz/birdee-1/txs/${txHash}",
account_page:
"https://scan.testnet.initia.xyz/birdee-1/accounts/${accountAddress}",
},
],
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/images/TUCANA.svg",
},
metadata: {
op_bridge_id: "14",
op_denoms: ["uinit"],
ibc_channels: [
{
chain_id: "initiation-1",
port_id: "nft-transfer",
channel_id: "channel-1",
version: "ics721-1",
},
{
chain_id: "initiation-1",
port_id: "transfer",
channel_id: "channel-0",
version: "ics20-1",
},
],
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/tucana/assetlist.json",
minitia: {
type: "minimove",
version: "v0.2.11",
},
},
};
export default info;
5 changes: 5 additions & 0 deletions _packages/initia-registry/src/testnet/tucana/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import _assets from "./assets";
import _chain from "./chain";

export const assets = _assets;
export const chain = _chain;
1 change: 1 addition & 0 deletions testnets/tucana/chain.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "../../chain.schema.json",
"chain_name": "tucana",
"chain_id": "birdee-1",
"pretty_name": "Tucana",
Expand Down

0 comments on commit 577a36c

Please sign in to comment.