The iscutils package contains various utility methods to simplify the interaction with the IOTA Magic contract.
github.com/iotaledger/wasp/blob/develop/tools/evm/iscutils/README.md
iotaledger/wasp