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

Finish Nolus integration #1207

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
57 changes: 57 additions & 0 deletions apps/extension/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,63 @@ export const EmbedChainInfos: ChainInfo[] = [
],
features: ["eth-address-gen", "eth-key-sign"],
},
{
rpc: 'https://rpc-nolus.keplr.app',
rest: 'https://lcd-nolus.keplr.app',
chainId: 'pirin-1',
chainName: 'Nolus',
chainSymbolImageUrl: 'https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png',
stakeCurrency: {
coinDenom: 'NLS',
coinMinimalDenom: 'unls',
coinDecimals: 6,
coinGeckoId: 'nolus',
coinImageUrl: 'https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png'
},
walletUrl:
process.env.NODE_ENV === 'production'
? 'https://wallet.keplr.app/chains/nolus'
: 'http://localhost:8080/chains/nolus',
walletUrlForStaking:
process.env.NODE_ENV === 'production'
? 'https://wallet.keplr.app/chains/nolus'
: 'http://localhost:8080/chains/nolus',
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: 'nolus',
bech32PrefixAccPub: 'noluspub',
bech32PrefixValAddr: 'nolusvaloper',
bech32PrefixValPub: 'nolusvaloperpub',
bech32PrefixConsAddr: 'nolusvalcons',
bech32PrefixConsPub: 'nolusvalconspub'
},
currencies: [
{
coinDenom: 'NLS',
coinMinimalDenom: 'unls',
coinDecimals: 6,
coinGeckoId: 'nolus',
coinImageUrl: 'https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png'
}
],
feeCurrencies: [
{
coinDenom: 'NLS',
coinMinimalDenom: 'unls',
coinDecimals: 6,
coinGeckoId: 'nolus',
coinImageUrl: 'https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png',
gasPriceStep: {
low: 0.01,
average: 0.025,
high: 0.05
}
}
],
features: ['cosmwasm'],
},
{
rpc: "https://evm-1.keplr.app",
rest: "https://evm-1.keplr.app",
Expand Down
61 changes: 61 additions & 0 deletions apps/mobile/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2141,6 +2141,63 @@ export const EmbedChainInfos: ChainInfo[] = [
],
features: [],
},
{
rpc: "https://pirin-cl.nolus.io:26657",
rest: "https://pirin-cl.nolus.io:1317",
chainId: "pirin-1",
chainName: "Nolus",
chainSymbolImageUrl: "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png",
stakeCurrency: {
coinDenom: "NLS",
coinMinimalDenom: "unls",
coinDecimals: 6,
coinGeckoId: "nolus",
coinImageUrl: "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png"
},
walletUrl:
process.env.NODE_ENV === "production"
? "https://wallet.keplr.app/chains/nolus"
: "http://localhost:8080/chains/nolus",
walletUrlForStaking:
process.env.NODE_ENV === "production"
? "https://wallet.keplr.app/chains/nolus"
: "http://localhost:8080/chains/nolus",
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "nolus",
bech32PrefixAccPub: "noluspub",
bech32PrefixValAddr: "nolusvaloper",
bech32PrefixValPub: "nolusvaloperpub",
bech32PrefixConsAddr: "nolusvalcons",
bech32PrefixConsPub: "nolusvalconspub"
},
currencies: [
{
coinDenom: "NLS",
coinMinimalDenom: "unls",
coinDecimals: 6,
coinGeckoId: "nolus",
coinImageUrl: "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png"
}
],
feeCurrencies: [
{
coinDenom: "NLS",
coinMinimalDenom: "unls",
coinDecimals: 6,
coinGeckoId: "nolus",
coinImageUrl: "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pirin/nolus.png",
gasPriceStep: {
low: 0.01,
average: 0.025,
high: 0.05
}
}
],
features: ["cosmwasm"],
},
];

// TODO: 원격으로 변경할 수 있도록 나중에 네트워크에서 이 정보를 가져오는 방식으로 변경될 수 있음
Expand Down Expand Up @@ -2284,6 +2341,10 @@ export const ChainIdentifierToTxExplorerMap: Record<
name: 'Mintscan',
txUrl: 'https://www.mintscan.io/xpla/tx/{txHash}',
},
pirin: {
name: "Nolus Explorer",
txUrl: "https://explorer.nolus.io/pirin/tx/{txHash}",
},
};

// The origins that are able to pass any permission that external webpages can have.
Expand Down