safe-global / safe-transaction-service

Keeps track of transactions sent via Safe contacts and confirmed transactions. It also keeps track of Ether and ERC20 token transfers to Safe contracts.
MIT License
195 stars 267 forks source link

Decode MakerDAO transactions #182

Closed denisgranha closed 4 years ago

denisgranha commented 4 years ago

You can find a file with all the abi's here https://changelog.makerdao.com/releases/mainnet/1.1.4/abi/index.html

And a list of addresses: https://changelog.makerdao.com/releases/mainnet/active/contracts.json

Uxio0 commented 4 years ago

I added the abis using this script, for future reference:

import json
import os

print('makerdao_abis = [')
for filename in os.listdir(os.getcwd()):
    with open(os.path.join(os.getcwd(), filename), 'r') as f:
        if '.abi' in filename:
            abi_parsed = json.loads(f.read())
            print(abi_parsed)
print(']')
Uxio0 commented 4 years ago

@lukasschor @tschubotz @rmeissner I think adding all this 128 Abis (https://changelog.makerdao.com/releases/mainnet/1.1.4/abi/mainnet_abi_1.1.4.zip) should cover all the MakerDao related transactions 😁