trustwallet / blockatlas

Clean and lightweight cross-chain transaction API
MIT License
368 stars 229 forks source link

[Collectible] Add transfer fee for ERC1155 #1435

Closed hewigovens closed 3 years ago

hewigovens commented 3 years ago

Example response

{
    "total": 1,
    "docs": [
        {
            "id": "0xfaafdc07907ff5120a76b34b731b278c38d6043c-50885195465617482451405971989000287583881951901222610090265392862391101829115",
            "collection_id": "binance",
            "token_id": "50885195465617482451405971989000287583881951901222610090265392862391101829115",
            "contract_address": "0xfaafdc07907ff5120a76b34b731b278c38d6043c",
            "category": "Binance",
            "image_url": "https://lh3.googleusercontent.com/f1xmGDsCx3CpsTHOYa9pD0SX1cyPoUxH7NyNCQnpgnxHKptHELgjxF4mQGLs5VbZX0wgUGF15o9nyxLppvBmayjE=s250",
            "external_link": "https://www.binance.com/en/blog/411120468693135360/Earn-a-Guaranteed-Binance-NFT--HO-HO-HODL-Binance-Collectibles-Series-1",
            "provider_link": "https://opensea.io/assets/0xfaafdc07907ff5120a76b34b731b278c38d6043c/50885195465617482451405971989000287583881951901222610090265392862391101829115",
            "type": "ERC1155",
            "description": "A limited edition NFT that was minted to celebrate Binance’s third anniversary on July 14th, 2020.",
            "coin": 60,
            "name": "#BinanceTurns3",
            "nft_version": "",
            "transfer_fee": {
                "asset": "c60_t0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c",
                "amount": "0"
            }
        }
    ],
    "status": true
}
codecov[bot] commented 3 years ago

Codecov Report

Merging #1435 (66cf7e1) into master (6d82352) will decrease coverage by 0%. The diff coverage is 30%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1435   +/-   ##
======================================
- Coverage      43%     42%   -1%     
======================================
  Files         146     146           
  Lines        4055    4066   +11     
======================================
+ Hits         1744    1747    +3     
- Misses       2151    2159    +8     
  Partials      160     160           
Impacted Files Coverage Δ
platform/binance/stake.go 0% <0%> (ø)
platform/tezos/baker.go 65% <0%> (ø)
platform/ethereum/opensea/collection.go 80% <100%> (+1%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6d82352...f5d8dcd. Read the comment docs.