-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add setup for deploy and test (#119)
* initial commit * set pool_state init params for testing * add YasMintCallback for testing * add mint() YASMintCallback * adding WALLET and POOL_ADDRESS constants * remove prints() from yas_pool * add caller into data arr param * add setup() for mint tests + refactor * remove prints * scarb fmt * fix event emit * uncomment tests libs * add Swap & SwapCallback * rename mod * rename YASRouter contract * adding tokens into script * remove unnecessary interface ERC20 * fix lock * move /tests/erc20 to /contracts/yas_erc20 * add steps into script * add mint() and swap() into script * fix u256 params * add pool balances * .gitignore add .idea * refactor initialize_pool() * refactor mint() * refactor balance_of() * add approve() and uncomment erc20 allowance assert * refactor + fix swap() * add swap rust docs * rename :P * remove unnecessary call * fix swap + modify script * fix tests * scarb fmt * fix merge error * add 'make demo-local' * remove unused imports * add readme script steps * fix readme err * run prettier --------- Co-authored-by: dpinones <[email protected]>
- Loading branch information
Showing
10 changed files
with
772 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.starkli-wallets/** | ||
target | ||
.env | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,9 @@ build: | |
|
||
deploy: | ||
cargo run --bin deploy | ||
|
||
demo-local: | ||
cargo run --bin local | ||
|
||
test: | ||
scarb test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.