Skip to content

Commit

Permalink
update indexer gw proto file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiam committed Dec 4, 2024
1 parent 0ebcb51 commit 3703245
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions packages/indexer/src/indexergw.gen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable */
// sequence-indexer v0.4.0 c96ed5614ea00d705a44f3643b3c018ae284edb9
// sequence-indexer v0.4.0 d960167880a902941f2b547a5fac897aff336661
// --
// Code generated by [email protected] with typescript generator. DO NOT EDIT.
//
Expand All @@ -16,7 +16,7 @@ export const WebRPCVersion = "v1"
export const WebRPCSchemaVersion = "v0.4.0"

// Schema hash generated from your RIDL schema
export const WebRPCSchemaHash = "c96ed5614ea00d705a44f3643b3c018ae284edb9"
export const WebRPCSchemaHash = "d960167880a902941f2b547a5fac897aff336661"

type WebrpcGenVersions = {
webrpcGenVersion: string;
Expand Down Expand Up @@ -514,19 +514,19 @@ export interface TokenBalancesByContractFilter {
export interface GatewayEtherBalance {
chainID: number
error: string
balance: EtherBalance
result: EtherBalance
}

export interface GatewayNativeTokenBalance {
chainID: number
error: string
balance: NativeTokenBalance
result: NativeTokenBalance
}

export interface GatewayTokenBalance {
chainID: number
error: string
balances: Array<TokenBalance>
results: Array<TokenBalance>
}

export interface IndexerGateway {
Expand All @@ -545,7 +545,7 @@ export interface GetNativeTokenBalanceArgs {
}

export interface GetNativeTokenBalanceReturn {
balances: Array<GatewayNativeTokenBalance>
indexers: Array<GatewayNativeTokenBalance>
}
export interface GetTokenBalancesArgs {
chainIDs?: Array<number>
Expand All @@ -560,7 +560,7 @@ export interface GetTokenBalancesArgs {

export interface GetTokenBalancesReturn {
page: Page
balances: Array<GatewayTokenBalance>
indexers: Array<GatewayTokenBalance>
}
export interface GetTokenBalancesSummaryArgs {
chainIDs?: Array<number>
Expand All @@ -571,7 +571,7 @@ export interface GetTokenBalancesSummaryArgs {

export interface GetTokenBalancesSummaryReturn {
page: Page
balances: Array<GatewayTokenBalance>
indexers: Array<GatewayTokenBalance>
}
export interface GetTokenBalancesDetailsArgs {
chainIDs?: Array<number>
Expand All @@ -582,7 +582,7 @@ export interface GetTokenBalancesDetailsArgs {

export interface GetTokenBalancesDetailsReturn {
page: Page
balances: Array<GatewayTokenBalance>
indexers: Array<GatewayTokenBalance>
}
export interface GetTokenBalancesByContractArgs {
chainIDs?: Array<number>
Expand All @@ -593,7 +593,7 @@ export interface GetTokenBalancesByContractArgs {

export interface GetTokenBalancesByContractReturn {
page: Page
balances: Array<GatewayTokenBalance>
indexers: Array<GatewayTokenBalance>
}
export interface GetBalanceUpdatesArgs {
chainIDs?: Array<number>
Expand All @@ -605,7 +605,7 @@ export interface GetBalanceUpdatesArgs {

export interface GetBalanceUpdatesReturn {
page: Page
balances: Array<GatewayTokenBalance>
indexers: Array<GatewayTokenBalance>
}
export interface PingArgs {
}
Expand Down Expand Up @@ -639,7 +639,7 @@ export class IndexerGateway implements IndexerGateway {
createHTTPRequest(args, headers, signal)).then((res) => {
return buildResponse(res).then(_data => {
return {
balances: <Array<GatewayNativeTokenBalance>>(_data.balances),
indexers: <Array<GatewayNativeTokenBalance>>(_data.indexers),
}
})
}, (error) => {
Expand All @@ -654,7 +654,7 @@ export class IndexerGateway implements IndexerGateway {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
balances: <Array<GatewayTokenBalance>>(_data.balances),
indexers: <Array<GatewayTokenBalance>>(_data.indexers),
}
})
}, (error) => {
Expand All @@ -669,7 +669,7 @@ export class IndexerGateway implements IndexerGateway {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
balances: <Array<GatewayTokenBalance>>(_data.balances),
indexers: <Array<GatewayTokenBalance>>(_data.indexers),
}
})
}, (error) => {
Expand All @@ -684,7 +684,7 @@ export class IndexerGateway implements IndexerGateway {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
balances: <Array<GatewayTokenBalance>>(_data.balances),
indexers: <Array<GatewayTokenBalance>>(_data.indexers),
}
})
}, (error) => {
Expand All @@ -699,7 +699,7 @@ export class IndexerGateway implements IndexerGateway {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
balances: <Array<GatewayTokenBalance>>(_data.balances),
indexers: <Array<GatewayTokenBalance>>(_data.indexers),
}
})
}, (error) => {
Expand All @@ -714,7 +714,7 @@ export class IndexerGateway implements IndexerGateway {
return buildResponse(res).then(_data => {
return {
page: <Page>(_data.page),
balances: <Array<GatewayTokenBalance>>(_data.balances),
indexers: <Array<GatewayTokenBalance>>(_data.indexers),
}
})
}, (error) => {
Expand Down

0 comments on commit 3703245

Please sign in to comment.