Back to Home

AccountingLib

Library
Part of The Piper Merriam Collection
0xd3cb18959b04...be60afc04b22
FrontierContract #2,365Exact Bytecode MatchEdit this contract
Deployed October 22, 2015 (10 years ago)Block 420,531

A balance accounting library with withdrawal safety, deployed 2015-10-22.

Frontier EraVerified Source

Historical Significance

Paying out to an address that might be a contract was the unsolved problem of the period: a plain send gives the recipient a fixed stipend of gas and a recipient that needs more will fail, while forwarding everything hands control to code you did not write. This library picks the middle course and checks the result, and it was written to be linked into other contracts rather than used alone, at a time when Solidity had no standard library and any routine worth sharing had to be deployed and linked by hand.

Context

Deployed in October 2015, when contracts had no standard library and common routines were put on chain individually to be linked against.

Key Facts
Deployer
Piper Merriam(0xd3cda9...293601)
Deployment Block
420,531
Deployment Date
Oct 22, 2015, 04:22 AM
Code Size
754.0 B
Gas at Deploy
218,166

Description

AccountingLib tracks per address balances on behalf of a calling contract and handles deposits, withdrawals and transfers between accounts. Sends are made through a low level call with a bounded gas allowance and the result is checked, so a recipient that reverts or runs out of gas cannot silently leave the ledger and the contract balance disagreeing. It was written for the Ethereum Alarm Clock to hold the deposits and payments that scheduled calls move around. Deployed as a standalone library for other contracts to link against.

Source Verified

Exact bytecode match(754 bytes)
Compiler: v0.1.5-

Historian Categories

Library
Heuristic Analysis

The following characteristics were detected through bytecode analysis and may not be accurate.

Detected Type: Library

Bytecode Overview

Opcodes754
Unique Opcodes140
Jump Instructions51
Storage Operations13

External Links

Related contracts