@agoric/cosmos 0.34.2-dev-7244c71.0 → 0.34.2-dev-28931a7.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/ante/ante.go +2 -2
- package/app/app.go +16 -16
- package/app/sim_test.go +4 -4
- package/git-revision.txt +1 -1
- package/go.mod +56 -46
- package/go.sum +453 -154
- package/package.json +2 -2
- package/x/vibc/ibc.go +25 -25
- package/x/vibc/keeper/keeper.go +4 -4
- package/x/vibc/types/expected_keepers.go +3 -3
- package/x/vibc/types/msgs.go +1 -1
- package/x/vibc/types/msgs.pb.go +1 -1
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-28931a7.0+28931a7",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"typeCoverage": {
|
|
39
39
|
"atLeast": 0
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "28931a75d65404433319234b5cc8507f3772d30a"
|
|
42
42
|
}
|
package/x/vibc/ibc.go
CHANGED
|
@@ -8,11 +8,11 @@ import (
|
|
|
8
8
|
"github.com/Agoric/agoric-sdk/golang/cosmos/vm"
|
|
9
9
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
10
10
|
capability "github.com/cosmos/cosmos-sdk/x/capability/types"
|
|
11
|
-
channeltypes "github.com/cosmos/ibc-go/
|
|
12
|
-
porttypes "github.com/cosmos/ibc-go/
|
|
13
|
-
host "github.com/cosmos/ibc-go/
|
|
11
|
+
channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
|
|
12
|
+
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
|
|
13
|
+
host "github.com/cosmos/ibc-go/v4/modules/core/24-host"
|
|
14
14
|
|
|
15
|
-
"github.com/cosmos/ibc-go/
|
|
15
|
+
"github.com/cosmos/ibc-go/v4/modules/core/exported"
|
|
16
16
|
|
|
17
17
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
18
18
|
)
|
|
@@ -169,8 +169,8 @@ func (im IBCModule) OnChanOpenInit(
|
|
|
169
169
|
channelCap *capability.Capability,
|
|
170
170
|
counterparty channeltypes.Counterparty,
|
|
171
171
|
version string,
|
|
172
|
-
) error {
|
|
173
|
-
return sdkerrors.Wrap(
|
|
172
|
+
) (string, error) {
|
|
173
|
+
return "", sdkerrors.Wrap(
|
|
174
174
|
channeltypes.ErrChannelNotFound,
|
|
175
175
|
fmt.Sprintf("vibc does not allow synthetic channelOpenInit for port %s", portID),
|
|
176
176
|
)
|
|
@@ -226,15 +226,15 @@ func (im IBCModule) OnChanOpenTry(
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
type channelOpenAckEvent struct {
|
|
229
|
-
Type
|
|
230
|
-
Event
|
|
231
|
-
PortID
|
|
232
|
-
ChannelID
|
|
233
|
-
CounterpartyVersion
|
|
234
|
-
Counterparty
|
|
235
|
-
ConnectionHops
|
|
236
|
-
BlockHeight
|
|
237
|
-
BlockTime
|
|
229
|
+
Type string `json:"type"` // IBC
|
|
230
|
+
Event string `json:"event"` // channelOpenAck
|
|
231
|
+
PortID string `json:"portID"`
|
|
232
|
+
ChannelID string `json:"channelID"`
|
|
233
|
+
CounterpartyVersion string `json:"counterpartyVersion"`
|
|
234
|
+
Counterparty channeltypes.Counterparty `json:"counterparty"`
|
|
235
|
+
ConnectionHops []string `json:"connectionHops"`
|
|
236
|
+
BlockHeight int64 `json:"blockHeight"`
|
|
237
|
+
BlockTime int64 `json:"blockTime"`
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
func (im IBCModule) OnChanOpenAck(
|
|
@@ -250,15 +250,15 @@ func (im IBCModule) OnChanOpenAck(
|
|
|
250
250
|
|
|
251
251
|
channel.Counterparty.ChannelId = counterpartyChannelID
|
|
252
252
|
event := channelOpenAckEvent{
|
|
253
|
-
Type:
|
|
254
|
-
Event:
|
|
255
|
-
PortID:
|
|
256
|
-
ChannelID:
|
|
257
|
-
CounterpartyVersion:
|
|
258
|
-
Counterparty:
|
|
259
|
-
ConnectionHops:
|
|
260
|
-
BlockHeight:
|
|
261
|
-
BlockTime:
|
|
253
|
+
Type: "IBC_EVENT",
|
|
254
|
+
Event: "channelOpenAck",
|
|
255
|
+
PortID: portID,
|
|
256
|
+
ChannelID: channelID,
|
|
257
|
+
CounterpartyVersion: counterpartyVersion,
|
|
258
|
+
Counterparty: channel.Counterparty,
|
|
259
|
+
ConnectionHops: channel.ConnectionHops,
|
|
260
|
+
BlockHeight: ctx.BlockHeight(),
|
|
261
|
+
BlockTime: ctx.BlockTime().Unix(),
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
return im.PushAction(ctx, event)
|
|
@@ -375,7 +375,7 @@ func (im IBCModule) OnRecvPacket(
|
|
|
375
375
|
|
|
376
376
|
err := im.PushAction(ctx, event)
|
|
377
377
|
if err != nil {
|
|
378
|
-
return channeltypes.NewErrorAcknowledgement(err
|
|
378
|
+
return channeltypes.NewErrorAcknowledgement(err)
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
return nil
|
package/x/vibc/keeper/keeper.go
CHANGED
|
@@ -9,10 +9,10 @@ import (
|
|
|
9
9
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
10
10
|
capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
|
|
11
11
|
capability "github.com/cosmos/cosmos-sdk/x/capability/types"
|
|
12
|
-
channeltypes "github.com/cosmos/ibc-go/
|
|
13
|
-
porttypes "github.com/cosmos/ibc-go/
|
|
14
|
-
host "github.com/cosmos/ibc-go/
|
|
15
|
-
ibcexported "github.com/cosmos/ibc-go/
|
|
12
|
+
channeltypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
|
|
13
|
+
porttypes "github.com/cosmos/ibc-go/v4/modules/core/05-port/types"
|
|
14
|
+
host "github.com/cosmos/ibc-go/v4/modules/core/24-host"
|
|
15
|
+
ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported"
|
|
16
16
|
|
|
17
17
|
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
|
|
18
18
|
|
|
@@ -3,9 +3,9 @@ package types
|
|
|
3
3
|
import (
|
|
4
4
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
5
5
|
capability "github.com/cosmos/cosmos-sdk/x/capability/types"
|
|
6
|
-
connection "github.com/cosmos/ibc-go/
|
|
7
|
-
channel "github.com/cosmos/ibc-go/
|
|
8
|
-
ibcexported "github.com/cosmos/ibc-go/
|
|
6
|
+
connection "github.com/cosmos/ibc-go/v4/modules/core/03-connection/types"
|
|
7
|
+
channel "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
|
|
8
|
+
ibcexported "github.com/cosmos/ibc-go/v4/modules/core/exported"
|
|
9
9
|
)
|
|
10
10
|
|
|
11
11
|
// ChannelKeeper defines the expected IBC channel keeper
|
package/x/vibc/types/msgs.go
CHANGED
|
@@ -4,7 +4,7 @@ import (
|
|
|
4
4
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
5
5
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
|
6
6
|
|
|
7
|
-
chanTypes "github.com/cosmos/ibc-go/
|
|
7
|
+
chanTypes "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
|
|
8
8
|
)
|
|
9
9
|
|
|
10
10
|
const RouterKey = ModuleName // this was defined in your key.go file
|
package/x/vibc/types/msgs.pb.go
CHANGED
|
@@ -7,7 +7,7 @@ import (
|
|
|
7
7
|
context "context"
|
|
8
8
|
fmt "fmt"
|
|
9
9
|
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
|
|
10
|
-
types "github.com/cosmos/ibc-go/
|
|
10
|
+
types "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types"
|
|
11
11
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
12
12
|
grpc1 "github.com/gogo/protobuf/grpc"
|
|
13
13
|
proto "github.com/gogo/protobuf/proto"
|