Skip to content

Commit

Permalink
Merge pull request #40 from siburu/ibc-go-v8_2
Browse files Browse the repository at this point in the history
Bump up to yui-relayer@v0.5.1 (ibc-go@v8.2.0)
  • Loading branch information
siburu authored Apr 27, 2024
2 parents 593dd65 + 69993e9 commit c08b4a6
Show file tree
Hide file tree
Showing 10 changed files with 1,808 additions and 669 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FORGE ?= forge
ABIGEN ?= docker run -v .:/workspace -w /workspace -it ethereum/client-go:alltools-v1.11.6 abigen
ABIGEN ?= docker run -v .:/workspace -w /workspace -it ethereum/client-go:alltools-v1.14.0 abigen

DOCKER := $(shell which docker)

protoVer=0.13.1
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --user 0 --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

Expand Down
233 changes: 129 additions & 104 deletions go.mod

Large diffs are not rendered by default.

716 changes: 364 additions & 352 deletions go.sum

Large diffs are not rendered by default.

1,476 changes: 1,289 additions & 187 deletions pkg/contract/ibchandler/ibchandler.go

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions pkg/relay/ethereum/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"github.com/avast/retry-go"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
conntypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types"
chantypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
committypes "github.com/cosmos/ibc-go/v7/modules/core/23-commitment/types"
host "github.com/cosmos/ibc-go/v7/modules/core/24-host"
ibcexported "github.com/cosmos/ibc-go/v7/modules/core/exported"
transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
conntypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"
chantypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
committypes "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types"
host "github.com/cosmos/ibc-go/v8/modules/core/24-host"
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/crypto"
"github.com/hyperledger-labs/yui-relayer/core"
Expand Down
4 changes: 2 additions & 2 deletions pkg/relay/ethereum/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"math/big"
"time"

clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/common"
Expand Down
8 changes: 4 additions & 4 deletions pkg/relay/ethereum/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/hyperledger-labs/yui-relayer/core"
Expand Down Expand Up @@ -72,19 +72,19 @@ func (c *Chain) parseMsgEventLogs(logs []*types.Log) ([]core.MsgEventLog, error)
if err != nil {
return nil, fmt.Errorf("failed to parse GeneratedClientIdentifier event: logIndex=%d, log=%v", i, log)
}
event = &core.EventGenerateClientIdentifier{ID: ev.Arg0}
event = &core.EventGenerateClientIdentifier{ID: ev.ClientId}
case abiGeneratedConnectionIdentifier.ID:
ev, err := c.ibcHandler.ParseGeneratedConnectionIdentifier(*log)
if err != nil {
return nil, fmt.Errorf("failed to parse GeneratedConnectionIdentifier event: logIndex=%d, log=%v", i, log)
}
event = &core.EventGenerateConnectionIdentifier{ID: ev.Arg0}
event = &core.EventGenerateConnectionIdentifier{ID: ev.ConnectionId}
case abiGeneratedChannelIdentifier.ID:
ev, err := c.ibcHandler.ParseGeneratedChannelIdentifier(*log)
if err != nil {
return nil, fmt.Errorf("failed to parse GeneratedChannelIdentifier event: logIndex=%d, log=%v", i, log)
}
event = &core.EventGenerateChannelIdentifier{ID: ev.Arg0}
event = &core.EventGenerateChannelIdentifier{ID: ev.ChannelId}
case abiSendPacket.ID:
ev, err := c.ibcHandler.ParseSendPacket(*log)
if err != nil {
Expand Down
12 changes: 6 additions & 6 deletions pkg/relay/ethereum/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/gogoproto/proto"
clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
conntypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types"
chantypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
"github.com/cosmos/ibc-go/v7/modules/core/exported"
clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
conntypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"
chantypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
"github.com/cosmos/ibc-go/v8/modules/core/exported"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -291,7 +291,7 @@ func (c *Chain) TxChannelOpenConfirm(opts *bind.TransactOpts, msg *chantypes.Msg

func (c *Chain) TxRecvPacket(opts *bind.TransactOpts, msg *chantypes.MsgRecvPacket) (*gethtypes.Transaction, error) {
return c.ibcHandler.RecvPacket(opts, ibchandler.IIBCChannelRecvPacketMsgPacketRecv{
Packet: ibchandler.PacketData{
Packet: ibchandler.Packet{
Sequence: msg.Packet.Sequence,
SourcePort: msg.Packet.SourcePort,
SourceChannel: msg.Packet.SourceChannel,
Expand All @@ -308,7 +308,7 @@ func (c *Chain) TxRecvPacket(opts *bind.TransactOpts, msg *chantypes.MsgRecvPack

func (c *Chain) TxAcknowledgement(opts *bind.TransactOpts, msg *chantypes.MsgAcknowledgement) (*gethtypes.Transaction, error) {
return c.ibcHandler.AcknowledgePacket(opts, ibchandler.IIBCChannelAcknowledgePacketMsgPacketAcknowledgement{
Packet: ibchandler.PacketData{
Packet: ibchandler.Packet{
Sequence: msg.Packet.Sequence,
SourcePort: msg.Packet.SourcePort,
SourceChannel: msg.Packet.SourceChannel,
Expand Down
8 changes: 4 additions & 4 deletions pkg/relay/ethereum/types.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package ethereum

import (
connectiontypes "github.com/cosmos/ibc-go/v7/modules/core/03-connection/types"
channeltypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
commitmenttypes "github.com/cosmos/ibc-go/v7/modules/core/23-commitment/types"
"github.com/cosmos/ibc-go/v7/modules/core/exported"
connectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"
channeltypes "github.com/cosmos/ibc-go/v8/modules/core/04-channel/types"
commitmenttypes "github.com/cosmos/ibc-go/v8/modules/core/23-commitment/types"
"github.com/cosmos/ibc-go/v8/modules/core/exported"
"github.com/datachainlab/ethereum-ibc-relay-chain/pkg/contract/ibchandler"
)

Expand Down
2 changes: 1 addition & 1 deletion yui-ibc-solidity
Submodule yui-ibc-solidity updated 118 files

0 comments on commit c08b4a6

Please sign in to comment.