Greg Fitzgerald
ae41c88eb2
Boot the Builder pattern from GenesisBlock ( #6364 )
2019-10-15 13:52:44 -06:00
Rob Walker
c2ebf466fd
reestablish parameter semantics for withdraw ( #6330 )
2019-10-14 15:02:24 -07:00
Greg Fitzgerald
ba46bc4624
Fix system program blind derefs ( #6317 )
...
automerge
2019-10-10 16:43:49 -07:00
Trent Nelson
9cde67086f
solana-keygen - Poor mans keypair encryption ( #6259 )
...
* SDK: Refactor (read|write)_keypair
Split file opening and data writing operations
Drop filename == "-" stdio signal. It is an app-level feature
* keygen: Move all non-key printing to stderr
* keygen: Adapt to SDK refactor
* keygen: Factor keypair output out to a helper function
2019-10-10 17:01:03 -06:00
Greg Fitzgerald
eca56eb87d
Add next_keyed_account() to instruction_processor_utils ( #6309 )
...
* Cleanup KeyedArguments traversal
* Better error message
* Fix clippy warning
* Rename next_arg to next_keyed_account
* Fix clippy warning
* Shorter
2019-10-10 06:30:42 -06:00
Jack May
54d0168746
BPF call trace script ( #6311 )
...
automerge
2019-10-10 01:10:47 -07:00
Rob Walker
e58e48e919
make sysvar creation a bit more foolproof ( #6294 )
2019-10-09 23:22:33 -07:00
Sagar Dhawan
4b0250192a
Remove remnants of the cuda feature flag ( #6298 )
...
automerge
2019-10-09 16:09:36 -07:00
Rob Walker
7cf90766a3
add epoch_schedule sysvar ( #6256 )
...
* add epoch_schedule sysvar
* book sheesh!
2019-10-08 22:34:26 -07:00
dependabot-preview[bot]
d759a447be
Bump serde_json from 1.0.40 to 1.0.41 ( #6226 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.40...v1.0.41 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-03 21:03:05 -06:00
Parth
92ea11fca1
make executable, vote and stake account rent exempt ( #6017 )
...
* add missing convenience method
* require vote account to be exempt
* make stake account rent exempt
* making executable rent exempt
* rent will be initialized in genesis
* add test for update_rent
2019-10-04 02:52:48 +05:30
Justin Starry
a6363e56b6
Add native_token module to sdk ( #6192 )
2019-10-01 13:53:28 -04:00
Jack May
520f7c3e18
Optimize BPF logs ( #6186 )
2019-09-30 14:21:29 -07:00
dependabot-preview[bot]
f14bc0bb59
Bump num-derive from 0.2.5 to 0.3.0 ( #6165 )
...
Bumps [num-derive](https://github.com/rust-num/num-derive ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/rust-num/num-derive/releases )
- [Changelog](https://github.com/rust-num/num-derive/blob/master/RELEASES.md )
- [Commits](https://github.com/rust-num/num-derive/compare/num-derive-0.2.5...num-derive-0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-27 20:20:57 -06:00
Jack May
a09cf1470a
Remove libstd statics to eliminate .bss ( #6134 )
...
automerge
2019-09-26 17:38:08 -07:00
Jack May
c10b2e6cc0
Cleanup Rust BPF sysroot ( #6124 )
2019-09-26 13:27:33 -07:00
dependabot-preview[bot]
62429585ba
Bump bincode from 1.1.4 to 1.2.0 ( #6065 )
...
Bumps [bincode](https://github.com/servo/bincode ) from 1.1.4 to 1.2.0.
- [Release notes](https://github.com/servo/bincode/releases )
- [Commits](https://github.com/servo/bincode/compare/v1.1.4...v1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-25 14:44:29 -06:00
Jack May
03dc4a20a1
Single threaded LLD ( #6088 )
2019-09-25 07:44:33 -07:00
Dan Albert
9c9991db1d
Update cargo toml and lock files to v0.20.0 ( #6016 )
2019-09-22 21:45:56 -04:00
Jack May
5486e4c364
Inline BPF log functions ( #6007 )
2019-09-20 15:40:41 -07:00
Michael Vines
a60a3efc1a
Revert "require stake, vote and executable accounts to be rent exempt ( #5928 )" ( #6005 )
...
This reverts commit 11e6197a83
.
2019-09-20 14:10:39 -07:00
sakridge
19ae556857
hash account state on store ( #5573 )
2019-09-20 13:21:12 -07:00
Jack May
abaccd6882
Pull in Rust-BPF v0.1.6 ( #5997 )
...
automerge
2019-09-20 11:21:01 -07:00
dependabot-preview[bot]
8eab673b1c
Bump serde from 1.0.100 to 1.0.101 ( #5994 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-20 07:05:16 -06:00
Parth
11e6197a83
require stake, vote and executable accounts to be rent exempt ( #5928 )
...
* require vote account to be exempt
* make stake account rent exempt
* add rent exempted system instruction
* use rent exemption instruction in vote and stake api
* use rent exempted account while creating executable account
* updating chacha golden hash as instruction data has changed
* rent will be initialized for genesis bank too
2019-09-20 16:52:17 +05:30
dependabot-preview[bot]
1a71804ef2
Bump bs58 from 0.2.5 to 0.3.0 ( #5974 )
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.2.5...0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-19 10:39:37 -06:00
dependabot-preview[bot]
e83f6332bf
Bump serde_derive from 1.0.100 to 1.0.101 ( #5945 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.100 to 1.0.101.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.100...v1.0.101 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-18 21:29:40 -07:00
Jack May
0d16db2d1b
Remove bloat due to test symbols ( #5965 )
2019-09-18 19:54:10 -07:00
Rob Walker
ffdf36c65b
remove grants from inflation ( #5936 )
2019-09-17 18:52:39 -07:00
dependabot-preview[bot]
6541d9fbb0
Bump hex from 0.3.2 to 0.4.0 ( #5930 )
...
Bumps [hex](https://github.com/KokaKiwi/rust-hex ) from 0.3.2 to 0.4.0.
- [Release notes](https://github.com/KokaKiwi/rust-hex/releases )
- [Commits](https://github.com/KokaKiwi/rust-hex/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 14:04:28 -06:00
Parth
de4f564780
fix test name ( #5932 )
2019-09-18 01:14:44 +05:30
Parth
d63518a835
Rent tangential stuff ( #5910 )
...
* rename rent.rs to rent_calculator.rs
* add rent sysvar
* integrate rent_calculator with bank
* rent_calculator integration with genesis
* add test for rent sysvar
2019-09-17 17:12:55 +05:30
Michael Vines
e1f4e8a84a
Add solana-crate-features workaround to avoid cargo feature thrashing ( #5904 )
...
automerge
2019-09-13 23:46:21 -07:00
Justin Starry
8f5a1535af
Add mnenomic keypair generation and recovery to cli ( #5889 )
...
* Add mnenomic keypair generation and recovery to cli
* Use password input to retrieve mnemonic phrase
* Direct users without keypair file to use solana-keygen
2019-09-12 18:37:29 -07:00
Jack May
1853771930
Add support for SDK sysvar types ( #5876 )
2019-09-10 18:53:02 -07:00
dependabot-preview[bot]
294d531e0b
Bump serde_derive from 1.0.99 to 1.0.100 ( #5864 )
...
automerge
2019-09-10 13:31:11 -07:00
dependabot-preview[bot]
0d7efe5176
Bump serde from 1.0.99 to 1.0.100 ( #5862 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.99 to 1.0.100.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.99...v1.0.100 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-10 12:27:41 -07:00
Jack May
61fe1aa9cf
SDK cleanup to reduce featurization ( #5856 )
2019-09-09 16:38:52 -07:00
Jack May
a18cd29411
Remove unsigned division from FeeCalculator ( #5851 )
2019-09-09 15:07:32 -07:00
Jack May
a317e9513f
Add sysvar support ( #5838 )
2019-09-09 10:55:35 -07:00
sakridge
b35c022629
More types ( #5846 )
...
automerge
2019-09-08 11:13:59 -07:00
Rob Walker
affcb5ec43
remove hashmap from stake_history ( #5834 )
2019-09-07 10:33:06 -07:00
Jack May
1833db51a5
Cleanup program account def ( #5833 )
2019-09-06 17:32:14 -07:00
Justin Starry
81c36699c4
Add support for BPF program custom errors ( #5743 )
...
* Add support for BPF program custom errors
* Rename SOL_SUCCESS -> SUCCESS
2019-09-06 16:05:01 -07:00
Jack May
d3052d094c
fmt does not work with cfg_if ( #5829 )
2019-09-06 15:33:58 -07:00
Jack May
4c4b7d39b8
Cleanup program's ProcessInstruction ( #5828 )
2019-09-06 14:44:41 -07:00
Jack May
e8d88f3237
Split SDK's timing.rs ( #5823 )
2019-09-06 14:30:56 -07:00
dependabot-preview[bot]
f28782cb84
Bump chrono from 0.4.8 to 0.4.9 ( #5775 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.8 to 0.4.9.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/master/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/commits/v0.4.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-06 13:55:36 -06:00
Jack May
d9817c153a
Switch programs to use Pubkey from SolPubkey ( #5821 )
2019-09-06 12:40:01 -07:00
Rob Walker
4a20c2aa1b
add stake and vote errors ( #5814 )
...
* add stake errors
* remove self from type_of
* sheesh
* better
* add stake errors
* update wallet error handling
* fixup
2019-09-06 10:55:03 -07:00
Jack May
e5f902369c
Rust BPF programs depend on Solana SDK ( #5819 )
2019-09-06 09:20:14 -07:00
Michael Vines
1f9fde5f7b
ThinClient internal name grooming ( #5800 )
2019-09-06 09:07:40 -07:00
Jack May
5fb2d7a98f
Add libstd support to Rust BPF ( #5788 )
2019-09-04 16:00:11 -07:00
Rob Walker
933e835838
add stake lockup ( #5782 )
...
* add stake lockup
* fixup
2019-09-04 13:34:09 -07:00
dependabot-preview[bot]
f7e039e7ac
Bump chrono from 0.4.7 to 0.4.8 ( #5761 )
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/master/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-03 14:49:48 -07:00
dependabot-preview[bot]
61bd14c40a
Bump rayon from 1.1.0 to 1.2.0 ( #5758 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/rayon-rs/rayon/releases )
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.1.0...v1.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-03 13:39:58 -06:00
Justin Starry
5840e3bbdf
Decrease instruction count in BPF Rust SDK entrypoint helper ( #5760 )
2019-09-03 08:38:59 -04:00
dependabot-preview[bot]
f840eefcbf
Bump bs58 from 0.2.4 to 0.2.5 ( #5747 )
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.2.4...0.2.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 11:41:41 -06:00
Jack May
50214f059f
Pull in LLVM with stack location fixes ( #5732 )
2019-08-29 11:25:22 -07:00
Jack May
2803eb0d72
Use LLVM's C builtins for BPF ( #5717 )
2019-08-28 17:19:40 -07:00
Justin Starry
50ab34ad92
Install bzip2 in solana docker file ( #5701 )
2019-08-27 22:10:05 -04:00
Rob Walker
e2ecacc141
runtime checks for rent_epoch ( #5629 )
...
* runtime checks for rent_epoch
* add actual test
* bigger timeout
* backout 90 min timeout
* new noop
2019-08-26 11:04:20 -07:00
Michael Vines
ba59741b60
Bump to 0.19.0-pre0
2019-08-25 21:47:29 -07:00
Michael Vines
ef8eff69e4
Upgrade to debian:buster ( #5639 )
2019-08-24 21:41:04 -07:00
Rob Walker
0ffe7a9c8f
plumb some rent ( #5610 )
...
* plumb some rent
* nits
* fixups
* fixups
* fixups
2019-08-23 14:04:53 -07:00
Jack May
97ea75a890
Pull in solana_rbpf v0.1.14 ( #5609 )
2019-08-23 11:03:53 -07:00
dependabot-preview[bot]
ab4f370e15
Bump serde_derive from 1.0.98 to 1.0.99 ( #5539 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-21 12:14:58 -07:00
dependabot-preview[bot]
d6f824abc0
Bump bs58 from 0.2.2 to 0.2.4 ( #5560 )
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.2.2 to 0.2.4.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.2.2...0.2.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-21 12:13:52 -07:00
Jack May
159e518671
Update LLVM to v0.0.13 and Rust-BPF to v0.1.4 ( #5580 )
2019-08-20 20:25:29 -07:00
Michael Vines
b1203da82c
Bump to 0.18.0-pre2
2019-08-20 16:56:00 -07:00
Rob Walker
93ae98812b
change DEFAULT_NUM_TICKS_PER_SECOND to DEFAULT_TICKS_PER_SECOND ( #5559 )
2019-08-19 23:22:56 -07:00
dependabot-preview[bot]
8b7cca986a
Bump serde from 1.0.98 to 1.0.99 ( #5540 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.98 to 1.0.99.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.98...v1.0.99 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-19 10:06:15 -06:00
Michael Vines
8258532791
System program is now registered like all other native programs ( #5526 )
2019-08-15 21:07:00 -07:00
Rob Walker
07d11be6ab
add global stake warmup ( #5483 )
...
* add global stake warmup
* integrate stake history into runtime
* fixup core tests
* fixup
* remove existing cooldown tests for now
2019-08-12 20:59:57 -07:00
Rob Walker
ed093f86f9
harmonize percentage members ( #5459 )
...
* harmonize percentage members
* update tests
* update capitalization when burning fees
* verify capitalization in fee burn
* fixup
2019-08-09 13:58:46 -07:00
Rob Walker
7b77fbd525
add stake_history sysvar ( #5475 )
2019-08-09 12:31:56 -07:00
Michael Vines
dd4640e1ed
Revert "Revert "Bump version to 0.18.0-pre1""
...
This reverts commit 42c7d57fc0
.
2019-08-05 15:55:13 -07:00
Michael Vines
42c7d57fc0
Revert "Bump version to 0.18.0-pre1"
...
This reverts commit 14f6d5c82b
.
2019-08-05 15:53:55 -07:00
Michael Vines
14f6d5c82b
Bump version to 0.18.0-pre1
2019-08-05 15:11:44 -07:00
dependabot-preview[bot]
f03e066ec5
Bump log from 0.4.7 to 0.4.8 ( #5382 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.7 to 0.4.8.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-01 14:31:18 -07:00
dependabot-preview[bot]
af733a678a
Bump serde_derive from 1.0.97 to 1.0.98 ( #5314 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-30 21:45:34 -07:00
dependabot-preview[bot]
b7e08052ae
Bump serde from 1.0.97 to 1.0.98 ( #5315 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.97 to 1.0.98.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.97...v1.0.98 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-30 19:46:50 -07:00
Jack May
68eff230f0
Fix name-id reporting dependency ( #5354 )
2019-07-30 16:22:20 -07:00
Michael Vines
c78db6a94b
ledger path reform: use Path/PathBuf instead of strings ( #5344 )
2019-07-30 15:53:41 -07:00
Rob Walker
50a991fdf9
add executable checks to verify_instruction ( #5326 )
2019-07-29 15:29:20 -07:00
Dan Albert
b8835312bb
Update cargo.toml files to 0.18.0-pre0 ( #5303 )
2019-07-27 11:42:06 -06:00
dependabot-preview[bot]
349ebec629
Bump serde from 1.0.94 to 1.0.97 ( #5285 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.94 to 1.0.97.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.97 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-26 07:22:25 -06:00
dependabot-preview[bot]
7ee8383e02
Bump serde_derive from 1.0.94 to 1.0.97 ( #5279 )
...
Bumps [serde_derive](https://github.com/serde-rs/serde ) from 1.0.94 to 1.0.97.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.94...v1.0.97 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-25 06:47:24 -06:00
Rob Walker
b766ac0899
rent ( #5205 )
2019-07-20 16:28:17 -07:00
dependabot-preview[bot]
9fd34cd985
Bump untrusted from 0.6.2 to 0.7.0 ( #5194 )
...
Bumps [untrusted](https://github.com/briansmith/untrusted ) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/briansmith/untrusted/releases )
- [Commits](https://github.com/briansmith/untrusted/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-19 07:34:04 -07:00
Rob Walker
027ebb6670
no more OUT_DIR ( #5139 )
...
* no more OUT_DIR
* no more OUT_DIR
* more information about failure
2019-07-17 14:27:58 -07:00
dependabot-preview[bot]
bbd0455418
Bump log from 0.4.6 to 0.4.7 ( #5144 )
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang-nursery/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.6...0.4.7 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-17 09:25:57 -06:00
Greg Fitzgerald
77ea8b9b3e
Add LoaderInstruction::InvokeMain ( #5116 )
...
* Remove unreachable, untested runtime check
* tx_data -> ix_data
* Add LoaderInstruction::InvokeMain
* Add test and allow loaders to be registered statically.
* Fix clippy error
2019-07-16 10:45:32 -06:00
Jack May
176cec6215
Update Rust-BPF Sysroot ( #5122 )
2019-07-16 07:42:22 -08:00
TristanDebrunner
6b86f85916
Add C API ( #5072 )
2019-07-15 13:17:17 -06:00
sakridge
9b54528c8e
Fix some nightly warnings ( #5093 )
...
ONCE_INIT => Once::new
Box<Error> => Box<dyn Error>
2019-07-14 13:37:55 -07:00
Rob Walker
259a5130a8
whoops ( #5083 )
2019-07-12 19:08:51 -07:00
Rob Walker
0d27515d09
tmp dirs target to farf ( #5079 )
2019-07-12 18:28:42 -07:00
Rob Walker
d2b6c2e0ce
syscall work, rename syscall to sysvar, rename current to clock ( #5074 )
...
* syscall work, rename syscall to sysvar, rename current to clock
* missed one
* nit
2019-07-12 16:38:15 -07:00
Sagar Dhawan
7c12ecbe81
Fix unnecessary computation ( #5055 )
2019-07-12 11:30:37 -07:00