This is the monorepo which contains the source code for Namada Extension.
The main extension source code is located in apps/extension/src. We also use
several local packages; their sources are in:
packages/chains/srcpackages/components/srcpackages/hooks/srcpackages/sdk/srcpackages/storage/srcpackages/types/srcpackages/utils/srcpackages/shared/lib(shared package Rust code compiled to WebAssembly)packages/shared/src(shared package TypeScript glue code)packages/crypto/lib(crypto package Rust code compiled to WebAssembly)packages/crypto/src(crypto package TypeScript glue code)
These instructions should work for the default reviewer build environment.
sudo apt install protobuf-compiler build-essential
curl https://sh.rustup.rs -sSf | sh
npm install -g yarn
export PUPPETEER_SKIP_DOWNLOAD=true
yarn
cd apps/extension
yarn wasm:buildBefore building the extension, you must specify the following value in a .env file in apps/extension:
NAMADA_INTERFACE_NAMADA_CHAIN_ID=internal-devnet-43.d9368f80c60Then, issue the final build command for the Firefox add-on:
yarn build:firefoxThe resulting extension is the ZIP file in apps/extension/build/firefox.