Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #233 from makerdao/update-migration-plugin
Browse files Browse the repository at this point in the history
update migrations plugin with changes from migrate-dashboard
  • Loading branch information
levity authored May 26, 2020
2 parents 155b832 + 726c5c0 commit a624aca
Show file tree
Hide file tree
Showing 30 changed files with 623 additions and 209 deletions.
14 changes: 12 additions & 2 deletions packages/dai-plugin-migrations/contracts/abiMap.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,20 @@
"CDP_MANAGER_1": "DssCdpManager",
"MCD_DAI_1": "Dai",
"MCD_POT_1": "Pot",
"MCD_END": "End",
"MCD_VAT": "Vat",
"GET_CDPS": "GetCdps",
"CDP_MANAGER": "DssCdpManager",
"MCD_DAI": "Dai",
"MCD_POT": "Pot",
"REDEEMER": "Redeemer",
"MIGRATION": "ScdMcdMigration",
"MIGRATION_PROXY_ACTIONS": "MigrationProxyActions",
"OLD_CHIEF": "DSChief",
"OLD_VOTE_PROXY_FACTORY": "VoteProxyFactory",
"OLD_MKR": "DSToken"
}
"OLD_MKR": "DSToken",
"MCD_JOIN_*": "GemJoin",
"PROXY_ACTIONS_END": "DssProxyActionsEnd",
"SAI_CAGEFREE": "CageFree",
"MCD_ESM": "ESM"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[{"internalType":"address","name":"_tap","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FreeCash","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"freeCash","outputs":[{"internalType":"uint256","name":"cashoutBalance","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sai","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tap","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
1 change: 1 addition & 0 deletions packages/dai-plugin-migrations/contracts/abis/DSValue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"wut","type":"bytes32"}],"name":"poke","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"read","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"peek","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"void","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":true,"inputs":[{"indexed":true,"name":"sig","type":"bytes4"},{"indexed":true,"name":"guy","type":"address"},{"indexed":true,"name":"foo","type":"bytes32"},{"indexed":true,"name":"bar","type":"bytes32"},{"indexed":false,"name":"wad","type":"uint256"},{"indexed":false,"name":"fax","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"}]
1 change: 1 addition & 0 deletions packages/dai-plugin-migrations/contracts/abis/DaiJoin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"address","name":"dai_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"usr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":false,"inputs":[],"name":"cage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dai","outputs":[{"internalType":"contract DSTokenLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"constant":false,"inputs":[{"internalType":"address","name":"ethJoin","type":"address"},{"internalType":"address","name":"end","type":"address"},{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"cashETH","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"gemJoin","type":"address"},{"internalType":"address","name":"end","type":"address"},{"internalType":"bytes32","name":"ilk","type":"bytes32"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"cashGem","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"apt","type":"address"},{"internalType":"address","name":"urn","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"daiJoin_join","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"ethJoin","type":"address"},{"internalType":"address","name":"end","type":"address"},{"internalType":"uint256","name":"cdp","type":"uint256"}],"name":"freeETH","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"manager","type":"address"},{"internalType":"address","name":"gemJoin","type":"address"},{"internalType":"address","name":"end","type":"address"},{"internalType":"uint256","name":"cdp","type":"uint256"}],"name":"freeGem","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"daiJoin","type":"address"},{"internalType":"address","name":"end","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"pack","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
1 change: 1 addition & 0 deletions packages/dai-plugin-migrations/contracts/abis/ESM.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[{"internalType":"address","name":"gem_","type":"address"},{"internalType":"address","name":"end_","type":"address"},{"internalType":"address","name":"pit_","type":"address"},{"internalType":"uint256","name":"min_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"usr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":true,"inputs":[],"name":"Sum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"end","outputs":[{"internalType":"contract EndLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"fire","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"fired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pit","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
1 change: 1 addition & 0 deletions packages/dai-plugin-migrations/contracts/abis/GemJoin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[{"internalType":"address","name":"vat_","type":"address"},{"internalType":"bytes32","name":"ilk_","type":"bytes32"},{"internalType":"address","name":"gem_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":true,"inputs":[{"indexed":true,"internalType":"bytes4","name":"sig","type":"bytes4"},{"indexed":true,"internalType":"address","name":"usr","type":"address"},{"indexed":true,"internalType":"bytes32","name":"arg1","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"arg2","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"LogNote","type":"event"},{"constant":false,"inputs":[],"name":"cage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gem","outputs":[{"internalType":"contract GemLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ilk","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"join","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"live","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"vat","outputs":[{"internalType":"contract VatLike","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]
24 changes: 15 additions & 9 deletions packages/dai-plugin-migrations/contracts/addresses/kovan.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"TUB": "0xa71937147b55Deb8a530C7229C442Fd3F31b7db2",
"GET_CDPS_1": "0x592301a23d37c591C5856f28726AF820AF8e7014",
"CDP_MANAGER_1": "0x1476483dD8C35F25e568113C5f70249D3976ba21",
"MCD_END_1": "0x24728AcF2E2C403F5d2db4Df6834B8998e56aA5F",
"MCD_VAT_1": "0xbA987bDB501d131f766fEe8180Da5d81b34b69d9",
"MCD_DAI_1": "0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa",
"MCD_POT_1": "0xEA190DBDC7adF265260ec4dA6e9675Fd4f5A78bb",
"GET_CDPS_1": "0x592301a23d37c591c5856f28726af820af8e7014",
"CDP_MANAGER_1": "0x1476483dd8c35f25e568113c5f70249d3976ba21",
"MCD_END_1": "0x24728acf2e2c403f5d2db4df6834b8998e56aa5f",
"MCD_VAT_1": "0xba987bdb501d131f766fee8180da5d81b34b69d9",
"MCD_DAI_1": "0x4f96fe3b7a6cf9725f59d353f723c1bdb64ca6aa",
"MCD_POT_1": "0xea190dbdc7adf265260ec4da6e9675fd4f5a78bb",
"REDEEMER": "0x2c0f31271673cc29927be725104642aad65a253e",
"OLD_MKR": "0x4bb514a7f83fbb13c2b41448208e89fabbcfe2fb",
"MIGRATION": "0x411B2Faa662C8e3E5cF8f01dFdae0aeE482ca7b0",
"MIGRATION_PROXY_ACTIONS": "0xF56765d255463139d3aff1613705a5520764Ab93",
"MIGRATION": "0x411b2faa662c8e3e5cf8f01dfdae0aee482ca7b0",
"MIGRATION_PROXY_ACTIONS": "0xf56765d255463139d3aff1613705a5520764ab93",
"OLD_CHIEF": "0xbbffc76e94b34f72d96d054b31f6424249c1337d",
"OLD_VOTE_PROXY_FACTORY": null
"OLD_VOTE_PROXY_FACTORY": "0x3E08741A68c2d964d172793cD0Ad14292F658cd8",
"PROXY_ACTIONS_END": "0x7c3f28f174F2b0539C202a5307Ff48efa61De982",
"MCD_JOIN_ETH_A": "0x775787933e92b709f2a3c70aa87999696e74a9f8",
"MCD_JOIN_DAI": "0x5aa71a3ae1c0bd6ac27a1f28e1415fffb6f15b8c",
"MCD_JOIN_BAT_A": "0x2a4C485B1B8dFb46acCfbeCaF75b6188A59dBd0a",
"MCD_JOIN_USDC_A": "0x4c514656E7dB7B859E994322D2b511d99105C1Eb",
"SAI_CAGEFREE": "0xF3095A1822cA8fb3D0955595fA3888b68C4B8124"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
"MCD_DAI_1": "0x6b175474e89094c44da98b954eedeac495271d0f",
"MCD_POT_1": "0x197e90f9fad81970ba7976f33cbd77088e5d7cf7",
"OLD_CHIEF": "0x8e2a84d6ade1e7fffee039a35ef5f19f13057152",
"OLD_VOTE_PROXY_FACTORY": "0xa63E145309cadaa6A903a19993868Ef7E85058BE"
"OLD_VOTE_PROXY_FACTORY": "0xa63E145309cadaa6A903a19993868Ef7E85058BE",
"PROXY_ACTIONS_END": "0x7AfF9FC9faD225e3c88cDA06BC56d8Aca774bC57",
"MCD_JOIN_ETH_A": "0x2f0b23f53734252bda2277357e97e1517d6b042a",
"MCD_JOIN_DAI": "0x9759a6ac90977b93b58547b4a71c78317f391a28",
"MCD_JOIN_BAT_A": "0x3D0B1912B66114d4096F48A8CEe3A56C231772cA",
"MCD_JOIN_USDC_A": "0xA191e578a6736167326d05c119CE0c90849E84B7",
"SAI_CAGEFREE": "0x9fdc15106da755f9FfD5b0BA9854Cfb89602E0fd"
}
10 changes: 9 additions & 1 deletion packages/dai-plugin-migrations/contracts/addresses/testnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"TUB": "0xE82CE3D6Bf40F2F9414C8d01A35E3d9eb16a1761",
"TAP": "0x6896659267c3c9fd055d764327199a98e571e00d",
"GET_CDPS_1": "0x883c76966eA1D1AFEC54a1c20f84A57a287BB021",
"CDP_MANAGER_1": "0xb3dc8De316349D8cE5168FE33C2E75c4f0cd0FFE",
"MCD_END_1": "0xb002A319887185e56d787A5c90900e13834a85E3",
Expand All @@ -11,5 +12,12 @@
"OLD_CHIEF": "0x1d24598fa8B77811E68243A2746CC553E68ca03B",
"OLD_VOTE_PROXY_FACTORY": "0xa9D33Ce18803b0742460ffb1b33B6c40f95178BC",
"MIGRATION": "0x2978B18F7c68B2957e701FC6D82C8De5B55833f2",
"MIGRATION_PROXY_ACTIONS": "0x19BDC4b950285a608E50F3b5E7DF154FacBda861"
"MIGRATION_PROXY_ACTIONS": "0x19BDC4b950285a608E50F3b5E7DF154FacBda861",
"PROXY_ACTIONS_END": "0x5E6085775Cd0B41fC70d1A6B48a0451bf7aCa801",
"MCD_JOIN_ETH_A": "0xF7Cbc73FE7d30c68AD7b64D293D4F52F76027261",
"MCD_JOIN_DAI": "0x55320248dC50Ef6dABc88ECbc294Fd5e2e1f4eC6",
"MCD_JOIN_BAT_A": "0xEB9d9336b4A89260bC4B94ee6a34e2faF46B0CA5",
"MCD_JOIN_USDC_A": "0x77d6250c22eCBA016a4F6D1a917BF5b2ED0704C5",
"SAI_CAGEFREE": "0xb0ae8c0856259C6fe000F8e2C14507E5FC167D48",
"MCD_ESM": "0x2125C30dA5DcA0819aEC5e4cdbF58Bfe91918e43"
}
2 changes: 1 addition & 1 deletion packages/dai-plugin-migrations/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@makerdao/dai-plugin-migrations",
"description": "Plugin to add migrations to dai.js",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",
"main": "dist/index.js",
"browser": "umd/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CONTRACTS=$CWD/../contracts
SOURCE=${1:-$CWD/../../../node_modules/@makerdao/testchain}

# Relevant contracts from SCD:
for CONTRACT in "TUB","SaiTub" "REDEEMER","Redeemer" "OLD_MKR","DSToken" "OLD_CHIEF","DSChief"
for CONTRACT in "TUB","SaiTub" "REDEEMER","Redeemer" "OLD_MKR","DSToken" "OLD_CHIEF","DSChief" "SAI_CAGEFREE","CageFree" "OLD_VOTE_PROXY_FACTORY","VoteProxyFactory"
do
IFS=',' read NAME ABI <<< "${CONTRACT}"
ADDRESS=`jq ".$NAME" "$SOURCE/out/addresses.json"`
Expand All @@ -17,6 +17,15 @@ do
done

# Relevant contracts from MCD:
for CONTRACT in "MCD_JOIN_ETH_A","GemJoin" "MCD_JOIN_DAI","DaiJoin" "MCD_JOIN_BAT_A","GemJoin" "MIGRATION","ScdMcdMigration" "MIGRATION_PROXY_ACTIONS","MigrationProxyActions" "PROXY_ACTIONS_END","DssProxyActionsEnd" "MCD_JOIN_USDC_A","GemJoin" "MCD_ESM","ESM"
do
IFS=',' read NAME ABI <<< "${CONTRACT}"
ADDRESS=`jq ".$NAME" "$SOURCE/out/addresses-mcd.json"`
jq ".$NAME=$ADDRESS" $CONTRACTS/addresses/testnet.json > testnet.tmp && mv testnet.tmp $CONTRACTS/addresses/testnet.json
cp $SOURCE/out/mcd/$ABI.abi $CONTRACTS/abis/$ABI.json
done

# Contracts (from MCD) with numbered versions:
for CONTRACT in "MCD_END","END" "MCD_VAT","VAT" "GET_CDPS","GetCdps" "CDP_MANAGER","DssCdpManager" "MCD_DAI","Dai" "MCD_POT","Pot"
do
IFS=',' read NAME ABI <<< "${CONTRACT}"
Expand Down
12 changes: 10 additions & 2 deletions packages/dai-plugin-migrations/src/MigrationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import SaiToDai from './migrations/SaiToDai';
import MkrRedeemer from './migrations/MkrRedeemer';
import DaiToSai from './migrations/DaiToSai';
import ChiefMigrate from './migrations/ChiefMigrate';
import RedeemSai from './migrations/RedeemSai';
import RedeemCollateral from './migrations/RedeemCollateral';

const {
SINGLE_TO_MULTI_CDP,
SAI_TO_DAI,
Expand All @@ -24,7 +27,9 @@ const migrations = {
[Migrations.GLOBAL_SETTLEMENT_SAVINGS_DAI]: GlobalSettlementSavingsDai,
[Migrations.GLOBAL_SETTLEMENT_COLLATERAL_CLAIMS]: GlobalSettlementCollateralClaims,
[Migrations.GLOBAL_SETTLEMENT_DAI_REDEEMER]: GlobalSettlementDaiRedeemer,
[Migrations.MKR_REDEEMER]: MkrRedeemer
[Migrations.MKR_REDEEMER]: MkrRedeemer,
[Migrations.REDEEM_SAI]: RedeemSai,
[Migrations.REDEEM_COLLATERAL]: RedeemCollateral
};

export default class MigrationService extends PublicService {
Expand Down Expand Up @@ -58,7 +63,10 @@ export default class MigrationService extends PublicService {
[SAI_TO_DAI]: await this.getMigration(SAI_TO_DAI).check(),
[DAI_TO_SAI]: await this.getMigration(DAI_TO_SAI).check(),
[CHIEF_MIGRATE]: await this.getMigration(CHIEF_MIGRATE).check(),
[MKR_REDEEMER]: await this.getMigration(MKR_REDEEMER).check()
[MKR_REDEEMER]: await this.getMigration(MKR_REDEEMER).check(),
[Migrations.GLOBAL_SETTLEMENT_COLLATERAL_CLAIMS]: await this.getMigration(
Migrations.GLOBAL_SETTLEMENT_COLLATERAL_CLAIMS
).check()
};
}

Expand Down
Loading

0 comments on commit a624aca

Please sign in to comment.