2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"_format": "hh-sol-artifact-1",
|
|
|
|
"contractName": "DAO",
|
2024-04-16 16:50:09 -05:00
|
|
|
"sourceName": "contracts/core/DAO.sol",
|
2024-03-17 12:30:12 -05:00
|
|
|
"abi": [
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "contract Reputation",
|
|
|
|
"name": "reputation_",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "contract Forum",
|
|
|
|
"name": "forum_",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "contract Bench",
|
|
|
|
"name": "bench_",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "constructor"
|
2024-03-17 12:30:12 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"indexed": false,
|
2024-04-18 18:35:31 -05:00
|
|
|
"internalType": "string",
|
|
|
|
"name": "id",
|
|
|
|
"type": "string"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "PostAdded",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "poolIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "ValidationPoolInitiated",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"anonymous": false,
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "poolIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "votePasses",
|
|
|
|
"type": "bool"
|
2024-03-28 18:01:55 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"indexed": false,
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "quorumMet",
|
|
|
|
"type": "bool"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "ValidationPoolResolved",
|
|
|
|
"type": "event"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
2024-04-19 18:07:48 -05:00
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-21 10:28:44 -05:00
|
|
|
"name": "weightPPM",
|
2024-04-19 18:07:48 -05:00
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "authorAddress",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"internalType": "struct Author[]",
|
|
|
|
"name": "authors",
|
|
|
|
"type": "tuple[]"
|
2024-03-19 22:22:36 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
2024-04-28 20:27:25 -05:00
|
|
|
"name": "postId",
|
2024-03-19 22:22:36 -05:00
|
|
|
"type": "string"
|
2024-04-16 16:50:09 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"internalType": "int256",
|
2024-04-21 10:28:44 -05:00
|
|
|
"name": "weightPPM",
|
2024-04-16 16:50:09 -05:00
|
|
|
"type": "int256"
|
|
|
|
},
|
|
|
|
{
|
2024-04-18 18:35:31 -05:00
|
|
|
"internalType": "string",
|
|
|
|
"name": "targetPostId",
|
|
|
|
"type": "string"
|
2024-04-16 16:50:09 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"internalType": "struct Citation[]",
|
|
|
|
"name": "citations",
|
|
|
|
"type": "tuple[]"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "addPost",
|
2024-04-18 18:35:31 -05:00
|
|
|
"outputs": [],
|
2024-03-17 12:30:12 -05:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "owner",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "spender",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "allowance",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "account",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "balanceOf",
|
2024-03-17 12:30:12 -05:00
|
|
|
"outputs": [
|
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "uint256",
|
2024-03-17 12:30:12 -05:00
|
|
|
"name": "",
|
2024-04-30 15:56:43 -05:00
|
|
|
"type": "uint256"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"stateMutability": "view",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "account",
|
|
|
|
"type": "address"
|
2024-04-30 15:56:43 -05:00
|
|
|
},
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "value",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "burn",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "function"
|
|
|
|
},
|
2024-04-16 16:50:09 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "poolIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "owner",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "amount",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "inFavor",
|
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "delegatedStakeOnValidationPool",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-04-30 15:56:43 -05:00
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "distributeFeeAmongMembers",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "payable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
|
|
|
"name": "id",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "emitPostAdded",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "poolIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "emitValidationPoolInitiated",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "poolIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "votePasses",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "quorumMet",
|
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "emitValidationPoolResolved",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "poolIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "evaluateOutcome",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-04-28 20:27:25 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "owner",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "to",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "amount",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "forwardAllowance",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-04-19 18:07:48 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
|
|
|
"name": "postId",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "getPostAuthors",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-21 10:28:44 -05:00
|
|
|
"name": "weightPPM",
|
2024-04-19 18:07:48 -05:00
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "authorAddress",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"internalType": "struct Author[]",
|
|
|
|
"name": "",
|
|
|
|
"type": "tuple[]"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
2024-04-18 18:35:31 -05:00
|
|
|
"internalType": "string",
|
|
|
|
"name": "postId",
|
|
|
|
"type": "string"
|
2024-03-17 12:30:12 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "duration",
|
|
|
|
"type": "uint256"
|
2024-03-18 14:03:53 -05:00
|
|
|
},
|
2024-03-26 15:20:54 -05:00
|
|
|
{
|
2024-03-28 18:01:55 -05:00
|
|
|
"internalType": "uint256[2]",
|
|
|
|
"name": "quorum",
|
|
|
|
"type": "uint256[2]"
|
2024-03-26 15:20:54 -05:00
|
|
|
},
|
|
|
|
{
|
2024-03-28 18:01:55 -05:00
|
|
|
"internalType": "uint256[2]",
|
|
|
|
"name": "winRatio",
|
|
|
|
"type": "uint256[2]"
|
2024-03-26 15:20:54 -05:00
|
|
|
},
|
2024-03-26 18:28:38 -05:00
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "bindingPercent",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "redistributeLosingStakes",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
2024-03-18 14:03:53 -05:00
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "callbackOnValidate",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bytes",
|
|
|
|
"name": "callbackData",
|
|
|
|
"type": "bytes"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "initiateValidationPool",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "payable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "isMember",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "",
|
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "memberCount",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "members",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"inputs": [
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "address",
|
|
|
|
"name": "account",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "value",
|
|
|
|
"type": "uint256"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "mint",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "target",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "votePasses",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "quorumMet",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "stakedFor",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "stakedAgainst",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bytes",
|
|
|
|
"name": "callbackData",
|
|
|
|
"type": "bytes"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "onValidate",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "postCount",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-04-30 19:22:55 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "postIndex",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "postIds",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
|
|
|
"name": "",
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "string",
|
|
|
|
"name": "postId",
|
|
|
|
"type": "string"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "posts",
|
2024-04-18 18:35:31 -05:00
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "id",
|
2024-04-18 18:35:31 -05:00
|
|
|
"type": "string"
|
2024-04-30 15:56:43 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "sender",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "reputation",
|
|
|
|
"type": "uint256"
|
2024-04-18 18:35:31 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "postId",
|
2024-04-18 18:35:31 -05:00
|
|
|
"type": "string"
|
2024-04-30 15:56:43 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "int256",
|
|
|
|
"name": "amount",
|
|
|
|
"type": "int256"
|
2024-04-18 18:35:31 -05:00
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "propagateReputation",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"internalType": "address",
|
|
|
|
"name": "account",
|
|
|
|
"type": "address"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "registerMember",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "owner",
|
|
|
|
"type": "address"
|
2024-03-17 12:30:12 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "spender",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
},
|
2024-04-16 16:50:09 -05:00
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "value",
|
2024-04-16 16:50:09 -05:00
|
|
|
"type": "uint256"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "spendAllowance",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
2024-04-16 16:50:09 -05:00
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "to",
|
|
|
|
"type": "address"
|
|
|
|
},
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "value",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "duration",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
2024-04-16 16:50:09 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "stakeAvailability",
|
|
|
|
"outputs": [
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"internalType": "bool",
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "poolIndex",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "amount",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
2024-04-16 16:50:09 -05:00
|
|
|
},
|
2024-03-17 12:30:12 -05:00
|
|
|
{
|
|
|
|
"internalType": "bool",
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "inFavor",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
2024-04-16 16:50:09 -05:00
|
|
|
"name": "stakeOnValidationPool",
|
|
|
|
"outputs": [],
|
2024-03-17 12:30:12 -05:00
|
|
|
"stateMutability": "nonpayable",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "totalSupply",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "from",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "to",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "value",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "update",
|
|
|
|
"outputs": [],
|
|
|
|
"stateMutability": "nonpayable",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [],
|
|
|
|
"name": "validationPoolCount",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "",
|
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-04-30 15:56:43 -05:00
|
|
|
"name": "poolIndex",
|
2024-03-17 12:30:12 -05:00
|
|
|
"type": "uint256"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"name": "validationPools",
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "id",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "address",
|
|
|
|
"name": "sender",
|
|
|
|
"type": "address"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "stakeCount",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
2024-03-26 18:28:38 -05:00
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
2024-03-29 18:08:30 -05:00
|
|
|
"name": "duration",
|
2024-03-26 18:28:38 -05:00
|
|
|
"type": "uint256"
|
|
|
|
},
|
2024-03-29 18:08:30 -05:00
|
|
|
{
|
|
|
|
"internalType": "uint256[2]",
|
|
|
|
"name": "quorum",
|
|
|
|
"type": "uint256[2]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256[2]",
|
|
|
|
"name": "winRatio",
|
|
|
|
"type": "uint256[2]"
|
|
|
|
},
|
2024-03-26 18:28:38 -05:00
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "bindingPercent",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "redistributeLosingStakes",
|
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"internalType": "struct ValidationPoolParams",
|
|
|
|
"name": "params",
|
|
|
|
"type": "tuple"
|
2024-03-17 12:30:12 -05:00
|
|
|
},
|
2024-03-26 15:20:54 -05:00
|
|
|
{
|
2024-04-30 15:56:43 -05:00
|
|
|
"components": [
|
|
|
|
{
|
|
|
|
"internalType": "string",
|
|
|
|
"name": "postId",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "fee",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "minted",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "uint256",
|
|
|
|
"name": "endTime",
|
|
|
|
"type": "uint256"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "resolved",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "outcome",
|
|
|
|
"type": "bool"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"internalType": "struct ValidationPoolProps",
|
|
|
|
"name": "props",
|
|
|
|
"type": "tuple"
|
2024-03-18 14:03:53 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bool",
|
|
|
|
"name": "callbackOnValidate",
|
|
|
|
"type": "bool"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"internalType": "bytes",
|
|
|
|
"name": "callbackData",
|
|
|
|
"type": "bytes"
|
2024-03-17 12:30:12 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"stateMutability": "view",
|
|
|
|
"type": "function"
|
|
|
|
}
|
|
|
|
],
|
2024-05-01 22:24:53 -05:00
|
|
|
"bytecode": "0x60806040523480156200001157600080fd5b506040516200469e3803806200469e8339818101604052810190620000379190620003bb565b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe0d695a306040518263ffffffff1660e01b815260040162000154919062000482565b600060405180830381600087803b1580156200016f57600080fd5b505af115801562000184573d6000803e3d6000fd5b50505050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe0d695a306040518263ffffffff1660e01b8152600401620001e5919062000482565b600060405180830381600087803b1580156200020057600080fd5b505af115801562000215573d6000803e3d6000fd5b50505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fe0d695a306040518263ffffffff1660e01b815260040162000276919062000482565b600060405180830381600087803b1580156200029157600080fd5b505af1158015620002a6573d6000803e3d6000fd5b505050505050506200049f565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002e582620002b8565b9050919050565b6000620002f982620002d8565b9050919050565b6200030b81620002ec565b81146200031757600080fd5b50565b6000815190506200032b8162000300565b92915050565b60006200033e82620002d8565b9050919050565b620003508162000331565b81146200035c57600080fd5b50565b600081519050620003708162000345565b92915050565b60006200038382620002d8565b9050919050565b620003958162000376565b8114620003a157600080fd5b50565b600081519050620003b5816200038a565b92915050565b600080600060608486031215620003d757620003d6620002b3565b5b6000620003e7868287016200031a565b9350506020620003fa868287016200035f565b92505060406200040d86828701620003a4565b9150509250925092565b6000819050919050565b6000620004426200043c6200043684620002b8565b62000417565b620002b8565b9050919050565b6000620004568262000421565b9050919050565b60006200046a8262000449565b9050919050565b6200047c816200045d565b82525050565b600060208201905062000499600083018462000471565b92915050565b6141ef80620004af6000396000f3fe6080604052600436106101cd5760003560e01c806388380274116100f7578063a233627911610095578063dd8aaa4f11610064578063dd8aaa4f146106a6578063e5b4d827146106cf578063f8300fca146106f8578063fcb4888e14610737576101cd565b8063a2336279146105c0578063da66863a14610603578063dc00bbfe14610640578063dd62ed3e14610669576101cd565b80639dc29fac116100d15780639dc29fac146105015780639fbe7c731461052a5780639fd098721461055a578063a230c52414610583576101cd565b806388380274146104725780638ce516da146104af578063975762b3146104d8576101cd565b806340c10f191161016f5780635ffc70041161013e5780635ffc7004146103b8578063642b5bfb146103e157806370a082311461040c57806378e21c6e14610449576101cd565b806340c10f19146102ec57806350cde8ef146103155780635c253c0b146103525780635daf08ca1461037b576101cd565b806318160ddd116101ab57806318160ddd146102655780631d0d37c9146102905780631e57e078146102b95780632d17c062146102c3576101cd565b806311aee380146101d257806317906c2e146101fd57806317c1821714610228575b600080fd5b3480156101de57600080fd5b506101e7610760565b6040516101f49190612052565b60405180910390f35b34801561020957600080fd5b50610212610766565b60405161021f9190612052565b60405180910390f35b34801561023457600080fd5b5061024f600480360381019061024a91906120ad565b6107fe565b60405161025c91906120f5565b60405180910390f35b34801561027157600080fd5b5061027a6108a5565b6040516102879190612052565b60405180910390f35b34801561029c57600080fd5b506102b760048036038101906102b291906121ff565b61093c565b005b6102c1610aa2565b005b3480156102cf57600080fd5b506102ea60048036038101906102e591906122ae565b610ba8565b005b3480156102f857600080fd5b50610313600480360381019061030e9190612301565b610c8b565b005b34801561032157600080fd5b5061033c600480360381019061033791906120ad565b610e04565b60405161034991906123d1
|
|
|
|
"deployedBytecode": "0x6080604052600436106101cd5760003560e01c806388380274116100f7578063a233627911610095578063dd8aaa4f11610064578063dd8aaa4f146106a6578063e5b4d827146106cf578063f8300fca146106f8578063fcb4888e14610737576101cd565b8063a2336279146105c0578063da66863a14610603578063dc00bbfe14610640578063dd62ed3e14610669576101cd565b80639dc29fac116100d15780639dc29fac146105015780639fbe7c731461052a5780639fd098721461055a578063a230c52414610583576101cd565b806388380274146104725780638ce516da146104af578063975762b3146104d8576101cd565b806340c10f191161016f5780635ffc70041161013e5780635ffc7004146103b8578063642b5bfb146103e157806370a082311461040c57806378e21c6e14610449576101cd565b806340c10f19146102ec57806350cde8ef146103155780635c253c0b146103525780635daf08ca1461037b576101cd565b806318160ddd116101ab57806318160ddd146102655780631d0d37c9146102905780631e57e078146102b95780632d17c062146102c3576101cd565b806311aee380146101d257806317906c2e146101fd57806317c1821714610228575b600080fd5b3480156101de57600080fd5b506101e7610760565b6040516101f49190612052565b60405180910390f35b34801561020957600080fd5b50610212610766565b60405161021f9190612052565b60405180910390f35b34801561023457600080fd5b5061024f600480360381019061024a91906120ad565b6107fe565b60405161025c91906120f5565b60405180910390f35b34801561027157600080fd5b5061027a6108a5565b6040516102879190612052565b60405180910390f35b34801561029c57600080fd5b506102b760048036038101906102b291906121ff565b61093c565b005b6102c1610aa2565b005b3480156102cf57600080fd5b506102ea60048036038101906102e591906122ae565b610ba8565b005b3480156102f857600080fd5b50610313600480360381019061030e9190612301565b610c8b565b005b34801561032157600080fd5b5061033c600480360381019061033791906120ad565b610e04565b60405161034991906123d1565b60405180910390f35b34801561035e57600080fd5b5061037960048036038101906103749190612523565b610eae565b005b34801561038757600080fd5b506103a2600480360381019061039d91906120ad565b610ee8565b6040516103af919061257b565b60405180910390f35b3480156103c457600080fd5b506103df60048036038101906103da9190612596565b610f1b565b005b3480156103ed57600080fd5b506103f66110e4565b6040516104039190612052565b60405180910390f35b34801561041857600080fd5b50610433600480360381019061042e91906125e9565b61117c565b6040516104409190612052565b60405180910390f35b34801561045557600080fd5b50610470600480360381019061046b9190612616565b611220565b005b34801561047e57600080fd5b5061049960048036038101906104949190612669565b611260565b6040516104a691906120f5565b60405180910390f35b3480156104bb57600080fd5b506104d660048036038101906104d19190612596565b611412565b005b3480156104e457600080fd5b506104ff60048036038101906104fa91906126bc565b61158e565b005b34801561050d57600080fd5b5061052860048036038101906105239190612301565b611650565b005b610544600480360381019061053f919061279b565b6117c9565b6040516105519190612052565b60405180910390f35b34801561056657600080fd5b50610581600480360381019061057c91906128ca565b61188e565b005b34801561058f57600080fd5b506105aa60048036038101906105a591906125e9565b611938565b6040516105b791906120f5565b60405180910390f35b3480156105cc57600080fd5b506105e760048036038101906105e291906120ad565b611958565b6040516105fa9796959493929190612b70565b60405180910390f35b34801561060f57600080fd5b5061062a60048036038101906106259190612bf1565b611a2b565b6040516106379190612d2b565b60405180910390f35b34801561064c57600080fd5b50610667600480360381019061066291906120ad565b611ad8565b005b34801561067557600080fd5b50610690600480360381019061068b9190612d4d565b611b12565b60405161069d9190612052565b60405180910390f35b3480156106b257600080fd5b506106cd60048036038101906106c89190612596565b611bb9565b005b3480156106db57600080fd5b506106f660048036038101906106f19190612e39565b611c4d565b005b34801561070457600080fd5b5061071f600480360381019061071a9190612bf1565b611cee565b60405161072e93929190612eed565b60405180910390f35b34801561074357600080fd5b5061075e600480360381019061075991906125e9565b611da3565b005b60045481565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166317906c2e6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f9
|
2024-03-17 12:30:12 -05:00
|
|
|
"linkReferences": {},
|
|
|
|
"deployedLinkReferences": {}
|
|
|
|
}
|