125 Commits

Author SHA1 Message Date
Jack May
8a136736ad
Update sysvar docs (#18125) 2021-06-22 09:59:48 -07:00
Jon Cinque
1b1d34da59
Refactor stake program into solana_program (#17906)
* Move stake state / instructions into solana_program

* Update account-decoder

* Update cli and runtime

* Update all other parts

* Commit Cargo.lock changes in programs/bpf

* Update cli stake instruction import

* Allow integer arithmetic

* Update ABI digest

* Bump rust mem instruction count

* Remove useless structs

* Move stake::id() -> stake::program::id()

* Re-export from solana_sdk and mark deprecated

* Address feedback

* Run cargo fmt
2021-06-15 18:04:00 +02:00
Sarat Limawongpranee
3657469826
Fix typo in docs (#17920) 2021-06-14 10:33:23 -06:00
Haik Dulgarian
54155f875a
minor fixes to punctuation and typos (#17881)
* fix minor typos and punctuation

* fix minor typos and punctuation

* rewording for clarity and typo corrections

* rewording for clarity and typo corrections

* rewording for clarity and typo corrections

Co-authored-by: Gregg Dourgarian <greggd@aidacreative.com>
2021-06-13 23:35:10 -07:00
oncecsc
10c6e771b5
fix getBlock API reference (#17661) 2021-06-02 00:11:36 -07:00
Tim Hagn
53c91ee89e
feat: docs i18n support (continuation from #14818) (#17190)
* Initial commit for i18n support

* Bring out index page

* Lint
	modified:   src/pages/index.js

* More Crowdin ephemera

* copy src content to i18n/**/docusaurus-plugin-content-docs/current folders

* run write-translations

* remove superflous files in i18n

* fix formatting

* remove icons folders from translations, add ja, pt, vi translations

* fix formatting

* update translation JSON files

* add crowdin support & crowdin:sync command, sync with crowdin

* exclude failing locales

* remove i18n from git cache, add write-heading-ids script

* add crowdin:sync to before_install.sh script

* add write-i18m shortening script & crowdin:download script (also to before_install.sh)

* move crowdin:download from before_install.sh to prebuild hook

* remove prebuild hook

* remove crowdin script, bump deps

* re-add cli/usage

* update package-lock.json

* add translation sync to build.sh for master

* update README

* add ja to localesNotBuilding, write e-ids

* fix formatting

* get on sync with master

* replace check for master branch

* change build script to work on travis

* use refs instead of names

* fix build.sh

* replace head ref check with channel check

* get stable channel in build.sh

* remove zip

* remove header ids

Co-authored-by: rmshea <8948187+rmshea@users.noreply.github.com>
2021-05-27 21:21:37 -07:00
Michael Vines
8eab0e8602
Bump version to v1.8.0 (#17541) 2021-05-27 08:51:53 -07:00
Tyera Eulberg
ab581dafc2
Add block height to ConfirmedBlock structs (#17523)
* Add BlockHeight CF to blockstore

* Rename CacheBlockTimeService to be more general

* Cache block-height using service

* Fixup previous proto mishandling

* Add block_height to block structs

* Add block-height to solana block

* Fallback to BankForks if block time or block height are not yet written to Blockstore

* Add docs

* Review comments
2021-05-26 22:16:16 -06:00
Michael Vines
9541411c15 Plumb transaction-level rewards (aka "rent debits") into the getTransaction RPC method 2021-05-27 03:05:05 +00:00
Felipe Lima
7dfc1d9790 Fix typo in docs 2021-05-26 19:49:23 -07:00
Michael Vines
cbce440af4 simulateTransaction can now return accounts modified by the simulation 2021-05-26 14:20:23 -07:00
Jon Cinque
bb72ab7f1b
docs: Add find_program_address and example (#17515) 2021-05-26 15:25:05 +00:00
Tyera Eulberg
e9bc1c6b07
Add last valid block height to rpc Fees (#17506)
* Add last_valid_block_height to fees rpc

* Add getBlockHeight rpc

* Update docs
2021-05-26 07:26:19 +00:00
Michael Vines
3d40ec3c88 Add missing fields from getClusterNodes documentation 2021-05-26 02:00:30 +00:00
Justin Starry
660d37aadf sigVerify conflicts with replace, add tests 2021-05-25 17:32:00 -07:00
Justin Starry
e14f3eb529 rename flag 2021-05-25 17:32:00 -07:00
Justin Starry
96cef5260c Add a flag to simulateTransaction to use most recent blockhash 2021-05-25 17:32:00 -07:00
Jack May
4eb6deee2d
Update sysvar docs (#17493) 2021-05-25 16:57:53 -07:00
Nikita
d41266e4e9
rpc: add context toggle to getProgramAccounts (#17399)
* fix(rpc): return context in get_program_accounts

* doc(rpc): document withContext flag

* fix(rpc): fix comment

Co-authored-by: Michael Vines <mvines@gmail.com>

* fix(rpc): fix doc

Co-authored-by: Michael Vines <mvines@gmail.com>

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-05-22 07:12:21 +00:00
Jack May
8c073b2c94 Update getrandom bpf dependency 2021-05-21 08:55:47 -07:00
Marcin Zawiejski
611628a402
fixed getProgramAccounts fields list (#17278) 2021-05-17 14:23:30 +00:00
Sebastian Ibarguen
d6ab4196ea
Remove duplicate std::net reference (#17254) 2021-05-16 18:51:41 -06:00
Michael Vines
515f8a21d5 Add NEW labels for RPC methods introduced in v1.7 2021-05-14 21:22:52 +00:00
Trent Nelson
754c708473 test-validator: Display more cluster info in dash 2021-05-14 08:36:08 +00:00
Trent Nelson
3e0c0abb53 Update docs/src/developing/test-validator.md 2021-05-13 17:28:31 +00:00
Trent Nelson
7868df3211 Update docs/src/developing/test-validator.md 2021-05-13 17:28:31 +00:00
Trent Nelson
3214105a21 Update docs/src/developing/test-validator.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-05-13 17:28:31 +00:00
Trent Nelson
e08687acfd Update docs/src/developing/test-validator.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-05-13 17:28:31 +00:00
Trent Nelson
38d7e9a4c4 Update docs/src/developing/test-validator.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-05-13 17:28:31 +00:00
Trent Nelson
5b13d4057b Update docs/src/developing/test-validator.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-05-13 17:28:31 +00:00
Trent Nelson
056c1a7b50 Update docs/src/developing/test-validator.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-05-13 17:28:31 +00:00
Trent Nelson
768a2ebe9d docs: Add docs for solana-test-validator 2021-05-13 17:28:31 +00:00
Justin Starry
a1df57a4ea
Add chinese translations to docs (#17125)
* import zh translations

* Fix broken links

* fix whitespace
2021-05-09 00:46:24 +08:00
Michael Vines
d6c076f1b6 getBlockProduction now correctly reports block production 2021-05-07 19:04:51 -07:00
Jordan Sexton
40c31f87e0
Fixing a broken link in the docs (#16975) 2021-05-03 10:04:55 -05:00
Max Block
43ccaf14b0
Update sysvars.md (#16998)
a typo
2021-05-03 03:36:26 -06:00
srinivas valekar
c003f8e93c
Corrected typo in calling between programs document (#16991)
* Corrected typo in calling between programs document

* corrected another typo

Co-authored-by: Srinivas Valekar <srinivasvalekar@Srinivass-MacBook-Pro.local>
2021-05-02 12:03:51 -06:00
Justin Starry
545e037e38
Docs cleanup (#16964)
* Run lint:fix on docs

* Update dependencies

* Run prettier

* Run lint
2021-04-30 16:20:56 +08:00
Trent Nelson
3d98321b38 docs: fix copy-pasta breaking typo in getRecentBlockhash example 2021-04-30 04:03:15 +00:00
Michael Vines
542d88929f Add getBlockProduction RPC method 2021-04-28 20:02:54 -07:00
Michael Vines
59fc33635a Add getVoteAccounts RPC method parameter to restrict results to a single vote account 2021-04-27 04:27:15 +00:00
Tyera Eulberg
5eb5d9b2f5
Update bpf loader info on native-programs docs (#16840)
* Update bpf loader info on native-programs docs

* Link to program deployment docs
2021-04-26 20:09:44 +00:00
Josh
ec37a843a4
docs: getInflationReward rpc output fields should be in lower camel case (#16802) 2021-04-24 19:13:02 +00:00
Tyera Eulberg
da58f20a99
Restore text wrapping (#16776) 2021-04-23 17:03:21 +00:00
strykerin
e9a616cfc2
fix reference to Rust Restrictions section (#16763) 2021-04-23 14:40:03 +08:00
strykerin
c217ee3a00
docs: fix formatting issue (#16761) 2021-04-23 09:41:20 +08:00
Jack May
b22c13dcd7
Update secp instruction link in docs (#16729) 2021-04-21 21:33:05 -07:00
Michael Vines
b8b54567b1 Clean up "APR" language around inflation rewards 2021-04-21 19:02:03 -07:00
Michael Vines
6004c0abf5 getLeaderSchedule now supports filtered results based on validator identity 2021-04-21 17:59:26 -07:00
Jack May
bb2b4c7e0b
Update float docs (#16695) 2021-04-20 17:28:30 -07:00