@haechi-labs/henesis-sdk
Advanced tools
Comparing version 0.0.5 to 0.1.0
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 @@ } |
{ | ||
"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, |
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
8349
166