Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

Listing inheritance dependencies

The surya dependencies <target_contract> <files..> command lists the C3 linearization of the inheritance for the given contract. The output lists the most derived contract; this means that, if the same function is present in the inherited contracts, it will look for the function in the listed order and use the definition (if present).

In this example of the command, we are using the 0x project Exchange.sol contract. The 0x project is an open source Decentralized Exchange (DEX). Follow the following commands:

$ git clone https://github.com/0xProject/0x-monorepo.git$ cd 0x-monorepo/contracts/exchange/contracts$ surya dependencies Exchange **/*.sol

The preceding command will generate the following output:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content