updated docs (#16)

This commit is contained in:
Austin 2023-02-23 11:31:14 -05:00 committed by GitHub
parent 2535a46b7e
commit 749bcbc32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 97 additions and 24 deletions

View File

@ -1,17 +1,13 @@
{{ config(
materialized = 'view',
meta={
'database_tags':{
'table': {
'PROTOCOL': 'DEEPNFTVALUE'
}
}
}
persist_docs ={ "relation": true,
"columns": true },
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' }}}
) }}
SELECT
collection_name,
lower(collection_address) AS collection_address,
LOWER(collection_address) AS collection_address,
floor_price,
valuation_max,
valuation_min,

View File

@ -0,0 +1,21 @@
version: 2
models:
- name: deepnftvalue_eth__fact_collections
description: This table contains collection information for Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks. The table is updated daily.
columns:
- name: COLLECTION_NAME
description: Name of NFT collection, e.g. Azuki or CryptoPunks.
- name: COLLECTION_ADDRESS
description: Contract address of NFT collection.
- name: FLOOR_PRICE
description: Floor price of NFT collection.
- name: VALUATION_MAX
description: Maximum valuation of NFT collection.
- name: VALUATION_MIN
description: Minimum valuation of NFT collection.
- name: ATTRIBUTES
description: Attributes of NFT collection.
- name: VALUATION_TIMESTAMP
description: Timestamp of valuation.

View File

@ -1,17 +1,13 @@
{{ config(
materialized = 'view',
meta={
'database_tags':{
'table': {
'PROTOCOL': 'DEEPNFTVALUE'
}
}
}
persist_docs ={ "relation": true,
"columns": true },
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' }}}
) }}
SELECT
collection_name,
lower(contract_address) AS collection_address,
LOWER(contract_address) AS collection_address,
token_id,
active_offer,
attributes,

View File

@ -0,0 +1,34 @@
version: 2
models:
- name: deepnftvalue_eth__fact_tokens
description: This table contains a row for each token in the Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks collections. The table is updated daily.
columns:
- name: COLLECTION_NAME
description: Name of NFT collection, e.g. Azuki or CryptoPunks.
- name: COLLECTION_ADDRESS
description: Contract address of NFT collection.
- name: TOKEN_ID
description: Token ID of NFT.
- name: ACTIVE_OFFER
description: Includes information about the active offer for the token, if any.
- name: ATTRIBUTES
description: Attributes of NFT collection.
- name: IMAGE
description: Image URL of NFT.
- name: IS_FLAGGED
description: Indicates whether the token is flagged.
- name: OWNER
description: Address of token owner and ENS name, if available.
- name: RARITY
description: Rarity of NFT.
- name: RARITY_RANK
description: Rarity rank of NFT.
- name: TOP_BID
description: Includes information about the top bid for the token, if any.
- name: VALUATION
description: Valuation of NFT, as of updated_timestamp.
- name: UPDATED_TIMESTAMP
description: Timestamp of the last update for the token.

View File

@ -1,18 +1,14 @@
{{ config(
materialized = 'view',
meta={
'database_tags':{
'table': {
'PROTOCOL': 'DEEPNFTVALUE'
}
}
}
persist_docs ={ "relation": true,
"columns": true },
meta ={ 'database_tags':{ 'table':{ 'PROTOCOL': 'DEEPNFTVALUE' }}}
) }}
SELECT
date_day AS valuation_date,
collection_name,
lower(contract_address) AS collection_address,
LOWER(contract_address) AS collection_address,
token_id,
currency,
price,

View File

@ -0,0 +1,22 @@
version: 2
models:
- name: deepnftvalue_eth__fact_valuations
description: This table contains a valuation for each token in the Bored Ape Yacht Club, Mutant Ape Yacht Club, Azuki, and CryptoPunks collections, every day. The table is updated daily.
columns:
- name: VALUATION_DATE
description: Date of valuation.
- name: COLLECTION_NAME
description: Name of NFT collection, e.g. Azuki or CryptoPunks.
- name: COLLECTION_ADDRESS
description: Contract address of NFT collection.
- name: TOKEN_ID
description: Token ID of NFT.
- name: CURRENCY
description: Valuation currency.
- name: PRICE
description: Valuation price.
- name: UPDATED_TIMESTAMP
description: Timestamp of the last update for the token.

View File

@ -49,6 +49,14 @@ The documentation included here details the design of the External tables and vi
- [defillama__fact_options_volume](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.defillama.fact_options_volume)
- [defillama__fact_protocol_fees_revenue](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.defillama.fact_protocol_fees_revenue)
**DeepNFTValue**
[DeepNFTValue Documentation](https://deepnftvalue.readme.io/reference/getting-started-with-deepnftvalue-api)
- [deepnftvalue_eth__fact_collections](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.deepnftvalue_eth.fact_collections)
- [deepnftvalue_eth__fact_tokens](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.deepnftvalue_eth.fact_tokens)
- [deepnftvalue_eth__fact_valuations](https://flipsidecrypto.github.io/external-models/#!/source/source.external_models.deepnftvalue_eth.fact_valuations)
## **Data Model Overview**