Skip to content

Commit

Permalink
Merge pull request #576 from liteflow-labs/dev
Browse files Browse the repository at this point in the history
Release v3.4.2
  • Loading branch information
ismailToyran authored Feb 15, 2024
2 parents 43d46fc + 6a3b40c commit be3d3d0
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 67 deletions.
8 changes: 4 additions & 4 deletions components/HomeSection/Assets.gql
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ query FetchAssets($limit: Int!, $filter: [AssetFilter!]!, $address: Address) {
owned: ownership(ownerAddress: $address) {
quantity
}
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -53,7 +53,7 @@ query FetchAssets($limit: Int!, $filter: [AssetFilter!]!, $address: Address) {
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -67,8 +67,8 @@ query FetchAssets($limit: Int!, $filter: [AssetFilter!]!, $address: Address) {
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
}
}
}
2 changes: 1 addition & 1 deletion components/HomeSection/FeaturedToken.gql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ query FetchFeaturedToken(
owned: ownership(ownerAddress: $address) {
quantity
}
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand Down
16 changes: 8 additions & 8 deletions components/Token/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ export type Props = {
quantity: string
} | null
quantity: string
bestBid: {
bestOpenOffer: {
unitPrice: string
currency: {
decimals: number
symbol: string
}
} | null
firstSale: {
bestListing: {
id: string
unitPrice: string
currency: {
Expand All @@ -72,8 +72,8 @@ export type Props = {
address: string
}
} | null
totalSalesCount: number
totalSalesCurrencyDistinctCount: number
totalListingsCount: number
totalListingsCurrencyDistinctCount: number
}
}

Expand All @@ -87,10 +87,10 @@ const TokenCard: FC<Props> = ({ asset }) => {
const [isHovered, setIsHovered] = useState(false)
const media = useDetectAssetMedia(asset)

const sale = asset.firstSale
const bestBid = asset.bestBid
const numberOfSales = asset.totalSalesCount
const hasMultiCurrency = asset.totalSalesCurrencyDistinctCount > 1
const sale = asset.bestListing
const bestBid = asset.bestOpenOffer
const numberOfSales = asset.totalListingsCount
const hasMultiCurrency = asset.totalListingsCurrencyDistinctCount > 1
const chainName = useMemo(
() => CHAINS.find((x) => x.id === asset.collection.chainId)?.name,
[asset.collection.chainId, CHAINS],
Expand Down
24 changes: 6 additions & 18 deletions environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const getEnvironment = async (): Promise<Environment> => {
arbitrum,
arbitrumSepolia,
{
name: 'LightLink Phoenix',
name: 'Lightlink Phoenix Mainnet',
network: 'lightlink-phoenix',
id: 1890,
nativeCurrency: {
Expand All @@ -256,16 +256,10 @@ const getEnvironment = async (): Promise<Environment> => {
},
rpcUrls: {
default: {
http: [
'https://replicator-01.phoenix.lightlink.io/rpc/v1',
'https://replicator-02.phoenix.lightlink.io/rpc/v1',
],
http: ['https://replicator.phoenix.lightlink.io/rpc/v1'],
},
public: {
http: [
'https://replicator-01.phoenix.lightlink.io/rpc/v1',
'https://replicator-02.phoenix.lightlink.io/rpc/v1',
],
http: ['https://replicator.phoenix.lightlink.io/rpc/v1'],
},
},
blockExplorers: {
Expand All @@ -276,7 +270,7 @@ const getEnvironment = async (): Promise<Environment> => {
},
},
{
name: 'LightLink Pegasus Testnet',
name: 'Lightlink Pegasus Testnet',
network: 'lightlink-pegasus',
testnet: true,
id: 1891,
Expand All @@ -287,16 +281,10 @@ const getEnvironment = async (): Promise<Environment> => {
},
rpcUrls: {
default: {
http: [
'https://replicator-01.pegasus.lightlink.io/rpc/v1',
'https://replicator-02.pegasus.lightlink.io/rpc/v1',
],
http: ['https://replicator.pegasus.lightlink.io/rpc/v1'],
},
public: {
http: [
'https://replicator-01.pegasus.lightlink.io/rpc/v1',
'https://replicator-02.pegasus.lightlink.io/rpc/v1',
],
http: ['https://replicator.pegasus.lightlink.io/rpc/v1'],
},
},
blockExplorers: {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@graphql-codegen/typescript-react-apollo": "^4.1.0",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@next/bundle-analyzer": "^14.0.4",
"@nft/api-graphql": "^1.0.0-beta.52-prerelease-3",
"@nft/api-graphql": "^1.0.0-beta.52-prerelease-7",
"@types/nodemailer": "^6.4.14",
"@types/nprogress": "^0.2.3",
"@types/react": "^18.2.48",
Expand Down
8 changes: 4 additions & 4 deletions pages/checkout/[id].gql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ query Checkout($id: UUID!, $address: Address) {
quantity
}
quantity
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -39,7 +39,7 @@ query Checkout($id: UUID!, $address: Address) {
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -53,8 +53,8 @@ query Checkout($id: UUID!, $address: Address) {
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
}
maker {
address
Expand Down
8 changes: 4 additions & 4 deletions pages/collection/[chainId]/[id]/index.gql
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ query FetchCollectionAssets(
quantity
}
quantity
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -112,7 +112,7 @@ query FetchCollectionAssets(
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -126,8 +126,8 @@ query FetchCollectionAssets(
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
}
}
}
8 changes: 4 additions & 4 deletions pages/create/[chainId]/[collectionAddress].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ const CreatePage: NextPage = () => {
asset={{
...asset,
creator,
bestBid: null,
firstSale: null,
totalSalesCount: 0,
totalSalesCurrencyDistinctCount: 0,
bestOpenOffer: null,
bestListing: null,
totalListingsCount: 0,
totalListingsCurrencyDistinctCount: 0,
}}
/>
)}
Expand Down
8 changes: 4 additions & 4 deletions pages/explore/explore.gql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ query FetchAllERC721And1155(
quantity
}
quantity
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -43,7 +43,7 @@ query FetchAllERC721And1155(
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -57,8 +57,8 @@ query FetchAllERC721And1155(
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
creator {
address
name
Expand Down
8 changes: 4 additions & 4 deletions pages/tokens/[id]/bid.gql
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ query BidOnAsset(
owned: ownership(ownerAddress: $address) {
quantity
}
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -45,7 +45,7 @@ query BidOnAsset(
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -59,8 +59,8 @@ query BidOnAsset(
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
}
currencies(
orderBy: CREATED_AT_ASC
Expand Down
8 changes: 4 additions & 4 deletions pages/tokens/[id]/offer.gql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ query OfferForAsset(
quantity
}
quantity
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -40,7 +40,7 @@ query OfferForAsset(
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -54,8 +54,8 @@ query OfferForAsset(
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
creator {
address
name
Expand Down
8 changes: 4 additions & 4 deletions pages/users/[id]/assetDetail.gql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fragment AssetDetail on Asset {
imageMimetype
animationUrl
animationMimetype
bestBid {
bestOpenOffer {
unitPrice
amount
currency {
Expand All @@ -25,7 +25,7 @@ fragment AssetDetail on Asset {
symbol
}
}
firstSale {
bestListing {
id
unitPrice
currency {
Expand All @@ -39,8 +39,8 @@ fragment AssetDetail on Asset {
address
}
}
totalSalesCount
totalSalesCurrencyDistinctCount
totalListingsCount
totalListingsCurrencyDistinctCount
creator {
address
name
Expand Down

0 comments on commit be3d3d0

Please sign in to comment.