Skip to content

Commit

Permalink
chore: bump starship to 2.4.0
Browse files Browse the repository at this point in the history
Co-authored-by: 0xPatrick <[email protected]>
  • Loading branch information
turadg and 0xpatrickdev committed Jul 27, 2024
1 parent 0ceb25c commit 2968d3c
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 50 deletions.
2 changes: 1 addition & 1 deletion multichain-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"execa": "^9.2.0",
"fs-extra": "^11.2.0",
"patch-package": "^8.0.0",
"starshipjs": "2.0.0",
"starshipjs": "2.4.0",
"tsimp": "^2.0.10",
"tsx": "^4.15.6",
"typescript": "^5.3.3"
Expand Down
35 changes: 0 additions & 35 deletions multichain-testing/patches/starshipjs+2.0.0.patch

This file was deleted.

4 changes: 2 additions & 2 deletions multichain-testing/test/auto-stake-it.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const autoStakeItScenario = test.macro({
const { portId, channelId } =
agoricConns[remoteChainInfo.chainId].transferChannel;
const agoricQueryClient = makeQueryClient(
useChain('agoric').getRestEndpoint(),
await useChain('agoric').getRestEndpoint(),
);
const stakingDenom = remoteChainInfo?.stakingTokens?.[0].denom;
if (!stakingDenom) throw Error(`staking denom found for ${chainName}`);
Expand All @@ -131,7 +131,7 @@ const autoStakeItScenario = test.macro({

// 3. Find a remoteChain validator to delegate to
const remoteQueryClient = makeQueryClient(
useChain(chainName).getRestEndpoint(),
await useChain(chainName).getRestEndpoint(),
);
const { validators } = await remoteQueryClient.queryValidators();
const validatorAddress = validators[0]?.operator_address;
Expand Down
4 changes: 3 additions & 1 deletion multichain-testing/test/smart-wallet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ test('provision smart wallet', async t => {
);
t.like(walletCurrent, { liveOffers: [], offerToPublicSubscriberPaths: [] });

const agQueryClient = makeQueryClient(useChain('agoric').getRestEndpoint());
const agQueryClient = makeQueryClient(
await useChain('agoric').getRestEndpoint(),
);
const { balances } = await agQueryClient.queryBalances(wallets.user1);
t.deepEqual(
balances,
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/stake-ica.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const stakeScenario = test.macro(async (t, scenario: StakeIcaScenario) => {
);

const { creditFromFaucet, getRestEndpoint } = useChain(scenario.chain);
const queryClient = makeQueryClient(getRestEndpoint());
const queryClient = makeQueryClient(await getRestEndpoint());

t.log(`Requesting faucet funds for ${address}`);
// XXX fails intermittently until https://github.com/cosmology-tech/starship/issues/417
Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/test/tools/wallet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const walletScenario = test.macro(async (t, scenario: string) => {
t.regex(addr, new RegExp(`^${prefix}1`));
t.log('Made temp wallet:', addr);

const apiUrl = useChain(scenario).getRestEndpoint();
const apiUrl = await useChain(scenario).getRestEndpoint();
const queryClient = makeQueryClient(apiUrl);
t.log('Made query client');

Expand Down
2 changes: 1 addition & 1 deletion multichain-testing/tools/ibc-transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const createFundedWalletAndClient = async (
// TODO use telescope generated rpc client from @agoric/cosmic-proto
// https://github.com/Agoric/agoric-sdk/issues/9200
const client = await SigningStargateClient.connectWithSigner(
getRpcEndpoint(),
await getRpcEndpoint(),
wallet,
);
return { client, wallet, address };
Expand Down
8 changes: 6 additions & 2 deletions multichain-testing/tools/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const makeGetFile =
type GetFilePathFn = ReturnType<typeof makeGetFile>;

export const makeSetupRegistry = (getFile: GetFilePathFn) => {
let initialized = false;
/**
* @param {Object} opts
* @param {string} [opts.config='../config.yaml'] - The path to the starship configuration file.
Expand All @@ -20,8 +21,11 @@ export const makeSetupRegistry = (getFile: GetFilePathFn) => {
* ```
*/
const setupRegistry = async ({ config = '../config.yaml' } = {}) => {
ConfigContext.setConfigFile(getFile(config));
ConfigContext.setRegistry(await useRegistry(ConfigContext.configFile!));
if (initialized) return { useChain };
const configFile = getFile(config);
const fetcher = await useRegistry(configFile);
await ConfigContext.init(configFile, fetcher);
initialized = true;
return { useChain };
};

Expand Down
22 changes: 16 additions & 6 deletions multichain-testing/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ __metadata:
languageName: node
linkType: hard

"@noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0":
"@noble/hashes@npm:^1, @noble/hashes@npm:^1.0.0, @noble/hashes@npm:^1.2.0":
version: 1.4.0
resolution: "@noble/hashes@npm:1.4.0"
checksum: 10c0/8c3f005ee72e7b8f9cff756dfae1241485187254e3f743873e22073d63906863df5d4f13d441b7530ea614b7a093f0d889309f28b59850f33b66cb26a779a4a5
Expand Down Expand Up @@ -1319,6 +1319,15 @@ __metadata:
languageName: node
linkType: hard

"bip39@npm:^3.1.0":
version: 3.1.0
resolution: "bip39@npm:3.1.0"
dependencies:
"@noble/hashes": "npm:^1.2.0"
checksum: 10c0/68f9673a0d6a851e9635f3af8a85f2a1ecef9066c76d77e6f0d58d274b5bf22a67f429da3997e07c0d2cf153a4d7321f9273e656cac0526f667575ddee28ef71
languageName: node
linkType: hard

"blueimp-md5@npm:^2.10.0":
version: 2.19.0
resolution: "blueimp-md5@npm:2.19.0"
Expand Down Expand Up @@ -3843,7 +3852,7 @@ __metadata:
execa: "npm:^9.2.0"
fs-extra: "npm:^11.2.0"
patch-package: "npm:^8.0.0"
starshipjs: "npm:2.0.0"
starshipjs: "npm:2.4.0"
tsimp: "npm:^2.0.10"
tsx: "npm:^4.15.6"
typescript: "npm:^5.3.3"
Expand Down Expand Up @@ -4081,14 +4090,15 @@ __metadata:
languageName: node
linkType: hard

"starshipjs@npm:2.0.0":
version: 2.0.0
resolution: "starshipjs@npm:2.0.0"
"starshipjs@npm:2.4.0":
version: 2.4.0
resolution: "starshipjs@npm:2.4.0"
dependencies:
"@chain-registry/client": "npm:1.18.1"
bip39: "npm:^3.1.0"
js-yaml: "npm:^4.1.0"
node-fetch: "npm:^2.6.9"
checksum: 10c0/8091142dac71b0f0544db87f0f6d101c4fa26792adda05f629dfb3c2f6d087233ede3672fa41ada2cd92d42ad07bbb17481049c491a2adba4a3114f363299121
checksum: 10c0/e62cc540bc9e8700d3bdb61ac1261b71417f0e687c98a0e3733317d363e425c7188a205d9af70f5218e87f99195fbfb5b759b4f3f9d87823989ef6b4d90442d6
languageName: node
linkType: hard

Expand Down

0 comments on commit 2968d3c

Please sign in to comment.