zenith-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web
ishavenikar 713f8bc0bb Add iframe component for signing messages (#25)
Part of https://www.notion.so/Gentx-like-attestation-mechanism-to-add-validators-at-genesis-time-19da6b22d47280ecbf1fe657c241ff59

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
Co-authored-by: AdityaSalunkhe21 <adityasalunkhe2204@gmail.com>
Reviewed-on: LaconicNetwork/laconic-wallet-web#25
Co-authored-by: ishavenikar <ishavenikar@noreply.git.vdb.to>
Co-committed-by: ishavenikar <ishavenikar@noreply.git.vdb.to>
2025-04-25 08:16:44 +00:00
..
README.md Add iframe component for signing messages (#25) 2025-04-25 08:16:44 +00:00
stack.yml Add a laconic-wallet-web stack (#3) 2024-07-26 16:02:27 +05:30

laconic-wallet-web

Instructions for running the laconic-wallet-web using laconic-so

Setup

  • Clone the stack repo:

    laconic-so fetch-stack git.vdb.to/cerc-io/laconic-wallet-web
    
  • Build the container image:

    laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web build-containers
    

    This should create the cerc/laconic-wallet-web image locally

Create a deployment

  • Create a spec file for the deployment:

    laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web deploy init --output laconic-wallet-web-spec.yml
    
  • Edit network in the spec file to map container ports to host ports as required:

    network:
      ports:
        laconic-wallet-web:
          - '3000:80'
    
  • Create a deployment from the spec file:

    laconic-so --stack ~/cerc/laconic-wallet-web/stack/stack-orchestrator/stack/laconic-wallet-web deploy create --spec-file laconic-wallet-web-spec.yml --deployment-dir laconic-wallet-web-deployment
    

Configuration

  • Inside the laconic-wallet-web-deployment deployment directory, open config.env file and set following env variables:

    # WalletConnect project ID, same should be used in the laconic-wallet
    WALLET_CONNECT_ID=
    
    # Allowed urls is a comma separated list of allowed urls
    CERC_ALLOWED_URLS=
    
    # Optional
    
    # WalletConnect code for hostname verification
    WALLET_CONNECT_VERIFY_CODE=
    
    # Default gas price for txs (default: 0.025)
    CERC_DEFAULT_GAS_PRICE=
    
    # Gas adjustment (default: 2)
    # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020
    CERC_GAS_ADJUSTMENT=
    
    # RPC endpoint of laconicd node (default: https://laconicd.laconic.com)
    CERC_LACONICD_RPC_URL=
    

Start the deployment

laconic-so deployment --dir laconic-wallet-web-deployment start

Open the wallet app in a browser at http://localhost:3000

Clean up

  • Stop the deployment:

    laconic-so deployment --dir laconic-wallet-web-deployment stop