This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Called in viewDidLoad callback. | |
- (void)validateProducts | |
{ | |
NSString *productId = @"product_id_from_app_store_connect"; | |
NSSet *productIdentifiers = [NSSet setWithObject:productId]; | |
SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers]; | |
request.delegate = self; | |
self.productsRequest = request; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Called in viewDidLoad callback. | |
- (void)validateProducts | |
{ | |
NSString *productId = @"product_id_from_app_store_connect"; | |
NSSet *productIdentifiers = [NSSet setWithObject:productId]; | |
SKProductsRequest *request = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers]; | |
request.delegate = self; | |
self.productsRequest = request; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Various rough thoughts around schemas and datatypes for Project Mixtape. | |
// Placeholders from existing for TS help. | |
type User = {}; | |
// I think these can basically be user preview objects. | |
type GroupMember = Partial<User>; | |
// User previews with metadata for presence, status, reactions, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project Mixtape Live Session Models. | |
struct SessionTrack: FirestoreModel { | |
// MARK: Properties | |
let track: Track | |
let sessionId: String | |
let mixtapeId: String? | |
let placement: Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BigNumber, ethers } from 'ethers'; | |
import { sortBy } from 'ramda'; | |
import { useCallback, useEffect, useMemo, useState } from 'react'; | |
import { useContractEvent, useProvider } from 'wagmi'; | |
import { NFT_CONTRACT_ABI, NFT_CONTRACT_ADDRESS, nftConfig } from './contracts'; | |
export interface TokenState { | |
owned: number[]; | |
} |