Skip to content

Commit

Permalink
updated abis, fixed VoteChanged event in AllInteractions (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevandee authored Sep 4, 2023
1 parent 4b5213a commit eb3da2c
Show file tree
Hide file tree
Showing 15 changed files with 397 additions and 512 deletions.
106 changes: 47 additions & 59 deletions AllInteractions/abis/DaoPool.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,62 +20,14 @@
"name": "isVoteFor",
"type": "bool"
},
{
"components": [
{
"internalType": "uint256",
"name": "personal",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "micropool",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "treasury",
"type": "uint256"
}
],
"indexed": false,
"internalType": "struct IGovPool.Votes",
"name": "votes",
"type": "tuple"
}
],
"name": "VoteChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "rewardToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"name": "totalVoted",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RewardCanceled",
"name": "VoteChanged",
"type": "event"
},
{
Expand Down Expand Up @@ -196,7 +148,13 @@
{
"indexed": false,
"internalType": "address",
"name": "user",
"name": "delegator",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "delegatee",
"type": "address"
},
{
Expand All @@ -212,7 +170,32 @@
"type": "uint256"
}
],
"name": "MicropoolRewardClaimed",
"name": "DelegatorRewardsClaimed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "delegatee",
"type": "address"
}
],
"name": "DelegatorRewardsSet",
"type": "event"
},
{
Expand Down Expand Up @@ -1192,12 +1175,7 @@
},
{
"internalType": "uint256",
"name": "voteForRewardsCoefficient",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "voteAgainstRewardsCoefficient",
"name": "voteRewardsCoefficient",
"type": "uint256"
}
],
Expand Down Expand Up @@ -1240,6 +1218,16 @@
"name": "votesAgainst",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rawVotesFor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "rawVotesAgainst",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "nftPowerSnapshotId",
Expand Down Expand Up @@ -1484,7 +1472,7 @@
},
{
"internalType": "uint256",
"name": "powerVoted",
"name": "totalRawVoted",
"type": "uint256"
},
{
Expand Down
154 changes: 134 additions & 20 deletions AllInteractions/abis/DaoValidators.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,31 @@
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "isInternal",
"type": "bool"
}
],
"name": "VoteCanceled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -222,6 +247,11 @@
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"name": "addressVoted",
Expand All @@ -235,6 +265,32 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
}
],
"name": "cancelVoteExternalProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
}
],
"name": "cancelVoteInternalProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand All @@ -253,6 +309,29 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "duration",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "executionDelay",
"type": "uint64"
},
{
"internalType": "uint128",
"name": "quorum",
"type": "uint128"
}
],
"name": "changeSettings",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -301,14 +380,9 @@
"type": "string"
},
{
"internalType": "uint256[]",
"name": "newValues",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "users",
"type": "address[]"
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "createInternalProposal",
Expand All @@ -324,7 +398,7 @@
"type": "uint256"
}
],
"name": "execute",
"name": "executeExternalProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand All @@ -337,7 +411,7 @@
"type": "uint256"
}
],
"name": "executeExternalProposal",
"name": "executeInternalProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -477,14 +551,9 @@
"type": "string"
},
{
"internalType": "uint256[]",
"name": "newValues",
"type": "uint256[]"
},
{
"internalType": "address[]",
"name": "userAddresses",
"type": "address[]"
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct IGovValidators.InternalProposal",
Expand Down Expand Up @@ -626,6 +695,29 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "tokens",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
},
{
"internalType": "address",
"name": "destination",
"type": "address"
}
],
"name": "monthlyWithdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
Expand Down Expand Up @@ -686,18 +778,40 @@
},
{
"internalType": "bool",
"name": "isInternal",
"name": "isVoteFor",
"type": "bool"
}
],
"name": "voteExternalProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "isVoteFor",
"type": "bool"
}
],
"name": "vote",
"name": "voteInternalProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
Loading

0 comments on commit eb3da2c

Please sign in to comment.