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
fde7a753
Commit
fde7a753
authored
Aug 23, 2021
by
mdj33
Committed by
vipwzw
Aug 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update chain33
parent
716ccb68
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
go.mod
go.mod
+1
-1
go.sum
go.sum
+4
-0
blackwhite.go
plugin/dapp/blackwhite/commands/blackwhite.go
+1
-0
token_new_test.go
plugin/dapp/token/executor/token_new_test.go
+2
-2
No files found.
go.mod
View file @
fde7a753
...
@@ -3,7 +3,7 @@ module github.com/33cn/plugin
...
@@ -3,7 +3,7 @@ module github.com/33cn/plugin
go 1.14
go 1.14
require (
require (
github.com/33cn/chain33 v1.65.3-0.202108
18071203-29aff1b4c056
github.com/33cn/chain33 v1.65.3-0.202108
23062002-c3d9f3806543
github.com/BurntSushi/toml v0.3.1
github.com/BurntSushi/toml v0.3.1
github.com/NebulousLabs/Sia v1.3.7
github.com/NebulousLabs/Sia v1.3.7
github.com/NebulousLabs/errors v0.0.0-20181203160057-9f787ce8f69e // indirect
github.com/NebulousLabs/errors v0.0.0-20181203160057-9f787ce8f69e // indirect
...
...
go.sum
View file @
fde7a753
...
@@ -30,6 +30,8 @@ github.com/33cn/chain33 v1.65.3-0.20210803094350-8a745164df6c h1:nEB/Z0vp9ChFEqf
...
@@ -30,6 +30,8 @@ github.com/33cn/chain33 v1.65.3-0.20210803094350-8a745164df6c h1:nEB/Z0vp9ChFEqf
github.com/33cn/chain33 v1.65.3-0.20210803094350-8a745164df6c/go.mod h1:dLHHc1HwIy1YKmluXIJYGbv/Bet7yR2fyjinXWqLgV4=
github.com/33cn/chain33 v1.65.3-0.20210803094350-8a745164df6c/go.mod h1:dLHHc1HwIy1YKmluXIJYGbv/Bet7yR2fyjinXWqLgV4=
github.com/33cn/chain33 v1.65.3-0.20210818071203-29aff1b4c056 h1:DT/PvvZe0BTM6qZSchzW7yVhr8HZHdd8QZJkOc04ogQ=
github.com/33cn/chain33 v1.65.3-0.20210818071203-29aff1b4c056 h1:DT/PvvZe0BTM6qZSchzW7yVhr8HZHdd8QZJkOc04ogQ=
github.com/33cn/chain33 v1.65.3-0.20210818071203-29aff1b4c056/go.mod h1:o7AmHzUybvbBjswIJ3Be/+bOEd4LR0pRIFNb7NZ4QF4=
github.com/33cn/chain33 v1.65.3-0.20210818071203-29aff1b4c056/go.mod h1:o7AmHzUybvbBjswIJ3Be/+bOEd4LR0pRIFNb7NZ4QF4=
github.com/33cn/chain33 v1.65.3-0.20210823062002-c3d9f3806543 h1:D4Zily9dvFnkKYDYcUHDXKDkVY0JB9kSglBwxXNBDfw=
github.com/33cn/chain33 v1.65.3-0.20210823062002-c3d9f3806543/go.mod h1:82/Y5u+8arrXk+o83R9PusqGPNc33PDMwfB/zk77+6E=
github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 h1:cTp8I5+VIoKjsnZuH8vjyaysT/ses3EvZeaV/1UkF2M=
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 h1:cTp8I5+VIoKjsnZuH8vjyaysT/ses3EvZeaV/1UkF2M=
...
@@ -955,6 +957,8 @@ github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfP
...
@@ -955,6 +957,8 @@ github.com/segmentio/kafka-go v0.2.0/go.mod h1:X6itGqS9L4jDletMsxZ7Dz+JFWxM6JHfP
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/shirou/gopsutil v2.20.5+incompatible h1:tYH07UPoQt0OCQdgWWMgYHy3/a9bcxNpBIysykNIP7I=
github.com/shirou/gopsutil v2.20.5+incompatible h1:tYH07UPoQt0OCQdgWWMgYHy3/a9bcxNpBIysykNIP7I=
github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/shirou/gopsutil v2.20.5+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY=
github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY=
github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM=
github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM=
github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0=
github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod h1:2dOwnU2uBioM+SGy2aZoq1f/Sd1l9OkAeAUvjSyvgU0=
...
...
plugin/dapp/blackwhite/commands/blackwhite.go
View file @
fde7a753
...
@@ -70,6 +70,7 @@ func blackwhiteCreate(cmd *cobra.Command, args []string) {
...
@@ -70,6 +70,7 @@ func blackwhiteCreate(cmd *cobra.Command, args []string) {
gameName
,
_
:=
cmd
.
Flags
()
.
GetString
(
"gameName"
)
gameName
,
_
:=
cmd
.
Flags
()
.
GetString
(
"gameName"
)
fee
,
_
:=
cmd
.
Flags
()
.
GetFloat64
(
"fee"
)
fee
,
_
:=
cmd
.
Flags
()
.
GetFloat64
(
"fee"
)
//如果配置精度不是1e8,需要做相应修改,这里不明白fee的意思,使用时候再做修改
feeInt64
:=
int64
(
fee
*
1e4
)
feeInt64
:=
int64
(
fee
*
1e4
)
if
timeout
==
0
{
if
timeout
==
0
{
...
...
plugin/dapp/token/executor/token_new_test.go
View file @
fde7a753
...
@@ -56,11 +56,11 @@ var (
...
@@ -56,11 +56,11 @@ var (
tokenSym
=
"NEW"
tokenSym
=
"NEW"
tokenIntro
=
"newtoken"
tokenIntro
=
"newtoken"
tokenPrice
int64
tokenPrice
int64
tokenAmount
int64
=
1000
*
1e4
*
1e4
tokenAmount
int64
=
1000
*
types
.
DefaultCoinPrecision
execName
=
"user.p.guodun.token"
execName
=
"user.p.guodun.token"
feeForToken
int64
=
1e6
feeForToken
int64
=
1e6
transToAddr
=
"1NYxhca2zVMzxFqMRJdMcZfrSFnqbqotKe"
transToAddr
=
"1NYxhca2zVMzxFqMRJdMcZfrSFnqbqotKe"
transAmount
int64
=
100
*
1e4
*
1e4
transAmount
int64
=
100
*
types
.
DefaultCoinPrecision
walletPass
=
"fzm123"
walletPass
=
"fzm123"
)
)
...
...
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