diff --git a/packages/foundry/lib/reputation b/packages/foundry/lib/reputation index 32f7100..080ba0d 160000 --- a/packages/foundry/lib/reputation +++ b/packages/foundry/lib/reputation @@ -1 +1 @@ -Subproject commit 32f7100bdb3511201574409b0e489e9295dac1cf +Subproject commit 080ba0d40a569592bea860a32822f59654a75132 diff --git a/packages/foundry/script/DeployDemo.s.sol b/packages/foundry/script/DeployDemo.s.sol index 0d2ef42..f2e2e42 100644 --- a/packages/foundry/script/DeployDemo.s.sol +++ b/packages/foundry/script/DeployDemo.s.sol @@ -15,7 +15,7 @@ import {ReputationFaucet} from "../contracts/Reputation/ReputationFaucet.sol"; contract DeployDemoScript is ScaffoldETHDeploy { error InvalidPrivateKey(string); - address controller = 0x4161f8A8DfF60aEdB63baFb7d5843b0988393eC9; //replace with burner or other address from wallet! + address controller = 0x2F15D4A66D22ecC6967928b6A76Ab06897b05676; //replace with burner or other address from wallet! function run() external { uint256 deployerPrivateKey = setupLocalhostEnv(); diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index 33fd368..0103b4c 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -7,13 +7,13 @@ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract"; const deployedContracts = { 31337: { ReputationTokens: { - address: "0xaB7B4c595d3cE8C85e16DA86630f2fc223B05057", + address: "0x1fA02b2d6A771842690194Cf62D91bdd92BfE28d", abi: [ { type: "constructor", inputs: [ { - name: "owner", + name: "newOwner", type: "address", internalType: "address", }, @@ -129,6 +129,42 @@ const deployedContracts = { ], stateMutability: "view", }, + { + type: "function", + name: "_createToken", + inputs: [ + { + name: "tokenProperties", + type: "tuple", + internalType: "struct ReputationTokens.TokenProperties", + components: [ + { + name: "tokenType", + type: "uint8", + internalType: "enum ReputationTokens.TokenType", + }, + { + name: "maxMintAmountPerTx", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + name: "id", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "tokenId", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, { type: "function", name: "balanceOf", @@ -1476,7 +1512,7 @@ const deployedContracts = { }, }, ReputationFaucet: { - address: "0x12Bcb546bC60fF39F1Adfc7cE4605d5Bd6a6A876", + address: "0xf4B146FbA71F41E0592668ffbF264F1D186b2Ca8", abi: [ { type: "constructor", @@ -1601,7 +1637,7 @@ const deployedContracts = { }, }, Hats: { - address: "0x071586BA1b380B00B793Cc336fe01106B0BFbE6D", + address: "0x49fd2BE640DB2910c2fAb69bB8531Ab6E76127ff", abi: [ { type: "constructor", @@ -3562,7 +3598,7 @@ const deployedContracts = { }, }, MultiClaimsHatter: { - address: "0xccf1769D8713099172642EB55DDFFC0c5A444FE9", + address: "0xA4899D35897033b927acFCf422bc745916139776", abi: [ { type: "constructor", @@ -3888,7 +3924,7 @@ const deployedContracts = { }, }, ActiveModule: { - address: "0x2Dd78Fd9B8F40659Af32eF98555B8b31bC97A351", + address: "0xAA292E8611aDF267e563f334Ee42320aC96D0463", abi: [ { type: "function", @@ -3918,7 +3954,7 @@ const deployedContracts = { inheritedFunctions: {}, }, ERC1155EligibiltiyModule: { - address: "0x56fC17a65ccFEC6B7ad0aDe9BD9416CB365B9BE8", + address: "0x5c74c94173F05dA1720953407cbb920F3DF9f887", abi: [ { type: "constructor",