From d8993155618a0610fb8a4e2e3f9d619b85f160cd Mon Sep 17 00:00:00 2001 From: jhuhnke Date: Fri, 25 Mar 2022 09:29:49 -0500 Subject: [PATCH 1/4] adds table for Solana NFT mints into gold --- models/solana/gold/solana__fact_nft_mints.sql | 11 +++++++++ models/solana/gold/solana__fact_nft_mints.yml | 23 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 models/solana/gold/solana__fact_nft_mints.sql create mode 100644 models/solana/gold/solana__fact_nft_mints.yml diff --git a/models/solana/gold/solana__fact_nft_mints.sql b/models/solana/gold/solana__fact_nft_mints.sql new file mode 100644 index 00000000..0857bf27 --- /dev/null +++ b/models/solana/gold/solana__fact_nft_mints.sql @@ -0,0 +1,11 @@ +{{ config( + materialized = 'view' +) }} + +SELECT + * +FROM + {{ source( + 'solana', + 'fact_nft_mints' + ) }} \ No newline at end of file diff --git a/models/solana/gold/solana__fact_nft_mints.yml b/models/solana/gold/solana__fact_nft_mints.yml new file mode 100644 index 00000000..eaca0fa3 --- /dev/null +++ b/models/solana/gold/solana__fact_nft_mints.yml @@ -0,0 +1,23 @@ +version: 2 +models: + - name: solana__fact_nft_mints + description: Records of all NFT mints on Solana. + columns: + - name: BLOCK_TIMESTAMP + description: "{{ doc('block_timestamp') }}" + - name: BLOCK_ID + description: "{{ doc('block_id') }}" + - name: TX_ID + description: "{{ doc('tx_id') }}" + - name: SUCCEEDED + description: "{{ doc('tx_succeeded') }}" + - name: PROGRAM_ID + description: "{{ doc('program_id') }}" + - name: PURCHASER + description: "{{ doc('purchaser') }}" + - name: MINT_PRICE + description: The price one paid to mint the NFT in SOL or another currency. + - name: MINT_CURRENCY + description: The currency used to pay for the NFT mint + - name: NFT + description: "{{ doc('mint') }}" \ No newline at end of file From 1c4abe71491634f241d0f8a1ab435d1657ee296e Mon Sep 17 00:00:00 2001 From: jhuhnke Date: Fri, 25 Mar 2022 09:35:24 -0500 Subject: [PATCH 2/4] added to source file --- models/sources.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/sources.yml b/models/sources.yml index 04e1ae69..e807e57c 100644 --- a/models/sources.yml +++ b/models/sources.yml @@ -166,4 +166,5 @@ sources: - name: fact_swaps - name: fact_transactions - name: fact_transfers - - name: fact_votes_agg_block \ No newline at end of file + - name: fact_votes_agg_block + - name: fact_nft_mints \ No newline at end of file From 4e65fb6d0baf77e3c69f01ca9da54d4331eec5ac Mon Sep 17 00:00:00 2001 From: Desmond Hui Date: Fri, 25 Mar 2022 13:16:32 -0700 Subject: [PATCH 3/4] changing col name to mints for sol nft mints --- models/solana/gold/solana__fact_nft_mints.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/solana/gold/solana__fact_nft_mints.yml b/models/solana/gold/solana__fact_nft_mints.yml index eaca0fa3..873ea76e 100644 --- a/models/solana/gold/solana__fact_nft_mints.yml +++ b/models/solana/gold/solana__fact_nft_mints.yml @@ -19,5 +19,5 @@ models: description: The price one paid to mint the NFT in SOL or another currency. - name: MINT_CURRENCY description: The currency used to pay for the NFT mint - - name: NFT + - name: MINT description: "{{ doc('mint') }}" \ No newline at end of file From 2b2f28b37e80aaba5dcffc8d95705d2300b973f3 Mon Sep 17 00:00:00 2001 From: jhuhnke Date: Sat, 26 Mar 2022 09:37:55 -0500 Subject: [PATCH 4/4] updated file names in .yml file --- models/solana/gold/solana__fact_nft_mints.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/models/solana/gold/solana__fact_nft_mints.yml b/models/solana/gold/solana__fact_nft_mints.yml index 873ea76e..a472be46 100644 --- a/models/solana/gold/solana__fact_nft_mints.yml +++ b/models/solana/gold/solana__fact_nft_mints.yml @@ -4,20 +4,20 @@ models: description: Records of all NFT mints on Solana. columns: - name: BLOCK_TIMESTAMP - description: "{{ doc('block_timestamp') }}" + description: "{{ doc('solana_block_timestamp') }}" - name: BLOCK_ID - description: "{{ doc('block_id') }}" + description: "{{ doc('solana_block_id') }}" - name: TX_ID - description: "{{ doc('tx_id') }}" + description: "{{ doc('solana_tx_id') }}" - name: SUCCEEDED - description: "{{ doc('tx_succeeded') }}" + description: "{{ doc('solana_tx_succeeded') }}" - name: PROGRAM_ID - description: "{{ doc('program_id') }}" + description: "{{ doc('solana_program_id') }}" - name: PURCHASER - description: "{{ doc('purchaser') }}" + description: "{{ doc('solana_purchaser') }}" - name: MINT_PRICE description: The price one paid to mint the NFT in SOL or another currency. - name: MINT_CURRENCY description: The currency used to pay for the NFT mint - name: MINT - description: "{{ doc('mint') }}" \ No newline at end of file + description: "{{ doc('solana_mint') }}" \ No newline at end of file