Skip to content

Commit

Permalink
feat: remove prefix.key_prefix from IBCConnectionInfo
Browse files Browse the repository at this point in the history
- the field is both unused by any code and unpopulated ('FIXME')
- refs: #9807
  • Loading branch information
0xpatrickdev committed Sep 18, 2024
1 parent f291362 commit 78e701a
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 33 deletions.
3 changes: 0 additions & 3 deletions packages/builders/scripts/testing/append-chain-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const chainInfo = {
counterparty: {
client_id: '07-tendermint-2',
connection_id: 'connection-1',
prefix: {
key_prefix: '',
},
},
state: 3 /* IBCConnectionState.STATE_OPEN */,
transferChannel: {
Expand Down
3 changes: 0 additions & 3 deletions packages/builders/scripts/testing/tweak-chain-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ const chainInfo = {
counterparty: {
client_id: '07-tendermint-2',
connection_id: 'connection-1',
prefix: {
key_prefix: '',
},
},
state: 3 /* IBCConnectionState.STATE_OPEN */,
transferChannel: {
Expand Down
6 changes: 0 additions & 6 deletions packages/orchestration/src/chain-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ const knownChains = /** @satisfies {Record<string, ChainInfo>} */ (
counterparty: {
client_id: '07-tendermint-2',
connection_id: 'connection-1',
prefix: {
key_prefix: '',
},
},
state: 3 /* IBCConnectionState.STATE_OPEN */,
transferChannel: {
Expand All @@ -54,9 +51,6 @@ const knownChains = /** @satisfies {Record<string, ChainInfo>} */ (
counterparty: {
client_id: '07-tendermint-2',
connection_id: 'connection-1',
prefix: {
key_prefix: '',
},
},
state: 3 /* IBCConnectionState.STATE_OPEN */,
transferChannel: {
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/src/cosmos-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ export interface IBCConnectionInfo {
counterparty: {
client_id: string;
connection_id: IBCConnectionID;
prefix: {
key_prefix: string;
};
};
transferChannel: {
portId: string;
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/src/exos/chain-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ const reverseConnInfo = connInfo => {
counterparty: {
client_id: connInfo.client_id,
connection_id: connInfo.id,
prefix: {
key_prefix: 'FIXME',
},
},
state: connInfo.state,
transferChannel: {
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/src/typeGuards.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export const IBCConnectionInfoShape = M.splitRecord({
counterparty: {
client_id: M.string(),
connection_id: IBCConnectionIDShape,
prefix: {
key_prefix: M.string(),
},
},
transferChannel: IBCChannelInfoShape,
});
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/src/utils/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ function toConnectionEntry(ibcInfo, name, chainInfo) {
counterparty: {
client_id: to.client_id,
connection_id: /** @type {IBCConnectionID} */ (to.connection_id),
prefix: {
key_prefix: 'FIXME',
},
},
state: IBCConnectionState.STATE_OPEN, // XXX presumably
transferChannel: {
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/test/examples/send-anywhere.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ test('send using arbitrary chain info', async t => {
counterparty: {
client_id: '07-tendermint-2109',
connection_id: 'connection-1649',
prefix: {
key_prefix: 'aWJj',
},
},
transferChannel: {
counterPartyChannelId: 'channel-1',
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/test/exos/chain-hub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const connection = {
counterparty: {
client_id: '07-tendermint-2',
connection_id: 'connection-1',
prefix: {
key_prefix: '',
},
},
state: 3 /* IBCConnectionState.STATE_OPEN */,
transferChannel: {
Expand Down
3 changes: 0 additions & 3 deletions packages/orchestration/test/facade-durability.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ const mockChainConnection: IBCConnectionInfo = {
counterparty: {
client_id: '07-tendermint-2',
connection_id: 'connection-1',
prefix: {
key_prefix: '',
},
},
state: 3 /* IBCConnectionState.STATE_OPEN */,
transferChannel: {
Expand Down

0 comments on commit 78e701a

Please sign in to comment.