Skip to content

Commit 54fe07c

Browse files
Merge pull request #12 from SolarRepublic/final-integration
Final integration
2 parents d9abb00 + cb85125 commit 54fe07c

24 files changed

+1650
-871
lines changed

.cargo/config

Lines changed: 0 additions & 11 deletions
This file was deleted.

.cargo/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.toml

.cargo/config.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[alias]
2+
# Temporarily removed the backtraces feature from the unit-test run due to compilation errors in
3+
# the cosmwasm-std package:
4+
# cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", branch = "secret" }
5+
# unit-test = "test --lib --features backtraces"
6+
unit-test = "test --lib"
7+
integration-test = "test --test integration"
8+
schema = "run --example schema"
9+
10+
[features]
11+
gas_tracking = []
12+
gas_evaporation = []

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ overflow-checks = true
3030
#default = ["debug-print"]
3131
backtraces = ["cosmwasm-std/backtraces"]
3232
gas_tracking = []
33+
gas_evaporation = []
3334

3435
# debug-print = ["cosmwasm-std/debug-print"]
3536
[dependencies]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _compile:
5454
.PHONY: compile-integration _compile-integration
5555
compile-integration: _compile-integration contract.wasm.gz
5656
_compile-integration:
57-
DWB_CAPACITY=8 BTBE_CAPACITY=8 RUSTFLAGS='-C link-arg=-s' cargo build --features "gas_tracking" --release --target wasm32-unknown-unknown
57+
DWB_CAPACITY=64 BTBE_CAPACITY=64 RUSTFLAGS='-C link-arg=-s' cargo build --features "gas_tracking" --release --target wasm32-unknown-unknown
5858
@# The following line is not necessary, may work only on linux (extra size optimization)
5959
wasm-opt -Oz ./target/wasm32-unknown-unknown/release/*.wasm --all-features -o ./contract.wasm
6060

build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ use std::path::Path;
66
fn main() {
77
// config parameters
88
let dwb_capacity = env::var("DWB_CAPACITY").unwrap_or_else(|_| "64".to_string());
9-
let btbe_capacity = env::var("BTBE_CAPACITY").unwrap_or_else(|_| "128".to_string());
9+
let btbe_capacity = env::var("BTBE_CAPACITY").unwrap_or_else(|_| "64".to_string());
1010

1111
// path to destination config.rs file
12-
let out_dir = env::var("OUT_DIR").expect("Missing OUT_DIR");
12+
let out_dir = env::var("OUT_DIR").expect("Missing OUT_DIR");
1313
let dest_path = Path::new(&out_dir).join("config.rs");
1414

1515
// write constants
1616
let mut file = File::create(&dest_path).expect("Failed to write to config.rs");
1717
write!(file, "pub const DWB_CAPACITY: u16 = {};\n", dwb_capacity).unwrap();
1818
write!(file, "pub const BTBE_CAPACITY: u16 = {};\n", btbe_capacity).unwrap();
1919

20-
// monitor
21-
println!("cargo:rerun-if-env-changed=DWB_CAPACITY");
22-
println!("cargo:rerun-if-env-changed=BTBE_CAPACITY");
20+
// monitor
21+
println!("cargo:rerun-if-env-changed=DWB_CAPACITY");
22+
println!("cargo:rerun-if-env-changed=BTBE_CAPACITY");
2323
}

src/batch.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ pub struct BurnFromAction {
5858
pub amount: Uint128,
5959
pub memo: Option<String>,
6060
}
61-

0 commit comments

Comments
 (0)