@nft/webhook
Advanced tools
Comparing version 1.0.0-beta.15-prerelease-2 to 1.0.0-beta.16-prerelease-1
declare type Uint256 = string; | ||
declare type IsoDate = string; | ||
declare type ChainId = number; | ||
declare type Address = string; | ||
export declare type Event<T extends keyof Events> = { | ||
@@ -13,3 +15,3 @@ type: T; | ||
export declare type Account = { | ||
address: string; | ||
address: Address; | ||
username: string | null; | ||
@@ -21,6 +23,22 @@ email: string | null; | ||
name: string; | ||
collection: Collection; | ||
}; | ||
export declare type Auction = { | ||
id: string; | ||
createdAt: IsoDate; | ||
creator: Account; | ||
endAt: IsoDate; | ||
asset: Asset; | ||
reserveAmount: Uint256; | ||
currency: Currency; | ||
}; | ||
export declare type Collection = { | ||
chainId: ChainId; | ||
address: Address; | ||
name: string; | ||
}; | ||
export declare type Offer = { | ||
createdAt: IsoDate; | ||
id: string; | ||
type: 'BUY' | 'SALE'; | ||
asset: Asset; | ||
@@ -33,8 +51,28 @@ unitPrice: Uint256; | ||
expiredAt: IsoDate; | ||
auction: Auction | null; | ||
}; | ||
export declare type Trade = { | ||
transactionHash: Uint256; | ||
timestamp: IsoDate; | ||
blockNumber: number; | ||
chainId: ChainId; | ||
offer: Offer; | ||
buyer: Account; | ||
seller: Account; | ||
amount: Uint256; | ||
unitPrice: Uint256; | ||
quantity: Uint256; | ||
currency: Currency; | ||
}; | ||
export declare type Events = { | ||
BID_CREATED: Offer; | ||
BID_EXPIRED: Offer; | ||
OFFER_CREATED: Offer; | ||
OFFER_EXPIRED: Offer; | ||
TRADE_CREATED: Trade; | ||
AUCTION_ENDED: Auction; | ||
AUCTION_EXPIRED: Auction; | ||
AUCTION_BID_CREATED: Offer; | ||
AUCTION_BID_EXPIRED: Offer; | ||
}; | ||
export {}; |
{ | ||
"name": "@nft/webhook", | ||
"version": "1.0.0-beta.15-prerelease-2", | ||
"version": "1.0.0-beta.16-prerelease-1", | ||
"main": "./dist/index.js", | ||
@@ -19,3 +19,3 @@ "typings": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "ec278487d62b4ef72a7f13f22f23b4df81bf8aa5" | ||
"gitHead": "46b62db1b1d1a743f135a063ee8934cbf31dd7b3" | ||
} |
6925
166