Can I publish an object from a smart contract function from a published package, that can hold a function definition?