From c3b8d5c625051f36294a069a4f801f1f8c702e6b Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Wed, 17 Jan 2024 09:41:27 +0900 Subject: [PATCH 1/2] bump relayer version Signed-off-by: Jun Kimura --- go.mod | 2 +- go.sum | 4 ++-- relay/prover.go | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 661fdb1..b093b5f 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/ethereum/go-ethereum v1.12.0 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/hyperledger-labs/yui-relayer v0.4.19 + github.com/hyperledger-labs/yui-relayer v0.4.21-0.20240117002228-5a9539bf01c5 github.com/oasisprotocol/oasis-core/go v0.2201.11 github.com/spf13/cobra v1.7.0 github.com/spf13/viper v1.16.0 diff --git a/go.sum b/go.sum index 7ce8702..fac8a66 100644 --- a/go.sum +++ b/go.sum @@ -715,8 +715,8 @@ github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= -github.com/hyperledger-labs/yui-relayer v0.4.19 h1:I139zRG0228bRAyrhEV2Pgdwbv9Fx2vw3azNHhYqnsc= -github.com/hyperledger-labs/yui-relayer v0.4.19/go.mod h1:Hdc/ERCPDhbipri45/U6+/3kDH7EttIWGdql+Rd3tZg= +github.com/hyperledger-labs/yui-relayer v0.4.21-0.20240117002228-5a9539bf01c5 h1:eXfBTCaJfWn7eHuKjpFTCnJ4FBpcp0Q0mC+9z10+zZg= +github.com/hyperledger-labs/yui-relayer v0.4.21-0.20240117002228-5a9539bf01c5/go.mod h1:Hdc/ERCPDhbipri45/U6+/3kDH7EttIWGdql+Rd3tZg= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= diff --git a/relay/prover.go b/relay/prover.go index fca3786..611f32e 100644 --- a/relay/prover.go +++ b/relay/prover.go @@ -336,3 +336,9 @@ func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ( } return cp, sc.Height, nil } + +// ProveHostConsensusState returns an existence proof of the consensus state at `height` +// This proof would be ignored in ibc-go, but it is required to `getSelfConsensusState` of ibc-solidity. +func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height exported.Height, consensusState exported.ConsensusState) (proof []byte, err error) { + return pr.originProver.ProveHostConsensusState(ctx, height, consensusState) +} From 7f0b03e051198a0f853c03116bef0ae3e77b18de Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Wed, 17 Jan 2024 15:37:25 +0900 Subject: [PATCH 2/2] use yui-relayer v0.4.21 Signed-off-by: Jun Kimura --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b093b5f..786b1c3 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/ethereum/go-ethereum v1.12.0 github.com/gorilla/mux v1.8.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 - github.com/hyperledger-labs/yui-relayer v0.4.21-0.20240117002228-5a9539bf01c5 + github.com/hyperledger-labs/yui-relayer v0.4.21 github.com/oasisprotocol/oasis-core/go v0.2201.11 github.com/spf13/cobra v1.7.0 github.com/spf13/viper v1.16.0 diff --git a/go.sum b/go.sum index fac8a66..69ed046 100644 --- a/go.sum +++ b/go.sum @@ -715,8 +715,8 @@ github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= github.com/hydrogen18/memlistener v0.0.0-20200120041712-dcc25e7acd91/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= -github.com/hyperledger-labs/yui-relayer v0.4.21-0.20240117002228-5a9539bf01c5 h1:eXfBTCaJfWn7eHuKjpFTCnJ4FBpcp0Q0mC+9z10+zZg= -github.com/hyperledger-labs/yui-relayer v0.4.21-0.20240117002228-5a9539bf01c5/go.mod h1:Hdc/ERCPDhbipri45/U6+/3kDH7EttIWGdql+Rd3tZg= +github.com/hyperledger-labs/yui-relayer v0.4.21 h1:37IewA8w5Ffsp6ySOfpLjjfwlQkeK/Mxvlc830NnJmo= +github.com/hyperledger-labs/yui-relayer v0.4.21/go.mod h1:Hdc/ERCPDhbipri45/U6+/3kDH7EttIWGdql+Rd3tZg= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=