From 003c1e985befd0e2924a79fd7f9a95eb0437b60f Mon Sep 17 00:00:00 2001 From: Matteo Date: Sat, 20 Jul 2024 14:40:21 +0200 Subject: [PATCH] add abi for the staking's factory --- next-app/wagmi.config.ts | 104 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/next-app/wagmi.config.ts b/next-app/wagmi.config.ts index 28d0503..38775b5 100644 --- a/next-app/wagmi.config.ts +++ b/next-app/wagmi.config.ts @@ -315,6 +315,110 @@ export default defineConfig(() => { } ] }, + { + name: "StakingFactoryContract", + address: env.NEXT_PUBLIC_STAKING_FACTORY_ADDRESS as Address, + abi : [ + { + "type":"function", + "name":"createStakingContract", + "inputs":[ + { + "name":"_stakingToken", + "type":"address", + "internalType":"address" + }, + { + "name":"_initialRewardReserve", + "type":"uint256", + "internalType":"uint256" + } + ], + "outputs":[ + { + "name":"", + "type":"address", + "internalType":"address" + } + ], + "stateMutability":"nonpayable" + }, + { + "type":"function", + "name":"getAllStakingContracts", + "inputs":[ + + ], + "outputs":[ + { + "name":"", + "type":"address[]", + "internalType":"address[]" + } + ], + "stateMutability":"view" + }, + { + "type":"function", + "name":"getAllStakingStats", + "inputs":[ + + ], + "outputs":[ + { + "name":"totalStaked", + "type":"uint256", + "internalType":"uint256" + }, + { + "name":"totalRewardRate", + "type":"uint256", + "internalType":"uint256" + } + ], + "stateMutability":"view" + }, + { + "type":"function", + "name":"stakingContracts", + "inputs":[ + { + "name":"", + "type":"uint256", + "internalType":"uint256" + } + ], + "outputs":[ + { + "name":"", + "type":"address", + "internalType":"address" + } + ], + "stateMutability":"view" + }, + { + "type":"event", + "name":"StakingContractCreated", + "inputs":[ + { + "name":"stakingContract", + "type":"address", + "indexed":true, + "internalType":"address" + } + ], + "anonymous":false + }, + { + "type":"error", + "name":"ReentrancyGuardReentrantCall", + "inputs":[ + + ] + } + ] + }, { name: "TokenContract", address: env.NEXT_PUBLIC_GENX_ADDRESS as Address,