Skip to content

TypeScript Implementation of bridger and minter for hyperline projects

License

Notifications You must be signed in to change notification settings

whonion/ts-hyperline-aio

Repository files navigation

Status MIT License Build TS viem Node Version node-fetch Version ts-node cosmjs/proto-signing Version Bech32 Version dotenv Version

hyperline-aio

TypeScript Implementation of bridger and minter for hyperline projects


Features

Implemented functions:

  • Buy TIA.n and Eclip in Camelot on Arbitrum
  • Send TIA.n and Eclip from Arbitrim to Neutron via bridge Nexus
  • Buy BTC,ETH,USDT,USDC,ZBC ODOS on BNB-chain
  • Send BTC,ETH,USDT,USDC,ZBC from BNC-chain to Nautilus via Nautilus bridge

Necessary to implement:

  • Autocalculate local gas fee and interchain gas fee
  • IBC Transaction from Celestia to Neutron
  • Zeroway minter and bridger
  • Bebop api swaps sattlement
  • Reverse transfer to the target network

Installation and running

1. Install Node.js

sudo apt install git
sudo apt install nodejs
sudo apt install npm
node -v
npm -v

2. Clone repo and install dependencies

git clone https://github.com/whonion/ts-hyperline-aio.git
cd ts-hyperline-aio
npm i
npm i -g typescript

3. Rename .env.example to .env and set required variables:

# Variables for module nexus.ts
#LOCAL_GAS_FEE=0.0011
#INTERCHAIN_GAS_FEE=0.0003
ARB_EXP = 'https://arbiscan.io/tx/'
ARB_RPC = 'https://arbitrum.llamarpc.com'

MAX_PAY_ETH = 0.0000069420
MAX_PAY_BNB = 0.0000069420

# Variables for module nautilus.ts
BSC_RPC = 'https://bsc.meowrpc.com'
INTERCHAIN_GAS_FEE_BSC=369655053048
INTERCHAIN_GAS_FEE_NAUTILUS=4660001
NAUTILUS_SEND_TOKENS=BTC,ETH,USDT,USDC,ZBC

4. Rename data/private_keys.txt.example to data/private_keys.txt and add your private keys (can add without 0x)

0x
0x
0x
0x
0x
0x
0x
0x
0x
0x

5. Run script with command:

npm run app

6. Run individual module:

  "scripts": {
    "app": "npm-run-all nexus odos bridge",

    "nexus": "ts-node main.ts",
    "odos": "ts-node src/odos.ts",
    "bridge": "ts-node src/nautilus.ts",
    "unbridge": "ts-node src/nautilusback.ts",

    "build": "tsc --project tsconfig.json",
    "clean": "tsc --build --clean"
  }
npm run nexus
npm run odos
npm run bridge

npm run unbridge

npm run build
npm run clean

About

TypeScript Implementation of bridger and minter for hyperline projects

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published