diff --git a/src/chains/README.md b/src/chains/README.md index fd241dc6..d804dc50 100644 --- a/src/chains/README.md +++ b/src/chains/README.md @@ -4,7 +4,7 @@ - Submit configs for mainnet, go to https://github.com/ping-pub/explorer/tree/master/src/chains/mainnet -- Submit configs for testnet, go to https://github.com/ping-pub/explorer/tree/testnet/src/chains/testnet +- Submit configs for testnet, go to https://github.com/ping-pub/explorer/tree/master/src/chains/testnet # Sample of Config @@ -12,7 +12,7 @@ { "chain_name": "cosmos", "api": ["https://cosmos.api.ping.pub"], - "rpc": ["https://cosmos.rpc.ping.pub:443","http://your-host:26657"] + "rpc": ["https://cosmos.rpc.ping.pub:443","http://your-host:26657"], "sdk_version": "0.42.6", "coin_type": "118", "min_tx_fee": "800", @@ -29,7 +29,7 @@ ``` - **chain_name** the name to identify the chain on ping.pub - **api** the rest api endpoint.(make sure that CORS is enabled: `Allow-Control-Allow-Origin: *`) -- **rpc** the rpc endpoint, make sure that the port is added. +- **rpc** the rpc endpoint, make sure that the port is added. rpc endpoint is only used for state sync. it's optional. - **assets** Native Assets on blockchain. # Test diff --git a/src/chains/mainnet/chihuahua.json b/src/chains/mainnet/chihuahua.json index ca67c1d1..215ce9a5 100644 --- a/src/chains/mainnet/chihuahua.json +++ b/src/chains/mainnet/chihuahua.json @@ -3,7 +3,7 @@ "coingecko": "", "api": ["https://api.chihuahua.wtf", "https://chihuahua-api.mercury-nodes.net"], "rpc": ["https://rpc.chihuahua.wtf:443", "https://rpc.chihuahua.wtf:443"], - "snapshot_provider": "", + "snapshot_provider": "df2dffa0560e41c682b6b2e150524859e41ec1d8@chihuahua.rpc.ping.pub:26656", "sdk_version": "0.44.3", "coin_type": "118", "min_tx_fee": "5000", diff --git a/src/chains/mainnet/cosmos.json b/src/chains/mainnet/cosmos.json index 25b5e795..ac3b7861 100644 --- a/src/chains/mainnet/cosmos.json +++ b/src/chains/mainnet/cosmos.json @@ -2,8 +2,8 @@ "chain_name": "cosmos", "coingecko": "cosmos", "api": ["https://cosmos.api.ping.pub", "https://lcd-cosmoshub.blockapsis.com"], - "rpc": ["http://cosmos.rpc.ping.pub:26657", "https://cosmoshub.validator.network:443"], - "snapshot_provider": "d2008adf6d12f1a1951cce2b5ef531fbecb81895@cosmos.rpc.ping.pub:26656,27483c10217c542908a899024ed26ddfefeee9b9@cosmos.rpc.skystarcapital.xyz:26656", + "rpc": ["http://cosmos.rpc.skystarcapital.xyz:26657", "https://cosmoshub.validator.network:443"], + "snapshot_provider": "d2008adf6d12f1a1951cce2b5ef531fbecb81895@cosmos.statesync.ping.pub:26656,27483c10217c542908a899024ed26ddfefeee9b9@cosmos.rpc.skystarcapital.xyz:26656", "sdk_version": "0.44.3", "coin_type": "118", "min_tx_fee": "800", diff --git a/src/chains/mainnet/persistence.json b/src/chains/mainnet/persistence.json index 4ea1e3c4..2aa2b691 100644 --- a/src/chains/mainnet/persistence.json +++ b/src/chains/mainnet/persistence.json @@ -4,7 +4,7 @@ "api": "https://rest.core.persistence.one", "rpc": ["https://rpc.core.persistence.one:443", "https://rpc.core.persistence.one:443"], "snapshot_provider": "", - "sdk_version": "0.42.4", + "sdk_version": "0.44.2", "coin_type": "750", "min_tx_fee": "3000", "addr_prefix": "persistence", @@ -16,4 +16,4 @@ "coingecko_id": "persistence", "logo": "/logos/persistence.png" }] -} \ No newline at end of file +} diff --git a/src/chains/mainnet/rizon.json b/src/chains/mainnet/rizon.json index 06c48daa..50fcef38 100644 --- a/src/chains/mainnet/rizon.json +++ b/src/chains/mainnet/rizon.json @@ -1,8 +1,8 @@ { "chain_name": "rizon", "api": ["https://rizon.api.ping.pub"], - "rpc": ["http://seed-1.mainnet.rizon.world:26657", "http://seed-1.mainnet.rizon.world:26657"], - "snapshot_provider": "", + "rpc": ["http://rizon.rpc.ping.pub:26657", "http://seed-1.mainnet.rizon.world:26657"], + "snapshot_provider": "66083d10fc1b79c584362dc266f87836455a9169@rizon.rpc.ping.pub:26656", "sdk_version": "v0.42.9", "coin_type": "118", "min_tx_fee": "8000", diff --git a/src/chains/mainnet/sentinel.json b/src/chains/mainnet/sentinel.json index 470c2b41..6a85b8f8 100644 --- a/src/chains/mainnet/sentinel.json +++ b/src/chains/mainnet/sentinel.json @@ -4,7 +4,7 @@ "rpc": ["https://rpc-sentinel.keplr.app:443", "https://rpc-sentinel.keplr.app:443"], "snapshot_provider": "", "sdk_version": "0.42.6", - "coin_type": "750", + "coin_type": "118", "min_tx_fee": "8000", "addr_prefix": "sent", "logo": "/logos/sentinel.png", @@ -15,4 +15,4 @@ "coingecko_id": "sentinel", "logo": "/logos/sentinel.png" }] -} \ No newline at end of file +} diff --git a/src/chains/testnet/persistence.json b/src/chains/testnet/persistence.json new file mode 100644 index 00000000..d30207a5 --- /dev/null +++ b/src/chains/testnet/persistence.json @@ -0,0 +1,7 @@ +{ + "chain_name": "test-core-1", + "api":"https://rest.testnet.persistence.one", + "sdk_version": "0.44.2", + "addr_prefix": "persistence", + "logo": "https://raw.githubusercontent.com/auditOne/explorer/master/public/logos/persistence.png" +} diff --git a/src/store/chains/index.js b/src/store/chains/index.js index 0ab1e733..40c40f38 100644 --- a/src/store/chains/index.js +++ b/src/store/chains/index.js @@ -24,12 +24,14 @@ chains = update localStorage.setItem('chains', JSON.stringify(update)) const selected = chains.cosmos +const avatarcache = localStorage.getItem('avatars') + export default { namespaced: true, state: { config: chains, selected, - avatars: {}, + avatars: avatarcache ? JSON.parse(avatarcache) : {}, height: 0, ibcChannels: {}, quotes: {}, @@ -48,6 +50,7 @@ export default { }, cacheAvatar(state, args) { state.chains.avatars[args.identity] = args.url + localStorage.setItem('avatars', JSON.stringify(state.chains.avatars)) }, setHeight(state, height) { state.chains.height = height diff --git a/src/views/StateSync.vue b/src/views/StateSync.vue index f72d73f1..b6584c7d 100644 --- a/src/views/StateSync.vue +++ b/src/views/StateSync.vue @@ -2,15 +2,25 @@
$DAEMON_HOME/config/config.toml
, then start daemon.
$DAEMON_HOME/config/config.toml
.