Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Sep 20, 2024
1 parent 0129a3d commit 0aba365
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/sdk-ts/src/client/chain/grpc/ChainGrpcIbcApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class ChainGrpcIbcApi extends BaseGrpcConsumer {
try {
const response =
await this.retry<IbcApplicationsTransferV1Query.QueryDenomTraceResponse>(
() => this.client.DenomTrace(request, this.metadata),
() => this.client.DenomHash(request, this.metadata),
)

return response.denomTrace!
Expand Down
4 changes: 3 additions & 1 deletion proto/core/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions proto/core/stub/index.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 0aba365

Please sign in to comment.