-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: make provisionBridgeHandler durable
Make sure the handler returned from E(creatorFacet).makeHandler() is durable and provisionPool is upgradable multiple times. Refs: #10425 Refs: #10564 fix: remove unnecessary comment chore: get rid of ephemera, address change requests Refs: #10395 Refs: #10425 fix: drop trace chore: address change requests fix: rebase fixes fix: yarn.lock fix fix: bring back missing upgrade-paRegistry proposal
- Loading branch information
1 parent
b8800c9
commit 7346df1
Showing
19 changed files
with
414 additions
and
471 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
replaceFeeDistributor/ | ||
addUsdLemons/ | ||
upgradeProvisionPool/ |
1 change: 1 addition & 0 deletions
1
a3p-integration/proposals/p:upgrade-19/depositUSD-LEMONS/deposit-usd-lemons.js
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
7 changes: 7 additions & 0 deletions
7
a3p-integration/proposals/p:upgrade-19/nullUpgradePP/null-upgrade-pp-permit.json
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,7 @@ | ||
{ | ||
"consume": { | ||
"provisionPoolStartResult": true, | ||
"instancePrivateArgs": true, | ||
"economicCommitteeCreatorFacet": true | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
a3p-integration/proposals/p:upgrade-19/nullUpgradePP/null-upgrade-pp.js
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,38 @@ | ||
// @ts-nocheck | ||
/* eslint-disable no-undef */ | ||
const nullUpgradePP = async powers => { | ||
const { | ||
consume: { | ||
provisionPoolStartResult: provisionPoolStartResultP, | ||
instancePrivateArgs: instancePrivateArgsP, | ||
economicCommitteeCreatorFacet, | ||
}, | ||
} = powers; | ||
|
||
console.log('awaiting powers'); | ||
const { adminFacet, instance } = await provisionPoolStartResultP; | ||
const instancePrivateArgs = await instancePrivateArgsP; | ||
|
||
console.log('get privateArgs'); | ||
const privateArgs = instancePrivateArgs.get(instance); | ||
const [poolBank, poserInvitation] = await Promise.all([ | ||
privateArgs.poolBank, | ||
E(economicCommitteeCreatorFacet).getPoserInvitation(), | ||
]); | ||
|
||
console.log('DEBUG', { | ||
adminFacet, | ||
instance, | ||
privateArgs, | ||
poserInvitation, | ||
}); | ||
|
||
await E(adminFacet).restartContract({ | ||
...privateArgs, | ||
poolBank, | ||
initialPoserInvitation: poserInvitation, | ||
}); | ||
console.log('Done'); | ||
}; | ||
|
||
nullUpgradePP; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.