Commit Graph

513 Commits

Author SHA1 Message Date
Josh 084997c4f0
hotfix: avoid passing along additionalSignatures as an option to getConfirmedSignaturesForAddress2 (#16734) 2021-04-22 20:27:17 -07:00
Josh c63a208488
hotfix: don't report to sentry for custom clusters on token account section (#16597) 2021-04-16 10:09:05 -07:00
Justin Starry 013875e787
Fix instruction validation for parsed memo instructions (#16591) 2021-04-16 05:04:06 +00:00
Josh 143496ccba
Explorer: hide irrelevant delegation information displayed for inactive stake (#16467)
* fix: hide irrelevant delegation information displayed for inactive stake

* fix: when inactive_stake equals delegated_stake, display as initialized

* refactor: clean up logic

* fix: reverse logic on showDelegation

* fix: change copy to not delegated
2021-04-14 16:26:31 -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 a7f8239b46
Explorer: use identicon and token layout for unlisted tokens (#16347)
* feat: use identicon and token layout for unlisted tokens

* feat: add identicon to smaller icons and change dependency to current package

* fix: add proper library
2021-04-12 11:25:51 -07:00
Josh 91d5f6ab30
fix: token holdings summary table sums tokens correctly (#16464) 2021-04-10 12:24:56 -07:00
Josh c4646b2bc3
fix: active stake is an epoch off, use getVoteAccounts to sum active stake (#16465) 2021-04-10 12:23:56 -07:00
Josh a1f1f573d5
hotfix: account for custom endpoint possible conditions in stakehistory (#16151) 2021-03-26 17:54:53 +00:00
Josh bf6b098c75
Explorer: add color to price change and updated at time (#16140)
* feat: add color to price change and updated at

* feat: add market cap rank

* fix: rename slug ignore
2021-03-25 21:50:47 +00:00
Josh a15790c9aa
fix: make new stats card look okay on mobile (#16132) 2021-03-25 18:52:28 +00: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
Josh 038f80d7fd
fix: confirmed block timestamp tooltip was incorrect (#16036) 2021-03-19 11:52:43 -07:00
B b503215122
fix: logo rendering (#16005)
fix: logo rendering
2021-03-19 09:56:28 -05:00
B 9b26c45be6
explorer/wormhole (#15948)
* feat: add lending instruction names

* chore: capitalize words

* feat: add wormhole card

* feat: add asset contract

* chore: format
2021-03-17 10:53:50 -05:00
Josh 0c4c89ff4a
explorer: display wormhole bridge details (#15833)
* feat: display wormhole bridge details

* fix: add rel noopener noreferrer

* fix: extract eth address properly

* feat: copyable bridge contract address
2021-03-16 18:47:43 +00:00
Josh a36d2f2d3e
fix: use uiAmountString in token balances component (#15860) 2021-03-15 04:25:09 +00:00
Justin Starry 420174d3dd
explorer: Fix midnight timestamps (#15843) 2021-03-14 11:26:14 +08:00
Justin Starry 485a943958
explorer: Add label for serum dex v1 (#15842) 2021-03-14 10:20:31 +08:00
Justin Starry 3722f46089
explorer: Add token symbol to token label (#15841) 2021-03-14 10:16:32 +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
Justin Starry be99cef593
explorer: Filter program search results by cluster (#15820) 2021-03-12 22:10:38 +08:00
Josh 61c7ce857e
fix: vote timestamp is nullable (#15774) 2021-03-09 15:50:37 +00: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 437d9311fb
fix: structs need to use pick instead of object, and add uiAmountString (#15745) 2021-03-05 14:08:40 -08:00
Josh a43a783aa4
Explorer: update TokenLargestAccounts to use uiAmountString. (#15743)
* feat: bump web3 to 0.94.2

* fix: update token largest accounts component to support uiAmountString

* fix: format code
2021-03-05 20:20:30 +00:00
Josh 11c154dfb9
Explorer: support uiAmountString api updates (#15742)
* fix: support uiAmountString api updates

* fix: remove this uiAmount

* fix: change owned account section and token account section to support BigNumber uiAmountString

* fix: update web3 to latest
2021-03-05 19:34:26 +00:00
Justin Starry f72640c9b2
explorer: Display transaction success stats (#15704) 2021-03-04 23:58:22 +08:00
Justin Starry efa3cd711c
explorer: Add tabs for block program and account stats (#15702) 2021-03-04 21:12:41 +08:00
Justin Starry 7bf430b360
Add serum program to search results (#15703) 2021-03-04 20:48:54 +08:00
Josh 0970653b6a
feat: add two additional Serum markets to Explorer (#15680) 2021-03-03 08:49:40 -08:00
Josh 8d0d6ded01
feat: introduce three new Serum instructions and program ID, rename bpf-upgradeable-loader card (#15679) 2021-03-03 16:43:06 +00:00
Josh 8c73187b1e
fix: expand vote details card to cover all instructions (#15602) 2021-03-01 13:45:19 -08:00
Josh d679eff3fa
fix: remove old hotfix for web3 inner instructions (#15604) 2021-03-01 13:44:43 -08:00
Josh 24af9961d2
hotfix: explorer temporary disable vote instruction card (#15596) 2021-03-01 18:05:51 +00:00
Josh e7bb1b7cd5
feat: introduce upgradeable bpf loader instruction cards (#15563)
* feat: introduce upgradeable bpf loader instruction cards

* feat: text-muted datatype labels consistently
2021-02-26 15:50:37 -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 d62c8e7f3b
fix: explorer vote card has incorrect timestamp conversion (#15552) 2021-02-26 03:22:12 +00:00
Josh 7cb44b1095
feat: add program to vote and memo instruction card (#15523) 2021-02-24 21:01:10 +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 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 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 7b67a6d208
Load memo v2 into genesis for test validator (#15425)
* Load memo v2 into genesis for test validator

* feedback

* versions

* remove .so

* add .so
2021-02-19 15:59:31 +08:00
Josh e0e4bed205
explorer: add error message to copy component (#15423)
* explorer: add error message to copy component

* Merge copyable and copy button components

Co-authored-by: Justin Starry <justin@solana.com>
2021-02-19 03:52:05 +00:00
Josh b9fb595db2
explorer: remove line breaks from wrapped data (#15379) 2021-02-17 12:12:49 -08:00
Justin Starry 4d16b2fcc5
explorer: Add upgradeable loader to search results (#15373) 2021-02-17 23:00:12 +08:00
Justin Starry aaa44355b1
explorer: Display upgradeable program details (#15348) 2021-02-16 18:30:02 +08:00
Josh 762bab7755
explorer: reverse order on market and event queue pubkeys for serum consume events (#15270) 2021-02-11 12:00:03 -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 9e39b815f7
explorer: introduce stake merge instruction card (#15160) 2021-02-08 12:54:11 -08:00
Dan Albert 903a08c4b3
Add USDT to token registry (#15019)
Co-authored-by: publish-docs.sh <maintainers@solana.com>
2021-02-02 15:52:00 -07:00
DR497 cde7b583b8
explorer: Add MAPS to token Registry (#14959) 2021-02-01 12:49:26 +01:00
Josh ad9ea91c1d
explorer: add pagination to block rewards (#14906) 2021-01-28 13:26:06 -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 9411af4a95
explorer: Only report getBlockTime error under max confs (#14869) 2021-01-26 14:57:50 -08:00
Josh a3e0a365a5
explorer: Add timestamps to transaction history (#14782)
* add timestamps to transaction history

* use local timestamps for blocktime display

* revert to showing full universal time systemwide
2021-01-26 12:20:09 -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
mileschet 7604edb16f Added BRZ token on explorer token registry 2021-01-23 11:41:55 -08:00
Leo 561d385281 explorer: fix typo in InitializeMarketDetailsCard 2021-01-23 11:40:03 -08:00
Jon Cinque 170a3aec14
Add new instructions and program id to explorer (#14771) 2021-01-23 12:31:59 +01:00
Josh 1e45b3e6d2
explorer: introduce transfer with seed instruction card (#14730) 2021-01-20 23:49:32 -08:00
dependabot[bot] 5f7d79e4f7
chore:(deps): bump @types/react-select from 3.0.26 to 3.1.2 in /explorer (#14385)
Bumps [@types/react-select](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-select) from 3.0.26 to 3.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-select)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-12 09:48:51 +08:00
dependabot[bot] b87d6cd03d
chore:(deps): bump typescript from 4.0.5 to 4.1.3 in /explorer (#14284)
* chore:(deps): bump typescript from 4.0.5 to 4.1.3 in /explorer

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.5 to 4.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.5...v4.1.3)

Signed-off-by: dependabot[bot] <support@github.com>

* bump

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2021-01-11 09:40:56 +08:00
R. M. Shea 769b8f5613
Remove unlock banner (#14477)
Co-authored-by: Ryan Shea <rmshea@users.noreply.github.com>
2021-01-07 09:54:25 -07:00
Justin Starry 3fc7362486
explorer: Hide banner when lockup has expired (#14473) 2021-01-07 21:26:18 +08:00
Josh a89ba32b24
explorer: remove UTC from cluster time (#14466)
* remove UTC mentions

* remove UTC from cluster stats
2021-01-06 13:02:32 -08:00
Josh 069d6a067c
remove UTC mentions (#14465) 2021-01-06 12:45:01 -08:00
Josh b7b3de528b
explorer: format cluster time and locked stake accounts as utc (#14461) 2021-01-06 09:58:55 -08:00
R. M. Shea a31f5f467b
Add UTC timing, tweak copy (#14460)
* Add UTC timing, tweak copy

* More copy tweaks

* More copy
2021-01-06 10:35:30 -07: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 ecde98401b
explorer: add load button for largest accounts card (#14437) 2021-01-05 11:22:15 -08:00
Josh 33de9300d2
explorer: add Kin to token registry (#14168) 2020-12-16 19:29:26 -08:00
Josh 3a154e8056
explorer: Token history dropdown filter (#14032)
* feat: add filter on token history card

* rename to filter

* use unicode ellipsis

* better naming

* filter options read better and use just pubkey strings

* memoize filtered list

* only fetch filtered

* pre filter tokens

* fix prettier
2020-12-15 20:19:50 -08:00
DR497 eb35c03bef
Fida token (#14111) 2020-12-14 08:11:13 -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 ed15ce0bbe
explorer: infinity stats issue hotfix (#13959) 2020-12-04 10:36:06 -08:00
Josh f2b31c3a89
explorer: prevent raw details from showing on inner instructions (#13951) 2020-12-03 14:31:45 -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 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 6cf6cd2fba
Explorer: introduce Memo Program to search bar (#13865) 2020-11-30 12:09:59 -08:00
Josh ed82bf70f5
hotfix: customUrl effect is preventing redirects, add check (#13742) 2020-11-20 14:02:11 -08:00
Josh c76cba465d
explorer: Rename SYSVARs to Title Case (#13679) 2020-11-19 14:06:24 -08:00
Josh b33e5b87dd
explorer: introduce details card for memo instruction (#13538) 2020-11-19 14:05:55 -08:00
Justin Starry 83799356dd
explorer: Add developer setting to enable customUrl param (#13697) 2020-11-19 08:03:20 -06:00
dr497 536becbfab explorer: Add SRM tee-shirt NFT to the tokenRegistry 2020-11-18 09:14:35 -08:00
DR497 554060b3c5
explorer: Add additional tokens and icons to registry (#13544)
* Add NFTs to the explorer
* Add missing tokens
2020-11-11 22:19:42 -08:00
Michael Vines 2d24160376 Add SPL Associated Token Account Program label to explorer 2020-11-05 23:03:03 +00:00
Josh 67d570d121
explorer: Capitalize underscore sysvar titles (#13428) 2020-11-05 13:36:39 -08:00
Josh cef0d5879f
explorer: Serum DEX instruction full decoding and instruction cards (#13330)
* map serum instructions in tokenhistory card

* add token swap instruction parsing

* add serum instruction builders

* add new serum instruction detail cards

* fix decode bug on cancel order by client id

* avoid parsing unsupported instructions
2020-11-05 13:19:02 -08:00
Josh d3a3a7548c
explorer: add serum new order v2 instruction mapping (#13353) 2020-11-02 11:49:26 -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
Josh 7ddf10e602
explorer: add Wrapped FRONT to token registry (#13299) 2020-10-29 22:37:22 -07:00
Josh ecd74c3786
Explorer: correct system instruction names (#13284)
* fix system instruction names
2020-10-29 13:14:22 -07:00
Justin Starry 636ae12621
Explorer: use explicit types for instruction info (#13257) 2020-10-29 23:46:36 +08: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 5fb8b84d84
Explorer: tweak cluster stats page (#13267) 2020-10-29 13:17:45 +08:00
Justin Starry ffeadd4e29
Explorer: don't throw error for strange token instructions (#13268) 2020-10-29 13:17:35 +08:00
Josh 032a7d36ff
explorer: wrap bytes on bpf-loader-2 write instruction (#13253) 2020-10-28 21:08:24 -07: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
Justin Starry 144bd36674
Explorer: fix confirmed block refetch (#13261) 2020-10-29 10:36:48 +08:00
Justin Starry a74f0f90e4
Explorer: Disable raw button for unknown instructions (#13260) 2020-10-29 10:27:37 +08:00
Justin Starry 2cf44a9e14
Explorer: Show empty state when block has no transactions (#13259) 2020-10-29 09:51:19 +08:00
Justin Starry de71fb9bdd
Explorer: trim whitespace in search bar (#13258) 2020-10-29 09:44:27 +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
Justin Starry 6fa40f10d1
Explorer: Bump react-scripts and typescript to v4 (#13216) 2020-10-28 12:49:28 +08:00
Justin Starry 02bf9ca834
Refresh mint distribution when account info refreshes (#13064) 2020-10-21 18:47:02 +08:00
Justin Starry d63cf1e30a
Update explorer token registry (#13048) 2020-10-21 13:49:43 +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
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
Josh d0596ce9c8
Explorer: MintToChecked: mint authority should be optional (#12704) 2020-10-06 22:34:42 -07:00
Justin Starry 65cc6a69c8
Fix history fetching and inner spl token instructions (#12515) 2020-09-29 21:24:01 +08:00
Justin Starry f0e02d2588
Display raw instruction data as hex in explorer (#12512) 2020-09-27 15:18:22 +08:00
Josh baeba41cfd
support new checked parsed instructions (#12487) 2020-09-25 10:03:55 -07:00
Justin Starry ba7f7cca78
Fix explorer history refresh (#12443) 2020-09-24 14:27:28 +08:00
Justin Starry 59197fb368
Fix multisig signed instruction formatting on explorer (#12439) 2020-09-24 13:17:14 +08:00
Josh de3801da24
introduce additional token instructions (#12381)
* introduce additional token instructions

* change instruction display names to 'Checked'

* display checked instruction amounts and labels nicely
2020-09-23 09:09:23 -07:00
Josh bb72cbe7ae
add token type on token instructions + symbol on amount (#12398) 2020-09-23 07:51:54 -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
Josh 02ba197a06
introduce new serum wrapped token labels (#12342) 2020-09-21 10:19:11 -07:00
Juha Vieresjoki 1211d8118c common component for more readable slot numbers 2020-09-18 10:55:36 -07:00
Justin Starry f03621d24a
Fix explorer token crash on unknown instruction (#12329) 2020-09-18 18:05:31 +08:00
Justin Starry 19f412b85c
Disable sentry in development and catch reporting errors (#12321) 2020-09-18 10:47:58 +08:00
Justin Starry 8d6af087a2
Don't fetch token transaction history for accounts with many holdings (#12304) 2020-09-17 11:27:56 +08:00
R. M. Shea 073cee0143
Update explorer logos (#12027)
Co-authored-by: Ryan Shea <rmshea@users.noreply.github.com>
2020-09-08 08:57:44 -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
Josh 272132fcc2
explorer: 11939 normalize token values largest table (#11952)
* render consistent fixed point on balance, add tilde for approximation

* run format fix

* add comment

* make number values monospaced and add comma formatting
2020-09-08 08:33:40 -07:00
Justin Starry 14f3bafe6f
Bump web3 and add bpf loaders to search results (#12066) 2020-09-05 15:08:05 +08:00
Justin Starry f90e56e6c7
Fix token instruction parsing (#12065) 2020-09-05 14:34:54 +08:00
Justin Starry 055ed72cd9
Add label for break solana program account (#12047) 2020-09-04 21:09:13 +08:00
Josh 28cf896a64
explorer: make wrapped sol available through search (#12003)
* make wrapped sol available through search

* fix formatting

* remove existing wrapped sol constant from utils/tx
2020-09-03 10:38:49 -07: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 729c4a9399
Hide token logos from holdings if unavailable (#11912) 2020-08-30 22:27:05 +08:00
Justin Starry 8932e4821d
Filter explorer error reports when using custom cluster (#11911) 2020-08-30 22:19:39 +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 dc17e2983d
explorer: Fix search bar paste on mobile (#11735) 2020-08-20 22:01:34 +08:00
Justin Starry 2ae71b30ae
Explorer: Fix account history load more behavior (#11689) 2020-08-18 21:04:19 +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 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 1592597d93
Explorer: Fix stake account validation (#11623) 2020-08-14 10:06:37 +08:00
Justin Starry 84a4f743b8
Explorer: fix token history loading animation (#11616) 2020-08-13 23:49:36 +08:00
Justin Starry 6162c2d0d5
Add token registry to explorer (#11612) 2020-08-13 22:57:53 +08:00
Justin Starry 1277b3a8f6
Explorer: Hide token holders table when none found (#11605) 2020-08-13 12:59:34 +08:00
Justin Starry 9f0c20aa5d
Explorer: Update web3.js to v0.70.3 (#11603) 2020-08-13 12:46:37 +08:00
Justin Starry cbccac90ce
Fix explorer mint account validator to accept null owner (#11587) 2020-08-13 02:06:49 +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 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 3d97b04815
Add programs and sysvars to explorer search suggestions (#11467) 2020-08-08 20:01:26 +08:00
Justin Starry 40656911a6
Fix owned token accumulation UI bug in explorer (#11466) 2020-08-08 15:34:59 +08:00
Justin Starry c7eba80836
Organize explorer file structure (#11464) 2020-08-08 14:45:57 +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 ac9787cd1c
Display both slot and block height in explorer (#11447) 2020-08-07 18:15:23 +08:00
Justin Starry e6aa3a4e07
Parse token instructions in the explorer (#11443) 2020-08-07 18:09:17 +08:00
Michael Vines bbb8754b59 Remove update notice 2020-08-05 16:27:32 +00:00
Justin Starry cad36e1b3c
Switch explorer to dark mode by default (#11360) 2020-08-04 22:25:50 +08:00
Justin Starry ebe14415f6
Use more accurate epoch duration calculation in explorer (#11359) 2020-08-04 22:18:09 +08:00
Justin Starry 247e361d23
Make explorer table views more mobile friendly (#11358) 2020-08-04 20:44:16 +08:00
Michael Vines f3e83c080a Add mainnet-beta upgrade-in-process banner 2020-08-03 07:09:34 -07:00
Justin Starry 1fe762cc79
Disable owned token request on mainnet explorer (#11343) 2020-08-03 12:51:47 +08:00
Justin Starry f401ef7996
Linkify all explorer addresses (#11339) 2020-08-03 01:44:47 +08:00
Michael Vines 27a8879574
Update update timeline 2020-08-02 08:57:52 -07:00
Justin Starry 433f262290
Fix explorer bugs (#11336)
* Fix race condition in explorer details fetching

* Fix SOL delta rendering bug
2020-08-02 22:29:40 +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 d4eb49d252 Add navbar and remove tabbed page layout 2020-08-02 20:06:51 +08:00
Justin Starry eab48c99d7 Display SOL uniformly in 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
Michael Vines efcf9ff125
Adjust time window on mainnet-beta upgrade banner 2020-07-31 08:17:08 -07:00
Justin Starry bafb2e6e84
Adjust explorer banner margins (#11233) 2020-07-28 13:20:25 +08:00
Michael Vines aa8d6083c4 Add mainnet beta upgrade announcement 2020-07-27 10:24:45 -07:00
Justin Starry f796adc5ea
Add announcement banner to explorer (#11210)
* Add announcement banner to explorer

* Remove ^M and trailing spaces

* Update Banner.tsx
2020-07-26 21:11:27 +08:00
Justin Starry 74c44009a7 Fix explorer account history search 2020-06-24 21:01:39 +08:00
Justin Starry d989cc60f6 Fix explorer cluster status button styling on mobile 2020-06-24 16:49:51 +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 81292253b5 Remove duplicate information in create account w seed details section 2020-06-12 16:32:05 -07:00
Justin Starry d00da9e4b7 Update src/components/TransactionDetails.tsx
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-06-12 16:32:05 -07:00
Justin Starry 183095feac Display recent blockhash if not a nonce transaction 2020-06-12 16:32:05 -07:00
Justin Starry d8f3081b11 Rename blockhash label to nonce to reduce ambiguity 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 03f7d28aff Remove all but cluster url param when navigating 2020-06-12 16:32:05 -07:00
Justin Starry d5421266f5 Reorder TopAccountsCard.tsx 2020-06-12 16:32:05 -07:00
Tyera Eulberg 851c0863dc Default top-account filter to circulating 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 16b0ee0a21 Improve background color contrast 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 a15ea32f16 Fix unnecessary reload on supply page 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 94531f0879 Add result and details link to account history table 2020-06-12 16:32:05 -07:00
Justin Starry 612ef1bc10 Fix format 2020-06-12 16:32:05 -07:00
Justin Starry 05d2bf21d2 Explicitly move copy tooltip to the right 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 c5dcc3c378 Improve transaction details page copy 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 23637d55b2 Make lockup time less ambiguous 2020-06-12 16:32:05 -07:00
Justin Starry 5176a29955 Change copy for stake status 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 4d94de92c5 Use authority in copy, hide default lockup info 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 b33d7cd893 Add support for more system instructions 2020-06-12 16:32:05 -07:00
Justin Starry 2d00502354 Add stake instruction support 2020-06-12 16:32:05 -07:00
Justin Starry 47acdfebff Move system ix details cards 2020-06-12 16:32:05 -07:00
Justin Starry 0df52938b2 Add key index to tx instructions 2020-06-12 16:32:05 -07:00
Justin Starry 01b99a0570 Add support for more system instruction types 2020-06-12 16:32:05 -07:00
Justin Starry 7eb792a0cc Show blockhash in transaction details 2020-06-12 16:32:05 -07:00
Justin Starry 13af01dcc4 Refactor instruction details components 2020-06-12 16:32:05 -07:00
Justin Starry 285ae1481f Center loading card 2020-06-12 16:32:05 -07:00