Skip to content

Commit

Permalink
chore: switch to release build and bump deps in near-mock-vm (#556)
Browse files Browse the repository at this point in the history
* feat: switch to release build in near-mock-vm
* chore: bump deps for near-mock-vm
* chore: add README to sdk directory

Co-authored-by: Willem Wyndham <willem@cs.umd.edu>
  • Loading branch information
ashutoshvarma and Willem Wyndham committed Jun 30, 2021
1 parent f71bb0f commit bdad2f3
Show file tree
Hide file tree
Showing 9 changed files with 508 additions and 520 deletions.
416 changes: 289 additions & 127 deletions near-mock-vm/Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions near-mock-vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ nothing = []
[dependencies]
serde_json = "1.0"
base64 = "0.12"
wasm-bindgen = "0.2.60"
wasm-bindgen = "0.2.70"
serde = { version = "1.0", features = ["derive"] }
serde-wasm-bindgen = "0.1.3"
js-sys = "0.3.37"
near-sdk = { git="https://github.com/near/near-sdk-rs", branch = "add_wasm_mock_vm" }
near-sdk = "3.1.0"
near-vm-errors = "2.2.0"
near-vm-logic = "2.2.0"
near-vm-logic = "=4.0.0-pre.1"
pwasm-utils = "0.12.0"
parity-wasm = "0.41.0"
wasmparser = "0.51.4"
Expand Down
2 changes: 1 addition & 1 deletion near-mock-vm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"scripts": {
"build": "yarn build:wasm && yarn build:vm",
"build:wasm": "yarn wasm-pack build --target nodejs --debug",
"build:wasm": "yarn wasm-pack build --target nodejs --release",
"build:vm": "yarn tsc -p vm",
"test": "yarn asb assembly/__tests__/main.ts --target debug && node vm/tests/test && yarn test:bin",
"test:ci": "yarn build:vm && yarn test",
Expand Down
6 changes: 3 additions & 3 deletions near-mock-vm/pkg/near_mock_vm.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* tslint:disable */
/* eslint-disable */
/**
*/
export function main(): void;
/**
* @param {any} wasm_bytes
* @returns {any}
*/
Expand All @@ -11,9 +14,6 @@ export function inject_contract(wasm_bytes: any): any;
export function test_memory(mem: any): void;
/**
*/
export function main(): void;
/**
*/
export class VM {
free(): void;
/**
Expand Down
Loading

0 comments on commit bdad2f3

Please sign in to comment.