Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ics20 marker creation for receiving marker via ibc sends (#1678)
* Add Osmosis IBC-Hooks Initial port * ibchooks lint fixes * lint fixes and depguard config for golang-ci lint * Remove import comments * wip/adding testing system * clean up tests * fix wasm keeper hooks wiring * add basic simulation wiring to ibchooks * set default ibchooks params in upgrade * remove unused golangci-lint linters * lint work * protection for quotes in quoted json * changelog * temporary fix for invalid simulation handling for staking denom * restore supply increase proposal simulation for valid markers * use calculated temporary supply increase * wip: build fix * Further proposal disabling for marker supply tests * switch to reference contracts from embedded wasm * start hook entry point file, start marker hooks file * refactor structure to allow for ics20 marker hook calls * do lint-fix * fix mock's lint * fix more lint issues * add marker send packet override * update marker hooks logic * add some more logic flow * check if denom is not from source chain to do marker mutations * do not try and create marker if denom is from source * fix lint issues with imports * update test * test fix json * test json change * move marker memo struct to types * move wasm structs to type... still needs some reworking to correct json * refactor json structs, add tests, add constructors * comment one test case for now. Test needs fixing not implementation * add send packet functions * add map for processing after SendPacket * move memo processing on the receiver, process transfer auths in memo * finalize creating remote marker and transfer permissions, decided if it is restricted or coin type on creation, start fixing some broken tests * add chain id and denom meta data * add callback data to post send processing, refactor packet bytes order in send function, fix tests * add new marker error type, emit error on acknowledgement if error processing memo * add error handling for reset marker access grants * remove unused bank keeper from constructor of maker hooks * remove unused parameter from get chain id * rename variables * remove unused variable from memo processing * refactor send processing fn parameters * add call back validation checks in wasm processing function, various lint fixies * add start to maker hooks tests, remove todo comment * add happy path test for ProcessMarkerMemo * refactor way memo creation and processing works, refactor method names, start a few more tests * complete process marker memo tests * finish reset permissions tests * add more tests * rename pre send data processing functions * add pre send packet data processing test for marker hooks * refactor processing loop * review PR and add updates to method comments and refactor function name * more refactors * add change log * fix method comments * add test * change logic flow * refactor AddUpdateMarker flow * fix lint * rename method * update tests * change codeID * add allow force transfer flag * extract updating of auth-transfers and allow force transfer into own function --------- Co-authored-by: Ira Miller <[email protected]> Co-authored-by: Ira Miller <[email protected]>
- Loading branch information