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

Contract metadata #38

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9cc5608
Update dependencies and dist files
dcodeIO Jun 12, 2019
addb99e
Improve offsetof typings (#659)
jtenner Jun 12, 2019
bdd825b
Fix invalid autorelease in generated constructors, see #668
dcodeIO Jun 14, 2019
27d6efa
Fix more keywords that can sometimes be identifiers, see #666
dcodeIO Jun 14, 2019
a4e5857
Fix missing clear to all zeros when constructing a new ArrayBufferVie…
MaxGraey Jun 14, 2019
f48f3c9
Add TypedArray#includes/indexOf/lastIndexOf (#660)
MaxGraey Jun 16, 2019
49edefc
Fix invalid reference counts after internal realloc, see #672
dcodeIO Jun 17, 2019
c99becc
Add built-in indexof/valueof types (#671)
dcodeIO Jun 19, 2019
f5b00c8
Allow internal abort to be disabled (#677)
dcodeIO Jun 19, 2019
4802a0a
Add env:abort stub for template in asinit script (#670)
MaxGraey Jun 19, 2019
a2d067a
Create FUNDING.yml
dcodeIO Jun 20, 2019
1fd20a8
Fix return and parameter types in String declarations (#683)
MaxGraey Jun 21, 2019
070d67f
Improve precomputation of static instanceof (#681)
dcodeIO Jun 21, 2019
2d31692
Utilize new inlining utility to potentially inline any call (#684)
dcodeIO Jun 21, 2019
b6feaab
Implement text encoding helpers on top of the new runtime (#679)
dcodeIO Jun 21, 2019
69a100d
Remove runtime test package-lock from source control
dcodeIO Jun 21, 2019
726e45c
Update dist files
dcodeIO Jun 21, 2019
5a8eee0
Pick up backing classes of basic types in more locations (#686)
bowenwang1996 Jun 22, 2019
00521ad
Merge remote-tracking branch 'upstream/master' into assemblyscript-up…
bowenwang1996 Jun 25, 2019
cdf06e4
basic contract metadata support
bowenwang1996 Jun 27, 2019
8154fa2
add decorator in main.ts
bowenwang1996 Jun 27, 2019
ee8b389
Update json format
bowenwang1996 Jul 10, 2019
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bin/* text eol=lf
dist/* binary
scripts/*.sh eol=lf
lib/binaryen.js binary
tests/compiler/std/string-encoding.ts eol=lf
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: assemblyscript
1 change: 1 addition & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ under the licensing terms detailed in LICENSE:
* Nidin Vinayakan <[email protected]>
* Aaron Turner <[email protected]>
* Willem Wyndham <[email protected]>
* Bowen Wang <[email protected]>

Portions of this software are derived from third-party works licensed under
the following terms:
Expand Down
9 changes: 7 additions & 2 deletions bin/asinit
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const rl = require("readline").createInterface({

const projectDir = path.resolve(process.argv[2]);
const compilerDir = path.join(__dirname, "..");
const compilerVersion = require(path.join(compilerDir, "package.json")).version;
const assemblyDir = path.join(projectDir, "assembly");
const tsconfigFile = path.join(assemblyDir, "tsconfig.json");
const tsconfigBase = path.relative(assemblyDir, path.join(compilerDir, "std", "assembly.json"));
Expand Down Expand Up @@ -245,7 +244,13 @@ function ensureIndexJs() {
fs.writeFileSync(indexFile, [
"const fs = require(\"fs\");",
"const compiled = new WebAssembly.Module(fs.readFileSync(__dirname + \"/build/optimized.wasm\"));",
"const imports = {};",
"const imports = {",
" env: {",
" abort(_msg, _file, line, column) {",
" console.error(\"abort called at index.ts:\" + line + \":\" + column);",
" }",
" }",
"};",
"Object.defineProperty(module, \"exports\", {",
" get: () => new WebAssembly.Instance(compiled, imports).exports",
"});",
Expand Down
8 changes: 4 additions & 4 deletions cli/asc.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ exports.main = function main(argv, options, callback) {
let part = aliases[i];
let p = part.indexOf("=");
if (p < 0) return callback(Error("Global alias '" + part + "' is invalid."));
let name = part.substring(0, p).trim();
let alias = part.substring(p + 1).trim();
if (!name.length) return callback(Error("Global alias '" + part + "' is invalid."));
assemblyscript.setGlobalAlias(compilerOptions, name, alias);
let alias = part.substring(0, p).trim();
let name = part.substring(p + 1).trim();
if (!alias.length) return callback(Error("Global alias '" + part + "' is invalid."));
assemblyscript.setGlobalAlias(compilerOptions, alias, name);
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/asc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/asc.js.map

Large diffs are not rendered by default.

170 changes: 90 additions & 80 deletions dist/assemblyscript.d.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/assemblyscript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/assemblyscript.js.map

Large diffs are not rendered by default.

Loading