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
19db86a7
Commit
19db86a7
authored
Mar 11, 2019
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare to support token burn
parent
f5e0ba2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
token.proto
plugin/dapp/token/proto/token.proto
+6
-0
const.go
plugin/dapp/token/types/const.go
+4
-2
No files found.
plugin/dapp/token/proto/token.proto
View file @
19db86a7
...
@@ -16,6 +16,7 @@ message TokenAction {
...
@@ -16,6 +16,7 @@ message TokenAction {
AssetsGenesis
genesis
=
6
;
AssetsGenesis
genesis
=
6
;
AssetsTransferToExec
transferToExec
=
8
;
AssetsTransferToExec
transferToExec
=
8
;
TokenMint
tokenMint
=
9
;
TokenMint
tokenMint
=
9
;
TokenBurn
tokenBurn
=
10
;
}
}
int32
Ty
=
7
;
int32
Ty
=
7
;
}
}
...
@@ -46,6 +47,11 @@ message TokenMint {
...
@@ -46,6 +47,11 @@ message TokenMint {
int64
amount
=
2
;
int64
amount
=
2
;
}
}
message
TokenBurn
{
string
symbol
=
1
;
int64
amount
=
2
;
}
// state db
// state db
message
Token
{
message
Token
{
string
name
=
1
;
string
name
=
1
;
...
...
plugin/dapp/token/types/const.go
View file @
19db86a7
...
@@ -21,6 +21,7 @@ const (
...
@@ -21,6 +21,7 @@ const (
TokenActionTransferToExec
=
11
TokenActionTransferToExec
=
11
// TokenActionMint for token mint
// TokenActionMint for token mint
TokenActionMint
=
12
TokenActionMint
=
12
TokenActionBurn
=
13
)
)
// token status
// token status
...
@@ -76,6 +77,7 @@ const (
...
@@ -76,6 +77,7 @@ const (
TyLogTokenGenesisDeposit
=
322
TyLogTokenGenesisDeposit
=
322
// TyLogTokenMint log for token mint
// TyLogTokenMint log for token mint
TyLogTokenMint
=
323
TyLogTokenMint
=
323
TyLogTokenBurn
=
324
)
)
const
(
const
(
...
@@ -88,6 +90,6 @@ const (
...
@@ -88,6 +90,6 @@ const (
)
)
const
(
const
(
// CategoryMint
Support support mint
// CategoryMint
BurnSupport support mint & burn
CategoryMintSupport
=
1
<<
iota
CategoryMint
Burn
Support
=
1
<<
iota
)
)
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