Commit Graph

101 Commits

Author SHA1 Message Date
Justin Starry efa3cd711c
explorer: Add tabs for block program and account stats (#15702) 2021-03-04 21:12:41 +08:00
Josh 28a8f142fc
feat: standardize timestamps throughout explorer (#15562)
* feat: timestamps should use local time everywhere but cluster stats, monospace text

* feat: normalize timestamp through explorer
2021-02-26 18:47:03 +00:00
Josh 976a64c25c
explorer: introduce vote instruction card (#15521)
* refactor: move instruction section to components

* feat: votes instruction card

* refactor: move program log section into separate component
2021-02-24 20:38:53 +00:00
Josh 2483a05786
feat: add solana-token-registry to explorer (#15496)
* feat: add solana-token-registry to explorer

* feat: bump version for token-registry

* fix: ensure tokenName and tokenSymbol exist in incoming json
2021-02-24 12:30:55 -08:00
Josh a07fa5b623
explorer: add fetch polyfill and clean up / message change (#15505) 2021-02-24 05:27:35 +00:00
Josh 58b35db384
explorer: block query should be strictly integers (#15442) 2021-02-19 18:37:39 +00:00
Josh 5548e599fe
explorer: prevent large slot number input stemming from hex strings (#15438)
* explorer: prevent large slot number input stemming from hex strings

* explorer: support IE11
2021-02-19 17:20:03 +00:00
Josh 13d55b7080
explorer: add confirmation status (#15422) 2021-02-19 08:57:26 -08:00
Justin Starry aaa44355b1
explorer: Display upgradeable program details (#15348) 2021-02-16 18:30:02 +08:00
B a0ba59a1ea
Add titles for token lending instructions (#15217)
* feat: add lending instruction names

* chore: capitalize words
2021-02-09 19:50:34 -06:00
Josh f2f4003e70
explorer: introduce Token Balances on transaction details page (#14877)
* explorer: introduce Token Balances on transaction details page

* fix: run prettier

* introduce BigNumber.js

* account for case where mint changes

* introduce BalanceDelta component

* remove unneeded import

* break token balances card into own file
2021-02-08 19:54:03 -08:00
Josh 0da11af827
explorer: Introduce flagged accounts provider (#15161) 2021-02-08 12:54:36 -08:00
Josh 577310380a
explorer: Introduce scam registry and flag on account pages (#14886)
* explorer: add spam registry

* explorer: adjust warning messaging

* fix: remove red borders

* explorer: change spam to scam

* explorer: no need for this to be a prop now
2021-01-27 13:50:02 -08:00
Josh a395037671
explorer: Add block rewards to block details page (#14786)
* explorer: add block rewards

* add key to tr map
2021-01-26 11:51:58 -08:00
Josh b7b3de528b
explorer: format cluster time and locked stake accounts as utc (#14461) 2021-01-06 09:58:55 -08:00
Josh 0767ea174e
explorer: add temporary unlock alert box (#14457)
* Add token unlock banner

* make cluster time dynamic

* remove seconds display since it differs slightly from cluster stats

Co-authored-by: rmshea <8948187+rmshea@users.noreply.github.com>
2021-01-05 21:00:36 -08:00
Josh e5b10d8b7e
explorer: display block time on cluster stats (#14439)
* explorer: display block time on cluster stats

* interpolate blocktime values between fetches

* prevent time from going backwards
2021-01-05 14:22:12 -08:00
Josh 8d1651c8ad
explorer: hotfix - undefined nonce instruction check (#14029) 2020-12-09 12:00:40 -08:00
Josh 08674b8388
hotfix: manually coerce some inner instructions (#13963) 2020-12-04 14:47:17 -08:00
Josh d3a4140899
Explorer: Display CPI details for transaction (#13801)
* explorer: show inner instructions on token history

* resolve warnings

* show inner instructions on transaction details page

* adjust contrast and add inner instructions row

* show inner instructions after slot 46915769

* token history show inner instructions after 46915769

* restrict early slots only on mainnet

* self nit naming

* self nit: better name for constant

* add signature-truncate class

* resolve incoming raw transaction on transactions details
2020-12-03 12:23:28 -08:00
kev zettler 75e3f5cd48
Explorer: add Raw instruction data to parsed instructions (#13855)
This commit allows users to click the "raw" button on transaction
instructions and fetch the raw hex or base64 representations of the instruction.

Adds a fetch action to the click event of the "raw" button on the
instruction UI.

adds a fetchRawTransaction hook that is passed down to the
instruction UI components. Adds addition `rawFetchTrigger` and `raw`
props passed to the instruction card components.
2020-11-30 13:35:33 -08:00
Josh b33e5b87dd
explorer: introduce details card for memo instruction (#13538) 2020-11-19 14:05:55 -08:00
Josh 2f657bc0ca
explorer: Parse Serum DEX and swap instructions for TokenHistory (#13320)
* map serum instructions on token history card

* add token swap instruction parsing

* refactor serum program and instruction data
2020-10-31 19:21:20 -07:00
Justin Starry 5fb8b84d84
Explorer: tweak cluster stats page (#13267) 2020-10-29 13:17:45 +08:00
Justin Starry 61c2970141
Explorer: remove wasm stake parsing (#13266) 2020-10-29 11:37:55 +08:00
Justin Starry 781b92a8c0
Explorer: Linkify all displays of slot number (#13262) 2020-10-29 10:45:44 +08:00
Josh 413dfb01d5
explorer: Update instruction details cards to handle parsed instructions for system, stake, and bpf-loader (#13247)
* update instruction cards to support system, stake, and bpf-loader parsed instructions
2020-10-28 15:28:12 -07:00
The Lone Rōnin 49e11e1f9c
Explorer Block Page (#12854)
* Solarweave Implementation

* Fixed formatting

* Revisions and QA

* Added block links to transaction page

* Create Blockpage

* QA and Revisions

* Finalized QA & Revisions

* QA & Revisions
2020-10-29 00:16:27 +08:00
Josh c7c6c28455
Remove Solanabeach dependency from Explorer (#12463)
* remove solana beach socket dependency

* remove socket.io dependency

* timeout / retry button for cluster stats

* update web3 version, add EpochInfo typing, handle no samples case

* derive max TPS from final downsampled arrays

* change block time to slot time
2020-10-19 20:11:48 -07:00
Josh 86ca85d72b
explorer: Add support for all parsed accounts (#11842)
* introduce vote and nonce validators

* introduce config, nonce, sysvar, vote validators / types

* change ConfigProgram to ConfigProgramData

* introduce vote account section and nonce account section, clean up superstructs

* nonce section

* round out vote account and nonce account

* refactor account components, add votes tab

* update program data name to program

* introduce slot hashes, stake history

* introduce blockhashes card and config account

* run fix format

* remove comment

* introduce config section and typings

* refactor tabs if blocks

* change superstructs to pick in some cases

* remove account owners, rename vote history, some nit fixes

* general cleanup and improvements

* add recency column

* add balance row to parsed accounts

* union account types under sysvar and config for improved typing. modify row headers for consistency.

* remove random spaces

* use proper type checking and clean up a cast
2020-10-10 01:03:45 -07:00
Josh 9478063b3d
Explorer: introduce program logs section on transaction details page (#12625)
* introduce program logs section on transaction details page

* update web3.js version
2020-10-09 23:14:00 -07:00
Bartosz Lipinski ef60d0f5ba
explorer/: Deactivated stake accounts report as delegated (#12262)
* feat: add getStakeActivation to web3.js

* feat: add activation status to delegation card

* style: pretty

* feat: add epoch to getStakeActivation call

* feat: add unit test for getStakeActivation in web3.js

* feat: add test for getStakeActivation in web3.js

* feat: add getStakeActivation

* chore: add rollup watch

* feat: use string literal for stake activation state

* fix: dont display empty () for not delegated accounts

* fix: remove optional chaining due to issue with esdoc

* chore: remove optional_chaining

* feat: add live test for getStakeActivation

* feat: add active/inactive stake to account page

* feat: extend _buildArgs to support additional options, simplify unit test

* chore: update @solana/web3.js tp 0.76.0

* style: resolve linter issues

Co-authored-by: Justin Starry <justin@solana.com>
2020-09-22 13:41:39 +08:00
Juha Vieresjoki 1211d8118c common component for more readable slot numbers 2020-09-18 10:55:36 -07:00
Josh 323df5407a
explorer: Improve display of serum dex instructions and provide labels to market pairs (#11985)
* explorer: Improve display of Serum dex program instructions

* fix formatting

* add market pairs labels for serum addresses

* update serum market registry, remove truncate right

* update serum market labels

* update serum market labels and show label on token details page

* add try catch, simplify to just return title

* remove random space

* add sentry exception handler

* remove extra space
2020-09-08 08:57:17 -07:00
Justin Starry 2de7768f41
Remove cached transactions from explorer and update copy (#11965) 2020-09-01 12:46:19 +08:00
Justin Starry 998f9725d0
Update explorer address labels (#11910) 2020-08-30 13:00:07 +08:00
Justin Starry 0b47cd1c67
Add token2 support to explorer (#11905) 2020-08-29 20:50:45 +08:00
Josh 0a8523b349
explorer: Auto-update transactions until they reach max confirmation (#11841)
* explorer: Auto-update transactions until they reach max confirmation

* convert to side effect

* proper cleanup

* minor cleanup

* pull isAutoRefresh from context, refactor, and add loading indicator / dhide refresh

* split effects into two, manage interval in one effect only

* simplify interval

* move autoRefresh up a level, use computed value

* flip conditional for readability

* accidentally factored out not found case

* add attempts bailout

* run prettier

* bailout after 5 polls of 0 confirmations

* move bailout into state, change autoRefresh prop to enum to support bailout state

* run prettier to clean up formatting

* reintroduce details not available until max confirmations message

* add error card with refresh if zero confirmation bailout

* allow retry on bailouts
2020-08-28 14:17:12 -07:00
Justin Starry 40ca3ae796
Add live transaction stats card with history chart (#11813) 2020-08-25 03:08:02 +08:00
Justin Starry 346e982e28
Dedupe token history and pretty print slots (#11636) 2020-08-14 23:59:39 +08:00
Justin Starry de22f3d0e7
Explorer: Display error message on invalid signature query (#11633) 2020-08-14 23:00:35 +08:00
Justin Starry 6162c2d0d5
Add token registry to explorer (#11612) 2020-08-13 22:57:53 +08:00
Justin Starry 5715f0b81a
Fix mint holders page when supply is zero (#11586) 2020-08-13 01:56:17 +08:00
Justin Starry 55b5957d49
Add token supply info to mint account page (#11584) 2020-08-13 01:31:21 +08:00
Justin Starry f8221797c6
Remove not found disclaimer when full history is available (#11583) 2020-08-12 23:09:57 +08:00
Justin Starry a992bb5f94
Use common provider for explorer cached data (#11582) 2020-08-12 22:41:04 +08:00
Justin Starry 921529426d
Show token transaction history in explorer (#11473) 2020-08-09 00:29:42 +08:00
Justin Starry fb822688b7
Display detailed token account info on explorer (#11472) 2020-08-08 23:02:01 +08:00
Justin Starry c544116cf2
Add support for parsed stake accounts (#11469) 2020-08-08 21:06:24 +08:00
Justin Starry 102d15f081
Fix data fetching races in explorer (#11468) 2020-08-08 20:47:07 +08:00
Justin Starry c7eba80836
Organize explorer file structure (#11464) 2020-08-08 14:45:57 +08:00