github.com/turingchain2020/turingchain@v1.1.21/system/dapp/coins/plugin.go (about)

     1  // Copyright Turing Corp. 2018 All Rights Reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package coins 系统级coins dapp插件
     6  package coins
     7  
     8  import (
     9  	"github.com/turingchain2020/turingchain/pluginmgr"
    10  	_ "github.com/turingchain2020/turingchain/system/dapp/coins/autotest" // register package
    11  	"github.com/turingchain2020/turingchain/system/dapp/coins/executor"
    12  	"github.com/turingchain2020/turingchain/system/dapp/coins/types"
    13  )
    14  
    15  func init() {
    16  	pluginmgr.Register(&pluginmgr.PluginBase{
    17  		Name:     types.CoinsX,
    18  		ExecName: executor.GetName(),
    19  		Exec:     executor.Init,
    20  		Cmd:      nil,
    21  		RPC:      nil,
    22  	})
    23  }