Skip to content

Commit

Permalink
implement lockable ft example
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov committed May 19, 2022
1 parent 366e33b commit 819b05f
Show file tree
Hide file tree
Showing 7 changed files with 6,568 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/lockable-fungible-token/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
node_modules
16 changes: 16 additions & 0 deletions examples/lockable-fungible-token/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Lockable fungible token contract in JavaScript

This is an equivalent JavaScript implementation of the lockable fungible token example.

## Build the contract

First ensure JSVM contract is build and deployed locally, follow [Local Installation](https://github.com/near/near-sdk-js#local-installation). Then run:
```
npm i
npm run build
```

## Test the contract with workspaces-js
```
npm run test
```
6 changes: 6 additions & 0 deletions examples/lockable-fungible-token/babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": [
"near-sdk-js/src/build-tools/near-bindgen-exporter",
["@babel/plugin-proposal-decorators", {"version": "legacy"}]
]
}
Loading

0 comments on commit 819b05f

Please sign in to comment.