Untitled

mail@pastecode.io avatar
unknown
json
17 days ago
13 kB
6
Indexable
Never
[
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_stakingManager",
          "type": "address"
        },
        {
          "internalType": "contract IEarnPMController",
          "name": "_earnPMController",
          "type": "address"
        },
        {
          "internalType": "contract IERC20",
          "name": "_earnToken",
          "type": "address"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "constructor"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "marketId",
          "type": "uint32"
        },
        {
          "internalType": "uint8",
          "name": "wonOption",
          "type": "uint8"
        },
        {
          "internalType": "uint256",
          "name": "apealersMaxReward",
          "type": "uint256"
        },
        {
          "internalType": "uint8",
          "name": "apealersRewardPercentage",
          "type": "uint8"
        }
      ],
      "name": "adminAppealResolve",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "maxStakedAmountForResolver",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "requiredStakedAmountForMarket",
              "type": "uint256"
            },
            {
              "internalType": "uint64",
              "name": "apealPeriodDuration",
              "type": "uint64"
            },
            {
              "internalType": "uint32",
              "name": "marketId",
              "type": "uint32"
            },
            {
              "internalType": "uint8",
              "name": "requiredMinResolvers",
              "type": "uint8"
            },
            {
              "internalType": "uint8",
              "name": "appealerResolvePercentage",
              "type": "uint8"
            }
          ],
          "internalType": "struct EarnPMResolution.ResolutionConfigData",
          "name": "configData",
          "type": "tuple"
        }
      ],
      "name": "adminChangeMarketData",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "marketId",
          "type": "uint32"
        },
        {
          "internalType": "uint8",
          "name": "wonOption",
          "type": "uint8"
        }
      ],
      "name": "adminResolve",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "name": "adminResolver",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "marketId",
          "type": "uint32"
        }
      ],
      "name": "adminWithdrawUncorrectOptions",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "internalType": "uint32",
              "name": "marketId",
              "type": "uint32"
            },
            {
              "internalType": "address",
              "name": "appealer",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "appealStakeAmount",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "nonce",
              "type": "uint256"
            }
          ],
          "internalType": "struct EarnPMResolution.AppealInputData",
          "name": "input",
          "type": "tuple"
        },
        {
          "internalType": "bytes",
          "name": "signature",
          "type": "bytes"
        }
      ],
      "name": "appeal",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        },
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        },
        {
          "internalType": "uint8",
          "name": "",
          "type": "uint8"
        }
      ],
      "name": "appealStaked",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "totalStaked",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "withdrawn",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        }
      ],
      "name": "appealStorage",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "totalStaked",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "totalToDistributeRewards",
          "type": "uint256"
        },
        {
          "internalType": "uint8",
          "name": "optionIndexOfAppeal",
          "type": "uint8"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "earnPMController",
      "outputs": [
        {
          "internalType": "contract IEarnPMController",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "earnToken",
      "outputs": [
        {
          "internalType": "contract IERC20",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint256",
          "name": "",
          "type": "uint256"
        }
      ],
      "name": "isNonceUsed",
      "outputs": [
        {
          "internalType": "bool",
          "name": "",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        }
      ],
      "name": "marketStorage",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "totalStaked",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "maxStakedAmountForResolver",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "requiredStakedAmountForMarket",
          "type": "uint256"
        },
        {
          "internalType": "uint64",
          "name": "appealDeadline",
          "type": "uint64"
        },
        {
          "internalType": "uint8",
          "name": "leadingOption",
          "type": "uint8"
        },
        {
          "internalType": "uint8",
          "name": "requiredMinResolvers",
          "type": "uint8"
        },
        {
          "internalType": "uint8",
          "name": "totalResolvers",
          "type": "uint8"
        },
        {
          "internalType": "enum EarnPMResolution.ResolutionStatus",
          "name": "resolutionStatus",
          "type": "uint8"
        },
        {
          "internalType": "bool",
          "name": "isUncorrectResolutionClaimed",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        },
        {
          "internalType": "uint8",
          "name": "",
          "type": "uint8"
        }
      ],
      "name": "optionStorage",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "totalStaked",
          "type": "uint256"
        },
        {
          "internalType": "uint8",
          "name": "totalResolvers",
          "type": "uint8"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "components": [
            {
              "components": [
                {
                  "internalType": "uint256",
                  "name": "maxStakedAmountForResolver",
                  "type": "uint256"
                },
                {
                  "internalType": "uint256",
                  "name": "requiredStakedAmountForMarket",
                  "type": "uint256"
                },
                {
                  "internalType": "uint64",
                  "name": "apealPeriodDuration",
                  "type": "uint64"
                },
                {
                  "internalType": "uint32",
                  "name": "marketId",
                  "type": "uint32"
                },
                {
                  "internalType": "uint8",
                  "name": "requiredMinResolvers",
                  "type": "uint8"
                },
                {
                  "internalType": "uint8",
                  "name": "appealerResolvePercentage",
                  "type": "uint8"
                }
              ],
              "internalType": "struct EarnPMResolution.ResolutionConfigData",
              "name": "configData",
              "type": "tuple"
            },
            {
              "internalType": "address",
              "name": "resolver",
              "type": "address"
            },
            {
              "internalType": "uint256",
              "name": "stakeAmount",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "nonce",
              "type": "uint256"
            },
            {
              "internalType": "uint8",
              "name": "optionIndex",
              "type": "uint8"
            }
          ],
          "internalType": "struct EarnPMResolution.ResolutionData",
          "name": "data",
          "type": "tuple"
        },
        {
          "internalType": "bytes",
          "name": "signature",
          "type": "bytes"
        }
      ],
      "name": "resolve",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        },
        {
          "internalType": "uint32",
          "name": "",
          "type": "uint32"
        },
        {
          "internalType": "uint8",
          "name": "",
          "type": "uint8"
        }
      ],
      "name": "resolverStaked",
      "outputs": [
        {
          "internalType": "uint256",
          "name": "totalStaked",
          "type": "uint256"
        },
        {
          "internalType": "bool",
          "name": "withdrawn",
          "type": "bool"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "_admin",
          "type": "address"
        },
        {
          "internalType": "bool",
          "name": "status",
          "type": "bool"
        }
      ],
      "name": "setAdminStatus",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "contract IERC20",
          "name": "_earnToken",
          "type": "address"
        }
      ],
      "name": "setEarnToken",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "stakingManager",
      "outputs": [
        {
          "internalType": "contract IEarnStakingManager",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "marketId",
          "type": "uint32"
        }
      ],
      "name": "withdrawAppealStake",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "marketId",
          "type": "uint32"
        }
      ],
      "name": "withdrawResolverStake",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ]
Leave a Comment