From 2753b309fdee0354956d253ad8f82e210bbc0925 Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Wed, 18 Sep 2024 14:04:45 -0400 Subject: [PATCH] chore: remove agoriclocal from chain-info --- packages/orchestration/src/chain-info.js | 49 +----------------- .../orchestration/test/chain-info.test.js | 1 - .../local-orchestration-account-kit.test.ts | 6 +-- .../test/exos/make-test-loa-kit.ts | 2 +- .../test/snapshots/chain-info.test.js.md | 11 ---- .../test/snapshots/chain-info.test.js.snap | Bin 1365 -> 1295 bytes .../orchestration/test/staking-ops.test.ts | 2 +- 7 files changed, 7 insertions(+), 64 deletions(-) diff --git a/packages/orchestration/src/chain-info.js b/packages/orchestration/src/chain-info.js index 087d2f3edba..b290bfeaa29 100644 --- a/packages/orchestration/src/chain-info.js +++ b/packages/orchestration/src/chain-info.js @@ -20,52 +20,7 @@ import { CosmosAssetInfoShape, CosmosChainInfoShape } from './typeGuards.js'; */ const knownChains = /** @satisfies {Record} */ ( - harden({ - ...fetchedChainInfo, - // FIXME does not have useful connections - // UNTIL https://github.com/Agoric/agoric-sdk/issues/9492 - agoriclocal: { - chainId: 'agoriclocal', - connections: { - 'cosmoshub-4': { - id: 'connection-1', - client_id: '07-tendermint-3', - counterparty: { - client_id: '07-tendermint-2', - connection_id: 'connection-1', - }, - state: 3 /* IBCConnectionState.STATE_OPEN */, - transferChannel: { - portId: 'transfer', - channelId: 'channel-1', - counterPartyChannelId: 'channel-1', - counterPartyPortId: 'transfer', - ordering: 1 /* Order.ORDER_UNORDERED */, - state: 3 /* IBCConnectionState.STATE_OPEN */, - version: 'ics20-1', - }, - }, - osmosislocal: { - id: 'connection-0', - client_id: '07-tendermint-2', - counterparty: { - client_id: '07-tendermint-2', - connection_id: 'connection-1', - }, - state: 3 /* IBCConnectionState.STATE_OPEN */, - transferChannel: { - portId: 'transfer', - channelId: 'channel-0', - counterPartyChannelId: 'channel-1', - counterPartyPortId: 'transfer', - ordering: 1 /* Order.ORDER_UNORDERED */, - state: 3 /* IBCConnectionState.STATE_OPEN */, - version: 'ics20-1', - }, - }, - }, - }, - }) + harden(fetchedChainInfo) ); /** @@ -73,7 +28,7 @@ const knownChains = /** @satisfies {Record} */ ( * @internal */ -// TODO(#9572): include this in registerChain +// TODO(#9966, #9967): include this in registerChain /** * Register chain assets into agoricNames * diff --git a/packages/orchestration/test/chain-info.test.js b/packages/orchestration/test/chain-info.test.js index 1c1a80c1fe0..e6700ba9982 100644 --- a/packages/orchestration/test/chain-info.test.js +++ b/packages/orchestration/test/chain-info.test.js @@ -15,7 +15,6 @@ test('chain-info', async t => { }); t.deepEqual(chainNames.keys(), [ 'agoric', - 'agoriclocal', 'celestia', 'cosmoshub', 'dydx', diff --git a/packages/orchestration/test/exos/local-orchestration-account-kit.test.ts b/packages/orchestration/test/exos/local-orchestration-account-kit.test.ts index 7fff8a234e0..1f0aec2587a 100644 --- a/packages/orchestration/test/exos/local-orchestration-account-kit.test.ts +++ b/packages/orchestration/test/exos/local-orchestration-account-kit.test.ts @@ -127,7 +127,7 @@ test('transfer', async t => { value: 'cosmos1pleab', encoding: 'bech32', }; - const sourceChannel = 'channel-1'; // observed in toBridge VLOCALCHAIN_EXECUTE_TX sourceChannel + const sourceChannel = 'channel-5'; // observed in toBridge VLOCALCHAIN_EXECUTE_TX sourceChannel, confirmed via fetched-chain-info.js // TODO rename to lastSequence /** The running tally of transfer messages that were sent over the bridge */ @@ -195,7 +195,7 @@ test('transfer', async t => { // XXX dev has to know not to startTransfer here await t.throwsAsync( VE(account).transfer({ denom: 'ubld', value: 1n }, unknownDestination), - { message: /connection not found: agoriclocal<->fakenet/ }, + { message: /connection not found: agoric-3<->fakenet/ }, 'cannot create transfer msg with unknown chainId', ); @@ -310,7 +310,7 @@ test('send', async t => { const toAddress = { value: 'agoric1EOAAccAddress', - chainId: 'agoriclocal', + chainId: 'agoric-3', encoding: 'bech32' as const, }; diff --git a/packages/orchestration/test/exos/make-test-loa-kit.ts b/packages/orchestration/test/exos/make-test-loa-kit.ts index bb0f2cefae0..82656a7841a 100644 --- a/packages/orchestration/test/exos/make-test-loa-kit.ts +++ b/packages/orchestration/test/exos/make-test-loa-kit.ts @@ -57,7 +57,7 @@ export const prepareMakeTestLOAKit = ( account: lca, address: harden({ value: address, - chainId: 'agoriclocal', + chainId: 'agoric-3', encoding: 'bech32', }), storageNode: storageNode.makeChildNode(address), diff --git a/packages/orchestration/test/snapshots/chain-info.test.js.md b/packages/orchestration/test/snapshots/chain-info.test.js.md index 05d523eba3b..9a7bab61b77 100644 --- a/packages/orchestration/test/snapshots/chain-info.test.js.md +++ b/packages/orchestration/test/snapshots/chain-info.test.js.md @@ -21,12 +21,6 @@ Generated by [AVA](https://avajs.dev). ], }, ], - [ - 'agoriclocal', - { - chainId: 'agoriclocal', - }, - ], [ 'celestia', { @@ -92,11 +86,6 @@ Generated by [AVA](https://avajs.dev). { chainId: 'noble-1', icqEnabled: false, - stakingTokens: [ - { - denom: 'ustake', - }, - ], }, ], [ diff --git a/packages/orchestration/test/snapshots/chain-info.test.js.snap b/packages/orchestration/test/snapshots/chain-info.test.js.snap index 4cea37213e3a17a1cd9f19212e16790f82144562..f75f04ba200130b86049813625af5b121692edd8 100644 GIT binary patch literal 1295 zcmV+q1@QVoRzVUDK?TBcTxn)7TJKeu&h3Y46KZ$TJ zl1H@%mLH1<00000000A}*I%dXJcq&Gu!15%i{S?}ZQZ%*?*?KJUACeYxJKjQZPNaf4b=cSkB4oSHXO^VT4t>_U)ePB2#|QtX11?Fx};4w#MAHS~aOm z%^3f8d3-7j6KVK3JvoI^_m@Z9N}%aeu}~-|{&O0BO~Zf*H=BZ|Bm7|#)|&9N2@{fA z5q`vkqb8g+VK5`O9pSfUV0i|HGq6MQ{s@0918-#Ds|=ix{8GvFfh-JW;jXNpGb2~7 zW?>`?FJ$3e$uE!aV_Enn3n>d0T7q8@;rCdu+JeA>-I8A!;cr`Tz=H2BNah5;I>P7Y zU{MYp%7HKWP=xQy!JZr(%E7miFX`lcs^!_?B%JzMR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Fv(Y*=?P!KG zUOm4sRCd>{@P-_>rqZ-=(wbMuD35n~m5lOudS}bW8!s(2w$k>_j~3X|USMaiUiS_c z%C779y>p{wE@>|_9<2URv#RZ7B}Vsx1H>2|;%GxkNpbI6MV#73nCQCHO zh6Ms$CeaNxED~tCL`!X0DbN)X-D86z(3KK-Hq-^`ljtEE9uw$lc>`(Oq@T6b^?Iz| zEBYg%H@cepS)#vF^czM0is(NU{qLfm(B0f$C;DRd=Ybqp=0o#ZrCST zD#X6+h94x$hM1m%L{6|=h|SJHpJWq5Y-JAalI)@o+nj?(C7TjrZ|2|~$)<+b7dbdA z*^ChTCkNyOn-yYH^DtAgIU%+r56dN+7h?D2;Q`6637tRXiO?)Lt~Y%8^3-1`MRMv0 zIIc761>YNv0t=0sa)eK8T$Uq1*RQ$}V7wlz=uV`M42~C(U~n*q1Z%~rAN3)tXFt@3 XKGLs7`5&6~U<>>o!39e4&J+Lu(9@V! diff --git a/packages/orchestration/test/staking-ops.test.ts b/packages/orchestration/test/staking-ops.test.ts index d70287b1874..4b9dc90ff53 100644 --- a/packages/orchestration/test/staking-ops.test.ts +++ b/packages/orchestration/test/staking-ops.test.ts @@ -71,7 +71,7 @@ const configStaking = { validator: { value: 'agoric1valoper234', encoding: 'bech32', - chainId: 'agoriclocal', + chainId: 'agoric-3', }, delegations: { agoric1valoper234: { denom: 'uatom', amount: '200' },