Skip to content

Commit

Permalink
Merge pull request #1114 from osmosis-labs/JP69/add-imv
Browse files Browse the repository at this point in the history
Add IMV
  • Loading branch information
JeremyParish69 authored Dec 8, 2022
2 parents 8d4694a + 91fadf9 commit 7675f86
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 28 deletions.
84 changes: 56 additions & 28 deletions packages/web/config/chain-infos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1884,34 +1884,6 @@ const chainInfos = (
],
explorerUrlToTx: "https://tgrade.aneka.io/txs/{txHash}",
},
{
rpc: "https://rpc-acre.synergynodes.com/",
rest: "https://lcd-acre.synergynodes.com/",
chainId: "acre_9052-1",
chainName: "Acrechain",
bip44: {
coinType: 60,
},
bech32Config: Bech32Address.defaultBech32Config("acre"),
currencies: [
{
coinDenom: "ACRE",
coinMinimalDenom: "aacre",
coinDecimals: 18,
coinGeckoId: "arable-protocol",
coinImageUrl: "/tokens/acre.svg",
isStakeCurrency: true,
isFeeCurrency: true,
},
],
gasPriceStep: {
low: 10000000000,
average: 25000000000,
high: 40000000000,
},
features: ["ibc-transfer", "ibc-go", "eth-address-gen", "eth-key-sign"],
explorerUrlToTx: "https://cosmosrun.info/acre-mainnet/tx/{txHash}",
},
{
rpc: "https://rpc-echelon.whispernode.com/",
rest: "https://lcd-echelon.whispernode.com/",
Expand Down Expand Up @@ -2354,6 +2326,62 @@ const chainInfos = (
features: ["ibc-transfer", "ibc-go"],
explorerUrlToTx: "https://explorer.thesilverfox.pro/beezee/tx/{txHash}",
},
{
rpc: "https://rpc-acre.synergynodes.com/",
rest: "https://lcd-acre.synergynodes.com/",
chainId: "acre_9052-1",
chainName: "Acrechain",
bip44: {
coinType: 60,
},
bech32Config: Bech32Address.defaultBech32Config("acre"),
currencies: [
{
coinDenom: "ACRE",
coinMinimalDenom: "aacre",
coinDecimals: 18,
coinGeckoId: "arable-protocol",
coinImageUrl: "/tokens/acre.svg",
isStakeCurrency: true,
isFeeCurrency: true,
},
],
gasPriceStep: {
low: 10000000000,
average: 25000000000,
high: 40000000000,
},
features: ["ibc-transfer", "ibc-go", "eth-address-gen", "eth-key-sign"],
explorerUrlToTx: "https://cosmosrun.info/acre-mainnet/tx/{txHash}",
},
{
rpc: "https://rpc.imversed.network:443",
rest: "https://rest.imversed.network:443",
chainId: "imversed_5555555-1",
chainName: "Imversed",
bip44: {
coinType: 60,
},
bech32Config: Bech32Address.defaultBech32Config("imv"),
currencies: [
{
coinDenom: "IMV",
coinMinimalDenom: "aimv",
coinDecimals: 18,
coinGeckoId: "pool:aimv",
coinImageUrl: "/tokens/imversed.svg",
isStakeCurrency: true,
isFeeCurrency: true,
},
],
gasPriceStep: {
low: 20000000000,
average: 25000000000,
high: 40000000000,
},
features: ["ibc-transfer", "ibc-go", "eth-address-gen", "eth-key-sign"],
explorerUrlToTx: "https://txe.imversed.network/tx/{txHash}",
},
] as SimplifiedChainInfo[]
).map(createKeplrChainInfos);

Expand Down
6 changes: 6 additions & 0 deletions packages/web/config/ibc-assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,12 @@ export const IBCAssetInfos: (IBCAsset & {
destChannelId: "channel-1",
coinMinimalDenom: "ucmst",
},
{
counterpartyChainId: "imversed_5555555-1",
sourceChannelId: "channel-517",
destChannelId: "channel-1",
coinMinimalDenom: "aimv",
},
].filter((ibcAsset) => {
// validate IBC asset config
if (
Expand Down
13 changes: 13 additions & 0 deletions packages/web/config/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -998,4 +998,17 @@ export const PoolPriceRoutes: IntermediateRoute[] = [
spotPriceDestDenom: "uosmo",
destCoinId: "pool:uosmo",
},
{
alternativeCoinId: "pool:aimv",
poolId: "864",
spotPriceSourceDenom: DenomHelper.ibcDenom(
[{ portId: "transfer", channelId: "channel-517" }],
"aimv"
),
spotPriceDestDenom: DenomHelper.ibcDenom(
[{ portId: "transfer", channelId: "channel-208" }],
"uusdc"
),
destCoinId: "usd-coin",
},
];
5 changes: 5 additions & 0 deletions packages/web/public/tokens/imversed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

3 comments on commit 7675f86

@vercel
Copy link

@vercel vercel bot commented on 7675f86 Dec 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7675f86 Dec 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7675f86 Dec 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.