Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/multiproxy to loreumproxy #29

Merged
merged 6 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading