github.com/yacovm/fabric@v2.0.0-alpha.0.20191128145320-c5d4087dc723+incompatible/core/scc/test-plugin/plugin.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package main
     8  
     9  import (
    10  	"github.com/hyperledger/fabric-chaincode-go/shim"
    11  	pb "github.com/hyperledger/fabric-protos-go/peer"
    12  )
    13  
    14  // New returns an implementation of the chaincode interface
    15  func New() shim.Chaincode {
    16  	return &scc{}
    17  }
    18  
    19  type scc struct{}
    20  
    21  // Init implements the chaincode shim interface
    22  func (s *scc) Init(stub shim.ChaincodeStubInterface) pb.Response {
    23  	return shim.Success(nil)
    24  }
    25  
    26  // Invoke implements the chaincode shim interface
    27  func (s *scc) Invoke(stub shim.ChaincodeStubInterface) pb.Response {
    28  	return shim.Success(nil)
    29  }
    30  
    31  func main() {}