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
d9613eb5
Commit
d9613eb5
authored
Mar 11, 2019
by
linj
Committed by
vipwzw
Mar 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chain33 20190311
parent
d5ec5da8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
137 additions
and
33 deletions
+137
-33
account.go
vendor/github.com/33cn/chain33/account/account.go
+37
-0
account_test.go
vendor/github.com/33cn/chain33/account/account_test.go
+10
-0
account.pb.go
vendor/github.com/33cn/chain33/types/account.pb.go
+82
-33
const.go
vendor/github.com/33cn/chain33/types/const.go
+3
-0
account.proto
vendor/github.com/33cn/chain33/types/proto/account.proto
+5
-0
No files found.
vendor/github.com/33cn/chain33/account/account.go
View file @
d9613eb5
...
@@ -472,3 +472,40 @@ func (acc *DB) mintReceipt(kv []*types.KeyValue, receipt proto.Message) *types.R
...
@@ -472,3 +472,40 @@ func (acc *DB) mintReceipt(kv []*types.KeyValue, receipt proto.Message) *types.R
Logs
:
[]
*
types
.
ReceiptLog
{
log1
},
Logs
:
[]
*
types
.
ReceiptLog
{
log1
},
}
}
}
}
// Burn 然收
func
(
acc
*
DB
)
Burn
(
addr
string
,
amount
int64
)
(
*
types
.
Receipt
,
error
)
{
if
!
types
.
CheckAmount
(
amount
)
{
return
nil
,
types
.
ErrAmount
}
accTo
:=
acc
.
LoadAccount
(
addr
)
if
accTo
.
Balance
<
amount
{
return
nil
,
types
.
ErrNoBalance
}
copyAcc
:=
*
accTo
accTo
.
Balance
=
accTo
.
Balance
-
amount
receipt
:=
&
types
.
ReceiptAccountBurn
{
Prev
:
&
copyAcc
,
Current
:
accTo
,
}
kv
:=
acc
.
GetKVSet
(
accTo
)
acc
.
SaveKVSet
(
kv
)
return
acc
.
burnReceipt
(
kv
,
receipt
),
nil
}
func
(
acc
*
DB
)
burnReceipt
(
kv
[]
*
types
.
KeyValue
,
receipt
proto
.
Message
)
*
types
.
Receipt
{
ty
:=
int32
(
types
.
TyLogBurn
)
log1
:=
&
types
.
ReceiptLog
{
Ty
:
ty
,
Log
:
types
.
Encode
(
receipt
),
}
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
[]
*
types
.
ReceiptLog
{
log1
},
}
}
vendor/github.com/33cn/chain33/account/account_test.go
View file @
d9613eb5
...
@@ -591,3 +591,13 @@ func TestDB_Mint(t *testing.T) {
...
@@ -591,3 +591,13 @@ func TestDB_Mint(t *testing.T) {
t
.
Logf
(
"Token mint addr balance [%d]"
,
tokenCoin
.
LoadAccount
(
addr1
)
.
Balance
)
t
.
Logf
(
"Token mint addr balance [%d]"
,
tokenCoin
.
LoadAccount
(
addr1
)
.
Balance
)
require
.
Equal
(
t
,
int64
(
1000
*
1e8
+
10
*
1e8
),
tokenCoin
.
LoadAccount
(
addr1
)
.
Balance
)
require
.
Equal
(
t
,
int64
(
1000
*
1e8
+
10
*
1e8
),
tokenCoin
.
LoadAccount
(
addr1
)
.
Balance
)
}
}
func
TestDB_Burn
(
t
*
testing
.
T
)
{
_
,
tokenCoin
:=
GenerAccDb
()
tokenCoin
.
GenerAccData
()
_
,
err
:=
tokenCoin
.
Burn
(
addr1
,
10
*
1e8
)
require
.
NoError
(
t
,
err
)
t
.
Logf
(
"Token mint addr balance [%d]"
,
tokenCoin
.
LoadAccount
(
addr1
)
.
Balance
)
require
.
Equal
(
t
,
int64
(
1000
*
1e8
-
10
*
1e8
),
tokenCoin
.
LoadAccount
(
addr1
)
.
Balance
)
}
vendor/github.com/33cn/chain33/types/account.pb.go
View file @
d9613eb5
...
@@ -248,6 +248,53 @@ func (m *ReceiptAccountMint) GetCurrent() *Account {
...
@@ -248,6 +248,53 @@ func (m *ReceiptAccountMint) GetCurrent() *Account {
return
nil
return
nil
}
}
type
ReceiptAccountBurn
struct
{
Prev
*
Account
`protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
Current
*
Account
`protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReceiptAccountBurn
)
Reset
()
{
*
m
=
ReceiptAccountBurn
{}
}
func
(
m
*
ReceiptAccountBurn
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReceiptAccountBurn
)
ProtoMessage
()
{}
func
(
*
ReceiptAccountBurn
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
4
}
}
func
(
m
*
ReceiptAccountBurn
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReceiptAccountBurn
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReceiptAccountBurn
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReceiptAccountBurn
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReceiptAccountBurn
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReceiptAccountBurn
.
Merge
(
m
,
src
)
}
func
(
m
*
ReceiptAccountBurn
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReceiptAccountBurn
.
Size
(
m
)
}
func
(
m
*
ReceiptAccountBurn
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReceiptAccountBurn
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReceiptAccountBurn
proto
.
InternalMessageInfo
func
(
m
*
ReceiptAccountBurn
)
GetPrev
()
*
Account
{
if
m
!=
nil
{
return
m
.
Prev
}
return
nil
}
func
(
m
*
ReceiptAccountBurn
)
GetCurrent
()
*
Account
{
if
m
!=
nil
{
return
m
.
Current
}
return
nil
}
//查询一个地址列表在某个执行器中余额
//查询一个地址列表在某个执行器中余额
type
ReqBalance
struct
{
type
ReqBalance
struct
{
//地址列表
//地址列表
...
@@ -266,7 +313,7 @@ func (m *ReqBalance) Reset() { *m = ReqBalance{} }
...
@@ -266,7 +313,7 @@ func (m *ReqBalance) Reset() { *m = ReqBalance{} }
func
(
m
*
ReqBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ReqBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqBalance
)
ProtoMessage
()
{}
func
(
*
ReqBalance
)
ProtoMessage
()
{}
func
(
*
ReqBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ReqBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
4
}
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
5
}
}
}
func
(
m
*
ReqBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
ReqBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -334,7 +381,7 @@ func (m *Accounts) Reset() { *m = Accounts{} }
...
@@ -334,7 +381,7 @@ func (m *Accounts) Reset() { *m = Accounts{} }
func
(
m
*
Accounts
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
Accounts
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
Accounts
)
ProtoMessage
()
{}
func
(
*
Accounts
)
ProtoMessage
()
{}
func
(
*
Accounts
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
Accounts
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
5
}
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
6
}
}
}
func
(
m
*
Accounts
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
Accounts
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -374,7 +421,7 @@ func (m *ExecAccount) Reset() { *m = ExecAccount{} }
...
@@ -374,7 +421,7 @@ func (m *ExecAccount) Reset() { *m = ExecAccount{} }
func
(
m
*
ExecAccount
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ExecAccount
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ExecAccount
)
ProtoMessage
()
{}
func
(
*
ExecAccount
)
ProtoMessage
()
{}
func
(
*
ExecAccount
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ExecAccount
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
6
}
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
7
}
}
}
func
(
m
*
ExecAccount
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
ExecAccount
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -421,7 +468,7 @@ func (m *AllExecBalance) Reset() { *m = AllExecBalance{} }
...
@@ -421,7 +468,7 @@ func (m *AllExecBalance) Reset() { *m = AllExecBalance{} }
func
(
m
*
AllExecBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
AllExecBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
AllExecBalance
)
ProtoMessage
()
{}
func
(
*
AllExecBalance
)
ProtoMessage
()
{}
func
(
*
AllExecBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
AllExecBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
7
}
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
8
}
}
}
func
(
m
*
AllExecBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
AllExecBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -473,7 +520,7 @@ func (m *ReqAllExecBalance) Reset() { *m = ReqAllExecBalance{} }
...
@@ -473,7 +520,7 @@ func (m *ReqAllExecBalance) Reset() { *m = ReqAllExecBalance{} }
func
(
m
*
ReqAllExecBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
m
*
ReqAllExecBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqAllExecBalance
)
ProtoMessage
()
{}
func
(
*
ReqAllExecBalance
)
ProtoMessage
()
{}
func
(
*
ReqAllExecBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ReqAllExecBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
8
}
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
9
}
}
}
func
(
m
*
ReqAllExecBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
func
(
m
*
ReqAllExecBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
...
@@ -534,6 +581,7 @@ func init() {
...
@@ -534,6 +581,7 @@ func init() {
proto
.
RegisterType
((
*
ReceiptExecAccountTransfer
)(
nil
),
"types.ReceiptExecAccountTransfer"
)
proto
.
RegisterType
((
*
ReceiptExecAccountTransfer
)(
nil
),
"types.ReceiptExecAccountTransfer"
)
proto
.
RegisterType
((
*
ReceiptAccountTransfer
)(
nil
),
"types.ReceiptAccountTransfer"
)
proto
.
RegisterType
((
*
ReceiptAccountTransfer
)(
nil
),
"types.ReceiptAccountTransfer"
)
proto
.
RegisterType
((
*
ReceiptAccountMint
)(
nil
),
"types.ReceiptAccountMint"
)
proto
.
RegisterType
((
*
ReceiptAccountMint
)(
nil
),
"types.ReceiptAccountMint"
)
proto
.
RegisterType
((
*
ReceiptAccountBurn
)(
nil
),
"types.ReceiptAccountBurn"
)
proto
.
RegisterType
((
*
ReqBalance
)(
nil
),
"types.ReqBalance"
)
proto
.
RegisterType
((
*
ReqBalance
)(
nil
),
"types.ReqBalance"
)
proto
.
RegisterType
((
*
Accounts
)(
nil
),
"types.Accounts"
)
proto
.
RegisterType
((
*
Accounts
)(
nil
),
"types.Accounts"
)
proto
.
RegisterType
((
*
ExecAccount
)(
nil
),
"types.ExecAccount"
)
proto
.
RegisterType
((
*
ExecAccount
)(
nil
),
"types.ExecAccount"
)
...
@@ -544,32 +592,33 @@ func init() {
...
@@ -544,32 +592,33 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"account.proto"
,
fileDescriptor_8e28828dcb8d24f0
)
}
func
init
()
{
proto
.
RegisterFile
(
"account.proto"
,
fileDescriptor_8e28828dcb8d24f0
)
}
var
fileDescriptor_8e28828dcb8d24f0
=
[]
byte
{
var
fileDescriptor_8e28828dcb8d24f0
=
[]
byte
{
// 427 bytes of a gzipped FileDescriptorProto
// 434 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xc4
,
0x54
,
0xcd
,
0x6a
,
0x14
,
0x41
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xc4
,
0x54
,
0xcd
,
0x6e
,
0x13
,
0x31
,
0x10
,
0xa6
,
0xf7
,
0x27
,
0x9b
,
0xa9
,
0xd5
,
0x80
,
0x7d
,
0x08
,
0x4d
,
0x30
,
0x38
,
0xf6
,
0x69
,
0x0e
,
0x10
,
0x96
,
0xf3
,
0xd3
,
0x74
,
0x27
,
0x50
,
0x09
,
0x1f
,
0x2a
,
0xab
,
0xa2
,
0x62
,
0xf1
,
0x69
,
0x0f
,
0xb2
,
0x0b
,
0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0x94
,
0xbf
,
0x02
,
0x00
,
0x00
,
0xff
,
0xff
,
0x57
,
0xdf
,
0x86
,
0xd3
,
0x87
,
0x04
,
0x00
,
0x00
,
}
}
vendor/github.com/33cn/chain33/types/const.go
View file @
d9613eb5
...
@@ -104,6 +104,7 @@ const (
...
@@ -104,6 +104,7 @@ const (
TyLogGenesisDeposit
=
12
TyLogGenesisDeposit
=
12
TyLogRollback
=
13
TyLogRollback
=
13
TyLogMint
=
14
TyLogMint
=
14
TyLogBurn
=
15
)
)
//SystemLog 系统log日志
//SystemLog 系统log日志
...
@@ -121,6 +122,8 @@ var SystemLog = map[int64]*LogInfo{
...
@@ -121,6 +122,8 @@ var SystemLog = map[int64]*LogInfo{
TyLogGenesisTransfer
:
{
reflect
.
TypeOf
(
ReceiptAccountTransfer
{}),
"LogGenesisTransfer"
},
TyLogGenesisTransfer
:
{
reflect
.
TypeOf
(
ReceiptAccountTransfer
{}),
"LogGenesisTransfer"
},
TyLogGenesisDeposit
:
{
reflect
.
TypeOf
(
ReceiptAccountTransfer
{}),
"LogGenesisDeposit"
},
TyLogGenesisDeposit
:
{
reflect
.
TypeOf
(
ReceiptAccountTransfer
{}),
"LogGenesisDeposit"
},
TyLogRollback
:
{
reflect
.
TypeOf
(
LocalDBSet
{}),
"LogRollback"
},
TyLogRollback
:
{
reflect
.
TypeOf
(
LocalDBSet
{}),
"LogRollback"
},
TyLogMint
:
{
reflect
.
TypeOf
(
ReceiptAccountMint
{}),
"LogMint"
},
TyLogBurn
:
{
reflect
.
TypeOf
(
ReceiptAccountBurn
{}),
"LogBurn"
},
}
}
//exec type
//exec type
...
...
vendor/github.com/33cn/chain33/types/proto/account.proto
View file @
d9613eb5
...
@@ -41,6 +41,11 @@ message ReceiptAccountMint {
...
@@ -41,6 +41,11 @@ message ReceiptAccountMint {
Account
current
=
2
;
Account
current
=
2
;
}
}
message
ReceiptAccountBurn
{
Account
prev
=
1
;
Account
current
=
2
;
}
//查询一个地址列表在某个执行器中余额
//查询一个地址列表在某个执行器中余额
message
ReqBalance
{
message
ReqBalance
{
//地址列表
//地址列表
...
...
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