Skip to content

Commit

Permalink
feat: Chamber subgraph added
Browse files Browse the repository at this point in the history
  • Loading branch information
jyotirmoydotdev committed Feb 14, 2024
1 parent fe112d4 commit 604a32a
Show file tree
Hide file tree
Showing 15 changed files with 2,093 additions and 0 deletions.
787 changes: 787 additions & 0 deletions subgraphs/chamber/abis/Chamber.json

Large diffs are not rendered by default.

265 changes: 265 additions & 0 deletions subgraphs/chamber/abis/Registry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "deployFailed",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "chamber",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "serial",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "deployer",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "memberToken",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "govToken",
"type": "address"
}
],
"name": "ChamberDeployed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "chamberVersion",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "chambers",
"outputs": [
{
"internalType": "address",
"name": "chamber",
"type": "address"
},
{
"internalType": "address",
"name": "memberToken",
"type": "address"
},
{
"internalType": "address",
"name": "govToken",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_memberToken",
"type": "address"
},
{
"internalType": "address",
"name": "_govToken",
"type": "address"
}
],
"name": "deploy",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "limit",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "skip",
"type": "uint256"
}
],
"name": "getChambers",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "chamber",
"type": "address"
},
{
"internalType": "address",
"name": "memberToken",
"type": "address"
},
{
"internalType": "address",
"name": "govToken",
"type": "address"
}
],
"internalType": "struct IRegistry.ChamberData[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_chamberVersion",
"type": "address"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_chamberVersion",
"type": "address"
}
],
"name": "setChamberVersion",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalChambers",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
1 change: 1 addition & 0 deletions subgraphs/chamber/matchstick.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libsFolder: ../../node_modules
8 changes: 8 additions & 0 deletions subgraphs/chamber/networks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"sepolia": {
"Registry": {
"address": "0x62996E7041C0A434B8d0268EF7F6BBCf2d668dA7",
"startBlock": 5281759
}
}
}
23 changes: 23 additions & 0 deletions subgraphs/chamber/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "chamber",
"description": "chamber Subgraph",
"version": "1.0.0",
"repository": "[email protected]:looksrare/subgraphs.git",
"author": "Loreum",
"license": "MIT",
"scripts": {
"start": "yarn codegen && yarn build:local && yarn remove:local && yarn create:local && yarn deploy:local",
"codegen": "graph codegen",
"build:local": "graph build subgraph.yaml --network localhost",
"create:local": "graph create --node http://localhost:8020/ chamber --network localhost",
"remove:local": "graph remove --node http://localhost:8020/ chamber --network localhost",
"deploy:local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 chamber --version-label v0.0.1 --network localhost",
"build:goerli": "graph build subgraph.yaml --network goerli",
"build:mainnet": "graph build subgraph.yaml --network mainnet",
"deploy:goerli": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ loreum/chamber subgraph.yaml --network goerli",
"deploy:mainnet": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ looksrare/aggregator subgraph.yaml --network mainnet",
"deploy:studio": "graph codegen subgraph.yaml && graph build subgraph.yaml && graph deploy --studio chamber --network mainnet",
"test": "graph test -r",
"test:lerna": "graph codegen subgraph.yaml && graph build subgraph.yaml && graph test -r"
}
}
Loading

0 comments on commit 604a32a

Please sign in to comment.