Skip to content

Commit

Permalink
add way to run uniswap contract
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Aug 16, 2024
1 parent 0a8d9f9 commit f4132d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/kparse-txn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
kparse -s Transactions -m SOLIDITY-DATA-SYNTAX "$(cat "$1")"
3 changes: 3 additions & 0 deletions bin/run-contract.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

krun test/examples/swaps/UniswapV2Swap.sol -cTXN=test/transactions/swaps/UniswapTest.txn -pTXN="$(dirname "$0")/kparse-txn" "$@"
3 changes: 3 additions & 0 deletions test/transactions/swaps/UniswapTest.txn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
create(1p160, 0p256, "UniswapV2SwapTest()", ),
txn(1p160, 2p160, 0p256, "setUp()", ),
txn(1p160, 2p160, 0p256, "testSwapSingleHopExactAmountIn()", )

0 comments on commit f4132d5

Please sign in to comment.