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

Add Contract Test CLI #749

Draft
wants to merge 64 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
09bb5ca
#217: Initial CLI stubs
mattgeddes Dec 11, 2023
f0e151c
#716: Renamed test subcommands to be more intuitive
mattgeddes Dec 11, 2023
be7dc86
testinitdb wip
andrewvious Dec 13, 2023
70cf349
wip
andrewvious Dec 14, 2023
1272191
initdb wip
andrewvious Dec 15, 2023
6fda036
establish db's
andrewvious Dec 18, 2023
fefe238
push mock addresses into db
andrewvious Dec 18, 2023
3d0ef95
cleanup code in testinitdb
andrewvious Dec 19, 2023
541c34b
testbalance wip
andrewvious Dec 19, 2023
c71da83
rm redundant code from initdb & start in testbalance
andrewvious Dec 20, 2023
9738e56
finalize testinitdb
andrewvious Dec 22, 2023
a921cda
update db files, and working in testbalance
andrewvious Dec 22, 2023
ab82b8a
wip
andrewvious Dec 22, 2023
f267b69
test bal wip
andrewvious Dec 27, 2023
9ada06f
update testinitdb::run
eureka-cpu Dec 27, 2023
7c44d74
update CLI with primitives::Address, update testbalance::run
eureka-cpu Dec 27, 2023
4c64d50
add test cfg attribute to DEFAULT_DB_PATH
eureka-cpu Dec 27, 2023
1c6652c
update error handling for testbalance::run & testinitdb::run
eureka-cpu Dec 27, 2023
c97ba07
merge conflicts
andrewvious Dec 27, 2023
b3f7634
wip in testinitdb, moving from database model to storage model to sto…
andrewvious Dec 28, 2023
80fbda6
update db to use StorageConnection and Storage traits
eureka-cpu Dec 29, 2023
75b1488
clean up code in testinitdb, abstract code into functions
andrewvious Jan 1, 2024
a03e171
abstract code that opens storage into a fn, to be used in testcontrac…
andrewvious Jan 2, 2024
482d6f9
create smart contract object from versatus-rust
andrewvious Jan 6, 2024
70a5c0c
rm unused imports
andrewvious Jan 6, 2024
a6967cf
update functionality of SmartContractInputs/organize codebase
andrewvious Jan 6, 2024
3a7e18b
update Cargo.lock
andrewvious Jan 6, 2024
c7b0e86
merge conflicts
andrewvious Jan 6, 2024
bc81c0f
cleanup toml files after big merge, rm redundant code in primitives/a…
andrewvious Jan 6, 2024
3f8a45e
fmt
andrewvious Jan 6, 2024
79c779b
update imports & rm redundant deps in toml
andrewvious Jan 6, 2024
497718e
add wasm_cli to CI testing
andrewvious Jan 7, 2024
d7bf5d2
add protocol view, add test contract inputs
eureka-cpu Jan 8, 2024
b2ce1b3
get protocol inputs working for contract inputs creation, abstract ge…
eureka-cpu Jan 9, 2024
7a54d0d
add erc20 fn inputs
eureka-cpu Jan 9, 2024
41ca60f
rm dbg message
eureka-cpu Jan 9, 2024
20c0580
add todos
eureka-cpu Jan 9, 2024
ce34ade
rm unnecessary parens
eureka-cpu Jan 9, 2024
d28614a
rm unnecessary incrementation of contract inputs
eureka-cpu Jan 9, 2024
c826221
create inputs needed to update db post runtime
andrewvious Jan 10, 2024
9ed091d
rm redundant code
andrewvious Jan 10, 2024
7f806fd
add fn for updating db, set up transaction storage method for transfe…
andrewvious Jan 10, 2024
0beb40e
use updated contract outputs in fn run & convert insert_protocol_inpu…
andrewvious Jan 11, 2024
4e4c75f
fix
andrewvious Jan 11, 2024
9f4070e
add insert method for ProtocolInputs with current timestamp, and incr…
andrewvious Jan 11, 2024
9fa1c8c
Merge branch 'main' into feat-test-cli
andrewvious Jan 15, 2024
26e4218
add test_contract and relative wasm files
andrewvious Jan 16, 2024
ba908ce
Merge branch 'main' into feat-test-cli
andrewvious Jan 16, 2024
6f49816
cargo.lock
andrewvious Jan 16, 2024
e67caa9
add contract_caller, contract inputs test data & increase meter limit…
eureka-cpu Jan 16, 2024
88a48f4
add test for update_db fn
andrewvious Jan 16, 2024
72e2e9a
Merge branch 'main' into feat-test-cli
andrewvious Jan 16, 2024
95663aa
fmt
andrewvious Jan 16, 2024
75afbbc
update comments
andrewvious Jan 17, 2024
4eb5856
replace todo with eprintln!()
andrewvious Jan 17, 2024
439bbaf
fix clippy warnings
andrewvious Jan 17, 2024
d86dbb2
update tests to run serially and updated eprintln msg
andrewvious Jan 19, 2024
543290a
merge conflict
andrewvious Jan 29, 2024
d2f35f8
fix compilation error
andrewvious Jan 30, 2024
29b4986
merge conflicts
andrewvious Feb 7, 2024
4e22917
merge conflict
andrewvious Feb 12, 2024
9a2a385
merge conflict in Cargo.lock
andrewvious Mar 1, 2024
37069f7
add some documention to update_db fn & update Cargo.lock
andrewvious Mar 1, 2024
3361585
Merge branch 'main' into feat-test-cli
andrewvious Mar 21, 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
22 changes: 22 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,28 @@ jobs:
command: test
args: -p internal_rpc

test-wasm-cli:
name: test wasm_cli
runs-on: ubuntu-latest
steps:
- name: Install dev-dependencies
run: sudo apt-get install -y libxcb-shape0-dev libxcb-xfixes0-dev
- name: Checkout sources
uses: actions/checkout@v3
with:
submodules: true
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: -p wasm_cli

test-wasm-runtime:
name: test wasm_runtime
runs-on: ubuntu-latest
Expand Down
Loading
Loading