Skip to content

Commit

Permalink
Merge pull request #29 from loreum-org/chore/multiproxy-to-loreumproxy
Browse files Browse the repository at this point in the history
Chore/multiproxy to loreumproxy
  • Loading branch information
xhad authored Apr 11, 2024
2 parents f4011ba + a5e2a89 commit ccd3601
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ yarn lint

| Release | Subgraph | URL |
| --------- | ------------------------- | ---------------------------------------------------------------------------|
| vX.X.X | loreum-registry-sepolia | https://api.studio.thegraph.com/query/67520/loreum-registry-sepolia/v0.0.2 |
| vX.X.X | loreum-registry-sepolia | https://api.studio.thegraph.com/query/67520/loreum-registry-sepolia/vX.X.X |
6 changes: 2 additions & 4 deletions subgraphs/chamber/abis/Chamber.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"name": "approve",
"inputs": [
{ "name": "proposalId", "type": "uint256", "internalType": "uint256" },
{ "name": "tokenId", "type": "uint256", "internalType": "uint256" },
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
{ "name": "tokenId", "type": "uint256", "internalType": "uint256" }
],
"outputs": [],
"stateMutability": "nonpayable"
Expand Down Expand Up @@ -73,8 +72,7 @@
"name": "execute",
"inputs": [
{ "name": "proposalId", "type": "uint256", "internalType": "uint256" },
{ "name": "tokenId", "type": "uint256", "internalType": "uint256" },
{ "name": "signature", "type": "bytes", "internalType": "bytes" }
{ "name": "tokenId", "type": "uint256", "internalType": "uint256" }
],
"outputs": [],
"stateMutability": "nonpayable"
Expand Down
5 changes: 5 additions & 0 deletions subgraphs/chamber/abis/Registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,5 +261,10 @@
"type": "error",
"name": "deployFailed",
"inputs": []
},
{
"type": "error",
"name": "insufficientBalance",
"inputs": []
}
]
4 changes: 2 additions & 2 deletions subgraphs/chamber/networks.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"sepolia": {
"Registry": {
"address": "0x46A49D4391F2F220D3661b2a2BFe4b306EE18845",
"startBlock": 5433794
"address": "0xB3a7323b70A29604686a2da4d053cF429BAC4E7E",
"startBlock": 5659777
}
},
"holesky": {
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/chamber/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dataSources:
network: sepolia
source:
abi: Registry
address: "0x46A49D4391F2F220D3661b2a2BFe4b306EE18845"
startBlock: 5433794
address: "0xB3a7323b70A29604686a2da4d053cF429BAC4E7E"
startBlock: 5659777
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand Down
20 changes: 10 additions & 10 deletions subgraphs/chamber/tests/chamber.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("Chamber Test", () => {
const event = createChangedGuardEvent(guard);
return event;
};
test("Handel ChangedGuard Tx", () => {
test("Handle ChangedGuard Tx", () => {
const event = createMockChangedGuardEvent();
handleChangedGuard(event);
expectChangedGuardAdded(event);
Expand All @@ -76,7 +76,7 @@ describe("Chamber Test", () => {
const event = createDemotionEvent(demoter, amt, tokenId);
return event;
};
test("Handel Demotion Tx", () => {
test("Handle Demotion Tx", () => {
const event = createMockDemotionEvent();
handleDemotion(event);
expectDemotionAdded(event);
Expand All @@ -88,7 +88,7 @@ describe("Chamber Test", () => {
const event = createInitializedEvent(version);
return event;
};
test("Handel Initialized Tx", () => {
test("Handle Initialized Tx", () => {
const event = createMockInitializedEvent();
handleInitialized(event);
expectInitializedAdded(event);
Expand All @@ -104,7 +104,7 @@ describe("Chamber Test", () => {
const event = createPromotionEvent(promoter, amt, tokenId);
return event;
};
test("Handel Promotion Tx", () => {
test("Handle Promotion Tx", () => {
const event = createMockPromotionEvent();
handlePromotion(event);
expectPromotionAdded(event);
Expand All @@ -120,7 +120,7 @@ describe("Chamber Test", () => {
const event = createApprovedProposalEvent(proposalId, tokenId, approvals);
return event;
};
test("Handel ApprovedProposal Tx", () => {
test("Handle ApprovedProposal Tx", () => {
const event = createMockApprovedProposalEvent();
handleApprovedProposal(event);
expectApprovedProposalAdded(event);
Expand All @@ -146,7 +146,7 @@ describe("Chamber Test", () => {
// );
// return event;
// };
// test ("Handel CreatedProposal Tx", () => {
// test ("Handle CreatedProposal Tx", () => {
// const event = createMockCreatedProposalEvent();
// handleCreatedProposal(event);
// expectCreatedProposalAdded(event);
Expand All @@ -158,7 +158,7 @@ describe("Chamber Test", () => {
const event = createExecutedProposalEvent(proposalId);
return event;
};
test("Handel ExecutedProposal Tx", () => {
test("Handle ExecutedProposal Tx", () => {
const event = createMockExecutedProposalEvent();
handleExecutedProposal(event);
expectExecutedProposalAdded(event);
Expand All @@ -170,7 +170,7 @@ describe("Chamber Test", () => {
const event = createCanceledProposalEvent(proposalId);
return event;
};
test("Handel CanceledProposal Tx", () => {
test("Handle CanceledProposal Tx", () => {
const event = createMockCanceledProposalEvent();
handleCanceledProposal(event);
expectCanceledProposalAdded(event);
Expand All @@ -185,7 +185,7 @@ describe("Chamber Test", () => {
const event = createReceivedEtherEvent(sender, value);
return event;
};
test("Handel ReceivedEther Tx", () => {
test("Handle ReceivedEther Tx", () => {
const event = createMockReceivedEtherEvent();
handleReceivedEther(event);
expectReceivedEtherAdded(event);
Expand All @@ -200,7 +200,7 @@ describe("Chamber Test", () => {
const event = createReceivedFallbackEvent(sender, value);
return event;
};
test("Handel ReceivedFallback Tx", () => {
test("Handle ReceivedFallback Tx", () => {
const event = createMockReceivedFallbackEvent();
handleReceivedFallback(event);
expectReceivedFallbackAdded(event);
Expand Down
4 changes: 2 additions & 2 deletions subgraphs/chamber/tests/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("Registry Test", () => {
const event = createChamberDeployedEvent(chamber, serial, deployer, memberToken, govToken);
return event;
};
test("Handel ChamberDeployed Tx", () => {
test("Handle ChamberDeployed Tx", () => {
const event = createMockChamberDeployedEvent();
handleChamberDeployed(event);
expectChamberDeployedAdded(event);
Expand All @@ -35,7 +35,7 @@ describe("Registry Test", () => {
const event = createOwnershipTransferredEvent(previousOwner, newOwner);
return event;
};
test("Handel OwnershipTransferred Tx", () => {
test("Handle OwnershipTransferred Tx", () => {
const event = createMockOwnershipTransferredEvent();
handleOwnershipTransferred(event);
expectOwnershipTransferredAdded(event);
Expand Down

0 comments on commit ccd3601

Please sign in to comment.