3.2.3 • Published 3 years ago

near-sdk-as v3.2.3

Weekly downloads
589
License
(MIT AND Apache-2...
Repository
github
Last release
3 years ago

near-sdk-as

Collection of packages used in developing NEAR smart contracts in AssemblyScript including:

  • runtime library - AssemblyScript near runtime library
  • bindgen - AssemblyScript transformer that adds the bindings needed to (de)serialize input and outputs.
  • near-mock-vm - Core of the NEAR VM compiled to WebAssembly used for running unit tests.
  • @as-pect/cli - AssemblyScript testing framework similar to jest.

To Install

yarn add -D near-sdk-as

Project Setup

To set up a AS project to compile with the sdk add the following asconfig.json file to the root:

{
  "extends": "near-sdk-as/asconfig.json"
}

Then if your main file is assembly/index.ts, then the project can be build with asbuild:

yarn asb

will create a release build and place it ./build/release/<name-in-package.json>.wasm

yarn asb --target debug

will create a debug build and place it in ./build/debug/..

Testing

Unit Testing

See the sdk's as-pect tests for an example of creating unit tests. Must be ending in .spec.ts in a assembly/__tests__.

License

near-sdk-as is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-MIT and LICENSE-APACHE for details.

3.2.3

3 years ago

3.2.2

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

3.0.0-alpha.0

3 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.2.0-next.0

3 years ago

2.1.2-next.0

3 years ago

2.1.1

3 years ago

2.1.0

4 years ago

2.0.0

4 years ago

2.0.0-next.2

4 years ago

2.0.0-next.3

4 years ago

2.0.0-next.0

4 years ago

2.0.0-next.1

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-4

4 years ago

1.0.0-3

4 years ago

1.0.0-2

4 years ago

1.0.0-1

4 years ago

1.0.0-0

4 years ago

0.5.0

4 years ago

0.4.2

4 years ago

0.3.4-2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.4-1

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.1-0

4 years ago

0.3.0

4 years ago

0.2.2-9

4 years ago

0.2.2-8

4 years ago

0.2.2-7

4 years ago

0.2.2-6

4 years ago

0.2.2-10

4 years ago

0.2.2

4 years ago

0.2.2-4

4 years ago

0.2.2-3

4 years ago

0.2.2-5

4 years ago

0.2.2-2

4 years ago

0.2.2-1

4 years ago

0.2.2-0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.1.0-1

4 years ago

0.1.0-0

4 years ago

0.0.2-0

4 years ago

0.0.1-alpha.1

4 years ago

0.0.1-alpha.0

4 years ago

0.0.2

4 years ago