Pendulum Docs
  • Learn
    • Welcome to Pendulum
    • Our Journey
    • Litepaper
    • Tokenomics
      • Token Utility
      • Unlocking Vesting Tokens
    • Roadmap
    • Grants Received
  • Build
    • Introduction
    • Network Parameters
    • Build Environment
      • Local relay chain setup
      • Local Pendulum chain setup
      • Pre-Configured Pendulum
        • Install
        • Configure
        • Launch
        • Sub-commands
          • export-genesis
          • generate-specs
          • generate-docker
      • Foucoco (testnet)
      • Troubleshooting
    • Developing dApps
      • ink!
    • Node Operators
      • Collators
        • Collators List
        • Set up Collator
          • Hardware Requirements
          • Ubuntu Installation
          • Docker Installation
          • Keys Management
          • Become a Collator
          • Node upgrade instructions
      • Spacewalk Vaults
    • Integrations
      • Indexers
      • Oracles
      • Wallets
    • Spacewalk (Stellar bridge)
      • User
        • Spacewalk Step-by-step guide
          • Asset Redemption Post-Vault Liquidation
      • Operating a Vault client
        • Getting Started
          • Testing it locally
            • Building pallets and testchain
            • Creating test accounts
            • Testing the vault client
        • Usage
          • Issue assets
          • Redeem assets
        • Collateral and Liquidation
          • Recovering a vault after liquidation
        • Fees, Costs and Incentives
        • Vault rewards
          • Claiming Vault rewards
        • Troubleshooting
          • Generating metadata
    • Forex AMM
      • Architecture
      • Swap User Guide
      • LP User Guide
        • Swap Pools
        • Backstop Pool
        • Cross Interaction
      • Coverage Ratio and Slippage
      • Deployment Parameters
      • Security and Audits
    • Technical FAQ
    • Status reports
      • 22-10-11 Foucoco stopped after runtime upgrade
  • Community
    • Crowdloan
      • Sign T&Cs for rewards
    • Staking
      • Choosing a Collator to Stake with for $PEN Staking Rewards
      • Delegation
      • Rewards
      • Further Operations on Delegators
    • Testnet Faucet
    • On chain identity guide
    • Cross-chain transfer KSM
    • Using Ledger
    • Governance
    • PEN and AMPE Wallets
    • Add PEN/DOT Liquidity to StellaSwap
    • Pendulum Grant Program
    • Amplitude Grants Program
    • Ambassador Program
    • Ambassador Bounties
  • Resources
    • FAQ
    • Links
      • Website
      • Github
      • Social Media
    • Audits
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Build
  2. Spacewalk (Stellar bridge)
  3. Operating a Vault client
  4. Getting Started
  5. Testing it locally

Testing the vault client

PreviousCreating test accountsNextUsage

Last updated 1 year ago

Was this helpful?

The second important block of our testing scenario are the vaults. These take care of fetching information from Stellar and reporting it to the testchain, as well as reacting to certain events on the testchain and forwarding them to Stellar.

Then run the following command and replace <vault-secret> with the secret key:

cd clients
cargo run --bin vault --features standalone-metadata  -- --keyring alice --stellar-vault-secret-key-filepath <secret_key_file_path> --stellar-overlay-config-filepath <cfg_file_path>

# You can use, from the provided examples
cargo run --bin vault --features standalone-metadata -- --keyring alice --stellar-vault-secret-key-filepath ./spacewalk/clients/stellar-relay-lib/resources/secretkey/stellar_secretkey_testnet --stellar-overlay-config-filepath ./spacewalk/clients/stellar-relay-lib/resources/config/testnet/stellar_relay_config_sdftest1.json

Wait until it finishes building, and ignore any warnings. If it builds and runs successfully, you should see logs like this:

At this point, you have the main blocks up and running, and you're ready to bridge some assets.

Testing

We provide some ready-to-use configurations in our GitHub repository, you can play around with the various configurations here

Once your vault is up and running your terminal should look like this