-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
147 additions
and
134 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { DataMap, RawData, TopicMap } from './parts' | ||
|
||
export interface ContractLog { | ||
timeStamp: number | ||
triggerName: string | ||
uniqueId: string | ||
transactionId: string | ||
contractAddress: string | ||
callerAddress: string | ||
originAddress: string | ||
creatorAddress: string | ||
blockNumber: number | ||
blockHash: string | ||
removed: boolean | ||
latestSolidifiedBlockNumber: number | ||
logInfo: unknown | ||
rawData: RawData | ||
abi: unknown | ||
topicList: string[] | ||
data: string | ||
} | ||
|
||
export interface ContractEvent { | ||
timeStamp: number | ||
triggerName: string | ||
uniqueId: string | ||
transactionId: string | ||
contractAddress: string | ||
callerAddress: string | ||
originAddress: string | ||
creatorAddress: string | ||
blockNumber: number | ||
blockHash: string | ||
removed: boolean | ||
latestSolidifiedBlockNumber: number | ||
logInfo: unknown | ||
rawData: RawData | ||
abi: unknown | ||
eventSignature: string | ||
eventSignatureFull: string | ||
eventName: string | ||
topicMap: TopicMap | ||
dataMap: DataMap | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export interface BlockFilter { | ||
transactionSize?: number | ||
} | ||
|
||
export interface TransactionFilter { | ||
assetName?: string | null | ||
assetAmount?: number | ||
contractType?: string | ||
fromAddress?: string | ||
toAddress?: string | ||
} | ||
|
||
export interface SolidityFilter { | ||
contractAddress?: string | ||
creatorAddress?: string | ||
originAddress?: string | ||
eventName?: string | ||
} | ||
|
||
export interface EventFilters { | ||
block: BlockFilter | ||
contract: SolidityFilter | ||
solidity: SolidityFilter | ||
transaction: TransactionFilter | ||
} |
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,22 +1,17 @@ | ||
import Block from './block' | ||
import Solidity from './solidity' | ||
import Transaction from './transaction' | ||
import ContractLog from './contractlog' | ||
import SolidityLog from './soliditylog' | ||
import ContractEvent from './contractevent' | ||
import SolidityEvent from './solidityevent' | ||
import { Block } from './block' | ||
import { Transaction } from './transaction' | ||
import { ContractLog, ContractEvent } from './contract' | ||
import { Solidity, SolidityEvent, SolidityLog } from './solidity' | ||
|
||
export default interface EventTypes { | ||
export * from './block' | ||
export * from './filter' | ||
export * from './contract' | ||
export * from './solidity' | ||
export * from './transaction' | ||
|
||
export interface EventTypes { | ||
block: Block | ||
transaction: Transaction | ||
contract: ContractLog | ContractEvent | ||
solidity: Solidity | SolidityEvent | SolidityLog | ||
} | ||
|
||
export type { default as Block } from './block' | ||
export type { default as Solidity } from './solidity' | ||
export type { default as Transaction } from './transaction' | ||
export type { default as ContractLog } from './contractlog' | ||
export type { default as SolidityLog } from './soliditylog' | ||
export type { default as ContractEvent } from './contractevent' | ||
export type { default as SolidityEvent } from './solidityevent' |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export interface RawData { | ||
address: string | ||
topics: string[] | ||
data: string | ||
} | ||
|
||
export interface TopicMap { | ||
[x: string]: string | ||
from: string | ||
to: string | ||
} | ||
|
||
export interface DataMap { | ||
[x: string]: string | ||
value: string | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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