Commit Graph

513 Commits

Author SHA1 Message Date
Will Roeder 7783030437
Adding NFT support to the Explorer (#20009)
* Adding NFT support to the explorer / copying over required Metaplex logic

* Fixing a whitespace issue causing validation to fail

* Removed MetadataProvider and instead metadata is being stamped on TokenProgramData

* Fixing EOF new line sanity check issue

* Added styling improvements to the Creator dropdown and NFT asset

* Forgot to run Prettier

* Creator address links were only redirecting to Mainnet. This redirects to the appropriate cluster

* Removed dependencies not required for Explorer based use. Fixed package-lock.json because of a legacy npm version

* Removed react-content-loader and popperjs

* Removed MeshArt. Nobody likes VR anyways

* Capped HTML animation asset width to 150px

* Added an Editon check to properly identify NFTs

* Refactoring away for un-necessary helpers

* Dropped antd and added an image loading placeholder

* Added a HTML animation flickering fix

* Removed arweave check for valid uri properties

* Resolving some nit comments and cleaning up

* Adding Tooltips to better explain the content in the NFT Header

* Started consuming MasterEdition data which is being used to display Seller Fee and Max Supply information in the Token Account Section

* Fixing a bug where Edition NFTs weren't properly supported

* Added better Edition support and labeling when there isn't Master Edition information added to metaplex metadata

* Fixed Max Supply issue where 0 should be displayed as 1

* Updated tooltips to be shorter and more user friendly

* Separting NFTHeader from AccountDetailsPage, adding a new TokenSection for NFTs and adding some cleanup
2021-10-05 14:30:05 -04:00
Larry Jarry 41c160d582
Adds Quarry Protocol programs to the Solana Explorer (#19936)
* Adds Quarry Protocol programs to the Solana Explorer

* Formatting
2021-10-01 13:21:06 +00:00
Justin Starry 5952b65932
explorer: Add epoch details page (#20335) 2021-09-29 23:08:19 -04:00
Justin Starry 58f8713292
explorer: Display confirmed block's child slot (#20322) 2021-09-29 19:50:27 +00:00
Josh 5c35ab619d
feat(explorer): load and display transaction details when commitment is confirmed (#20053)
* feat(explorer): load and display transaction details when commitment is confirmed

* feat: rename DetailsCard to DetailsSection

* fix: prevent details from showing when transaction unavailable
2021-09-29 19:23:40 +00:00
Justin Starry 32ece63338
explorer: Display block timestamp (#20309) 2021-09-29 15:15:45 +00:00
Justin Starry f58501b4b9
explorer: Make account owner program label clearer (#20214) 2021-09-25 16:30:09 +00:00
Justin Starry f8827e2f08
Update serum program labels (#20155) 2021-09-24 04:48:41 +00:00
underscorepeter 5402a77c63
Update Step swap program name (#20112)
* Update Step swap program name

* Fix lint error
2021-09-23 19:34:01 -04:00
Ryan M. Shea 8dbed193c2
Add new logos to README files and docs (#20049)
* Add new logos to README files and docs

* Add explorer logos
2021-09-21 13:35:36 -06:00
Ruud van Asseldonk fb0c590090
Add Lido for Solana program address label to explorer (#19870) 2021-09-15 09:52:20 -05:00
Justin Starry 4cc17ec6a7
explorer: Fix wrapping for pretty hex data (#19835) 2021-09-13 17:07:13 -05:00
Justin Starry af005d79ad
explorer: Display invoked programs in block transaction list (#19815) 2021-09-12 19:05:46 -05:00
Justin Starry ab152f1319
explorer: Pretty print instruction data hex strings (#19813) 2021-09-12 16:02:11 -05:00
Siong d2731a2d93
add Mercurial to Solana Explorer. (#19812)
* add Mercurial to Solana Explorer.

* format fix.

* alphabetize the program.
2021-09-12 14:47:16 +00:00
Michael Huang c8b285bce0
fix mislabeled SUNNY program on explorer (#19809)
* fix mislabeled SUNNY program on explorer

* Fix type error

* prettier
2021-09-12 13:10:12 +00:00
Justin Starry f8870ff1e3
explorer: Display writable badge instead of readonly badge (#19808) 2021-09-12 07:46:08 +00:00
tmoc 4afd6dddc8
Adding Orca program IDs (#19731) 2021-09-08 23:41:53 +00:00
Justin Starry 37fe5139cc
Add more program labels to explorer (#19630) 2021-09-06 22:00:13 +00:00
microwavedcola1 46db029a00
Bump mango client used by explorer, previous version was breaking explorer builds (#19668)
* Bump mango client used by explorer, previous version was breaking explorer builds

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* run prettier

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2021-09-06 14:41:18 -07:00
microwavedcola1 f7a5c0301a
Mango v3 integration (#19437)
* mango v3 integration

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* more instructions InitMangoAccount, Deposit, Withdraw, InitSpotOpenOrders, ConsumeEvents

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* add support for addPerpMarket

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* code review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* make group config handling generic

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* code review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix issue where rpc calls would be done infinitely - basically react useeffect (when to change) was not narrow enough + added some caching

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2021-09-04 00:01:29 +02:00
dependabot[bot] bbc4fdb767
chore:(deps): bump typescript from 4.3.5 to 4.4.2 in /explorer (#19463)
* chore:(deps): bump typescript from 4.3.5 to 4.4.2 in /explorer

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* fix error type

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2021-09-03 18:05:13 +00:00
Josh 2c648cc6b6
fix: support uninitialized upgradeable program account in AccountSection (#19268) 2021-08-17 12:07:10 -07:00
Josh 5fde4ee3ae
fix: price can be unexpectedly missing even under Coingecko success result (#19209) 2021-08-12 18:12:07 +00:00
Justin Starry f5ce2c2d63
Add incinerator to explorer search results (#19125) 2021-08-09 16:10:42 +00:00
Josh 93c20d0a47
feat: show transaction errors in log (#18843) 2021-07-26 13:54:50 -07:00
Sebastian Bor 2f3df8cce0
Explorer: Show simulation error for Upgrade instruction with none existing buffer (#18838) 2021-07-22 16:28:04 +01:00
Sebastian Bor b867fa154e
Explorer: Initialise instruction logs for single line system log (#18777) 2021-07-21 17:52:57 +01:00
Sebastian Bor 2bc7edfd01
Explorer: Include loader ids in program labels (#18778) 2021-07-21 11:23:47 +01:00
Josh 8549c19f1a
Explorer: introduce Coingecko price cards on mint pages (#18653)
* feat: add coingecko prices, market caps, volume to token account

* feat: add updated time to price widget

* feat: add loading state to coingecko and break front page price data into widgets

* fix: prevent flicker on refresh
2021-07-20 09:43:17 -07:00
Josh d9970c0a7d
fix: only bind cluster stats on working connections (#18763) 2021-07-19 17:59:47 +00:00
Josh 74b29c0b6f
feat: localize token supply number (#18654) 2021-07-14 04:09:44 +00:00
Josh d2b07dca9d
fix: regression in rewards provider where lowestFetched is off by one (#18392) 2021-07-02 19:06:40 +00:00
Josh f871afd548
fix: prevent negative count up period on tps card (#18344) 2021-07-01 00:47:54 +00:00
Josh 50deba1f10
feat: additional serum instructions (#18209) 2021-06-24 22:12:47 +00:00
Justin Starry 522062350b
explorer: retain inspector signatures and show simulation error (#18178) 2021-06-23 16:00:49 -05:00
Josh 483a1477f3
Explorer: display message when block rewards not found for interval (#17943)
* fix: disable block not found error message and give feedback for rewards not found

* feat: add lowest available epochs for rewards

* feat: make sure current epoch is not fetched
2021-06-23 13:49:52 -07:00
Justin Starry 67795f5baa
explorer: increase color contrast (#18124) 2021-06-22 00:33:55 +00:00
Justin Starry 1c88189a1c
explorer: Add transaction inspector (#17769)
* Add SolBalance component helper

* Add transaction inspector

* Feedback
2021-06-21 18:53:06 -05:00
dependabot[bot] e440d00ba0
chore:(deps): bump prettier from 2.3.0 to 2.3.1 in /explorer (#17785)
* chore:(deps): bump prettier from 2.3.0 to 2.3.1 in /explorer

Bumps [prettier](https://github.com/prettier/prettier) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.3.0...2.3.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* fix formatting

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2021-06-11 16:52:27 -07:00
Justin Starry 179856c13a
explorer: Display correct list of block programs (#17489) 2021-05-26 08:21:07 -07:00
Josh 752cd7d15e
feat: use specialized explorer endpoints (#17516) 2021-05-26 07:09:35 -07:00
dependabot[bot] 744f4dd834
chore:(deps): bump prettier from 2.2.1 to 2.3.0 in /explorer (#17454)
* chore:(deps): bump prettier from 2.2.1 to 2.3.0 in /explorer

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.0)

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

* format

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2021-05-24 21:24:11 -07:00
Josh 741f99ebb6
Explorer: introduce rewards tab for stake/vote accounts (#16851)
* feat: introduce staking rewards tab

* feat: take into consideration stake activation

* fix: report fetch errors

* fix: find rewards all the way to epoch 0

* fix: find rewards all the way to epoch 0

* fix: autocomplete error

* fix: load one page at a time
2021-05-20 14:00:48 -07:00
Josh 8a574baae2
Explorer: add token market prices from Coingecko (#17289)
* feat: add coingecko prices to tokens with associated coingeckoId

* feat: useCoingecko util
2021-05-17 12:43:18 -07:00
Justin Starry 0a6fa1999a
explorer: Fix bonfida dependency (#17120)
* explorer: Fix bonfida dependency

* fix import
2021-05-08 15:09:14 +08:00
Josh 769136f586
feat: associated token program card (#17043) 2021-05-05 11:49:05 -07:00
Josh 1594a7f11a
fix: change unlisted to unknown for unknown token accounts (#16981) 2021-04-30 15:21:47 -05:00
DR497 0ef5a9b1d7
explorer: add Bonfida Bots instructions (#16872)
* explorer: add Bonfida Bots instructions

* Update explorer/src/components/instruction/BonfidaBotDetails.tsx

Co-authored-by: Josh <josh.hundley@gmail.com>

* explorer: Bonfida Bot instructions fixes

Co-authored-by: Josh <josh.hundley@gmail.com>
2021-04-29 15:47:10 -07:00
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 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