Меню
Vol. 3 No. 28 (2025) / 2025-09-30 / Number of views: 202
Authors
Keywords
Many blockchain applications exchange tokens such as bitcoin and ether, or implement them using smart contracts. The trend in blockchain is to consistently apply token interaction standards from platform to platform, making design tasks easier with reliable and widely used specifications. However, using the semantics of the target language can lead to technological advantages and more efficient contracts. The purpose of the article is to reengineer the implementation of the ERC-20 and ERC-721 OpenZeppelin standards in Takamaka, a Java framework for programming smart contracts. It is relevant to solve the problem of the types allowed for token holders, and a new implementation for creating snapshots of tokens based on tree maps, which is possible in the Java virtual machine. Moreover, this also applies to ERC-721, which previously lacked a snapshot mechanism. The same snapshot mechanism can be applied outside of smart contracts for tokens.