【科学家养成日记#14】Mora Swap测试网体验所有功能代码
IPFS
MoraSwap是Solana EVM链NEON上的DEX,目前还在测试网测试:https://moraswap.com/

由于是基于Uniswap的Fork,所以功能基本和Uniswap差不多: 交易,提供流动,Farm,质押
之前写过零零散散这方面的代码,这次准备写个完整的,并且决定用etherjs来完成(web3js没有etherjs好用)
代码: https://github.com/ericet/MoraSwap
这个脚本会自动帮你领水,交易,提供流动,Farm,质押和解除质押,走一遍MoraSwap的所有功能
设置
- git clone https://github.com/ericet/MoraSwap.git
- cd MoraSwap
- npm install
- 文件改名
- mv .env.example .env
- 把私钥放在.env 文件里面的KEYS后面。比如:TEST_PRIVATE_KEY=000000000,011111111,0222222222
运行程序
node MoraSwap.js
交互了也不代表会有空投,代码仅学习用处
Like my work? Don't forget to support and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!