Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mojito-inc/core-service

Package Overview
Dependencies
Maintainers
0
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mojito-inc/core-service - npm Package Compare versions

Comparing version 1.0.8-beta.28 to 1.0.8-beta.29

18

Auction/data/AuctionData.d.ts

@@ -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;

373

Auction/Queries.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc