Skip to content

weavedb/weavedb-ao

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeaveDB on AO

Deployment

You need to set up 5 components for local testing.

  • WAO Server
  • WeaveDB on AO
  • Rollup Node
  • WeaveLayer on AO
  • Frontend Demo

WAO Server (Local Arweave & AO Units)

npx wao

Check that the following units are running.

WeaveDB Processes on AO

Clone the repo and install dependencies.

git clone https://github.com/weavedb/weavedb-ao.git
cd weavedb-ao/lua && yarn
mkdir scripts/.wallets

Under scripts/.wallets, prepare the following wallets.

  • Owner ( owner.json | Arweave )
  • Bundler ( bundler.json | Arweave )
  • DB-Creator ( db.json | Arweave )
  • Validator1 ( validator1.json | Arweave )
  • Validator2 ( validator2.json | Arweave )
  • Delegator ( delegator.json | Arweave )
  • Rollup-Admin ( admin.json | EVM )
  • ZK-Committer ( committer.json | EVM )

The zk-committer must have a positive ETH balance. Alchemy has a faucet for Sepolia.

Or you can generate missing wallets.

node scripts/gen_wallets.js

Create .env in weavedbb-ao/lua directory and specify alchemy key.

ALCHEMY=XXXXXXXXXXXXXXXXXXXX

Deploy contracts.

node scripts/deploy_all.js

WeaveDB Rollup

In another terminal, run envoy so frontend apps can access via port 8080.

cd weavedb-ao
yarn envoy

Now start the rollup node in another terminal.

cd weavedbb-ao/node/node-server && yarn
node index.js

WeaveLayer Staking on AO

Set up staking.

node scripts/setup_staking.js

Frontend Demo

In anotehr terminal, run the demo app.

cd weavedb-ao/demo && yarn
yarn dev

Now, the demo is runnint at localhost:3000.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.4%
  • Other 1.6%