export function send(target: any, propertyKey: string, descriptor: PropertyDescriptor): void;
export class Contract extends SmartContract {
@send
public withdraw(arg0: Address, arg1: Fixed<8>, transfer: Transfer): boolean {
// Don't allow sending anything but NEO
if (!transfer.asset.equals(Hash256.NEO)) {
return false;
}
// Do some additional checks on the transfer.to and transfer.amount being sent and other arguments.
return true;
}
}