Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-fabric
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
sidecar-client-fabric
Commits
150b47e9
Commit
150b47e9
authored
Nov 22, 2021
by
harrylee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update go mod
parent
fa18a682
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
7 deletions
+10
-7
client.go
client.go
+1
-1
contracts.zip
example/contracts.zip
+0
-0
broker.go
example/contracts/src/broker/broker.go
+1
-0
go.mod
example/contracts/src/broker/go.mod
+1
-1
go.mod
example/contracts/src/data_swapper/go.mod
+1
-1
go.sum
example/contracts/src/data_swapper/go.sum
+0
-0
go.mod
example/contracts/src/transfer/go.mod
+1
-1
go.sum
example/contracts/src/transfer/go.sum
+0
-0
go.mod
go.mod
+1
-1
go.sum
go.sum
+4
-2
No files found.
client.go
View file @
150b47e9
...
...
@@ -359,7 +359,7 @@ func (c *Client) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
return
ret
,
nil
}
//跨链方法调用
func
(
c
*
Client
)
InvokeInterchain
(
from
string
,
index
uint64
,
destAddr
string
,
reqType
uint64
,
bizCallData
[]
byte
)
(
*
channel
.
Response
,
*
Response
,
error
)
{
args
:=
util
.
ToChaincodeArgs
(
from
,
strconv
.
FormatUint
(
index
,
10
),
destAddr
,
strconv
.
FormatUint
(
reqType
,
10
))
args
=
append
(
args
,
bizCallData
)
...
...
example/contracts.zip
deleted
100644 → 0
View file @
fa18a682
File deleted
example/contracts/src/broker/broker.go
View file @
150b47e9
...
...
@@ -435,6 +435,7 @@ func (broker *Broker) invokeInterchain(stub shim.ChaincodeStubInterface, args []
var
ccArgs
[][]
byte
ccArgs
=
append
(
ccArgs
,
[]
byte
(
callFunc
.
Func
))
ccArgs
=
append
(
ccArgs
,
callFunc
.
Args
...
)
//chaincode Name, 方法参数, 所属通道
response
:=
stub
.
InvokeChaincode
(
splitedCID
[
1
],
ccArgs
,
splitedCID
[
0
])
if
response
.
Status
!=
shim
.
OK
{
return
errorResponse
(
fmt
.
Sprintf
(
"invoke chaincode '%s' function %s err: %s"
,
splitedCID
[
1
],
callFunc
.
Func
,
response
.
Message
))
...
...
example/contracts/src/broker/go.mod
View file @
150b47e9
module git
hub.com/meshplus
/broker
module git
lab.33cn/link33/sidecar-client-fabric/example/contracts/src
/broker
go 1.13
...
...
example/contracts/src/data_swapper/go.mod
View file @
150b47e9
module git
hub.com/meshplus
/data_swapper
module git
lab.33cn/link33/sidecar-client-fabric/example/contracts/src
/data_swapper
go 1.13
...
...
example/contracts/src/data_swapper/go.sum
View file @
150b47e9
This diff is collapsed.
Click to expand it.
example/contracts/src/transfer/go.mod
View file @
150b47e9
module git
hub.com/meshplus
/transfer
module git
lab.33cn/link33/sidecar-client-fabric/example/contracts/src
/transfer
go 1.13
...
...
example/contracts/src/transfer/go.sum
View file @
150b47e9
This diff is collapsed.
Click to expand it.
go.mod
View file @
150b47e9
...
...
@@ -16,7 +16,7 @@ require (
github.com/hyperledger/fabric-protos-go v0.0.0-20201028172056-a3136dde2354
github.com/hyperledger/fabric-sdk-go v1.0.0-alpha5
github.com/spf13/viper v1.7.0
gitlab.33.cn/link33/sidecar v0.0.0-20211
028080238-67f4248825bb
gitlab.33.cn/link33/sidecar v0.0.0-20211
105031147-f9e9df1e4f1f
)
replace (
...
...
go.sum
View file @
150b47e9
...
...
@@ -344,6 +344,7 @@ github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2p
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/herumi/bls-eth-go-binary v0.0.0-20210917013441-d37c07cfda4e/go.mod h1:luAnRm3OsMQeokhGzpYmc0ZKwawY7o87PUEP11Z7r7U=
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c=
github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U=
...
...
@@ -894,6 +895,7 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/supranational/blst v0.3.6/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw=
github.com/sykesm/zap-logfmt v0.0.3 h1:3Wrhf7+I9JEUD8B6KPtDAr9j2jrS0/EPLy7GCE1t/+U=
github.com/sykesm/zap-logfmt v0.0.3/go.mod h1:AuBd9xQjAe3URrWT1BBDk2v2onAZHkZkWRMiYZXiZWA=
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
...
...
@@ -957,8 +959,8 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1z
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
gitlab.33.cn/link33/sidecar v0.0.0-20211
028080238-67f4248825bb h1:L1SK4l+DMV2WhKkifYr3cW9hxHU/bDQ/XAO7SZ1S94U
=
gitlab.33.cn/link33/sidecar v0.0.0-20211
028080238-67f4248825bb/go.mod h1:s/qrfybcmaH6VguLhze6/iyNE7pCJKVKndLaN37vqOs
=
gitlab.33.cn/link33/sidecar v0.0.0-20211
105031147-f9e9df1e4f1f h1:REbyqCuWDxubdcqW41o1gt+6vj7WTnr3rOwSEm0NICw
=
gitlab.33.cn/link33/sidecar v0.0.0-20211
105031147-f9e9df1e4f1f/go.mod h1:bq/K3Ga8m1sdRJjSbd43P7dhCiwj+eO358vvu55Cpu4
=
go.etcd.io/bbolt v1.3.2 h1:Z/90sZLPOeCy2PwprqkFa25PdkusRzaj9P8zm/KNyvk=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/etcd v3.3.13+incompatible h1:jCejD5EMnlGxFvcGRyEV4VGlENZc7oPQX6o0t7n3xbw=
...
...
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