polkamarkets-js 3.4.0 → 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.
Files changed (297) hide show
  1. package/abis/PredictionMarketV3Querier.json +1 -1
  2. package/contracts/PredictionMarketV3Querier.sol +4 -2
  3. package/package.json +1 -1
  4. package/src/models/PredictionMarketV3Contract.js +51 -17
  5. package/abis/AddAdminToLand.json +0 -1
  6. package/abis/ClaimMerkleRoot.json +0 -1
  7. package/abis/CreateLand.json +0 -1
  8. package/abis/CreateMarkets.json +0 -1
  9. package/abis/DeployContracts.json +0 -1
  10. package/abis/DeployMerkleRewardsDistributor.json +0 -1
  11. package/abis/DeployToken.json +0 -1
  12. package/abis/DeployUSDT.json +0 -1
  13. package/abis/MintTokens.json +0 -1
  14. package/abis/PublishMerkleRoot.json +0 -1
  15. package/abis/ResolveMarket.json +0 -1
  16. package/abis/TradeMarket.json +0 -1
  17. package/abis/USDT.json +0 -1
  18. package/lib/openzeppelin-contracts/contracts/mocks/docs/ERC20WithAutoMinerReward.sol +0 -22
  19. package/lib/openzeppelin-contracts/contracts/mocks/docs/ERC4626Fees.sol +0 -109
  20. package/lib/openzeppelin-contracts/contracts/mocks/docs/MyNFT.sol +0 -9
  21. package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintBase.sol +0 -25
  22. package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintMissing.sol +0 -24
  23. package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintOnlyRole.sol +0 -23
  24. package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlModified.sol +0 -14
  25. package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessManagedERC20MintBase.sol +0 -16
  26. package/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/MyContractOwnable.sol +0 -17
  27. package/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyAccountERC7702.sol +0 -20
  28. package/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyFactoryAccount.sol +0 -37
  29. package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyGovernor.sol +0 -80
  30. package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyToken.sol +0 -21
  31. package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenTimestampBased.sol +0 -32
  32. package/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenWrapped.sol +0 -28
  33. package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/GameItems.sol +0 -21
  34. package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/MyERC115HolderContract.sol +0 -7
  35. package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC20/GLDToken.sol +0 -11
  36. package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC6909/ERC6909GameItems.sol +0 -26
  37. package/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC721/GameItem.sol +0 -19
  38. package/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Base64NFT.sol +0 -27
  39. package/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Multicall.sol +0 -15
  40. package/lib/openzeppelin-contracts/docs/README.md +0 -16
  41. package/lib/openzeppelin-contracts/docs/antora.yml +0 -7
  42. package/lib/openzeppelin-contracts/docs/config.js +0 -21
  43. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-control-multiple.svg +0 -97
  44. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager-functions.svg +0 -47
  45. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager.svg +0 -99
  46. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3a.png +0 -0
  47. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3b.png +0 -0
  48. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-6.png +0 -0
  49. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack.png +0 -0
  50. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-deposit.png +0 -0
  51. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-mint.png +0 -0
  52. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-linear.png +0 -0
  53. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglog.png +0 -0
  54. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglogext.png +0 -0
  55. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-exec.png +0 -0
  56. package/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-vote.png +0 -0
  57. package/lib/openzeppelin-contracts/docs/modules/ROOT/nav.adoc +0 -29
  58. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/access-control.adoc +0 -288
  59. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/account-abstraction.adoc +0 -100
  60. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/accounts.adoc +0 -354
  61. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/backwards-compatibility.adoc +0 -50
  62. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/eoa-delegation.adoc +0 -143
  63. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc1155.adoc +0 -118
  64. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20-supply.adoc +0 -71
  65. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20.adoc +0 -67
  66. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc4626.adoc +0 -214
  67. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc6909.adoc +0 -47
  68. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc721.adoc +0 -58
  69. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/extending-contracts.adoc +0 -51
  70. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/faq.adoc +0 -13
  71. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/governance.adoc +0 -239
  72. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/index.adoc +0 -70
  73. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/multisig.adoc +0 -306
  74. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/tokens.adoc +0 -31
  75. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/upgradeable.adoc +0 -77
  76. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/utilities.adoc +0 -591
  77. package/lib/openzeppelin-contracts/docs/modules/ROOT/pages/wizard.adoc +0 -15
  78. package/lib/openzeppelin-contracts/docs/templates/contract.hbs +0 -141
  79. package/lib/openzeppelin-contracts/docs/templates/helpers.js +0 -46
  80. package/lib/openzeppelin-contracts/docs/templates/page.hbs +0 -4
  81. package/lib/openzeppelin-contracts/docs/templates/properties.js +0 -88
  82. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/ERC20WithAutoMinerRewardUpgradeable.sol +0 -28
  83. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/ERC4626FeesUpgradeable.sol +0 -115
  84. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/MyNFTUpgradeable.sol +0 -14
  85. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlERC20MintBaseUpgradeable.sol +0 -31
  86. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlERC20MintMissingUpgradeable.sol +0 -30
  87. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlERC20MintOnlyRoleUpgradeable.sol +0 -29
  88. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessControlModifiedUpgradeable.sol +0 -20
  89. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/AccessManagedERC20MintBaseUpgradeable.sol +0 -22
  90. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/access-control/MyContractOwnableUpgradeable.sol +0 -22
  91. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/account/MyAccountERC7702Upgradeable.sol +0 -26
  92. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/account/MyFactoryAccountUpgradeable.sol +0 -42
  93. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyGovernorUpgradeable.sol +0 -92
  94. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyTokenTimestampBasedUpgradeable.sol +0 -39
  95. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyTokenUpgradeable.sol +0 -28
  96. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/governance/MyTokenWrappedUpgradeable.sol +0 -39
  97. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC1155/GameItemsUpgradeable.sol +0 -27
  98. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC1155/MyERC115HolderContractUpgradeable.sol +0 -13
  99. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC20/GLDTokenUpgradeable.sol +0 -17
  100. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC6909/ERC6909GameItemsUpgradeable.sol +0 -31
  101. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/token/ERC721/GameItemUpgradeable.sol +0 -24
  102. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/utilities/Base64NFTUpgradeable.sol +0 -32
  103. package/lib/openzeppelin-contracts-upgradeable/contracts/mocks/docs/utilities/MulticallUpgradeable.sol +0 -21
  104. package/lib/openzeppelin-contracts-upgradeable/docs/README.md +0 -16
  105. package/lib/openzeppelin-contracts-upgradeable/docs/antora.yml +0 -7
  106. package/lib/openzeppelin-contracts-upgradeable/docs/config.js +0 -21
  107. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/access-control-multiple.svg +0 -97
  108. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/access-manager-functions.svg +0 -47
  109. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/access-manager.svg +0 -99
  110. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack-3a.png +0 -0
  111. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack-3b.png +0 -0
  112. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack-6.png +0 -0
  113. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-attack.png +0 -0
  114. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-deposit.png +0 -0
  115. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-mint.png +0 -0
  116. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-rate-linear.png +0 -0
  117. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-rate-loglog.png +0 -0
  118. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/erc4626-rate-loglogext.png +0 -0
  119. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/tally-exec.png +0 -0
  120. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/images/tally-vote.png +0 -0
  121. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/nav.adoc +0 -29
  122. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/access-control.adoc +0 -288
  123. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/account-abstraction.adoc +0 -100
  124. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/accounts.adoc +0 -354
  125. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/backwards-compatibility.adoc +0 -50
  126. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/eoa-delegation.adoc +0 -143
  127. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc1155.adoc +0 -118
  128. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc20-supply.adoc +0 -71
  129. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc20.adoc +0 -67
  130. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc4626.adoc +0 -214
  131. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc6909.adoc +0 -47
  132. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/erc721.adoc +0 -58
  133. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/extending-contracts.adoc +0 -51
  134. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/faq.adoc +0 -13
  135. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/governance.adoc +0 -239
  136. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/index.adoc +0 -70
  137. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/multisig.adoc +0 -306
  138. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/tokens.adoc +0 -31
  139. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/upgradeable.adoc +0 -77
  140. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/utilities.adoc +0 -591
  141. package/lib/openzeppelin-contracts-upgradeable/docs/modules/ROOT/pages/wizard.adoc +0 -15
  142. package/lib/openzeppelin-contracts-upgradeable/docs/templates/contract.hbs +0 -141
  143. package/lib/openzeppelin-contracts-upgradeable/docs/templates/helpers.js +0 -46
  144. package/lib/openzeppelin-contracts-upgradeable/docs/templates/page.hbs +0 -4
  145. package/lib/openzeppelin-contracts-upgradeable/docs/templates/properties.js +0 -88
  146. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/ERC20WithAutoMinerReward.sol +0 -22
  147. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/ERC4626Fees.sol +0 -109
  148. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/MyNFT.sol +0 -9
  149. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintBase.sol +0 -25
  150. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintMissing.sol +0 -24
  151. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlERC20MintOnlyRole.sol +0 -23
  152. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessControlModified.sol +0 -14
  153. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/AccessManagedERC20MintBase.sol +0 -16
  154. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/access-control/MyContractOwnable.sol +0 -17
  155. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyAccountERC7702.sol +0 -20
  156. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/account/MyFactoryAccount.sol +0 -37
  157. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyGovernor.sol +0 -80
  158. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyToken.sol +0 -21
  159. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenTimestampBased.sol +0 -32
  160. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/governance/MyTokenWrapped.sol +0 -28
  161. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/GameItems.sol +0 -21
  162. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC1155/MyERC115HolderContract.sol +0 -7
  163. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC20/GLDToken.sol +0 -11
  164. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC6909/ERC6909GameItems.sol +0 -26
  165. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/token/ERC721/GameItem.sol +0 -19
  166. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Base64NFT.sol +0 -27
  167. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/mocks/docs/utilities/Multicall.sol +0 -15
  168. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/README.md +0 -16
  169. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/antora.yml +0 -7
  170. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/config.js +0 -21
  171. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-control-multiple.svg +0 -97
  172. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager-functions.svg +0 -47
  173. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/access-manager.svg +0 -99
  174. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3a.png +0 -0
  175. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-3b.png +0 -0
  176. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack-6.png +0 -0
  177. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-attack.png +0 -0
  178. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-deposit.png +0 -0
  179. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-mint.png +0 -0
  180. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-linear.png +0 -0
  181. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglog.png +0 -0
  182. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/erc4626-rate-loglogext.png +0 -0
  183. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-exec.png +0 -0
  184. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/images/tally-vote.png +0 -0
  185. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/nav.adoc +0 -29
  186. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/access-control.adoc +0 -288
  187. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/account-abstraction.adoc +0 -100
  188. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/accounts.adoc +0 -354
  189. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/backwards-compatibility.adoc +0 -50
  190. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/eoa-delegation.adoc +0 -143
  191. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc1155.adoc +0 -118
  192. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20-supply.adoc +0 -71
  193. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc20.adoc +0 -67
  194. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc4626.adoc +0 -214
  195. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc6909.adoc +0 -47
  196. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/erc721.adoc +0 -58
  197. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/extending-contracts.adoc +0 -51
  198. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/faq.adoc +0 -13
  199. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/governance.adoc +0 -239
  200. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/index.adoc +0 -70
  201. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/multisig.adoc +0 -306
  202. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/tokens.adoc +0 -31
  203. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/upgradeable.adoc +0 -77
  204. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/utilities.adoc +0 -591
  205. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/modules/ROOT/pages/wizard.adoc +0 -15
  206. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/contract.hbs +0 -141
  207. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/helpers.js +0 -46
  208. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/page.hbs +0 -4
  209. package/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/docs/templates/properties.js +0 -88
  210. package/lib/openzeppelin-contracts-upgradeable.git/docs/antora.yml +0 -6
  211. package/lib/openzeppelin-contracts-upgradeable.git/docs/config.js +0 -21
  212. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/images/tally-exec.png +0 -0
  213. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/images/tally-vote.png +0 -0
  214. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/nav.adoc +0 -23
  215. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/access-control.adoc +0 -217
  216. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/crosschain.adoc +0 -210
  217. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/crowdsales.adoc +0 -11
  218. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/drafts.adoc +0 -19
  219. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc1155.adoc +0 -153
  220. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc20-supply.adoc +0 -113
  221. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc20.adoc +0 -85
  222. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc721.adoc +0 -90
  223. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/erc777.adoc +0 -73
  224. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/extending-contracts.adoc +0 -129
  225. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/governance.adoc +0 -321
  226. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/index.adoc +0 -63
  227. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/releases-stability.adoc +0 -85
  228. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/tokens.adoc +0 -32
  229. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/upgradeable.adoc +0 -73
  230. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/utilities.adoc +0 -190
  231. package/lib/openzeppelin-contracts-upgradeable.git/docs/modules/ROOT/pages/wizard.adoc +0 -15
  232. package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/contract.hbs +0 -85
  233. package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/helpers.js +0 -46
  234. package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/page.hbs +0 -4
  235. package/lib/openzeppelin-contracts-upgradeable.git/docs/templates/properties.js +0 -49
  236. package/lib/openzeppelin-contracts.git/docs/antora.yml +0 -6
  237. package/lib/openzeppelin-contracts.git/docs/config.js +0 -21
  238. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/images/tally-exec.png +0 -0
  239. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/images/tally-vote.png +0 -0
  240. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/nav.adoc +0 -23
  241. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/access-control.adoc +0 -217
  242. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/crosschain.adoc +0 -210
  243. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/crowdsales.adoc +0 -11
  244. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/drafts.adoc +0 -19
  245. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc1155.adoc +0 -153
  246. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc20-supply.adoc +0 -113
  247. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc20.adoc +0 -85
  248. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc721.adoc +0 -90
  249. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/erc777.adoc +0 -73
  250. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/extending-contracts.adoc +0 -129
  251. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/governance.adoc +0 -321
  252. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/index.adoc +0 -63
  253. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/releases-stability.adoc +0 -85
  254. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/tokens.adoc +0 -32
  255. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/upgradeable.adoc +0 -73
  256. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/utilities.adoc +0 -190
  257. package/lib/openzeppelin-contracts.git/docs/modules/ROOT/pages/wizard.adoc +0 -15
  258. package/lib/openzeppelin-contracts.git/docs/templates/contract.hbs +0 -85
  259. package/lib/openzeppelin-contracts.git/docs/templates/helpers.js +0 -46
  260. package/lib/openzeppelin-contracts.git/docs/templates/page.hbs +0 -4
  261. package/lib/openzeppelin-contracts.git/docs/templates/properties.js +0 -49
  262. package/lib/reality-eth-monorepo/packages/docs/Audit_Reality_v3_202108.pdf +0 -0
  263. package/lib/reality-eth-monorepo/packages/docs/Makefile +0 -20
  264. package/lib/reality-eth-monorepo/packages/docs/arbitrators.rst +0 -85
  265. package/lib/reality-eth-monorepo/packages/docs/audit.rst +0 -12
  266. package/lib/reality-eth-monorepo/packages/docs/audit_v2.rst +0 -249
  267. package/lib/reality-eth-monorepo/packages/docs/audit_v2_ERC20.rst +0 -1075
  268. package/lib/reality-eth-monorepo/packages/docs/audit_v3.rst +0 -70
  269. package/lib/reality-eth-monorepo/packages/docs/conf.py +0 -155
  270. package/lib/reality-eth-monorepo/packages/docs/contract_explanation.rst +0 -82
  271. package/lib/reality-eth-monorepo/packages/docs/contracts.rst +0 -277
  272. package/lib/reality-eth-monorepo/packages/docs/dapp.rst +0 -126
  273. package/lib/reality-eth-monorepo/packages/docs/dapp_links.rst +0 -67
  274. package/lib/reality-eth-monorepo/packages/docs/fees.rst +0 -89
  275. package/lib/reality-eth-monorepo/packages/docs/index.rst +0 -26
  276. package/lib/reality-eth-monorepo/packages/docs/javascript.rst +0 -142
  277. package/lib/reality-eth-monorepo/packages/docs/make.bat +0 -36
  278. package/lib/reality-eth-monorepo/packages/docs/question_box.png +0 -0
  279. package/lib/reality-eth-monorepo/packages/docs/requirements.txt +0 -24
  280. package/lib/reality-eth-monorepo/packages/docs/whitepaper.rst +0 -165
  281. package/script/UpdateMarket.s.sol +0 -56
  282. package/scripts/AddAdminToLand.s.sol +0 -29
  283. package/scripts/ClaimMerkleRoot.s.sol +0 -34
  284. package/scripts/CreateLand.s.sol +0 -28
  285. package/scripts/CreateMarkets.s.sol +0 -71
  286. package/scripts/DeployContracts.s.sol +0 -94
  287. package/scripts/DeployMerkleRewardsDistributor.s.sol +0 -27
  288. package/scripts/DeployToken.s.sol +0 -17
  289. package/scripts/DeployUSDT.s.sol +0 -24
  290. package/scripts/MintTokens.s.sol +0 -21
  291. package/scripts/PublishMerkleRoot.s.sol +0 -50
  292. package/scripts/ResolveMarket.s.sol +0 -23
  293. package/scripts/TradeMarket.s.sol +0 -28
  294. package/scripts/UpdateMarket.s.sol +0 -55
  295. package/test/UpdateTest.t.sol +0 -55
  296. package/test/WhaleTest.t.sol +0 -188
  297. 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
@@ -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