diff --git a/packages/protobuf/buf_export.sh b/packages/protobuf/buf_export.sh new file mode 100644 index 0000000000..3472056942 --- /dev/null +++ b/packages/protobuf/buf_export.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -x # echo on + +rm -rf proto + +pnpm buf export buf.build/cosmos/cosmos-sdk:e7a85cef453e4b999ad9aff8714ae05f --output proto +pnpm buf export buf.build/cosmos/ibc:7ab44ae956a0488ea04e04511efa5f70 --output proto +pnpm buf export buf.build/cosmos/ics23:55085f7c710a45f58fa09947208eb70b --output proto +pnpm buf export buf.build/penumbra-zone/penumbra:312294d02bf945ffa4c1b1dd7cd91328 --output proto diff --git a/packages/protobuf/src/registry.test.ts b/packages/protobuf/src/registry.test.ts index df3bfce397..886b93e47e 100644 --- a/packages/protobuf/src/registry.test.ts +++ b/packages/protobuf/src/registry.test.ts @@ -6,6 +6,7 @@ import { DutchAuction } from '../gen/penumbra/core/component/auction/v1/auction_ import { ValidatorInfo } from '../gen/penumbra/core/component/stake/v1/stake_pb.js'; import { BalancesResponse } from '../gen/penumbra/view/v1/view_pb.js'; import { typeRegistry } from './registry.js'; +import { Ics20Withdrawal } from '../gen/penumbra/core/component/ibc/v1/ibc_pb.js'; describe('registry contents that are part of services', () => { it('includes ValidatorInfo', () => { @@ -39,4 +40,14 @@ describe('registry contents that are important for noble ibc', () => { it('includes BalancesResponse', () => { expect(typeRegistry.findMessage(BalancesResponse.typeName)).toBeTruthy(); }); + + it('includes useCompatAddress on Ics20Withdrawal', () => { + expect(typeRegistry.findMessage(Ics20Withdrawal.typeName)).toBeTruthy(); + + const ics20w = Ics20Withdrawal.fromJson({ + useCompatAddress: true, + }); + + expect(ics20w.useCompatAddress).toBe(true); + }); });