Skip to content

Update marketplace client #745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: v2
Choose a base branch
from
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
21 changes: 18 additions & 3 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 c61a788fa5ec759cb8fa989e113468e18e47f632
// --
// 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]c61a788fa5ec759cb8fa989e113468e18e47f632'

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

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 @@ -292,6 +299,11 @@ export enum PrimarySaleContractStatus {
failed = 'failed'
}

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

export enum PrimarySaleItemDetailType {
unknown = 'unknown',
global = 'global',
Expand Down Expand Up @@ -564,6 +576,7 @@ export interface PrimarySaleContract {
contractAddress: string
collectionAddress: string
contractType: ContractType
version: PrimarySaleVersion
currencyAddress: string
priceDecimals: number
status: PrimarySaleContractStatus
Expand All @@ -585,6 +598,8 @@ export interface PrimarySaleItem {
priceAmount: string
priceAmountFormatted: string
supply: string
supplyCap: string
unlimitedSupply: boolean
createdAt: string
updatedAt: string
deletedAt?: string
Expand Down
Loading