Order of evaluation for Solidity modifiers

Posted on Thu 13 October 2022 in tech • Tagged with solidity, programming, ethereum, web3, modifier

Solidity modifiers are evaluated from left to right. It makes sense to order modifiers in order of those that are most likely to fail to those that are least likely to fail. It is also a good idea to order them from most primitive to most expensive. And prerequisite conditions …


Continue reading

History: Pax Romana

Posted on Sun 09 October 2022 in history • Tagged with definition, dictionary

96- 180 CE -- The Pax Romana was a period of peace and goodwill in post republican Rome. The era is marked by the rule of the Five "Good Emperors". These rulers respected ruling classes and the senate, did not perform arbitrary executions, maintained peace and were generally beneficent to the …


Continue reading

History: Flavians

Posted on Sun 02 October 2022 in history • Tagged with history, dynasty

69- 96 CE - The Flavian Dynasty includes the Roman rulers Vespasian, 69- 79 CE , Titus, 79- 81 CE , Domitian, 81- 96 CE. The time of the Flavian Dynasty was one of the first eras where Roman rulers referred to themselves as Emperors, thus signifying a final transition from republican ideals …


Continue reading

remove the ./ from find -print

Posted on Wed 28 September 2022 in tech • Tagged with linux, programming, bash

If you want to apply a script to each file in a folder recursively you may not want the full relative path. Here is how to remove it.

$ find . -type f -print | sed -e "s|^\./||g"

For example to combine it with xargs and invoke a script on each name …


Continue reading

Three steps to document Solididty in SPHINX

Posted on Tue 27 September 2022 in tech • Tagged with solidity, programming, ethereum, crypto, sphinx, tutorial

I was able to get solidity docgen working by implementing a series of three different stages all automated in our build process.

  1. Parse the solc output into actual json.
  2. Load the json file into the documentation system
  3. Use a Jinja template to convert the api document

There is shockingly poor …


Continue reading

History: praetorian guard

Posted on Sun 25 September 2022 in history • Tagged with definition, dictionary

The praetorian guard was an elite infantry created by Augustus and charged with the task of guarding the princeps. The princeps was a person without strict legal right to rule, however they possessed great imperium, along with extraordinary political influence. The praetorian guard consisted of 9,000 troops and signified …


Continue reading