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.2.0 to 0.3.0

14

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

@@ -69,9 +64,4 @@ name: string;

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

@@ -78,0 +68,0 @@ name: string;

2

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

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

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

exports.handler = (web3, data: Ethereum.Data) => {
exports.handler = (web3, event: Ethereum.Event, blockMeta: Ethereum.BlockMeta, userMeta: Ethereum.UserMeta) => {
// do something awesome !

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

exports.handler = (web3, data: Ethereum.Data) => {
const { event } = data;
const { transaction } = event;
exports.handler = (web3, event: Ethereum.Event, blockMeta: Ethereum.BlockMeta, userMeta: Ethereum.UserMeta) => {
const { index, payload } = event;
const { name, data, transaction } = payload;
if (transaction.gasUsed >= 10000) {
return {
id: event.id,
index: index,
msg: "gas used over 10000"

@@ -66,0 +66,0 @@ };

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