Skip to content

Commit

Permalink
⬆️ Update post roles review
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Sep 28, 2024
1 parent 11c62e4 commit 991295d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 50 deletions.
14 changes: 7 additions & 7 deletions packages/ponder/abis/addresses.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"campaignBankFactory": "0xd785CaDfC8ABF9145A076d8509ccA4f6718A39e2",
"campaignFactory": "0xFA1615F87FB920Ce2d5E77CEB5F941f508B1e7BE",
"facetFactory": "0x7Db1473e226Ac406e485155FBFAA34F3B1FC84C5",
"campaignBankFactory": "0x383922F9ab2Ee7b61Cd2BFF1DEB782733eDc246F",
"campaignFactory": "0xe621E3E82bEAD4a10f2f2e95f6297b659Fc7525D",
"facetFactory": "0x4B189E97a1ccC40Ae5F0E014603c69e4c80a57a4",
"mUSDToken": "0x56039fa1a804F614eBD714139F29a3ff4DB57ad6",
"productAdministratorlRegistry": "0x62254d732C078BF0484EA7dBd61f7F620184F95e",
"productInteractionManager": "0x7E328974649540BBB883bADC382d2476855C1180",
"productRegistry": "0xdA7fBD02eb048bDf6f1607122eEe071e44f0b9F2",
"purchaseOracle": "0xe9AAfC206b806B8f0c79Cf739A6632c1249C1aaB",
"productAdministratorRegistry": "0x932fe8a2dd6f8d1009FB916f0F1FEB85cB18316E",
"productInteractionManager": "0x089369aD02bc21459fE4101151fD6D2bBD7FA08A",
"productRegistry": "0x5752E0FB600C59E140CDAfDA7AC8933774c19280",
"purchaseOracle": "0x334C29312Db5cc0e63cD842ACb9D17326e8a254A",
"referralRegistry": "0x80B0385e97263A60BafB554B0C4152261D45785A"
}
24 changes: 0 additions & 24 deletions packages/ponder/abis/interactionAbis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,20 +515,6 @@ export const productInteractionDiamondAbi = [
],
stateMutability: "view",
},
{
type: "function",
inputs: [
{
name: "_interactionData",
internalType: "bytes32",
type: "bytes32",
},
{ name: "_user", internalType: "address", type: "address" },
],
name: "getNonceForInteraction",
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
stateMutability: "view",
},
{
type: "function",
inputs: [],
Expand Down Expand Up @@ -951,16 +937,6 @@ export const productInteractionManagerAbi = [
outputs: [],
stateMutability: "nonpayable",
},
{
type: "function",
inputs: [
{ name: "_productId", internalType: "uint256", type: "uint256" },
{ name: "_user", internalType: "address", type: "address" },
],
name: "isAllowedOnProduct",
outputs: [{ name: "", internalType: "bool", type: "bool" }],
stateMutability: "view",
},
{
type: "function",
inputs: [],
Expand Down
37 changes: 19 additions & 18 deletions packages/ponder/abis/registryAbis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export const productAdministratorRegistryAbi = [
{
type: "function",
inputs: [
{ name: "productId", internalType: "uint256", type: "uint256" },
{ name: "user", internalType: "address", type: "address" },
{ name: "roles", internalType: "uint256", type: "uint256" },
{ name: "_productId", internalType: "uint256", type: "uint256" },
{ name: "_user", internalType: "address", type: "address" },
{ name: "_roles", internalType: "uint256", type: "uint256" },
],
name: "hasAllRolesOrAdmin",
name: "hasAllRolesOrOwner",
outputs: [{ name: "", internalType: "bool", type: "bool" }],
stateMutability: "view",
},
Expand All @@ -62,10 +62,22 @@ export const productAdministratorRegistryAbi = [
type: "function",
inputs: [
{ name: "_productId", internalType: "uint256", type: "uint256" },
{ name: "_caller", internalType: "address", type: "address" },
{ name: "_user", internalType: "address", type: "address" },
{ name: "_roles", internalType: "uint256", type: "uint256" },
],
name: "isAuthorizedAdmin",
outputs: [{ name: "", internalType: "bool", type: "bool" }],
name: "onlyAllRolesOrOwner",
outputs: [],
stateMutability: "view",
},
{
type: "function",
inputs: [
{ name: "_productId", internalType: "uint256", type: "uint256" },
{ name: "_user", internalType: "address", type: "address" },
{ name: "_roles", internalType: "uint256", type: "uint256" },
],
name: "onlyAnyRolesOrOwner",
outputs: [],
stateMutability: "view",
},
{
Expand Down Expand Up @@ -269,16 +281,6 @@ export const productRegistryAbi = [
outputs: [{ name: "result", internalType: "bool", type: "bool" }],
stateMutability: "view",
},
{
type: "function",
inputs: [
{ name: "_productId", internalType: "uint256", type: "uint256" },
{ name: "_caller", internalType: "address", type: "address" },
],
name: "isAuthorized",
outputs: [{ name: "", internalType: "bool", type: "bool" }],
stateMutability: "view",
},
{
type: "function",
inputs: [
Expand Down Expand Up @@ -752,7 +754,6 @@ export const purchaseOracleAbi = [
name: "MerkleRootUpdated",
},
{ type: "error", inputs: [], name: "MerkleRootNotSet" },
{ type: "error", inputs: [], name: "Unauthorized" },
] as const;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion packages/ponder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"codegen": "ponder --config config/config-local.ts codegen",
"dev": "ponder dev",
"dev": "ponder --config config/config-dev.ts dev",
"format": "biome check --write .",
"format:check": "biome check .",
"lint": "biome lint .",
Expand Down

0 comments on commit 991295d

Please sign in to comment.