@moralisweb3/streams-typings
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15046
629
0