Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewasm/scout.ts
TypeScript port of Scout
https://github.com/ewasm/scout.ts
eth2 ethereum webassembly
Last synced: 11 days ago
JSON representation
TypeScript port of Scout
- Host: GitHub
- URL: https://github.com/ewasm/scout.ts
- Owner: ewasm
- License: apache-2.0
- Created: 2019-07-19T14:06:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T18:05:44.000Z (over 4 years ago)
- Last Synced: 2024-08-05T07:01:30.433Z (4 months ago)
- Topics: eth2, ethereum, webassembly
- Language: TypeScript
- Homepage:
- Size: 1.31 MB
- Stars: 7
- Watchers: 4
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scout.ts
Typescript port of [scout](https://github.com/ewasm/scout).## Usage
### Node
In order to run an execution environment, several build steps need to be performed. First build the typescript source code:```sh
npm run build
```Then, the execution environment written in AssemblyScript needs to be built. The hello world example can be built by running:
```sh
npm run asbuild:optimized
```In order to build a custom execution environment you can use something like:
```sh
asc assembly/test/index.ts -b build/test-optimized.wasm -t build/test-optimized.wat --sourceMap --validate --optimize
```To run the EE, you'll need a scout yaml file (see `test.yaml` for an example) which also specifies the path to the Wasm binary:
```sh
npm run start test.yaml
```### Browser
The process for running the script in the browser is similar. When building the typescript source code, use instead:
```sh
npm run build:browser
```And when running the EE, modify the `yamlPath` variable in `src/browser.js` to point to your yaml file and do:
```sh
npm run start:browser
```