1.2.4 • Published 10 months ago

@descartes-network/falcon-dex v1.2.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Falcon DEX

Falcon DEX is a Uniswap-v2-like AMM on Solana. The AMM implementation is heavily relying on Uniswap v2.

Beside that, we also add some extra features to help leverage others on-top application in the future. You can find details in the Implementation.

Table of Contents

Preresiquite

anchor-lang

Please follow this link https://www.anchor-lang.com/docs/installation to setup anchor-lang on your machine.

pnpm

Due to some conlicts between yarn and anchor-lang, we decided to migrate yarn to pnpm within this project. Follow https://pnpm.io/installation to setup pnpm and run the below commands to install the project's dependencies

pnpm install

Versions

There are many people experienced unexpected issues due to the version compatibility of rustc, solana, anchor. To reduce the problem, You SHOULD follow the well-tested set of following versions.

NameVersion
rustc1.74.0
solana1.16.19
pnpm8.11.0
anchor0.29.0

How to run?

Build

To build the program,

pnpm build

Test

To run the testcase,

pnpm test

For more details about the test cases, you can explore it Falcon DEX Testing.

Implementation

Folder Structure

Folder nameDescription
src/falcon-dexThe smart contract implementation
src/falcon-dex/instructionsThe smart contract's processors. Each instruction from users will be navigated to the relevant processor.
src/falcon-dex/schemaDefines program account schema.
appThe Falcon DEX's SDK to help developers to interact with the smart contract.
migrationsContains smart contract deployment scripts.
testsContains testcases for both the smart contract and the SDK.
.githubDefines Github workflows

Audited

~

Copyright

Falcon DEX © 2023 Falcon Space LLC.

1.2.4

10 months ago

1.2.4-next.1

10 months ago

1.2.3

11 months ago

1.2.3-next.1

11 months ago

1.2.2

11 months ago

1.2.2-next.1

11 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.2.1

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago

1.0.0-next.5

11 months ago

1.0.0-next.4

11 months ago

1.0.0-next.3

11 months ago

1.0.0-next.2

11 months ago

1.0.0-next.1

11 months ago