-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #465 from Sifchain/staging
[hotfix] restore EMONEY ibc integration
- Loading branch information
Showing
11 changed files
with
109 additions
and
30 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Chain } from "../../entities"; | ||
import { BaseChain } from "./_BaseChain"; | ||
import { urlJoin } from "url-join-ts"; | ||
|
||
export class EmoneyChain extends BaseChain implements Chain { | ||
getBlockExplorerUrlForTxHash(hash: string) { | ||
return urlJoin(this.chainConfig.blockExplorerUrl, "txs", hash); | ||
} | ||
getBlockExplorerUrlForAddress(hash: string) { | ||
return urlJoin(this.chainConfig.blockExplorerUrl, "account", hash); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import { Network, IBCChainConfig } from "../../../entities"; | ||
|
||
export const EMONEY_MAINNET: IBCChainConfig = { | ||
chainType: "ibc", | ||
network: Network.EMONEY, | ||
displayName: "e-Money", | ||
blockExplorerUrl: "https://emoney.bigdipper.live", | ||
nativeAssetSymbol: "ungm", | ||
chainId: "emoney-3", | ||
rpcUrl: "https://proxies.sifchain.finance/api/emoney-3/rpc", | ||
restUrl: "https://proxies.sifchain.finance/api/emoney-3/rest", | ||
keplrChainInfo: { | ||
rpc: "https://proxies.sifchain.finance/api/emoney-3/rpc", | ||
rest: "https://proxies.sifchain.finance/api/emoney-3/rest", | ||
chainId: "emoney-3", | ||
chainName: "e-Money", | ||
stakeCurrency: { | ||
coinDenom: "NGM", | ||
coinMinimalDenom: "ungm", | ||
coinDecimals: 6, | ||
coinGeckoId: "e-money", | ||
}, | ||
walletUrl: "https://wallet.keplr.app/#/emoney/stake", | ||
walletUrlForStaking: "https://wallet.keplr.app/#/emoney/stake", | ||
bip44: { | ||
coinType: 118, | ||
}, | ||
bech32Config: { | ||
bech32PrefixAccAddr: "emoney", | ||
bech32PrefixAccPub: "emoneypub", | ||
bech32PrefixValAddr: "emoneyvaloper", | ||
bech32PrefixValPub: "emoneyvaloperpub", | ||
bech32PrefixConsAddr: "emoneyvalcons", | ||
bech32PrefixConsPub: "emoneyvalconspub", | ||
}, | ||
currencies: [ | ||
{ | ||
coinDenom: "NGM", | ||
coinMinimalDenom: "ungm", | ||
coinDecimals: 6, | ||
coinGeckoId: "e-money", | ||
}, | ||
], | ||
feeCurrencies: [ | ||
{ | ||
coinDenom: "NGM", | ||
coinMinimalDenom: "ungm", | ||
coinDecimals: 6, | ||
coinGeckoId: "e-money", | ||
}, | ||
], | ||
coinType: 118, | ||
features: ["stargate", "ibc-transfer"], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NetworkEnv } from "../../getEnv"; | ||
import { NetEnvChainConfigLookup } from "../NetEnvChainConfigLookup"; | ||
import { EMONEY_MAINNET } from "./emoney-mainnet"; | ||
|
||
export default <NetEnvChainConfigLookup>{ | ||
[NetworkEnv.LOCALNET]: EMONEY_MAINNET, | ||
[NetworkEnv.TESTNET_042_IBC]: EMONEY_MAINNET, | ||
[NetworkEnv.DEVNET_042]: EMONEY_MAINNET, | ||
[NetworkEnv.DEVNET_042]: EMONEY_MAINNET, | ||
[NetworkEnv.DEVNET]: EMONEY_MAINNET, | ||
[NetworkEnv.TESTNET]: EMONEY_MAINNET, | ||
[NetworkEnv.MAINNET]: EMONEY_MAINNET, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ export enum Network { | |
REGEN = "regen", | ||
SENTINEL = "sentinel", | ||
TERRA = "terra", | ||
EMONEY = "emoney", | ||
} |
32d189f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: