Skip to content

Commit

Permalink
feat: add minitia field and add blackwing chain (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 authored Apr 17, 2024
1 parent e337d10 commit 25d502c
Show file tree
Hide file tree
Showing 23 changed files with 414 additions and 108 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.3",
"version": "0.1.4",
"description": "Initia chain registry",
"main": "main/index.js",
"module": "esm/index.js",
Expand Down
2 changes: 2 additions & 0 deletions _packages/initia-registry/src/devnet/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { AssetList } from "@initia/initia-registry-types";
import * as _miniwasm from "./miniwasm";
import * as _minimove from "./minimove";
import * as _initia from "./initia";
import * as _blackwing from "./blackwing";

const assets: AssetList[] = [
_miniwasm.assets,
_minimove.assets,
_initia.assets,
_blackwing.assets,
];

export default assets;
66 changes: 66 additions & 0 deletions _packages/initia-registry/src/devnet/blackwing/assets.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import { AssetList } from "@initia/initia-registry-types";
const info: AssetList = {
$schema: "../../assetlist.schema.json",
chain_name: "blackwing",
assets: [
{
description: "The native token of Initia",
denom_units: [
{
denom:
"l2/ad2344d0c17127cc6bce67e360f43cd6c5fa09a7b5f6f9b7b80f9dc3e0c4876e",
exponent: 0,
},
{
denom: "INIT",
exponent: 6,
},
],
base: "l2/ad2344d0c17127cc6bce67e360f43cd6c5fa09a7b5f6f9b7b80f9dc3e0c4876e",
display: "INIT",
name: "Initia Native Token",
symbol: "INIT",
coingecko_id: "",
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.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/devnets/minimove/images/USDC.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/USDC.svg",
},
},
],
};
export default info;
104 changes: 104 additions & 0 deletions _packages/initia-registry/src/devnet/blackwing/chain.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import { Chain } from "@initia/initia-registry-types";
const info: Chain = {
$schema: "../../chain.schema.json",
website: "https://blackwing.fi",
pretty_name: "Blackwing",
status: "live",
network_type: "devnet",
daemon_name: "minitiad",
node_home: "$HOME/.minitia",
key_algos: ["secp256k1"],
slip44: 118,
chain_name: "blackwing",
chain_id: "tomcat-1",
bech32_prefix: "init",
fees: {
fee_tokens: [
{
denom:
"l2/ad2344d0c17127cc6bce67e360f43cd6c5fa09a7b5f6f9b7b80f9dc3e0c4876e",
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-c64ef367-a391-4e71-901e-87951e5e9030.ue1-prod.newmetric.xyz",
},
],
rest: [
{
address:
"https://maze-rest-c64ef367-a391-4e71-901e-87951e5e9030.ue1-prod.newmetric.xyz",
},
],
api: [
{
address: "https://api.blackwing.initia.xyz",
},
],
},
explorers: [
{
kind: "explorer",
url: "https://explorer.mahalo-2.initia.xyz/?layer=tomcat-1",
tx_page:
"https://explorer.mahalo-2.initia.xyz/tx/${txHash}?layer=tomcat-1",
account_page:
"https://explorer.mahalo-2.initia.xyz/address/${accountAddress}?layer=tomcat-1",
},
{
kind: "initia scan",
url: "https://scan.initia.xyz/tomcat-1",
tx_page: "https://scan.initia.xyz/tomcat-1/txs/${txHash}",
account_page:
"https://scan.initia.xyz/tomcat-1/accounts/${accountAddress}",
},
],
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/images/INIT.svg",
},
metadata: {
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/testnets/blackwing/assetlist.json",
op_bridge_id: "108",
op_denoms: ["uinit"],
ibc_channels: [
{
chain_id: "mahalo-2",
port_id: "transfer",
channel_id: "channel-0",
version: "ics20-1",
},
],
minitia: {
type: "minimove",
version: "0.2.3",
},
},
};
export default info;
35 changes: 35 additions & 0 deletions _packages/initia-registry/src/devnet/blackwing/ibc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { IBCInfo } from "@initia/initia-registry-types";
const info: IBCInfo[] = [
{
$schema: "../../ibc_data.schema.json",
chain_1: {
chain_name: "blackwing",
client_id: "07-tendermint-0",
connection_id: "connection-0",
},
chain_2: {
chain_name: "initia",
client_id: "07-tendermint-73",
connection_id: "connection-67",
},
channels: [
{
chain_1: {
channel_id: "channel-0",
port_id: "transfer",
},
chain_2: {
channel_id: "channel-65",
port_id: "transfer",
},
ordering: "unordered",
version: "ics20-1",
tags: {
status: "live",
preferred: true,
},
},
],
},
];
export default info;
35 changes: 35 additions & 0 deletions _packages/initia-registry/src/devnet/blackwing/ibc_chain1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { IBCInfo } from "@initia/initia-registry-types";
const info: IBCInfo[] = [
{
$schema: "../../ibc_data.schema.json",
chain_1: {
chain_name: "blackwing",
client_id: "07-tendermint-0",
connection_id: "connection-0",
},
chain_2: {
chain_name: "initia",
client_id: "07-tendermint-73",
connection_id: "connection-67",
},
channels: [
{
chain_1: {
channel_id: "channel-0",
port_id: "transfer",
},
chain_2: {
channel_id: "channel-65",
port_id: "transfer",
},
ordering: "unordered",
version: "ics20-1",
tags: {
status: "live",
preferred: true,
},
},
],
},
];
export default info;
9 changes: 9 additions & 0 deletions _packages/initia-registry/src/devnet/blackwing/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import _assets from "./assets";
import _chain from "./chain";
import _ibc from "./ibc";
import _ibc_chain1 from "./ibc_chain1";

export const assets = _assets;
export const chain = _chain;
export const ibc = _ibc;
export const ibc_chain1 = _ibc_chain1;
8 changes: 7 additions & 1 deletion _packages/initia-registry/src/devnet/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { Chain } from "@initia/initia-registry-types";
import * as _miniwasm from "./miniwasm";
import * as _minimove from "./minimove";
import * as _initia from "./initia";
import * as _blackwing from "./blackwing";

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

export default chains;
3 changes: 2 additions & 1 deletion _packages/initia-registry/src/devnet/ibc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { IBCInfo } from "@initia/initia-registry-types";

import * as _initia from "./initia";
import * as _blackwing from "./blackwing";

const ibc: IBCInfo[] = [..._initia.ibc_chain1];
const ibc: IBCInfo[] = [..._initia.ibc_chain1, ..._blackwing.ibc_chain1];

export default ibc;
1 change: 1 addition & 0 deletions _packages/initia-registry/src/devnet/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * as miniwasm from "./miniwasm";
export * as minimove from "./minimove";
export * as initia from "./initia";
export * as blackwing from "./blackwing";
6 changes: 6 additions & 0 deletions _packages/initia-registry/src/devnet/initia/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ const info: Chain = {
channel_id: "channel-3",
version: "ics721-1",
},
{
chain_id: "tomcat-1",
port_id: "transfer",
channel_id: "channel-65",
version: "ics20-1",
},
],
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/initia/assetlist.json",
Expand Down
31 changes: 31 additions & 0 deletions _packages/initia-registry/src/devnet/initia/ibc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,36 @@ const info: IBCInfo[] = [
},
],
},
{
$schema: "../../ibc_data.schema.json",
chain_1: {
chain_name: "blackwing",
client_id: "07-tendermint-0",
connection_id: "connection-0",
},
chain_2: {
chain_name: "initia",
client_id: "07-tendermint-73",
connection_id: "connection-67",
},
channels: [
{
chain_1: {
channel_id: "channel-0",
port_id: "transfer",
},
chain_2: {
channel_id: "channel-65",
port_id: "transfer",
},
ordering: "unordered",
version: "ics20-1",
tags: {
status: "live",
preferred: true,
},
},
],
},
];
export default info;
4 changes: 4 additions & 0 deletions _packages/initia-registry/src/devnet/minimove/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ const info: Chain = {
],
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/assetlist.json",
minitia: {
type: "minimove",
version: "0.2.3",
},
},
};
export default info;
4 changes: 4 additions & 0 deletions _packages/initia-registry/src/devnet/miniwasm/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const info: Chain = {
],
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/assetlist.json",
minitia: {
type: "miniwasm",
version: "0.2.2",
},
},
};
export default info;
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.15",
"version": "0.0.16",
"description": "The package provides TypeScript type definitions and Zod integration for initia-registry.",
"types": "./dist/types/index.d.ts",
"exports": {
Expand Down
Loading

0 comments on commit 25d502c

Please sign in to comment.