From 965a751834040c8ba7b0098fef94c1e4885cc92a Mon Sep 17 00:00:00 2001 From: xhad Date: Thu, 7 Mar 2024 13:57:49 -0500 Subject: [PATCH] chore: Updates for release --- subgraphs/chamber/abis/Chamber.json | 46 ++-- subgraphs/chamber/abis/Registry.json | 304 +++++++++++++-------------- subgraphs/chamber/networks.json | 4 +- subgraphs/chamber/package.json | 7 +- subgraphs/chamber/subgraph.yaml | 5 +- 5 files changed, 184 insertions(+), 182 deletions(-) diff --git a/subgraphs/chamber/abis/Chamber.json b/subgraphs/chamber/abis/Chamber.json index be40200..14f9a01 100644 --- a/subgraphs/chamber/abis/Chamber.json +++ b/subgraphs/chamber/abis/Chamber.json @@ -38,20 +38,20 @@ }, { "type": "function", - "name": "approveProposal", + "name": "approve", "inputs": [ { - "name": "_proposalId", + "name": "proposalId", "type": "uint256", "internalType": "uint256" }, { - "name": "_tokenId", + "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { - "name": "_signature", + "name": "signature", "type": "bytes", "internalType": "bytes" } @@ -61,10 +61,10 @@ }, { "type": "function", - "name": "cancelProposal", + "name": "cancel", "inputs": [ { - "name": "_proposalId", + "name": "proposalId", "type": "uint256", "internalType": "uint256" } @@ -77,12 +77,12 @@ "name": "constructMessageHash", "inputs": [ { - "name": "_proposalId", + "name": "proposalId", "type": "uint256", "internalType": "uint256" }, { - "name": "_tokenId", + "name": "tokenId", "type": "uint256", "internalType": "uint256" } @@ -98,20 +98,20 @@ }, { "type": "function", - "name": "createProposal", + "name": "create", "inputs": [ { - "name": "_target", + "name": "targets", "type": "address[]", "internalType": "address[]" }, { - "name": "_value", + "name": "values", "type": "uint256[]", "internalType": "uint256[]" }, { - "name": "_data", + "name": "datas", "type": "bytes[]", "internalType": "bytes[]" } @@ -124,12 +124,12 @@ "name": "demote", "inputs": [ { - "name": "_amt", + "name": "amount", "type": "uint256", "internalType": "uint256" }, { - "name": "_tokenId", + "name": "tokenId", "type": "uint256", "internalType": "uint256" } @@ -152,20 +152,20 @@ }, { "type": "function", - "name": "executeProposal", + "name": "execute", "inputs": [ { - "name": "_proposalId", + "name": "proposalId", "type": "uint256", "internalType": "uint256" }, { - "name": "_tokenId", + "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { - "name": "_signature", + "name": "signature", "type": "bytes", "internalType": "bytes" } @@ -397,12 +397,12 @@ "name": "promote", "inputs": [ { - "name": "_amt", + "name": "amount", "type": "uint256", "internalType": "uint256" }, { - "name": "_tokenId", + "name": "tokenId", "type": "uint256", "internalType": "uint256" } @@ -490,17 +490,17 @@ "name": "verifySignature", "inputs": [ { - "name": "_proposalId", + "name": "proposalId", "type": "uint256", "internalType": "uint256" }, { - "name": "_tokenId", + "name": "tokenId", "type": "uint256", "internalType": "uint256" }, { - "name": "_signature", + "name": "signature", "type": "bytes", "internalType": "bytes" } diff --git a/subgraphs/chamber/abis/Registry.json b/subgraphs/chamber/abis/Registry.json index c3f15f7..ef6a93b 100644 --- a/subgraphs/chamber/abis/Registry.json +++ b/subgraphs/chamber/abis/Registry.json @@ -1,265 +1,265 @@ [ { + "type": "constructor", "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "chamberBeacon", "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" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "chambers", "inputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "chambers", "outputs": [ { - "internalType": "address", "name": "chamber", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "memberToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "govToken", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "deploy", "inputs": [ { - "internalType": "address", - "name": "_memberToken", - "type": "address" + "name": "erc721", + "type": "address", + "internalType": "address" }, { - "internalType": "address", - "name": "_govToken", - "type": "address" + "name": "erc20", + "type": "address", + "internalType": "address" } ], - "name": "deploy", "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "getChambers", "inputs": [ { - "internalType": "uint256", "name": "limit", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" }, { - "internalType": "uint256", "name": "skip", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "name": "getChambers", "outputs": [ { + "name": "", + "type": "tuple[]", + "internalType": "struct IRegistry.ChamberData[]", "components": [ { - "internalType": "address", "name": "chamber", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "memberToken", - "type": "address" + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "govToken", - "type": "address" + "type": "address", + "internalType": "address" } - ], - "internalType": "struct IRegistry.ChamberData[]", - "name": "", - "type": "tuple[]" + ] } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "initialize", "inputs": [ { - "internalType": "address", - "name": "_chamberVersion", - "type": "address" + "name": "_chamberBeacon", + "type": "address", + "internalType": "address" }, { - "internalType": "address", "name": "_owner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "initialize", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "owner", + "inputs": [], "outputs": [ { - "internalType": "address", "name": "", - "type": "address" + "type": "address", + "internalType": "address" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { - "inputs": [], + "type": "function", "name": "renounceOwnership", + "inputs": [], "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { + "type": "function", + "name": "setChamberBeacon", "inputs": [ { - "internalType": "address", - "name": "_chamberVersion", - "type": "address" + "name": "_chamberBeacon", + "type": "address", + "internalType": "address" } ], - "name": "setChamberVersion", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" }, { - "inputs": [], + "type": "function", "name": "totalChambers", + "inputs": [], "outputs": [ { - "internalType": "uint256", "name": "", - "type": "uint256" + "type": "uint256", + "internalType": "uint256" } ], - "stateMutability": "view", - "type": "function" + "stateMutability": "view" }, { + "type": "function", + "name": "transferOwnership", "inputs": [ { - "internalType": "address", "name": "newOwner", - "type": "address" + "type": "address", + "internalType": "address" } ], - "name": "transferOwnership", "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "ChamberDeployed", + "inputs": [ + { + "name": "chamber", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "serial", + "type": "uint256", + "indexed": true, + "internalType": "uint256" + }, + { + "name": "deployer", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "memberToken", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "govToken", + "type": "address", + "indexed": false, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "Initialized", + "inputs": [ + { + "name": "version", + "type": "uint8", + "indexed": false, + "internalType": "uint8" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "previousOwner", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "newOwner", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "deployFailed", + "inputs": [] } ] diff --git a/subgraphs/chamber/networks.json b/subgraphs/chamber/networks.json index 8ba862c..fd7e8c2 100644 --- a/subgraphs/chamber/networks.json +++ b/subgraphs/chamber/networks.json @@ -1,8 +1,8 @@ { "sepolia": { "Registry": { - "address": "0x62996E7041C0A434B8d0268EF7F6BBCf2d668dA7", - "startBlock": 5281759 + "address": "0x46A49D4391F2F220D3661b2a2BFe4b306EE18845", + "startBlock": 5433794 } } } diff --git a/subgraphs/chamber/package.json b/subgraphs/chamber/package.json index aa5a98a..550b00c 100644 --- a/subgraphs/chamber/package.json +++ b/subgraphs/chamber/package.json @@ -8,16 +8,17 @@ "scripts": { "start": "yarn codegen && yarn build:local && yarn remove:local && yarn create:local && yarn deploy:local", "codegen": "graph codegen", + "build": "graph build subgraph.yaml", + "test": "graph test", "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:sepolia": "graph build subgraph.yaml --network sepolia", "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:sepolia": "graph deploy --studio --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ loreum/loreum-registry-sepolia subgraph.yaml --network sepolia", "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" } } diff --git a/subgraphs/chamber/subgraph.yaml b/subgraphs/chamber/subgraph.yaml index e8c43ae..0780ad6 100644 --- a/subgraphs/chamber/subgraph.yaml +++ b/subgraphs/chamber/subgraph.yaml @@ -6,8 +6,8 @@ dataSources: name: Registry network: sepolia source: - address: "0x62996E7041C0A434B8d0268EF7F6BBCf2d668dA7" abi: Registry + address: "0x46A49D4391F2F220D3661b2a2BFe4b306EE18845" startBlock: 5281759 mapping: kind: ethereum/events @@ -21,7 +21,8 @@ dataSources: - name: Registry file: ./abis/Registry.json eventHandlers: - - event: ChamberDeployed(indexed address,indexed uint256,indexed address,address,address) + - event: ChamberDeployed(indexed address,indexed uint256,indexed + address,address,address) handler: handleChamberDeployed - event: OwnershipTransferred(indexed address,indexed address) handler: handleOwnershipTransferred