Socket
Socket
Sign inDemoInstall

@moralisweb3/streams-typings

Package Overview
Dependencies
Maintainers
8
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.6 to 1.0.7

2

history.ts

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

date: Date;
payload?: webhookTypes.IWebhookUnParsed;
payload?: webhookTypes.IWebhookUnParsed | webhookTypes.AptosWebhook;
tinyPayload: webhookTypes.ITinyPayload;

@@ -9,0 +9,0 @@ errorMessage: string;

@@ -0,1 +1,3 @@

export type AptosNetwork = ('mainnet' | 'testnet' | 'devnet')[];
export interface Log extends Trigger {

@@ -220,1 +222,67 @@ logIndex: string;

}
type AptosCoin = {
name: string;
decimals: number;
symbol: string;
};
type AptosCoinTransfer = {
coin: AptosCoin;
to: string;
value: string;
from: string;
valueWithDecimals: number;
transaction: string;
};
type AptosBlock = {
number: string;
timestamp: string;
hash: string;
firstVersion: string;
lastVersion: string;
};
type AptosTransaction = {
hash: string;
success: boolean;
sender: string;
gasLimit: string;
stateChangeHash: string;
eventChangeHash: string;
gasUsed: string;
type: string;
gasUnitPrice: string;
};
type AptosCoinDeposit = {
value: string;
address: string;
coin: AptosCoin;
valueWithDecimals: string;
sequenceNumber: string;
};
type AptosCoinWithdrawal = {
value: string;
address: string;
coin: AptosCoin;
valueWithDecimals: string;
sequenceNumber: string;
};
export interface AptosWebhook {
block: AptosBlock;
changes: any[];
coinDeposits: AptosCoinDeposit[];
coinTransfers: AptosCoinTransfer[];
coinWithdrawals: AptosCoinWithdrawal[];
events: any[];
network: AptosNetwork[number];
payloads: any[];
retries: number;
streamId: string;
tag: string;
transactions: AptosTransaction[];
}
{
"name": "@moralisweb3/streams-typings",
"version": "1.0.6",
"version": "1.0.7",
"description": "Streams Typings",

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

@@ -17,2 +17,52 @@ import { AbiItem } from './index';

export type AptosNetwork = ('mainnet' | 'testnet' | 'devnet')[];
export type AptosCreateStreamType = {
/**
* Include events for all addresses (only applied when at least one event or function is provided)
*/
allAddresses?: boolean;
/**
* Indicator if it is a demo stream
*/
demo?: boolean;
/**
* A description for this stream
*/
description: string;
/**
* Include or not raw changes for every transaction in webhook defaults to false
*/
includeChanges?: boolean;
/**
* Include or not events in webhook defaults to false
*/
includeEvents?: boolean;
/**
* Include or not payload for every transaction in webhook defaults to false
*/
includePayload?: boolean;
/**
* The network to listen to
* @example ['mainnet']
*/
network: AptosNetwork;
/**
* An Array of events in string-signature format ex: ['0x1::coin::WithdrawEvent']
*/
events?: string[];
/**
* An Array of events in string-signature format ex: ['0x1::aptos_account::transfer']
*/
functions?: string[];
/**
* A user-provided tag that will be send along the webhook, the user can use this tag to identify the specific stream if multiple streams are present
*/
tag: string;
/**
* Webhook URL where moralis will send the POST request.
*/
webhookUrl: string;
};
/**

@@ -48,3 +98,3 @@ * Stringified UUIDv4.

/**
* Include or not native transactions defaults to false (only applied when type:contract)
* Include or not native transactions defaults to false
*/

@@ -51,0 +101,0 @@ includeNativeTxs?: boolean;

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