Skip to content

Commit

Permalink
confirm presence of new field
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime committed Aug 2, 2024
1 parent 3a62d28 commit 10f882f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/protobuf/buf_export.sh
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions packages/protobuf/src/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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);
});
});

0 comments on commit 10f882f

Please sign in to comment.