@nft/webhook
Advanced tools
Comparing version 1.0.0-beta.14 to 1.0.0-beta.15
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,27 @@ 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_BID_CREATED: Offer; | ||
AUCTION_BID_EXPIRED: Offer; | ||
}; | ||
export {}; |
{ | ||
"name": "@nft/webhook", | ||
"version": "1.0.0-beta.14", | ||
"version": "1.0.0-beta.15", | ||
"main": "./dist/index.js", | ||
@@ -19,3 +19,3 @@ "typings": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "67228f9c8399ca401dbc0b7e0d469e63e02f384b" | ||
"gitHead": "fc1b256e8dd412e23b09136a491df62d0d1cb278" | ||
} |
6882
165