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
119ee0e6
Commit
119ee0e6
authored
Jan 26, 2019
by
vipwzw
Committed by
33cn
Jan 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 2019/01/26
parent
bd945d91
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
421 additions
and
114 deletions
+421
-114
balance.sh
vendor/github.com/33cn/chain33/build/util/balance.sh
+1
-1
client.go
vendor/github.com/33cn/chain33/rpc/client.go
+6
-3
grpchandler.go
vendor/github.com/33cn/chain33/rpc/grpchandler.go
+1
-1
jrpchandler.go
vendor/github.com/33cn/chain33/rpc/jrpchandler.go
+1
-1
account.go
...r/github.com/33cn/chain33/system/dapp/commands/account.go
+17
-6
rpc_test.go
....com/33cn/chain33/system/dapp/manage/executor/rpc_test.go
+207
-0
account.pb.go
vendor/github.com/33cn/chain33/types/account.pb.go
+101
-26
chain33client.go
vendor/github.com/33cn/chain33/types/mocks/chain33client.go
+3
-3
account.proto
vendor/github.com/33cn/chain33/types/proto/account.proto
+11
-0
rpc.proto
vendor/github.com/33cn/chain33/types/proto/rpc.proto
+1
-1
rpc.pb.go
vendor/github.com/33cn/chain33/types/rpc.pb.go
+72
-72
No files found.
vendor/github.com/33cn/chain33/build/util/balance.sh
View file @
119ee0e6
...
...
@@ -3,5 +3,5 @@ i=0
while
IFS
=
''
read
-r
line
||
[[
-n
$line
]]
;
do
[
-z
"
$line
"
]
&&
continue
((
i++
))
../chain33-cli account balance
-a
"
$line
"
-e
ticket
../chain33-cli
--rpc_laddr
https://mainnode.bityuan.com:8801
account balance
-a
"
$line
"
-e
ticket
done
<
"
$1
"
vendor/github.com/33cn/chain33/rpc/client.go
View file @
119ee0e6
...
...
@@ -220,7 +220,7 @@ func (c *channelClient) GetBalance(in *types.ReqBalance) ([]*types.Account, erro
}
// GetAllExecBalance get balance of exec
func
(
c
*
channelClient
)
GetAllExecBalance
(
in
*
types
.
ReqA
ddr
)
(
*
types
.
AllExecBalance
,
error
)
{
func
(
c
*
channelClient
)
GetAllExecBalance
(
in
*
types
.
ReqA
llExecBalance
)
(
*
types
.
AllExecBalance
,
error
)
{
addr
:=
in
.
Addr
err
:=
address
.
CheckAddress
(
addr
)
if
err
!=
nil
{
...
...
@@ -234,8 +234,11 @@ func (c *channelClient) GetAllExecBalance(in *types.ReqAddr) (*types.AllExecBala
for
_
,
exec
:=
range
types
.
AllowUserExec
{
execer
:=
types
.
ExecName
(
string
(
exec
))
params
:=
&
types
.
ReqBalance
{
Addresses
:
addrs
,
Execer
:
execer
,
Addresses
:
addrs
,
Execer
:
execer
,
StateHash
:
in
.
StateHash
,
AssetExec
:
in
.
AssetExec
,
AssetSymbol
:
in
.
AssetSymbol
,
}
res
,
err
:=
c
.
GetBalance
(
params
)
if
err
!=
nil
{
...
...
vendor/github.com/33cn/chain33/rpc/grpchandler.go
View file @
119ee0e6
...
...
@@ -254,7 +254,7 @@ func (g *Grpc) GetBalance(ctx context.Context, in *pb.ReqBalance) (*pb.Accounts,
}
// GetAllExecBalance get balance of exec
func
(
g
*
Grpc
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
pb
.
ReqA
ddr
)
(
*
pb
.
AllExecBalance
,
error
)
{
func
(
g
*
Grpc
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
pb
.
ReqA
llExecBalance
)
(
*
pb
.
AllExecBalance
,
error
)
{
return
g
.
cli
.
GetAllExecBalance
(
in
)
}
...
...
vendor/github.com/33cn/chain33/rpc/jrpchandler.go
View file @
119ee0e6
...
...
@@ -740,7 +740,7 @@ func (c *Chain33) GetBalance(in types.ReqBalance, result *interface{}) error {
}
// GetAllExecBalance get all balance of exec
func
(
c
*
Chain33
)
GetAllExecBalance
(
in
types
.
ReqA
ddr
,
result
*
interface
{})
error
{
func
(
c
*
Chain33
)
GetAllExecBalance
(
in
types
.
ReqA
llExecBalance
,
result
*
interface
{})
error
{
balance
,
err
:=
c
.
cli
.
GetAllExecBalance
(
&
in
)
if
err
!=
nil
{
return
err
...
...
vendor/github.com/33cn/chain33/system/dapp/commands/account.go
View file @
119ee0e6
...
...
@@ -143,18 +143,15 @@ func balance(cmd *cobra.Command, args []string) {
return
}
}
if
execer
==
""
{
req
:=
types
.
ReqA
ddr
{
Addr
:
addr
}
if
execer
==
""
&&
height
==
-
1
{
req
:=
types
.
ReqA
llExecBalance
{
Addr
:
addr
}
var
res
rpctypes
.
AllExecBalance
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"Chain33.GetAllExecBalance"
,
req
,
&
res
)
ctx
.
SetResultCb
(
parseGetAllBalanceRes
)
ctx
.
Run
()
return
}
if
ok
:=
types
.
IsAllowExecName
([]
byte
(
execer
),
[]
byte
(
execer
));
!
ok
{
fmt
.
Fprintln
(
os
.
Stderr
,
types
.
ErrExecNameNotAllow
)
return
}
stateHash
:=
""
if
height
>=
0
{
params
:=
types
.
ReqBlocks
{
...
...
@@ -173,6 +170,20 @@ func balance(cmd *cobra.Command, args []string) {
stateHash
=
h
.
StateHash
}
if
execer
==
""
{
req
:=
types
.
ReqAllExecBalance
{
Addr
:
addr
,
StateHash
:
stateHash
}
var
res
rpctypes
.
AllExecBalance
ctx
:=
jsonclient
.
NewRPCCtx
(
rpcLaddr
,
"Chain33.GetAllExecBalance"
,
req
,
&
res
)
ctx
.
SetResultCb
(
parseGetAllBalanceRes
)
ctx
.
Run
()
return
}
if
ok
:=
types
.
IsAllowExecName
([]
byte
(
execer
),
[]
byte
(
execer
));
!
ok
{
fmt
.
Fprintln
(
os
.
Stderr
,
types
.
ErrExecNameNotAllow
)
return
}
var
addrs
[]
string
addrs
=
append
(
addrs
,
addr
)
params
:=
types
.
ReqBalance
{
...
...
vendor/github.com/33cn/chain33/system/dapp/manage/executor/rpc_test.go
0 → 100644
View file @
119ee0e6
package
executor
import
(
"testing"
rpctypes
"github.com/33cn/chain33/rpc/types"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/util"
"github.com/33cn/chain33/util/testnode"
"github.com/stretchr/testify/assert"
)
func
TestManageConfig
(
t
*
testing
.
T
)
{
cfg
,
sub
:=
testnode
.
GetDefaultConfig
()
mocker
:=
testnode
.
NewWithConfig
(
cfg
,
sub
,
nil
)
defer
mocker
.
Close
()
mocker
.
Listen
()
err
:=
mocker
.
SendHot
()
assert
.
Nil
(
t
,
err
)
//创建黑名单
// -o add -v BTY
create
:=
&
types
.
ModifyConfig
{
Key
:
"token-blacklist"
,
Op
:
"add"
,
Value
:
"BTY"
,
Addr
:
""
,
}
jsondata
:=
types
.
MustPBToJSON
(
create
)
/*
{
"execer": "manage",
"actionName": "Modify",
"payload": {
"key": "token-blacklist",
"value": "BTY",
"op": "add",
"addr": ""
}
}
*/
req
:=
&
rpctypes
.
CreateTxIn
{
Execer
:
"manage"
,
ActionName
:
"Modify"
,
Payload
:
jsondata
,
}
var
txhex
string
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.CreateTransaction"
,
req
,
&
txhex
)
assert
.
Nil
(
t
,
err
)
hash
,
err
:=
mocker
.
SendAndSign
(
mocker
.
GetHotKey
(),
txhex
)
assert
.
Nil
(
t
,
err
)
txinfo
,
err
:=
mocker
.
WaitTx
(
hash
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
txinfo
.
Receipt
.
Ty
,
int32
(
2
))
create
=
&
types
.
ModifyConfig
{
Key
:
"token-blacklist"
,
Op
:
"add"
,
Value
:
"YCC"
,
Addr
:
""
,
}
jsondata
=
types
.
MustPBToJSON
(
create
)
req
=
&
rpctypes
.
CreateTxIn
{
Execer
:
"manage"
,
ActionName
:
"Modify"
,
Payload
:
jsondata
,
}
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.CreateTransaction"
,
req
,
&
txhex
)
assert
.
Nil
(
t
,
err
)
hash
,
err
=
mocker
.
SendAndSign
(
mocker
.
GetHotKey
(),
txhex
)
assert
.
Nil
(
t
,
err
)
txinfo
,
err
=
mocker
.
WaitTx
(
hash
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
txinfo
.
Receipt
.
Ty
,
int32
(
2
))
create
=
&
types
.
ModifyConfig
{
Key
:
"token-blacklist"
,
Op
:
"add"
,
Value
:
"TTT"
,
Addr
:
""
,
}
jsondata
=
types
.
MustPBToJSON
(
create
)
req
=
&
rpctypes
.
CreateTxIn
{
Execer
:
"manage"
,
ActionName
:
"Modify"
,
Payload
:
jsondata
,
}
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.CreateTransaction"
,
req
,
&
txhex
)
assert
.
Nil
(
t
,
err
)
hash
,
err
=
mocker
.
SendAndSign
(
mocker
.
GetHotKey
(),
txhex
)
assert
.
Nil
(
t
,
err
)
txinfo
,
err
=
mocker
.
WaitTx
(
hash
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
txinfo
.
Receipt
.
Ty
,
int32
(
2
))
//做一个查询
/*
{
"execer": "manage",
"funcName": "GetConfigItem",
"payload": {
"data": "token-blacklist"
}
}
*/
queryreq
:=
&
types
.
ReqString
{
Data
:
"token-blacklist"
,
}
query
:=
&
rpctypes
.
Query4Jrpc
{
Execer
:
"manage"
,
FuncName
:
"GetConfigItem"
,
Payload
:
types
.
MustPBToJSON
(
queryreq
),
}
var
reply
types
.
ReplyConfig
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.Query"
,
query
,
&
reply
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
reply
.
Key
,
"token-blacklist"
)
assert
.
Equal
(
t
,
reply
.
Value
,
"[BTY YCC TTT]"
)
create
=
&
types
.
ModifyConfig
{
Key
:
"token-blacklist"
,
Op
:
"delete"
,
Value
:
"TTT"
,
Addr
:
""
,
}
jsondata
=
types
.
MustPBToJSON
(
create
)
req
=
&
rpctypes
.
CreateTxIn
{
Execer
:
"manage"
,
ActionName
:
"Modify"
,
Payload
:
jsondata
,
}
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.CreateTransaction"
,
req
,
&
txhex
)
assert
.
Nil
(
t
,
err
)
hash
,
err
=
mocker
.
SendAndSign
(
mocker
.
GetHotKey
(),
txhex
)
assert
.
Nil
(
t
,
err
)
txinfo
,
err
=
mocker
.
WaitTx
(
hash
)
assert
.
Nil
(
t
,
err
)
util
.
JSONPrint
(
t
,
txinfo
)
assert
.
Equal
(
t
,
txinfo
.
Receipt
.
Ty
,
int32
(
2
))
queryreq
=
&
types
.
ReqString
{
Data
:
"token-blacklist"
,
}
query
=
&
rpctypes
.
Query4Jrpc
{
Execer
:
"manage"
,
FuncName
:
"GetConfigItem"
,
Payload
:
types
.
MustPBToJSON
(
queryreq
),
}
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.Query"
,
query
,
&
reply
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
reply
.
Key
,
"token-blacklist"
)
assert
.
Equal
(
t
,
reply
.
Value
,
"[BTY YCC]"
)
}
func
TestTokenFinisher
(
t
*
testing
.
T
)
{
cfg
,
sub
:=
testnode
.
GetDefaultConfig
()
mocker
:=
testnode
.
NewWithConfig
(
cfg
,
sub
,
nil
)
defer
mocker
.
Close
()
mocker
.
Listen
()
err
:=
mocker
.
SendHot
()
assert
.
Nil
(
t
,
err
)
//添加发币审核地址
create
:=
&
types
.
ModifyConfig
{
Key
:
"token-finisher"
,
Op
:
"add"
,
Value
:
"1FCX9XJTZXvZteagTrefJEBPZMt8BFmdoi"
,
Addr
:
""
,
}
jsondata
:=
types
.
MustPBToJSON
(
create
)
/*
{
"execer": "manage",
"actionName": "Modify",
"payload": {
"key": "token-finisher",
"value": "1FCX9XJTZXvZteagTrefJEBPZMt8BFmdoi",
"op": "add",
"addr": ""
}
}
*/
req
:=
&
rpctypes
.
CreateTxIn
{
Execer
:
"manage"
,
ActionName
:
"Modify"
,
Payload
:
jsondata
,
}
var
txhex
string
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.CreateTransaction"
,
req
,
&
txhex
)
assert
.
Nil
(
t
,
err
)
hash
,
err
:=
mocker
.
SendAndSign
(
mocker
.
GetHotKey
(),
txhex
)
assert
.
Nil
(
t
,
err
)
txinfo
,
err
:=
mocker
.
WaitTx
(
hash
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
txinfo
.
Receipt
.
Ty
,
int32
(
2
))
queryreq
:=
&
types
.
ReqString
{
Data
:
"token-finisher"
,
}
query
:=
&
rpctypes
.
Query4Jrpc
{
Execer
:
"manage"
,
FuncName
:
"GetConfigItem"
,
Payload
:
types
.
MustPBToJSON
(
queryreq
),
}
var
reply
types
.
ReplyConfig
err
=
mocker
.
GetJSONC
()
.
Call
(
"Chain33.Query"
,
query
,
&
reply
)
assert
.
Nil
(
t
,
err
)
assert
.
Equal
(
t
,
reply
.
Key
,
"token-finisher"
)
assert
.
Equal
(
t
,
reply
.
Value
,
"[1FCX9XJTZXvZteagTrefJEBPZMt8BFmdoi]"
)
}
vendor/github.com/33cn/chain33/types/account.pb.go
View file @
119ee0e6
...
...
@@ -406,6 +406,79 @@ func (m *AllExecBalance) GetExecAccount() []*ExecAccount {
return
nil
}
type
ReqAllExecBalance
struct
{
//地址列表
Addr
string
`protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
//执行器名称
Execer
string
`protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"`
StateHash
string
`protobuf:"bytes,3,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
AssetExec
string
`protobuf:"bytes,4,opt,name=asset_exec,json=assetExec,proto3" json:"asset_exec,omitempty"`
AssetSymbol
string
`protobuf:"bytes,5,opt,name=asset_symbol,json=assetSymbol,proto3" json:"asset_symbol,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
}
func
(
m
*
ReqAllExecBalance
)
Reset
()
{
*
m
=
ReqAllExecBalance
{}
}
func
(
m
*
ReqAllExecBalance
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ReqAllExecBalance
)
ProtoMessage
()
{}
func
(
*
ReqAllExecBalance
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_8e28828dcb8d24f0
,
[]
int
{
7
}
}
func
(
m
*
ReqAllExecBalance
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ReqAllExecBalance
.
Unmarshal
(
m
,
b
)
}
func
(
m
*
ReqAllExecBalance
)
XXX_Marshal
(
b
[]
byte
,
deterministic
bool
)
([]
byte
,
error
)
{
return
xxx_messageInfo_ReqAllExecBalance
.
Marshal
(
b
,
m
,
deterministic
)
}
func
(
m
*
ReqAllExecBalance
)
XXX_Merge
(
src
proto
.
Message
)
{
xxx_messageInfo_ReqAllExecBalance
.
Merge
(
m
,
src
)
}
func
(
m
*
ReqAllExecBalance
)
XXX_Size
()
int
{
return
xxx_messageInfo_ReqAllExecBalance
.
Size
(
m
)
}
func
(
m
*
ReqAllExecBalance
)
XXX_DiscardUnknown
()
{
xxx_messageInfo_ReqAllExecBalance
.
DiscardUnknown
(
m
)
}
var
xxx_messageInfo_ReqAllExecBalance
proto
.
InternalMessageInfo
func
(
m
*
ReqAllExecBalance
)
GetAddr
()
string
{
if
m
!=
nil
{
return
m
.
Addr
}
return
""
}
func
(
m
*
ReqAllExecBalance
)
GetExecer
()
string
{
if
m
!=
nil
{
return
m
.
Execer
}
return
""
}
func
(
m
*
ReqAllExecBalance
)
GetStateHash
()
string
{
if
m
!=
nil
{
return
m
.
StateHash
}
return
""
}
func
(
m
*
ReqAllExecBalance
)
GetAssetExec
()
string
{
if
m
!=
nil
{
return
m
.
AssetExec
}
return
""
}
func
(
m
*
ReqAllExecBalance
)
GetAssetSymbol
()
string
{
if
m
!=
nil
{
return
m
.
AssetSymbol
}
return
""
}
func
init
()
{
proto
.
RegisterType
((
*
Account
)(
nil
),
"types.Account"
)
proto
.
RegisterType
((
*
ReceiptExecAccountTransfer
)(
nil
),
"types.ReceiptExecAccountTransfer"
)
...
...
@@ -414,35 +487,37 @@ func init() {
proto
.
RegisterType
((
*
Accounts
)(
nil
),
"types.Accounts"
)
proto
.
RegisterType
((
*
ExecAccount
)(
nil
),
"types.ExecAccount"
)
proto
.
RegisterType
((
*
AllExecBalance
)(
nil
),
"types.AllExecBalance"
)
proto
.
RegisterType
((
*
ReqAllExecBalance
)(
nil
),
"types.ReqAllExecBalance"
)
}
func
init
()
{
proto
.
RegisterFile
(
"account.proto"
,
fileDescriptor_8e28828dcb8d24f0
)
}
var
fileDescriptor_8e28828dcb8d24f0
=
[]
byte
{
// 399 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x8c
,
0x53
,
0xc1
,
0x8e
,
0xd3
,
0x30
,
0x10
,
0x95
,
0x9b
,
0x76
,
0xb3
,
0x99
,
0xc2
,
0x1e
,
0x7c
,
0x58
,
0x59
,
0x2b
,
0x56
,
0x84
,
0x9c
,
0x72
,
0x40
,
0xa9
,
0x44
,
0xf8
,
0x81
,
0x56
,
0x42
,
0xe2
,
0x86
,
0x64
,
0x38
,
0xf5
,
0x82
,
0x1c
,
0x77
,
0x4a
,
0x2b
,
0xd2
,
0x24
,
0xd8
,
0x2e
,
0xa2
,
0x7c
,
0x00
,
0x1f
,
0xc2
,
0x97
,
0x22
,
0x4f
,
0x9d
,
0x36
,
0xa5
,
0x02
,
0xed
,
0xad
,
0xf3
,
0xde
,
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0xcc
,
0x09
,
0xfb
,
0x40
,
0x90
,
0x7c
,
0x05
,
0xa7
,
0xd1
,
0xb8
,
0xe3
,
0x39
,
0x24
,
0xda
,
0x18
,
0xf2
,
0x76
,
0xb8
,
0x56
,
0xa0
,
0xe4
,
0x7b
,
0x98
,
0x8f
,
0xfe
,
0xbb
,
0x91
,
0x69
,
0xf6
,
0xc8
,
0x74
,
0x01
,
0x69
,
0xbc
,
0xb7
,
0xbf
,
0x65
,
0x14
,
0x69
,
0x79
,
0x03
,
0x67
,
0x57
,
0x4d
,
0x13
,
0x66
,
0x0e
,
0x31
,
0x0d
,
0xa7
,
0xc3
,
0xf6
,
0xa7
,
0xc3
,
0xdf
,
0x3c
,
0x92
,
0x15
,
0x13
,
0x32
,
0xc8
,
0xe3
,
0xcc
,
0x11
,
0xa3
,
0xc6
,
0x6d
,
0xf2
,
0x27
,
0x83
,
0x67
,
0x0a
,
0xef
,
0x8f
,
0x98
,
0xff
,
0x9f
,
0xc2
,
0xbf
,
0x7e
,
0x71
,
0x73
,
0xf9
,
0x79
,
0xed
,
0x57
,
0x9b
,
0xba
,
0x34
,
0xdd
,
0xdd
,
0xa2
,
0xaa
,
0x4c
,
0xbb
,
0x30
,
0x2b
,
0xbd
,
0x6e
,
0xab
,
0x6a
,
0x41
,
0xbb
,
0xd5
,
0x27
,
0xf4
,
0xb9
,
0x56
,
0xbf
,
0x03
,
0x00
,
0x00
,
0xff
,
0xff
,
0xf3
,
0x95
,
0x98
,
0xa9
,
0xbf
,
0x03
,
0x00
,
0x00
,
}
vendor/github.com/33cn/chain33/types/mocks/chain33client.go
View file @
119ee0e6
...
...
@@ -313,7 +313,7 @@ func (_m *Chain33Client) GetAddrOverview(ctx context.Context, in *types.ReqAddr,
}
// GetAllExecBalance provides a mock function with given fields: ctx, in, opts
func
(
_m
*
Chain33Client
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
types
.
ReqA
ddr
,
opts
...
grpc
.
CallOption
)
(
*
types
.
AllExecBalance
,
error
)
{
func
(
_m
*
Chain33Client
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
types
.
ReqA
llExecBalance
,
opts
...
grpc
.
CallOption
)
(
*
types
.
AllExecBalance
,
error
)
{
_va
:=
make
([]
interface
{},
len
(
opts
))
for
_i
:=
range
opts
{
_va
[
_i
]
=
opts
[
_i
]
...
...
@@ -324,7 +324,7 @@ func (_m *Chain33Client) GetAllExecBalance(ctx context.Context, in *types.ReqAdd
ret
:=
_m
.
Called
(
_ca
...
)
var
r0
*
types
.
AllExecBalance
if
rf
,
ok
:=
ret
.
Get
(
0
)
.
(
func
(
context
.
Context
,
*
types
.
ReqA
ddr
,
...
grpc
.
CallOption
)
*
types
.
AllExecBalance
);
ok
{
if
rf
,
ok
:=
ret
.
Get
(
0
)
.
(
func
(
context
.
Context
,
*
types
.
ReqA
llExecBalance
,
...
grpc
.
CallOption
)
*
types
.
AllExecBalance
);
ok
{
r0
=
rf
(
ctx
,
in
,
opts
...
)
}
else
{
if
ret
.
Get
(
0
)
!=
nil
{
...
...
@@ -333,7 +333,7 @@ func (_m *Chain33Client) GetAllExecBalance(ctx context.Context, in *types.ReqAdd
}
var
r1
error
if
rf
,
ok
:=
ret
.
Get
(
1
)
.
(
func
(
context
.
Context
,
*
types
.
ReqA
ddr
,
...
grpc
.
CallOption
)
error
);
ok
{
if
rf
,
ok
:=
ret
.
Get
(
1
)
.
(
func
(
context
.
Context
,
*
types
.
ReqA
llExecBalance
,
...
grpc
.
CallOption
)
error
);
ok
{
r1
=
rf
(
ctx
,
in
,
opts
...
)
}
else
{
r1
=
ret
.
Error
(
1
)
...
...
vendor/github.com/33cn/chain33/types/proto/account.proto
View file @
119ee0e6
...
...
@@ -58,3 +58,13 @@ message AllExecBalance {
string
addr
=
1
;
repeated
ExecAccount
ExecAccount
=
2
;
}
message
ReqAllExecBalance
{
//地址列表
string
addr
=
1
;
//执行器名称
string
execer
=
2
;
string
stateHash
=
3
;
string
asset_exec
=
4
;
string
asset_symbol
=
5
;
}
\ No newline at end of file
vendor/github.com/33cn/chain33/types/proto/rpc.proto
View file @
119ee0e6
...
...
@@ -135,7 +135,7 @@ service chain33 {
rpc
CloseQueue
(
ReqNil
)
returns
(
Reply
)
{}
//获取地址所以合约下的余额
rpc
GetAllExecBalance
(
ReqA
ddr
)
returns
(
AllExecBalance
)
{}
rpc
GetAllExecBalance
(
ReqA
llExecBalance
)
returns
(
AllExecBalance
)
{}
//签名交易
rpc
SignRawTx
(
ReqSignRawTx
)
returns
(
ReplySignRawTx
)
{}
...
...
vendor/github.com/33cn/chain33/types/rpc.pb.go
View file @
119ee0e6
...
...
@@ -26,73 +26,73 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
func
init
()
{
proto
.
RegisterFile
(
"rpc.proto"
,
fileDescriptor_77a6da22d6a3feb1
)
}
var
fileDescriptor_77a6da22d6a3feb1
=
[]
byte
{
// 10
49
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x94
,
0x56
,
0x
6d
,
0x6f
,
0xdb
,
0x3
6
,
0x1
0
,
0xd6
,
0x87
,
0xad
,
0x69
,
0x58
,
0xc7
,
0x71
,
0x18
,
0x37
,
0x68
,
0x85
,
0x15
,
0x05
,
0x04
,
0x0c
,
0x
1b
,
0x30
,
0xd4
,
0x6e
,
0xed
,
0x2d
,
0x7b
,
0xe9
,
0x36
,
0x20
,
0x4e
,
0x66
,
0xc7
,
0x98
,
0xeb
,
0xb9
,
0x
91
,
0xbb
,
0x01
,
0xfb
,
0x46
,
0xcb
,
0x37
,
0x47
,
0x88
,
0x4c
,
0x2a
,
0x22
,
0x15
,
0xcb
,
0x3f
,
0x76
,
0x
ff
,
0x65
,
0x20
,
0x25
,
0xea
,
0xdd
,
0x49
,
0xf6
,
0xcd
,
0xbc
,
0xbb
,
0xe7
,
0x5e
,
0x7c
,
0xcf
,
0xdd
,
0x
09
,
0xed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00
,
0x
00
,
0x00
,
0xff
,
0xff
,
0x54
,
0xb6
,
0x1e
,
0x9c
,
0x10
,
0x0c
,
0x00
,
0x00
,
}
// Reference imports to suppress errors if they are not otherwise used.
...
...
@@ -199,7 +199,7 @@ type Chain33Client interface {
//关闭chain33
CloseQueue
(
ctx
context
.
Context
,
in
*
ReqNil
,
opts
...
grpc
.
CallOption
)
(
*
Reply
,
error
)
//获取地址所以合约下的余额
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
ReqA
ddr
,
opts
...
grpc
.
CallOption
)
(
*
AllExecBalance
,
error
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
ReqA
llExecBalance
,
opts
...
grpc
.
CallOption
)
(
*
AllExecBalance
,
error
)
//签名交易
SignRawTx
(
ctx
context
.
Context
,
in
*
ReqSignRawTx
,
opts
...
grpc
.
CallOption
)
(
*
ReplySignRawTx
,
error
)
CreateNoBalanceTransaction
(
ctx
context
.
Context
,
in
*
NoBalanceTx
,
opts
...
grpc
.
CallOption
)
(
*
ReplySignRawTx
,
error
)
...
...
@@ -640,7 +640,7 @@ func (c *chain33Client) CloseQueue(ctx context.Context, in *ReqNil, opts ...grpc
return
out
,
nil
}
func
(
c
*
chain33Client
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
ReqA
ddr
,
opts
...
grpc
.
CallOption
)
(
*
AllExecBalance
,
error
)
{
func
(
c
*
chain33Client
)
GetAllExecBalance
(
ctx
context
.
Context
,
in
*
ReqA
llExecBalance
,
opts
...
grpc
.
CallOption
)
(
*
AllExecBalance
,
error
)
{
out
:=
new
(
AllExecBalance
)
err
:=
c
.
cc
.
Invoke
(
ctx
,
"/types.chain33/GetAllExecBalance"
,
in
,
out
,
opts
...
)
if
err
!=
nil
{
...
...
@@ -779,7 +779,7 @@ type Chain33Server interface {
//关闭chain33
CloseQueue
(
context
.
Context
,
*
ReqNil
)
(
*
Reply
,
error
)
//获取地址所以合约下的余额
GetAllExecBalance
(
context
.
Context
,
*
ReqA
ddr
)
(
*
AllExecBalance
,
error
)
GetAllExecBalance
(
context
.
Context
,
*
ReqA
llExecBalance
)
(
*
AllExecBalance
,
error
)
//签名交易
SignRawTx
(
context
.
Context
,
*
ReqSignRawTx
)
(
*
ReplySignRawTx
,
error
)
CreateNoBalanceTransaction
(
context
.
Context
,
*
NoBalanceTx
)
(
*
ReplySignRawTx
,
error
)
...
...
@@ -1640,7 +1640,7 @@ func _Chain33_CloseQueue_Handler(srv interface{}, ctx context.Context, dec func(
}
func
_Chain33_GetAllExecBalance_Handler
(
srv
interface
{},
ctx
context
.
Context
,
dec
func
(
interface
{})
error
,
interceptor
grpc
.
UnaryServerInterceptor
)
(
interface
{},
error
)
{
in
:=
new
(
ReqA
ddr
)
in
:=
new
(
ReqA
llExecBalance
)
if
err
:=
dec
(
in
);
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -1652,7 +1652,7 @@ func _Chain33_GetAllExecBalance_Handler(srv interface{}, ctx context.Context, de
FullMethod
:
"/types.chain33/GetAllExecBalance"
,
}
handler
:=
func
(
ctx
context
.
Context
,
req
interface
{})
(
interface
{},
error
)
{
return
srv
.
(
Chain33Server
)
.
GetAllExecBalance
(
ctx
,
req
.
(
*
ReqA
ddr
))
return
srv
.
(
Chain33Server
)
.
GetAllExecBalance
(
ctx
,
req
.
(
*
ReqA
llExecBalance
))
}
return
interceptor
(
ctx
,
in
,
info
,
handler
)
}
...
...
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