Commit Graph

20914 Commits

Author SHA1 Message Date
Brooks Prumo 9327658007
Promotes accounts hash to a strong type (#28930) 2022-11-28 10:09:47 -05:00
Steven Luscher 656b150e57
[web3.js][experimental] Set up test/dev infra (#28950)
* Update `@solana/eslint-config-solana`

* [web3.js][experimental] Add Watchman config to ignore `dist` and `node_modules` folders

* [web3.js][experimental] Install Jest

* [web3.js][experimental] Configure Jest to lint, format, and test code

* [web3.js][experimental] Add a typecheck step

* [web3.js][experimental] Add fake tests and fake implementation to exercise the build infra
2022-11-23 18:25:02 -08:00
Steven Luscher 2e99668111
[web3.js][experimental] Remove bundlewatch dependency (#28949) 2022-11-23 17:54:45 -08:00
Steven Luscher e8da995e14
[web3.js][experimental] Improve package exports (#28948)
* [web3.js][experimental] Repair build paths and add package.json `exports` field for CommonJS/ESM compatibility

* [web3.js][experimental] Add package.json entries for common JavaScript CDNs

* [web3.js][experimental] Exclude source files from npm bundle
2022-11-23 16:47:56 -08:00
Brooks Prumo 267bbcadcf
Cleans up accounts hash testing in ABS (#28931) 2022-11-23 10:07:22 -05:00
Haoran Yi f051f3c72f move comments 2022-11-23 08:50:03 -06:00
Jeff Washington (jwash) 9a24743d2a
expect only 1 store per slot (#28844)
expect only 1 store per slot in shrink
2022-11-23 06:20:36 -08:00
Brooks Prumo 04016e3bcf
Don't wait for EAH unless feature is enabled (#28938) 2022-11-23 09:11:28 -05:00
Alessandro Decina bee24a81b8
Refactor CPI, add tests and sprinkle some comments (#28544)
* bpf_loader: cpi: split account update code to update_caller_account and add tests

* bpf_loader: cpi: set CallerAccount::original_data_len earlier

* cpi: add CallerAccount::from_account_info and CallerAccount::from_sol_account_info

* cpi: refactor common account info translation code in translate_account_infos

* update_caller docs

* cpi: rename translate_accounts to translate_and_update_accounts

* cpi: refactor pre-cpi account update code into update_callee_account

* cpi: add tests for CallerAccount::from_account_info

* cpi: add test for SyscallInvokeSignedRust::translate_accounts

* cpi: fix lints

* cpi: add test for translate_instruction()

* cpi: add test for translate_signers

* cpi: fix lint

* cpi: review fixups round 1

* cpi: more review fixups

Replace ugly MockInvokeContext with a macro

* cpi: more review fixes

replace get_callee with macro

* cpi: more review fixes

Add MockAccountInfo::new

* Fix rebase mistake
2022-11-23 23:22:50 +11:00
Alessandro Decina 1f40cb3d37
The syscall_saturated_math feature was activated, remove checks (#28605) 2022-11-23 20:42:59 +11:00
Brooks Prumo 638b26ea65
Renames EAH test fn (#28939) 2022-11-23 05:18:50 +00:00
apfitzge 38f7122605
separate make_decision in BankingStage (#28884) 2022-11-22 19:01:09 -06:00
Brooks Prumo 40a7c6d46a
Renames fn to insert_default_bank_hash() (#28929) 2022-11-22 19:31:59 -05:00
Jeff Washington (jwash) 5d88a9b32b
improve perf of storing accounts for shrink/ancient (#28880)
* improve perf of storing accounts for shrink/ancient

* rename

* phantom data

* update comment

* make impl Borrow<Hash> consistent

* remove unused static
2022-11-22 15:36:57 -08:00
Trent Nelson ed2c59d0e4
readd undeveloped scanner results disqualification 2022-11-22 13:52:00 -07:00
Maximilian Schneider c8b0c3ede9
Update cost model to use requested_cu instead of estimated cu #27608 (#28281)
* Update cost model to use requested_cu instead of estimated cu #27608

* remove CostUpdate and CostModel from replay/tvu

* revive cost update service to send cost tracker stats

* CostModel is now static

* remove unused package

Co-authored-by: Tao Zhu <tao@solana.com>
2022-11-22 11:55:56 -06:00
apfitzge 637e8a937b
clean up: remove my_pubkey arg from consume_buffered_packets (#28888) 2022-11-22 11:40:04 -06:00
yihau 34835f4906 rebuild web3-experimental pipeline when yaml file chagned 2022-11-22 08:25:29 -08:00
yihau 9adaab06ce bump pnpm/action-setup to v2.2.4 2022-11-22 08:25:29 -08:00
Yihau Chen ff2dd1e261
ci: use our cargo setup instead of actions-rs/toolchain (#28923) 2022-11-22 16:24:49 +00:00
apfitzge 08e017b5ba
Improve error message (#28898) 2022-11-22 10:02:44 -06:00
kirill lykov 731fe3e5da
replace serum-dex with openbook-dex (#28873)
* replace serum-dex with openbook-dex

* force using master for anchor in downstream builds

* fix
2022-11-22 09:41:41 +01:00
steveluscher dbf68f7e93 [web3.js][experimental] Repair unpack path in bundle analyzer workflow 2022-11-22 06:41:47 +00:00
steveluscher 79bb14a28c [web3.js][experimental] Use different artifact downloader for bundle analysis step 2022-11-22 06:36:15 +00:00
steveluscher 0daa2c3aa9 Watch bundle sizes with Bundlewatch 2022-11-21 22:18:06 -08:00
Steven Luscher 2aca4160ca
[web3.js][experimental] A GitHub Actions workflow that builds the new code with Turborepo (#28916)
* Enable remote cache for Turborepo

* Rename `build` to `compile` and `package` to `build`

* Add a workflow that builds on PRs and pushes with Turborepo

* Explain how to connect to Turborepo remote caching

* Upgrade to pnpm 7
2022-11-21 21:47:32 -08:00
Jeff Washington (jwash) 20d8b5e98b
default some tests to write cache = true (#28917) 2022-11-21 15:53:39 -08:00
Jeff Washington (jwash) efc681b348
rename test var for clarity (#28914) 2022-11-21 13:22:16 -08:00
Jeff Washington (jwash) d449b9ea26
test_new_from_file_crafted_zero_lamport_account uses static append vec file (#28911) 2022-11-21 12:43:03 -08:00
Jeff Washington (jwash) f0ef316b19
remove cli arg "--no-accounts-db-caching" (#28912) 2022-11-21 12:38:35 -08:00
jon wong 5dfb974a29
Renaming the Bonfida Pool -> Serum Pool (#28813)
This program is owned by Serum, not by Bonfida
2022-11-21 15:14:27 -05:00
apfitzge 755b0a1055
add a measure_us macro (#28893) 2022-11-21 13:58:02 -06:00
Jeff Washington (jwash) 8addf93de7
test_store_reuse uses write cache (#28901) 2022-11-21 11:17:33 -08:00
apfitzge dd723210ca
remove unnecessary clippy attributes (#28891) 2022-11-21 12:54:54 -06:00
apfitzge 76df864469
typo: failre to failure (#28822) 2022-11-21 12:54:28 -06:00
Brooks Prumo ff7e82b5ff
Removes Accounts::bank_hash_at() (#28879) 2022-11-21 13:25:48 -05:00
steviez 7bc78196b5
ledger-tool: collapse repeated encoding argument parsing (#28859) 2022-11-21 13:15:14 -05:00
Jeff Washington (jwash) b29dea7a56
comment function (#28906) 2022-11-21 09:56:07 -08: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
behzad nouri d43b001189
rolls out merkle shreds to ~20% of testnet (#28905) 2022-11-21 16:20:02 +00:00
Yihau Chen 4c2733485a
ci: rewrite Github Actions slack error reporting (#28904) 2022-11-21 11:22:00 +00:00
bji 6dc7cd0845
Fixed warnings caused by redefined macros. Also fixed sol_memcpy to … (#28378)
Fixed warnings caused by redefined macros.  Also fixed sol_memcpy to have
the same signature as memcpy.
2022-11-20 03:42:17 +00:00
kirill lykov f75d7898db
replace serum/anchor with coral-xyz/anchor (#28874) 2022-11-19 16:17:01 +01:00
steveluscher e81d76c9b9 Add Turborepo config 2022-11-19 00:17:34 -08:00
steveluscher 0bae8d8c15 Add tree-shakability checker 2022-11-19 00:17:34 -08:00
steveluscher 91429e027c Add a skeleton of the app, with a full build system for Node, the browser, and React Native – with dev/prod mode switches 2022-11-19 00:17:34 -08:00
steveluscher 60d3b867d7 Add shared Prettier config 2022-11-19 00:17:34 -08:00
steveluscher 065a9ccfaa Add shared ESLint config 2022-11-19 00:17:34 -08:00
steveluscher e8796f454c Initial commit of the rewrite of web3.js 2022-11-19 00:17:34 -08:00
eloylp 3d91c3f5cf
Refactor, move solana-validator CLI related configs to its own module (#28548)
* Refactor, move validator CLI related stuff to its own module(cli.rs)

The main function of the validator is getting big. Improve readability by moving away the CLI setup stuff to its own module.

* Restore help cli line

* Refactor,  move test validator CLI config to cli.rs module

* Fix  imports (cargo fmt)
2022-11-18 21:39:20 -08:00