Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions packages/marketplace/src/marketplace.gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
// marketplace-api 6b46374337129883386b9668e652237c3b31eda1
// marketplace-api 8535c64d0c715b5b14537454f62633dbfae6288c
// --
// Code generated by webrpc-gen@v0.25.4 with typescript generator. DO NOT EDIT.
//
Expand All @@ -8,7 +8,7 @@
export const WebrpcHeader = 'Webrpc'

export const WebrpcHeaderValue =
'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-6b46374337129883386b9668e652237c3b31eda1'
'webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-8535c64d0c715b5b14537454f62633dbfae6288c'

// WebRPC description and code-gen version
export const WebRPCVersion = 'v1'
Expand All @@ -17,7 +17,7 @@ export const WebRPCVersion = 'v1'
export const WebRPCSchemaVersion = ''

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = '6b46374337129883386b9668e652237c3b31eda1'
export const WebRPCSchemaHash = '8535c64d0c715b5b14537454f62633dbfae6288c'

type WebrpcGenVersions = {
webrpcGenVersion: string
Expand Down Expand Up @@ -71,6 +71,12 @@ function parseWebrpcGenVersions(header: string): WebrpcGenVersions {
// Types
//

export enum MetadataStatus {
NOT_AVAILABLE = 'NOT_AVAILABLE',
REFRESHING = 'REFRESHING',
AVAILABLE = 'AVAILABLE'
}

export interface TokenMetadata {
tokenId: string
name: string
Expand All @@ -87,6 +93,7 @@ export interface TokenMetadata {
decimals?: number
updatedAt?: string
assets?: Array<Asset>
status: MetadataStatus
}

export interface Asset {
Expand Down Expand Up @@ -145,7 +152,8 @@ export enum SourceKind {
unknown = 'unknown',
external = 'external',
sequence_marketplace_v1 = 'sequence_marketplace_v1',
sequence_marketplace_v2 = 'sequence_marketplace_v2'
sequence_marketplace_v2 = 'sequence_marketplace_v2',
opensea = 'opensea'
}

export enum OrderSide {
Expand All @@ -154,6 +162,12 @@ export enum OrderSide {
offer = 'offer'
}

export enum OfferType {
unknown = 'unknown',
item = 'item',
collection = 'collection'
}

export enum OrderStatus {
unknown = 'unknown',
active = 'active',
Expand Down Expand Up @@ -268,7 +282,10 @@ export enum TransactionSwapProvider {

export enum ExecuteType {
unknown = 'unknown',
order = 'order'
order = 'order',
createListing = 'createListing',
createItemOffer = 'createItemOffer',
createTraitOffer = 'createTraitOffer'
}

export enum ActivityAction {
Expand All @@ -292,6 +309,11 @@ export enum PrimarySaleContractStatus {
failed = 'failed'
}

export enum PrimarySaleVersion {
v0 = 'v0',
v1 = 'v1'
}

export enum PrimarySaleItemDetailType {
unknown = 'unknown',
global = 'global',
Expand Down Expand Up @@ -415,6 +437,8 @@ export interface CollectionConfig {
export interface CollectionLastSynced {
allOrders: string
newOrders: string
name: string
next: string
}

export interface Project {
Expand Down Expand Up @@ -564,6 +588,7 @@ export interface PrimarySaleContract {
contractAddress: string
collectionAddress: string
contractType: ContractType
version: PrimarySaleVersion
currencyAddress: string
priceDecimals: number
status: PrimarySaleContractStatus
Expand All @@ -585,6 +610,8 @@ export interface PrimarySaleItem {
priceAmount: string
priceAmountFormatted: string
supply: string
supplyCap: string
unlimitedSupply: boolean
createdAt: string
updatedAt: string
deletedAt?: string
Expand Down Expand Up @@ -1171,6 +1198,7 @@ export interface GenerateListingTransactionArgs {
contractType: ContractType
orderbook: OrderbookKind
listing: CreateReq
additionalFees: Array<AdditionalFee>
walletType?: WalletKind
}

Expand All @@ -1184,7 +1212,9 @@ export interface GenerateOfferTransactionArgs {
contractType: ContractType
orderbook: OrderbookKind
offer: CreateReq
additionalFees: Array<AdditionalFee>
walletType?: WalletKind
offerType: OfferType
}

export interface GenerateOfferTransactionReturn {
Expand Down