Skip to content

test: voting contract integration test #2

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

Merged
merged 36 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9f4aa1e
test: basic tests
linguists May 15, 2025
225fa0e
test: initialization
linguists May 15, 2025
24e097a
test: fix test failure
linguists May 15, 2025
8cf95fa
chore: near-workspaces
linguists May 15, 2025
9da9e84
chore: cargo lock
linguists May 15, 2025
f94126b
style: format code
linguists May 15, 2025
dead2b0
test: refactor test utils
linguists May 15, 2025
4f965aa
test: mock staking pool contract
linguists May 15, 2025
94ace61
test: simple vote with mock staking pool
linguists May 15, 2025
e3bf88b
style: cargo fmt
linguists May 15, 2025
ccd21be
test: view validate stake after stake
linguists May 16, 2025
ad7672b
chore: rust version 1.86.0
linguists May 16, 2025
5860416
fix: callback function
linguists May 16, 2025
3d39015
refactor: test
arkff202310 May 19, 2025
4702ce3
fix: build
arkff202310 May 20, 2025
b1b18c3
test: vote many
arkff202310 May 20, 2025
d8c6e4d
test: fix integration test
linguists May 20, 2025
b200c97
style: cargo fmt
linguists May 20, 2025
a921c2e
ci: install cargo near before test
linguists May 20, 2025
0d0e31b
fix: test
arkff202310 May 20, 2025
6952f98
fix: test
arkff202310 May 20, 2025
95eafb5
fix: read file
arkff202310 May 21, 2025
5a09745
refactor: test in different epochs
arkff202310 May 22, 2025
a598ff0
chore: lint
arkff202310 May 22, 2025
dd1abfb
chore: skip test_many_votes
arkff202310 May 22, 2025
2608bdf
test: view
arkff202310 May 23, 2025
ffdab32
test: expiration
arkff202310 May 23, 2025
8b6c7cc
test: withdraw vote
arkff202310 May 27, 2025
84c5ee0
test: unstake after voting
arkff202310 May 27, 2025
3776197
style: lint
arkff202310 May 27, 2025
808ea28
test: update mock staking pool
linguists May 28, 2025
f3469c8
chore: rename feature
arkff202310 May 28, 2025
1c933d7
test: mock staking pool
arkff202310 May 28, 2025
a7e3f1f
test: mock staking pool
arkff202310 May 28, 2025
d002a57
feat: update test scritps
linguists Jun 3, 2025
5aca39f
test: remove redundant sandbox
linguists Jun 3, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run cargo test
run: cargo test
run: make test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
**/target
tests/res
res
8 changes: 8 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh
Loading
Loading