ForeMarket
Last updated
Last updated
Returns address of factory contract
Returns address of market config contract
Returns market info
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Returns privlegeNft info
Returns Dispute info
Returns verification info for id
Returns prediction amount for side A for address
Returns prediction amount for side B for address
Verification array size
Possible to call only via the factory
Initialization function
Add new prediction
Stakes nft token for the privilege of being a verifier
Returns the maximum value(power) available for verification
Verifies the side with maximum available power
Opens a dispute, takes fee
Only HighGuard
Resolves Dispute
Closes market
Returns full available amount to withdraw(Deposited fund + reward of winnings - Protocol fees)
Returns prediction reward in ForeToken
Withdraw prediction rewards
Verification id
Withdraw Verificator Reward
Withdraws Market Creators Reward
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
Input/Output | Data Type | Variable Name | Comment |
---|---|---|---|
output
bytes32
N/A
marketHash
output
uint256
N/A
sideA
output
uint256
N/A
sideB
output
uint256
N/A
verifiedA
output
uint256
N/A
verifiedB
output
uint256
N/A
startPredictionTimestamp
output
uint256
N/A
endPredictionTimestamp
output
uint256
N/A
marketTokenId
output
ResultType
N/A
result
output
address
N/A
privilegeNftStaker
output
uint256
N/A
privilegeNftId
output
bool
N/A
privilegeNftUsed
output
address
N/A
disputeCreator
output
bool
N/A
confirmed
output
bool
N/A
solved
input
uint256
N/A
id
output
address
N/A
verifier
output
uint256
N/A
power
output
uint256
N/A
tokenId
output
bool
N/A
side
output
bool
N/A
withdrawn
output
uint256
N/A
Verification array lenght
input
bytes32
mHash
market hash
input
address
receiver
market creator nft receiver
input
uint256
amountA
initial prediction for side A
input
uint256
amountB
initial prediction for side B
input
uint256
startPredictionTimestamp
Start predictions unix timestamp
input
uint256
endPredictionTimestamp
End predictions unix timestamp
input
uint256
tokenId
market creator token id (ForeMarkets)
input
uint256
amount
Amount of ForeToken
input
bool
side
Predicition side (true - positive result, false - negative result)
input
uint256
tokenId
ForeVerifiers nft id
input
bool
side
Marketd side (true - positive / false - negative);
output
uint256
N/A
Maximum power
input
uint256
tokenId
ForeVerifiers token id
input
bool
side
Marketd side (true - positive / false - negative);
input
undefined
result
Result Type
input
address
predictor
Predictior address
output
uint256
N/A
Amount to withdraw
input
address
predictor
predictor address
input
uint256
verificationId
verification id