/
plugin.go
26 lines (23 loc) · 913 Bytes
/
plugin.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package paracross
import (
"github.com/33cn/chain33/pluginmgr"
_ "github.com/33cn/plugin/plugin/crypto/bls" // register bls package for ut usage
_ "github.com/33cn/plugin/plugin/dapp/paracross/autotest" // register autotest package
"github.com/33cn/plugin/plugin/dapp/paracross/commands"
"github.com/33cn/plugin/plugin/dapp/paracross/executor"
"github.com/33cn/plugin/plugin/dapp/paracross/rpc"
"github.com/33cn/plugin/plugin/dapp/paracross/types"
_ "github.com/33cn/plugin/plugin/dapp/paracross/wallet" // register wallet package
)
func init() {
pluginmgr.Register(&pluginmgr.PluginBase{
Name: types.ParaX,
ExecName: executor.GetName(),
Exec: executor.Init,
Cmd: commands.ParcCmd,
RPC: rpc.Init,
})
}