Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ➕ add cw20 to workspace cargo.toml - also runs make update and make upgrade * ➕ add cw20 to packages cargo.toml * ✨ implement ability for entrypoint to receive cw20 token and dispatch swap and action call * ✨ Implement basic Asset type * ✨ Implement sent asset validation, transfer_partial, and add sent asset to calldata * Add todos in entry point execute.rs for cw-20 support * 🚧 Add swap adapter todos for cw-20 support * ✅ Add asset tests * ⚡️ Add nonpayable to sent cw20 token validate * ✅ Add invalid tests to asset validation * ✅ add more than one coin test to asset validation, run make fmt * ✨ implement sub method * ♻️ convert remaining_coin to asset in entry point contract * ✨ Implement swap method on asset type * ✨ Implement astroport swap operation conversion with cw20 support * ✨ Update astroport swap contract for cw20 support * ✨ Update osmosis swap adapter to support Asset type in query messages - No changes made to the ExecuteMsg::Swap since Osmosis does not support cw-20 tokens * ⚡️ reduce unnecessary code in cw20 validation * ✨ implement more functionality onto Asset type * ♻️ Change min_coin to min_asset * ✨ Update swap methods for cw20 support * ✨ Update entry point contract for cw20 support * ✨ Update swap adapter contracts for cw20 support * Update user_swap_tests for cw20 support * ✅ update execute swap and action test for asset type * ✅ update execute post swap action tests for asset type * 🎨 run make fmt * ✅ Update osmosis swap adapter tests for asset type * ✅ Update astroport swap adapter tests for asset type * ✅ update user swap tests for asset type * ⬆️ run make update * ⬆️ run make upgrade * 📝 Update schemas * 🐛 add .PHONY to makefile - Was not working for schema since a folder named schema in same dir * 🐛 properly query cw20 balance in post swap logic * ✨ Add receive entrypoint to astroport swap adapter - Also adds unimplemented in the match for osmosis poolmanager since cw20 tokens are not supported there yet * ✨ add Asset::new() method * ✅ add get_current_asset_available test * ⚡️ Consolidate the diff type into_wasm_msg methods into a single method * ♻️ reduce re-written code * 🔥 only have a transfer method on asset, removed unused method * ♻️ Have new Asset method take in Api instead of DepsMut - For use with queries * ♻️ use new Asset method in astroport swap adapter contract * ✨ Update osmosis swap adapter for queries to return asset type * ✨ add into_astroport_asset method for Asset and use in astro swap adapter contract * 🔥 Remove todo * ♻️ Rename NeutronInstantiateMsg to AstroportInstantiateMsg * ♻️ Use Asset::new in transfer_funds_back function * ⚡️ Remove need for sent_asset in entry point contract call - Now, depending on if the entry point is being called directly or through the cw20 receive, it will validate and generate the sent_asset object itself - Reduces the server side changes needed - Updates tests - Updates schema * ⚡️ Set entry point contract address as sender on cw20 receive in astroport swap adapter contract * ⚡️ Remove required sent_asset param to swap adapters - Now the swap adapters gen sent_asset if needed on their own, similar to how entry point does it - Updates tests * ✏️ small clean up * 🚀 Update deployed contracts: neutron testnet * 🚀 Update deployed contracts: neutron mainnet * 🚀 Update deployed contracts: osmosis testnet * 🚀 Update deployed contracts: osmosis mainnet * 🚀 Update deployed contracts: terra testnet * 🚀 Update deployed contracts: terra mainnet * change recover entrypoint to use min_asset * Support cw20 swap and action with recover entry point * refactor execute_swap_and_action_with_recover tests * run make fmt * refactor test_reply * add comment on test cases * run make fmt * use coin::default for asset::default_native * add comment * change namings of Coin to Asset where applicable * Change BankSend name to Transfer - Since it now transfers both coins and cw20 assets * update schemas * add sent_asset as a param into non-cw20 entry points * update schema * add test files for receive entrypoint * add CW20 Asset tests for swap and action * delete repeated test - now tested in test_execite_swap_and_action.rs * Add cw20 tests to swap and action with recover * Add cw20 asset tests to test_reply * add cw20 asset tests to post swap action * add cw20 tests to test user swap * fix bug in swap adapter contract and add tests - must switch info.sender after the sent_asset is created * Update deploy.py to be more robust and wait longer - broadcast_tx_commit was not meant to be used in prod * update neutron testnet deployed contracts * update neutron mainnet contracts * update deploy script to use /cosmos/tx/v1beta1/txs * update deployed terra testnet contracts * update terra mainnet deployed contracts * update osmosis testnet deployed contracts * update osmosis mainnet deployed contracts * update chain config urls * update tests * run make fmt * update deployed terra contracts * update neutron deployed contracts * add salt to deployed contracts output
- Loading branch information