-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhandler.ts
20 lines (18 loc) · 981 Bytes
/
handler.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import {getClient} from './elastic'
import {
getCheckpointBlocksHandler,
getSnapshotHandler,
getTransactionsByAddressHandler,
getTransactionsByReceiverHandler,
getTransactionsBySenderHandler,
getTransactionsBySnapshotHandler,
getTransactionsHandler
} from './service'
const client = getClient()
export const snapshots = async event => getSnapshotHandler(event, client)()
export const checkpointBlocks = async event => getCheckpointBlocksHandler(event, client)()
export const transactions = async event => getTransactionsHandler(event, client)()
export const transactionsBySnapshot = async event => getTransactionsBySnapshotHandler(event, client)()
export const transactionsByAddress = async event => getTransactionsByAddressHandler(event, client)()
export const transactionsBySender = async event => getTransactionsBySenderHandler(event, client)()
export const transactionsByReceiver = async event => getTransactionsByReceiverHandler(event, client)()