Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nft/webhook

Package Overview
Dependencies
Maintainers
3
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nft/webhook - npm Package Compare versions

Comparing version 1.0.0-beta.14 to 1.0.0-beta.15

39

dist/types.d.ts
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 {};

4

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc