Cargo.toml
README.md
babel.config.js
build_docker.sh
build_docker_m1.sh
build_local.sh
cli.txt
contract
    compile.js
    src
        cli.txt
        lib.rs
        object.rs
        utils.rs
jest.config.js
package.json

NEAR Smart Contract Boilerplate
======

- Basic smart contract structure
- Jest sim tests
- Build local/docker binaries
- Build & deploy scripts

HOW TO USE
======
Create new repo && download this boilerplate to target folder:

```
wget https://github.com/zavodil/near-contract/archive/refs/heads/main.zip -O "near-contract-master.zip" && unzip ./"near-contract-master.zip" -d $PWD && rm ./"near-contract-master.zip" && mv -v $PWD/near-contract-main/* $PWD && rm -rf near-contract-main
```

BUILD DOCKER ON M1:
===
Prepare docker
```
 clone https://github.com/near/near-sdk-rs/pull/720/files
 ./build_docker_m1.sh
```

Run docker buildx `contract-builder`
``` 
 ./build_docker_m1.sh
```
