Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@
"coverage-cleanup": "find artifacts/ts -name \\*.js* -type f -delete && find test -name \\*.js* -type f -delete && find types -name \\*.js* -type f -delete && find utils -name \\*.js* -type f -delete",
"coverage-continuous": "./node_modules/.bin/solidity-coverage",
"coverage-setup": "yarn transpile && cp -r transpiled/artifacts/ts/* artifacts/ts/. && cp -r transpiled/test/contracts/* test/. && cp -r transpiled/types/* types/. && cp -r transpiled/utils/* utils/.",
"delete-dev-addresses": "jq 'del(.development)' ./deployments/outputs.json > outputs.tmp && mv outputs.tmp ./deployments/outputs.json && bash scripts/generate_outputs.sh && git add .",
"deploy": "yarn ts-node deployments/deploy.ts && bash scripts/generate_outputs.sh",
"deploy-continuous": "yarn ts-node deployments/deploy.ts && bash scripts/generate_outputs.sh",
"deploy-compile": "yarn deploy-setup && yarn deploy",
"deploy-development": "bash scripts/deploy_development.sh",
"deploy-setup": "yarn compile && yarn generate-typings && yarn transpile",
"delete-dev-addresses": "jq 'del(.development)' ./deployments/outputs.json > outputs.tmp && mv outputs.tmp ./deployments/outputs.json && bash scripts/generate_outputs.sh && git add .",
"dist": "yarn setup && bash scripts/prepare_dist.sh",
"generate-typings": "set-abi-gen --abis './build/contracts/*.json' --out './types/generated' --template './types/contract_templates/contract.mustache' --partials './types/contract_templates/partials/*.mustache'",
"lint": "yarn run lint-sol && yarn run lint-ts",
Expand All @@ -43,7 +39,6 @@
"test": "yarn prepare-test && yarn truffle-test-contracts",
"test-nocompile": "yarn transpile && yarn truffle-test-contracts",
"test-continuous": "yarn deploy-development && yarn test",
"test-deployment": "yarn ts-mocha deployments/**/*.spec.ts",
"test-scenarios": "yarn prepare-test && yarn truffle-test-scenarios",
"transpile": "tsc",
"truffle-test-scenarios": "truffle test `find transpiled/test/scenarios -name '*.spec.js'`",
Expand Down
34 changes: 31 additions & 3 deletions utils/snapshotUtils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
import { DeployedAddresses } from 'set-protocol-contracts';
const snapshotNetwork = '50-production-snapshot';
const snapshotAddresses = {
'CommonValidationsLibrary': '0x2C530e4Ecc573F11bd72CF5Fdf580d134d25f15F',
'ERC20Wrapper': '0x72D5A2213bfE46dF9FbDa08E22f536aC6Ca8907e',
'CoreIssuanceLibrary': '0x2eBb94Cc79D7D0F1195300aAf191d118F53292a8',
'ExchangeIssuanceLibrary': '0x5315e44798395d4a952530d131249fE00f554565',
'RebalancingLibrary': '0xDFF540fE764855D3175DcfAe9d91AE8aEE5C6D6F',
'SetTokenLibrary': '0xC1bE2c0bb387aa13d5019a9c518E8BC93cb53360',
'ProposeLibrary': '0xda54ecF5A234D6CD85Ce93A955860834aCA75878',
'SettleRebalanceLibrary': '0x33DeF1aA867Be09809F3a01CE41d5eC1888846c9',
'StartRebalanceLibrary': '0x10A736A7b223f1FE1050264249d1aBb975741E75',
'PlaceBidLibrary': '0xb125995F5a4766C451cD8C34C4F5CAC89b724571',
'FailAuctionLibrary': '0xc7124963Ab16C33E5bF421D4c0090116622B3074',
'WBTC': '0xC6B0D3C45A6b5092808196cB00dF5C357d55E1d5',
'WETH': '0x7209185959D7227FB77274e1e88151D7C4c368D3',
'DAI': '0x3f16cA81691dAB9184cb4606C361D73c4FD2510a',
'WBTC_MEDIANIZER': '0x99356167eDba8FBdC36959E3F5D0C43d1BA9c6DB',
'WETH_MEDIANIZER': '0x45B3A72221E571017C0f0ec42189E11d149D0ACE',
'Vault': '0xdD66C23e07b4D6925b6089b5Fe6fc9E62941aFE8',
'TransferProxy': '0x4609e0ED27A8BAAc57b753D36a5D2971915588f9',
'Core': '0x4ef5b1E3dA5573466Fb1724D2Fca95290119B664',
'SetTokenFactory': '0xd7e3593d3d8A22480e2136EaB9497286D87C0231',
'WhiteList': '0x2579D2B186BbA16999016dB077b4874A7520f92e',
'RebalancingSetTokenFactory': '0x404C55a936f3006B13B020efAaf5771A600Ec04d',
'ExchangeIssuanceModule': '0xfD946D47d3dB1e06126d16281Fb3E222A1bA8179',
'RebalanceAuctionModule': '0x96EccEa4E124322a6aA0a004da1b91d9a3024C73',
'KyberNetworkWrapper': '0xDDb2B738682AD218eD87CF6f3a466798644e5d8D',
'ZeroExExchangeWrapper': '0xd2aa8d362b1CaA68553642831b86Abb3D24B4579',
'LinearAuctionPriceCurve': '0x434f1EB003B78c0EAbe034313F1aFf47920e0860',
'RebalancingSetExchangeIssuanceModule': '0x46c6A737C75cE3a58c6b2De14970E8841c72DcEF',
};

export const getDeployedAddress = contractName => {
return DeployedAddresses[snapshotNetwork]['addresses'][contractName];
return snapshotAddresses[contractName];
};