The Cost-effective Management of Multiple E-Coupons on Public Ethereum-based Chains Using NFT Standard with Implicit Ownership

Citation Author(s):
Vukasin
Tasic
Submitted by:
Vukasin Tasic
Last updated:
Sun, 03/10/2024 - 05:54
DOI:
10.21227/9z6j-rb97
Data Format:
Links:
License:
125 Views
Categories:
Keywords:
0
0 ratings - Please login to submit your rating.

Abstract 

The e-commerce market heavily relies on e-coupons, and their digital nature presents challenges in establishing a secure e-coupon infrastructure, which incurs maintenance costs. To address this, we explore using public blockchains for the e-coupon system, providing a highly reliable decentralized infrastructure with no maintenance costs. Storing coupon information on a blockchain ensures tamper resistance and protection against double redemption. However, using public blockchains shifts gas cost responsibility to users, potentially impacting user experience if not managed carefully. This paper focuses on cost-effective management of multiple e-coupons on Ethereum-based chains by minimizing reading and writing to storage. It applies the NFT standard with implicit ownership for creating, transferring, and removing coupons from circulation, utilizing bitmaps for efficient execution of these operations. Coupon information is stored in unused bits of a mapping that associates coupon id with the owner's address, ensuring more economical transaction for executing e-coupon business logic. Additionally, the findings outlined in this paper hold significance to all platforms that represents services or goods as NFTs, embedding features in a single storage slot.

Instructions: 

mint.csv:
The number of coupons minted for each standard, along with the corresponding gas costs, is presented for the following values: 1, 2, 3, 5, 10, and 20.

transfer.csv:
Num indicates the distance between the batch head and the transferred coupon, with results displayed for num values of 1, 2, 3, 5, 10, and 20.

burn.csv:
Num indicates the distance between the batch head and the burned coupon, with results displayed for num values of 1, 2, 3, 5, 10, and 20.

burn_multiple.csv:
The gas costs associated with burning multiple coupons in a single transaction for each standard are tested with values 1, 2, 3, 4, and 5.

erc721a_psi_comparison.csv:
A comparison between ERC721A and ERC721Psi of gas costs for minting, transferring, and burning operations is conducted across substantial batch sizes, such as 100, 1000, and 10000.

deployment.csv:
The gas costs associated with deploying e-coupon smart contracts are presented, with the first row indicating the costs without the optimizer turned on, and the second row indicating the costs with the optimizer turned on.