Smart contracts created using Python contain a main function as the entry point. This function accepts two parameters. The first parameter accepts the type of operation, and all the additional arguments are passed to the second parameter in a list. The operation parameter accepts register, query, delete, and transfer so that it can perform asset management functions.
The main function of the smart contract parses the operation parameter and invokes the respective function in the smart contract to perform operations on the asset. The main function parses the args parameter and assigns the first item of the list to asset_id, and the others to owner:
from boa.interop.Neo.Runtime import Log, Notify from boa.interop.Neo.Storage ...