From 0aba365de5b8696860625428ed2a9936a8556978 Mon Sep 17 00:00:00 2001 From: Bojan Angjelkoski Date: Fri, 20 Sep 2024 22:14:54 +0200 Subject: [PATCH] fix: minor --- .../sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.ts | 2 +- proto/core/gen.sh | 4 +++- proto/core/stub/index.ts.template | 10 +++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.ts b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.ts index 677a332ba..71d3e9a03 100644 --- a/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.ts +++ b/packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.ts @@ -33,7 +33,7 @@ export class ChainGrpcIbcApi extends BaseGrpcConsumer { try { const response = await this.retry( - () => this.client.DenomTrace(request, this.metadata), + () => this.client.DenomHash(request, this.metadata), ) return response.denomTrace! diff --git a/proto/core/gen.sh b/proto/core/gen.sh index 16f3b1869..ab9154094 100755 --- a/proto/core/gen.sh +++ b/proto/core/gen.sh @@ -12,6 +12,7 @@ TS_PROTO_TEMPLATE=$PROTO_DIR/buf.gen.ts.yaml injective_core_branch=master cosmos_sdk_branch=v0.50.x-inj wasmd_branch=v0.50.x-inj +ibc_go_branch=v8.3.2 # remove old gen rm -rf $BUILD_DIR @@ -46,10 +47,11 @@ cp -r $BUILD_DIR/injective-core/proto/injective $PROTO_DIR ## Third Party proto definitions git clone https://github.com/InjectiveLabs/cosmos-sdk.git $BUILD_DIR/cosmos-sdk -b $cosmos_sdk_branch --depth 1 --single-branch > /dev/null git clone https://github.com/InjectiveLabs/wasmd $BUILD_DIR/wasmd -b $wasmd_branch --depth 1 --single-branch > /dev/null +git clone https://github.com/InjectiveLabs/ibc-go $BUILD_DIR/ibc-go -b $ibc_go_branch --depth 1 --single-branch > /dev/null buf export $BUILD_DIR/cosmos-sdk --output=$PROTO_DIR buf export $BUILD_DIR/wasmd --exclude-imports --output=$PROTO_DIR -buf export https://github.com/cosmos/ibc-go.git --exclude-imports --output=$PROTO_DIR +buf export $BUILD_DIR/ibc-go --exclude-imports --output=$PROTO_DIR buf export https://github.com/cosmos/gogoproto.git --exclude-imports --output=$PROTO_DIR buf export https://github.com/cometbft/cometbft.git --exclude-imports --output=$PROTO_DIR buf export https://github.com/cosmos/ics23.git --exclude-imports --output=$PROTO_DIR diff --git a/proto/core/stub/index.ts.template b/proto/core/stub/index.ts.template index 96ade5a20..173d8569c 100644 --- a/proto/core/stub/index.ts.template +++ b/proto/core/stub/index.ts.template @@ -82,12 +82,12 @@ export * as GoogleProtobufAny from "./google/protobuf/any"; export * as GoogleProtobufDescriptor from "./google/protobuf/descriptor"; export * as GoogleProtobufDuration from "./google/protobuf/duration"; export * as GoogleProtobufTimestamp from "./google/protobuf/timestamp"; -export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis"; -export * as IbcApplicationsTransferV2Packet from "./ibc/applications/transfer/v2/packet"; -export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token"; -export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2"; +// export * as IbcApplicationsTransferV2Genesis from "./ibc/applications/transfer/v2/genesis"; +// export * as IbcApplicationsTransferV2Packet from "./ibc/applications/transfer/v2/packet"; +// export * as IbcApplicationsTransferV2Token from "./ibc/applications/transfer/v2/token"; +// export * as IbcApplicationsTransferV2Query from "./ibc/applications/transfer/v2/queryv2"; +// export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace"; export * as IbcApplicationsTransferV1Query from "./ibc/applications/transfer/v1/query"; -export * as IbcApplicationsTransferV1DenomTrace from "./ibc/applications/transfer/v1/denomtrace"; export * as IbcApplicationsTransferV1Transfer from "./ibc/applications/transfer/v1/transfer"; export * as IbcApplicationsTransferV1Tx from "./ibc/applications/transfer/v1/tx"; export * as IbcCoreChannelV1Genesis from "./ibc/core/channel/v1/genesis";