func: function () payable {
          require(msg.value > 0);
          if(!allSaleCompleted){
              this.tokenGenerationEvent.value(msg.value)(msg.sender);
          } else if ( block.timestamp >= end_time ){
              this.purchaseWolk.value(msg.value)(msg.sender);
          } else {
              revert();
          }
      }