From afcf0379acd06e7d85de1bfea63d8e9203d20e31 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Mon, 8 Aug 2022 10:55:12 -0700 Subject: [PATCH] factor: internal renaming of RUN --- packages/inter-protocol/docs/governance-params.md | 4 ++-- packages/inter-protocol/scripts/init-core.js | 4 ++-- packages/inter-protocol/src/proposals/core-proposal.js | 6 +++--- packages/inter-protocol/src/stakeFactory/stakeFactory.js | 2 +- .../inter-protocol/src/stakeFactory/stakeFactoryKit.js | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/inter-protocol/docs/governance-params.md b/packages/inter-protocol/docs/governance-params.md index 644a438898d..a43cbceb971 100644 --- a/packages/inter-protocol/docs/governance-params.md +++ b/packages/inter-protocol/docs/governance-params.md @@ -48,7 +48,7 @@ In `packages/inter-protocol/src/reserve/collateralReserve.js`: The Inter Protocol Whitepaper v0.8 does not describe the governance parameters for this contract. -### RUNStake +### stakeFactory In `packages/inter-protocol/src/stakeFactory/stakeFactory.js`: @@ -60,7 +60,7 @@ In `packages/inter-protocol/src/stakeFactory/stakeFactory.js`: | MintingRatio | ParamTypes.RATIO | Yes | From Inter Protocol Whitepaper, v0.8: ->Governance through the BLDer DAO determines the parameters for RUNstake. These include the total debt limit, the minting limit per account, and minting fees and interest rates. +>Governance through the BLDer DAO determines the parameters for stakeFactory. These include the total debt limit, the minting limit per account, and minting fees and interest rates. ### Parity Stability Mechanism (PSM) diff --git a/packages/inter-protocol/scripts/init-core.js b/packages/inter-protocol/scripts/init-core.js index fe8102b5028..f4660093535 100644 --- a/packages/inter-protocol/scripts/init-core.js +++ b/packages/inter-protocol/scripts/init-core.js @@ -4,7 +4,7 @@ import { makeHelpers } from '@agoric/deploy-script-support'; import { objectMap } from '@agoric/vat-data'; import { - getManifestForRunProtocol, + getManifestForInterProtocol, getManifestForEconCommittee, getManifestForMain, } from '../src/proposals/core-proposal.js'; @@ -181,7 +181,7 @@ export const defaultProposalBuilder = async ( return harden({ sourceSpec: '../src/proposals/core-proposal.js', getManifestCall: [ - getManifestForRunProtocol.name, + getManifestForInterProtocol.name, { ROLE, vaultFactoryControllerAddress, diff --git a/packages/inter-protocol/src/proposals/core-proposal.js b/packages/inter-protocol/src/proposals/core-proposal.js index df2f1c12b74..1d943036f7e 100644 --- a/packages/inter-protocol/src/proposals/core-proposal.js +++ b/packages/inter-protocol/src/proposals/core-proposal.js @@ -184,7 +184,7 @@ const REWARD_MANIFEST = harden({ }, }); -const RUN_STAKE_MANIFEST = harden({ +const STAKE_FACTORY_MANIFEST = harden({ [econBehaviors.startLienBridge.name]: { consume: { bridgeManager: true }, produce: { lienBridge: true }, @@ -296,13 +296,13 @@ export const getManifestForMain = ( const roleToManifest = harden({ chain: { ...REWARD_MANIFEST, - ...RUN_STAKE_MANIFEST, + ...STAKE_FACTORY_MANIFEST, }, 'sim-chain': SIM_CHAIN_MANIFEST, client: {}, }); -export const getManifestForRunProtocol = ( +export const getManifestForInterProtocol = ( { restoreRef }, { ROLE = 'chain', diff --git a/packages/inter-protocol/src/stakeFactory/stakeFactory.js b/packages/inter-protocol/src/stakeFactory/stakeFactory.js index 08daa0bdafd..c9b3d939690 100644 --- a/packages/inter-protocol/src/stakeFactory/stakeFactory.js +++ b/packages/inter-protocol/src/stakeFactory/stakeFactory.js @@ -209,7 +209,7 @@ export const start = async ( const publicFacet = augmentPublicFacet( Far('stakeFactory public', { makeLoanInvitation: () => - zcf.makeInvitation(offerHandler, 'make RUNstake'), + zcf.makeInvitation(offerHandler, 'make stakeFactory'), makeReturnAttInvitation: att.publicFacet.makeReturnAttInvitation, }), ); diff --git a/packages/inter-protocol/src/stakeFactory/stakeFactoryKit.js b/packages/inter-protocol/src/stakeFactory/stakeFactoryKit.js index 21c3cd26390..399f2090578 100644 --- a/packages/inter-protocol/src/stakeFactory/stakeFactoryKit.js +++ b/packages/inter-protocol/src/stakeFactory/stakeFactoryKit.js @@ -56,7 +56,7 @@ const calculateFee = (feeCoeff, currentDebt, giveAmount, wantAmount) => { */ /** - * Make RUNstake kit state + * Make stakeFactory kit state * * @param {ZCF} zcf * @param {ZCFSeat} startSeat @@ -358,7 +358,7 @@ const helperBehavior = { helper.assertVaultHoldsNoMinted(); seat.exit(); - return 'Your RUNstake is closed; thank you for your business.'; + return 'Your stakeFactory is closed; thank you for your business.'; }, }; @@ -418,7 +418,7 @@ const finish = ({ facets }) => { }; /** - * Make RUNstake kit, subject to stakeFactory terms. + * Make stakeFactory kit, subject to stakeFactory terms. * * @param {ZCF} zcf * @param {ZCFSeat} startSeat @@ -426,7 +426,7 @@ const finish = ({ facets }) => { * @throws {Error} if startSeat proposal is not consistent with governance parameters in manager */ export const makeStakeFactoryKit = defineKindMulti( - 'RUNStakeKit', + 'stakeFactoryKit', initState, behavior, { finish },