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
61 changes: 55 additions & 6 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 bcf6441b3d44246f3254b6277949416b79f9cef7
// --
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
//
Expand All @@ -8,7 +8,7 @@
export const WebrpcHeader = 'Webrpc'

export const WebrpcHeaderValue =
'[email protected];[email protected];[email protected]6b46374337129883386b9668e652237c3b31eda1'
'[email protected];[email protected];[email protected]bcf6441b3d44246f3254b6277949416b79f9cef7'

// 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 = 'bcf6441b3d44246f3254b6277949416b79f9cef7'

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 @@ -334,6 +356,13 @@ export interface CollectiblesFilter {
ordersNotCreatedBy?: Array<string>
inCurrencyAddresses?: Array<string>
notInCurrencyAddresses?: Array<string>
prices?: Array<PriceFilter>
}

export interface PriceFilter {
contractAddress: string
min?: string
max?: string
}

export interface Order {
Expand All @@ -343,6 +372,7 @@ export interface Order {
status: OrderStatus
chainId: number
originName: string
slug: string
collectionContractAddress: string
tokenId?: string
createdBy: string
Expand Down Expand Up @@ -415,6 +445,8 @@ export interface CollectionConfig {
export interface CollectionLastSynced {
allOrders: string
newOrders: string
names: Array<string>
cursors: { [key: string]: string }
}

export interface Project {
Expand Down Expand Up @@ -538,6 +570,16 @@ export interface CheckoutOptions {
onRamp: Array<TransactionOnRampProvider>
}

export interface ExecuteInput {
chainId: string
signature: string
method: string
endpoint: string
slug: string
executeType: ExecuteType
body: any
}

export interface Activity {
chainId: number
contractAddress: string
Expand All @@ -564,6 +606,7 @@ export interface PrimarySaleContract {
contractAddress: string
collectionAddress: string
contractType: ContractType
version: PrimarySaleVersion
currencyAddress: string
priceDecimals: number
status: PrimarySaleContractStatus
Expand All @@ -585,6 +628,8 @@ export interface PrimarySaleItem {
priceAmount: string
priceAmountFormatted: string
supply: string
supplyCap: string
unlimitedSupply: boolean
createdAt: string
updatedAt: string
deletedAt?: string
Expand Down Expand Up @@ -875,7 +920,7 @@ export interface Marketplace {
signal?: AbortSignal
): Promise<GenerateCancelTransactionReturn>
/**
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market, use onlyu ExecuteInput and leave other inputs empty, they are depracated and kept only for backward compatibility
*/
execute(args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn>
/**
Expand Down Expand Up @@ -1171,6 +1216,7 @@ export interface GenerateListingTransactionArgs {
contractType: ContractType
orderbook: OrderbookKind
listing: CreateReq
additionalFees: Array<AdditionalFee>
walletType?: WalletKind
}

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

export interface GenerateOfferTransactionReturn {
Expand All @@ -1202,6 +1250,7 @@ export interface GenerateCancelTransactionReturn {
steps: Array<Step>
}
export interface ExecuteArgs {
params: ExecuteInput
chainId: string
signature: string
method: string
Expand Down
Loading