-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ibc): clean up channel closure process (#9868)
refs: #9857 ## Description Add a `finalizer` Exo to the network implementation. The finalizer contains logic to send messages expected upon disposing of a Connection or InboundAttempt. ### Security Considerations More systematic closing of connection objects. ### Scaling Considerations n/a ### Documentation Considerations Should be backwards compatible. ### Testing Considerations PR should include an upgrade test so we know it's safe to get into master ### Upgrade Considerations It is necessary to upgrade the network and IBC vats if they have already been deployed (as they were in `agoric-upgrade-16`).
- Loading branch information
Showing
20 changed files
with
354 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ add-LEMONS/ | |
add-OLIVES/ | ||
upgrade-bank/ | ||
upgrade-provisionPool/ | ||
|
||
upgrade-orch-core/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */ | ||
export const defaultProposalBuilder = async ({ publishRef, install }) => | ||
harden({ | ||
sourceSpec: '@agoric/vats/src/proposals/upgrade-orch-core-proposal.js', | ||
getManifestCall: [ | ||
'getManifestForUpgradingOrchCore', | ||
{ | ||
bundleRefs: { | ||
ibc: publishRef(install('@agoric/vats/src/vat-ibc.js')), | ||
network: publishRef(install('@agoric/vats/src/vat-network.js')), | ||
localchain: publishRef(install('@agoric/vats/src/vat-localchain.js')), | ||
transfer: publishRef(install('@agoric/vats/src/vat-transfer.js')), | ||
}, | ||
}, | ||
], | ||
}); | ||
|
||
export default async (homeP, endowments) => { | ||
const { writeCoreProposal } = await makeHelpers(homeP, endowments); | ||
await writeCoreProposal('upgrade-network', defaultProposalBuilder); | ||
}; |
Oops, something went wrong.