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.15-prerelease-2 to 1.0.0-beta.16-prerelease-1

40

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,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 {};

4

package.json
{
"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"
}
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