Commit Graph

170 Commits

Author SHA1 Message Date
Tyera Eulberg 2420b280a9
Update deprecated commitments (#16794) 2021-04-23 18:32:28 -06:00
Josh 084997c4f0
hotfix: avoid passing along additionalSignatures as an option to getConfirmedSignaturesForAddress2 (#16734) 2021-04-22 20:27:17 -07:00
Josh 39eddfd161
explorer: Token mint histories (token balance and token instructions tabs) (#15861)
* feat: refactor and introduce balances and instructions tabs for mints

* fix: refactor instruction utilities into common file

* refactor: move transaction history components into one spot

* chore: minor cleanup

* fix: show only token instructions

* fix: use better naming for slugs and paths

* feat: refactor and work on transaction status

* feat: show token transfer details

* fix: format code and remove some extra spaces

* fix: exclude non-mint transfers

* feat: introduce react-moment and reorganize history tables

* feat: reintroduce status columns and reorganize columns

* fix: remove ts-ignore

* feat: refactor history card components

* fix: remove detailed history provider

* fix: filter instructions and inner instructions based on mint

* fix: use better key and report parse error

* fix: remove double spacing

* feat: batch transaction map batches

* fix: remove debug code

* fix: pass proper signatureInfo and reduce batch size to 10
2021-04-14 16:22:40 -07:00
Josh 2aea35281e
Explorer: introduce circulating supply, active stake, and price on cluster stats page (#16095)
* feat: add styles form staking component

* feat: introduce circulating supply, active stake, and price on cluster stats page

* feat: add an error state for coingecko
2021-03-25 09:59:50 -07:00
Josh 7aa65831bc
fix: token registry avoids custom slug (#16093) 2021-03-24 16:08:47 +00:00
Justin Starry 2c4ff000b9
explorer: minor cleanup and fixes (#15855)
* chore: bump web3 to v1.0.0

* explorer: minor cleanup and fixes
2021-03-20 16:22:22 +08:00
Justin Starry c4f98f9c73
explorer: Add details pages for upgradeable loader accounts (#15836) 2021-03-14 01:11:59 +08:00
Justin Starry 186b342453
explorer: Update superstruct (#15835) 2021-03-13 13:31:52 +08:00
Josh 5bde399499
Explorer: update to new spl-token-registry standard (#15765)
* feat: update tokenlist

* feat: bump spl-token-registry version to 0.2.0
2021-03-08 14:23:07 -08: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 53dfc211ec
explorer: detect if localstorage is available (#15499)
* feat: detect if localstorage is available

* feat: do not show developer settings in cluster modal if localStorage is disabled
2021-02-23 22:53:22 +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
Josh 0da11af827
explorer: Introduce flagged accounts provider (#15161) 2021-02-08 12:54:36 -08:00
Josh 9411af4a95
explorer: Only report getBlockTime error under max confs (#14869) 2021-01-26 14:57:50 -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 ed15ce0bbe
explorer: infinity stats issue hotfix (#13959) 2020-12-04 10:36:06 -08:00
kev zettler 9b143f030e
explorer: Restore readonly / signer raw insturction fields (#13909)
This is a follow up to #13855 It consolidates the RawParsedDetails and
RawDetails fields so that readonly/ signer instruction fields are
availalbe to parsed-raw instructions
2020-12-02 14:19:45 -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 ed82bf70f5
hotfix: customUrl effect is preventing redirects, add check (#13742) 2020-11-20 14:02:11 -08:00
Justin Starry 83799356dd
explorer: Add developer setting to enable customUrl param (#13697) 2020-11-19 08:03:20 -06:00
Josh 0d233370e8
Explorer: disable sentry error for cluster stats timeout (#13283) 2020-10-29 08:38:51 -07:00
Justin Starry 0f05e086fe
Explorer: fix slot links and block details page on devnet (#13274) 2020-10-29 20:34:05 +08:00
Justin Starry ffeadd4e29
Explorer: don't throw error for strange token instructions (#13268) 2020-10-29 13:17:35 +08:00
Justin Starry 61c2970141
Explorer: remove wasm stake parsing (#13266) 2020-10-29 11:37:55 +08:00
Justin Starry 144bd36674
Explorer: fix confirmed block refetch (#13261) 2020-10-29 10:36:48 +08: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
Justin Starry 02bf9ca834
Refresh mint distribution when account info refreshes (#13064) 2020-10-21 18:47:02 +08:00
Justin Starry f11c86b2c5
Explorer: speed up cluster stat loading (#13016) 2020-10-21 10:32:08 +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
Justin Starry 65cc6a69c8
Fix history fetching and inner spl token instructions (#12515) 2020-09-29 21:24:01 +08:00
Justin Starry ba7f7cca78
Fix explorer history refresh (#12443) 2020-09-24 14:27:28 +08: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
Justin Starry 19f412b85c
Disable sentry in development and catch reporting errors (#12321) 2020-09-18 10:47:58 +08:00
Josh 53a900a28c
explorer: 11938 display owner in token distribution table (#11953)
* include owner on largest token distribution tab

* run format:fix
2020-09-01 09:21:47 -07:00
Justin Starry 2de7768f41
Remove cached transactions from explorer and update copy (#11965) 2020-09-01 12:46:19 +08:00
Justin Starry af5084856a
Disable explorer block time fetching errors (#11931) 2020-08-31 17:39:26 +08:00
Justin Starry 8932e4821d
Filter explorer error reports when using custom cluster (#11911) 2020-08-30 22:19:39 +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 2ae71b30ae
Explorer: Fix account history load more behavior (#11689) 2020-08-18 21:04:19 +08:00
Justin Starry 279000eeb3
Explorer: Remove flatMap usage due to browser incompatibility (#11632) 2020-08-14 22:58:38 +08:00
Justin Starry 4773e13ef7
Explorer: add error reporting (#11627) 2020-08-14 17:54:21 +08:00
Justin Starry 55b5957d49
Add token supply info to mint account page (#11584) 2020-08-13 01:31:21 +08:00
Justin Starry a992bb5f94
Use common provider for explorer cached data (#11582) 2020-08-12 22:41:04 +08:00
Justin Starry 8ddb116659
Fix owned token validation in explorer (#11581) 2020-08-12 20:11:38 +08:00
Michael Vines 4d918f83ff Display transaction even if getBlockTime returns an error 2020-08-09 03:31:21 +00: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 67fdf593a2
Split explorer account details page into tabs (#11450) 2020-08-08 00:38:20 +08:00
Justin Starry 4f2f9bd26f
Use new history API in explorer (#11449) 2020-08-07 22:39:22 +08:00
Justin Starry e6aa3a4e07
Parse token instructions in the explorer (#11443) 2020-08-07 18:09:17 +08:00
Justin Starry 1fe762cc79
Disable owned token request on mainnet explorer (#11343) 2020-08-03 12:51:47 +08:00
Justin Starry 4052008c42
Display owned tokens on account details page (#11335) 2020-08-02 21:55:36 +08:00
Justin Starry b6ea9f1861
Clean up explorer data providers (#11334) 2020-08-02 20:18:28 +08:00
Justin Starry 0d8f3139ae Add unified search bar to the explorer 2020-08-02 20:06:51 +08:00
Justin Starry 2300080f68
Improve explorer tx count animation (#11327) 2020-08-01 23:05:20 +08:00
Justin Starry 54d36d2cfb
Add cluster stats tab to explorer (#11325) 2020-08-01 22:05:58 +08:00
Justin Starry 74c44009a7 Fix explorer account history search 2020-06-24 21:01:39 +08:00
Justin Starry ad75f08c43 chore: run latest prettier 2020-06-24 16:14:08 +08:00
Justin Starry 94a5c47861 Add incinerator transaction to cache 2020-06-12 16:32:05 -07:00
Justin Starry 96c02eb436 Cache token supply transactions 2020-06-12 16:32:05 -07:00
Justin Starry 8b95be0ee4 Remove clusterUrl url param 2020-06-12 16:32:05 -07:00
Justin Starry 6c45729694 Move top accounts to supply page and add filter 2020-06-12 16:32:05 -07:00
Justin Starry 9b602edc7a Fix pending transaction error due to missing timestamp 2020-06-12 16:32:05 -07:00
Tyera Eulberg 3f12bf6f52 Default top accounts to all accounts 2020-06-12 16:32:05 -07:00
Justin Starry 7e2eefad3e Add disclaimer stating oldest available slot (#136) 2020-06-12 16:32:05 -07:00
Justin Starry e962d40815 Fix bug causing eager fetching of rich list 2020-06-12 16:32:05 -07:00
Justin Starry 62e330213f Display timestamp unavailable 2020-06-12 16:32:05 -07:00
Justin Starry d842d161cf Add top accounts page 2020-06-12 16:32:05 -07:00
Justin Starry 406f35edfa Add supply stats page 2020-06-12 16:32:05 -07:00
Justin Starry 2312658492 Account history feed 2020-06-12 16:32:05 -07:00
Justin Starry 27650572dd Display transaction timestamp in details view 2020-06-12 16:32:05 -07:00
Justin Starry 5946817978 Show transaction history for deleted accounts 2020-06-12 16:32:05 -07:00
Justin Starry 3e2538919f Spruce up stake account details page 2020-06-12 16:32:05 -07:00
Justin Starry 26e4767fdd Use wasm to decode stake account 2020-06-12 16:32:05 -07:00
Justin Starry 29ec98d0a1 Add account details page 2020-06-12 16:32:05 -07:00
Justin Starry 59288117b9 Remove source tracking for addresses and signatures 2020-06-12 16:32:05 -07:00
Justin Starry b68dc5cf85 Fix false negative not found response 2020-06-12 16:32:05 -07:00
Justin Starry f2a034f938 Fix infinite update loop 2020-06-12 16:32:05 -07:00
Justin Starry 42225446c4 UX improvements 2020-06-12 16:32:05 -07:00
Justin Starry 484a4db626 Add transaction details page 2020-06-12 16:32:05 -07:00
Justin Starry 6eff7f35c9 Refactor transaction provider 2020-06-12 16:32:05 -07:00
Justin Starry f3e677eaab Call getConfirmedTransaction instead of getConfirmedBlock for tx details 2020-06-12 16:32:05 -07:00
Justin Starry 04677cb831 Use react-router Switch to control visible content 2020-06-12 16:32:05 -07:00
Justin Starry e5f69673d7 Show account tx history 2020-06-12 16:32:05 -07:00
Justin Starry 8de34e1f42 Show details for all transaction instructions 2020-06-12 16:32:05 -07:00
Justin Starry 1c1c628b19 Create test account when test url param is present 2020-06-12 16:32:05 -07:00
Justin Starry e47b178d29 Transaction modal fixes 2020-06-12 16:32:05 -07:00
Justin Starry 0bda30e1f7 Update @solana/web3.js to v0.43.0 2020-06-12 16:32:05 -07:00
Justin Starry 0f0b0a20eb Update @solana/web3.js to v0.42.2 2020-06-12 16:32:05 -07:00
Justin Starry 8eabff3911 Add top nav and improve mobile experience 2020-06-12 16:32:05 -07:00
Justin Starry b691f7a77b Update @solana/web3.js to v0.41.2 2020-06-12 16:32:05 -07:00
Justin Starry ed470564e6 Improve the UI of the transaction modal 2020-06-12 16:32:05 -07:00
Justin Starry 35814e77cb Show zero balance for missing accounts 2020-06-12 16:32:05 -07:00