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
Sebastian.Bor
6d11d5dd9f
chore: conflate use statement
2021-05-04 08:34:35 -07:00
Sebastian.Bor
4ede5117f9
fix: add bpf_loader_upgradeable to ProgramTest default builtins
2021-05-04 08:34:35 -07:00
Jon Cinque
f4214637a9
program-test: Add large bootstrap stake for realistic warmups ( #16739 )
2021-04-22 16:44:54 +02:00
Jack May
fa83f3bd73
Return sysvars via syscalls ( #16422 )
2021-04-12 16:04:57 -07:00
Jeff Washington (jwash)
105a6bfb46
Replace RootsTracker HashSet ( #16310 )
...
* Replace RootsTracker HashSet
* use bitvec
* cleanup, add brenchmark test
* test cleanup
* add lots of tests
* get rid of demo
* change warp test constant
* get rid of unused function
* pr feedback
* reorder use
* rework get_all to remove range checks
* add tests, fix bugs
2021-04-12 12:11:33 -05:00
Jack May
dee655df35
Cleanup use ( #16327 )
2021-04-02 08:54:09 -07:00
Jon Cinque
6cc22e62d4
program-test: Fix warp and staking issue ( #16002 )
...
Since program-test creates a test genesis and then adds fees and rent,
some of the genesis accounts get rent-collected after warping. Most
notably, `StakeConfig` gets rent-collected, causing any stake operations
to fail after warp. This fix creates genesis with the `Rent` and
`FeeRateGovernor` actually used by the bank.
2021-03-19 14:37:13 +01:00
Jack May
b53cb8eb2d
Deprecate Instruction::new ( #15695 )
2021-03-04 05:46:48 +00:00
Trent Nelson
7f7370c306
Re-allow clippy::integer_arithmetic at crate-level
2021-02-17 13:55:08 -07:00
Jon Cinque
c5be226821
program-test: Add warp tests for rent and stake rewards ( #15136 )
...
* program-test Add rent collection and stake rewards
* Improve tests to initialize vote state
* Update comment
* Update program-test/src/lib.rs
Co-authored-by: Michael Vines <mvines@gmail.com>
* Review feedback
* cargo fmt
* Avoid using hard-coded slots in tests
* Make genesis_config private
Co-authored-by: Michael Vines <mvines@gmail.com>
2021-02-05 22:08:00 +01:00
Jon Cinque
8e93a784f3
program-test: Add ability to warp to the future ( #14998 )
...
* program-test: Add ability to warp to the future
* Make `start_local_server` take by value
* Remove clear_invoke_context
2021-02-03 23:31:36 +01:00
Jon Cinque
4324374ab5
program-test: Set context without panic ( #14997 )
...
* program-test: Fix CPI and multiple instructions
* Whitespace
* Add CPI test in program-test
2021-02-03 13:45:29 +01:00
Jon Cinque
0ce08274f9
program-test: Expose bank task to fix fuzzing ( #14908 )
...
* program-test: Expose bank task to fix fuzzing
* Run cargo fmt and clippy
* Remove unnecessary print in test
* Review feedback
* Transition to AtomicBool
2021-01-29 14:23:59 +01:00