/
const.go
48 lines (40 loc) · 1.35 KB
/
const.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// 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 types
//unfreeze action ty
const (
UnfreezeActionCreate = iota + 1
UnfreezeActionWithdraw
UnfreezeActionTerminate
//log for unfreeze
TyLogCreateUnfreeze = 2001 // TODO 修改具体编号
TyLogWithdrawUnfreeze = 2002
TyLogTerminateUnfreeze = 2003
)
const (
// Action_CreateUnfreeze Action 名字
Action_CreateUnfreeze = "createUnfreeze"
// Action_WithdrawUnfreeze Action 名字
Action_WithdrawUnfreeze = "withdrawUnfreeze"
// Action_TerminateUnfreeze Action 名字
Action_TerminateUnfreeze = "terminateUnfreeze"
)
const (
// FuncName_QueryUnfreezeWithdraw 查询方法名
FuncName_QueryUnfreezeWithdraw = "QueryUnfreezeWithdraw"
)
//包的名字可以通过配置文件来配置
//建议用github的组织名称,或者用户名字开头, 再加上自己的插件的名字
//如果发生重名,可以通过配置文件修改这些名字
var (
PackageName = "chain33.unfreeze"
RPCName = "Chain33.Unfreeze"
UnfreezeX = "unfreeze"
ExecerUnfreeze = []byte(UnfreezeX)
FixAmountX = "FixAmount"
LeftProportionX = "LeftProportion"
SupportMeans = []string{"FixAmount", "LeftProportion"}
ForkTerminatePartX = "ForkTerminatePart"
ForkUnfreezeIDX = "ForkUnfreezeIDX"
)