Skip to content

Commit

Permalink
events to support aic sim
Browse files Browse the repository at this point in the history
  • Loading branch information
apexearth committed Nov 7, 2024
1 parent 783ee89 commit 88c19f1
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 17 additions & 15 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -553,21 +553,23 @@ type AeroVoterAbstained @entity {
# amount: BigInt!
#}
#
#type AeroVoterGaugeCreated @entity {
# id: ID!
# chainId: Int! @index
# blockNumber: Int! @index
# timestamp: DateTime! @index
# address: String! @index
# poolFactory: String! @index
# votingRewardsFactory: String! @index
# gaugeFactory: String! @index
# pool: String!
# bribeVotingReward: String!
# feeVotingReward: String!
# gauge: String!
# creator: String!
#}

type AeroVoterGaugeCreated @entity {
id: ID!
chainId: Int! @index
blockNumber: Int! @index
timestamp: DateTime! @index
address: String! @index
poolFactory: String! @index
votingRewardsFactory: String! @index
gaugeFactory: String! @index
pool: String!
bribeVotingReward: String!
feeVotingReward: String!
gauge: String!
creator: String!
}

#
#type AeroVoterGaugeKilled @entity {
# id: ID!
Expand Down
54 changes: 54 additions & 0 deletions src/model/generated/aeroVoterGaugeCreated.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, IntColumn as IntColumn_, Index as Index_, DateTimeColumn as DateTimeColumn_, StringColumn as StringColumn_} from "@subsquid/typeorm-store"

@Entity_()
export class AeroVoterGaugeCreated {
constructor(props?: Partial<AeroVoterGaugeCreated>) {
Object.assign(this, props)
}

@PrimaryColumn_()
id!: string

@Index_()
@IntColumn_({nullable: false})
chainId!: number

@Index_()
@IntColumn_({nullable: false})
blockNumber!: number

@Index_()
@DateTimeColumn_({nullable: false})
timestamp!: Date

@Index_()
@StringColumn_({nullable: false})
address!: string

@Index_()
@StringColumn_({nullable: false})
poolFactory!: string

@Index_()
@StringColumn_({nullable: false})
votingRewardsFactory!: string

@Index_()
@StringColumn_({nullable: false})
gaugeFactory!: string

@StringColumn_({nullable: false})
pool!: string

@StringColumn_({nullable: false})
bribeVotingReward!: string

@StringColumn_({nullable: false})
feeVotingReward!: string

@StringColumn_({nullable: false})
gauge!: string

@StringColumn_({nullable: false})
creator!: string
}
1 change: 1 addition & 0 deletions src/model/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export * from "./aeroVoterEscrowUnlockPermanent.model"
export * from "./aeroVoterEscrowWithdraw.model"
export * from "./aeroVoterEscrowWithdrawManaged.model"
export * from "./aeroVoterAbstained.model"
export * from "./aeroVoterGaugeCreated.model"
export * from "./aeroVoterVoted.model"
export * from "./aeroPoolState.model"
export * from "./aeroClPoolState.model"
Expand Down

0 comments on commit 88c19f1

Please sign in to comment.