Your First 90 DaysAcademy
The Grammar · Contracts Talking to Contracts · Week 5 · Checkpoint 11

Built on Another

Thirty eight lines, two functions, three lines of body. You cannot say what either function does without opening a different file, and that is not a flaw in the file. It is what inheritance looks like from the inside.

14 steps~24 min3 nodes for your map
01 · A file that makes no sense alone

The shortest file you have opened, and the strangest. Thirty eight lines, two functions, and three lines of body between them. You can read every character of it in under a minute, and most of those characters are documentation.

And you still could not say what either function does. Not because the code is dense. Because the words it uses are defined somewhere else. That is not a flaw in the lesson. It is the lesson.

02 · Where the code actually is

Four lines carry the structure. An import on line 6. The contract line on 13. Two signatures, on 19 and 34. Around them sit twenty three lines of documentation, four blanks, three closing braces, and the licence and pragma you met in week one.

Three lines do any work: 20, 35 and 36. That is the entire body of this contract. Read those three and nearly every name in them comes from a file you are not currently looking at.

03 · The word that does the joining

Function first: a marker joining this contract to another one, so that everything the other contract declares becomes part of this contract too. The name: is. You have read past it since week one without ever being told what it does.

Line 13 says `is ERC20`. Line 6 says where `ERC20` comes from. Together they mean this contract already holds every function, variable and event that file declares, without a single one of them being written down here.

Line 13 reads `abstract contract ERC20Burnable is ERC20`. What does this contract have as a result?
your balance2,400
BANK_DBowner: the bank
you2,400
what the app is actually showing you
BANK_DBowner: the bank
you2,400their pen
you hold a claim. they hold the pen.
your digital life
BANK · you2,400the bank ✍
INSTAGRAM · you2.1M followersMeta ✍
STEAM · you134 gamesValve ✍
AIRLINE · you58,200 milesthe airline ✍
four tables. zero pens that are yours.
BANK_DBowner: the bank
you2,400
DENIED
try both pens
PLATFORM_DBowner: the platform
her · 8 years2,000,000 followers
one automated decision away
BANK_DB · you · 2,400intentcompetencecontinuity
your row stands on all three
FTX_DBowner: FTX
you5 BTC
the backing vault●●●●●
the row stayed. the backing did not.
CARD_DBowner: your bank ✍
TV you never bought−1,100
fraud reversal+1,100
someone holds the pen, so someone can fix it
?_DBowner: nobody
youstill yours?
?
can a table exist that nobody owns?
?
?_DBowner: ̶n̶o̶b̶o̶d̶y̶
you100
no owner, no pen, no trust?
keeper 1
you100
keeper 2
you100
keeper 3
you100
keeper 4
you100
keeper 5
you100
no THE copy, only copies.
keeper 2
you100
keeper 3
you100
keeper 4
you100
keeper 5
you100
your copy
you100
five copies. one of them is yours.
one attacker
one attacker, ten thousand faces.
real machinesburned wattsnext page, sealed
writing costs watts. faking voters buys nothing.
cost paid OUTSIDE: hardware and power
proof of work, burn energy to vote.
page 1you · 100page 2you · 100page 3you · 100page 4you · 100
rewrite one line, break every lock after it.
office lunchtrusted keeperconsensusfive keepers, real cost
the price buys trustlessness. the office already has trust.
?
ownerless ledger
you?
a key, not a login?
nobody owns the table. so who owns your row?
isinherited namestracing

Three new nodes on your map

is · inherited names · tracing · +10 Lynx