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

Stargate #478

Merged
merged 127 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
42fe7ce
replace json view to react-json-view
kwunyeung Nov 23, 2020
0c87d53
simplify storing validators
kwunyeung Nov 23, 2020
8021dd8
put vp distribution calculation in async function
kwunyeung Nov 28, 2020
787c25e
enable modules
kwunyeung Nov 28, 2020
536b4b8
remove tx indexing from block
kwunyeung Nov 28, 2020
a8258e4
get self delegation every 50 blocks
kwunyeung Nov 28, 2020
215e2f0
add try catch for bech32 conversion
kwunyeung Nov 28, 2020
6dbcbb1
update display error code
kwunyeung Nov 28, 2020
c6c5322
display staking ratio
kwunyeung Sep 10, 2020
efb0796
update validator search condition
kwunyeung Sep 10, 2020
1970c75
fix home validator list and genesis params
kwunyeung Sep 10, 2020
74d64e3
fix account delegation validator name
kwunyeung Sep 10, 2020
86f0151
change the BondStatus from 2 to 3
kwunyeung Mar 12, 2020
7aa5a73
show minting
kwunyeung May 5, 2020
356b1d6
update validator status value
kwunyeung May 5, 2020
4a5863b
fix: update more status code changes (#357)
michaelfig Jun 1, 2020
ba74580
fix total supply amount
kwunyeung Sep 10, 2020
f26a371
update tx elements structures
kwunyeung Sep 24, 2020
feb3413
update version
kwunyeung Nov 9, 2020
b253e51
refactor getting validator for v0.40
kwunyeung Dec 1, 2020
bf8c618
get validator self delegation
kwunyeung Dec 1, 2020
e7c852d
display validator list
kwunyeung Dec 1, 2020
7835810
set uptime label to slashing window
kwunyeung Dec 1, 2020
7d3d2bf
replace legecy api
kwunyeung Jan 20, 2021
bc62ee0
add grpc and cosmos protobuf
kwunyeung Jan 22, 2021
a9e509d
replace with imporable-eng grpc-web
kwunyeung Jan 23, 2021
955554c
update packages
kwunyeung Jan 23, 2021
a885880
add grpc unary function
kwunyeung Jan 24, 2021
52d3f27
update chain status request with grpc
kwunyeung Jan 25, 2021
0fef348
update block update
kwunyeung Jan 25, 2021
bd930a8
update meteor to 2.0
kwunyeung Jan 25, 2021
37c759b
update validator address index
kwunyeung Jan 25, 2021
1df5ec0
block not show proposer
kwunyeung Jan 25, 2021
01e6655
save tx data correctly
kwunyeung Jan 25, 2021
b72c857
get the tendermint hex address
kwunyeung Jan 26, 2021
d9011b8
fix propser name
kwunyeung Jan 26, 2021
cfc8be6
fix precommits storage
kwunyeung Jan 26, 2021
add327f
update validator field names
kwunyeung Jan 26, 2021
11342d1
fix get uptime
kwunyeung Jan 26, 2021
aea3fd6
add new fields to settings.json
kwunyeung Jan 30, 2021
20a6684
only save validator data at start or after number of blcoks
kwunyeung Jan 30, 2021
54c8ec2
remove some comments of the old LCD
kwunyeung Jan 30, 2021
d86ac79
update validator delegations
kwunyeung Jan 30, 2021
885ca18
update delegations
kwunyeung Jan 30, 2021
8ec0dce
updat proposal list
kwunyeung Jan 30, 2021
e230a0a
update version
kwunyeung Jan 31, 2021
68be637
fix save validator height
kwunyeung Jan 31, 2021
de87349
check if validator set value exists before assigning value
kwunyeung Feb 10, 2021
9da1dc2
update cosmos protobuf
kwunyeung Feb 16, 2021
262547f
revert updating validators with RPC and validator hex address
kwunyeung Feb 17, 2021
4fa2047
fix chain status active validators
kwunyeung Feb 17, 2021
b734ed1
revert back using legacy api /tx endpoint for transactions
kwunyeung Feb 17, 2021
b667da8
using legacy /tx endpoint
kwunyeung Feb 17, 2021
f041df5
change LCD to API
kwunyeung Feb 17, 2021
ebfc0cc
update default_settings.json
kwunyeung Feb 17, 2021
00e130d
index tx with grpc gateway
kwunyeung Feb 17, 2021
0d41d3c
fix transaction row
kwunyeung Feb 17, 2021
19870b3
update transations and message types
kwunyeung Feb 17, 2021
1b8aaa9
get proposal with grpc gateway
kwunyeung Feb 17, 2021
2313e7d
fix ui of proposals
kwunyeung Feb 17, 2021
78d7932
update block tx tabs
kwunyeung Feb 17, 2021
2a09074
update delegator reward message type
kwunyeung Feb 17, 2021
148e66e
update balance apis
kwunyeung Feb 17, 2021
01e128f
update validator delegation names
kwunyeung Feb 17, 2021
ce87753
update tx event search
kwunyeung Feb 17, 2021
da24807
update indexes
kwunyeung Feb 17, 2021
c56d109
update power history values
kwunyeung Feb 17, 2021
d6eac92
fix vp distribution
kwunyeung Feb 17, 2021
5d5d51d
fix initial power change value
kwunyeung Feb 17, 2021
e0849cd
update version
kwunyeung Feb 17, 2021
f400884
temperary disable inflation and annual provision query
kwunyeung Feb 20, 2021
f79a926
reduce community pool to human readable number
kwunyeung Feb 20, 2021
f70a54f
remove gov proposer query
kwunyeung Feb 20, 2021
ee22e41
update version
kwunyeung Feb 20, 2021
990449f
console log object
kwunyeung Feb 20, 2021
0d6d4f3
fix transactions not being saved
kwunyeung Feb 20, 2021
57f2684
save proposal correctly
kwunyeung Feb 20, 2021
873b60e
save missing flag to tx if index is missing
kwunyeung Feb 20, 2021
28f4c69
update version
kwunyeung Feb 20, 2021
d1c79aa
remove custom grpc call in chain state update
kwunyeung Feb 22, 2021
645e385
update npm packages
kwunyeung Feb 22, 2021
d7e99ab
disable getting all validator delegations
kwunyeung Feb 24, 2021
9f5b5e2
revert grpc to use sdk grpc gateway api
kwunyeung Feb 28, 2021
4be8271
update validator ui with correct field names
kwunyeung Feb 28, 2021
014d95a
update home page validator list field name
kwunyeung Feb 28, 2021
371b70d
remove unused components
kwunyeung Feb 28, 2021
0bdb6c6
display voting power with tokens
kwunyeung Feb 28, 2021
0a77915
sorting with number of tokens
kwunyeung Feb 28, 2021
9c586ba
update label to show bonded tokens for inactive validators
kwunyeung Feb 28, 2021
fcf4f82
update language
kwunyeung Feb 28, 2021
bfa2887
remove cosmos-protobuf-js
kwunyeung Feb 28, 2021
2fa349e
update meteor packages
kwunyeung Feb 28, 2021
1a7cd2d
added jailed until
kwunyeung Feb 28, 2021
e32b1d5
update language
kwunyeung Feb 28, 2021
dbf9e40
update power distribution
kwunyeung Feb 28, 2021
cbe6262
reduce update validator info
kwunyeung Feb 28, 2021
deb71a2
fix self delegation address
kwunyeung Feb 28, 2021
21b5209
update validator account field names
kwunyeung Feb 28, 2021
31e06a9
update version
kwunyeung Feb 28, 2021
2c4f489
remove uncessary flag
kwunyeung Mar 1, 2021
9f76253
fix account page query
kwunyeung Mar 1, 2021
ffaacbf
update operatorAddress variable name
kwunyeung Mar 1, 2021
b656cc5
fix validator name query in Account component
kwunyeung Mar 1, 2021
28d1e89
fix delegation rewards
kwunyeung Mar 1, 2021
e7684eb
remove console log
kwunyeung Mar 1, 2021
a4ced0b
update version
kwunyeung Mar 1, 2021
671b87d
handle unbonded validator if not in database
kwunyeung Mar 1, 2021
cf2fba5
only start and update height to update validator info
kwunyeung Mar 1, 2021
df642b3
validator info can be updated every block but not delegation
kwunyeung Mar 1, 2021
c1dfe7d
only update validator self delegation at start or update interval
kwunyeung Mar 1, 2021
42f430a
don't update validator info every block
kwunyeung Mar 1, 2021
4e07a36
upload ledger login message and settings
kwunyeung Mar 3, 2021
bb71a2c
change validator update schedule
kwunyeung Mar 9, 2021
8ebfdf6
update version
kwunyeung Mar 9, 2021
392c4eb
fix lint
kwunyeung Mar 9, 2021
4da3bd1
update proposal status
kwunyeung Mar 10, 2021
1697180
fix ledger tx skeleton
kwunyeung Mar 10, 2021
7988c9a
fixed ledger button validator proptypes
kwunyeung Mar 10, 2021
44cd8d0
fixed unmatched bonding status in ledger buttons
kwunyeung Mar 10, 2021
c59b39d
update validator bond status
kwunyeung Mar 10, 2021
674fbc1
fixed delegate message
kwunyeung Mar 10, 2021
9c8d2e9
fixed ledger redelegation
kwunyeung Mar 10, 2021
4c62ec3
update version
kwunyeung Mar 10, 2021
190e0cf
get correct votes and tally results
kwunyeung Mar 10, 2021
7974963
fix gov proposal chart
kwunyeung Mar 11, 2021
aa3cd03
remove gov buttons until
kwunyeung Mar 11, 2021
df25d9e
update changelog
kwunyeung Mar 11, 2021
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
4 changes: 2 additions & 2 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ mongo@1.10.1 # The database Meteor supports right now
reactive-var@1.0.11 # Reactive variable for tracker
tracker@1.2.0 # Meteor's client-side reactive programming library

standard-minifier-css@1.7.1 # CSS minifier run for production mode
standard-minifier-css@1.7.2 # CSS minifier run for production mode
standard-minifier-js@2.6.0 # JS minifier run for production mode
es5-shim@4.8.0 # 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
shell-server@0.5.0 # Server-side component of the `meteor shell` command

less@2.8.0 # 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 @@
allow-deny@1.1.0
autoupdate@1.6.0
babel-compiler@7.5.4
autoupdate@1.7.0
babel-compiler@7.6.0
babel-runtime@1.5.0
base64@1.0.12
binary-heap@1.0.11
Expand All @@ -13,13 +13,13 @@ callback-hook@1.3.0
check@1.3.1
dburles:collection-helpers@1.1.0
ddp@1.4.0
ddp-client@2.3.3
ddp-client@2.4.0
ddp-common@1.4.0
ddp-server@2.3.2
deps@1.0.12
diff-sequence@1.1.1
dynamic-import@0.5.4
ecmascript@0.14.4
dynamic-import@0.6.0
ecmascript@0.15.0
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.11.0
ecmascript-runtime-server@0.10.0
Expand All @@ -31,7 +31,7 @@ geojson-utils@1.0.10
hot-code-push@1.0.4
html-tools@1.0.11
htmljs@1.0.11
http@1.4.2
http@1.4.3
id-map@1.1.0
inter-process-messaging@0.1.1
johanbrook:publication-collector@1.1.0
Expand All @@ -40,7 +40,7 @@ launch-screen@1.2.0
less@2.8.0
livedata@1.0.18
lmieulet:meteor-coverage@3.2.0
logging@1.1.20
logging@1.2.0
meteor@1.9.3
meteor-base@1.4.0
meteortesting:browser-tests@1.3.4
Expand All @@ -52,7 +52,7 @@ minimongo@1.6.1
mobile-experience@1.1.0
mobile-status-bar@1.1.0
modern-browsers@0.1.5
modules@0.15.0
modules@0.16.0
modules-runtime@0.12.0
mongo@1.10.1
mongo-decimal@0.1.2
Expand All @@ -62,7 +62,8 @@ npm-mongo@3.8.1
ordered-dict@1.1.0
promise@0.11.2
random@1.2.0
react-meteor-data@2.1.4
react-fast-refresh@0.1.0
react-meteor-data@2.2.2
reactive-var@1.0.11
reload@1.3.1
retry@1.1.0
Expand All @@ -72,7 +73,7 @@ server-render@0.3.1
shell-server@0.5.0
socket-stream-client@0.3.1
spacebars-compiler@1.1.3
standard-minifier-css@1.7.1
standard-minifier-css@1.7.2
standard-minifier-js@2.6.0
static-html@1.2.2
templating-tools@1.1.2
Expand All @@ -81,5 +82,5 @@ typescript@4.1.2
underscore@1.0.10
universe:i18n@1.31.0
url@1.3.1
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