Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add contro #44

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions _packages/initia-registry/package-lock.json

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

4 changes: 2 additions & 2 deletions _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.4",
"version": "0.1.5",
"description": "Initia chain registry",
"main": "main/index.js",
"module": "esm/index.js",
Expand Down Expand Up @@ -40,6 +40,6 @@
"rimraf": "^5.0.5"
},
"dependencies": {
"@initia/initia-registry-types": "^0.0.15"
"@initia/initia-registry-types": "^0.0.17"
}
}
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,12 +3,14 @@ import { AssetList } from "@initia/initia-registry-types";
import * as _miniwasm from "./miniwasm";
import * as _minimove from "./minimove";
import * as _initia from "./initia";
import * as _controverse from "./controverse";
import * as _blackwing from "./blackwing";

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

Expand Down
2 changes: 1 addition & 1 deletion _packages/initia-registry/src/devnet/blackwing/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const info: Chain = {
],
minitia: {
type: "minimove",
version: "0.2.3",
version: "v0.2.3",
},
},
};
Expand Down
2 changes: 2 additions & 0 deletions _packages/initia-registry/src/devnet/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ import { Chain } from "@initia/initia-registry-types";
import * as _miniwasm from "./miniwasm";
import * as _minimove from "./minimove";
import * as _initia from "./initia";
import * as _controverse from "./controverse";
import * as _blackwing from "./blackwing";

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

Expand Down
66 changes: 66 additions & 0 deletions _packages/initia-registry/src/devnet/controverse/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: "controverse",
assets: [
{
description: "The native token of Initia",
denom_units: [
{
denom:
"l2/2716295e82bab3b0308dc1e35837fe471657ea07ee71aebb6129739fb0f1278a",
exponent: 0,
},
{
denom: "INIT",
exponent: 6,
},
],
base: "l2/2716295e82bab3b0308dc1e35837fe471657ea07ee71aebb6129739fb0f1278a",
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/controverse/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",
chain_name: "controverse",
chain_id: "contro-test-1",
website: "https://contro.tech",
pretty_name: "The Controverse",
status: "live",
network_type: "devnet",
bech32_prefix: "init",
daemon_name: "minitiad",
node_home: "$HOME/.minitia",
key_algos: ["secp256k1"],
slip44: 118,
fees: {
fee_tokens: [
{
denom:
"l2/2716295e82bab3b0308dc1e35837fe471657ea07ee71aebb6129739fb0f1278a",
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: "Controverse Closed Devnet",
apis: {
rpc: [
{
address:
"https://maze-rpc-493360ba-cd86-4627-aca3-8b61635eb2bf.ue1-prod.newmetric.xyz",
},
],
rest: [
{
address:
"https://maze-rest-493360ba-cd86-4627-aca3-8b61635eb2bf.ue1-prod.newmetric.xyz",
},
],
api: [
{
address: "https://api.contro.initia.xyz",
},
],
},
explorers: [
{
kind: "explorer",
url: "https://explorer.mahalo-2.initia.xyz/?layer=controverse",
tx_page:
"https://explorer.mahalo-2.initia.xyz/tx/${txHash}?layer=controverse",
account_page:
"https://explorer.mahalo-2.initia.xyz/address/${accountAddress}?layer=controverse",
},
{
kind: "initia scan",
url: "https://scan.initia.xyz/contro-test-1",
tx_page: "https://scan.initia.xyz/contro-test-1/txs/${txHash}",
account_page:
"https://scan.initia.xyz/contro-test-1/accounts/${accountAddress}",
},
],
images: [
{
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.svg",
},
],
logo_URIs: {
png: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.png",
svg: "https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/images/INIT.svg",
},
metadata: {
op_bridge_id: "116",
op_denoms: ["uinit"],
ibc_channels: [
{
chain_id: "mahalo-2",
port_id: "transfer",
channel_id: "channel-0",
version: "ics20-1",
},
],
assetlist:
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/controverse/assetlist.json",
minitia: {
type: "miniwasm",
version: "v2.2.0",
},
},
};
export default info;
5 changes: 5 additions & 0 deletions _packages/initia-registry/src/devnet/controverse/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 _packages/initia-registry/src/devnet/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * as miniwasm from "./miniwasm";
export * as minimove from "./minimove";
export * as initia from "./initia";
export * as controverse from "./controverse";
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: "contro-test-1",
port_id: "transfer",
channel_id: "channel-64",
version: "ics20-1",
},
{
chain_id: "tomcat-1",
port_id: "transfer",
Expand Down
2 changes: 1 addition & 1 deletion _packages/initia-registry/src/devnet/minimove/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const info: Chain = {
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/minimove/assetlist.json",
minitia: {
type: "minimove",
version: "0.2.3",
version: "v0.2.3",
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion _packages/initia-registry/src/devnet/miniwasm/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const info: Chain = {
"https://raw.githubusercontent.com/initia-labs/initia-registry/main/devnets/miniwasm/assetlist.json",
minitia: {
type: "miniwasm",
version: "0.2.2",
version: "v0.2.2",
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion devnets/controverse/assetlist.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../assetlist.schema.json",
"chain_name": "miniwasm",
"chain_name": "controverse",
"assets": [
{
"description": "The native token of Initia",
Expand Down
Loading