Skip to content

btc-vision/native-swap

Repository files navigation

Motoswap Native Swap

Bitcoin AssemblyScript TypeScript NodeJS WebAssembly NPM

code style: prettier

Motoswap's Native Swap contract allows users to perform efficient, on chain swaps leveraging web technologies such as AssemblyScript and WebAssembly.

For detailed documentation on how the Native Swap works such as mechanics, math, and security please see NativeSwap.md.

Overview

  • Native BTC Support: Includes specialized logic to handle the irreversibility of transactions.
  • Cross-Chain Efficiency: Utilizes an internal AMM approach combined with reservation models to prevent partial failures that can't be reverted on the blockchain side.
  • Scalable Architecture: Designed to handle high throughput while maintaining consistent, block-based price updates.

Prerequisites

Basic Setup

  1. Install Dependencies:

    npm install
  2. Build the Project:

    npm run build

    This compiles the AssemblyScript code into WebAssembly, along with any TypeScript modules used.

License

This project is licensed under the MIT License. View License for more details.

About

OPNet OrderBook contract

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •