dmanjunath / guerillaflotilla.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guerilla Flotilla

Example site to demonstrate armada building client side bundles for Armada Network

Update / Debug site

npx live-server

Creating a bundle & checksum

# this command creates a dist/ folder with the production assets and calls the armada bundle create command
# outputs a file called guerillaflotilla.sh
sh build.sh

# to get the checksum run
npx armada-cli bundle checksum guerillaflotilla.tgz

Update bundle on chain

npx armada-cli project publish <ProjectID> <BundleURL> <BundleChecksum>

To add Web3 to the Chrome DevTools and test web3 requests

var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/web3/4.0.2/web3.min.js';
document.head.appendChild(script);

var w3 = new Web3("https://mainnet.infura.io/v3/<key>")
w3.eth.getBlockNumber()

About


Languages

Language:JavaScript 53.8%Language:CSS 23.1%Language:HTML 17.2%Language:Shell 5.9%