Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 1.65 KB

ERC1155.md

File metadata and controls

73 lines (54 loc) · 1.65 KB

ERC1155 Benchmarks (WIP)

Benchmarks for implementations of the ERC115 standard.

Methods TODO

  • deploy
  • mint (not in the specification, but common)
  • mintBatch (not in the specification, but common)
  • safeTransferFrom
  • safeBatchTransferFrom
  • setApprovalForAll
  • balanceOf
  • balanceOfBatch
  • isApprovedForAll

Deployment

How much gas to deploy the contract as is?

Implementation --
OpenZeppelin 1032616
Solmate 1055915

mint

How much gas to mint a token?

Implementation --
OpenZeppelin 33906
Solmate 33170

mintBatch

How much gas to mint n different tokens?

Implementation 1 5 10
OpenZeppelin 35407 130865 248539
Solmate 36552 130616 248280

safeTransferFrom

How much gas to transfer one token?

Implementation --
OpenZeppelin 38002
Solmate 36926

safeBatchTransferFrom

How much gas to transfer n tokens to the same address?

Implementation 1 5 10
OpenZeppelin 39767 137971 259094
Solmate 39907 135144 254289