Skip to content

Commit

Permalink
update indexer client
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Jul 23, 2024
1 parent 8fee566 commit 30bb6e9
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions packages/indexer/src/indexer.gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
// sequence-indexer v0.4.0 604761d36d9ef082fa97d028f8315ccdedf19838
// sequence-indexer v0.4.0 9accea267e7db3d66f40d5e0f27db92eb5a29e2f
// --
// Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
//
Expand All @@ -12,7 +12,7 @@ export const WebRPCVersion = 'v1'
export const WebRPCSchemaVersion = 'v0.4.0'

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = '604761d36d9ef082fa97d028f8315ccdedf19838'
export const WebRPCSchemaHash = '9accea267e7db3d66f40d5e0f27db92eb5a29e2f'

//
// Types
Expand Down Expand Up @@ -96,7 +96,7 @@ export enum EventLogType {
}

export enum EventLogDataType {
UNKNOWN = 'UNKNOWN',
EVENT = 'EVENT',
TOKEN_TRANSFER = 'TOKEN_TRANSFER',
NATIVE_TOKEN_TRANSFER = 'NATIVE_TOKEN_TRANSFER',
SEQUENCE_TXN = 'SEQUENCE_TXN'
Expand Down Expand Up @@ -218,14 +218,15 @@ export interface IndexedBlock {
blockShortHash: string
}

export interface TxnData {
export interface TxnInfo {
from: string
to: string
value: string
}

export interface EventLog {
id: number
uid: string
type: EventLogType
blockNumber: number
blockHash: string
Expand All @@ -234,11 +235,20 @@ export interface EventLog {
contractType: ContractType
txnHash: string
txnIndex: number
txnData: TxnData
txnLogIndex: number
logDataType: EventLogDataType
ts: string
logData: string
txnInfo?: TxnInfo
rawLog?: { [key: string]: any }
event?: EventDecoded
}

export interface EventDecoded {
topicHash: string
eventSig: string
types: Array<string>
names: Array<string>
values: Array<string>
}

export interface TokenBalance {
Expand Down Expand Up @@ -343,7 +353,6 @@ export interface TransactionFilter {
to?: string
contractAddress?: string
event?: string
topicHash?: string
}

export interface TransactionReceipt {
Expand Down Expand Up @@ -396,10 +405,9 @@ export interface WebhookListener {

export interface EventFilter {
events?: Array<string>
topicHashes?: Array<string>
contractAddresses?: Array<string>
tokenIDs?: Array<string>
accounts?: Array<string>
tokenIDs?: Array<string>
}

export interface TokenBalanceFilter {
Expand Down

0 comments on commit 30bb6e9

Please sign in to comment.