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
20c76105
Commit
20c76105
authored
Oct 26, 2021
by
轻松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加解析预留位置
parent
ef29dd82
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
evmxgodb.go
plugin/dapp/evmxgo/executor/evmxgodb.go
+11
-0
evmxgo.proto
plugin/dapp/evmxgo/proto/evmxgo.proto
+1
-0
evmxgo.pb.go
plugin/dapp/evmxgo/types/evmxgo.pb.go
+0
-0
No files found.
plugin/dapp/evmxgo/executor/evmxgodb.go
View file @
20c76105
...
...
@@ -238,6 +238,15 @@ func AddTokenToAssets(addr string, db dbm.KVDB, symbol string) []*types.KeyValue
return
kv
}
// 同时比较配置symbol与address参数,和parse返回值是否一致
func
check
()
(
address
,
symbol
string
,
amount
int64
,
err
error
)
{
return
""
,
""
,
0
,
err
}
func
parse
()
(
address
,
symbol
string
,
amount
int64
,
err
error
)
{
// 上一个交易是否lock执行成功,如果是,返回实际参数,不是返回error
return
""
,
""
,
0
,
err
}
// 铸币不可控, 也是麻烦。 2选1
// 1. 谁可以发起
...
...
@@ -251,7 +260,9 @@ func (action *evmxgoAction) mint(mint *evmxgotypes.EvmxgoMint) (*types.Receipt,
return
nil
,
types
.
ErrInvalidParam
}
cfg
:=
action
.
api
.
GetConfig
()
parse
()
// TODO check()
evmxgodb
,
err
:=
loadEvmxgoDB
(
action
.
db
,
mint
.
GetSymbol
())
if
err
!=
nil
&&
err
!=
evmxgotypes
.
ErrEvmxgoSymbolNotExist
{
return
nil
,
err
...
...
plugin/dapp/evmxgo/proto/evmxgo.proto
View file @
20c76105
...
...
@@ -21,6 +21,7 @@ message EvmxgoAction {
message
EvmxgoMint
{
string
symbol
=
1
;
int64
amount
=
2
;
string
address
=
3
;
}
message
EvmxgoBurn
{
...
...
plugin/dapp/evmxgo/types/evmxgo.pb.go
View file @
20c76105
This diff is collapsed.
Click to expand it.
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