-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use first ibc chain as default selection * use correct denom envar * use selectedIbcChain not envar * only need memo in msgIBCTransfer * cleanup before change * put defaults in ts files. can override with envar
- Loading branch information
1 parent
8d45ca0
commit 67fb40d
Showing
14 changed files
with
261 additions
and
203 deletions.
There are no files selected for viewing
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
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
Empty file.
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,85 @@ | ||
import type { IbcChainInfo, IbcChains } from "../chains"; | ||
|
||
const CelestiaChainInfo: IbcChainInfo = { | ||
// Chain-id of the celestia chain. | ||
chainId: "mocha-4", | ||
// The name of the chain to be displayed to the user. | ||
chainName: "Celestia Mocha-4", | ||
// RPC endpoint of the chain | ||
rpc: "wss://rpc-mocha.pops.one", | ||
// REST endpoint of the chain. | ||
rest: "https://api-mocha.pops.one", | ||
// Staking coin information | ||
stakeCurrency: { | ||
// Coin denomination to be displayed to the user. | ||
coinDenom: "TIA", | ||
// Actual denom (i.e. uatom, uscrt) used by the blockchain. | ||
coinMinimalDenom: "utia", | ||
// # of decimal points to convert minimal denomination to user-facing denomination. | ||
coinDecimals: 6, | ||
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided. | ||
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed. | ||
// coinGeckoId: "" | ||
}, | ||
// (Optional) If you have a wallet webpage used to stake the coin then provide the url to the website in `walletUrlForStaking`. | ||
// The 'stake' button in Keplr extension will link to the webpage. | ||
// walletUrlForStaking: "", | ||
// The BIP44 path. | ||
bip44: { | ||
// You can only set the coin type of BIP44. | ||
// 'Purpose' is fixed to 44. | ||
coinType: 118, | ||
}, | ||
// The address prefix of the chain. | ||
bech32Config: { | ||
bech32PrefixAccAddr: "celestia", | ||
bech32PrefixAccPub: "celestiapub", | ||
bech32PrefixConsAddr: "celestiavalcons", | ||
bech32PrefixConsPub: "celestiavalconspub", | ||
bech32PrefixValAddr: "celestiavaloper", | ||
bech32PrefixValPub: "celestiavaloperpub", | ||
}, | ||
// List of all coin/tokens used in this chain. | ||
currencies: [ | ||
{ | ||
// Coin denomination to be displayed to the user. | ||
coinDenom: "TIA", | ||
// Actual denom (i.e. uatom, uscrt) used by the blockchain. | ||
coinMinimalDenom: "utia", | ||
// # of decimal points to convert minimal denomination to user-facing denomination. | ||
coinDecimals: 6, | ||
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided. | ||
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed. | ||
// coinGeckoId: "" | ||
}, | ||
], | ||
// List of coin/tokens used as a fee token in this chain. | ||
feeCurrencies: [ | ||
{ | ||
// Coin denomination to be displayed to the user. | ||
coinDenom: "TIA", | ||
// Actual denom (i.e. nria, uscrt) used by the blockchain. | ||
coinMinimalDenom: "utia", | ||
// # of decimal points to convert minimal denomination to user-facing denomination. | ||
coinDecimals: 6, | ||
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided. | ||
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed. | ||
// coinGeckoId: "" | ||
// (Optional) This is used to set the fee of the transaction. | ||
// If this field is not provided and suggesting chain is not natively integrated, Keplr extension will set the Keplr default gas price (low: 0.01, average: 0.025, high: 0.04). | ||
// Currently, Keplr doesn't support dynamic calculation of the gas prices based on on-chain data. | ||
// Make sure that the gas prices are higher than the minimum gas prices accepted by chain validators and RPC/REST endpoint. | ||
gasPriceStep: { | ||
low: 0.01, | ||
average: 0.02, | ||
high: 0.1, | ||
}, | ||
}, | ||
], | ||
ibcChannel: "channel-110", | ||
iconSourceUrl: "https://placehold.co/60x60/EEE/31343C", | ||
}; | ||
|
||
export const ibcChains: IbcChains = { | ||
"Celestia Mocha-4": CelestiaChainInfo, | ||
}; |
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,86 @@ | ||
import type { IbcChainInfo, IbcChains } from "../chains"; | ||
|
||
const CelestiaChainInfo: IbcChainInfo = { | ||
// Chain-id of the celestia chain. | ||
chainId: "celestia-local-0", | ||
// The name of the chain to be displayed to the user. | ||
chainName: "celestia-local-0", | ||
// RPC endpoint of the chain | ||
rpc: "http://rpc.app.celestia.localdev.me", | ||
// REST endpoint of the chain. | ||
rest: "http://rest.app.celestia.localdev.me", | ||
// Staking coin information | ||
stakeCurrency: { | ||
// Coin denomination to be displayed to the user. | ||
coinDenom: "TIA", | ||
// Actual denom (i.e. uatom, uscrt) used by the blockchain. | ||
coinMinimalDenom: "utia", | ||
// # of decimal points to convert minimal denomination to user-facing denomination. | ||
coinDecimals: 6, | ||
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided. | ||
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed. | ||
// coinGeckoId: "" | ||
}, | ||
// (Optional) If you have a wallet webpage used to stake the coin then provide the url to the website in `walletUrlForStaking`. | ||
// The 'stake' button in Keplr extension will link to the webpage. | ||
// walletUrlForStaking: "", | ||
// The BIP44 path. | ||
bip44: { | ||
// You can only set the coin type of BIP44. | ||
// 'Purpose' is fixed to 44. | ||
coinType: 118, | ||
}, | ||
// The address prefix of the chain. | ||
bech32Config: { | ||
bech32PrefixAccAddr: "celestia", | ||
bech32PrefixAccPub: "celestiapub", | ||
bech32PrefixConsAddr: "celestiavalcons", | ||
bech32PrefixConsPub: "celestiavalconspub", | ||
bech32PrefixValAddr: "celestiavaloper", | ||
bech32PrefixValPub: "celestiavaloperpub", | ||
}, | ||
// List of all coin/tokens used in this chain. | ||
currencies: [ | ||
{ | ||
// Coin denomination to be displayed to the user. | ||
coinDenom: "TIA", | ||
// Actual denom (i.e. uatom, uscrt) used by the blockchain. | ||
coinMinimalDenom: "utia", | ||
// # of decimal points to convert minimal denomination to user-facing denomination. | ||
coinDecimals: 6, | ||
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided. | ||
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed. | ||
// coinGeckoId: "" | ||
}, | ||
], | ||
// List of coin/tokens used as a fee token in this chain. | ||
feeCurrencies: [ | ||
{ | ||
// Coin denomination to be displayed to the user. | ||
coinDenom: "TIA", | ||
// Actual denom (i.e. nria, uscrt) used by the blockchain. | ||
coinMinimalDenom: "utia", | ||
// # of decimal points to convert minimal denomination to user-facing denomination. | ||
coinDecimals: 6, | ||
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided. | ||
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed. | ||
// coinGeckoId: "" | ||
// (Optional) This is used to set the fee of the transaction. | ||
// If this field is not provided and suggesting chain is not natively integrated, Keplr extension will set the Keplr default gas price (low: 0.01, average: 0.025, high: 0.04). | ||
// Currently, Keplr doesn't support dynamic calculation of the gas prices based on on-chain data. | ||
// Make sure that the gas prices are higher than the minimum gas prices accepted by chain validators and RPC/REST endpoint. | ||
gasPriceStep: { | ||
low: 0.01, | ||
average: 0.02, | ||
high: 0.1, | ||
}, | ||
}, | ||
], | ||
ibcChannel: "channel-0", | ||
// TODO - chain icons | ||
iconSourceUrl: "https://placehold.co/60x60/EEE/31343C", | ||
}; | ||
|
||
export const ibcChains: IbcChains = { | ||
"Celestia Local": CelestiaChainInfo, | ||
}; |
Oops, something went wrong.