Skip to content

Instantly share code, notes, and snippets.

@brianmcmichael
Last active November 11, 2019 23:05
Show Gist options
  • Save brianmcmichael/d85140e53c1b712522f693ac1ea2fd45 to your computer and use it in GitHub Desktop.
Save brianmcmichael/d85140e53c1b712522f693ac1ea2fd45 to your computer and use it in GitHub Desktop.
11/11/19 Notes for Etherscan Verification of DSS contracts on Kovan

0.2.16 Manual verification notes

Unless otherwise noted, compiler optimizations are disabled.

Build Notes

Using a draft version of Multicall at https://github.com/icetan/multicall-flat

  • Enter nix shell nix-shell
  • Add repo dapp2nix add https://github.com/dapptools/ds-pause
  • Build: nix-build
  • Flattened sources are in ./result/dapp/ds-pause/out folder

ABI Encoding

All parameters must be ABI-encoded, I've been using https://abi.hashex.org/# for manual verification

DEPLOYER

  • Not a contract
  • The account of the contract deployer
  • AKA $ETH_FROM
  • Nothing to Verify

MULTICALL

FAUCET

  • Kovan only - deployed previously
  • Verified

MCD_DEPLOY

  • DssDeploy. Bytecodes not matching currently. This one is complex.
  • Verified

MCD_GOV

  • Address of Maker Token
  • Should already be verified
  • Verified

GOV_GUARD

  • Empty string (Kovan)
  • Nothing to verify

MCD_ADM

MCD_IOU

  • Empty string (Kovan)
  • Nothing to verify

VOTE_PROXY_FACTORY

  • Empty string (Kovan)
  • Nothing to verify

MCD_VAT

MCD_JUG

# Kovan 0.2.16
  0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee

MCD_CAT

# Kovan 0.2.16
  0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee

MCD_VOW

# Kovan 0.2.16
  0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee000000000000000000000000c9d17f368a23e30a5e9ee59acec43cba4eaed9510000000000000000000000003207a405afe20a77e04f8c74674cd9f0192d7371

MCD_JOIN_DAI

# Kovan 0.2.16
  0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee000000000000000000000000c27a24e60a89a03bd2f1ffb4ea59076fd8385fe6

MCD_FLAP

Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee000000000000000000000000aaf64bfcc32d0f15873a02163e7e500671a4ffcd

MCD_FLOP

Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee000000000000000000000000aaf64bfcc32d0f15873a02163e7e500671a4ffcd

MCD_PAUSE

  • DSPause
  • https://github.com/dapphub/ds-pause
  • pause.sol.flat
  • constructor(uint delay_, address owner_, DSAuthority authority_)
  • config->pauseDelay, address(0), seth call 0x0ff7ce98fd5c1caf09d6479ec22b7bee9079de09 'authority()(address)'
  • The DS-Pause is deployed with a temporary contract that is not captured in the output.
  • Verified
Kovan 0.2.16
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d1d1c361d4770c24591ff487df7c9614e015768d

MCD_PAUSE_PROXY

MCD_GOV_ACTIONS

MCD_DAI

Kovan 0.2.16 (chainid 42)
000000000000000000000000000000000000000000000000000000000000002a

MCD_SPOT

# Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee

MCD_POT

# Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee

MCD_END

MCD_ESM

  • https://github.com/makerdao/esm
  • constructor(gem, end, pit, min)
  • (MCD_GOV, MCD_END, config->esm_pit=0xbd747742b0f1f9791d3e6b85f8797a0cf4fbf10b , config->esm_min=50000)
  • Must convert esm_min to Wei (50000000000000000000000)
  • Verified
# Kovan 0.2.16
000000000000000000000000aaf64bfcc32d0f15873a02163e7e500671a4ffcd0000000000000000000000008e288a37b5d2f37d127a0beaef06fae05197866a000000000000000000000000bd747742b0f1f9791d3e6b85f8797a0cf4fbf10b000000000000000000000000000000000000000000000a968163f0a57b400000

PROXY_ACTIONS

PROXY_ACTIONS_END

PROXY_ACTIONS_DSR

CDP_MANAGER

# Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee

GET_CDPS

PROXY_FACTORY

PROXY_REGISTRY

ETH

  • WETH9_
  • Wrapped Ether
  • Verified

VAL_ETH

PIP_ETH

MCD_JOIN_ETH_A

  • GemJoin
  • https://github.com/makerdao/dss
  • constructor(address vat_, bytes32 ilk_, address gem_)
  • $MCD_VAT
  • "ETH-A" -> 0x4554482d41000000000000000000000000000000000000000000000000000000
  • $ETH
  • Verified
Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee4554482d41000000000000000000000000000000000000000000000000000000000000000000000000000000d0a1e359811322d97991e03f863a0c30c2cf029c

MCD_FLIP_ETH_A

  • Flipper
  • https://github.com/makerdao/dss
  • constructor(address vat_, bytes32 ilk_)
  • $MCD_VAT
  • "ETH-A" -> 0x4554482d41000000000000000000000000000000000000000000000000000000
  • Verified
Kovan 0.2.16
0000000000000000000000002d9fad7795f0658f5931b75845d14250aecc81ee4554482d41000000000000000000000000000000000000000000000000000000

BAT

Kovan 0.2.16 Params:
00000000000000000000000000000000000000000000d3c21bcecceda1000000

VAL_BAT

PIP_BAT

MCD_JOIN_BAT_A

  • GemJoin
  • Etherscan will verify bytecode based on MCD_JOIN_ETH_A
  • Verified

MCD_FLIP_BAT_A

  • Flipper
  • Etherscan will verify bytecode based on MCD_FLIP_ETH_A
  • Verified

PROXY_PAUSE_ACTIONS

PROXY_DEPLOYER

SAI_TUB

MIGRATION

  • ScdMcdMigration
  • https://github.com/makerdao/scd-mcd-migration
  • constructor
    • address tub_, // SCD tub contract address
    • address cdpManager_, // MCD manager contract address
    • address saiJoin_, // MCD SAI collateral adapter contract address
    • address wethJoin_, // MCD ETH collateral adapter contract address
    • address daiJoin_ // MCD DAI adapter contract address
    • MCD_TUB, CDP_MANAGER, MCD_JOIN_SAI, MCD_JOIN_ETH_A, MCD_JOIN_DAI
  • Verified
Kovan 0.2.16
000000000000000000000000a71937147b55deb8a530c7229c442fd3f31b7db20000000000000000000000009aa3779a1ffe9a2ef6c9aeeb18d2731937cefe050000000000000000000000007c32ea45214446cc7be901997dfe5318f3af4acc000000000000000000000000e5d124ec935b1b460372a28ce8ae7fb200fca9c00000000000000000000000003a3cc501d46b84f310067ef7c5df4ae1f05810ea

MIGRATION_PROXY_ACTIONS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment