From 577a36cbc3cc8ad233e044db0ff74d85ade17c9c Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Mon, 13 May 2024 11:15:47 +0900 Subject: [PATCH] update initia-registry npm package --- _packages/initia-registry/package.json | 2 +- .../initia-registry/src/testnet/assets.ts | 3 +- .../src/testnet/blackwing/chain.ts | 101 ++++++++++++++++++ .../src/testnet/blackwing/index.ts | 3 + .../initia-registry/src/testnet/chains.ts | 4 + .../initia-registry/src/testnet/index.ts | 2 + .../src/testnet/initia/chain.ts | 24 +++++ .../src/testnet/tucana/assets.ts | 94 ++++++++++++++++ .../src/testnet/tucana/chain.ts | 83 ++++++++++++++ .../src/testnet/tucana/index.ts | 5 + testnets/tucana/chain.json | 1 + 11 files changed, 320 insertions(+), 2 deletions(-) create mode 100644 _packages/initia-registry/src/testnet/blackwing/chain.ts create mode 100644 _packages/initia-registry/src/testnet/blackwing/index.ts create mode 100644 _packages/initia-registry/src/testnet/tucana/assets.ts create mode 100644 _packages/initia-registry/src/testnet/tucana/chain.ts create mode 100644 _packages/initia-registry/src/testnet/tucana/index.ts diff --git a/_packages/initia-registry/package.json b/_packages/initia-registry/package.json index c72d993..f1dd9e5 100644 --- a/_packages/initia-registry/package.json +++ b/_packages/initia-registry/package.json @@ -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", diff --git a/_packages/initia-registry/src/testnet/assets.ts b/_packages/initia-registry/src/testnet/assets.ts index bd9365d..1102599 100644 --- a/_packages/initia-registry/src/testnet/assets.ts +++ b/_packages/initia-registry/src/testnet/assets.ts @@ -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; diff --git a/_packages/initia-registry/src/testnet/blackwing/chain.ts b/_packages/initia-registry/src/testnet/blackwing/chain.ts new file mode 100644 index 0000000..0480dc6 --- /dev/null +++ b/_packages/initia-registry/src/testnet/blackwing/chain.ts @@ -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; diff --git a/_packages/initia-registry/src/testnet/blackwing/index.ts b/_packages/initia-registry/src/testnet/blackwing/index.ts new file mode 100644 index 0000000..6371c41 --- /dev/null +++ b/_packages/initia-registry/src/testnet/blackwing/index.ts @@ -0,0 +1,3 @@ +import _chain from "./chain"; + +export const chain = _chain; diff --git a/_packages/initia-registry/src/testnet/chains.ts b/_packages/initia-registry/src/testnet/chains.ts index d551290..f8982ed 100644 --- a/_packages/initia-registry/src/testnet/chains.ts +++ b/_packages/initia-registry/src/testnet/chains.ts @@ -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; diff --git a/_packages/initia-registry/src/testnet/index.ts b/_packages/initia-registry/src/testnet/index.ts index e1aa6e2..157d3fc 100644 --- a/_packages/initia-registry/src/testnet/index.ts +++ b/_packages/initia-registry/src/testnet/index.ts @@ -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"; diff --git a/_packages/initia-registry/src/testnet/initia/chain.ts b/_packages/initia-registry/src/testnet/initia/chain.ts index 25669c4..9a51020 100644 --- a/_packages/initia-registry/src/testnet/initia/chain.ts +++ b/_packages/initia-registry/src/testnet/initia/chain.ts @@ -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", diff --git a/_packages/initia-registry/src/testnet/tucana/assets.ts b/_packages/initia-registry/src/testnet/tucana/assets.ts new file mode 100644 index 0000000..0fc7fa1 --- /dev/null +++ b/_packages/initia-registry/src/testnet/tucana/assets.ts @@ -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; diff --git a/_packages/initia-registry/src/testnet/tucana/chain.ts b/_packages/initia-registry/src/testnet/tucana/chain.ts new file mode 100644 index 0000000..a49be13 --- /dev/null +++ b/_packages/initia-registry/src/testnet/tucana/chain.ts @@ -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; diff --git a/_packages/initia-registry/src/testnet/tucana/index.ts b/_packages/initia-registry/src/testnet/tucana/index.ts new file mode 100644 index 0000000..3d7a9c6 --- /dev/null +++ b/_packages/initia-registry/src/testnet/tucana/index.ts @@ -0,0 +1,5 @@ +import _assets from "./assets"; +import _chain from "./chain"; + +export const assets = _assets; +export const chain = _chain; diff --git a/testnets/tucana/chain.json b/testnets/tucana/chain.json index c2e41fc..7a1bc28 100644 --- a/testnets/tucana/chain.json +++ b/testnets/tucana/chain.json @@ -1,4 +1,5 @@ { + "$schema": "../../chain.schema.json", "chain_name": "tucana", "chain_id": "birdee-1", "pretty_name": "Tucana",