-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement transactions by address endpoint
- Loading branch information
Showing
6 changed files
with
156 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
import {getClient} from './elastic' | ||
import {getCheckpointBlocksHandler, getSnapshotHandler, getTransactionsBySnapshotHandler, getTransactionsHandler} from './service' | ||
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)() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters