Implement subgraph JSON host APIs fromBytes and try_fromBytes (#105)

* Implement JSON fromBytes host API

* Implement json.try_fromBytes host API

* Fill host API code for json number methods
This commit is contained in:
2022-01-03 18:15:20 +05:30
committed by GitHub
parent 6a2c99a0bb
commit 4867530da7
8 changed files with 433 additions and 141 deletions
+3 -2
View File
@@ -22,7 +22,8 @@
"ethers": "^5.2.0",
"nodemon": "^2.0.7",
"ts-node": "^10.0.0",
"typescript": "^4.3.2"
"typescript": "^4.3.2",
"mocha": "^8.4.0"
},
"bin": {
"compare-entity": "bin/compare-entity"
@@ -33,7 +34,7 @@
"asbuild:debug": "asc assembly/index.ts --lib ./node_modules --exportRuntime --target debug --runPasses asyncify --runtime stub --maximumMemory 10",
"asbuild:release": "asc assembly/index.ts --lib ./node_modules --exportRuntime --target release --runPasses asyncify",
"asbuild": "yarn asbuild:debug && yarn asbuild:release",
"test": "yarn asbuild:debug && DEBUG=vulcanize:* mocha src/**/*.test.ts",
"test": "yarn asbuild:debug && DEBUG=vulcanize:* node --experimental-wasm-bigint node_modules/.bin/_mocha src/**/*.test.ts",
"build:example": "cd test/subgraph/example1 && yarn && yarn build",
"watch": "DEBUG=vulcanize:* nodemon --watch src src/watcher.ts",
"compare-entity": "node bin/compare-entity"