@agoric/cosmos 0.34.2-dev-ff34bdf.0 → 0.34.2-dev-c4e4693.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/x/vibc/ibc.go +1 -2
- package/x/vibc/keeper/keeper.go +1 -15
- package/x/vibc/types/expected_keepers.go +2 -1
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c4e4693
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-c4e4693.0+c4e4693",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c4e469386a2a8c813182dc84cc63c8a660d22ecc"
|
|
39
39
|
}
|
package/x/vibc/ibc.go
CHANGED
|
@@ -228,7 +228,6 @@ type channelOpenAckEvent struct {
|
|
|
228
228
|
Event string `json:"event"` // channelOpenAck
|
|
229
229
|
PortID string `json:"portID"`
|
|
230
230
|
ChannelID string `json:"channelID"`
|
|
231
|
-
CounterpartyChannelID string `json:"counterpartyChannelID"`
|
|
232
231
|
CounterpartyVersion string `json:"counterpartyVersion"`
|
|
233
232
|
Counterparty channeltypes.Counterparty `json:"counterparty"`
|
|
234
233
|
ConnectionHops []string `json:"connectionHops"`
|
|
@@ -247,12 +246,12 @@ func (im IBCModule) OnChanOpenAck(
|
|
|
247
246
|
// returns an empty channel object that we can still use without crashing.
|
|
248
247
|
channel, _ := im.keeper.GetChannel(ctx, portID, channelID)
|
|
249
248
|
|
|
249
|
+
channel.Counterparty.ChannelId = counterpartyChannelID
|
|
250
250
|
event := channelOpenAckEvent{
|
|
251
251
|
Type: "IBC_EVENT",
|
|
252
252
|
Event: "channelOpenAck",
|
|
253
253
|
PortID: portID,
|
|
254
254
|
ChannelID: channelID,
|
|
255
|
-
CounterpartyChannelID: counterpartyChannelID,
|
|
256
255
|
CounterpartyVersion: counterpartyVersion,
|
|
257
256
|
Counterparty: channel.Counterparty,
|
|
258
257
|
ConnectionHops: channel.ConnectionHops,
|
package/x/vibc/keeper/keeper.go
CHANGED
|
@@ -92,13 +92,7 @@ func (k Keeper) ChanOpenInit(ctx sdk.Context, order channeltypes.Order, connecti
|
|
|
92
92
|
return err
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
96
|
-
ctx.EventManager().EmitEvents(sdk.Events{
|
|
97
|
-
sdk.NewEvent(
|
|
98
|
-
sdk.EventTypeMessage,
|
|
99
|
-
sdk.NewAttribute(sdk.AttributeKeyModule, channeltypes.AttributeValueCategory),
|
|
100
|
-
),
|
|
101
|
-
})
|
|
95
|
+
k.channelKeeper.WriteOpenInitChannel(ctx, portID, channelID, order, connectionHops, counterparty, version)
|
|
102
96
|
return nil
|
|
103
97
|
}
|
|
104
98
|
|
|
@@ -157,14 +151,6 @@ func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error {
|
|
|
157
151
|
if err != nil {
|
|
158
152
|
return err
|
|
159
153
|
}
|
|
160
|
-
|
|
161
|
-
// We need to emit a channel event to notify the relayer.
|
|
162
|
-
ctx.EventManager().EmitEvents(sdk.Events{
|
|
163
|
-
sdk.NewEvent(
|
|
164
|
-
sdk.EventTypeMessage,
|
|
165
|
-
sdk.NewAttribute(sdk.AttributeKeyModule, channeltypes.AttributeValueCategory),
|
|
166
|
-
),
|
|
167
|
-
})
|
|
168
154
|
return nil
|
|
169
155
|
}
|
|
170
156
|
|
|
@@ -16,7 +16,8 @@ type ChannelKeeper interface {
|
|
|
16
16
|
WriteAcknowledgement(ctx sdk.Context, channelCap *capability.Capability, packet ibcexported.PacketI, acknowledgement ibcexported.Acknowledgement) error
|
|
17
17
|
ChanOpenInit(ctx sdk.Context, order channel.Order, connectionHops []string, portID string,
|
|
18
18
|
portCap *capability.Capability, counterparty channel.Counterparty, version string) (string, *capability.Capability, error)
|
|
19
|
-
|
|
19
|
+
WriteOpenInitChannel(ctx sdk.Context, portID, channelID string, order channel.Order,
|
|
20
|
+
connectionHops []string, counterparty channel.Counterparty, version string)
|
|
20
21
|
ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capability.Capability) error
|
|
21
22
|
TimeoutExecuted(ctx sdk.Context, channelCap *capability.Capability, packet ibcexported.PacketI) error
|
|
22
23
|
}
|