Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions blockapi/test/v2/api/data/opensea/collection-stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"total": {
"volume": 18.813597880000103,
"sales": 969,
"average_price": 0.0194154776883386,
"num_owners": 866,
"market_cap": 105.85218269230776,
"floor_price": 0.008,
"floor_price_symbol": "ETH"
},
"intervals": [
{
"interval": "one_day",
"volume": 0.14300000000000004,
"volume_diff": -0.23700000000000018,
"volume_change": -0.6236842274665833,
"sales": 28,
"sales_diff": 0.0,
"average_price": 0.005107142857142859
},
{
"interval": "one_week",
"volume": 0.0,
"volume_diff": 0.0,
"volume_change": 0.0,
"sales": 0,
"sales_diff": 0.0,
"average_price": 0.0
},
{
"interval": "one_month",
"volume": 0.0,
"volume_diff": 0.0,
"volume_change": 0.0,
"sales": 0,
"sales_diff": 0.0,
"average_price": 0.0
}
]
}
43 changes: 43 additions & 0 deletions blockapi/test/v2/api/data/opensea/collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"collection": "ever-fragments-of-civitas",
"name": "Ever Fragments of Civitas",
"description": "The [Civitas](https://playcivitas.io/) **Chosen** [NFT collection](https://opensea.io/collection/the-chosen-of-civitas) generate monthly [Ever Fragments](https://docs.playcivitas.io/whitepaper/ever-fragments-and-crystals), that are a key component of the land generation process in Civitas, the world's first community-owned strategy MMO. They combine to form Ever Crystals, which are used to create unique and highly productive land tiles rendered procedurally through an algorithmic art generation pipeline.",
"image_url": "https://openseauserdata.com/files/f784cefee7f7da9fe4c75ec04279b8b0.png",
"banner_image_url": "https://openseauserdata.com/files/68cc3d74e23c515b5ecaf4785dab99ed.png",
"owner": "0x490d4d1452c953290925e96e6a68b247d94b6f99",
"safelist_status": "not_requested",
"category": "gaming",
"is_disabled": false,
"is_nsfw": false,
"trait_offers_enabled": false,
"opensea_url": "https://opensea.io/collection/ever-fragments-of-civitas",
"project_url": "https://playcivitas.io",
"wiki_url": "",
"discord_url": "",
"telegram_url": "https://t.me/civitasofficial",
"twitter_username": "",
"instagram_username": "",
"contracts": [
{
"address": "0x8acb0bc7f6c77e4e2aef83ea928d5a6c2a0b7fcd",
"chain": "ethereum"
}
],
"editors": [
"0x490d4d1452c953290925e96e6a68b247d94b6f99",
"0x18d88467b7e1305ba4587db69a45fe8416247113",
"0xa5067aabb149076008fc798378ec0b77933f9cd5"
],
"fees": [
{
"fee": 2.5,
"recipient": "0x0000a26b00c1f0df003000390027140000faa719",
"required": true
},
{
"fee": 10.0,
"recipient": "0x18d88467b7e1305ba4587db69a45fe8416247113",
"required": true
}
]
}
67 changes: 67 additions & 0 deletions blockapi/test/v2/api/data/opensea/listings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"listings": [
{
"order_hash": "0x316f1cdcd4361385d10010abbab14a2a0e5d38cc777cf4ccb86cb046d6bb48df",
"chain": "ethereum",
"type": "basic",
"price": {
"current": {
"currency": "ETH",
"decimals": 18,
"value": "20000000000000000"
}
},
"protocol_data": {
"parameters": {
"offerer": "0xe4fd714001f6cd80f5ffcfae4d827538d133dfa7",
"offer": [
{
"itemType": 2,
"token": "0x8ACb0BC7F6c77E4E2aeF83EA928D5A6c2a0b7FCd",
"identifierOrCriteria": "90000001072",
"startAmount": "1",
"endAmount": "1"
}
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "17500000000000000",
"endAmount": "17500000000000000",
"recipient": "0xE4fD714001F6Cd80F5FfCfaE4D827538d133dfA7"
},
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "500000000000000",
"endAmount": "500000000000000",
"recipient": "0x0000a26b00c1F0DF003000390027140000fAa719"
},
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "2000000000000000",
"endAmount": "2000000000000000",
"recipient": "0x18D88467b7e1305BA4587DB69a45fE8416247113"
}
],
"startTime": "1684766657",
"endTime": "1700318657",
"orderType": 0,
"zone": "0x004C00500000aD104D7DBd00e3ae0A5C00560C00",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "0x360c6ebe00000000000000000000000000000000000000006b19197378a23748",
"conduitKey": "0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000",
"totalOriginalConsiderationItems": 3,
"counter": 0
},
"signature": null
},
"protocol_address": "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"
}
]
}
18 changes: 18 additions & 0 deletions blockapi/test/v2/api/data/opensea/nfts-next.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"nfts": [
{
"identifier": "550885",
"collection": "uniswap-v3-positions",
"contract": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"token_standard": "erc721",
"name": "Uniswap - 1% - PRIME/WETH - 330.20<>780.29",
"description": "This NFT represents a liquidity position in a Uniswap V3 PRIME-WETH pool.",
"image_url": "https://openseauserdata.com/files/8b79194380e9a86f190713e19e78cef8.svg",
"metadata_url": "data:application/json;base64,eyJuYW1lIjoiVW5pc3dhcCAtIDElIC0gUFJJTUUvV0VUSCAtIDMzMC4yMDw+NzgwLjI5In0=",
"created_at": "",
"updated_at": "2023-08-15T13:56:39.759414",
"is_disabled": false,
"is_nsfw": false
}
]
}
19 changes: 19 additions & 0 deletions blockapi/test/v2/api/data/opensea/nfts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"nfts": [
{
"identifier": "150000000367",
"collection": "ever-fragments-of-civitas",
"contract": "0x8acb0bc7f6c77e4e2aef83ea928d5a6c2a0b7fcd",
"token_standard": "erc721",
"name": "Ever Fragment",
"description": "This is Ever Fragment",
"image_url": "https://i.seadn.io/gcs/files/13095497eff91a68417cc45a3ebd4468.png?w=500&auto=format",
"metadata_url": "https://meta.playcivitas.io/1/0x8acb0bc7f6c77e4e2aef83ea928d5a6c2a0b7fcd/150000000367.json",
"created_at": "",
"updated_at": "2023-09-13T13:48:32.891638",
"is_disabled": false,
"is_nsfw": false
}
],
"next": "LXBrPTE0MDMyMTEyOTU="
}
69 changes: 69 additions & 0 deletions blockapi/test/v2/api/data/opensea/offers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"offers": [
{
"order_hash": "0x0d801370f4d01e9e3319dcff7a1067d093d3895a617ca4c9a6d2505a9cf4ad8f",
"chain": "ethereum",
"criteria": {
"collection": {
"slug": "ever-fragments-of-civitas"
},
"contract": {
"address": "0x8acb0bc7f6c77e4e2aef83ea928d5a6c2a0b7fcd"
},
"trait": null,
"encoded_token_ids": null
},
"protocol_data": {
"parameters": {
"offerer": "0xc30992a53b3e91385ace2575963aa392edb3b931",
"offer": [
{
"itemType": 1,
"token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"identifierOrCriteria": "0",
"startAmount": "4000000000000000",
"endAmount": "4000000000000000"
}
],
"consideration": [
{
"itemType": 4,
"token": "0x8ACb0BC7F6c77E4E2aeF83EA928D5A6c2a0b7FCd",
"identifierOrCriteria": "0",
"startAmount": "8",
"endAmount": "8",
"recipient": "0xc30992a53b3e91385AcE2575963Aa392edb3B931"
},
{
"itemType": 1,
"token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"identifierOrCriteria": "0",
"startAmount": "20000000000000",
"endAmount": "20000000000000",
"recipient": "0x0000a26b00c1F0DF003000390027140000fAa719"
},
{
"itemType": 1,
"token": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"identifierOrCriteria": "0",
"startAmount": "400000000000000",
"endAmount": "400000000000000",
"recipient": "0x18D88467b7e1305BA4587DB69a45fE8416247113"
}
],
"startTime": "1696470613",
"endTime": "1696989013",
"orderType": 3,
"zone": "0x000000e7Ec00e7B300774b00001314B8610022b8",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"salt": "0x72db8c0b0000000000000000000000000000000000000000c07d8ab2cdf12360",
"conduitKey": "0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000",
"totalOriginalConsiderationItems": 3,
"counter": 0
},
"signature": null
},
"protocol_address": "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"
}
]
}
13 changes: 13 additions & 0 deletions blockapi/test/v2/api/fake_sleep_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from blockapi.v2.base import ISleepProvider


class FakeSleepProvider(ISleepProvider):
def __init__(self):
self._calls = []

def sleep(self, url: str, seconds: float):
self._calls.append((url, seconds))

@property
def calls(self):
return self._calls
Empty file.
Loading