-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update hello.wasm project to use staging build tools and libraries (#…
…1197) * Update hello.wasm project to use staging build tools and libraries * Yarn lock update (#1198) * Change to match API changes in near-runtime-ts * Update hello contract with latest runtime API changes
- Loading branch information
Showing
6 changed files
with
3,761 additions
and
57 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// @nearfile | ||
export class PromiseArgs { | ||
receiver: string; | ||
methodName: string; | ||
|
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,30 +1,11 @@ | ||
const gulp = require("gulp"); | ||
const nearUtils = require("near-shell/gulp-utils"); | ||
|
||
gulp.task("build:model", callback => { | ||
nearUtils.generateBindings("model.ts", "../out/model.near.ts", callback); | ||
}); | ||
function build_wasm(done){ | ||
nearUtils.compile("./assembly/main.ts", "./out/main.wasm", done); | ||
}; | ||
|
||
gulp.task("build:bindings", ["build:model"], callback => { | ||
nearUtils.generateBindings("main.ts", "../out/main.near.ts", callback); | ||
}); | ||
const build = gulp.series(build_wasm); | ||
|
||
gulp.task("build", ["build:bindings"], callback => { | ||
nearUtils.compile("../out/main.near.ts", "../out/main.wasm", callback); | ||
}); | ||
|
||
gulp.task("default", ["build"]); | ||
|
||
// TODO: Extract all following boilerplate into library | ||
|
||
// This task is not required when running the project locally. Its purpose is to set up the | ||
// AssemblyScript compiler when a new project has been loaded in WebAssembly Studio. | ||
gulp.task("project:load", () => { | ||
const utils = require("@wasm/studio-utils"); | ||
utils.eval(utils.project.getFile("setup.js").getData(), { | ||
logLn, | ||
project, | ||
monaco, | ||
fileTypeForExtension, | ||
}); | ||
}); | ||
exports.default = build; |
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.