Skip to content

Commit

Permalink
chore: Rename events
Browse files Browse the repository at this point in the history
  • Loading branch information
jyotirmoydotdev committed Mar 9, 2024
1 parent 16a33a8 commit 1ba84b2
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 328 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
12 changes: 6 additions & 6 deletions subgraphs/chamber/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type ChangedGuard @entity(immutable: true) {
transactionHash: Bytes!
}

type Demoted @entity(immutable: true) {
type Demotion @entity(immutable: true) {
id: ID!
demoter: Bytes! # address
amt: BigInt! # uint256
Expand All @@ -48,7 +48,7 @@ type Initialized @entity(immutable: true) {
transactionHash: Bytes!
}

type Promoted @entity(immutable: true) {
type Promotion @entity(immutable: true) {
id: ID!
promoter: Bytes! # address
amt: BigInt! # uint256
Expand All @@ -59,7 +59,7 @@ type Promoted @entity(immutable: true) {
transactionHash: Bytes!
}

type ProposalApproved @entity(immutable: true) {
type ApprovedProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
tokenId: BigInt! # uint256
Expand All @@ -70,7 +70,7 @@ type ProposalApproved @entity(immutable: true) {
transactionHash: Bytes!
}

type ProposalCreated @entity(immutable: true) {
type CreatedProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
target: [Bytes!]! # address[]
Expand All @@ -84,7 +84,7 @@ type ProposalCreated @entity(immutable: true) {
transactionHash: Bytes!
}

type ProposalExecuted @entity(immutable: true) {
type ExecutedProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
contractAddress: Bytes! # address
Expand All @@ -93,7 +93,7 @@ type ProposalExecuted @entity(immutable: true) {
transactionHash: Bytes!
}

type ProposalCanceled @entity(immutable: true) {
type CanceledProposal @entity(immutable: true) {
id: ID!
proposalId: BigInt! # uint256
contractAddress: Bytes! # address
Expand Down
Loading

0 comments on commit 1ba84b2

Please sign in to comment.