Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.24 KB

README.md

File metadata and controls

61 lines (44 loc) · 1.24 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

create account for test

 npm run account:create
 npm run account:create -- --skfile ./aspect_accounts.txt
 npm run account:create -- --skfile ./attack_accounts.txt

there will be three private Key when completed

  1. ./privateKey.txt
  2. ./aspect_accounts.txt
  3. ./attack_accounts.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