Socket
Socket
Sign inDemoInstall

@moralisweb3/streams-typings

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moralisweb3/streams-typings - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

addresses.ts

1

history.ts

@@ -14,2 +14,3 @@ import * as webhookTypes from '../types';

cursor?: string;
total: number;
}

@@ -16,0 +17,0 @@

17

index.d.ts
export interface Tags {
tag: string;
streamId: string;
streamType: string;
}

@@ -18,3 +17,2 @@

tag: string;
streamType: string;
}

@@ -30,3 +28,2 @@

tag: string;
streamType: string;
}

@@ -61,5 +58,3 @@

tag: string;
streamType: string;
}
export type AbiType = 'function' | 'constructor' | 'event' | 'fallback';

@@ -114,3 +109,3 @@ export type StateMutabilityType = 'pure' | 'view' | 'nonpayable' | 'payable';

export interface IAbi {
[key: string]: AbiItem;
[key: string]: AbiItem[];
}

@@ -120,3 +115,3 @@

transactionHash: string;
tokenAddress: string;
contract: string;
logIndex: string;

@@ -178,4 +173,10 @@ tag: string;

export interface INFTApprovalERC721 extends RootLog, IERC20ApprovalDecodeLog, INFTMetadata {}
export interface INFTApproval721DecodeLog {
owner: string;
approved: string;
tokenId: string;
}
export interface INFTApprovalERC721 extends RootLog, INFTApproval721DecodeLog, INFTMetadata {}
export interface INFTApprovalERC1155 extends RootLog, INFTApproval1155DecodeLog, INFTMetadata {}

@@ -182,0 +183,0 @@

{
"name": "@moralisweb3/streams-typings",
"version": "1.0.2",
"version": "1.0.3",
"description": "Streams Typings",

@@ -5,0 +5,0 @@ "typings": "index.d.ts",

@@ -15,13 +15,2 @@ /**

/**
* The stream type:
* [wallet] listen to all native transactions of the address and all logs where the address is involved in at least one of the topics
* [contract] listens to all native transactions of the address and all logs produced by the contract address
* @example {}
*/
export enum StreamsType {
wallet = 'wallet',
contract = 'contract',
}
/**
* Stringified UUIDv4.

@@ -48,9 +37,9 @@ * See [RFC 4112](https://tools.ietf.org/html/rfc4122)

/**
* The token address of the contract, required if the type : log
* An Array of topic0's in hex, required if the type : log
*/
tokenAddress?: string | null;
topic0?: string[] | null;
/**
* The topic0 of the event in hex, required if the type : log
* Include events for all addresses (only applied when abi and topic0 is provided)
*/
topic0?: string | null;
allAddresses?: boolean;
/**

@@ -60,16 +49,16 @@ * Include or not native transactions defaults to false (only applied when type:contract)

includeNativeTxs?: boolean;
abi?: StreamsAbi | null;
filter?: StreamsFilter | null;
/**
* The wallet address of the user, required if the type : tx
* Include or not logs of contract interactions defaults to false
*/
address?: string | null;
includeContractLogs?: boolean;
/**
* Include or not include internal transactions defaults to false
*/
includeInternalTxs?: boolean;
abi?: StreamsAbi[] | null;
advancedOptions?: advancedOptions[] | null;
/**
* The ids of the chains for this stream in hex Ex: ["0x1","0x38"]
*/
chainIds: string[];
/**
* The type of stream to create log or tx
*/
type: StreamsType;
}

@@ -81,11 +70,11 @@

*/
id?: UUID;
id: UUID;
/**
* The status of the stream.
*/
status?: StreamsStatus;
status: StreamsStatus;
/**
* Description of current status of stream.
*/
statusMessage?: string;
statusMessage: string;
}

@@ -109,2 +98,11 @@

/**
* Advanced Options for each specific topic
*/
export interface advancedOptions {
topic0: string;
filter?: StreamsFilter;
includeNativeTxs?: boolean;
}
/**
* The filter object, optional and only used if the type : log

@@ -111,0 +109,0 @@ * https://v1docs.moralis.io/moralis-dapp/automatic-transaction-sync/smart-contract-events#event-filters

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