Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-sdk-go
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
chain33-sdk-go
Commits
bd668bac
Commit
bd668bac
authored
Nov 09, 2021
by
harrylee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add data swap method
parent
44887f8c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
117 deletions
+114
-117
jsonclient.go
client/jsonclient.go
+40
-33
broker.go
dapp/broker/broker.go
+2
-25
broker.proto
proto/broker.proto
+7
-4
broker.pb.go
types/broker.pb.go
+65
-55
No files found.
client/jsonclient.go
View file @
bd668bac
...
...
@@ -301,77 +301,84 @@ func (client *JSONClient) QueryBlockInfo(start, end int64, isDetail bool) (*Bloc
return
&
res
,
nil
}
// 调用chaincode
func
(
client
*
JSONClient
)
Invoke
(
requst
*
Request
,
privateKey
string
)
(
*
Response
,
error
)
{
// FIXME 这里需完善
if
requst
.
Exec
==
storage
.
StorageX
{
switch
requst
.
Fcn
{
case
"set"
,
"ContentStorage"
:
tx
,
err
:=
storage
.
CreateContentStorageTx
(
client
.
prefix
,
0
,
string
(
requst
.
Args
[
0
]),
nil
,
string
(
requst
.
Args
[
1
]))
// 发布跨链事件
func
(
client
*
JSONClient
)
EmitDataSwapInterchainEvent
(
dstServiceID
,
args
,
argscb
,
argsrb
string
,
privateKey
string
)
(
*
Response
,
error
)
{
// FIXME 这里需完善 funcName="interchainGet,interchainSet," txType=0 表示是存在类数据交换
tx
,
err
:=
broker
.
EmitInterchainEvent
(
""
,
dstServiceID
,
"interchainGet,interchainSet,"
,
args
,
argsrb
,
argsrb
,
0
)
if
err
!=
nil
{
return
nil
,
err
}
return
client
.
SendTransactionSync
(
privateKey
,
tx
)
}
}
return
nil
,
fmt
.
Errorf
(
"not matching execution or method!"
)
}
// TODO 执行请求
func
(
client
*
JSONClient
)
Execute
(
requst
*
Request
,
privateKey
string
)
(
*
Response
,
error
)
{
if
requst
.
Exec
==
broker
.
BrokerX
{
func
(
client
*
JSONClient
)
Execute
(
requst
*
Request
,
privateKey
string
)
(
*
Response
,
error
)
{
if
requst
.
Exec
==
broker
.
BrokerX
{
switch
requst
.
Fcn
{
case
"invokeInterchain"
:
srcChainServiceID
:=
string
(
requst
.
Args
[
0
])
sequenceNum
,
err
:=
strconv
.
ParseUint
(
string
(
requst
.
Args
[
1
]),
10
,
64
)
sequenceNum
,
err
:=
strconv
.
ParseUint
(
string
(
requst
.
Args
[
1
]),
10
,
64
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"cannot parse %s to uint64"
,
string
(
requst
.
Args
[
1
]))
return
nil
,
fmt
.
Errorf
(
"cannot parse %s to uint64"
,
string
(
requst
.
Args
[
1
]))
}
targetCID
:=
string
(
requst
.
Args
[
2
])
reqType
,
err
:=
strconv
.
ParseUint
(
string
(
requst
.
Args
[
3
]),
10
,
64
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"cannot parse %s to uint64"
,
string
(
requst
.
Args
[
3
]))
return
nil
,
fmt
.
Errorf
(
"cannot parse %s to uint64"
,
string
(
requst
.
Args
[
3
]))
}
if
tx
,
err
:=
broker
.
UpdateIndex
(
""
,
srcChainServiceID
,
targetCID
,
sequenceNum
,
reqType
,
nil
);
err
==
nil
{
resp
,
err
:=
client
.
SendTransactionSync
(
privateKey
,
tx
)
if
err
!=
nil
{
return
resp
,
err
if
tx
,
err
:=
broker
.
UpdateIndex
(
""
,
srcChainServiceID
,
targetCID
,
sequenceNum
,
reqType
,
nil
);
err
==
nil
{
resp
,
err
:=
client
.
SendTransactionSync
(
privateKey
,
tx
)
if
err
!=
nil
{
return
resp
,
err
}
//splitedCID[1]就是合约名称
splitedCID
:=
strings
.
Split
(
targetCID
,
"&"
)
if
len
(
splitedCID
)
!=
2
{
return
nil
,
fmt
.
Errorf
(
"Target chaincode id %s is not valid"
,
targetCID
)
return
nil
,
fmt
.
Errorf
(
"Target chaincode id %s is not valid"
,
targetCID
)
}
callFunc
:=
&
CallFunc
{}
if
err
:=
json
.
Unmarshal
(
requst
.
Args
[
4
],
callFunc
);
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"unmarshal call func failed for %s"
,
requst
.
Args
[
4
])
return
nil
,
fmt
.
Errorf
(
"unmarshal call func failed for %s"
,
requst
.
Args
[
4
])
}
// 调用相应链码, (链码名称,参数,通道名称)
if
splitedCID
[
1
]
==
storage
.
StorageX
{
if
splitedCID
[
1
]
==
storage
.
StorageX
{
//interchainGet方法是在sdk封装的,用于支持跨链之前数据的查询
switch
callFunc
.
Func
{
case
"interchainGet"
:
return
client
.
InterChainGet
(
string
(
callFunc
.
Args
[
0
]))
response
,
err
:=
client
.
InterChainGet
(
string
(
callFunc
.
Args
[
0
]))
if
err
!=
nil
{
return
resp
,
err
}
//携带TXhash
response
.
Message
=
resp
.
Message
return
response
,
err
case
"interchainSet"
:
//跨链set kv
return
client
.
InterChainSet
(
string
(
callFunc
.
Args
[
0
]),
string
(
callFunc
.
Args
[
1
]),
privateKey
)
}
}
else
{
return
nil
,
fmt
.
Errorf
(
"can't support exec %s"
,
splitedCID
[
1
])
}
else
{
return
nil
,
fmt
.
Errorf
(
"can't support exec %s"
,
splitedCID
[
1
])
}
}
}
}
return
nil
,
nil
return
nil
,
fmt
.
Errorf
(
"not matching execution or method!"
)
}
//包装适配跨链插件调用
func
(
client
*
JSONClient
)
InterChainSet
(
key
,
value
string
)
(
*
Response
,
error
)
{
return
nil
,
nil
//包装适配跨链插件调用
func
(
client
*
JSONClient
)
InterChainSet
(
key
,
value
,
privateKey
string
)
(
*
Response
,
error
)
{
tx
,
err
:=
storage
.
CreateContentStorageTx
(
""
,
0
,
key
,
nil
,
value
)
if
err
!=
nil
{
return
nil
,
err
}
resp
,
err
:=
client
.
SendTransactionSync
(
privateKey
,
tx
)
return
resp
,
err
}
//包装适配跨链插件调用
func
(
client
*
JSONClient
)
InterChainGet
(
key
string
)
(
*
Response
,
error
)
{
jsonraw
,
err
:=
json
.
Marshal
(
&
types
.
QueryStorage
{
TxHash
:
key
})
...
...
@@ -388,9 +395,9 @@ func (client *JSONClient) InterChainGet(key string) (*Response, error) {
if
err
!=
nil
{
return
nil
,
err
}
storage
:=
data
.
(
*
types
.
Storage
)
storage
:=
data
.
(
*
types
.
Storage
)
//这里暂时就去明文存证内容
resp
:=
&
Response
{
OK
:
true
,
Message
:
key
,
Data
:
storage
.
GetContentStorage
()
.
GetContent
(
)}
resp
:=
&
Response
{
OK
:
true
,
Message
:
key
,
Data
:
[]
byte
(
storage
.
GetContentStorage
()
.
GetValue
()
)}
return
resp
,
nil
}
...
...
dapp/broker/broker.go
View file @
bd668bac
...
...
@@ -9,18 +9,8 @@ import (
)
// 构造发布跨链交易事件交易
func
EmitInterchainEvent
(
paraName
,
dstServiceID
,
funcName
string
,
args
[]
string
,
txType
uint64
)
(
*
types
.
Transaction
,
error
)
{
//目的链ID,固定格式0x000001
//string dstServiceID = 2;
////源链ID,固定格式0x000002
//string srcServiceID = 3;
////跨链交易类型 0表示storage,1表示coins,2表示token......
//uint64 type =4;
////调用方法
//string func = 5;
////参数列表
//repeated string args = 6;
payload
:=
&
types
.
BrokerAction
{
Ty
:
TyEmitInterchainEventAction
,
Value
:
&
types
.
BrokerAction_EmitInterchainEvent
{
EmitInterchainEvent
:
&
types
.
InterchainEvent
{
DstServiceID
:
dstServiceID
,
Type
:
txType
,
Func
:
funcName
,
Args
:
args
}}}
func
EmitInterchainEvent
(
paraName
,
dstServiceID
,
funcName
string
,
args
,
argscb
,
argsrb
string
,
txType
uint64
)
(
*
types
.
Transaction
,
error
)
{
payload
:=
&
types
.
BrokerAction
{
Ty
:
TyEmitInterchainEventAction
,
Value
:
&
types
.
BrokerAction_EmitInterchainEvent
{
EmitInterchainEvent
:
&
types
.
InterchainEvent
{
DstServiceID
:
dstServiceID
,
Type
:
txType
,
Func
:
funcName
,
Args
:
args
,
Argscb
:
argscb
,
Argsrb
:
argsrb
}}}
if
paraName
==
""
{
tx
:=
&
types
.
Transaction
{
Execer
:
[]
byte
(
BrokerX
),
Payload
:
types
.
Encode
(
payload
),
Fee
:
1e5
,
Nonce
:
rand
.
Int63n
(
time
.
Now
()
.
UnixNano
()),
To
:
Addr
}
return
tx
,
nil
...
...
@@ -32,16 +22,6 @@ func EmitInterchainEvent(paraName, dstServiceID, funcName string, args []string,
// 构造更新Index交易
func
UpdateIndex
(
paraName
,
srcServiceID
,
dstServiceID
string
,
sequenceNum
,
reqType
uint64
,
response
*
types
.
Response
)
(
*
types
.
Transaction
,
error
)
{
////当前链已经处理到的位置
//uint64 sequenceNum = 1;
////目的链服务ID,固定格式0x000001
//string dstServiceID = 2;
////源链ID,固定格式0x000002
//string srcServiceID = 3;
////请求类型 0表示信息流入 1表示信息流出 2表示回滚
//uint64 reqType =4;
////响应信息
//Response response = 5;
payload
:=
&
types
.
BrokerAction
{
Ty
:
TyUpdateIndexAction
,
Value
:
&
types
.
BrokerAction_UpdateIndex
{
UpdateIndex
:
&
types
.
UpdateIndex
{
DstServiceID
:
dstServiceID
,
SrcServiceID
:
srcServiceID
,
ReqType
:
reqType
,
SequenceNum
:
sequenceNum
,
Response
:
response
}}}
if
paraName
==
""
{
tx
:=
&
types
.
Transaction
{
Execer
:
[]
byte
(
BrokerX
),
Payload
:
types
.
Encode
(
payload
),
Fee
:
1e5
,
Nonce
:
rand
.
Int63n
(
time
.
Now
()
.
UnixNano
()),
To
:
Addr
}
...
...
@@ -52,6 +32,3 @@ func UpdateIndex(paraName, srcServiceID, dstServiceID string, sequenceNum, reqTy
}
}
func
EmitInterchainSetEvent
(){
}
proto/broker.proto
View file @
bd668bac
...
...
@@ -52,7 +52,6 @@ message UpdateIndex {
//响应信息
Response
response
=
5
;
}
// 跨链事件
message
InterchainEvent
{
//索引值,这个有系统自动生成
...
...
@@ -63,12 +62,16 @@ message InterchainEvent {
string
srcServiceID
=
3
;
//跨链交易类型 0表示storage,1表示coins,2表示token......
uint64
type
=
4
;
//调用方法
//方法集合分别表示 当前,回调,回滚方法 用,号分割 比如: "interchainGet,interchainSet,interchainRollback"
string
func
=
5
;
//参数列表
repeated
string
args
=
6
;
string
args
=
6
;
//回调参数
string
argscb
=
7
;
//回滚参数
string
argsrb
=
8
;
//状态 0表示开始处理 1表示跨链成功 2表示跨链失败
int32
status
=
7
;
//
int32 status = 7;
}
//ReceiptBrokerLog
message
ReceiptBrokerLog
{
...
...
types/broker.pb.go
View file @
bd668bac
...
...
@@ -422,12 +422,14 @@ type InterchainEvent struct {
SrcServiceID
string
`protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"`
//跨链交易类型 0表示storage,1表示coins,2表示token......
Type
uint64
`protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
//
调用方法
//
方法集合分别表示 当前,回调,回滚方法 用,号分割 比如: "interchainGet,interchainSet,interchainRollback"
Func
string
`protobuf:"bytes,5,opt,name=func,proto3" json:"func,omitempty"`
//参数列表
Args
[]
string
`protobuf:"bytes,6,rep,name=args,proto3" json:"args,omitempty"`
//状态 0表示开始处理 1表示跨链成功 2表示跨链失败
Status
int32
`protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
Args
string
`protobuf:"bytes,6,opt,name=args,proto3" json:"args,omitempty"`
//回调参数
Argscb
string
`protobuf:"bytes,7,opt,name=argscb,proto3" json:"argscb,omitempty"`
//回滚参数
Argsrb
string
`protobuf:"bytes,8,opt,name=argsrb,proto3" json:"argsrb,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -493,18 +495,25 @@ func (m *InterchainEvent) GetFunc() string {
return
""
}
func
(
m
*
InterchainEvent
)
GetArgs
()
[]
string
{
func
(
m
*
InterchainEvent
)
GetArgs
()
string
{
if
m
!=
nil
{
return
m
.
Args
}
return
nil
return
""
}
func
(
m
*
InterchainEvent
)
Get
Status
()
int32
{
func
(
m
*
InterchainEvent
)
Get
Argscb
()
string
{
if
m
!=
nil
{
return
m
.
Status
return
m
.
Argscb
}
return
0
return
""
}
func
(
m
*
InterchainEvent
)
GetArgsrb
()
string
{
if
m
!=
nil
{
return
m
.
Argsrb
}
return
""
}
//ReceiptBrokerLog
...
...
@@ -1084,52 +1093,53 @@ func init() {
}
var
fileDescriptor_f209535e190f2bed
=
[]
byte
{
// 711 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xbc
,
0x55
,
0x4f
,
0x4f
,
0xdb
,
0x4a
,
0x10
,
0x8f
,
0x1d
,
0x3b
,
0x90
,
0x49
,
0x20
,
0xbc
,
0x85
,
0x87
,
0xac
,
0x77
,
0x78
,
0x2f
,
0xcf
,
0xe2
,
0x40
,
0x5b
,
0x89
,
0x4a
,
0x20
,
0xb5
,
0x55
,
0xd5
,
0x4b
,
0x42
,
0x91
,
0x92
,
0x0a
,
0x28
,
0xdd
,
0xfe
,
0x51
,
0x7b
,
0x5c
,
0x9c
,
0x21
,
0x6c
,
0x49
,
0xd6
,
0x66
,
0xbd
,
0x46
,
0xf8
,
0xa3
,
0xf4
,
0x9b
,
0xf4
,
0xd4
,
0x4b
,
0xbf
,
0x58
,
0xb5
,
0xeb
,
0x4d
,
0xe2
,
0x04
,
0xaa
,
0xaa
,
0x08
,
0xf5
,
0x12
,
0xed
,
0xfc
,
0x66
,
0x76
,
0x67
,
0xf2
,
0x9b
,
0xf9
,
0x8d
,
0xa1
,
0x79
,
0x2a
,
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
0x3f
,
0xb3
,
0x5d
,
0xa6
,
0x28
,
0xfe
,
0xbd
,
0xb4
,
0xcb
,
0xf4
,
0x9f
,
0xa3
,
0x58
,
0x8a
,
0xc2
,
0x6c
,
0xb5
,
0x3f
,
0x1e
,
0x43
,
0x63
,
0x06
,
0x91
,
0x75
,
0xa8
,
0x5e
,
0x62
,
0x61
,
0x73
,
0xaa
,
0xa3
,
0xaa
,
0x43
,
0x8f
,
0x90
,
0xad
,
0xd8
,
0x18
,
0x4f
,
0xdd
,
0x27
,
0x4e
,
0xf8
,
0x0e
,
0xea
,
0xd3
,
0x1d
,
0x53
,
0xda
,
0xb1
,
0x8e
,
0x1e
,
0x3e
,
0x6b
,
0xa9
,
0xc5
,
0x35
,
0x31
,
0x34
,
0xd9
,
0x62
,
0xa7
,
0xa6
,
0xf2
,
0xa4
,
0xac
,
0x18
,
0x27
,
0x6c
,
0xa8
,
0x47
,
0xa7
,
0x45
,
0xa7
,
0xe6
,
0x7e
,
0x1d
,
0x6a
,
0xe6
,
0xfb
,
0x3c
,
0xa8
,
0xe9
,
0x0f
,
0xf4
,
0xc1
,
0xb7
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0xc1
,
0x11
,
0xe4
,
0xb4
,
0xb0
,
0x07
,
0x00
,
0x00
,
}
// Reference imports to suppress errors if they are not otherwise used.
...
...
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