polkamarkets-js 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/models/PredictionMarketV3Contract.js +49 -16
- package/abis/AccessControlUpgradeable.json +0 -1
- package/abis/AddAdminToLand.json +0 -1
- package/abis/AddressUpgradeable.json +0 -1
- package/abis/ClaimMerkleRoot.json +0 -1
- package/abis/CreateLand.json +0 -1
- package/abis/CreateMarkets.json +0 -1
- package/abis/DeployContracts.json +0 -1
- package/abis/DeployMerkleRewardsDistributor.json +0 -1
- package/abis/DeployToken.json +0 -1
- package/abis/DeployUSDT.json +0 -1
- package/abis/ECDSA.json +0 -1
- package/abis/ERC165Upgradeable.json +0 -1
- package/abis/ERC1967UpgradeUpgradeable.json +0 -1
- package/abis/Hashes.json +0 -1
- package/abis/IBeaconUpgradeable.json +0 -1
- package/abis/IERC1822ProxiableUpgradeable.json +0 -1
- package/abis/IERC20PermitUpgradeable.json +0 -1
- package/abis/IERC20Upgradeable.json +0 -1
- package/abis/Manager.json +0 -1
- package/abis/MerkleProof.json +0 -1
- package/abis/MerkleRewardsDistributor.json +0 -1
- package/abis/MerkleRewardsDistributorTest.json +0 -1
- package/abis/MessageHashUtils.json +0 -1
- package/abis/MintTokens.json +0 -1
- package/abis/Nonces.json +0 -1
- package/abis/Panic.json +0 -1
- package/abis/PublishMerkleRoot.json +0 -1
- package/abis/ResolveMarket.json +0 -1
- package/abis/RewardsDistributor.json +0 -1
- package/abis/RewardsDistributorTest.json +0 -1
- package/abis/SafeCast.json +0 -1
- package/abis/SafeERC20Upgradeable.json +0 -1
- package/abis/SignedMath.json +0 -1
- package/abis/StorageSlotUpgradeable.json +0 -1
- package/abis/TradeMarket.json +0 -1
- package/abis/USDT.json +0 -1
- package/abis/UpdateMarket.json +0 -1
- package/abis/UpdateTest.json +0 -1
- package/abis/WhaleTest.json +0 -1
- package/lib/openzeppelin-contracts/contracts/mocks/docs/ERC20WithAutoMinerReward.sol +0 -22
- package/lib/openzeppelin-contracts/contracts/mocks/docs/ERC4626Fees.sol +0 -109
- package/lib/openzeppelin-contracts/contracts/mocks/docs/MyNFT.sol +0 -9
- package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintBase.sol +0 -25
- package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintMissing.sol +0 -24
- package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintOnlyRole.sol +0 -23
- package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlModified.sol +0 -14
- package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessManagedERC20MintBase.sol +0 -16
- package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/MyContractOwnable.sol +0 -17
- package/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyAccountERC7702.sol +0 -20
- package/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyFactoryAccount.sol +0 -37
- package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyGovernor.sol +0 -80
- package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyToken.sol +0 -21
- package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenTimestampBased.sol +0 -32
- package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenWrapped.sol +0 -28
- package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/GameItems.sol +0 -21
- package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/MyERC115HolderContract.sol +0 -7
- package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC20/GLDToken.sol +0 -11
- package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC6909/ERC6909GameItems.sol +0 -26
- package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC721/GameItem.sol +0 -19
- package/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Base64NFT.sol +0 -27
- package/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Multicall.sol +0 -15
- package/lib/openzeppelin-contracts/docs/README.md +0 -16
- package/lib/openzeppelin-contracts/docs/antora.yml +0 -7
- package/lib/openzeppelin-contracts/docs/config.js +0 -21
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-control-multiple.svg +0 -97
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager-functions.svg +0 -47
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager.svg +0 -99
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3a.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3b.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-6.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-deposit.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-mint.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-linear.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglog.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglogext.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-exec.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-vote.png +0 -0
- package/lib/openzeppelin-contracts/docs/modules/ROOT/nav.adoc +0 -29
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/access-control.adoc +0 -288
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/account-abstraction.adoc +0 -100
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/accounts.adoc +0 -354
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/backwards-compatibility.adoc +0 -50
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/eoa-delegation.adoc +0 -143
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc1155.adoc +0 -118
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20-supply.adoc +0 -71
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20.adoc +0 -67
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc4626.adoc +0 -214
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc6909.adoc +0 -47
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc721.adoc +0 -58
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/extending-contracts.adoc +0 -51
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/faq.adoc +0 -13
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/governance.adoc +0 -239
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/index.adoc +0 -70
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/multisig.adoc +0 -306
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/tokens.adoc +0 -31
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/upgradeable.adoc +0 -77
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/utilities.adoc +0 -591
- package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/wizard.adoc +0 -15
- package/lib/openzeppelin-contracts/docs/templates/contract.hbs +0 -141
- package/lib/openzeppelin-contracts/docs/templates/helpers.js +0 -46
- package/lib/openzeppelin-contracts/docs/templates/page.hbs +0 -4
- package/lib/openzeppelin-contracts/docs/templates/properties.js +0 -88
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/ERC20WithAutoMinerRewardUpgradeable.sol +0 -28
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/ERC4626FeesUpgradeable.sol +0 -115
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/MyNFTUpgradeable.sol +0 -14
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlERC20MintBaseUpgradeable.sol +0 -31
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlERC20MintMissingUpgradeable.sol +0 -30
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlERC20MintOnlyRoleUpgradeable.sol +0 -29
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlModifiedUpgradeable.sol +0 -20
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessManagedERC20MintBaseUpgradeable.sol +0 -22
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/MyContractOwnableUpgradeable.sol +0 -22
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/account/MyAccountERC7702Upgradeable.sol +0 -26
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/account/MyFactoryAccountUpgradeable.sol +0 -42
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyGovernorUpgradeable.sol +0 -92
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyTokenTimestampBasedUpgradeable.sol +0 -39
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyTokenUpgradeable.sol +0 -28
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyTokenWrappedUpgradeable.sol +0 -39
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC1155/GameItemsUpgradeable.sol +0 -27
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC1155/MyERC115HolderContractUpgradeable.sol +0 -13
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC20/GLDTokenUpgradeable.sol +0 -17
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC6909/ERC6909GameItemsUpgradeable.sol +0 -31
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC721/GameItemUpgradeable.sol +0 -24
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/utilities/Base64NFTUpgradeable.sol +0 -32
- package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/utilities/MulticallUpgradeable.sol +0 -21
- package/lib/openzeppelin-contracts-upgradeable/docs/README.md +0 -16
- package/lib/openzeppelin-contracts-upgradeable/docs/antora.yml +0 -7
- package/lib/openzeppelin-contracts-upgradeable/docs/config.js +0 -21
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/access-control-multiple.svg +0 -97
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/access-manager-functions.svg +0 -47
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/access-manager.svg +0 -99
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack-3a.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack-3b.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack-6.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-deposit.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-mint.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-rate-linear.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-rate-loglog.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-rate-loglogext.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/tally-exec.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/tally-vote.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/nav.adoc +0 -29
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/access-control.adoc +0 -288
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/account-abstraction.adoc +0 -100
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/accounts.adoc +0 -354
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/backwards-compatibility.adoc +0 -50
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/eoa-delegation.adoc +0 -143
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc1155.adoc +0 -118
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc20-supply.adoc +0 -71
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc20.adoc +0 -67
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc4626.adoc +0 -214
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc6909.adoc +0 -47
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc721.adoc +0 -58
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/extending-contracts.adoc +0 -51
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/faq.adoc +0 -13
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/governance.adoc +0 -239
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/index.adoc +0 -70
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/multisig.adoc +0 -306
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/tokens.adoc +0 -31
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/upgradeable.adoc +0 -77
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/utilities.adoc +0 -591
- package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/wizard.adoc +0 -15
- package/lib/openzeppelin-contracts-upgradeable/docs/templates/contract.hbs +0 -141
- package/lib/openzeppelin-contracts-upgradeable/docs/templates/helpers.js +0 -46
- package/lib/openzeppelin-contracts-upgradeable/docs/templates/page.hbs +0 -4
- package/lib/openzeppelin-contracts-upgradeable/docs/templates/properties.js +0 -88
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/ERC20WithAutoMinerReward.sol +0 -22
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/ERC4626Fees.sol +0 -109
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/MyNFT.sol +0 -9
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintBase.sol +0 -25
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintMissing.sol +0 -24
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintOnlyRole.sol +0 -23
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlModified.sol +0 -14
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessManagedERC20MintBase.sol +0 -16
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/MyContractOwnable.sol +0 -17
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyAccountERC7702.sol +0 -20
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyFactoryAccount.sol +0 -37
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyGovernor.sol +0 -80
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyToken.sol +0 -21
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenTimestampBased.sol +0 -32
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenWrapped.sol +0 -28
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/GameItems.sol +0 -21
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/MyERC115HolderContract.sol +0 -7
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC20/GLDToken.sol +0 -11
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC6909/ERC6909GameItems.sol +0 -26
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC721/GameItem.sol +0 -19
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Base64NFT.sol +0 -27
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Multicall.sol +0 -15
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/README.md +0 -16
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/antora.yml +0 -7
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/config.js +0 -21
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-control-multiple.svg +0 -97
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager-functions.svg +0 -47
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager.svg +0 -99
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3a.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3b.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-6.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-deposit.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-mint.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-linear.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglog.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglogext.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-exec.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-vote.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/nav.adoc +0 -29
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/access-control.adoc +0 -288
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/account-abstraction.adoc +0 -100
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/accounts.adoc +0 -354
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/backwards-compatibility.adoc +0 -50
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/eoa-delegation.adoc +0 -143
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc1155.adoc +0 -118
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20-supply.adoc +0 -71
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20.adoc +0 -67
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc4626.adoc +0 -214
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc6909.adoc +0 -47
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc721.adoc +0 -58
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/extending-contracts.adoc +0 -51
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/faq.adoc +0 -13
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/governance.adoc +0 -239
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/index.adoc +0 -70
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/multisig.adoc +0 -306
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/tokens.adoc +0 -31
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/upgradeable.adoc +0 -77
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/utilities.adoc +0 -591
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/wizard.adoc +0 -15
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/contract.hbs +0 -141
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/helpers.js +0 -46
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/page.hbs +0 -4
- package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/properties.js +0 -88
- package/lib/openzeppelin-contracts-upgradeable.git/docs/antora.yml +0 -6
- package/lib/openzeppelin-contracts-upgradeable.git/docs/config.js +0 -21
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/images/tally-exec.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/images/tally-vote.png +0 -0
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/nav.adoc +0 -23
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/access-control.adoc +0 -217
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/crosschain.adoc +0 -210
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/crowdsales.adoc +0 -11
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/drafts.adoc +0 -19
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc1155.adoc +0 -153
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc20-supply.adoc +0 -113
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc20.adoc +0 -85
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc721.adoc +0 -90
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc777.adoc +0 -73
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/extending-contracts.adoc +0 -129
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/governance.adoc +0 -321
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/index.adoc +0 -63
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/releases-stability.adoc +0 -85
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/tokens.adoc +0 -32
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/upgradeable.adoc +0 -73
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/utilities.adoc +0 -190
- package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/wizard.adoc +0 -15
- package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/contract.hbs +0 -85
- package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/helpers.js +0 -46
- package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/page.hbs +0 -4
- package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/properties.js +0 -49
- package/lib/openzeppelin-contracts.git/docs/antora.yml +0 -6
- package/lib/openzeppelin-contracts.git/docs/config.js +0 -21
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/images/tally-exec.png +0 -0
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/images/tally-vote.png +0 -0
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/nav.adoc +0 -23
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/access-control.adoc +0 -217
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/crosschain.adoc +0 -210
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/crowdsales.adoc +0 -11
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/drafts.adoc +0 -19
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc1155.adoc +0 -153
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc20-supply.adoc +0 -113
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc20.adoc +0 -85
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc721.adoc +0 -90
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc777.adoc +0 -73
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/extending-contracts.adoc +0 -129
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/governance.adoc +0 -321
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/index.adoc +0 -63
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/releases-stability.adoc +0 -85
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/tokens.adoc +0 -32
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/upgradeable.adoc +0 -73
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/utilities.adoc +0 -190
- package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/wizard.adoc +0 -15
- package/lib/openzeppelin-contracts.git/docs/templates/contract.hbs +0 -85
- package/lib/openzeppelin-contracts.git/docs/templates/helpers.js +0 -46
- package/lib/openzeppelin-contracts.git/docs/templates/page.hbs +0 -4
- package/lib/openzeppelin-contracts.git/docs/templates/properties.js +0 -49
- package/lib/reality-eth-monorepo/packages/docs/Audit_Reality_v3_202108.pdf +0 -0
- package/lib/reality-eth-monorepo/packages/docs/Makefile +0 -20
- package/lib/reality-eth-monorepo/packages/docs/arbitrators.rst +0 -85
- package/lib/reality-eth-monorepo/packages/docs/audit.rst +0 -12
- package/lib/reality-eth-monorepo/packages/docs/audit_v2.rst +0 -249
- package/lib/reality-eth-monorepo/packages/docs/audit_v2_ERC20.rst +0 -1075
- package/lib/reality-eth-monorepo/packages/docs/audit_v3.rst +0 -70
- package/lib/reality-eth-monorepo/packages/docs/conf.py +0 -155
- package/lib/reality-eth-monorepo/packages/docs/contract_explanation.rst +0 -82
- package/lib/reality-eth-monorepo/packages/docs/contracts.rst +0 -277
- package/lib/reality-eth-monorepo/packages/docs/dapp.rst +0 -126
- package/lib/reality-eth-monorepo/packages/docs/dapp_links.rst +0 -67
- package/lib/reality-eth-monorepo/packages/docs/fees.rst +0 -89
- package/lib/reality-eth-monorepo/packages/docs/index.rst +0 -26
- package/lib/reality-eth-monorepo/packages/docs/javascript.rst +0 -142
- package/lib/reality-eth-monorepo/packages/docs/make.bat +0 -36
- package/lib/reality-eth-monorepo/packages/docs/question_box.png +0 -0
- package/lib/reality-eth-monorepo/packages/docs/requirements.txt +0 -24
- package/lib/reality-eth-monorepo/packages/docs/whitepaper.rst +0 -165
- package/script/AddAdminToLand.s.sol +0 -29
- package/script/ClaimMerkleRoot.s.sol +0 -34
- package/script/CreateLand.s.sol +0 -28
- package/script/CreateMarkets.s.sol +0 -71
- package/script/DeployContracts.s.sol +0 -94
- package/script/DeployMerkleRewardsDistributor.s.sol +0 -27
- package/script/DeployToken.s.sol +0 -17
- package/script/DeployUSDT.s.sol +0 -24
- package/script/MintTokens.s.sol +0 -21
- package/script/PublishMerkleRoot.s.sol +0 -50
- package/script/ResolveMarket.s.sol +0 -23
- package/script/TradeMarket.s.sol +0 -28
- package/test/UpdateTest.t.sol +0 -55
- package/test/WhaleTest.t.sol +0 -188
- package/tooling/docs/jsdoc.json +0 -6
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
Using the Reality.eth dapp
|
|
2
|
-
============================
|
|
3
|
-
|
|
4
|
-
Requirements
|
|
5
|
-
------------
|
|
6
|
-
|
|
7
|
-
You will need the Metamask_ extension for Chrome or Firefox or a a browser with equivalent functionality like Brave_.
|
|
8
|
-
|
|
9
|
-
To post or answer questions you will need ETH or the equivalent on the network you are on.
|
|
10
|
-
|
|
11
|
-
If you prefer to try the app without using real money, you can switch Metamask to the Rinkeby or Kovan Testnet. You can get testnet coins at the `Rinkeby Faucet`_ and the `Kovan Faucet`_.
|
|
12
|
-
|
|
13
|
-
.. _Metamask: http://metamask.io/
|
|
14
|
-
.. _Brave: https://brave.com/
|
|
15
|
-
.. _`Rinkeby Faucet`: https://faucet.rinkeby.io/
|
|
16
|
-
.. _`Kovan Faucet`: https://faucet.kovan.network/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Asking a question
|
|
20
|
-
-----------------
|
|
21
|
-
|
|
22
|
-
Click the "post a question" button and fill in the form you see. Enter a clear, unambiguous question in English.
|
|
23
|
-
|
|
24
|
-
Opening Date
|
|
25
|
-
~~~~~~~~~~~~
|
|
26
|
-
|
|
27
|
-
If you don't want people to be able to answer the question immediately, enter the date you want it to open.
|
|
28
|
-
|
|
29
|
-
Reward
|
|
30
|
-
~~~~~~~~~~
|
|
31
|
-
Enter the amount you are prepared to pay as an incentive to answer your question. You pay when you post the question, and the money is collected by the person who gave the final accepted answer.
|
|
32
|
-
|
|
33
|
-
If you intend to supply the answer yourself, and are hoping it will survive challenges so that you can use the question as evidence to send to a smart contract, you do not need to set a bounty, and can instead post a bond when you supply your answer. That way you will get the money back if your answer is accepted.
|
|
34
|
-
|
|
35
|
-
Question Type
|
|
36
|
-
~~~~~~~~~~~~~
|
|
37
|
-
* Binary (Yes/No): A simple yes or no answer.
|
|
38
|
-
* Number: A positive (unsigned) number. By default questions allow up to 13 decimals.
|
|
39
|
-
* Single-choice: One answer can be selected from a list. The answer form will display this as a select box.
|
|
40
|
-
* Multiple-choice: Multiple answers can be selected from a list. The answer form will display this as a group of checkboxes.
|
|
41
|
-
* Datetime: A date or date and time. The answer form will display this as a date picker.
|
|
42
|
-
|
|
43
|
-
See :doc:`contracts` for how these values will be reported to contracts.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Arbitrator
|
|
47
|
-
~~~~~~~~~~
|
|
48
|
-
This is the address of a person, organization or DAO that will settle disputes in exchange for a fee. See :doc:`arbitrators` for more details on how they work, and how you can create your own arbitrator.
|
|
49
|
-
|
|
50
|
-
Timeout
|
|
51
|
-
~~~~~~~
|
|
52
|
-
How long people will have to correct incorrect reponses after they are posted. We normally suggest 24 hours. You may prefer a longer setting if you think your question will need time to come to the attention of people qualified to answer it, or a shorter setting if you think many people will be paying attention within a short timespan.
|
|
53
|
-
|
|
54
|
-
Category
|
|
55
|
-
~~~~~~~~
|
|
56
|
-
This is intended to help people find questions of the subject they are interested in.
|
|
57
|
-
|
|
58
|
-
.. note:: Posting a question will open a MetaMask window which will prompt you to confirm it.
|
|
59
|
-
You will have to pay a fee to the network, called "gas".
|
|
60
|
-
If you are not in a hurry, you can usually set a much lower gas price than the default suggested by MetaMask.
|
|
61
|
-
|
|
62
|
-
Answering a question
|
|
63
|
-
--------------------
|
|
64
|
-
|
|
65
|
-
Click on the question to open the display and entry window.
|
|
66
|
-
|
|
67
|
-
Your answer
|
|
68
|
-
~~~~~~~~~~~
|
|
69
|
-
|
|
70
|
-
Enter the answer.
|
|
71
|
-
|
|
72
|
-
Your bond
|
|
73
|
-
~~~~~~~~~
|
|
74
|
-
|
|
75
|
-
This is money that you will get back if your answer is accepted as the final answer, and lose if your answer is not accepted.
|
|
76
|
-
|
|
77
|
-
Posting a bond stakes a claim to the answer you are giving: Even if someone else later reposts the same answer, you will get your bond back, and also be paid, as a minimum, an amount equal to the bond you have posted.
|
|
78
|
-
|
|
79
|
-
.. note:: When you send a transaction to the Ethereum network, it can takes seconds, minutes or even hours to confirm.
|
|
80
|
-
|
|
81
|
-
You can go ahead and supply your own answer to a question before it has confirmed. However, other users will not see either the question or your answer until they are confirmed.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Correcting an incorrect answer
|
|
85
|
-
------------------------------
|
|
86
|
-
|
|
87
|
-
If you see a question with an incorrect answer, you can correct it simply by adding a new answer.
|
|
88
|
-
|
|
89
|
-
Correcting an answer will entitle you to the bond of the previous user. However, you must submit your own bond, and it must be at least twice as high as the bond submitted by the previous answerer. If you are resubmitting an answer that someone has already given, part of that payment will be deducted and paid to them. See :doc:`fees` for details.
|
|
90
|
-
|
|
91
|
-
.. note:: Until your answer has been sent to the network and confirmed in a block, it is possible for someone else to submit a competing answer.
|
|
92
|
-
This will cause your transaction to fail.
|
|
93
|
-
|
|
94
|
-
If the competing answer is also wrong, you may wish to resubmit your answer with an even higher bond.
|
|
95
|
-
|
|
96
|
-
Questions include an option for "invalid", for if the question cannot be answered.
|
|
97
|
-
|
|
98
|
-
As of version 3, questions may also include an option for "answered too soon". You should select this answer if it was too soon to answer the question at the time the first answer was given, for instance because the question was about an event that had not happened yet.
|
|
99
|
-
|
|
100
|
-
Requesting arbitration
|
|
101
|
-
----------------------
|
|
102
|
-
|
|
103
|
-
If you see a question with an incorrect answer and a high bond, you can request arbitration.
|
|
104
|
-
|
|
105
|
-
To request arbitration you must pay the arbitrator a fee. The fee may be quite high, and it will not be returned to you even if you are right. However, you will receive the bond posted with the incorrect answer. To make it profitable to request arbitration, you can increase your bond to the point where the person posting the incorrect answer will either give up, making your answer the winner, or post a bond that exceeds the amount you will have to pay the arbitrator.
|
|
106
|
-
|
|
107
|
-
Once the arbitration fee has been paid the question will be locked, and the participants have to wait for the arbitrator to send their final answer to the contract.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
See :doc:`arbitrators` for more details on how the arbitration process works.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
Reopening questions
|
|
114
|
-
-------------------
|
|
115
|
-
|
|
116
|
-
A question that resolved as "answered too soon" can be reopened. This creates a new version of the question, and the question reward is transferred to the new question.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Withdrawing funds
|
|
120
|
-
-----------------
|
|
121
|
-
|
|
122
|
-
Once a question has been finalized, anyone who submitted the correct answer will be able to withdraw funds.
|
|
123
|
-
|
|
124
|
-
Once funds are available, a "Claim" button will show up on the "your" tab that appears when you click the user icon in the top-right corner. Clicking the "Claim" button will send the funds to your account.
|
|
125
|
-
|
|
126
|
-
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Linking to the Reality.eth dapp
|
|
2
|
-
===============================
|
|
3
|
-
|
|
4
|
-
Parameters can be set for the reality.eth dapp by adding ``#!`` to the top page, followed by parameters and their values, delimited by ``/``.
|
|
5
|
-
https://reality.eth.link/app/index.html#!/question/0xa09ce5e7943f281a782a0dc021c4029f9088bec4-0x4c6b2691b7f698690168f1fa09c74886cb347d14207ef9a0340a7e53aced9961
|
|
6
|
-
|
|
7
|
-
Multiple parameters may be added in any order.
|
|
8
|
-
|
|
9
|
-
Choosing the chain
|
|
10
|
-
------------------
|
|
11
|
-
|
|
12
|
-
By default the dapp will show you the chain to which the user is already connected using MetaMask etc.
|
|
13
|
-
|
|
14
|
-
To specify the chain, append ``network``, followed by the chain ID.
|
|
15
|
-
|
|
16
|
-
For example, for the Rinkeby chain use:
|
|
17
|
-
https://reality.eth.link/app/index.html#!/network/4
|
|
18
|
-
|
|
19
|
-
If the user does not have this network selected, it will prompt them to switch to it. If the user does not have the chain in question configured in their browser, it will attempt to configure it using data from https://chainlist.org/. This is currently supported by MetaMask but not by Brave.
|
|
20
|
-
|
|
21
|
-
Choosing the token
|
|
22
|
-
------------------
|
|
23
|
-
|
|
24
|
-
Append ``token`` and the code for the token.
|
|
25
|
-
|
|
26
|
-
For example, to use the ``POLK`` token, use
|
|
27
|
-
https://reality.eth.link/app/index.html#!/token/POLK
|
|
28
|
-
|
|
29
|
-
If you do not specify a token, the dapp will default to the native token, assuming one is supported.
|
|
30
|
-
|
|
31
|
-
Specifying the contract
|
|
32
|
-
-----------------------
|
|
33
|
-
|
|
34
|
-
On some networks, multiple versions of Reality.eth are supported, each with their own contract.
|
|
35
|
-
|
|
36
|
-
To specify that only a particular contract version should be used, for both displaying questions and asking new questions, append ``contract`` and the address of the contract.
|
|
37
|
-
|
|
38
|
-
For example, on Rinkeby the reality.eth 2.0 contract is deployed at ``0x3D00D77ee771405628a4bA4913175EcC095538da``, so you would link to:
|
|
39
|
-
https://reality.eth.link/app/index.html#!/contract/0x3D00D77ee771405628a4bA4913175EcC095538da
|
|
40
|
-
|
|
41
|
-
Specifying the question
|
|
42
|
-
-----------------------
|
|
43
|
-
|
|
44
|
-
To link to a specific question, add the ID. Since multiple contracts may be supported on the same network, you should include the contract address.
|
|
45
|
-
|
|
46
|
-
For example, for a question on contract ``0x3d00d77ee771405628a4ba4913175ecc095538da`` you would use:
|
|
47
|
-
https://reality.eth.link/app/index.html#!/question/0x3d00d77ee771405628a4ba4913175ecc095538da-0xf9d2c6cd9a1b21d8ec4829dbb1e7b49e951e8171465335907274434b2b762774
|
|
48
|
-
|
|
49
|
-
This will display your question using the contract to which it was posted, even if you do not otherwise specify the contract that should be displayed by the UI.
|
|
50
|
-
|
|
51
|
-
Specifying the question creator
|
|
52
|
-
-------------------------------
|
|
53
|
-
|
|
54
|
-
You can filter to the creator of a question by supplying the ``creator`` parameter and its address. This is often useful when your questions are created by a contract.
|
|
55
|
-
|
|
56
|
-
Specifying the question creator
|
|
57
|
-
-------------------------------
|
|
58
|
-
|
|
59
|
-
You can filter to a particular arbitrator by supplying the ``arbitrator`` parameter and its address.
|
|
60
|
-
|
|
61
|
-
Specifying the question template
|
|
62
|
-
--------------------------------
|
|
63
|
-
|
|
64
|
-
You can filter to a particular question template by supplying the ``template`` parameter and the numerical ID of the template. You should also specify the ``contract`` parameter above, as a different contract may use the same numerical ID for a different template.
|
|
65
|
-
|
|
66
|
-
.. note:: Prior to August, 2021, question IDs did not include the contract address. These are still supported, but if the `contract` parameter is not supplied, the dapp may not be able to tell which contract the question lives on.
|
|
67
|
-
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
Fees and payments
|
|
2
|
-
=================
|
|
3
|
-
|
|
4
|
-
.. toctree::
|
|
5
|
-
:maxdepth: 2
|
|
6
|
-
:caption: Contents:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
All fees are set by participants.
|
|
10
|
-
|
|
11
|
-
=============== ================= =================== ============ ========================================
|
|
12
|
-
Fee Set by Paid by Deductions Paid to
|
|
13
|
-
=============== ================= =================== ============ ========================================
|
|
14
|
-
Question fee Arbitrator Asker Arbitrator
|
|
15
|
-
Question reward Asker Asker Highest-bonded correct answerer [1]
|
|
16
|
-
Answer bond Answerer Answerer Takeover fee Answerer, or Next correct answerer
|
|
17
|
-
Takeover fee [= previous bond] Subsequent answerer Previous answerer
|
|
18
|
-
Arbitration fee Arbitration Anyone Arbitrator
|
|
19
|
-
Claim fee [2.5%] Claimer [Burned]
|
|
20
|
-
=============== ================= =================== ============ ========================================
|
|
21
|
-
|
|
22
|
-
[1] Except when settled by arbitration. See below for details.
|
|
23
|
-
|
|
24
|
-
Question fee
|
|
25
|
-
------------
|
|
26
|
-
|
|
27
|
-
A fee set (optionally) by the arbitrator for asking a question.
|
|
28
|
-
|
|
29
|
-
This fee is intended to be used as an anti-spam measure if the network fees are insufficient.
|
|
30
|
-
|
|
31
|
-
Set by the arbitrator.
|
|
32
|
-
|
|
33
|
-
Paid by the question asker.
|
|
34
|
-
|
|
35
|
-
Paid to the arbitrator.
|
|
36
|
-
|
|
37
|
-
Question reward
|
|
38
|
-
---------------
|
|
39
|
-
|
|
40
|
-
A reward for answering the question.
|
|
41
|
-
|
|
42
|
-
Set by the question asker.
|
|
43
|
-
|
|
44
|
-
Paid by the question asker.
|
|
45
|
-
|
|
46
|
-
Paid to whoever last gives the final answer. If the answer is decided by the arbitrator, the arbitrator specifies who should get paid. If they decide the final answer given was incorrect, they should direct that it be paid to whoever paid for arbitration.
|
|
47
|
-
|
|
48
|
-
Answer bond
|
|
49
|
-
-----------
|
|
50
|
-
|
|
51
|
-
A bond paid by someone who gives an answer to back their claim that the answer is correct.
|
|
52
|
-
|
|
53
|
-
Set by the question answerer. However, if there is an earlier answer, it must be least twice the level of the bond given with that answer.
|
|
54
|
-
|
|
55
|
-
Paid by the question answerer.
|
|
56
|
-
|
|
57
|
-
If the answer is correct (ie matches the final answer) this is returned. The same amount may be received as an Answer Takeover Fee (see below).
|
|
58
|
-
|
|
59
|
-
If the answer is incorrect, this is paid to the next answerer to supply the correct answer.
|
|
60
|
-
|
|
61
|
-
Answer takeover fee
|
|
62
|
-
-------------------
|
|
63
|
-
|
|
64
|
-
A fee for taking over a correct answer given by someone else.
|
|
65
|
-
|
|
66
|
-
Set to equal the bond supplied by the last person to give that answer.
|
|
67
|
-
|
|
68
|
-
Paid to the last person to give that answer.
|
|
69
|
-
|
|
70
|
-
Paid by deducting it from payments that would otherwise by awarded for giving the correct answer.
|
|
71
|
-
|
|
72
|
-
Arbitration fee
|
|
73
|
-
---------------
|
|
74
|
-
|
|
75
|
-
A fee paid to the arbitrator when requesting that they intervene and provide arbitration for a question.
|
|
76
|
-
|
|
77
|
-
Set by the arbitrator.
|
|
78
|
-
|
|
79
|
-
Paid to the arbitrator.
|
|
80
|
-
|
|
81
|
-
Paid by the user requesting arbitration. Usually this will be an answerer whoses answer has been replaced by another answerer supplying a higher bond. They would normally not request arbitration until bonds have reached a level where the amount they stand to gain exceeds the arbitration fee.
|
|
82
|
-
|
|
83
|
-
Claim fee
|
|
84
|
-
---------------
|
|
85
|
-
|
|
86
|
-
From version 2.1 onwards, when you claim a bond other than the final bond, 2.5% is burned (left in contract balance).
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.. Reality.eth documentation master file, created by
|
|
2
|
-
sphinx-quickstart on Thu Sep 28 14:43:50 2017.
|
|
3
|
-
You can adapt this file completely to your liking, but it should at least
|
|
4
|
-
contain the root `toctree` directive.
|
|
5
|
-
|
|
6
|
-
Reality.eth
|
|
7
|
-
=========================================
|
|
8
|
-
|
|
9
|
-
Reality.eth is a crowd-sourced on-chain smart contract oracle system by Reality Keys.
|
|
10
|
-
|
|
11
|
-
Reality.eth can be used either from our web application or by calling our contracts directly.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.. toctree::
|
|
15
|
-
:maxdepth: 2
|
|
16
|
-
:caption: Contents:
|
|
17
|
-
|
|
18
|
-
dapp
|
|
19
|
-
contracts
|
|
20
|
-
javascript
|
|
21
|
-
arbitrators
|
|
22
|
-
fees
|
|
23
|
-
whitepaper
|
|
24
|
-
contract_explanation
|
|
25
|
-
dapp_links
|
|
26
|
-
audit
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
Using Reality.eth from JavaScript
|
|
2
|
-
=====================================
|
|
3
|
-
|
|
4
|
-
Contract deployments
|
|
5
|
-
--------------------
|
|
6
|
-
|
|
7
|
-
You can find the reality.eth contract addresses under https://github.com/RealityETH/reality-eth-monorepo/tree/main/packages/contracts/chains/deployments .
|
|
8
|
-
|
|
9
|
-
For instance, the reality.eth v3 contract for mainnet (chain ID `1`) is shown in the file
|
|
10
|
-
|
|
11
|
-
https://github.com/RealityETH/reality-eth-monorepo/blob/main/packages/contracts/chains/deployments/1/ETH/RealityETH-3.0.json
|
|
12
|
-
|
|
13
|
-
These are also stored in the `@reality.eth/contracts` library. You can install them with
|
|
14
|
-
|
|
15
|
-
.. code-block:: javascript
|
|
16
|
-
|
|
17
|
-
npm install --save @reality.eth/contracts
|
|
18
|
-
|
|
19
|
-
You can load this library with
|
|
20
|
-
|
|
21
|
-
.. code-block:: javascript
|
|
22
|
-
|
|
23
|
-
const reality_eth_contracts = require('@reality.eth/contracts');
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Loading the contracts for your network / token
|
|
29
|
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
30
|
-
|
|
31
|
-
You can check if a given `chain_id` is supported by calling
|
|
32
|
-
|
|
33
|
-
.. code-block:: javascript
|
|
34
|
-
|
|
35
|
-
reality_eth_contracts.isChainSupported(chain_id);
|
|
36
|
-
|
|
37
|
-
We normally deploy a reality.eth contract for the native token on the chain (the token you pay gas with), and some chains may have additional contracts supporting different ERC20 tokens. You can get the name of the native token by calling `reality_eth_contracts.defaultTokenForChain(chain_id)`. On the Ethereum mainnet this will be `ETH`.
|
|
38
|
-
|
|
39
|
-
.. code-block:: javascript
|
|
40
|
-
|
|
41
|
-
const token_ticker = reality_eth_contracts.defaultTokenForChain(chain_id);
|
|
42
|
-
|
|
43
|
-
The token may have multiple reality.eth contracts for different versions. You can read these with
|
|
44
|
-
|
|
45
|
-
.. code-block:: javascript
|
|
46
|
-
|
|
47
|
-
const my_configs = reality_eth_contracts.realityETHConfigs(chain_id, token_ticker);
|
|
48
|
-
|
|
49
|
-
If you know which version you want, you can pass this to get a single config, eg
|
|
50
|
-
|
|
51
|
-
.. code-block:: javascript
|
|
52
|
-
|
|
53
|
-
const my_config = reality_eth_contracts.realityETHConfig(chain_id, token_ticker, '3.0');
|
|
54
|
-
|
|
55
|
-
To get an instance of the contract with the ABI populated, you can call
|
|
56
|
-
|
|
57
|
-
.. code-block:: javascript
|
|
58
|
-
|
|
59
|
-
const my_instance = reality_eth_contracts.realityETHInstance(my_config);
|
|
60
|
-
|
|
61
|
-
You can then create an instance in `ethers.js`, using a provider, with something like
|
|
62
|
-
|
|
63
|
-
.. code-block:: javascript
|
|
64
|
-
|
|
65
|
-
const my_instance = new ethers.Contract(my_instance.address, my_instance.abi, provider);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Using reality-eth-lib
|
|
69
|
-
---------------------
|
|
70
|
-
|
|
71
|
-
We provide a library to help with formatting questions and parsing the answers.
|
|
72
|
-
|
|
73
|
-
Although it is possible to format questions and handle the answers without using this library, we recommend that you use it where possible to ensure that your code matches what users will see if they interact with your questions on the reality.eth dapp or in other UI code.
|
|
74
|
-
|
|
75
|
-
You can install this library with
|
|
76
|
-
|
|
77
|
-
.. code-block:: javascript
|
|
78
|
-
|
|
79
|
-
npm install --save @reality.eth/reality-eth-lib
|
|
80
|
-
|
|
81
|
-
You can then import libraries for handling questions and templates.
|
|
82
|
-
|
|
83
|
-
.. code-block:: javascript
|
|
84
|
-
|
|
85
|
-
const reality_eth_question = require('@reality.eth/reality-eth-lib').question;
|
|
86
|
-
const reality_eth_template = require('@reality.eth/reality-eth-lib').template;
|
|
87
|
-
|
|
88
|
-
This library will help you handle the encoding and decoding of questions using templates. See :doc:`contracts` to understand how the template system works.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Interpreting a question
|
|
92
|
-
^^^^^^^^^^^^^^^^^^^^^^^
|
|
93
|
-
|
|
94
|
-
A question stored on the blockchain consists of a template ID, with the body of the template in the logs for that template, and some encoded text.
|
|
95
|
-
|
|
96
|
-
The template ID and question text are passed in as the first arguments of the `askQuestion()` function which creates questions.
|
|
97
|
-
|
|
98
|
-
This data can be fetched from event logs: The question text is logged in the `question` field of the `LogNewQuestion` event, and the template ID in the `template_id` field. The text of the template can be found by looking up the `LogNewTemplate` event for the `template_id`, where it is found in the `question_text` field.
|
|
99
|
-
|
|
100
|
-
It can also be fetched by querying our subgraph, for example
|
|
101
|
-
https://thegraph.com/hosted-service/subgraph/realityeth/realityeth
|
|
102
|
-
|
|
103
|
-
.. code-block:: javascript
|
|
104
|
-
|
|
105
|
-
{
|
|
106
|
-
questions(first: 5) {
|
|
107
|
-
data
|
|
108
|
-
template {
|
|
109
|
-
questionText
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Having populated the `tmpl` and `qtext` variables, the following will parse the text and populate a an object with the question `title`, `type` and any other fields it may have such as `category`.
|
|
116
|
-
|
|
117
|
-
.. code-block:: javascript
|
|
118
|
-
|
|
119
|
-
const q = reality_eth_question.populatedJSONForTemplate(tmpl, qtext);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
Creating a question
|
|
123
|
-
^^^^^^^^^^^^^^^^^^^
|
|
124
|
-
|
|
125
|
-
Questions are created by calling the `askQuestion` method of the reality.eth contract. This requires a template ID and some parameters, stored in a string of text. The questions are formatted using an unusual delimiter character, "␟". See :doc:`contracts` for more details on formatting. The `encodeText` function will handle formatting text for inclusion into a template.
|
|
126
|
-
|
|
127
|
-
The supported types are `bool`, `uint`, `single-select`, `multiple-select`, `datetime`.
|
|
128
|
-
|
|
129
|
-
Our built-in templates expect a type, the question title, a list of outcomes (for select types only), a category and a language. If your template expects the same parameters in the same order, you can use the following methods to format the text:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
.. code-block:: javascript
|
|
133
|
-
|
|
134
|
-
const qtext = reality_eth_question.encodeText('bool', 'my title', null, 'my-category', 'en_US');
|
|
135
|
-
|
|
136
|
-
const qtext = reality_eth_question.encodeText('multiple-select', 'my title', ["option1", "option2"], 'my-category');
|
|
137
|
-
const qtext = reality_eth_question.encodeText('single-select', 'my title', ["option1", "option2"], 'my-category');
|
|
138
|
-
|
|
139
|
-
If your template uses different parameters or parameters in a different order, you can pass them as an object with the keys appropriately ordered to `encodeCustomText`.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@ECHO OFF
|
|
2
|
-
|
|
3
|
-
pushd %~dp0
|
|
4
|
-
|
|
5
|
-
REM Command file for Sphinx documentation
|
|
6
|
-
|
|
7
|
-
if "%SPHINXBUILD%" == "" (
|
|
8
|
-
set SPHINXBUILD=python -msphinx
|
|
9
|
-
)
|
|
10
|
-
set SOURCEDIR=.
|
|
11
|
-
set BUILDDIR=_build
|
|
12
|
-
set SPHINXPROJ=RealityCheck
|
|
13
|
-
|
|
14
|
-
if "%1" == "" goto help
|
|
15
|
-
|
|
16
|
-
%SPHINXBUILD% >NUL 2>NUL
|
|
17
|
-
if errorlevel 9009 (
|
|
18
|
-
echo.
|
|
19
|
-
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
|
|
20
|
-
echo.then set the SPHINXBUILD environment variable to point to the full
|
|
21
|
-
echo.path of the 'sphinx-build' executable. Alternatively you may add the
|
|
22
|
-
echo.Sphinx directory to PATH.
|
|
23
|
-
echo.
|
|
24
|
-
echo.If you don't have Sphinx installed, grab it from
|
|
25
|
-
echo.http://sphinx-doc.org/
|
|
26
|
-
exit /b 1
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
30
|
-
goto end
|
|
31
|
-
|
|
32
|
-
:help
|
|
33
|
-
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
|
|
34
|
-
|
|
35
|
-
:end
|
|
36
|
-
popd
|
|
Binary file
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
alabaster==0.7.12
|
|
2
|
-
Babel==2.9.1
|
|
3
|
-
certifi==2020.12.5
|
|
4
|
-
chardet==4.0.0
|
|
5
|
-
docutils==0.16
|
|
6
|
-
idna==2.10
|
|
7
|
-
imagesize==1.2.0
|
|
8
|
-
Jinja2==3.0.1
|
|
9
|
-
MarkupSafe==2.0.1
|
|
10
|
-
packaging==20.9
|
|
11
|
-
Pygments==2.9.0
|
|
12
|
-
pyparsing==2.4.7
|
|
13
|
-
pytz==2021.1
|
|
14
|
-
requests==2.25.1
|
|
15
|
-
snowballstemmer==2.1.0
|
|
16
|
-
Sphinx==3.5.4
|
|
17
|
-
sphinx-rtd-theme==0.5.2
|
|
18
|
-
sphinxcontrib-applehelp==1.0.2
|
|
19
|
-
sphinxcontrib-devhelp==1.0.2
|
|
20
|
-
sphinxcontrib-htmlhelp==2.0.0
|
|
21
|
-
sphinxcontrib-jsmath==1.0.1
|
|
22
|
-
sphinxcontrib-qthelp==1.0.3
|
|
23
|
-
sphinxcontrib-serializinghtml==1.1.5
|
|
24
|
-
urllib3==1.26.4
|