Set ABI in resolver

Hey, do you have any example how I can store ABI in resolver? I know there is setABI function, but I have problem with encoding whole ABI.

See the EIP draft that explains encodings here: https://eips.ethereum.org/EIPS/eip-205