Prerequisites
- Node.js and npm installed
- Docker installed and running
- Install dependencies
npm install
- Generate private keys for test users and token mint vaults
./keygen.ts
In another terminal, run the below to
- run the the generic domain docker image using a default configuration and mock
network defined in
domain.yaml - start listening for incoming transactions to the domain
./run_domain.shTo mint a new fungible token on the domain, run the below to
- use the fungible token mint details defined in
mint.tsto create a mint transaction - use the pre-generated mint key to sign this transaction
- submit the signed message to the domain for execution
./mint.tsTo transfer tokens between users, run the below to
- use the debit allowance details defined in
debit.tsto create a debit transaction - use a pre-generated user key to sign this transaction
- submit the signed message to the domain for execution
./debit.tsTo view the vaults and contents on the domain, run
./vaults.ts