Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
a0d22623
Commit
a0d22623
authored
Nov 08, 2018
by
king wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add update plugin shell
parent
8f941aca
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
161 additions
and
30 deletions
+161
-30
.gitignore
.gitignore
+2
-1
Makefile
Makefile
+4
-0
init.go
consensus/init/init.go
+5
-5
init.go
crypto/init/init.go
+2
-5
init.go
dapp/init/init.go
+16
-16
plugin.toml
plugin.toml
+129
-0
init.go
store/init/init.go
+3
-3
No files found.
.gitignore
View file @
a0d22623
...
@@ -7,4 +7,5 @@ store/kvmvcc/kvmvcc.test
...
@@ -7,4 +7,5 @@ store/kvmvcc/kvmvcc.test
store/mpt/1.png
store/mpt/1.png
store/mpt/cpu.pprof
store/mpt/cpu.pprof
store/mpt/mpt.test
store/mpt/mpt.test
plugin
tool
Makefile
0 → 100644
View file @
a0d22623
all
:
go get
-v
-u
gitlab.33.cn/chain33/chain33
go build
-i
-o
tool gitlab.33.cn/chain33/chain33/cmd/tools
./tool import
--path
"."
--packname
"gitlab.33.cn/chain33/plugin"
--conf
""
--out
"plugin.toml"
consensus/init/init.go
View file @
a0d22623
package
init
package
init
import
(
import
(
_
"
gitlab.33.cn/chain33/plugin
/consensus/para"
_
"
.
/consensus/para"
_
"
gitlab.33.cn/chain33/plugin
/consensus/pbft"
_
"
.
/consensus/pbft"
_
"
gitlab.33.cn/chain33/plugin
/consensus/raft"
_
"
.
/consensus/raft"
_
"
gitlab.33.cn/chain33/plugin
/consensus/tendermint"
_
"
.
/consensus/tendermint"
_
"
gitlab.33.cn/chain33/plugin
/consensus/ticket"
_
"
.
/consensus/ticket"
)
)
crypto/init/init.go
View file @
a0d22623
package
init
package
init
//系统级别的签名定义
//为了安全考虑,默认情况下,我们希望只定义合约内部的签名,系统级别的签名对所有的合约都有效
import
(
import
(
_
"
gitlab.33.cn/chain33/plugin
/crypto/ecdsa"
_
"
.
/crypto/ecdsa"
_
"
gitlab.33.cn/chain33/plugin
/crypto/sm2"
_
"
.
/crypto/sm2"
)
)
dapp/init/init.go
View file @
a0d22623
package
init
package
init
import
(
import
(
_
"
gitlab.33.cn/chain33/plugin
/dapp/blackwhite"
_
"
.
/dapp/blackwhite"
_
"
gitlab.33.cn/chain33/plugin
/dapp/cert"
_
"
.
/dapp/cert"
_
"
gitlab.33.cn/chain33/plugin
/dapp/evm"
_
"
.
/dapp/evm"
_
"
gitlab.33.cn/chain33/plugin
/dapp/game"
_
"
.
/dapp/game"
_
"
gitlab.33.cn/chain33/plugin
/dapp/hashlock"
_
"
.
/dapp/hashlock"
_
"
gitlab.33.cn/chain33/plugin
/dapp/lottery"
_
"
.
/dapp/lottery"
_
"
gitlab.33.cn/chain33/plugin
/dapp/norm"
_
"
.
/dapp/norm"
_
"
gitlab.33.cn/chain33/plugin
/dapp/paracross"
_
"
.
/dapp/paracross"
_
"
gitlab.33.cn/chain33/plugin
/dapp/pokerbull"
_
"
.
/dapp/pokerbull"
_
"
gitlab.33.cn/chain33/plugin
/dapp/privacy"
_
"
.
/dapp/privacy"
_
"
gitlab.33.cn/chain33/plugin
/dapp/relay"
_
"
.
/dapp/relay"
_
"
gitlab.33.cn/chain33/plugin
/dapp/retrieve"
_
"
.
/dapp/retrieve"
_
"
gitlab.33.cn/chain33/plugin
/dapp/ticket"
_
"
.
/dapp/ticket"
_
"
gitlab.33.cn/chain33/plugin
/dapp/token"
_
"
.
/dapp/token"
_
"
gitlab.33.cn/chain33/plugin
/dapp/trade"
_
"
.
/dapp/trade"
_
"
gitlab.33.cn/chain33/plugin
/dapp/valnode"
_
"
.
/dapp/valnode"
)
)
plugin.toml
0 → 100644
View file @
a0d22623
[consensus-para]
Type
=
"consensus"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/consensus/para"
Version
=
""
[consensus-pbft]
Type
=
"consensus"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/consensus/pbft"
Version
=
""
[consensus-raft]
Type
=
"consensus"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/consensus/raft"
Version
=
""
[consensus-tendermint]
Type
=
"consensus"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/consensus/tendermint"
Version
=
""
[consensus-ticket]
Type
=
"consensus"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/consensus/ticket"
Version
=
""
[crypto-ecdsa]
Type
=
"crypto"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/crypto/ecdsa"
Version
=
""
[crypto-sm2]
Type
=
"crypto"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/crypto/sm2"
Version
=
""
[dapp-blackwhite]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/blackwhite"
Version
=
""
[dapp-cert]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/cert"
Version
=
""
[dapp-evm]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/evm"
Version
=
""
[dapp-game]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/game"
Version
=
""
[dapp-hashlock]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/hashlock"
Version
=
""
[dapp-lottery]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/lottery"
Version
=
""
[dapp-norm]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/norm"
Version
=
""
[dapp-paracross]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/paracross"
Version
=
""
[dapp-pokerbull]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/pokerbull"
Version
=
""
[dapp-privacy]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/privacy"
Version
=
""
[dapp-relay]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/relay"
Version
=
""
[dapp-retrieve]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/retrieve"
Version
=
""
[dapp-ticket]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/ticket"
Version
=
""
[dapp-token]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/token"
Version
=
""
[dapp-trade]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/trade"
Version
=
""
[dapp-valnode]
Type
=
"dapp"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/dapp/valnode"
Version
=
""
[store-kvdb]
Type
=
"store"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/store/kvdb"
Version
=
""
[store-kvmvcc]
Type
=
"store"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/store/kvmvcc"
Version
=
""
[store-mpt]
Type
=
"store"
Gitrepo
=
"gitlab.33.cn/chain33/plugin/store/mpt"
Version
=
""
store/init/init.go
View file @
a0d22623
package
init
package
init
import
(
import
(
_
"
gitlab.33.cn/chain33/plugin
/store/kvdb"
_
"
.
/store/kvdb"
_
"
gitlab.33.cn/chain33/plugin
/store/kvmvcc"
_
"
.
/store/kvmvcc"
_
"
gitlab.33.cn/chain33/plugin
/store/mpt"
_
"
.
/store/mpt"
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment