@mojito-inc/core-service
Advanced tools
Comparing version 1.0.8-beta.28 to 1.0.8-beta.29
@@ -38,2 +38,12 @@ import { MarketplaceCollectionItemStatus, BidsItemData, MarketplaceUser } from './BidsItem'; | ||
} | ||
export interface NetworkDetails { | ||
id: string; | ||
name: string; | ||
chainID: number; | ||
isTestnet: boolean; | ||
} | ||
export interface CollectionDetails { | ||
tokenType: string; | ||
network: NetworkDetails; | ||
} | ||
export interface CollectionItemByClaimCode { | ||
@@ -45,2 +55,10 @@ id: string; | ||
collectionId: string; | ||
asset?: { | ||
currentVersion: { | ||
cdnUrl: string; | ||
}; | ||
}; | ||
collectionDetails?: CollectionDetails; | ||
deliveryMethod?: string; | ||
description?: string; | ||
saleType: string; | ||
@@ -47,0 +65,0 @@ isRedeemedCode: boolean; |
import { gql } from '@apollo/client'; | ||
const auctionDetailsQueries = gql ` | ||
query auctionDetailsQueries($id: UUID1!) { | ||
collectionItemById(id: $id) { | ||
id | ||
name | ||
artist { | ||
artistName | ||
} | ||
status | ||
marketplaceTokenId | ||
collectionSlug | ||
slug | ||
collectionId | ||
saleType | ||
paymentCurrencyId | ||
isOnchain | ||
NFTDetails { | ||
contractAddress | ||
tokenId | ||
tokenType | ||
network { | ||
id | ||
name | ||
chainID | ||
} | ||
networkID | ||
owner | ||
metadata { | ||
name | ||
description | ||
image | ||
animationURL | ||
openSeaImageURL | ||
animationFormat | ||
animationType | ||
} | ||
nftAttributes { | ||
traitType | ||
traitValue | ||
} | ||
artist { | ||
id | ||
description | ||
artistName | ||
} | ||
nftTokenId | ||
} | ||
isReserved | ||
details { | ||
... on MarketplaceClaimableOutput { | ||
id | ||
totalUnits | ||
perWalletLimit | ||
startDate | ||
endDate | ||
claimingType | ||
totalAvailableUnits | ||
} | ||
... on MarketplaceAuctionLot { | ||
id | ||
startingBid | ||
startDate | ||
endDate | ||
currentBid { | ||
userId | ||
currentBid | ||
isMine | ||
walletAddress | ||
marketplaceUser { | ||
id | ||
username | ||
avatar | ||
} | ||
} | ||
myBid { | ||
currentBid | ||
maximumBid | ||
} | ||
currentBid { | ||
currentBid | ||
maximumBid | ||
} | ||
bids { | ||
query auctionDetailsQueries($id: UUID1!) { | ||
collectionItemById(id: $id) { | ||
id | ||
amount | ||
createdAt | ||
maximumBid | ||
marketplaceAuctionLotId | ||
walletAddress | ||
createdAt | ||
txHash | ||
txStatus | ||
marketplaceUser { | ||
id | ||
username | ||
avatar | ||
name | ||
artist { | ||
artistName | ||
} | ||
} | ||
marketplaceAuctionOnChainSettings { | ||
endTransactionHash | ||
} | ||
status | ||
marketplaceTokenId | ||
collectionSlug | ||
slug | ||
collectionId | ||
saleType | ||
paymentCurrencyId | ||
isOnchain | ||
NFTDetails { | ||
contractAddress | ||
tokenId | ||
tokenType | ||
network { | ||
id | ||
name | ||
chainID | ||
} | ||
networkID | ||
owner | ||
metadata { | ||
name | ||
description | ||
image | ||
animationURL | ||
openSeaImageURL | ||
animationFormat | ||
animationType | ||
} | ||
nftAttributes { | ||
traitType | ||
traitValue | ||
} | ||
artist { | ||
id | ||
description | ||
artistName | ||
} | ||
nftTokenId | ||
} | ||
isReserved | ||
details { | ||
... on MarketplaceClaimableOutput { | ||
id | ||
totalUnits | ||
perWalletLimit | ||
startDate | ||
endDate | ||
claimingType | ||
totalAvailableUnits | ||
} | ||
... on MarketplaceAuctionLot { | ||
id | ||
startingBid | ||
startDate | ||
endDate | ||
currentBid { | ||
userId | ||
currentBid | ||
isMine | ||
walletAddress | ||
marketplaceUser { | ||
id | ||
username | ||
avatar | ||
} | ||
} | ||
myBid { | ||
currentBid | ||
maximumBid | ||
} | ||
currentBid { | ||
currentBid | ||
maximumBid | ||
} | ||
bids { | ||
id | ||
amount | ||
createdAt | ||
maximumBid | ||
marketplaceAuctionLotId | ||
walletAddress | ||
createdAt | ||
txHash | ||
txStatus | ||
marketplaceUser { | ||
id | ||
username | ||
avatar | ||
} | ||
} | ||
marketplaceAuctionOnChainSettings { | ||
endTransactionHash | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`; | ||
const auctionDetailsByClaimCodeQueries = gql ` | ||
query collectionItemByClaimCode($claimCode: String!) { | ||
collectionItemByClaimCode(claimCode: $claimCode) { | ||
id | ||
name | ||
status | ||
saleType | ||
isRedeemedCode | ||
isOnchain | ||
NFTDetails { | ||
contractAddress | ||
tokenId | ||
tokenType | ||
network { | ||
id | ||
name | ||
chainID | ||
} | ||
networkID | ||
owner | ||
metadata { | ||
name | ||
description | ||
image | ||
animationURL | ||
openSeaImageURL | ||
animationFormat | ||
animationType | ||
} | ||
nftAttributes { | ||
traitType | ||
traitValue | ||
} | ||
nftTokenId | ||
query collectionItemByClaimCode($claimCode: String!) { | ||
collectionItemByClaimCode(claimCode: $claimCode) { | ||
id | ||
name | ||
status | ||
saleType | ||
isRedeemedCode | ||
isOnchain | ||
asset { | ||
currentVersion { | ||
cdnUrl | ||
} | ||
} | ||
collectionDetails { | ||
tokenType | ||
network { | ||
id | ||
name | ||
chainID | ||
isTestnet | ||
} | ||
} | ||
deliveryMethod | ||
description | ||
NFTDetails { | ||
contractAddress | ||
tokenId | ||
tokenType | ||
network { | ||
id | ||
name | ||
chainID | ||
} | ||
networkID | ||
owner | ||
metadata { | ||
name | ||
description | ||
image | ||
animationURL | ||
openSeaImageURL | ||
animationFormat | ||
animationType | ||
} | ||
nftAttributes { | ||
traitType | ||
traitValue | ||
} | ||
nftTokenId | ||
} | ||
isReserved | ||
details { | ||
... on MarketplaceClaimableOutput { | ||
id | ||
totalUnits | ||
perWalletLimit | ||
startDate | ||
endDate | ||
claimingType | ||
totalAvailableUnits | ||
} | ||
... on MarketplaceAuctionLot { | ||
id | ||
startingBid | ||
startDate | ||
endDate | ||
} | ||
} | ||
} | ||
} | ||
isReserved | ||
details { | ||
... on MarketplaceClaimableOutput { | ||
id | ||
totalUnits | ||
perWalletLimit | ||
startDate | ||
endDate | ||
claimingType | ||
totalAvailableUnits | ||
} | ||
... on MarketplaceAuctionLot { | ||
id | ||
startingBid | ||
startDate | ||
endDate | ||
} | ||
} | ||
} | ||
} | ||
`; | ||
const verifyOnChainBidQueries = gql ` | ||
mutation VerifyOnchainBid($lotID: UUID1!, $orgID: UUID1!, $walletAddress: String!, $amount: Float!){ | ||
verifyOnchainBid( | ||
lotID: $lotID, | ||
orgID: $orgID, | ||
walletAddress: $walletAddress, | ||
amount: $amount | ||
){ | ||
amount | ||
tax | ||
onChainAuctionContractAddress | ||
commissionFee | ||
platformFee | ||
mutation VerifyOnchainBid($lotID: UUID1!, $orgID: UUID1!, $walletAddress: String!, $amount: Float!) { | ||
verifyOnchainBid(lotID: $lotID, orgID: $orgID, walletAddress: $walletAddress, amount: $amount) { | ||
amount | ||
tax | ||
onChainAuctionContractAddress | ||
commissionFee | ||
platformFee | ||
} | ||
} | ||
} | ||
`; | ||
const confirmOnChainBidQueries = gql ` | ||
mutation confirmOnchainBid( $input: ConfirmOnChainBidInput){ | ||
confirmOnchainBid( | ||
input: $input | ||
){ | ||
amount | ||
tax | ||
isCurrent | ||
mutation confirmOnchainBid($input: ConfirmOnChainBidInput) { | ||
confirmOnchainBid(input: $input) { | ||
amount | ||
tax | ||
isCurrent | ||
} | ||
} | ||
} | ||
`; | ||
const createMarketplaceAuctionBidQueries = gql ` | ||
mutation createMarketplaceAuctionBid($marketplaceAuctionBid: MarketplaceAuctionBidInput!){ | ||
createMarketplaceAuctionBid( | ||
marketplaceAuctionBid: $marketplaceAuctionBid | ||
){ | ||
id | ||
marketplaceAuctionLotId | ||
transactionHash | ||
amount | ||
mutation createMarketplaceAuctionBid($marketplaceAuctionBid: MarketplaceAuctionBidInput!) { | ||
createMarketplaceAuctionBid(marketplaceAuctionBid: $marketplaceAuctionBid) { | ||
id | ||
marketplaceAuctionLotId | ||
transactionHash | ||
amount | ||
} | ||
} | ||
} | ||
`; | ||
export { auctionDetailsByClaimCodeQueries, auctionDetailsQueries, confirmOnChainBidQueries, createMarketplaceAuctionBidQueries, verifyOnChainBidQueries }; |
{ | ||
"name": "@mojito-inc/core-service", | ||
"version": "1.0.8-beta.28", | ||
"version": "1.0.8-beta.29", | ||
"description": "Mojito Core API service for auction, payment, token", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
446881
260
11923