Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Async runtime testing * Get rid of shard_id * Add first working tests for the runtime * Fix after merge * Separate tools from tests * Add multi-cross-contract test * Undo leaked code * Fix storage usage assertions * Fix evil test * Update contract size
- Loading branch information
1 parent
3c89de3
commit 041adcc
Showing
11 changed files
with
863 additions
and
36 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
[package] | ||
name = "test-contract-rs" | ||
version = "0.0.1" | ||
version = "0.1.0" | ||
authors = ["Near Inc <hello@nearprotocol.com>"] | ||
edition = "2018" | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[dependencies] | ||
wee_alloc = { version = "0.4.4", default-features = false } | ||
|
||
[workspace] | ||
members = [] | ||
serde_json = "1.0" | ||
wee_alloc = { version = "0.4.5", default-features = false } | ||
|
||
[profile.release] | ||
panic = "abort" | ||
lto = true | ||
codegen-units = 1 | ||
# Tell `rustc` to optimize for small code size. | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
panic = "abort" | ||
|
||
[workspace] | ||
members = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
|
||
cargo +nightly build --target wasm32-unknown-unknown --release | ||
RUSTFLAGS='-C link-arg=-s' cargo +nightly build --target wasm32-unknown-unknown --release | ||
cp target/wasm32-unknown-unknown/release/test_contract_rs.wasm ../res/ | ||
rm -rf target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.