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

@haechi-labs/henesis-sdk

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haechi-labs/henesis-sdk - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

30

dist/event.d.ts
export declare namespace Ethereum {
interface ProcessedEvent {
interface Data {
event: Event;
userMeta: UserMeta;
blockMeta: BlockMeta;
}
interface Event {
id: string;

@@ -8,4 +13,4 @@ name: string;

};
userMeta: UserMeta;
blockMeta: BlockMeta;
function: Function;
transaction: Transaction;
contractAddress: string;

@@ -21,3 +26,2 @@ topics: string[];

integrationId: string;
url: string;
userId: number;

@@ -27,4 +31,3 @@ }

type: string;
function: Function;
transaction: Transaction;
blockNumber: number;
blockHeader: BlockHeader;

@@ -77,3 +80,8 @@ }

export declare namespace Klaytn {
interface ProcessedEvent {
interface Data {
event: Event;
userMeta: UserMeta;
blockMeta: BlockMeta;
}
interface Event {
id: string;

@@ -84,4 +92,4 @@ name: string;

};
userMeta: UserMeta;
blockMeta: BlockMeta;
function: Function;
transaction: Transaction;
contractAddress: string;

@@ -97,3 +105,2 @@ topics: string[];

integrationId: string;
url: string;
userId: number;

@@ -103,4 +110,3 @@ }

type: string;
function: Function;
transaction: Transaction;
blockNumber: number;
blockHeader: BlockHeader;

@@ -107,0 +113,0 @@ }

2

package.json
{
"name": "@haechi-labs/henesis-sdk",
"version": "0.0.5",
"version": "0.1.0",
"description": "SDK to build handler of Henesis",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -9,3 +9,3 @@ # henesis-sdk

exports.handler = (event: Ethereum.ProcessedEvent) => {
exports.handler = (web3, data: Ethereum.Data) => {
// do something awesome !

@@ -57,7 +57,7 @@ return result;

exports.handler = (event: Ethereum.ProcessedEvent) => {
const { blockMeta } = event;
const { receipt } = blockMeta;
exports.handler = (web3, data: Ethereum.Data) => {
const { event } = data;
const { transaction } = event;
if (receipt.gasUsed >= 10000) {
if (transaction.gasUsed >= 10000) {
return {

@@ -64,0 +64,0 @@ id: event.id,

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