Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.1 KB

README.md

File metadata and controls

60 lines (43 loc) · 1.1 KB

Sample Aspect

Instruction

This is a sample project of Artela Aspect.

Files

.
├── README.md
├── asconfig.json
├── aspect                 <-- Your aspect code resides here
│   └── index.ts
├── contracts                  <-- Place your smart contracts here
├── scripts                    <-- Utility scripts, including deploying, binding and etc.
│   ├── aspect-deploy.cjs
│   ├── bind.cjs
│   ├── contract-call.cjs
│   └── contract-deploy.cjs
...

Useful links

How to work

npm install

create account for test

 npm run account:create

there will be private Key when completed

  1. ./privateKey.txt

To acquire Test Tokens for your testing needs : https://docs.artela.network/develop/resources/faucet

build code

npm run contract:build

## rm -rf ./build/contract/Attack_storage.json
## npm run aspect:gen

npm run aspect:build

execute test case

cd test
node *.test.js