Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface tests #26

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
9775283
add mollusk
2501babe Nov 27, 2024
aae4eed
lock solana for mollusk
2501babe Nov 29, 2024
bd52ecc
initial test setup
2501babe Nov 29, 2024
b9fde69
example test
2501babe Nov 29, 2024
b8db3ac
improve runner a bit to try to copy ixn tests
2501babe Dec 2, 2024
55b1a8e
couple cleanups
2501babe Dec 2, 2024
651fe5e
builders for all basic stake operations
2501babe Dec 2, 2024
aa18a67
active with gray
2501babe Dec 2, 2024
781f87d
fd fixture work, save for later
2501babe Dec 6, 2024
5c64e99
ok more changes
2501babe Dec 6, 2024
73dbad9
ported first nontrivial stake instruction test
2501babe Dec 6, 2024
433795b
remove experimental fd and mollusk stuff
2501babe Dec 6, 2024
1f12960
couple more tests
2501babe Dec 6, 2024
ed0f9b7
merge tests
2501babe Dec 6, 2024
4512b07
more tests
2501babe Dec 6, 2024
5170ef1
more tests
2501babe Dec 6, 2024
0b174dc
minidel test
2501babe Dec 6, 2024
1228e8e
more tests
2501babe Dec 6, 2024
18efd9f
removed some tests. haha jk added more tests
2501babe Dec 6, 2024
9c7029c
remove unused
2501babe Dec 6, 2024
1712b63
cleanup
2501babe Dec 6, 2024
929dd4d
update to latest mollusk
2501babe Dec 11, 2024
d2fcbd9
fixed some tests
2501babe Dec 11, 2024
65b7fb7
fix all tests
2501babe Dec 11, 2024
4a61435
update to mollusk from crates
2501babe Dec 14, 2024
fd6835a
add some stuff
2501babe Dec 13, 2024
681528c
start adding interface tests, based on first mollusk tests
2501babe Dec 13, 2024
32f9e91
cleanup
2501babe Dec 13, 2024
4e8be5e
three instructions work
2501babe Dec 14, 2024
a8e2e16
instead of generating randomly, make exhaustive list
2501babe Dec 14, 2024
8e49000
add back all current instructions
2501babe Dec 14, 2024
8996d48
check all signers
2501babe Dec 14, 2024
c4bf103
dont need special enum for ternary
2501babe Dec 16, 2024
f44222c
dont need that either
2501babe Dec 16, 2024
9d451f4
impl move ixns but something wrong
2501babe Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@ solana-program = "2.1"
thiserror = "1.0.63"

[dev-dependencies]
solana-program-test = "2.1"
solana-sdk = "2.1"
solana-vote-program = "2.1"
assert_matches = "1.5.0"
arbitrary = { version = "1.4.1", features = ["derive"] }
mollusk-svm = { version = "=0.0.13", features = ["all-builtins"] }
solana-account = { version = "=2.1.0", features = ["bincode"] }
solana-logger = "=2.1.0"
solana-program-test = "=2.1.0"
solana-program-runtime = "=2.1.0"
solana-config-program = "=2.1.0"
solana-vote-program = "=2.1.0"
solana-sdk = "=2.1.0"
solana-feature-set = "=2.1.0"
rand = "0.8.5"
test-case = "3.3.1"

[lib]
Expand Down
1 change: 1 addition & 0 deletions program/tests/fixtures/solana_stake_program.so
Loading