Skip to content

Commit

Permalink
Merge pull request #8007 from Agoric/mfig-fix-endo-types
Browse files Browse the repository at this point in the history
refactor: adapt types for newer `@endo/eventual-send`
  • Loading branch information
michaelfig authored Jul 6, 2023
2 parents c50ca19 + 426d613 commit e90f87b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vats/src/vat-bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ const prepareBankManager = (
/**
* @param {string} denom
* @param {AssetIssuerKit} feeKit
* @returns {import('@endo/far').EOnly<DepositFacet>}
* @returns {ERef<import('@endo/far').EOnly<DepositFacet>>}
*/
getRewardDistributorDepositFacet(denom, feeKit) {
const { bankChannel } = this.state;
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/test/bootstrapTests/supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const trace = makeTracer('BSTSupport', false);

/** @typedef {Awaited<ReturnType<import('@agoric/vats/src/core/lib-boot').makeBootstrap>>} BootstrapRootObject */

/** @type {Record<keyof BootstrapRootObject, keyof BootstrapRootObject>} */
/** @type {{ [P in keyof BootstrapRootObject]: P }} */
export const bootstrapMethods = {
bootstrap: 'bootstrap',
consumeItem: 'consumeItem',
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet/api/src/lib-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ export function makeWalletRoot({
// eslint-disable-next-line no-use-before-define
p = makeEmptyPurse(petnameForBrand, petnameForBrand, true);
} else {
p = Promise.resolve();
p = Promise.resolve(undefined);
}
return E.when(p, _ => petnameForBrand);
};
Expand Down
21 changes: 19 additions & 2 deletions scripts/get-packed-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# the destination repository.
set -xueo pipefail

cache_bust=true
case $1 in
--no-cache-bust) cache_bust=false; shift ;;
esac

WORKDIR=${1:-.}
cd -- "$WORKDIR" 1>&2

Expand All @@ -27,12 +32,24 @@ yarn --silent workspaces info | jq -r '.[].location' | while read -r dir; do
stem=$(echo "$name" | sed -e 's!^@!!; s!/!-!g;')
file="$(pwd)/${stem}-v${version}.tgz"

# Clean up.
rm -f "${stem}"-v*.tgz

# Create the tarball.
yarn pack 1>&2

if $cache_bust; then
# Bust the cache!
sum=$(sha1sum "$file" | sed -e 's/ .*//')
dst="$(pwd)/${stem}-v${version}-${sum}.tgz"
mv "$file" "$dst"
else
dst=$file
fi

# Write out the version entry.
jq -s --arg name "$name" --arg file "$file" \
'{ key: $name, value: ("file:" + $file) }' < /dev/null
jq -n --arg name "$name" --arg file "$dst" \
'{ key: $name, value: ("file:" + $file) }'

popd 1>&2
##################
Expand Down

0 comments on commit e90f87b

Please sign in to comment.