Skip to content

Commit

Permalink
Merge pull request #172 from MTthoas/abi/StakingFactory
Browse files Browse the repository at this point in the history
add abi for the staking's factory
  • Loading branch information
Guiiz94 authored Jul 20, 2024
2 parents 3b48f87 + 003c1e9 commit 2702e1d
Showing 1 changed file with 104 additions and 0 deletions.
104 changes: 104 additions & 0 deletions next-app/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2702e1d

Please sign in to comment.