import { FreeManaSharer } from "./FreeManaSharer"; import { authority, System, Protobuf } from "@koinos/sdk-as"; const contract = new FreeManaSharer(); contract.callArgs = System.getArguments(); let returnBuffer = new Uint8Array(1024); switch (contract.callArgs!.entry_point) { /* class FreeManaSharer */ // authorize case 0x4a2dbd90: { const args = Protobuf.decode(contract.callArgs!.args, authority.authorize_arguments.decode); const result = contract.authorize(args); returnBuffer = Protobuf.encode(result, authority.authorize_result.encode); break; } default: { System.exit(1); break; } } System.exit(0, returnBuffer);