Skip to content

Commit

Permalink
Merge pull request #18 from loreum-org/chore/event-renames
Browse files Browse the repository at this point in the history
  • Loading branch information
xhad authored Mar 9, 2024
2 parents 16a33a8 + 3c64cc2 commit d34517b
Show file tree
Hide file tree
Showing 7 changed files with 343 additions and 342 deletions.
144 changes: 72 additions & 72 deletions subgraphs/chamber/abis/Chamber.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,35 +540,22 @@
},
{
"type": "event",
"name": "ChangedGuard",
"name": "ApprovedProposal",
"inputs": [
{
"name": "guard",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Demoted",
"inputs": [
{
"name": "demoter",
"type": "address",
"name": "proposalId",
"type": "uint256",
"indexed": false,
"internalType": "address"
"internalType": "uint256"
},
{
"name": "amt",
"name": "tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokenId",
"name": "approvals",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
Expand All @@ -578,35 +565,66 @@
},
{
"type": "event",
"name": "Initialized",
"name": "CanceledProposal",
"inputs": [
{
"name": "version",
"type": "uint8",
"name": "proposalId",
"type": "uint256",
"indexed": false,
"internalType": "uint8"
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Promoted",
"name": "ChangedGuard",
"inputs": [
{
"name": "promoter",
"name": "guard",
"type": "address",
"indexed": false,
"indexed": true,
"internalType": "address"
},
}
],
"anonymous": false
},
{
"type": "event",
"name": "CreatedProposal",
"inputs": [
{
"name": "amt",
"name": "proposalId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokenId",
"name": "target",
"type": "address[]",
"indexed": false,
"internalType": "address[]"
},
{
"name": "value",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
},
{
"name": "data",
"type": "bytes[]",
"indexed": false,
"internalType": "bytes[]"
},
{
"name": "voters",
"type": "uint256[5]",
"indexed": false,
"internalType": "uint256[5]"
},
{
"name": "nonce",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
Expand All @@ -616,22 +634,22 @@
},
{
"type": "event",
"name": "ProposalApproved",
"name": "Demotion",
"inputs": [
{
"name": "proposalId",
"type": "uint256",
"name": "demoter",
"type": "address",
"indexed": false,
"internalType": "uint256"
"internalType": "address"
},
{
"name": "tokenId",
"name": "amt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "approvals",
"name": "tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
Expand All @@ -641,7 +659,7 @@
},
{
"type": "event",
"name": "ProposalCanceled",
"name": "ExecutedProposal",
"inputs": [
{
"name": "proposalId",
Expand All @@ -654,53 +672,35 @@
},
{
"type": "event",
"name": "ProposalCreated",
"name": "Initialized",
"inputs": [
{
"name": "proposalId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "target",
"type": "address[]",
"indexed": false,
"internalType": "address[]"
},
{
"name": "value",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
},
{
"name": "data",
"type": "bytes[]",
"indexed": false,
"internalType": "bytes[]"
},
{
"name": "voters",
"type": "uint256[5]",
"indexed": false,
"internalType": "uint256[5]"
},
{
"name": "nonce",
"type": "uint256",
"name": "version",
"type": "uint8",
"indexed": false,
"internalType": "uint256"
"internalType": "uint8"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ProposalExecuted",
"name": "Promotion",
"inputs": [
{
"name": "proposalId",
"name": "promoter",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "amt",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
Expand Down
32 changes: 16 additions & 16 deletions subgraphs/chamber/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ type OwnershipTransferred @entity(immutable: true) {
type ChangedGuard @entity(immutable: true) {
id: ID!
guard: Bytes! # address
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

type Demoted @entity(immutable: true) {
type Demotion @entity(immutable: true) {
id: ID!
demoter: Bytes! # address
amt: BigInt! # uint256
tokenId: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
Expand All @@ -42,61 +42,61 @@ type Demoted @entity(immutable: true) {
type Initialized @entity(immutable: true) {
id: ID!
version: Int! # uint8
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

type Promoted @entity(immutable: true) {
type Promotion @entity(immutable: true) {
id: ID!
promoter: Bytes! # address
amt: BigInt! # uint256
tokenId: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

type ProposalApproved @entity(immutable: true) {
type ApprovedProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
tokenId: BigInt! # uint256
approvals: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

type ProposalCreated @entity(immutable: true) {
type CreatedProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
target: [Bytes!]! # address[]
value: [BigInt!]! # uint256[]
data: [Bytes!]! # bytes[]
voters: [BigInt!]! # uint256[5]
nonce: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

type ProposalExecuted @entity(immutable: true) {
type ExecutedProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}

type ProposalCanceled @entity(immutable: true) {
type CanceledProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
Expand All @@ -106,7 +106,7 @@ type ReceivedEther @entity(immutable: true) {
id: ID!
sender: Bytes! # address
value: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
Expand All @@ -116,7 +116,7 @@ type ReceivedFallback @entity(immutable: true) {
id: ID!
sender: Bytes! # address
value: BigInt! # uint256
contractAddress: Bytes! # address
chamber: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
Expand Down
Loading

0 comments on commit d34517b

Please sign in to comment.