Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Stargate (#478)
Browse files Browse the repository at this point in the history
* replace json view to react-json-view

* simplify storing validators

* put vp distribution calculation in async function

* enable modules

* remove tx indexing from block

* get self delegation every 50 blocks

* add try catch for bech32 conversion

* update display error code

* display staking ratio

* update validator search condition

* fix home validator list and genesis params

* fix account delegation validator name

* change the BondStatus from 2 to 3

* show minting

* update validator status value

* fix: update more status code changes (#357)

* fix total supply amount

* update tx elements structures

* update version

* refactor getting validator for v0.40

* get validator self delegation

* display validator list

* set uptime label to slashing window

* replace legecy api

* add grpc and cosmos protobuf

* replace with imporable-eng grpc-web

* update packages

* add grpc unary function

* update chain status request with grpc

* update block update

* update meteor to 2.0

* update validator address index

* block not show proposer

* save tx data correctly

* get the tendermint hex address

* fix propser name

* fix precommits storage

* update validator field names

* fix get uptime

* add new fields to settings.json

* only save validator data at start or after number of blcoks

* remove some comments of the old LCD

* update validator delegations

* update delegations

* updat proposal list

* update version

* fix save validator height

* check if validator set value exists before assigning value

* update cosmos protobuf

* revert updating validators with RPC and validator hex address

* fix chain status active validators

* revert back using legacy api /tx endpoint for transactions

* using legacy /tx endpoint

* change LCD to API

* update default_settings.json

* index tx with grpc gateway

* fix transaction row

* update transations and message types

* get proposal with grpc gateway

* fix ui of proposals

* update block tx tabs

* update delegator reward message type

* update balance apis

* update validator delegation names

* update tx event search

* update indexes

* update power history values

* fix vp distribution

* fix initial power change value

* update version

* temperary disable inflation and annual provision query

* reduce community pool to human readable number

* remove gov proposer query

* update version

* console log object

* fix transactions not being saved

* save proposal correctly

* save missing flag to tx if index is missing

* update version

* remove custom grpc call in chain state update

* update npm packages

* disable getting all validator delegations

* revert grpc to use sdk grpc gateway api

* update validator ui with correct field names

* update home page validator list field name

* remove unused components

* display voting power with tokens

* sorting with number of tokens

* update label to show bonded tokens for inactive validators

* update language

* remove cosmos-protobuf-js

* update meteor packages

* added jailed until

* update language

* update power distribution

* reduce update validator info

* fix self delegation address

* update validator account field names

* update version

* remove uncessary flag

* fix account page query

* update operatorAddress variable name

* fix validator name query in Account component

* fix delegation rewards

* remove console log

* update version

* handle unbonded validator if not in database

* only start and update height to update validator info

* validator info can be updated every block but not delegation

* only update validator self delegation at start or update interval

* don't update validator info every block

* upload ledger login message and settings

* change validator update schedule

* update version

* fix lint

* update proposal status

* fix ledger tx skeleton

* fixed ledger button validator proptypes

* fixed unmatched bonding status in ledger buttons

* update validator bond status

* fixed delegate message

* fixed ledger redelegation

* update version

* get correct votes and tally results

* fix gov proposal chart

* remove gov buttons until

* update changelog

Co-authored-by: Michael FIG <[email protected]>
  • Loading branch information
kwunyeung and michaelfig authored Mar 11, 2021
1 parent 603bd84 commit 3ca6d57
Show file tree
Hide file tree
Showing 60 changed files with 1,204 additions and 900 deletions.
4 changes: 2 additions & 2 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ [email protected] # The database Meteor supports right now
[email protected] # Reactive variable for tracker
[email protected] # Meteor's client-side reactive programming library

[email protected].1 # CSS minifier run for production mode
[email protected].2 # CSS minifier run for production mode
[email protected] # JS minifier run for production mode
[email protected] # ECMAScript 5 compatibility for older browsers
ecmascript@0.14.4 # Enable ECMAScript2015+ syntax in app code
ecmascript@0.15.0 # Enable ECMAScript2015+ syntax in app code
[email protected] # Server-side component of the `meteor shell` command

[email protected] # Leaner CSS language
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@1.12
METEOR@2.0
25 changes: 13 additions & 12 deletions .meteor/versions
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[email protected]
autoupdate@1.6.0
babel-compiler@7.5.4
autoupdate@1.7.0
babel-compiler@7.6.0
[email protected]
[email protected]
[email protected]
Expand All @@ -13,13 +13,13 @@ [email protected]
[email protected]
dburles:[email protected]
[email protected]
ddp-client@2.3.3
ddp-client@2.4.0
[email protected]
[email protected]
[email protected]
[email protected]
dynamic-import@0.5.4
ecmascript@0.14.4
dynamic-import@0.6.0
ecmascript@0.15.0
[email protected]
[email protected]
[email protected]
Expand All @@ -31,7 +31,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected].2
[email protected].3
[email protected]
[email protected]
johanbrook:[email protected]
Expand All @@ -40,7 +40,7 @@ [email protected]
[email protected]
[email protected]
lmieulet:[email protected]
logging@1.1.20
logging@1.2.0
[email protected]
[email protected]
meteortesting:[email protected]
Expand All @@ -52,7 +52,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
modules@0.15.0
modules@0.16.0
[email protected]
[email protected]
[email protected]
Expand All @@ -62,7 +62,8 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Expand All @@ -72,7 +73,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
[email protected].1
[email protected].2
[email protected]
[email protected]
[email protected]
Expand All @@ -81,5 +82,5 @@ [email protected]
[email protected]
universe:[email protected]
[email protected]
webapp@1.9.1
webapp-hashing@1.0.9
webapp@1.10.0
webapp-hashing@1.1.0
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## v.41.x-7 (Stargate compatible)

* [#472] Fix missing transactions
* [#449] Migrate API to gRPC gateway
* [#360] Update validator info correctly
* [#311] Update validator status to display validators correctly
* [#321] Enable module related components which will display 0 or hide the components when the Cosmos SDK modules are not implemented
* [#485] Query proposal tally results correctly
* Update transaction skeletons for Ledger to work properly
* Config correct Ledger app and app version

## v0.39.x-7

* [#452] Fix VP Chart not being shown
Expand All @@ -26,6 +37,7 @@
* Simplify validator storing
* Get data and show proposal based on enabled modules
* Calculate validator uptime in async
* Update validator status

## v0.39.x-3

Expand Down
4 changes: 3 additions & 1 deletion both/i18n/en-us.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ common:
cancel: 'Cancel'
retry: 'Retry'
rewards: 'Rewards'
bondedTokens: 'Bonded Tokens'
navbar:
siteName: 'BIG DIPPER'
version: '-'
Expand Down Expand Up @@ -102,6 +103,7 @@ validators:
tokens: 'Tokens'
unbondingHeight: 'Unbonding Height'
unbondingTime: 'Unbonding Time'
jailedUntil: 'Jailed Until'
powerChange: 'Power Change'
delegations: 'Delegations'
transactions: 'Transactions'
Expand Down Expand Up @@ -201,7 +203,7 @@ accounts:
signInText: 'You are signed in as '
toLoginAs: 'To log in as'
signInWithLedger: 'Sign In With Ledger'
signInWarning: 'Please make sure your Ledger device is connected and <strong class="text-primary">Cosmos App 1.5.0 or above</strong> is opened.'
signInWarning: 'Please make sure your Ledger device is connected and <strong class="text-primary">{$network} App {$version} or above</strong> is opened.'
pleaseAccept: 'please accept in your Ledger device.'
noRewards: 'No Rewards'
activities:
Expand Down
2 changes: 1 addition & 1 deletion both/i18n/it-IT.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ accounts:
signInText: 'Registrati come'
toLoginAs: 'Accedi come'
signInWithLedger: 'Registrati con un Ledger'
signInWarning: 'Per favore assicurati che il tuo Ledger sia connesso e <strong class="text-primary">Cosmos App 1.5.0 or above</strong> che sia aperto.'
signInWarning: 'Per favore assicurati che il tuo Ledger sia connesso e <strong class="text-primary">{$network} App {$version} or above</strong> che sia aperto.'
pleaseAccept: 'Per favore accetta nel tuo Ledger'
noRewards: 'Nessun reward'
activities:
Expand Down
2 changes: 1 addition & 1 deletion both/i18n/pl-PL.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ accounts:
signInText: 'Zalogowany jako '
toLoginAs: 'Aby zalogować się jako '
signInWithLedger: 'Zaloguj się z Ledgerem'
signInWarning: 'Upewnij się, że Twój Ledger jest podłączony do komputera oraz aplikacja <strong class="text-primary">Cosmos App 1.5.0 lub nowsza </strong> jest uruchomiona.'
signInWarning: 'Upewnij się, że Twój Ledger jest podłączony do komputera oraz aplikacja <strong class="text-primary">{$network} App {$version} lub nowsza </strong> jest uruchomiona.'
pleaseAccept: 'zaakceptuj połączenie na Twoim Ledgerze.'
noRewards: 'Brak Nagród'
activities:
Expand Down
2 changes: 1 addition & 1 deletion both/i18n/pt-BR.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ accounts:
signInText: 'Você está conectado como '
toLoginAs: 'Para entrar como'
signInWithLedger: 'Entrar com Ledger'
signInWarning: 'Certifique-se de que seu dispositivo Ledger esteja conectado e o <strong class="text-primary">Cosmos App 1.5.0 ou superior</strong> esteja aberto.'
signInWarning: 'Certifique-se de que seu dispositivo Ledger esteja conectado e o <strong class="text-primary">{$network} App {$version} ou superior</strong> esteja aberto.'
pleaseAccept: 'por favor, aceite em seu dispositivo Ledger.'
noRewards: 'Sem recompensas'
activities:
Expand Down
2 changes: 1 addition & 1 deletion both/i18n/ru-RU.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ accounts:
signInText: 'Войти'
toLoginAs: 'Войти'
signInWithLedger: 'Войти с Ledger'
signInWarning: 'Пожалуйста, убедитесь, что устройство Ledger подключен и <strong class="text-primary">Cosmos App 1.5.0 или выше </strong> открыто.'
signInWarning: 'Пожалуйста, убедитесь, что устройство Ledger подключен и <strong class="text-primary">{$network} App {$version} или выше </strong> открыто.'
pleaseAccept: 'пожалуйста, примите в свой Ledger устройство.'
activities:
single: ' '
Expand Down
2 changes: 2 additions & 0 deletions both/i18n/zh-hans.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ common:
searchPlaceholder: '搜寻交易哈希 / 区块高度 / 地址'
cancel: '取消'
retry: '重试'
bondedTokens: '受委托量'
navbar:
siteName: '北斗'
validators: '验证人'
Expand Down Expand Up @@ -100,6 +101,7 @@ validators:
tokens: '代币数量'
unbondingHeight: '解绑高度'
unbondingTime: '解绑时间'
jailedUntil: '被禁制至'
powerChange: '投票权变更'
delegations: '委托'
transactions: '交易'
Expand Down
2 changes: 2 additions & 0 deletions both/i18n/zh-hant.i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ common:
searchPlaceholder: '搜尋交易哈希 / 區塊高度 / 地址'
cancel: '取消'
retry: '重試'
bondedTokens: '受委托量'
navbar:
siteName: '北斗'
validators: '驗證人'
Expand Down Expand Up @@ -100,6 +101,7 @@ validators:
tokens: '代幣數量'
unbondingHeight: '解綁高度'
unbondingTime: '解綁時間'
jailedUntil: '被禁制至'
powerChange: '投票權變更'
delegations: '委托'
transactions: '交易'
Expand Down
4 changes: 4 additions & 0 deletions both/utils/time.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const goTimeToISOString = (time) => {
const millisecond = parseInt(time.seconds+time.nanos.toString().substring(0,3));
return (new Date(millisecond)).toISOString()
}
14 changes: 10 additions & 4 deletions default_settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"public":{
"chainName": "Cosmos Testnet",
"chainName": "Cosmos",
"chainId": "{Chain ID}",
"gtm": "{Add your Google Tag Manager ID here}",
"slashingWindow": 10000,
Expand All @@ -27,18 +27,24 @@
"fraction": 1000000
}
],
"ledger":{
"coinType": 118,
"appName": "Cosmos",
"appVersion": "2.16.0",
"gasPrice": 0.02
},
"modules": {
"bank": true,
"supply": true,
"minting": false,
"gov": true,
"distribution": false
},
"gasPrice": 0.02,
"coingeckoId": "cosmos"
},
"remote":{
"rpc":"https://gaia-seeds.interblock.io",
"lcd":"https://gaia-seeds.interblock.io:1317"
"rpc":"https://rpc.stargate.forbole.com:443",
"api":"https://api.stargate.forbole.com:443"
},
"debug": {
"startTimer": true
Expand Down
Loading

0 comments on commit 3ca6d57

Please sign in to comment.