diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..1ed9ccf --- /dev/null +++ b/TODO.md @@ -0,0 +1,21 @@ +- [ ] `active_listings` +- [ ] `active_listings_by_contract` +- [x] `active_listings_rollup` +- [_] `auctions_with_offer` +- [ ] `nft_activities` +- [ ] `nft_activities_rollup` +- [ ] `nft_metadata` +- [ ] `nft_metadata_unburned` +- [ ] `nft_minted_metadata_tmp` +- [ ] `nft_notifications` +- [ ] `nft_notifications_tmp` +- [ ] `nft_owned_metadata_tmp` +- [ ] `nft_owned_tokens` +- [ ] `nft_tokens` +- [_] `nft_tokens_with_listing` +- [_] `nft_tokens_with_listing_tmp` +- [ ] `nft_tokens_with_media_type` +- [_] `referrer_earnings_` +- [_] `top_stores` + +columns: diff --git a/hasura/metadata/databases/minterop/tables/public_nft_metadata.yaml b/hasura/metadata/databases/minterop/tables/public_nft_metadata.yaml index b636d1b..c1d01cc 100644 --- a/hasura/metadata/databases/minterop/tables/public_nft_metadata.yaml +++ b/hasura/metadata/databases/minterop/tables/public_nft_metadata.yaml @@ -37,6 +37,7 @@ select_permissions: - content_flag - mb_internal_id - price + - ft_contract_id - minters_allowlist - royalties - royalty_percent diff --git a/migrations/2024-03-28-123227_metadata-ft-contract-id-column/down.sql b/migrations/2024-03-28-123227_metadata-ft-contract-id-column/down.sql new file mode 100644 index 0000000..b62e464 --- /dev/null +++ b/migrations/2024-03-28-123227_metadata-ft-contract-id-column/down.sql @@ -0,0 +1,2 @@ +alter table nft_metadata + drop ft_contract_id; diff --git a/migrations/2024-03-28-123227_metadata-ft-contract-id-column/up.sql b/migrations/2024-03-28-123227_metadata-ft-contract-id-column/up.sql new file mode 100644 index 0000000..08724db --- /dev/null +++ b/migrations/2024-03-28-123227_metadata-ft-contract-id-column/up.sql @@ -0,0 +1,2 @@ +alter table nft_metadata + add ft_contract_id text; diff --git a/src/db_rows.rs b/src/db_rows.rs index 3d40b85..c3e1b0f 100644 --- a/src/db_rows.rs +++ b/src/db_rows.rs @@ -70,6 +70,7 @@ pub struct NftMetadata { pub last_possible_mint: Option, pub is_locked: Option, pub is_active: bool, + pub ft_contract_id: Option, } #[derive(Clone, diesel::Insertable, diesel::Queryable, diesel::AsChangeset)] diff --git a/src/rpc_payloads.rs b/src/rpc_payloads.rs index 743d885..f553a29 100644 --- a/src/rpc_payloads.rs +++ b/src/rpc_payloads.rs @@ -27,6 +27,7 @@ pub enum RpcMessage { metadata_id: u64, minters_allowlist: Option>, price: String, + ft_contract_id: Option, royalties: Option, royalty_percent: Option, max_supply: Option, diff --git a/src/schema.rs b/src/schema.rs index a12327a..3b96407 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -179,6 +179,7 @@ diesel::table! { last_possible_mint -> Nullable, is_locked -> Nullable, is_active -> Bool, + ft_contract_id -> Nullable, } }