Skip to content

Commit

Permalink
FT minting support
Browse files Browse the repository at this point in the history
  • Loading branch information
tifrel committed Mar 28, 2024
1 parent 5121162 commit 0ee029f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ select_permissions:
- content_flag
- mb_internal_id
- price
- ft_contract_id
- minters_allowlist
- royalties
- royalty_percent
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table nft_metadata
drop ft_contract_id;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table nft_metadata
add ft_contract_id text;
1 change: 1 addition & 0 deletions src/db_rows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub struct NftMetadata {
pub last_possible_mint: Option<NaiveDateTime>,
pub is_locked: Option<bool>,
pub is_active: bool,
pub ft_contract_id: Option<String>,
}

#[derive(Clone, diesel::Insertable, diesel::Queryable, diesel::AsChangeset)]
Expand Down
1 change: 1 addition & 0 deletions src/rpc_payloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub enum RpcMessage {
metadata_id: u64,
minters_allowlist: Option<Vec<String>>,
price: String,
ft_contract_id: Option<String>,
royalties: Option<RoyaltiesMap>,
royalty_percent: Option<u16>,
max_supply: Option<u32>,
Expand Down
1 change: 1 addition & 0 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ diesel::table! {
last_possible_mint -> Nullable<Timestamp>,
is_locked -> Nullable<Bool>,
is_active -> Bool,
ft_contract_id -> Nullable<Text>,
}
}

Expand Down

0 comments on commit 0ee029f

Please sign in to comment.