LogoLogo
  • Introduction
  • Network
    • SXP
    • Staking
    • Governance
    • API
  • Swap
    • Smart Contract
      • Implement a Swap
      • Providing Liquidity
      • Building an Oracle
      • Flash Swaps
      • Pair Addresses
      • Supporting meta transactions
    • Subgraph API
      • Exchange
        • Entities
        • Queries
      • MasterChef
        • Entities
        • Queries
    • Reference
      • Smart Contracts
  • Swipechain
    • Introduction
    • Swipe Nodes
      • Churn
      • Bitfrost
      • Transactions
      • Continuous Liquidity Pools
      • Incentivizes
      • Governance
    • Run SwipeChain
      • Build on Source Code
      • Build with Script
    • Developers
      • How to contribute
      • Connecting to SwipeNode
  • Staking
  • Staking Details
    • Swipe Network
    • SXP Bonding
    • Unbond SXP
  • Metamask
    • Add Swipe Token
    • Deposit SXP
    • Connect MetaMask
    • Stake SXP
  • Trust Wallet
    • Add Swipe Token
    • Deposit SXP
    • Connect Trust Wallet
    • Stake SXP
  • Ledger
    • Connect Ledger
    • Add Swipe Token
    • Deposit SXP
    • Connect to Swipe
    • Stake SXP
  • View your Rewards
  • Claim Your Rewards
  • Governance
    • Vote
    • Proposals
  • FAQ
    • Frequently Asked Questions
Powered by GitBook
On this page

Was this helpful?

  1. Swipechain

Run SwipeChain

Guide to set up SwipeChain Node on source code and script.

Ensure you have a recent version of go (ie 1.15) and enabled go modules And have GOBIN in your PATH

export GOBIN=$GOPATH/bin

Automated Install Locally

Install via this make command.

make install

Once you've installed swipecli and swiped, check that they are there {GOBIN} folder swipecli and swiped generated.

swipecli help
swiped help

Start Standalone Full Stack

For development and running a full chain locally (your own separate network), use the following make command.

make -C build/docker reset-mocknet-standalone

Format code

make format

Build all

make all

Test

Run tests

make test
# test with NATIVE SXP
NATIVE=true make test

To run test live when you change a file, use...

go get -u github.com/mitranim/gow
make test-watch
PreviousGovernanceNextBuild on Source Code

Last updated 3 years ago

Was this helpful?