NEAR AssemblyScript Project Set Up

Overview

Prerequisites

Establishing Vocabulary

Initializing Project Environment

Npm initialization

Configuration Initialization

Yarn Initialization

{
    // ...
    "devDependencies":{
        "near-sdk-as": "^3.0.0"
    }
    // ...
}

Test Initialization

import {helloWorld} from '..';

describe("example", ()=>{
    it("should return 'hello world'", ()=> {
        expect(helloWorld()).toStrictEqual("hello world");
    })
})
module.exports = require("near-sdk-as/imports")