mergify[bot]
5871462241
Fix token rpc-client methods (bp #11361 ) ( #11362 )
...
* Fix token rpc-client methods (#11361 )
* Convert None to error in parse_keyed_accounts
* Allow encoding configuration in getTokenAccounts methods
(cherry picked from commit d0144ce382
)
# Conflicts:
# core/src/rpc.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-04 18:40:39 +00:00
mergify[bot]
c769bcc418
Add getTokenLargestAccounts endpoint (bp #11322 ) ( #11338 )
...
* Add getTokenLargestAccounts endpoint (#11322 )
(cherry picked from commit d1b2e6cdf2
)
* Rebase on v1.2
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-08-02 17:58:55 +00:00
Michael Vines
f06a4c7861
Update spl-token and spl-memo
2020-08-02 07:53:46 -07:00
mergify[bot]
b0e14ea83c
Add token rpc endpoints to rpc-client (bp #11315 ) ( #11320 )
...
* Add token rpc endpoints to rpc-client (#11315 )
(cherry picked from commit 9bcfc51df1
)
# Conflicts:
# client/src/rpc_client.rs
* Fix conflicts
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-31 23:10:29 +00:00
Michael Vines
2f8d0f88d6
Avoid spl-sdk dependency, which inhibits crate publishing
2020-07-31 00:05:13 +00:00
mergify[bot]
c852923347
Reject unsigned transactions sent via RPC (bp #11282 ) ( #11287 )
...
* Add failing test for TX sent via RPC with no signatures
(cherry picked from commit b962b2ce2d
)
* Dereplicode send_transaction and request_airdrop RPC handlers
(cherry picked from commit a7079e4dde
)
* Add new RPC error for TXs with no signatures
(cherry picked from commit 9778fedd7a
)
* Reject TXs sent via RPC with no signatures
(cherry picked from commit a888f2f516
)
Co-authored-by: Trent Nelson <trent@solana.com >
2020-07-30 08:17:43 +00:00
mergify[bot]
a7f4d1487a
Add SPL Token-specific rpc endpoints (bp #11231 ) ( #11261 )
...
* Add SPL Token-specific rpc endpoints (#11231 )
* Simplify account-decoder program ids + spl_token helper
* Spl program namespace version
* Add getTokenAccountBalance endpoint
* Remove token program id from getTokenAccountBalance request
* Add getTokenSupply endpoint
* Remove token program id from getTokenSupply request
* Add getTokenAccountsByOwner/Delegate endpoints
* Remove token program id from getTokenAccountsByOwner/Delegate requests
* Named parameter
(cherry picked from commit b45ac5d4db
)
# Conflicts:
# Cargo.lock
# account-decoder/Cargo.toml
# core/Cargo.toml
# core/src/rpc.rs
# transaction-status/Cargo.toml
* Fix backport
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-29 17:08:21 +00:00
Trent Nelson
9978971bd9
Fill out missing RPC request received debug logging
2020-07-29 02:04:34 +00:00
Michael Vines
b07b6e56fa
getConfirmedBlocks now has an upper limit on slot range
...
(cherry picked from commit aef6bf272e
)
2020-07-10 15:40:03 -07:00
Tyera Eulberg
f7fb5aebac
v1.2 instruction and account decoding backports ( #10939 )
...
* Revert "Rpc: add filter to getProgramAccounts (#10888 ) (#10932 )"
This reverts commit 9311a6e356
.
* Add jsonParsed option for EncodedTransactions; add memo parser (#10711 )
* Add jsonParsed option for EncodedTransactions; add memo parser
* Use kebab case for program names
* Add account-key parsing
* Add parse test
* Update transaction encoding docs (#10833 )
* Add account-decoder utilities (#10846 )
* Fix comment and make less pub
* Add account-decoder crate and use to decode vote and system (nonce) accounts
* Update docs
* Rename RpcAccount struct
* s/Rpc/Display
* Call it jsonParsed and update docs
* Revert "s/Rpc/Display"
This reverts commit 6e7149f503
.
* s/Rpc/Ui
* Add tests
* Ui more things
* Comments
* Update struct prefixes to Ui (#10874 )
* Update comments
* Use Ui prefix
* Rpc: add filter to getProgramAccounts (#10888 )
* Add RpcFilterType, and implement CompareBytes for getProgramAccounts
* Accept bytes in bs58
* Rename to memcmp
* Add Memcmp optional encoding field
* Add dataSize filter
* Update docs
* Clippy
* Simplify tests that don't need to test account contents; add multiple-filter tests
2020-07-07 09:35:35 -06:00
Tyera Eulberg
9311a6e356
Rpc: add filter to getProgramAccounts ( #10888 ) ( #10932 )
...
* Add RpcFilterType, and implement CompareBytes for getProgramAccounts
* Accept bytes in bs58
* Rename to memcmp
* Add Memcmp optional encoding field
* Add dataSize filter
* Update docs
* Clippy
* Simplify tests that don't need to test account contents; add multiple-filter tests
2020-07-06 21:45:12 +00:00
mergify[bot]
8c706892df
Rpc: Add getStakeActivation endpoint (bp #10902 ) ( #10930 )
...
* Rpc: Add getStakeActivation endpoint (#10902 )
* Add getStakeActivation endpoint
* Add docs
* Update docs/src/apps/jsonrpc-api.md
Co-authored-by: Michael Vines <mvines@gmail.com >
* Rework return type
* Update docs
* Rebase
Co-authored-by: Michael Vines <mvines@gmail.com >
(cherry picked from commit 4de0713aa3
)
* Fix build
Co-authored-by: Tyera Eulberg <teulberg@gmail.com >
Co-authored-by: Tyera Eulberg <tyera@solana.com >
2020-07-06 21:23:27 +00:00
mergify[bot]
b903158543
getInflationRate now only supports the current epoch ( #10887 )
...
(cherry picked from commit d53228e69d
)
Co-authored-by: Michael Vines <mvines@gmail.com >
2020-07-02 03:36:47 +00:00
mergify[bot]
cefe46e981
Clean up rpc module ( #10812 ) ( #10815 )
...
* Clean up rpc module
* Simplify getting bank
(cherry picked from commit 62b873b054
)
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-26 01:59:06 +00:00
mergify[bot]
55b92c16da
Remove fee-payer guesswork from Message and Transaction (bp #10776 ) ( #10785 )
...
* Remove fee-payer guesswork from Message and Transaction (#10776 )
* Make Message::new_with_payer the default constructor
* Remove Transaction::new_[un]signed_instructions
These guess the fee-payer instead of stating it explicitly
(cherry picked from commit 1c498369b5
)
# Conflicts:
# cli/src/nonce.rs
# core/src/rpc.rs
# ledger/src/blockstore.rs
# programs/bpf/tests/programs.rs
* Fix merge
Co-authored-by: Greg Fitzgerald <greg@solana.com >
2020-06-25 01:10:23 +00:00
mergify[bot]
63314de516
Remove redundant BankForks parameter ( #10537 ) ( #10538 )
...
automerge
2020-06-12 16:41:21 -07:00
mergify[bot]
5dd40d7d88
Enable jsonrpc client ( #10522 ) ( #10525 )
...
automerge
2020-06-11 17:19:26 -07:00
mergify[bot]
055f808f98
Clean up delinquency slot distance computation ( #10479 )
...
automerge
2020-06-09 14:22:37 -07:00
mergify[bot]
0404878445
Add SendTransactionService ( #10471 )
...
automerge
2020-06-09 12:25:05 -07:00
mergify[bot]
c81adaf901
Remove lock around JsonRpcRequestProcessor ( #10417 ) ( #10451 )
...
automerge
2020-06-07 23:04:56 -07:00
mergify[bot]
f7aee67023
RPC simulateTransaction endpoint now returns program log output ( #10432 ) ( #10444 )
...
automerge
2020-06-06 11:57:24 -07:00
mergify[bot]
bd19f7c4cb
Avoid AccountInUse errors when simulating transactions ( #10391 ) ( #10420 )
...
automerge
2020-06-04 20:54:08 -07:00
mergify[bot]
ae1a0f57c5
Add preflight checks to sendTransaction RPC method (bp #10338 ) ( #10363 )
...
automerge
2020-06-01 22:27:30 -07:00
mergify[bot]
4dd6591bfd
Added --health-check-slot-distance ( #10324 ) ( #10331 )
...
automerge
2020-05-29 17:10:46 -07:00
mergify[bot]
163217815b
Improve Rpc inflation tooling (bp #10309 ) ( #10322 )
...
automerge
2020-05-29 14:09:41 -07:00
Michael Vines
ed928cfdf7
Add commitment parameter to getFeeCalculatorForBlockhash ( #10255 ) ( #10296 )
...
automerge
2020-05-28 13:22:46 -07:00
mergify[bot]
c67596ceb4
Add mechanism to get blockhash's last valid slot ( #10239 ) ( #10253 )
...
automerge
2020-05-26 14:33:11 -07:00
Tyera Eulberg
2928c5d103
Add SingleGossip commitment level to use for subscriptions ( #10147 )
...
automerge
2020-05-22 12:55:17 -07:00
Tyera Eulberg
12a3b1ba6a
Fixup deserialize_bs58_transaction, and make a few error types more targeted ( #10171 )
...
automerge
2020-05-21 17:30:02 -07:00
Michael Vines
324cfd40f0
Add v0 REST APIs for circulating and total supply ( #10102 )
2020-05-20 20:04:07 -07:00
sakridge
ce17de7d25
Add option to wait for a specific epoch length to bench-tps ( #10083 )
2020-05-20 16:42:46 -07:00
Michael Vines
417f0e41fa
Add stake-o-matic ( #10044 )
...
automerge
2020-05-20 16:15:03 -07:00
Michael Vines
427c78d891
Add SimulateTransaction RPC endpoint ( #10106 )
...
automerge
2020-05-19 12:08:19 -07:00
Tyera Eulberg
bac4aec16f
Trigger RPC notifications after block commitment cache update ( #10077 )
...
* Fixup commitment-aggregation metric
* Trigger notifications after commitment-cache update
* Fixup fn name
* Add single-confirmation commitment level
* Rename to highest_confirmed_slot
* Pass commitment-cache info directly to notifications
* Use match
* Update commitment docs
* Update out of date pubsub docs
2020-05-18 12:49:01 -06:00
Kristofer Peterson
58ef02f02b
9951 clippy errors in the test suite ( #10030 )
...
automerge
2020-05-15 09:35:43 -07:00
Jack May
eb1acaf927
Remove archiver and storage program ( #9992 )
...
automerge
2020-05-14 18:22:47 -07:00
Tyera Eulberg
ee7f15eff1
Rpc: optionally filter getLargestAccounts by circulating/nonCirculating ( #10007 )
...
* Add circ/non-circ filter to getLargestAccounts
* Plumb largest accounts into client and cli
* Bump timeout toward CI flakiness
* Update docs
2020-05-12 21:05:05 -06:00
Michael Vines
84b6120983
getClusterNodes RPC API now includes the node software version ( #9990 )
2020-05-11 21:30:01 -07:00
Michael Vines
2521f75c18
Advertise node software version in gossip ( #9981 )
...
* Advertise node version in gossip
* Remove solana_clap_utils::version! macro
2020-05-11 15:02:01 -07:00
Tyera Eulberg
965204b8e0
Check slot cleaned up for RPC blockstore/slot queries ( #9982 )
...
automerge
2020-05-11 14:47:40 -07:00
Tyera Eulberg
3ee702a922
Rpc: Add getCirculatingSupply endpoint, redux ( #9953 )
...
* Add Bank.clock() helper
* Add non-circulating calculations
* Plumb getSupply rpc endpoint
* Add docs for getSupply, and remove getTotalSupply from docs
* Add pubkeys! procedural macro
* Use procedural macro in non_circulating_supply
2020-05-09 12:05:29 -06:00
Tyera Eulberg
627bc7e3a9
Rpc: Filter blockstore data by cluster-confirmed root ( #9873 )
...
automerge
2020-05-04 18:39:27 -07:00
Tyera Eulberg
f5b0d13f08
Rpc: add getLargestAccounts endpoint ( #9869 )
...
automerge
2020-05-04 16:46:10 -07:00
Tyera Eulberg
6deaf649ef
Add commitment Root variant, and add fleshed out --commitment arg to Cli ( #9806 )
...
automerge
2020-04-29 21:55:33 -07:00
Tyera Eulberg
efb4988d10
Rpc: remove unwraps ( #9793 )
...
automerge
2020-04-29 12:06:09 -07:00
Tyera Eulberg
655e3bc418
Rpc: Use cluster largest_confirmed_root as commitment max ( #9750 )
...
automerge
2020-04-28 10:20:43 -07:00
Tyera Eulberg
a12428a5b8
Use Blockstore lowest_slot to start root iterator ( #9738 )
2020-04-28 10:22:10 -06:00
Tyera Eulberg
a7f33b5014
Cache banks in BankForks until optional largest_confirmed_root ( #9678 )
...
automerge
2020-04-24 15:49:57 -07:00
Greg Fitzgerald
76b1c2baf0
One less alloc per transaction ( #9705 )
...
* One less alloc per transaction
* Fix benches
* Fix compiler warnings in bench build
* Fix move build
* Fix bench
2020-04-24 13:03:46 -06:00
Tyera Eulberg
5d2f488004
Add getLowestNonpurgedBlock rpc; use blockstore api in getConfirmedBlocks ( #9656 )
...
automerge
2020-04-22 13:33:06 -07:00