Oliver Tušla
ec7b1c8bda
Fix typo: where -> were ( #30599 )
2023-03-05 16:46:00 -05:00
Yihau Chen
bd98f3a533
chore: make anyhow inherit root's declaration ( #30509 )
2023-02-28 18:27:41 +08:00
Yihau Chen
221fe61089
chore: remove redundant packages ( #30511 )
2023-02-28 18:27:29 +08:00
Yihau Chen
d16a03cd44
chore: bump js-sys to 0.3.59 ( #30495 )
2023-02-27 03:19:44 +08:00
Yihau Chen
ccef90c48d
chore: bump sha3 to 0.10.4 ( #30491 )
2023-02-27 03:19:35 +08:00
Yihau Chen
d19758139d
chore: bump bytemuck to 1.11.0 ( #30490 )
2023-02-27 03:19:11 +08:00
hana
bd49b984e2
remove VoteState::deserialize() from sbf builds ( #30515 )
...
the existing deserialize implementation overruns the sbf stack and is unusable in a program context
this silences a warning to that effect which all solana_program importers receive
closes #30188
2023-02-25 16:10:08 -08:00
Yihau Chen
af59cced5a
chore: bump bincode to 1.3.3 ( #30489 )
2023-02-25 02:48:24 +08:00
Yihau Chen
c318002fe4
chore: bump libc to 0.2.131 ( #30496 )
2023-02-25 02:42:33 +08:00
Yihau Chen
d5d1f5eb62
chore: bump serde_json to 1.0.83 ( #30492 )
2023-02-25 02:42:19 +08:00
Yihau Chen
df3ef111f7
chore: workspace inheritance ( #29893 )
...
* introduce workspace.package
* introduce workspace.dependencies
* read version from root cargo.toml
* pass check when version = { workspace = true }
* don't bump version when version = { workspace = true }
* including workspace Cargo.toml when bump version
* programs/sbf use workspace inheritance
* fix increasing cargo version ignore program/sbf/Cargo.toml
2023-02-23 22:01:54 +08:00
Michael Vines
5136ed3448
Update homepage value for all crates ( #30444 )
2023-02-23 02:20:18 +00:00
Brooks
febaf36e6d
Apply clippy fixes for future rust upgrade ( #30363 )
2023-02-16 16:12:51 +00:00
Brooks
0c36e4c82d
Adds stable layout types to pass to the runtime ( #30192 )
2023-02-16 08:16:25 -05:00
Alexey Skibin
cb7fed6fae
Prevent runtime from using messages with version 127 ( #29807 )
2023-02-13 10:12:34 -05:00
Yihau Chen
9803cf4fd7
chore: bump assert_matches to 1.5.0 ( #29647 )
2023-02-11 22:15:57 +08:00
Yihau Chen
e36c7b8913
chore: bump borsh to 0.9.3 ( #29606 )
2023-02-11 22:15:46 +08:00
dependabot[bot]
57dced05f0
Bump sha2 from 0.10.5 to 0.10.6 ( #30215 )
...
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.10.5 to
0.10.6.
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-02-09 12:18:09 -07:00
Brooks
84d746a8dd
Reorders AccountInfo checks in check_type_assumptions() ( #30143 )
2023-02-06 17:06:07 -05:00
Brooks
b77e12b3a9
Makes AccountInfo repr(C) ( #30124 )
2023-02-06 08:00:46 -05:00
dependabot[bot]
5520d0bf7b
Bump cc from 1.0.78 to 1.0.79 ( #30080 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-02-02 11:30:18 -07:00
dependabot[bot]
d0b850f137
Bump rustversion from 1.0.9 to 1.0.11 ( #30079 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
2023-02-02 11:25:29 -07:00
Will Hickey
04a6a631bc
Bump version to v1.16 ( #30028 )
2023-01-31 17:48:33 -06:00
Richard Patel
1ca78845bb
runtime: add test_type_layout ( #29987 )
...
adds unit test asserting the type layout of structures in append_vec
---------
Co-authored-by: Richard Patel <ripatel@jumptrading.com>
Co-authored-by: brooks <brooks@solana.com>
2023-01-31 11:08:55 -05:00
joeaba
a12bf8c003
Update maintainers references ( #29997 )
...
* update maintainers references
* chore: update maintainers reference
2023-01-31 08:07:13 -05:00
Ashwin Sekar
a5213d41f3
Eliminate unchecked arithmetic in vote program ( #29885 )
2023-01-25 21:55:52 -08:00
Jon Cinque
77c45f0478
sdk: Expose `CompileError` to the outside ( #29900 )
...
sdk: Expose `CompileError` to users
2023-01-25 19:22:45 +01:00
Yihau Chen
9193b4221d
Revert "chore: workspace inheritance ( #29509 )" ( #29892 )
...
This reverts commit a67d239dde
.
2023-01-25 15:50:41 +08:00
Yihau Chen
a67d239dde
chore: workspace inheritance ( #29509 )
...
* introduce workspace.package
* introduce workspace.dependencies
* read version from root cargo.toml
* pass check when version = { workspace = true }
* don't bump version when version = { workspace = true }
* including workspace Cargo.toml when bump version
* programs/sbf use workspace inheritance
* fix increasing cargo version ignore program/sbf/Cargo.toml
2023-01-25 13:59:59 +08:00
behzad nouri
272e667cb2
deprecates Pubkey::new in favor of Pubkey::{,try_}from ( #29805 )
...
The commit deprecates Pubkey::new which lacks type-safety and instead
implements TryFrom<&[u8]> and TryFrom<Vec<u8>> for Pubkey.
2023-01-21 18:06:27 +00:00
valiksinev
5f7fea100a
Big integer modular exponentiation (EIP-198) ( #28503 )
...
* big_mod_exp impl
* fix programs/sbf/Cargo.lock
* ComputeBudget impl
* update compute_budget
* compute_budget update
* fix build
* fix tests
* fix cargo clippy
* fix clippy
* fix bpf_loader dependency sorting
* fix sorting
* fix merge from master
* fix cargo fmt
* fix C-tests
* fix cargo fmt
* comments apply
* fix programs/sbf/Cargo.lock
* update compude_budget cost
* remove whitespaces
* fix cargo fmt
Co-authored-by: sinev-valentine <sinev-valentine@yandex.ru>
2023-01-20 18:42:37 +09:00
behzad nouri
d463bcc5f8
removes manual implementations of Default for enums ( #29779 )
2023-01-19 19:25:30 +00:00
Trent Nelson
c4e43f1de4
vote: encapsulate `Lockout` ( #29753 )
2023-01-18 19:28:28 -07:00
Brooks
da39c4837f
Use Into in Hash::result() instead of TryFrom ( #29721 )
2023-01-16 12:13:04 -05:00
behzad nouri
71713a92c1
verifies serde_varint against ShortU16 ( #29701 )
2023-01-14 15:26:16 +00:00
Trent Nelson
730aa71834
add note about discrepancy between accounts load and sanitize caps ( #29669 )
2023-01-11 23:18:07 -07:00
Yihau Chen
3032c6d3e8
chore: bump itertools to 0.10.5 ( #29580 )
2023-01-11 14:07:38 +08:00
Yihau Chen
00bee936b1
chore: bump anyhow to 1.0.58 ( #29572 )
2023-01-10 12:46:31 +08:00
behzad nouri
5c9beef498
fixes errors from clippy::useless_conversion ( #29534 )
...
https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
2023-01-05 18:05:32 +00:00
Yihau Chen
d078c041d1
chore: add missing members back to workspace.members ( #29450 )
...
* frozen-abi/macro
* program-runtime
* sdk/macro
* sdk/program
* storage-bigtable/build-proto
* fix sorting
2023-01-04 13:22:00 +08:00
Jon Cinque
968b158494
vote: Prevent commission update in the second half of epochs ( #29362 )
...
* vote: Prevent commission update in the second half of epochs
* Address feedback
* Fix tests
* Make the feature enabled by single-contributor
* Use a cooler pubkey
2022-12-23 12:24:39 +01:00
Brian Anderson
edd5f6f3be
Expand solana-sdk API docs. ( #29063 )
...
* Expand solana-sdk API docs.
* Update sdk/src/genesis_config.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Update sdk/src/hard_forks.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Update sdk/src/builtins.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Update sdk/src/builtins.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Update sdk/src/rpc_port.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Update sdk/src/lib.rs
Co-authored-by: Tyera <teulberg@gmail.com>
* Clarify derivation_path docs
* 'entry point' -> 'entrypoint'
Co-authored-by: Tyera <teulberg@gmail.com>
2022-12-22 08:58:06 +00:00
Brennan Watt
86b2e545e1
Prune redundant const SLOT_MS ( #29278 )
...
* Alias redundant const SLOT_MS to DEFAULT_MS_PER_SLOT
* Slate SLOT_MS for deprecation
* Add doc comments
Co-authored-by: Brooks Prumo <brooks@prumo.org>
2022-12-16 08:05:09 -08:00
Alexander Meißner
721496b900
Feature - Program redeployment cooldown ( #29136 )
...
* Registers the feature enable_program_redeployment_cooldown.
* Adds redeployment slot constraint.
* Adds test to assert that closed programs can not be reopened.
* Ensure that program close truncates the account data.
* Adds set_sysvar_for_tests() to SBF program tests.
2022-12-13 22:54:24 +01:00
behzad nouri
9524c9dbff
patches errors from clippy::uninlined_format_args
...
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
ananas-block
a901fccb00
remove unwraps in alt_bn128 syscall ( #28955 )
...
removed unwraps in alt_bn128 syscall
2022-12-02 10:30:10 +01:00
ananas-block
afc3fee937
added alt_bn syscalls ( #27961 )
...
* added alt_bn128_syscalls
* increased regression build redundancy to > 10
2022-11-21 17:43:06 +01:00
Alexander Meißner
66d06b3f99
Revert #27444 ( #28784 )
...
* Removes SyscallSetAccountProperties.
* Removes TransactionContextAttribute.
2022-11-11 10:26:55 +01:00
Brian Anderson
7f8d37c011
Add missing solana-program docs ( #28770 )
2022-11-09 13:33:19 -07:00
Brooks Prumo
d1ba42180d
clippy for rust 1.65.0 ( #28765 )
2022-11-09 19:39:38 +00:00