This repo contains short scripts that do basic things via Eulith.
These scripts are designed to give you a brief introduction to our services. We're always available to help you onboard & answer questions.
Please note the examples contained in this repo do NOT constitute a comprehensive summary of our services. These are a few of the most simple possible building blocks we've chosen to demonstrate.
You can see:
- A basic swap
- Some ERC20 handling
- How to use a KMS wallet (recommended for production systematic signing)
- Send transactions & interact with your toolkit contract
- Get quotes for Uniswap interactions
- Making an atomic transaction
- Getting live market data
You can run a variety of Eulith examples from this script. Here are the options:
- -e | ERC20 handling
- -k | KMS
- -s | Swap For Armor
- -w | Swap for Wallet
- -t <TO_ADDRESS> | Simple Transfer
- -c | Transfer from toolkit contract
- -u | Uniswap quoting (float price & sqrt limit price)
- -a | Atomic Transaction
- -m | Live Market Data
- -p | Uniswap price streaming
- -x | Open a short position on WETH with USDC collateral
- -d | Demonstrate DefiArmor (WARNING: this is expensive)
If you would like to examine the code for the examples, have a look at the files in the examples folder.
./run.sh -e
./run.sh -t 0xB6c0d1AC638e1Fe06dBBA649a727C8Ebd306A6c8
./run.sh -k
./run.sh -s
./run.sh -c
./run.sh -u
./run.sh -a
./run.sh -m
./run.sh -w