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
bbd3a1b6
Commit
bbd3a1b6
authored
Nov 28, 2018
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
adc9354e
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
23 additions
and
1 deletion
+23
-1
golinter.sh
golinter.sh
+0
-0
init.go
plugin/consensus/init/init.go
+0
-0
init.go
plugin/crypto/init/init.go
+0
-0
init.go
plugin/dapp/init/init.go
+0
-0
plugin.go
plugin/dapp/privacy/plugin.go
+0
-0
errors.go
plugin/dapp/privacy/types/errors.go
+1
-0
token.go
plugin/dapp/token/autotest/token.go
+0
-0
tokenCase.go
plugin/dapp/token/autotest/tokenCase.go
+9
-1
plugin.go
plugin/dapp/token/plugin.go
+0
-0
buyCase.go
plugin/dapp/trade/autotest/buyCase.go
+7
-0
sellCase.go
plugin/dapp/trade/autotest/sellCase.go
+6
-0
trade.go
plugin/dapp/trade/autotest/trade.go
+0
-0
plugin.go
plugin/dapp/trade/plugin.go
+0
-0
init.go
plugin/init.go
+0
-0
init.go
plugin/store/init/init.go
+0
-0
No files found.
golinter.sh
View file @
bbd3a1b6
plugin/consensus/init/init.go
View file @
bbd3a1b6
plugin/crypto/init/init.go
View file @
bbd3a1b6
plugin/dapp/init/init.go
View file @
bbd3a1b6
plugin/dapp/privacy/plugin.go
View file @
bbd3a1b6
plugin/dapp/privacy/types/errors.go
View file @
bbd3a1b6
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
package
types
package
types
import
"errors"
import
"errors"
// ErrXXX defines error message
// ErrXXX defines error message
var
(
var
(
ErrGeFromBytesVartime
=
errors
.
New
(
"ErrGeFromBytesVartime"
)
ErrGeFromBytesVartime
=
errors
.
New
(
"ErrGeFromBytesVartime"
)
...
...
plugin/dapp/token/autotest/token.go
View file @
bbd3a1b6
plugin/dapp/token/autotest/tokenCase.go
View file @
bbd3a1b6
...
@@ -2,50 +2,58 @@
...
@@ -2,50 +2,58 @@
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
package
autotest
package
autotest
import
(
import
(
"github.com/33cn/chain33/cmd/autotest/types"
"github.com/33cn/chain33/cmd/autotest/types"
)
)
// TokenPreCreateCase token precreatecase command
// TokenPreCreateCase token precreatecase command
type
TokenPreCreateCase
struct
{
type
TokenPreCreateCase
struct
{
types
.
BaseCase
types
.
BaseCase
//From string `toml:"from"`
//From string `toml:"from"`
//Amount string `toml:"amount"`
//Amount string `toml:"amount"`
}
}
// TokenPreCreatePack defines token precreate package command
// TokenPreCreatePack defines token precreate package command
type
TokenPreCreatePack
struct
{
type
TokenPreCreatePack
struct
{
types
.
BaseCasePack
types
.
BaseCasePack
}
}
// TokenFinishCreateCase token finish create case command
// TokenFinishCreateCase token finish create case command
type
TokenFinishCreateCase
struct
{
type
TokenFinishCreateCase
struct
{
types
.
BaseCase
types
.
BaseCase
//From string `toml:"from"`
//From string `toml:"from"`
//Amount string `toml:"amount"`
//Amount string `toml:"amount"`
}
}
// TokenFinishCreatePack token finish create pack command
// TokenFinishCreatePack token finish create pack command
type
TokenFinishCreatePack
struct
{
type
TokenFinishCreatePack
struct
{
types
.
BaseCasePack
types
.
BaseCasePack
}
}
// TokenRevokeCase token revoke case command
// TokenRevokeCase token revoke case command
type
TokenRevokeCase
struct
{
type
TokenRevokeCase
struct
{
types
.
BaseCase
types
.
BaseCase
}
}
// TokenRevokePack token revoke pack command
// TokenRevokePack token revoke pack command
type
TokenRevokePack
struct
{
type
TokenRevokePack
struct
{
types
.
BaseCasePack
types
.
BaseCasePack
}
}
// SendCommand defines send command function of tokenprecreatecase
// SendCommand defines send command function of tokenprecreatecase
func
(
testCase
*
TokenPreCreateCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
func
(
testCase
*
TokenPreCreateCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
return
types
.
DefaultSend
(
testCase
,
&
TokenPreCreatePack
{},
packID
)
return
types
.
DefaultSend
(
testCase
,
&
TokenPreCreatePack
{},
packID
)
}
}
// SendCommand defines send command function of tokenrevokecase
// SendCommand defines send command function of tokenrevokecase
func
(
testCase
*
TokenRevokeCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
func
(
testCase
*
TokenRevokeCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
return
types
.
DefaultSend
(
testCase
,
&
TokenRevokePack
{},
packID
)
return
types
.
DefaultSend
(
testCase
,
&
TokenRevokePack
{},
packID
)
}
}
// SendCommand send command function of tokenfinishcreatecase
// SendCommand send command function of tokenfinishcreatecase
func
(
testCase
*
TokenFinishCreateCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
func
(
testCase
*
TokenFinishCreateCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
...
...
plugin/dapp/token/plugin.go
View file @
bbd3a1b6
plugin/dapp/trade/autotest/buyCase.go
View file @
bbd3a1b6
...
@@ -11,6 +11,7 @@ import (
...
@@ -11,6 +11,7 @@ import (
"github.com/33cn/chain33/cmd/autotest/types"
"github.com/33cn/chain33/cmd/autotest/types"
)
)
// BuyCase defines buycase command
// BuyCase defines buycase command
type
BuyCase
struct
{
type
BuyCase
struct
{
types
.
BaseCase
types
.
BaseCase
...
@@ -19,19 +20,23 @@ type BuyCase struct {
...
@@ -19,19 +20,23 @@ type BuyCase struct {
TokenAmount
string
`toml:"tokenAmount"`
TokenAmount
string
`toml:"tokenAmount"`
BtyAmount
string
`toml:"btyAmount"`
BtyAmount
string
`toml:"btyAmount"`
}
}
// BuyPack defines buypack command
// BuyPack defines buypack command
type
BuyPack
struct
{
type
BuyPack
struct
{
types
.
BaseCasePack
types
.
BaseCasePack
}
}
// DependBuyCase defines depend buycase command
// DependBuyCase defines depend buycase command
type
DependBuyCase
struct
{
type
DependBuyCase
struct
{
BuyCase
BuyCase
SellID
string
`toml:"sellID,omitempty"`
SellID
string
`toml:"sellID,omitempty"`
}
}
// DependBuyPack defines depend buy pack command
// DependBuyPack defines depend buy pack command
type
DependBuyPack
struct
{
type
DependBuyPack
struct
{
BuyPack
BuyPack
}
}
// SendCommand defines send command function of dependbuycase
// SendCommand defines send command function of dependbuycase
func
(
testCase
*
DependBuyCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
func
(
testCase
*
DependBuyCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
...
@@ -42,6 +47,7 @@ func (testCase *DependBuyCase) SendCommand(packID string) (types.PackFunc, error
...
@@ -42,6 +47,7 @@ func (testCase *DependBuyCase) SendCommand(packID string) (types.PackFunc, error
return
types
.
DefaultSend
(
&
testCase
.
BuyCase
,
&
BuyPack
{},
packID
)
return
types
.
DefaultSend
(
&
testCase
.
BuyCase
,
&
BuyPack
{},
packID
)
}
}
// SetDependData defines set depend data function
// SetDependData defines set depend data function
func
(
testCase
*
DependBuyCase
)
SetDependData
(
depData
interface
{})
{
func
(
testCase
*
DependBuyCase
)
SetDependData
(
depData
interface
{})
{
...
@@ -50,6 +56,7 @@ func (testCase *DependBuyCase) SetDependData(depData interface{}) {
...
@@ -50,6 +56,7 @@ func (testCase *DependBuyCase) SetDependData(depData interface{}) {
testCase
.
SellID
=
orderInfo
.
sellID
testCase
.
SellID
=
orderInfo
.
sellID
}
}
}
}
// GetCheckHandlerMap defines get check handler for map
// GetCheckHandlerMap defines get check handler for map
func
(
pack
*
BuyPack
)
GetCheckHandlerMap
()
interface
{}
{
func
(
pack
*
BuyPack
)
GetCheckHandlerMap
()
interface
{}
{
...
...
plugin/dapp/trade/autotest/sellCase.go
View file @
bbd3a1b6
...
@@ -9,26 +9,31 @@ import (
...
@@ -9,26 +9,31 @@ import (
"github.com/33cn/chain33/cmd/autotest/types"
"github.com/33cn/chain33/cmd/autotest/types"
)
)
// SellCase defines sell case command
// SellCase defines sell case command
type
SellCase
struct
{
type
SellCase
struct
{
types
.
BaseCase
types
.
BaseCase
From
string
`toml:"from"`
From
string
`toml:"from"`
Amount
string
`toml:"amount"`
Amount
string
`toml:"amount"`
}
}
// SellPack defines sell pack command
// SellPack defines sell pack command
type
SellPack
struct
{
type
SellPack
struct
{
types
.
BaseCasePack
types
.
BaseCasePack
orderInfo
*
SellOrderInfo
orderInfo
*
SellOrderInfo
}
}
// SellOrderInfo sell order information
// SellOrderInfo sell order information
type
SellOrderInfo
struct
{
type
SellOrderInfo
struct
{
sellID
string
sellID
string
}
}
// SendCommand send command of sellcase
// SendCommand send command of sellcase
func
(
testCase
*
SellCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
func
(
testCase
*
SellCase
)
SendCommand
(
packID
string
)
(
types
.
PackFunc
,
error
)
{
return
types
.
DefaultSend
(
testCase
,
&
SellPack
{},
packID
)
return
types
.
DefaultSend
(
testCase
,
&
SellPack
{},
packID
)
}
}
// GetCheckHandlerMap defines get check handle for map
// GetCheckHandlerMap defines get check handle for map
func
(
pack
*
SellPack
)
GetCheckHandlerMap
()
interface
{}
{
func
(
pack
*
SellPack
)
GetCheckHandlerMap
()
interface
{}
{
...
@@ -38,6 +43,7 @@ func (pack *SellPack) GetCheckHandlerMap() interface{} {
...
@@ -38,6 +43,7 @@ func (pack *SellPack) GetCheckHandlerMap() interface{} {
return
funcMap
return
funcMap
}
}
// GetDependData defines get depend data function
// GetDependData defines get depend data function
func
(
pack
*
SellPack
)
GetDependData
()
interface
{}
{
func
(
pack
*
SellPack
)
GetDependData
()
interface
{}
{
...
...
plugin/dapp/trade/autotest/trade.go
View file @
bbd3a1b6
plugin/dapp/trade/plugin.go
View file @
bbd3a1b6
plugin/init.go
View file @
bbd3a1b6
plugin/store/init/init.go
View file @
bbd3a1b6
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