@peeramid-labs/sdk 3.15.0 → 3.16.0

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 (335) hide show
  1. package/README.md +34 -0
  2. package/cli/abis/ArguableVotingTournament.js +10 -0
  3. package/cli/abis/ArguableVotingTournament.js.map +1 -1
  4. package/cli/abis/MAODistribution.js +16 -0
  5. package/cli/abis/MAODistribution.js.map +1 -1
  6. package/cli/abis/MockShortStrings.js +37 -0
  7. package/cli/abis/MockShortStrings.js.map +1 -0
  8. package/cli/abis/Multipass.js +7 -1
  9. package/cli/abis/Multipass.js.map +1 -1
  10. package/cli/abis/PausableUpgradeable.js +79 -0
  11. package/cli/abis/PausableUpgradeable.js.map +1 -0
  12. package/cli/abis/RankToken.js +38 -0
  13. package/cli/abis/RankToken.js.map +1 -1
  14. package/cli/abis/RankifyDiamondInstance.js +1987 -756
  15. package/cli/abis/RankifyDiamondInstance.js.map +1 -1
  16. package/cli/abis/RankifyInstanceInit.js +190 -0
  17. package/cli/abis/RankifyInstanceInit.js.map +1 -1
  18. package/cli/abis/RankifyInstanceMainFacet.js +38 -0
  19. package/cli/abis/RankifyInstanceMainFacet.js.map +1 -1
  20. package/cli/abis/RankifyOwnersFacet.js +78 -0
  21. package/cli/abis/RankifyOwnersFacet.js.map +1 -0
  22. package/cli/abis/UBI.js +775 -0
  23. package/cli/abis/UBI.js.map +1 -0
  24. package/cli/abis/index.js +19 -1
  25. package/cli/abis/index.js.map +1 -1
  26. package/cli/abis/superinterface.js +3049 -0
  27. package/cli/abis/superinterface.js.map +1 -0
  28. package/cli/cli/commands/blockchain/mine.js +0 -2
  29. package/cli/cli/commands/blockchain/mine.js.map +1 -1
  30. package/cli/cli/commands/fellowship/game/create.js +45 -1
  31. package/cli/cli/commands/fellowship/game/create.js.map +1 -1
  32. package/cli/cli/commands/fellowship/game/end-proposing.js +2 -2
  33. package/cli/cli/commands/fellowship/game/end-proposing.js.map +1 -1
  34. package/cli/cli/commands/fellowship/game/end-voting.js +2 -2
  35. package/cli/cli/commands/fellowship/game/end-voting.js.map +1 -1
  36. package/cli/cli/commands/fellowship/game/join.js +2 -1
  37. package/cli/cli/commands/fellowship/game/join.js.map +1 -1
  38. package/cli/cli/commands/fellowship/game/start.js +0 -17
  39. package/cli/cli/commands/fellowship/game/start.js.map +1 -1
  40. package/cli/cli/commands/fellowship/game/vote.js +2 -1
  41. package/cli/cli/commands/fellowship/game/vote.js.map +1 -1
  42. package/cli/cli/commands/fellowship/gameMaster/add.js +52 -0
  43. package/cli/cli/commands/fellowship/gameMaster/add.js.map +1 -0
  44. package/cli/cli/commands/fellowship/gameMaster/index.js +7 -0
  45. package/cli/cli/commands/fellowship/gameMaster/index.js.map +1 -0
  46. package/cli/cli/commands/fellowship/index.js +3 -1
  47. package/cli/cli/commands/fellowship/index.js.map +1 -1
  48. package/cli/cli/commands/instances/list.js +6 -0
  49. package/cli/cli/commands/instances/list.js.map +1 -1
  50. package/cli/cli/commands/multipass/contract.js +26 -0
  51. package/cli/cli/commands/multipass/contract.js.map +1 -1
  52. package/cli/cli/commands/multipass/domain.js +44 -1
  53. package/cli/cli/commands/multipass/domain.js.map +1 -1
  54. package/cli/cli/commands/multipass/domains.js +16 -2
  55. package/cli/cli/commands/multipass/domains.js.map +1 -1
  56. package/cli/cli/playbooks/demo-script.js +192 -0
  57. package/cli/cli/playbooks/demo-script.js.map +1 -0
  58. package/cli/cli/playbooks/demoScript.js +190 -0
  59. package/cli/cli/playbooks/demoScript.js.map +1 -0
  60. package/cli/cli/playbooks/initGameMaster.js +50 -0
  61. package/cli/cli/playbooks/initGameMaster.js.map +1 -0
  62. package/cli/cli/playbooks/playbookRunner.js +80 -0
  63. package/cli/cli/playbooks/playbookRunner.js.map +1 -0
  64. package/cli/cli/playbooks/push-game-to-next-phase.js +162 -0
  65. package/cli/cli/playbooks/push-game-to-next-phase.js.map +1 -0
  66. package/cli/cli/playbooks/utils.js +210 -0
  67. package/cli/cli/playbooks/utils.js.map +1 -0
  68. package/cli/multipass/MultipassBase.js +38 -70
  69. package/cli/multipass/MultipassBase.js.map +1 -1
  70. package/cli/multipass/Owner.js +34 -16
  71. package/cli/multipass/Owner.js.map +1 -1
  72. package/cli/rankify/GameMaster.js.map +1 -1
  73. package/cli/rankify/InstanceAdmininstrative.js +70 -0
  74. package/cli/rankify/InstanceAdmininstrative.js.map +1 -0
  75. package/cli/rankify/InstanceBase.js +14 -0
  76. package/cli/rankify/InstanceBase.js.map +1 -1
  77. package/cli/rankify/Player.js +24 -1
  78. package/cli/rankify/Player.js.map +1 -1
  79. package/cli/types.js +7 -1
  80. package/cli/types.js.map +1 -1
  81. package/cli/utils/EnvioGraphQLClient.js +468 -0
  82. package/cli/utils/EnvioGraphQLClient.js.map +1 -1
  83. package/cli/utils/artifacts.js +15 -3
  84. package/cli/utils/artifacts.js.map +1 -1
  85. package/cli/utils/chainMapping.js +0 -1
  86. package/cli/utils/chainMapping.js.map +1 -1
  87. package/docs/classes/EnvioGraphQLClient.md +368 -0
  88. package/docs/classes/GameMaster.md +19 -0
  89. package/docs/classes/InstanceBase.md +19 -0
  90. package/docs/classes/InstancePlayer.md +22 -8
  91. package/docs/classes/InstanceUBI.md +1591 -0
  92. package/docs/classes/Multipass.md +31 -4
  93. package/docs/classes/MultipassBase.md +26 -3
  94. package/docs/docs/classes/EnvioGraphQLClient.md +368 -0
  95. package/docs/docs/classes/GameMaster.md +19 -0
  96. package/docs/docs/classes/InstanceBase.md +19 -0
  97. package/docs/docs/classes/InstancePlayer.md +22 -8
  98. package/docs/docs/classes/InstanceUBI.md +1591 -0
  99. package/docs/docs/classes/Multipass.md +31 -4
  100. package/docs/docs/classes/MultipassBase.md +26 -3
  101. package/docs/docs/enums/ContractTypes.md +27 -0
  102. package/docs/docs/index.md +24 -8
  103. package/docs/docs/interfaces/ContractCondition.md +41 -0
  104. package/docs/docs/interfaces/DailyProposal.md +36 -0
  105. package/docs/docs/interfaces/JoinRequirementsInput.md +20 -0
  106. package/docs/docs/interfaces/ProposalGlobalStats.md +29 -0
  107. package/docs/docs/interfaces/TransactionProperties.md +20 -0
  108. package/docs/docs/interfaces/UBIParams.md +29 -0
  109. package/docs/docs/interfaces/UserState.md +22 -0
  110. package/docs/docs/interfaces/VoteElement.md +22 -0
  111. package/docs/docs/interfaces/configSmartRequirement.md +34 -0
  112. package/docs/docs/interfaces/numericConditon.md +41 -0
  113. package/docs/enums/ContractTypes.md +27 -0
  114. package/docs/index.md +24 -8
  115. package/docs/interfaces/ContractCondition.md +41 -0
  116. package/docs/interfaces/DailyProposal.md +36 -0
  117. package/docs/interfaces/JoinRequirementsInput.md +20 -0
  118. package/docs/interfaces/ProposalGlobalStats.md +29 -0
  119. package/docs/interfaces/TransactionProperties.md +20 -0
  120. package/docs/interfaces/UBIParams.md +29 -0
  121. package/docs/interfaces/UserState.md +22 -0
  122. package/docs/interfaces/VoteElement.md +22 -0
  123. package/docs/interfaces/configSmartRequirement.md +34 -0
  124. package/docs/interfaces/numericConditon.md +41 -0
  125. package/lib.commonjs/abis/ArguableVotingTournament.d.ts +8 -0
  126. package/lib.commonjs/abis/ArguableVotingTournament.d.ts.map +1 -1
  127. package/lib.commonjs/abis/ArguableVotingTournament.js +10 -0
  128. package/lib.commonjs/abis/ArguableVotingTournament.js.map +1 -1
  129. package/lib.commonjs/abis/MAODistribution.d.ts +12 -0
  130. package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
  131. package/lib.commonjs/abis/MAODistribution.js +16 -0
  132. package/lib.commonjs/abis/MAODistribution.js.map +1 -1
  133. package/lib.commonjs/abis/MockShortStrings.d.ts +25 -0
  134. package/lib.commonjs/abis/MockShortStrings.d.ts.map +1 -0
  135. package/lib.commonjs/abis/MockShortStrings.js +37 -0
  136. package/lib.commonjs/abis/MockShortStrings.js.map +1 -0
  137. package/lib.commonjs/abis/Multipass.d.ts +5 -1
  138. package/lib.commonjs/abis/Multipass.d.ts.map +1 -1
  139. package/lib.commonjs/abis/Multipass.js +7 -1
  140. package/lib.commonjs/abis/Multipass.js.map +1 -1
  141. package/lib.commonjs/abis/PausableUpgradeable.d.ts +59 -0
  142. package/lib.commonjs/abis/PausableUpgradeable.d.ts.map +1 -0
  143. package/lib.commonjs/abis/PausableUpgradeable.js +79 -0
  144. package/lib.commonjs/abis/PausableUpgradeable.js.map +1 -0
  145. package/lib.commonjs/abis/RankToken.d.ts +30 -0
  146. package/lib.commonjs/abis/RankToken.d.ts.map +1 -1
  147. package/lib.commonjs/abis/RankToken.js +38 -0
  148. package/lib.commonjs/abis/RankToken.js.map +1 -1
  149. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +970 -9
  150. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
  151. package/lib.commonjs/abis/RankifyDiamondInstance.js +1987 -756
  152. package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
  153. package/lib.commonjs/abis/RankifyInstanceInit.d.ts +150 -0
  154. package/lib.commonjs/abis/RankifyInstanceInit.d.ts.map +1 -1
  155. package/lib.commonjs/abis/RankifyInstanceInit.js +190 -0
  156. package/lib.commonjs/abis/RankifyInstanceInit.js.map +1 -1
  157. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +30 -0
  158. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  159. package/lib.commonjs/abis/RankifyInstanceMainFacet.js +38 -0
  160. package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
  161. package/lib.commonjs/abis/RankifyOwnersFacet.d.ts +57 -0
  162. package/lib.commonjs/abis/RankifyOwnersFacet.d.ts.map +1 -0
  163. package/lib.commonjs/abis/RankifyOwnersFacet.js +78 -0
  164. package/lib.commonjs/abis/RankifyOwnersFacet.js.map +1 -0
  165. package/lib.commonjs/abis/UBI.d.ts +601 -0
  166. package/lib.commonjs/abis/UBI.d.ts.map +1 -0
  167. package/lib.commonjs/abis/UBI.js +775 -0
  168. package/lib.commonjs/abis/UBI.js.map +1 -0
  169. package/lib.commonjs/abis/index.d.ts +1935 -1
  170. package/lib.commonjs/abis/index.d.ts.map +1 -1
  171. package/lib.commonjs/abis/index.js +19 -1
  172. package/lib.commonjs/abis/index.js.map +1 -1
  173. package/lib.commonjs/abis/superinterface.d.ts +3 -0
  174. package/lib.commonjs/abis/superinterface.d.ts.map +1 -0
  175. package/lib.commonjs/abis/superinterface.js +3049 -0
  176. package/lib.commonjs/abis/superinterface.js.map +1 -0
  177. package/lib.commonjs/index.d.ts +2 -0
  178. package/lib.commonjs/index.d.ts.map +1 -1
  179. package/lib.commonjs/index.js +3 -1
  180. package/lib.commonjs/index.js.map +1 -1
  181. package/lib.commonjs/multipass/MultipassBase.d.ts +18 -4
  182. package/lib.commonjs/multipass/MultipassBase.d.ts.map +1 -1
  183. package/lib.commonjs/multipass/MultipassBase.js +39 -71
  184. package/lib.commonjs/multipass/MultipassBase.js.map +1 -1
  185. package/lib.commonjs/multipass/Owner.d.ts +22 -8
  186. package/lib.commonjs/multipass/Owner.d.ts.map +1 -1
  187. package/lib.commonjs/multipass/Owner.js +34 -16
  188. package/lib.commonjs/multipass/Owner.js.map +1 -1
  189. package/lib.commonjs/multipass/Registrar.d.ts +3 -1
  190. package/lib.commonjs/multipass/Registrar.d.ts.map +1 -1
  191. package/lib.commonjs/multipass/Registrar.js +2 -2
  192. package/lib.commonjs/multipass/Registrar.js.map +1 -1
  193. package/lib.commonjs/rankify/GameMaster.d.ts +5 -1
  194. package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
  195. package/lib.commonjs/rankify/GameMaster.js.map +1 -1
  196. package/lib.commonjs/rankify/InstanceAdmininstrative.d.ts +34 -0
  197. package/lib.commonjs/rankify/InstanceAdmininstrative.d.ts.map +1 -0
  198. package/lib.commonjs/rankify/InstanceAdmininstrative.js +74 -0
  199. package/lib.commonjs/rankify/InstanceAdmininstrative.js.map +1 -0
  200. package/lib.commonjs/rankify/InstanceBase.d.ts +1 -0
  201. package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
  202. package/lib.commonjs/rankify/InstanceBase.js +14 -0
  203. package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
  204. package/lib.commonjs/rankify/Player.d.ts +2 -36
  205. package/lib.commonjs/rankify/Player.d.ts.map +1 -1
  206. package/lib.commonjs/rankify/Player.js +24 -1
  207. package/lib.commonjs/rankify/Player.js.map +1 -1
  208. package/lib.commonjs/types.d.ts +33 -0
  209. package/lib.commonjs/types.d.ts.map +1 -1
  210. package/lib.commonjs/types.js +7 -1
  211. package/lib.commonjs/types.js.map +1 -1
  212. package/lib.commonjs/ubi/InstanceUBI.d.ts +548 -0
  213. package/lib.commonjs/ubi/InstanceUBI.d.ts.map +1 -0
  214. package/lib.commonjs/ubi/InstanceUBI.js +728 -0
  215. package/lib.commonjs/ubi/InstanceUBI.js.map +1 -0
  216. package/lib.commonjs/utils/EnvioGraphQLClient.d.ts +279 -0
  217. package/lib.commonjs/utils/EnvioGraphQLClient.d.ts.map +1 -1
  218. package/lib.commonjs/utils/EnvioGraphQLClient.js +468 -0
  219. package/lib.commonjs/utils/EnvioGraphQLClient.js.map +1 -1
  220. package/lib.commonjs/utils/artifacts.d.ts.map +1 -1
  221. package/lib.commonjs/utils/artifacts.js +15 -3
  222. package/lib.commonjs/utils/artifacts.js.map +1 -1
  223. package/lib.commonjs/utils/chainMapping.d.ts.map +1 -1
  224. package/lib.commonjs/utils/chainMapping.js +0 -1
  225. package/lib.commonjs/utils/chainMapping.js.map +1 -1
  226. package/lib.commonjs/utils/mockUtils.d.ts +3 -0
  227. package/lib.commonjs/utils/mockUtils.d.ts.map +1 -1
  228. package/lib.commonjs/utils/mockUtils.js +3 -0
  229. package/lib.commonjs/utils/mockUtils.js.map +1 -1
  230. package/lib.esm/abis/ArguableVotingTournament.d.ts +8 -0
  231. package/lib.esm/abis/ArguableVotingTournament.d.ts.map +1 -1
  232. package/lib.esm/abis/ArguableVotingTournament.js +10 -0
  233. package/lib.esm/abis/ArguableVotingTournament.js.map +1 -1
  234. package/lib.esm/abis/MAODistribution.d.ts +12 -0
  235. package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
  236. package/lib.esm/abis/MAODistribution.js +16 -0
  237. package/lib.esm/abis/MAODistribution.js.map +1 -1
  238. package/lib.esm/abis/MockShortStrings.d.ts +25 -0
  239. package/lib.esm/abis/MockShortStrings.d.ts.map +1 -0
  240. package/lib.esm/abis/MockShortStrings.js +34 -0
  241. package/lib.esm/abis/MockShortStrings.js.map +1 -0
  242. package/lib.esm/abis/Multipass.d.ts +5 -1
  243. package/lib.esm/abis/Multipass.d.ts.map +1 -1
  244. package/lib.esm/abis/Multipass.js +7 -1
  245. package/lib.esm/abis/Multipass.js.map +1 -1
  246. package/lib.esm/abis/PausableUpgradeable.d.ts +59 -0
  247. package/lib.esm/abis/PausableUpgradeable.d.ts.map +1 -0
  248. package/lib.esm/abis/PausableUpgradeable.js +76 -0
  249. package/lib.esm/abis/PausableUpgradeable.js.map +1 -0
  250. package/lib.esm/abis/RankToken.d.ts +30 -0
  251. package/lib.esm/abis/RankToken.d.ts.map +1 -1
  252. package/lib.esm/abis/RankToken.js +38 -0
  253. package/lib.esm/abis/RankToken.js.map +1 -1
  254. package/lib.esm/abis/RankifyDiamondInstance.d.ts +970 -9
  255. package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
  256. package/lib.esm/abis/RankifyDiamondInstance.js +1987 -756
  257. package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
  258. package/lib.esm/abis/RankifyInstanceInit.d.ts +150 -0
  259. package/lib.esm/abis/RankifyInstanceInit.d.ts.map +1 -1
  260. package/lib.esm/abis/RankifyInstanceInit.js +190 -0
  261. package/lib.esm/abis/RankifyInstanceInit.js.map +1 -1
  262. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +30 -0
  263. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  264. package/lib.esm/abis/RankifyInstanceMainFacet.js +38 -0
  265. package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
  266. package/lib.esm/abis/RankifyOwnersFacet.d.ts +57 -0
  267. package/lib.esm/abis/RankifyOwnersFacet.d.ts.map +1 -0
  268. package/lib.esm/abis/RankifyOwnersFacet.js +75 -0
  269. package/lib.esm/abis/RankifyOwnersFacet.js.map +1 -0
  270. package/lib.esm/abis/UBI.d.ts +601 -0
  271. package/lib.esm/abis/UBI.d.ts.map +1 -0
  272. package/lib.esm/abis/UBI.js +772 -0
  273. package/lib.esm/abis/UBI.js.map +1 -0
  274. package/lib.esm/abis/index.d.ts +1935 -1
  275. package/lib.esm/abis/index.d.ts.map +1 -1
  276. package/lib.esm/abis/index.js +13 -0
  277. package/lib.esm/abis/index.js.map +1 -1
  278. package/lib.esm/abis/superinterface.d.ts +3 -0
  279. package/lib.esm/abis/superinterface.d.ts.map +1 -0
  280. package/lib.esm/abis/superinterface.js +3046 -0
  281. package/lib.esm/abis/superinterface.js.map +1 -0
  282. package/lib.esm/index.d.ts +2 -0
  283. package/lib.esm/index.d.ts.map +1 -1
  284. package/lib.esm/index.js +1 -0
  285. package/lib.esm/index.js.map +1 -1
  286. package/lib.esm/multipass/MultipassBase.d.ts +18 -4
  287. package/lib.esm/multipass/MultipassBase.d.ts.map +1 -1
  288. package/lib.esm/multipass/MultipassBase.js +40 -72
  289. package/lib.esm/multipass/MultipassBase.js.map +1 -1
  290. package/lib.esm/multipass/Owner.d.ts +22 -8
  291. package/lib.esm/multipass/Owner.d.ts.map +1 -1
  292. package/lib.esm/multipass/Owner.js +34 -16
  293. package/lib.esm/multipass/Owner.js.map +1 -1
  294. package/lib.esm/multipass/Registrar.d.ts +3 -1
  295. package/lib.esm/multipass/Registrar.d.ts.map +1 -1
  296. package/lib.esm/multipass/Registrar.js +2 -2
  297. package/lib.esm/multipass/Registrar.js.map +1 -1
  298. package/lib.esm/rankify/GameMaster.d.ts +5 -1
  299. package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
  300. package/lib.esm/rankify/GameMaster.js.map +1 -1
  301. package/lib.esm/rankify/InstanceAdmininstrative.d.ts +34 -0
  302. package/lib.esm/rankify/InstanceAdmininstrative.d.ts.map +1 -0
  303. package/lib.esm/rankify/InstanceAdmininstrative.js +70 -0
  304. package/lib.esm/rankify/InstanceAdmininstrative.js.map +1 -0
  305. package/lib.esm/rankify/InstanceBase.d.ts +1 -0
  306. package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
  307. package/lib.esm/rankify/InstanceBase.js +14 -0
  308. package/lib.esm/rankify/InstanceBase.js.map +1 -1
  309. package/lib.esm/rankify/Player.d.ts +2 -36
  310. package/lib.esm/rankify/Player.d.ts.map +1 -1
  311. package/lib.esm/rankify/Player.js +24 -1
  312. package/lib.esm/rankify/Player.js.map +1 -1
  313. package/lib.esm/types.d.ts +33 -0
  314. package/lib.esm/types.d.ts.map +1 -1
  315. package/lib.esm/types.js +6 -0
  316. package/lib.esm/types.js.map +1 -1
  317. package/lib.esm/ubi/InstanceUBI.d.ts +548 -0
  318. package/lib.esm/ubi/InstanceUBI.d.ts.map +1 -0
  319. package/lib.esm/ubi/InstanceUBI.js +722 -0
  320. package/lib.esm/ubi/InstanceUBI.js.map +1 -0
  321. package/lib.esm/utils/EnvioGraphQLClient.d.ts +279 -0
  322. package/lib.esm/utils/EnvioGraphQLClient.d.ts.map +1 -1
  323. package/lib.esm/utils/EnvioGraphQLClient.js +468 -0
  324. package/lib.esm/utils/EnvioGraphQLClient.js.map +1 -1
  325. package/lib.esm/utils/artifacts.d.ts.map +1 -1
  326. package/lib.esm/utils/artifacts.js +15 -3
  327. package/lib.esm/utils/artifacts.js.map +1 -1
  328. package/lib.esm/utils/chainMapping.d.ts.map +1 -1
  329. package/lib.esm/utils/chainMapping.js +0 -1
  330. package/lib.esm/utils/chainMapping.js.map +1 -1
  331. package/lib.esm/utils/mockUtils.d.ts +3 -0
  332. package/lib.esm/utils/mockUtils.d.ts.map +1 -1
  333. package/lib.esm/utils/mockUtils.js +3 -0
  334. package/lib.esm/utils/mockUtils.js.map +1 -1
  335. package/package.json +6 -6
@@ -4,188 +4,86 @@ exports.RankifyDiamondInstanceAbi = void 0;
4
4
  exports.RankifyDiamondInstanceAbi = [
5
5
  {
6
6
  "inputs": [],
7
- "name": "currentChainId",
8
- "outputs": [
9
- {
10
- "internalType": "uint256",
11
- "name": "",
12
- "type": "uint256"
13
- }
14
- ],
15
- "stateMutability": "view",
16
- "type": "function"
7
+ "name": "EnforcedPause",
8
+ "type": "error"
17
9
  },
18
10
  {
19
11
  "inputs": [],
20
- "name": "inspectEIP712Hashes",
21
- "outputs": [
22
- {
23
- "internalType": "bytes32",
24
- "name": "_CACHED_DOMAIN_SEPARATOR",
25
- "type": "bytes32"
26
- },
27
- {
28
- "internalType": "uint256",
29
- "name": "_CACHED_CHAIN_ID",
30
- "type": "uint256"
31
- },
32
- {
33
- "internalType": "address",
34
- "name": "_CACHED_THIS",
35
- "type": "address"
36
- },
37
- {
38
- "internalType": "bytes32",
39
- "name": "_HASHED_NAME",
40
- "type": "bytes32"
41
- },
42
- {
43
- "internalType": "bytes32",
44
- "name": "_HASHED_VERSION",
45
- "type": "bytes32"
46
- },
47
- {
48
- "internalType": "bytes32",
49
- "name": "_TYPE_HASH",
50
- "type": "bytes32"
51
- },
52
- {
53
- "internalType": "string",
54
- "name": "_NAME",
55
- "type": "string"
56
- },
57
- {
58
- "internalType": "string",
59
- "name": "_VERSION",
60
- "type": "string"
61
- }
62
- ],
63
- "stateMutability": "view",
64
- "type": "function"
12
+ "name": "ExpectedPause",
13
+ "type": "error"
65
14
  },
66
15
  {
67
- "inputs": [
68
- {
69
- "internalType": "bytes32[2]",
70
- "name": "inputs",
71
- "type": "bytes32[2]"
72
- }
73
- ],
74
- "name": "poseidon",
75
- "outputs": [
76
- {
77
- "internalType": "bytes32",
78
- "name": "",
79
- "type": "bytes32"
80
- }
81
- ],
82
- "stateMutability": "view",
83
- "type": "function"
16
+ "inputs": [],
17
+ "name": "InvalidInitialization",
18
+ "type": "error"
84
19
  },
85
20
  {
86
21
  "inputs": [
87
22
  {
88
- "internalType": "bytes32[5]",
89
- "name": "inputs",
90
- "type": "bytes32[5]"
91
- }
92
- ],
93
- "name": "poseidon",
94
- "outputs": [
23
+ "internalType": "bool",
24
+ "name": "recordFound",
25
+ "type": "bool"
26
+ },
95
27
  {
96
- "internalType": "bytes32",
97
- "name": "",
98
- "type": "bytes32"
28
+ "internalType": "uint256",
29
+ "name": "validUtil",
30
+ "type": "uint256"
99
31
  }
100
32
  ],
101
- "stateMutability": "view",
102
- "type": "function"
33
+ "name": "InvalidSender",
34
+ "type": "error"
103
35
  },
104
36
  {
105
- "inputs": [
106
- {
107
- "internalType": "bytes32[6]",
108
- "name": "inputs",
109
- "type": "bytes32[6]"
110
- }
111
- ],
112
- "name": "poseidon",
113
- "outputs": [
114
- {
115
- "internalType": "bytes32",
116
- "name": "",
117
- "type": "bytes32"
118
- }
119
- ],
120
- "stateMutability": "view",
121
- "type": "function"
37
+ "inputs": [],
38
+ "name": "NotInitializing",
39
+ "type": "error"
122
40
  },
123
41
  {
124
- "inputs": [
125
- {
126
- "internalType": "uint256",
127
- "name": "gameId",
128
- "type": "uint256"
129
- }
130
- ],
131
- "name": "ErrorCannotForceEndGame",
42
+ "inputs": [],
43
+ "name": "ReentrancyGuardReentrantCall",
132
44
  "type": "error"
133
45
  },
134
46
  {
135
47
  "inputs": [
136
48
  {
137
- "internalType": "uint256",
138
- "name": "gameId",
139
- "type": "uint256"
140
- },
141
- {
142
- "internalType": "enum IRankifyInstance.ProposingEndStatus",
143
- "name": "status",
144
- "type": "uint8"
49
+ "internalType": "string",
50
+ "name": "str",
51
+ "type": "string"
145
52
  }
146
53
  ],
147
- "name": "ErrorProposingStageEndFailed",
54
+ "name": "StringTooLong",
148
55
  "type": "error"
149
56
  },
150
57
  {
58
+ "anonymous": false,
151
59
  "inputs": [
152
60
  {
153
- "internalType": "bytes32",
154
- "name": "ballotHash",
155
- "type": "bytes32"
61
+ "indexed": true,
62
+ "internalType": "address",
63
+ "name": "user",
64
+ "type": "address"
156
65
  },
157
66
  {
158
- "internalType": "bytes32",
159
- "name": "ballotHashFromVotes",
160
- "type": "bytes32"
67
+ "indexed": false,
68
+ "internalType": "uint256",
69
+ "name": "amount",
70
+ "type": "uint256"
161
71
  }
162
72
  ],
163
- "name": "ballotIntegrityCheckFailed",
164
- "type": "error"
73
+ "name": "Claimed",
74
+ "type": "event"
165
75
  },
166
76
  {
167
77
  "anonymous": false,
168
78
  "inputs": [
169
- {
170
- "indexed": true,
171
- "internalType": "uint256",
172
- "name": "gameId",
173
- "type": "uint256"
174
- },
175
- {
176
- "indexed": false,
177
- "internalType": "address[]",
178
- "name": "players",
179
- "type": "address[]"
180
- },
181
79
  {
182
80
  "indexed": false,
183
- "internalType": "uint256[]",
184
- "name": "scores",
185
- "type": "uint256[]"
81
+ "internalType": "uint64",
82
+ "name": "version",
83
+ "type": "uint64"
186
84
  }
187
85
  ],
188
- "name": "GameOver",
86
+ "name": "Initialized",
189
87
  "type": "event"
190
88
  },
191
89
  {
@@ -193,25 +91,25 @@ exports.RankifyDiamondInstanceAbi = [
193
91
  "inputs": [
194
92
  {
195
93
  "indexed": true,
196
- "internalType": "uint256",
197
- "name": "gameId",
198
- "type": "uint256"
94
+ "internalType": "address",
95
+ "name": "user",
96
+ "type": "address"
199
97
  }
200
98
  ],
201
- "name": "LastTurn",
99
+ "name": "OnboardingBonusClaimed",
202
100
  "type": "event"
203
101
  },
204
102
  {
205
103
  "anonymous": false,
206
104
  "inputs": [
207
105
  {
208
- "indexed": true,
209
- "internalType": "uint256",
210
- "name": "gameId",
211
- "type": "uint256"
106
+ "indexed": false,
107
+ "internalType": "address",
108
+ "name": "account",
109
+ "type": "address"
212
110
  }
213
111
  ],
214
- "name": "OverTime",
112
+ "name": "Paused",
215
113
  "type": "event"
216
114
  },
217
115
  {
@@ -220,35 +118,23 @@ exports.RankifyDiamondInstanceAbi = [
220
118
  {
221
119
  "indexed": true,
222
120
  "internalType": "uint256",
223
- "name": "gameId",
121
+ "name": "lifeTimeScore",
224
122
  "type": "uint256"
225
123
  },
226
124
  {
227
125
  "indexed": true,
228
126
  "internalType": "uint256",
229
- "name": "turn",
127
+ "name": "proposedTimes",
230
128
  "type": "uint256"
231
129
  },
232
130
  {
233
131
  "indexed": true,
234
- "internalType": "string",
235
- "name": "proposalHash",
236
- "type": "string"
237
- },
238
- {
239
- "indexed": false,
240
- "internalType": "string",
241
- "name": "proposal",
242
- "type": "string"
243
- },
244
- {
245
- "indexed": false,
246
132
  "internalType": "uint256",
247
- "name": "score",
133
+ "name": "repostedTimes",
248
134
  "type": "uint256"
249
135
  }
250
136
  ],
251
- "name": "ProposalScore",
137
+ "name": "ProposalLifetimeScore",
252
138
  "type": "event"
253
139
  },
254
140
  {
@@ -257,13 +143,13 @@ exports.RankifyDiamondInstanceAbi = [
257
143
  {
258
144
  "indexed": true,
259
145
  "internalType": "uint256",
260
- "name": "gameId",
146
+ "name": "dailyScore",
261
147
  "type": "uint256"
262
148
  },
263
149
  {
264
150
  "indexed": true,
265
151
  "internalType": "uint256",
266
- "name": "turn",
152
+ "name": "day",
267
153
  "type": "uint256"
268
154
  },
269
155
  {
@@ -274,30 +160,12 @@ exports.RankifyDiamondInstanceAbi = [
274
160
  },
275
161
  {
276
162
  "indexed": false,
277
- "internalType": "uint256",
278
- "name": "commitment",
279
- "type": "uint256"
280
- },
281
- {
282
- "indexed": false,
283
- "internalType": "string",
284
- "name": "encryptedProposal",
285
- "type": "string"
286
- },
287
- {
288
- "indexed": false,
289
- "internalType": "bytes",
290
- "name": "gmSignature",
291
- "type": "bytes"
292
- },
293
- {
294
- "indexed": false,
295
- "internalType": "bytes",
296
- "name": "proposerSignature",
297
- "type": "bytes"
163
+ "internalType": "bytes32",
164
+ "name": "proposal",
165
+ "type": "bytes32"
298
166
  }
299
167
  ],
300
- "name": "ProposalSubmitted",
168
+ "name": "ProposalScoreUpdatedByAddress",
301
169
  "type": "event"
302
170
  },
303
171
  {
@@ -306,48 +174,48 @@ exports.RankifyDiamondInstanceAbi = [
306
174
  {
307
175
  "indexed": true,
308
176
  "internalType": "uint256",
309
- "name": "gameId",
177
+ "name": "dailyScore",
310
178
  "type": "uint256"
311
179
  },
312
180
  {
313
181
  "indexed": true,
314
182
  "internalType": "uint256",
315
- "name": "roundNumber",
183
+ "name": "day",
316
184
  "type": "uint256"
317
185
  },
318
186
  {
319
- "indexed": false,
320
- "internalType": "uint256",
321
- "name": "numProposals",
322
- "type": "uint256"
187
+ "indexed": true,
188
+ "internalType": "bytes32",
189
+ "name": "proposal",
190
+ "type": "bytes32"
323
191
  },
324
192
  {
325
193
  "indexed": false,
326
- "internalType": "string[]",
327
- "name": "proposals",
328
- "type": "string[]"
194
+ "internalType": "address",
195
+ "name": "proposer",
196
+ "type": "address"
329
197
  }
330
198
  ],
331
- "name": "ProposingStageEnded",
199
+ "name": "ProposalScoreUpdatedByProposal",
332
200
  "type": "event"
333
201
  },
334
202
  {
335
203
  "anonymous": false,
336
204
  "inputs": [
337
205
  {
338
- "indexed": true,
339
- "internalType": "uint256",
340
- "name": "gameId",
341
- "type": "uint256"
206
+ "indexed": false,
207
+ "internalType": "bytes32",
208
+ "name": "proposalHash",
209
+ "type": "bytes32"
342
210
  },
343
211
  {
344
212
  "indexed": false,
345
- "internalType": "address",
346
- "name": "winner",
347
- "type": "address"
213
+ "internalType": "uint256",
214
+ "name": "newTimesProposed",
215
+ "type": "uint256"
348
216
  }
349
217
  ],
350
- "name": "StaleGameEnded",
218
+ "name": "ProposedTime",
351
219
  "type": "event"
352
220
  },
353
221
  {
@@ -355,48 +223,36 @@ exports.RankifyDiamondInstanceAbi = [
355
223
  "inputs": [
356
224
  {
357
225
  "indexed": true,
358
- "internalType": "uint256",
359
- "name": "gameId",
360
- "type": "uint256"
226
+ "internalType": "address",
227
+ "name": "proposer",
228
+ "type": "address"
361
229
  },
362
230
  {
363
231
  "indexed": true,
364
232
  "internalType": "uint256",
365
- "name": "turn",
233
+ "name": "day",
366
234
  "type": "uint256"
367
235
  },
368
236
  {
369
237
  "indexed": true,
370
- "internalType": "address",
371
- "name": "player",
372
- "type": "address"
238
+ "internalType": "bytes32",
239
+ "name": "proposal",
240
+ "type": "bytes32"
373
241
  },
374
242
  {
375
243
  "indexed": false,
376
244
  "internalType": "string",
377
- "name": "sealedBallotId",
245
+ "name": "proposalText",
378
246
  "type": "string"
379
247
  },
380
248
  {
381
249
  "indexed": false,
382
- "internalType": "bytes",
383
- "name": "gmSignature",
384
- "type": "bytes"
385
- },
386
- {
387
- "indexed": false,
388
- "internalType": "bytes",
389
- "name": "voterSignature",
390
- "type": "bytes"
391
- },
392
- {
393
- "indexed": false,
394
- "internalType": "bytes32",
395
- "name": "ballotHash",
396
- "type": "bytes32"
250
+ "internalType": "uint256",
251
+ "name": "scoreWhenProposed",
252
+ "type": "uint256"
397
253
  }
398
254
  ],
399
- "name": "VoteSubmitted",
255
+ "name": "ProposingByAddress",
400
256
  "type": "event"
401
257
  },
402
258
  {
@@ -404,131 +260,128 @@ exports.RankifyDiamondInstanceAbi = [
404
260
  "inputs": [
405
261
  {
406
262
  "indexed": true,
407
- "internalType": "uint256",
408
- "name": "gameId",
409
- "type": "uint256"
263
+ "internalType": "address",
264
+ "name": "reposter",
265
+ "type": "address"
410
266
  },
411
267
  {
412
268
  "indexed": true,
413
269
  "internalType": "uint256",
414
- "name": "roundNumber",
270
+ "name": "day",
415
271
  "type": "uint256"
416
272
  },
417
273
  {
418
274
  "indexed": true,
419
- "internalType": "address",
420
- "name": "winner",
421
- "type": "address"
275
+ "internalType": "bytes32",
276
+ "name": "proposal",
277
+ "type": "bytes32"
422
278
  },
423
279
  {
424
280
  "indexed": false,
425
- "internalType": "address[]",
426
- "name": "players",
427
- "type": "address[]"
281
+ "internalType": "address",
282
+ "name": "proposer",
283
+ "type": "address"
428
284
  },
429
285
  {
430
286
  "indexed": false,
431
- "internalType": "uint256[]",
432
- "name": "scores",
433
- "type": "uint256[]"
287
+ "internalType": "string",
288
+ "name": "proposalText",
289
+ "type": "string"
290
+ }
291
+ ],
292
+ "name": "RepostByProposer",
293
+ "type": "event"
294
+ },
295
+ {
296
+ "anonymous": false,
297
+ "inputs": [
298
+ {
299
+ "indexed": true,
300
+ "internalType": "address",
301
+ "name": "proposer",
302
+ "type": "address"
434
303
  },
435
304
  {
436
- "indexed": false,
437
- "internalType": "uint256[][]",
438
- "name": "votesSorted",
439
- "type": "uint256[][]"
305
+ "indexed": true,
306
+ "internalType": "uint256",
307
+ "name": "day",
308
+ "type": "uint256"
440
309
  },
441
310
  {
442
- "indexed": false,
443
- "internalType": "bool[]",
444
- "name": "isActive",
445
- "type": "bool[]"
311
+ "indexed": true,
312
+ "internalType": "bytes32",
313
+ "name": "proposal",
314
+ "type": "bytes32"
446
315
  },
447
316
  {
448
317
  "indexed": false,
449
- "internalType": "uint256[][]",
450
- "name": "finalizedVotingMatrix",
451
- "type": "uint256[][]"
318
+ "internalType": "address",
319
+ "name": "reposter",
320
+ "type": "address"
452
321
  },
453
322
  {
454
323
  "indexed": false,
455
- "internalType": "uint256[]",
456
- "name": "permutation",
457
- "type": "uint256[]"
324
+ "internalType": "string",
325
+ "name": "proposalText",
326
+ "type": "string"
458
327
  }
459
328
  ],
460
- "name": "VotingStageResults",
329
+ "name": "RepostByReposter",
461
330
  "type": "event"
462
331
  },
463
332
  {
333
+ "anonymous": false,
464
334
  "inputs": [
465
335
  {
466
- "internalType": "uint256",
467
- "name": "gameId",
468
- "type": "uint256"
469
- },
470
- {
471
- "components": [
472
- {
473
- "internalType": "string[]",
474
- "name": "proposals",
475
- "type": "string[]"
476
- },
477
- {
478
- "internalType": "uint256[2]",
479
- "name": "a",
480
- "type": "uint256[2]"
481
- },
482
- {
483
- "internalType": "uint256[2][2]",
484
- "name": "b",
485
- "type": "uint256[2][2]"
486
- },
487
- {
488
- "internalType": "uint256[2]",
489
- "name": "c",
490
- "type": "uint256[2]"
491
- },
492
- {
493
- "internalType": "uint256",
494
- "name": "permutationCommitment",
495
- "type": "uint256"
496
- }
497
- ],
498
- "internalType": "struct RankifyInstanceGameMastersFacet.BatchProposalReveal",
499
- "name": "newProposals",
500
- "type": "tuple"
336
+ "indexed": false,
337
+ "internalType": "address",
338
+ "name": "account",
339
+ "type": "address"
501
340
  }
502
341
  ],
503
- "name": "endProposing",
504
- "outputs": [],
505
- "stateMutability": "nonpayable",
506
- "type": "function"
342
+ "name": "Unpaused",
343
+ "type": "event"
507
344
  },
508
345
  {
346
+ "anonymous": false,
509
347
  "inputs": [
510
348
  {
511
- "internalType": "uint256",
512
- "name": "gameId",
513
- "type": "uint256"
349
+ "indexed": true,
350
+ "internalType": "address",
351
+ "name": "participant",
352
+ "type": "address"
514
353
  },
515
354
  {
516
- "internalType": "uint256[][]",
517
- "name": "votes",
518
- "type": "uint256[][]"
355
+ "indexed": true,
356
+ "internalType": "uint256",
357
+ "name": "day",
358
+ "type": "uint256"
519
359
  },
520
360
  {
521
- "internalType": "uint256[]",
522
- "name": "permutation",
523
- "type": "uint256[]"
361
+ "indexed": true,
362
+ "internalType": "bytes32",
363
+ "name": "proposal",
364
+ "type": "bytes32"
524
365
  },
525
366
  {
367
+ "indexed": false,
526
368
  "internalType": "uint256",
527
- "name": "shuffleSalt",
369
+ "name": "amount",
528
370
  "type": "uint256"
529
371
  }
530
372
  ],
531
- "name": "endVoting",
373
+ "name": "VotingByAddress",
374
+ "type": "event"
375
+ },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "string",
380
+ "name": "data",
381
+ "type": "string"
382
+ }
383
+ ],
384
+ "name": "claim",
532
385
  "outputs": [],
533
386
  "stateMutability": "nonpayable",
534
387
  "type": "function"
@@ -536,33 +389,67 @@ exports.RankifyDiamondInstanceAbi = [
536
389
  {
537
390
  "inputs": [
538
391
  {
539
- "internalType": "uint256",
540
- "name": "gameId",
541
- "type": "uint256"
392
+ "internalType": "address",
393
+ "name": "user",
394
+ "type": "address"
542
395
  }
543
396
  ],
544
- "name": "forceEndStaleGame",
397
+ "name": "claimOnboardingBonus",
545
398
  "outputs": [],
546
399
  "stateMutability": "nonpayable",
547
400
  "type": "function"
548
401
  },
402
+ {
403
+ "inputs": [],
404
+ "name": "currentDay",
405
+ "outputs": [
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "",
409
+ "type": "uint256"
410
+ }
411
+ ],
412
+ "stateMutability": "view",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [],
417
+ "name": "getCurrentDay",
418
+ "outputs": [
419
+ {
420
+ "internalType": "uint256",
421
+ "name": "",
422
+ "type": "uint256"
423
+ }
424
+ ],
425
+ "stateMutability": "view",
426
+ "type": "function"
427
+ },
549
428
  {
550
429
  "inputs": [
430
+ {
431
+ "internalType": "bytes32",
432
+ "name": "hash",
433
+ "type": "bytes32"
434
+ },
435
+ {
436
+ "internalType": "uint256",
437
+ "name": "day",
438
+ "type": "uint256"
439
+ }
440
+ ],
441
+ "name": "getProposalDailyScore",
442
+ "outputs": [
551
443
  {
552
444
  "components": [
553
445
  {
554
- "internalType": "uint256",
555
- "name": "gameId",
556
- "type": "uint256"
557
- },
558
- {
559
- "internalType": "string",
560
- "name": "encryptedProposal",
561
- "type": "string"
446
+ "internalType": "bytes32",
447
+ "name": "proposal",
448
+ "type": "bytes32"
562
449
  },
563
450
  {
564
451
  "internalType": "uint256",
565
- "name": "commitment",
452
+ "name": "score",
566
453
  "type": "uint256"
567
454
  },
568
455
  {
@@ -571,229 +458,379 @@ exports.RankifyDiamondInstanceAbi = [
571
458
  "type": "address"
572
459
  },
573
460
  {
574
- "internalType": "bytes",
575
- "name": "gmSignature",
576
- "type": "bytes"
577
- },
578
- {
579
- "internalType": "bytes",
580
- "name": "proposerSignature",
581
- "type": "bytes"
461
+ "internalType": "bool",
462
+ "name": "exists",
463
+ "type": "bool"
582
464
  }
583
465
  ],
584
- "internalType": "struct RankifyInstanceGameMastersFacet.ProposalParams",
585
- "name": "params",
466
+ "internalType": "struct LibUBI.DailyProposal",
467
+ "name": "",
586
468
  "type": "tuple"
587
469
  }
588
470
  ],
589
- "name": "submitProposal",
590
- "outputs": [],
591
- "stateMutability": "nonpayable",
471
+ "stateMutability": "view",
592
472
  "type": "function"
593
473
  },
594
474
  {
595
475
  "inputs": [
596
476
  {
597
477
  "internalType": "uint256",
598
- "name": "gameId",
478
+ "name": "day",
599
479
  "type": "uint256"
600
- },
480
+ }
481
+ ],
482
+ "name": "getProposalsCnt",
483
+ "outputs": [
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "",
487
+ "type": "uint256"
488
+ }
489
+ ],
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [
601
495
  {
602
496
  "internalType": "string",
603
- "name": "sealedBallotId",
497
+ "name": "text",
604
498
  "type": "string"
605
- },
606
- {
607
- "internalType": "address",
608
- "name": "voter",
609
- "type": "address"
610
- },
499
+ }
500
+ ],
501
+ "name": "getShortStringBytes32",
502
+ "outputs": [
611
503
  {
612
- "internalType": "bytes",
613
- "name": "gmSignature",
614
- "type": "bytes"
504
+ "internalType": "bytes32",
505
+ "name": "",
506
+ "type": "bytes32"
507
+ }
508
+ ],
509
+ "stateMutability": "pure",
510
+ "type": "function"
511
+ },
512
+ {
513
+ "inputs": [],
514
+ "name": "getUBIParams",
515
+ "outputs": [
516
+ {
517
+ "internalType": "uint256",
518
+ "name": "dailyClaimAmount",
519
+ "type": "uint256"
615
520
  },
616
521
  {
617
- "internalType": "bytes",
618
- "name": "voterSignature",
619
- "type": "bytes"
522
+ "internalType": "uint256",
523
+ "name": "dailySupportAmount",
524
+ "type": "uint256"
620
525
  },
621
526
  {
622
527
  "internalType": "bytes32",
623
- "name": "ballotHash",
528
+ "name": "domainName",
624
529
  "type": "bytes32"
625
530
  }
626
531
  ],
627
- "name": "submitVote",
628
- "outputs": [],
629
- "stateMutability": "nonpayable",
532
+ "stateMutability": "view",
630
533
  "type": "function"
631
534
  },
632
535
  {
633
536
  "inputs": [
537
+ {
538
+ "internalType": "address",
539
+ "name": "user",
540
+ "type": "address"
541
+ }
542
+ ],
543
+ "name": "getUserState",
544
+ "outputs": [
545
+ {
546
+ "internalType": "bool",
547
+ "name": "claimedToday",
548
+ "type": "bool"
549
+ },
634
550
  {
635
551
  "internalType": "uint256",
636
- "name": "gameId",
552
+ "name": "supportSpent",
637
553
  "type": "uint256"
638
554
  }
639
555
  ],
640
- "name": "ErrorCannotForceEndGame",
641
- "type": "error"
556
+ "stateMutability": "view",
557
+ "type": "function"
642
558
  },
643
559
  {
644
560
  "inputs": [
561
+ {
562
+ "internalType": "contract IMultipass",
563
+ "name": "_multipass",
564
+ "type": "address"
565
+ },
566
+ {
567
+ "internalType": "contract DistributableGovernanceERC20",
568
+ "name": "_token",
569
+ "type": "address"
570
+ },
571
+ {
572
+ "internalType": "address",
573
+ "name": "_pauser",
574
+ "type": "address"
575
+ },
645
576
  {
646
577
  "internalType": "uint256",
647
- "name": "gameId",
578
+ "name": "dailyClaim",
648
579
  "type": "uint256"
649
580
  },
650
581
  {
651
- "internalType": "enum IRankifyInstance.ProposingEndStatus",
652
- "name": "status",
653
- "type": "uint8"
582
+ "internalType": "uint256",
583
+ "name": "dailySupport",
584
+ "type": "uint256"
585
+ },
586
+ {
587
+ "internalType": "bytes32",
588
+ "name": "domainName",
589
+ "type": "bytes32"
654
590
  }
655
591
  ],
656
- "name": "ErrorProposingStageEndFailed",
657
- "type": "error"
592
+ "name": "initialize",
593
+ "outputs": [],
594
+ "stateMutability": "nonpayable",
595
+ "type": "function"
658
596
  },
659
597
  {
660
598
  "inputs": [
661
599
  {
662
- "internalType": "uint256",
663
- "name": "a",
664
- "type": "uint256"
665
- },
600
+ "internalType": "address",
601
+ "name": "user",
602
+ "type": "address"
603
+ }
604
+ ],
605
+ "name": "lastClaimedAt",
606
+ "outputs": [
666
607
  {
667
608
  "internalType": "uint256",
668
- "name": "b",
609
+ "name": "",
669
610
  "type": "uint256"
670
611
  }
671
612
  ],
672
- "name": "NoDivisionReminderAllowed",
673
- "type": "error"
613
+ "stateMutability": "view",
614
+ "type": "function"
674
615
  },
675
616
  {
676
617
  "inputs": [],
677
- "name": "RankNotSpecified",
678
- "type": "error"
618
+ "name": "multipass",
619
+ "outputs": [
620
+ {
621
+ "internalType": "contract IMultipass",
622
+ "name": "",
623
+ "type": "address"
624
+ }
625
+ ],
626
+ "stateMutability": "view",
627
+ "type": "function"
679
628
  },
680
629
  {
681
630
  "inputs": [
682
631
  {
683
- "internalType": "string",
684
- "name": "message",
685
- "type": "string"
632
+ "internalType": "address",
633
+ "name": "user",
634
+ "type": "address"
686
635
  }
687
636
  ],
688
- "name": "invalidConfiguration",
689
- "type": "error"
637
+ "name": "onboardingBonusClaimed",
638
+ "outputs": [
639
+ {
640
+ "internalType": "bool",
641
+ "name": "",
642
+ "type": "bool"
643
+ }
644
+ ],
645
+ "stateMutability": "view",
646
+ "type": "function"
647
+ },
648
+ {
649
+ "inputs": [],
650
+ "name": "pause",
651
+ "outputs": [],
652
+ "stateMutability": "nonpayable",
653
+ "type": "function"
654
+ },
655
+ {
656
+ "inputs": [],
657
+ "name": "paused",
658
+ "outputs": [
659
+ {
660
+ "internalType": "bool",
661
+ "name": "",
662
+ "type": "bool"
663
+ }
664
+ ],
665
+ "stateMutability": "view",
666
+ "type": "function"
667
+ },
668
+ {
669
+ "inputs": [],
670
+ "name": "pauser",
671
+ "outputs": [
672
+ {
673
+ "internalType": "address",
674
+ "name": "",
675
+ "type": "address"
676
+ }
677
+ ],
678
+ "stateMutability": "view",
679
+ "type": "function"
690
680
  },
691
681
  {
692
682
  "inputs": [
693
683
  {
694
684
  "internalType": "bytes32",
695
- "name": "digest",
685
+ "name": "proposal",
696
686
  "type": "bytes32"
697
- },
687
+ }
688
+ ],
689
+ "name": "proposalLifetimeStats",
690
+ "outputs": [
698
691
  {
699
- "internalType": "string",
700
- "name": "message",
701
- "type": "string"
692
+ "components": [
693
+ {
694
+ "internalType": "uint256",
695
+ "name": "aggregateScore",
696
+ "type": "uint256"
697
+ },
698
+ {
699
+ "internalType": "uint256",
700
+ "name": "proposedTimes",
701
+ "type": "uint256"
702
+ },
703
+ {
704
+ "internalType": "uint256",
705
+ "name": "repostedTimes",
706
+ "type": "uint256"
707
+ }
708
+ ],
709
+ "internalType": "struct LibUBI.ProposalGlobalStats",
710
+ "name": "",
711
+ "type": "tuple"
702
712
  }
703
713
  ],
704
- "name": "invalidECDSARecoverSigner",
705
- "type": "error"
714
+ "stateMutability": "view",
715
+ "type": "function"
706
716
  },
707
717
  {
708
718
  "inputs": [
709
719
  {
710
- "internalType": "uint256",
711
- "name": "nTurns",
712
- "type": "uint256"
720
+ "components": [
721
+ {
722
+ "internalType": "bytes32",
723
+ "name": "proposal",
724
+ "type": "bytes32"
725
+ },
726
+ {
727
+ "internalType": "uint256",
728
+ "name": "amount",
729
+ "type": "uint256"
730
+ }
731
+ ],
732
+ "internalType": "struct LibUBI.VoteElement[]",
733
+ "name": "votes",
734
+ "type": "tuple[]"
713
735
  }
714
736
  ],
715
- "name": "invalidTurnCount",
716
- "type": "error"
737
+ "name": "support",
738
+ "outputs": [],
739
+ "stateMutability": "nonpayable",
740
+ "type": "function"
717
741
  },
718
742
  {
719
743
  "inputs": [],
720
- "name": "zeroValue",
721
- "type": "error"
722
- },
723
- {
724
- "anonymous": false,
725
- "inputs": [
744
+ "name": "token",
745
+ "outputs": [
726
746
  {
727
- "indexed": true,
728
- "internalType": "uint256",
729
- "name": "gameId",
730
- "type": "uint256"
747
+ "internalType": "contract DistributableGovernanceERC20",
748
+ "name": "",
749
+ "type": "address"
731
750
  }
732
751
  ],
733
- "name": "GameClosed",
734
- "type": "event"
752
+ "stateMutability": "view",
753
+ "type": "function"
735
754
  },
736
755
  {
737
- "anonymous": false,
738
- "inputs": [
756
+ "inputs": [],
757
+ "name": "unpause",
758
+ "outputs": [],
759
+ "stateMutability": "nonpayable",
760
+ "type": "function"
761
+ },
762
+ {
763
+ "inputs": [],
764
+ "name": "currentChainId",
765
+ "outputs": [
739
766
  {
740
- "indexed": true,
741
767
  "internalType": "uint256",
742
- "name": "gameId",
768
+ "name": "",
743
769
  "type": "uint256"
744
770
  }
745
771
  ],
746
- "name": "GameStarted",
747
- "type": "event"
772
+ "stateMutability": "view",
773
+ "type": "function"
748
774
  },
749
775
  {
750
- "anonymous": false,
751
- "inputs": [
776
+ "inputs": [],
777
+ "name": "inspectEIP712Hashes",
778
+ "outputs": [
779
+ {
780
+ "internalType": "bytes32",
781
+ "name": "_CACHED_DOMAIN_SEPARATOR",
782
+ "type": "bytes32"
783
+ },
752
784
  {
753
- "indexed": true,
754
785
  "internalType": "uint256",
755
- "name": "gameId",
786
+ "name": "_CACHED_CHAIN_ID",
756
787
  "type": "uint256"
757
788
  },
758
789
  {
759
- "indexed": true,
760
790
  "internalType": "address",
761
- "name": "participant",
791
+ "name": "_CACHED_THIS",
762
792
  "type": "address"
763
793
  },
764
794
  {
765
- "indexed": false,
766
795
  "internalType": "bytes32",
767
- "name": "gmCommitment",
796
+ "name": "_HASHED_NAME",
797
+ "type": "bytes32"
798
+ },
799
+ {
800
+ "internalType": "bytes32",
801
+ "name": "_HASHED_VERSION",
802
+ "type": "bytes32"
803
+ },
804
+ {
805
+ "internalType": "bytes32",
806
+ "name": "_TYPE_HASH",
768
807
  "type": "bytes32"
769
808
  },
770
809
  {
771
- "indexed": false,
772
810
  "internalType": "string",
773
- "name": "voterPubKey",
811
+ "name": "_NAME",
812
+ "type": "string"
813
+ },
814
+ {
815
+ "internalType": "string",
816
+ "name": "_VERSION",
774
817
  "type": "string"
775
818
  }
776
819
  ],
777
- "name": "PlayerJoined",
778
- "type": "event"
820
+ "stateMutability": "view",
821
+ "type": "function"
779
822
  },
780
823
  {
781
824
  "anonymous": false,
782
825
  "inputs": [
783
- {
784
- "indexed": true,
785
- "internalType": "uint256",
786
- "name": "gameId",
787
- "type": "uint256"
788
- },
789
826
  {
790
827
  "indexed": true,
791
828
  "internalType": "address",
792
- "name": "player",
829
+ "name": "_address",
793
830
  "type": "address"
794
831
  }
795
832
  ],
796
- "name": "PlayerLeft",
833
+ "name": "WhitelistedGMAdded",
797
834
  "type": "event"
798
835
  },
799
836
  {
@@ -802,29 +839,194 @@ exports.RankifyDiamondInstanceAbi = [
802
839
  {
803
840
  "indexed": true,
804
841
  "internalType": "address",
805
- "name": "player",
842
+ "name": "_address",
806
843
  "type": "address"
807
- },
844
+ }
845
+ ],
846
+ "name": "WhitelistedGMRemoved",
847
+ "type": "event"
848
+ },
849
+ {
850
+ "inputs": [
851
+ {
852
+ "internalType": "address",
853
+ "name": "_address",
854
+ "type": "address"
855
+ }
856
+ ],
857
+ "name": "addWhitelistedGM",
858
+ "outputs": [],
859
+ "stateMutability": "nonpayable",
860
+ "type": "function"
861
+ },
862
+ {
863
+ "inputs": [
864
+ {
865
+ "internalType": "address",
866
+ "name": "_address",
867
+ "type": "address"
868
+ }
869
+ ],
870
+ "name": "isWhitelistedGM",
871
+ "outputs": [
872
+ {
873
+ "internalType": "bool",
874
+ "name": "",
875
+ "type": "bool"
876
+ }
877
+ ],
878
+ "stateMutability": "view",
879
+ "type": "function"
880
+ },
881
+ {
882
+ "inputs": [
883
+ {
884
+ "internalType": "address",
885
+ "name": "_address",
886
+ "type": "address"
887
+ }
888
+ ],
889
+ "name": "removeWhitelistedGM",
890
+ "outputs": [],
891
+ "stateMutability": "nonpayable",
892
+ "type": "function"
893
+ },
894
+ {
895
+ "inputs": [
896
+ {
897
+ "internalType": "bytes32[2]",
898
+ "name": "inputs",
899
+ "type": "bytes32[2]"
900
+ }
901
+ ],
902
+ "name": "poseidon",
903
+ "outputs": [
904
+ {
905
+ "internalType": "bytes32",
906
+ "name": "",
907
+ "type": "bytes32"
908
+ }
909
+ ],
910
+ "stateMutability": "view",
911
+ "type": "function"
912
+ },
913
+ {
914
+ "inputs": [
915
+ {
916
+ "internalType": "bytes32[5]",
917
+ "name": "inputs",
918
+ "type": "bytes32[5]"
919
+ }
920
+ ],
921
+ "name": "poseidon",
922
+ "outputs": [
923
+ {
924
+ "internalType": "bytes32",
925
+ "name": "",
926
+ "type": "bytes32"
927
+ }
928
+ ],
929
+ "stateMutability": "view",
930
+ "type": "function"
931
+ },
932
+ {
933
+ "inputs": [
934
+ {
935
+ "internalType": "bytes32[6]",
936
+ "name": "inputs",
937
+ "type": "bytes32[6]"
938
+ }
939
+ ],
940
+ "name": "poseidon",
941
+ "outputs": [
942
+ {
943
+ "internalType": "bytes32",
944
+ "name": "",
945
+ "type": "bytes32"
946
+ }
947
+ ],
948
+ "stateMutability": "view",
949
+ "type": "function"
950
+ },
951
+ {
952
+ "inputs": [
808
953
  {
809
- "indexed": false,
810
954
  "internalType": "uint256",
811
- "name": "rankId",
955
+ "name": "gameId",
956
+ "type": "uint256"
957
+ }
958
+ ],
959
+ "name": "ErrorCannotForceEndGame",
960
+ "type": "error"
961
+ },
962
+ {
963
+ "inputs": [
964
+ {
965
+ "internalType": "uint256",
966
+ "name": "gameId",
812
967
  "type": "uint256"
813
968
  },
814
969
  {
815
- "indexed": false,
970
+ "internalType": "enum IRankifyInstance.ProposingEndStatus",
971
+ "name": "status",
972
+ "type": "uint8"
973
+ }
974
+ ],
975
+ "name": "ErrorProposingStageEndFailed",
976
+ "type": "error"
977
+ },
978
+ {
979
+ "inputs": [
980
+ {
981
+ "internalType": "bytes32",
982
+ "name": "ballotHash",
983
+ "type": "bytes32"
984
+ },
985
+ {
986
+ "internalType": "bytes32",
987
+ "name": "ballotHashFromVotes",
988
+ "type": "bytes32"
989
+ }
990
+ ],
991
+ "name": "ballotIntegrityCheckFailed",
992
+ "type": "error"
993
+ },
994
+ {
995
+ "anonymous": false,
996
+ "inputs": [
997
+ {
998
+ "indexed": true,
816
999
  "internalType": "uint256",
817
- "name": "amount",
1000
+ "name": "gameId",
818
1001
  "type": "uint256"
819
1002
  },
820
1003
  {
821
1004
  "indexed": false,
1005
+ "internalType": "address[]",
1006
+ "name": "players",
1007
+ "type": "address[]"
1008
+ },
1009
+ {
1010
+ "indexed": false,
1011
+ "internalType": "uint256[]",
1012
+ "name": "scores",
1013
+ "type": "uint256[]"
1014
+ }
1015
+ ],
1016
+ "name": "GameOver",
1017
+ "type": "event"
1018
+ },
1019
+ {
1020
+ "anonymous": false,
1021
+ "inputs": [
1022
+ {
1023
+ "indexed": true,
822
1024
  "internalType": "uint256",
823
- "name": "_toMint",
1025
+ "name": "gameId",
824
1026
  "type": "uint256"
825
1027
  }
826
1028
  ],
827
- "name": "RankTokenExited",
1029
+ "name": "LastTurn",
828
1030
  "type": "event"
829
1031
  },
830
1032
  {
@@ -837,7 +1039,7 @@ exports.RankifyDiamondInstanceAbi = [
837
1039
  "type": "uint256"
838
1040
  }
839
1041
  ],
840
- "name": "RegistrationOpen",
1042
+ "name": "OverTime",
841
1043
  "type": "event"
842
1044
  },
843
1045
  {
@@ -849,181 +1051,32 @@ exports.RankifyDiamondInstanceAbi = [
849
1051
  "name": "gameId",
850
1052
  "type": "uint256"
851
1053
  },
852
- {
853
- "components": [
854
- {
855
- "components": [
856
- {
857
- "internalType": "uint256",
858
- "name": "have",
859
- "type": "uint256"
860
- },
861
- {
862
- "internalType": "uint256",
863
- "name": "lock",
864
- "type": "uint256"
865
- },
866
- {
867
- "internalType": "uint256",
868
- "name": "burn",
869
- "type": "uint256"
870
- },
871
- {
872
- "internalType": "uint256",
873
- "name": "pay",
874
- "type": "uint256"
875
- },
876
- {
877
- "internalType": "uint256",
878
- "name": "bet",
879
- "type": "uint256"
880
- }
881
- ],
882
- "internalType": "struct LibCoinVending.NumericCondition",
883
- "name": "ethValues",
884
- "type": "tuple"
885
- },
886
- {
887
- "components": [
888
- {
889
- "internalType": "address",
890
- "name": "contractAddress",
891
- "type": "address"
892
- },
893
- {
894
- "internalType": "uint256",
895
- "name": "contractId",
896
- "type": "uint256"
897
- },
898
- {
899
- "internalType": "enum LibCoinVending.ContractTypes",
900
- "name": "contractType",
901
- "type": "uint8"
902
- },
903
- {
904
- "components": [
905
- {
906
- "components": [
907
- {
908
- "internalType": "bytes",
909
- "name": "data",
910
- "type": "bytes"
911
- },
912
- {
913
- "internalType": "uint256",
914
- "name": "amount",
915
- "type": "uint256"
916
- }
917
- ],
918
- "internalType": "struct LibCoinVending.TransactionProperties",
919
- "name": "have",
920
- "type": "tuple"
921
- },
922
- {
923
- "components": [
924
- {
925
- "internalType": "bytes",
926
- "name": "data",
927
- "type": "bytes"
928
- },
929
- {
930
- "internalType": "uint256",
931
- "name": "amount",
932
- "type": "uint256"
933
- }
934
- ],
935
- "internalType": "struct LibCoinVending.TransactionProperties",
936
- "name": "lock",
937
- "type": "tuple"
938
- },
939
- {
940
- "components": [
941
- {
942
- "internalType": "bytes",
943
- "name": "data",
944
- "type": "bytes"
945
- },
946
- {
947
- "internalType": "uint256",
948
- "name": "amount",
949
- "type": "uint256"
950
- }
951
- ],
952
- "internalType": "struct LibCoinVending.TransactionProperties",
953
- "name": "burn",
954
- "type": "tuple"
955
- },
956
- {
957
- "components": [
958
- {
959
- "internalType": "bytes",
960
- "name": "data",
961
- "type": "bytes"
962
- },
963
- {
964
- "internalType": "uint256",
965
- "name": "amount",
966
- "type": "uint256"
967
- }
968
- ],
969
- "internalType": "struct LibCoinVending.TransactionProperties",
970
- "name": "pay",
971
- "type": "tuple"
972
- },
973
- {
974
- "components": [
975
- {
976
- "internalType": "bytes",
977
- "name": "data",
978
- "type": "bytes"
979
- },
980
- {
981
- "internalType": "uint256",
982
- "name": "amount",
983
- "type": "uint256"
984
- }
985
- ],
986
- "internalType": "struct LibCoinVending.TransactionProperties",
987
- "name": "bet",
988
- "type": "tuple"
989
- }
990
- ],
991
- "internalType": "struct LibCoinVending.ContractCondition",
992
- "name": "contractRequirement",
993
- "type": "tuple"
994
- }
995
- ],
996
- "internalType": "struct LibCoinVending.configSmartRequirement[]",
997
- "name": "contracts",
998
- "type": "tuple[]"
999
- }
1000
- ],
1001
- "indexed": false,
1002
- "internalType": "struct LibCoinVending.ConfigPosition",
1003
- "name": "config",
1004
- "type": "tuple"
1005
- }
1006
- ],
1007
- "name": "RequirementsConfigured",
1008
- "type": "event"
1009
- },
1010
- {
1011
- "anonymous": false,
1012
- "inputs": [
1013
1054
  {
1014
1055
  "indexed": true,
1015
1056
  "internalType": "uint256",
1016
- "name": "gameId",
1057
+ "name": "turn",
1017
1058
  "type": "uint256"
1018
1059
  },
1060
+ {
1061
+ "indexed": true,
1062
+ "internalType": "string",
1063
+ "name": "proposalHash",
1064
+ "type": "string"
1065
+ },
1019
1066
  {
1020
1067
  "indexed": false,
1021
- "internalType": "address",
1022
- "name": "winner",
1023
- "type": "address"
1068
+ "internalType": "string",
1069
+ "name": "proposal",
1070
+ "type": "string"
1071
+ },
1072
+ {
1073
+ "indexed": false,
1074
+ "internalType": "uint256",
1075
+ "name": "score",
1076
+ "type": "uint256"
1024
1077
  }
1025
1078
  ],
1026
- "name": "StaleGameEnded",
1079
+ "name": "ProposalScore",
1027
1080
  "type": "event"
1028
1081
  },
1029
1082
  {
@@ -1038,121 +1091,896 @@ exports.RankifyDiamondInstanceAbi = [
1038
1091
  {
1039
1092
  "indexed": true,
1040
1093
  "internalType": "uint256",
1041
- "name": "roundNumber",
1094
+ "name": "turn",
1095
+ "type": "uint256"
1096
+ },
1097
+ {
1098
+ "indexed": true,
1099
+ "internalType": "address",
1100
+ "name": "proposer",
1101
+ "type": "address"
1102
+ },
1103
+ {
1104
+ "indexed": false,
1105
+ "internalType": "uint256",
1106
+ "name": "commitment",
1042
1107
  "type": "uint256"
1043
1108
  },
1044
1109
  {
1045
1110
  "indexed": false,
1046
- "internalType": "address[]",
1047
- "name": "players",
1048
- "type": "address[]"
1111
+ "internalType": "string",
1112
+ "name": "encryptedProposal",
1113
+ "type": "string"
1049
1114
  },
1050
1115
  {
1051
1116
  "indexed": false,
1052
- "internalType": "uint256[]",
1053
- "name": "scores",
1054
- "type": "uint256[]"
1117
+ "internalType": "bytes",
1118
+ "name": "gmSignature",
1119
+ "type": "bytes"
1120
+ },
1121
+ {
1122
+ "indexed": false,
1123
+ "internalType": "bytes",
1124
+ "name": "proposerSignature",
1125
+ "type": "bytes"
1055
1126
  }
1056
1127
  ],
1057
- "name": "VotingStageEnded",
1128
+ "name": "ProposalSubmitted",
1058
1129
  "type": "event"
1059
1130
  },
1060
1131
  {
1061
1132
  "anonymous": false,
1062
1133
  "inputs": [
1063
1134
  {
1064
- "indexed": false,
1135
+ "indexed": true,
1065
1136
  "internalType": "uint256",
1066
1137
  "name": "gameId",
1067
1138
  "type": "uint256"
1068
1139
  },
1069
- {
1070
- "indexed": true,
1071
- "internalType": "address",
1072
- "name": "gm",
1073
- "type": "address"
1074
- },
1075
- {
1076
- "indexed": true,
1077
- "internalType": "address",
1078
- "name": "creator",
1079
- "type": "address"
1080
- },
1081
1140
  {
1082
1141
  "indexed": true,
1083
1142
  "internalType": "uint256",
1084
- "name": "rank",
1143
+ "name": "roundNumber",
1085
1144
  "type": "uint256"
1086
1145
  },
1087
1146
  {
1088
1147
  "indexed": false,
1089
1148
  "internalType": "uint256",
1090
- "name": "proposingPhaseDuration",
1149
+ "name": "numProposals",
1091
1150
  "type": "uint256"
1092
1151
  },
1093
1152
  {
1094
1153
  "indexed": false,
1095
- "internalType": "uint256",
1096
- "name": "votePhaseDuration",
1097
- "type": "uint256"
1154
+ "internalType": "string[]",
1155
+ "name": "proposals",
1156
+ "type": "string[]"
1098
1157
  }
1099
1158
  ],
1100
- "name": "gameCreated",
1159
+ "name": "ProposingStageEnded",
1101
1160
  "type": "event"
1102
1161
  },
1103
1162
  {
1163
+ "anonymous": false,
1104
1164
  "inputs": [
1105
1165
  {
1166
+ "indexed": true,
1106
1167
  "internalType": "uint256",
1107
1168
  "name": "gameId",
1108
1169
  "type": "uint256"
1109
- }
1110
- ],
1111
- "name": "canEndProposingStage",
1112
- "outputs": [
1113
- {
1114
- "internalType": "bool",
1115
- "name": "",
1116
- "type": "bool"
1117
1170
  },
1118
1171
  {
1119
- "internalType": "enum IRankifyInstance.ProposingEndStatus",
1120
- "name": "",
1121
- "type": "uint8"
1172
+ "indexed": false,
1173
+ "internalType": "address",
1174
+ "name": "winner",
1175
+ "type": "address"
1122
1176
  }
1123
1177
  ],
1124
- "stateMutability": "view",
1125
- "type": "function"
1178
+ "name": "StaleGameEnded",
1179
+ "type": "event"
1126
1180
  },
1127
1181
  {
1182
+ "anonymous": false,
1128
1183
  "inputs": [
1129
1184
  {
1185
+ "indexed": true,
1130
1186
  "internalType": "uint256",
1131
1187
  "name": "gameId",
1132
1188
  "type": "uint256"
1133
- }
1134
- ],
1135
- "name": "canEndVotingStage",
1136
- "outputs": [
1189
+ },
1137
1190
  {
1138
- "internalType": "bool",
1139
- "name": "",
1140
- "type": "bool"
1191
+ "indexed": true,
1192
+ "internalType": "uint256",
1193
+ "name": "turn",
1194
+ "type": "uint256"
1195
+ },
1196
+ {
1197
+ "indexed": true,
1198
+ "internalType": "address",
1199
+ "name": "player",
1200
+ "type": "address"
1201
+ },
1202
+ {
1203
+ "indexed": false,
1204
+ "internalType": "string",
1205
+ "name": "sealedBallotId",
1206
+ "type": "string"
1207
+ },
1208
+ {
1209
+ "indexed": false,
1210
+ "internalType": "bytes",
1211
+ "name": "gmSignature",
1212
+ "type": "bytes"
1213
+ },
1214
+ {
1215
+ "indexed": false,
1216
+ "internalType": "bytes",
1217
+ "name": "voterSignature",
1218
+ "type": "bytes"
1219
+ },
1220
+ {
1221
+ "indexed": false,
1222
+ "internalType": "bytes32",
1223
+ "name": "ballotHash",
1224
+ "type": "bytes32"
1141
1225
  }
1142
1226
  ],
1143
- "stateMutability": "view",
1144
- "type": "function"
1227
+ "name": "VoteSubmitted",
1228
+ "type": "event"
1145
1229
  },
1146
1230
  {
1231
+ "anonymous": false,
1147
1232
  "inputs": [
1148
1233
  {
1234
+ "indexed": true,
1149
1235
  "internalType": "uint256",
1150
1236
  "name": "gameId",
1151
1237
  "type": "uint256"
1152
- }
1153
- ],
1154
- "name": "canStartGame",
1155
- "outputs": [
1238
+ },
1239
+ {
1240
+ "indexed": true,
1241
+ "internalType": "uint256",
1242
+ "name": "roundNumber",
1243
+ "type": "uint256"
1244
+ },
1245
+ {
1246
+ "indexed": true,
1247
+ "internalType": "address",
1248
+ "name": "winner",
1249
+ "type": "address"
1250
+ },
1251
+ {
1252
+ "indexed": false,
1253
+ "internalType": "address[]",
1254
+ "name": "players",
1255
+ "type": "address[]"
1256
+ },
1257
+ {
1258
+ "indexed": false,
1259
+ "internalType": "uint256[]",
1260
+ "name": "scores",
1261
+ "type": "uint256[]"
1262
+ },
1263
+ {
1264
+ "indexed": false,
1265
+ "internalType": "uint256[][]",
1266
+ "name": "votesSorted",
1267
+ "type": "uint256[][]"
1268
+ },
1269
+ {
1270
+ "indexed": false,
1271
+ "internalType": "bool[]",
1272
+ "name": "isActive",
1273
+ "type": "bool[]"
1274
+ },
1275
+ {
1276
+ "indexed": false,
1277
+ "internalType": "uint256[][]",
1278
+ "name": "finalizedVotingMatrix",
1279
+ "type": "uint256[][]"
1280
+ },
1281
+ {
1282
+ "indexed": false,
1283
+ "internalType": "uint256[]",
1284
+ "name": "permutation",
1285
+ "type": "uint256[]"
1286
+ }
1287
+ ],
1288
+ "name": "VotingStageResults",
1289
+ "type": "event"
1290
+ },
1291
+ {
1292
+ "inputs": [
1293
+ {
1294
+ "internalType": "uint256",
1295
+ "name": "gameId",
1296
+ "type": "uint256"
1297
+ },
1298
+ {
1299
+ "components": [
1300
+ {
1301
+ "internalType": "string[]",
1302
+ "name": "proposals",
1303
+ "type": "string[]"
1304
+ },
1305
+ {
1306
+ "internalType": "uint256[2]",
1307
+ "name": "a",
1308
+ "type": "uint256[2]"
1309
+ },
1310
+ {
1311
+ "internalType": "uint256[2][2]",
1312
+ "name": "b",
1313
+ "type": "uint256[2][2]"
1314
+ },
1315
+ {
1316
+ "internalType": "uint256[2]",
1317
+ "name": "c",
1318
+ "type": "uint256[2]"
1319
+ },
1320
+ {
1321
+ "internalType": "uint256",
1322
+ "name": "permutationCommitment",
1323
+ "type": "uint256"
1324
+ }
1325
+ ],
1326
+ "internalType": "struct RankifyInstanceGameMastersFacet.BatchProposalReveal",
1327
+ "name": "newProposals",
1328
+ "type": "tuple"
1329
+ }
1330
+ ],
1331
+ "name": "endProposing",
1332
+ "outputs": [],
1333
+ "stateMutability": "nonpayable",
1334
+ "type": "function"
1335
+ },
1336
+ {
1337
+ "inputs": [
1338
+ {
1339
+ "internalType": "uint256",
1340
+ "name": "gameId",
1341
+ "type": "uint256"
1342
+ },
1343
+ {
1344
+ "internalType": "uint256[][]",
1345
+ "name": "votes",
1346
+ "type": "uint256[][]"
1347
+ },
1348
+ {
1349
+ "internalType": "uint256[]",
1350
+ "name": "permutation",
1351
+ "type": "uint256[]"
1352
+ },
1353
+ {
1354
+ "internalType": "uint256",
1355
+ "name": "shuffleSalt",
1356
+ "type": "uint256"
1357
+ }
1358
+ ],
1359
+ "name": "endVoting",
1360
+ "outputs": [],
1361
+ "stateMutability": "nonpayable",
1362
+ "type": "function"
1363
+ },
1364
+ {
1365
+ "inputs": [
1366
+ {
1367
+ "internalType": "uint256",
1368
+ "name": "gameId",
1369
+ "type": "uint256"
1370
+ }
1371
+ ],
1372
+ "name": "forceEndStaleGame",
1373
+ "outputs": [],
1374
+ "stateMutability": "nonpayable",
1375
+ "type": "function"
1376
+ },
1377
+ {
1378
+ "inputs": [
1379
+ {
1380
+ "components": [
1381
+ {
1382
+ "internalType": "uint256",
1383
+ "name": "gameId",
1384
+ "type": "uint256"
1385
+ },
1386
+ {
1387
+ "internalType": "string",
1388
+ "name": "encryptedProposal",
1389
+ "type": "string"
1390
+ },
1391
+ {
1392
+ "internalType": "uint256",
1393
+ "name": "commitment",
1394
+ "type": "uint256"
1395
+ },
1396
+ {
1397
+ "internalType": "address",
1398
+ "name": "proposer",
1399
+ "type": "address"
1400
+ },
1401
+ {
1402
+ "internalType": "bytes",
1403
+ "name": "gmSignature",
1404
+ "type": "bytes"
1405
+ },
1406
+ {
1407
+ "internalType": "bytes",
1408
+ "name": "proposerSignature",
1409
+ "type": "bytes"
1410
+ }
1411
+ ],
1412
+ "internalType": "struct RankifyInstanceGameMastersFacet.ProposalParams",
1413
+ "name": "params",
1414
+ "type": "tuple"
1415
+ }
1416
+ ],
1417
+ "name": "submitProposal",
1418
+ "outputs": [],
1419
+ "stateMutability": "nonpayable",
1420
+ "type": "function"
1421
+ },
1422
+ {
1423
+ "inputs": [
1424
+ {
1425
+ "internalType": "uint256",
1426
+ "name": "gameId",
1427
+ "type": "uint256"
1428
+ },
1429
+ {
1430
+ "internalType": "string",
1431
+ "name": "sealedBallotId",
1432
+ "type": "string"
1433
+ },
1434
+ {
1435
+ "internalType": "address",
1436
+ "name": "voter",
1437
+ "type": "address"
1438
+ },
1439
+ {
1440
+ "internalType": "bytes",
1441
+ "name": "gmSignature",
1442
+ "type": "bytes"
1443
+ },
1444
+ {
1445
+ "internalType": "bytes",
1446
+ "name": "voterSignature",
1447
+ "type": "bytes"
1448
+ },
1449
+ {
1450
+ "internalType": "bytes32",
1451
+ "name": "ballotHash",
1452
+ "type": "bytes32"
1453
+ }
1454
+ ],
1455
+ "name": "submitVote",
1456
+ "outputs": [],
1457
+ "stateMutability": "nonpayable",
1458
+ "type": "function"
1459
+ },
1460
+ {
1461
+ "inputs": [
1462
+ {
1463
+ "internalType": "uint256",
1464
+ "name": "gameId",
1465
+ "type": "uint256"
1466
+ }
1467
+ ],
1468
+ "name": "ErrorCannotForceEndGame",
1469
+ "type": "error"
1470
+ },
1471
+ {
1472
+ "inputs": [
1473
+ {
1474
+ "internalType": "uint256",
1475
+ "name": "gameId",
1476
+ "type": "uint256"
1477
+ },
1478
+ {
1479
+ "internalType": "enum IRankifyInstance.ProposingEndStatus",
1480
+ "name": "status",
1481
+ "type": "uint8"
1482
+ }
1483
+ ],
1484
+ "name": "ErrorProposingStageEndFailed",
1485
+ "type": "error"
1486
+ },
1487
+ {
1488
+ "inputs": [
1489
+ {
1490
+ "internalType": "uint256",
1491
+ "name": "a",
1492
+ "type": "uint256"
1493
+ },
1494
+ {
1495
+ "internalType": "uint256",
1496
+ "name": "b",
1497
+ "type": "uint256"
1498
+ }
1499
+ ],
1500
+ "name": "NoDivisionReminderAllowed",
1501
+ "type": "error"
1502
+ },
1503
+ {
1504
+ "inputs": [],
1505
+ "name": "RankNotSpecified",
1506
+ "type": "error"
1507
+ },
1508
+ {
1509
+ "inputs": [
1510
+ {
1511
+ "internalType": "string",
1512
+ "name": "message",
1513
+ "type": "string"
1514
+ }
1515
+ ],
1516
+ "name": "invalidConfiguration",
1517
+ "type": "error"
1518
+ },
1519
+ {
1520
+ "inputs": [
1521
+ {
1522
+ "internalType": "bytes32",
1523
+ "name": "digest",
1524
+ "type": "bytes32"
1525
+ },
1526
+ {
1527
+ "internalType": "string",
1528
+ "name": "message",
1529
+ "type": "string"
1530
+ }
1531
+ ],
1532
+ "name": "invalidECDSARecoverSigner",
1533
+ "type": "error"
1534
+ },
1535
+ {
1536
+ "inputs": [
1537
+ {
1538
+ "internalType": "uint256",
1539
+ "name": "nTurns",
1540
+ "type": "uint256"
1541
+ }
1542
+ ],
1543
+ "name": "invalidTurnCount",
1544
+ "type": "error"
1545
+ },
1546
+ {
1547
+ "inputs": [],
1548
+ "name": "zeroValue",
1549
+ "type": "error"
1550
+ },
1551
+ {
1552
+ "anonymous": false,
1553
+ "inputs": [
1554
+ {
1555
+ "indexed": true,
1556
+ "internalType": "uint256",
1557
+ "name": "gameId",
1558
+ "type": "uint256"
1559
+ }
1560
+ ],
1561
+ "name": "GameClosed",
1562
+ "type": "event"
1563
+ },
1564
+ {
1565
+ "anonymous": false,
1566
+ "inputs": [
1567
+ {
1568
+ "indexed": true,
1569
+ "internalType": "uint256",
1570
+ "name": "gameId",
1571
+ "type": "uint256"
1572
+ }
1573
+ ],
1574
+ "name": "GameStarted",
1575
+ "type": "event"
1576
+ },
1577
+ {
1578
+ "anonymous": false,
1579
+ "inputs": [
1580
+ {
1581
+ "indexed": true,
1582
+ "internalType": "uint256",
1583
+ "name": "gameId",
1584
+ "type": "uint256"
1585
+ },
1586
+ {
1587
+ "indexed": true,
1588
+ "internalType": "address",
1589
+ "name": "participant",
1590
+ "type": "address"
1591
+ },
1592
+ {
1593
+ "indexed": false,
1594
+ "internalType": "bytes32",
1595
+ "name": "gmCommitment",
1596
+ "type": "bytes32"
1597
+ },
1598
+ {
1599
+ "indexed": false,
1600
+ "internalType": "string",
1601
+ "name": "voterPubKey",
1602
+ "type": "string"
1603
+ }
1604
+ ],
1605
+ "name": "PlayerJoined",
1606
+ "type": "event"
1607
+ },
1608
+ {
1609
+ "anonymous": false,
1610
+ "inputs": [
1611
+ {
1612
+ "indexed": true,
1613
+ "internalType": "uint256",
1614
+ "name": "gameId",
1615
+ "type": "uint256"
1616
+ },
1617
+ {
1618
+ "indexed": true,
1619
+ "internalType": "address",
1620
+ "name": "player",
1621
+ "type": "address"
1622
+ }
1623
+ ],
1624
+ "name": "PlayerLeft",
1625
+ "type": "event"
1626
+ },
1627
+ {
1628
+ "anonymous": false,
1629
+ "inputs": [
1630
+ {
1631
+ "indexed": true,
1632
+ "internalType": "address",
1633
+ "name": "player",
1634
+ "type": "address"
1635
+ },
1636
+ {
1637
+ "indexed": false,
1638
+ "internalType": "uint256",
1639
+ "name": "rankId",
1640
+ "type": "uint256"
1641
+ },
1642
+ {
1643
+ "indexed": false,
1644
+ "internalType": "uint256",
1645
+ "name": "amount",
1646
+ "type": "uint256"
1647
+ },
1648
+ {
1649
+ "indexed": false,
1650
+ "internalType": "uint256",
1651
+ "name": "_toMint",
1652
+ "type": "uint256"
1653
+ }
1654
+ ],
1655
+ "name": "RankTokenExited",
1656
+ "type": "event"
1657
+ },
1658
+ {
1659
+ "anonymous": false,
1660
+ "inputs": [
1661
+ {
1662
+ "indexed": true,
1663
+ "internalType": "uint256",
1664
+ "name": "gameId",
1665
+ "type": "uint256"
1666
+ }
1667
+ ],
1668
+ "name": "RegistrationOpen",
1669
+ "type": "event"
1670
+ },
1671
+ {
1672
+ "anonymous": false,
1673
+ "inputs": [
1674
+ {
1675
+ "indexed": true,
1676
+ "internalType": "uint256",
1677
+ "name": "gameId",
1678
+ "type": "uint256"
1679
+ },
1680
+ {
1681
+ "components": [
1682
+ {
1683
+ "components": [
1684
+ {
1685
+ "internalType": "uint256",
1686
+ "name": "have",
1687
+ "type": "uint256"
1688
+ },
1689
+ {
1690
+ "internalType": "uint256",
1691
+ "name": "lock",
1692
+ "type": "uint256"
1693
+ },
1694
+ {
1695
+ "internalType": "uint256",
1696
+ "name": "burn",
1697
+ "type": "uint256"
1698
+ },
1699
+ {
1700
+ "internalType": "uint256",
1701
+ "name": "pay",
1702
+ "type": "uint256"
1703
+ },
1704
+ {
1705
+ "internalType": "uint256",
1706
+ "name": "bet",
1707
+ "type": "uint256"
1708
+ }
1709
+ ],
1710
+ "internalType": "struct LibCoinVending.NumericCondition",
1711
+ "name": "ethValues",
1712
+ "type": "tuple"
1713
+ },
1714
+ {
1715
+ "components": [
1716
+ {
1717
+ "internalType": "address",
1718
+ "name": "contractAddress",
1719
+ "type": "address"
1720
+ },
1721
+ {
1722
+ "internalType": "uint256",
1723
+ "name": "contractId",
1724
+ "type": "uint256"
1725
+ },
1726
+ {
1727
+ "internalType": "enum LibCoinVending.ContractTypes",
1728
+ "name": "contractType",
1729
+ "type": "uint8"
1730
+ },
1731
+ {
1732
+ "components": [
1733
+ {
1734
+ "components": [
1735
+ {
1736
+ "internalType": "bytes",
1737
+ "name": "data",
1738
+ "type": "bytes"
1739
+ },
1740
+ {
1741
+ "internalType": "uint256",
1742
+ "name": "amount",
1743
+ "type": "uint256"
1744
+ }
1745
+ ],
1746
+ "internalType": "struct LibCoinVending.TransactionProperties",
1747
+ "name": "have",
1748
+ "type": "tuple"
1749
+ },
1750
+ {
1751
+ "components": [
1752
+ {
1753
+ "internalType": "bytes",
1754
+ "name": "data",
1755
+ "type": "bytes"
1756
+ },
1757
+ {
1758
+ "internalType": "uint256",
1759
+ "name": "amount",
1760
+ "type": "uint256"
1761
+ }
1762
+ ],
1763
+ "internalType": "struct LibCoinVending.TransactionProperties",
1764
+ "name": "lock",
1765
+ "type": "tuple"
1766
+ },
1767
+ {
1768
+ "components": [
1769
+ {
1770
+ "internalType": "bytes",
1771
+ "name": "data",
1772
+ "type": "bytes"
1773
+ },
1774
+ {
1775
+ "internalType": "uint256",
1776
+ "name": "amount",
1777
+ "type": "uint256"
1778
+ }
1779
+ ],
1780
+ "internalType": "struct LibCoinVending.TransactionProperties",
1781
+ "name": "burn",
1782
+ "type": "tuple"
1783
+ },
1784
+ {
1785
+ "components": [
1786
+ {
1787
+ "internalType": "bytes",
1788
+ "name": "data",
1789
+ "type": "bytes"
1790
+ },
1791
+ {
1792
+ "internalType": "uint256",
1793
+ "name": "amount",
1794
+ "type": "uint256"
1795
+ }
1796
+ ],
1797
+ "internalType": "struct LibCoinVending.TransactionProperties",
1798
+ "name": "pay",
1799
+ "type": "tuple"
1800
+ },
1801
+ {
1802
+ "components": [
1803
+ {
1804
+ "internalType": "bytes",
1805
+ "name": "data",
1806
+ "type": "bytes"
1807
+ },
1808
+ {
1809
+ "internalType": "uint256",
1810
+ "name": "amount",
1811
+ "type": "uint256"
1812
+ }
1813
+ ],
1814
+ "internalType": "struct LibCoinVending.TransactionProperties",
1815
+ "name": "bet",
1816
+ "type": "tuple"
1817
+ }
1818
+ ],
1819
+ "internalType": "struct LibCoinVending.ContractCondition",
1820
+ "name": "contractRequirement",
1821
+ "type": "tuple"
1822
+ }
1823
+ ],
1824
+ "internalType": "struct LibCoinVending.configSmartRequirement[]",
1825
+ "name": "contracts",
1826
+ "type": "tuple[]"
1827
+ }
1828
+ ],
1829
+ "indexed": false,
1830
+ "internalType": "struct LibCoinVending.ConfigPosition",
1831
+ "name": "config",
1832
+ "type": "tuple"
1833
+ }
1834
+ ],
1835
+ "name": "RequirementsConfigured",
1836
+ "type": "event"
1837
+ },
1838
+ {
1839
+ "anonymous": false,
1840
+ "inputs": [
1841
+ {
1842
+ "indexed": true,
1843
+ "internalType": "uint256",
1844
+ "name": "gameId",
1845
+ "type": "uint256"
1846
+ },
1847
+ {
1848
+ "indexed": false,
1849
+ "internalType": "address",
1850
+ "name": "winner",
1851
+ "type": "address"
1852
+ }
1853
+ ],
1854
+ "name": "StaleGameEnded",
1855
+ "type": "event"
1856
+ },
1857
+ {
1858
+ "anonymous": false,
1859
+ "inputs": [
1860
+ {
1861
+ "indexed": true,
1862
+ "internalType": "uint256",
1863
+ "name": "gameId",
1864
+ "type": "uint256"
1865
+ },
1866
+ {
1867
+ "indexed": true,
1868
+ "internalType": "uint256",
1869
+ "name": "roundNumber",
1870
+ "type": "uint256"
1871
+ },
1872
+ {
1873
+ "indexed": false,
1874
+ "internalType": "address[]",
1875
+ "name": "players",
1876
+ "type": "address[]"
1877
+ },
1878
+ {
1879
+ "indexed": false,
1880
+ "internalType": "uint256[]",
1881
+ "name": "scores",
1882
+ "type": "uint256[]"
1883
+ }
1884
+ ],
1885
+ "name": "VotingStageEnded",
1886
+ "type": "event"
1887
+ },
1888
+ {
1889
+ "anonymous": false,
1890
+ "inputs": [
1891
+ {
1892
+ "indexed": false,
1893
+ "internalType": "uint256",
1894
+ "name": "gameId",
1895
+ "type": "uint256"
1896
+ },
1897
+ {
1898
+ "indexed": true,
1899
+ "internalType": "address",
1900
+ "name": "gm",
1901
+ "type": "address"
1902
+ },
1903
+ {
1904
+ "indexed": true,
1905
+ "internalType": "address",
1906
+ "name": "creator",
1907
+ "type": "address"
1908
+ },
1909
+ {
1910
+ "indexed": true,
1911
+ "internalType": "uint256",
1912
+ "name": "rank",
1913
+ "type": "uint256"
1914
+ },
1915
+ {
1916
+ "indexed": false,
1917
+ "internalType": "uint256",
1918
+ "name": "proposingPhaseDuration",
1919
+ "type": "uint256"
1920
+ },
1921
+ {
1922
+ "indexed": false,
1923
+ "internalType": "uint256",
1924
+ "name": "votePhaseDuration",
1925
+ "type": "uint256"
1926
+ }
1927
+ ],
1928
+ "name": "gameCreated",
1929
+ "type": "event"
1930
+ },
1931
+ {
1932
+ "inputs": [
1933
+ {
1934
+ "internalType": "uint256",
1935
+ "name": "gameId",
1936
+ "type": "uint256"
1937
+ }
1938
+ ],
1939
+ "name": "canEndProposingStage",
1940
+ "outputs": [
1941
+ {
1942
+ "internalType": "bool",
1943
+ "name": "",
1944
+ "type": "bool"
1945
+ },
1946
+ {
1947
+ "internalType": "enum IRankifyInstance.ProposingEndStatus",
1948
+ "name": "",
1949
+ "type": "uint8"
1950
+ }
1951
+ ],
1952
+ "stateMutability": "view",
1953
+ "type": "function"
1954
+ },
1955
+ {
1956
+ "inputs": [
1957
+ {
1958
+ "internalType": "uint256",
1959
+ "name": "gameId",
1960
+ "type": "uint256"
1961
+ }
1962
+ ],
1963
+ "name": "canEndVotingStage",
1964
+ "outputs": [
1965
+ {
1966
+ "internalType": "bool",
1967
+ "name": "",
1968
+ "type": "bool"
1969
+ }
1970
+ ],
1971
+ "stateMutability": "view",
1972
+ "type": "function"
1973
+ },
1974
+ {
1975
+ "inputs": [
1976
+ {
1977
+ "internalType": "uint256",
1978
+ "name": "gameId",
1979
+ "type": "uint256"
1980
+ }
1981
+ ],
1982
+ "name": "canStartGame",
1983
+ "outputs": [
1156
1984
  {
1157
1985
  "internalType": "bool",
1158
1986
  "name": "",
@@ -2015,7 +2843,45 @@ exports.RankifyDiamondInstanceAbi = [
2015
2843
  "type": "string"
2016
2844
  }
2017
2845
  ],
2018
- "name": "joinGame",
2846
+ "name": "joinGame",
2847
+ "outputs": [],
2848
+ "stateMutability": "payable",
2849
+ "type": "function"
2850
+ },
2851
+ {
2852
+ "inputs": [
2853
+ {
2854
+ "internalType": "uint256",
2855
+ "name": "gameId",
2856
+ "type": "uint256"
2857
+ },
2858
+ {
2859
+ "internalType": "bytes",
2860
+ "name": "gameMasterSignature",
2861
+ "type": "bytes"
2862
+ },
2863
+ {
2864
+ "internalType": "bytes32",
2865
+ "name": "gmCommitment",
2866
+ "type": "bytes32"
2867
+ },
2868
+ {
2869
+ "internalType": "uint256",
2870
+ "name": "deadline",
2871
+ "type": "uint256"
2872
+ },
2873
+ {
2874
+ "internalType": "string",
2875
+ "name": "voterPubKey",
2876
+ "type": "string"
2877
+ },
2878
+ {
2879
+ "internalType": "address",
2880
+ "name": "player",
2881
+ "type": "address"
2882
+ }
2883
+ ],
2884
+ "name": "joinGameByMaster",
2019
2885
  "outputs": [],
2020
2886
  "stateMutability": "payable",
2021
2887
  "type": "function"
@@ -2916,86 +3782,437 @@ exports.RankifyDiamondInstanceAbi = [
2916
3782
  "type": "uint256"
2917
3783
  }
2918
3784
  ],
2919
- "stateMutability": "view",
2920
- "type": "function"
3785
+ "stateMutability": "view",
3786
+ "type": "function"
3787
+ },
3788
+ {
3789
+ "inputs": [
3790
+ {
3791
+ "internalType": "uint256",
3792
+ "name": "gameId",
3793
+ "type": "uint256"
3794
+ },
3795
+ {
3796
+ "internalType": "uint256",
3797
+ "name": "turn",
3798
+ "type": "uint256"
3799
+ },
3800
+ {
3801
+ "internalType": "bytes32",
3802
+ "name": "proposalHash",
3803
+ "type": "bytes32"
3804
+ }
3805
+ ],
3806
+ "name": "getProposalTurnScore",
3807
+ "outputs": [
3808
+ {
3809
+ "internalType": "uint256",
3810
+ "name": "score",
3811
+ "type": "uint256"
3812
+ },
3813
+ {
3814
+ "internalType": "address[]",
3815
+ "name": "proposedBy",
3816
+ "type": "address[]"
3817
+ }
3818
+ ],
3819
+ "stateMutability": "view",
3820
+ "type": "function"
3821
+ },
3822
+ {
3823
+ "inputs": [
3824
+ {
3825
+ "internalType": "uint256",
3826
+ "name": "gameId",
3827
+ "type": "uint256"
3828
+ },
3829
+ {
3830
+ "internalType": "uint256",
3831
+ "name": "turn",
3832
+ "type": "uint256"
3833
+ }
3834
+ ],
3835
+ "name": "getProposalsTurnScores",
3836
+ "outputs": [
3837
+ {
3838
+ "internalType": "bytes32[]",
3839
+ "name": "proposalHashes",
3840
+ "type": "bytes32[]"
3841
+ },
3842
+ {
3843
+ "internalType": "uint256[]",
3844
+ "name": "scores",
3845
+ "type": "uint256[]"
3846
+ },
3847
+ {
3848
+ "internalType": "address[][]",
3849
+ "name": "proposedBy",
3850
+ "type": "address[][]"
3851
+ }
3852
+ ],
3853
+ "stateMutability": "view",
3854
+ "type": "function"
3855
+ },
3856
+ {
3857
+ "inputs": [
3858
+ {
3859
+ "internalType": "bytes32",
3860
+ "name": "proposalHash",
3861
+ "type": "bytes32"
3862
+ }
3863
+ ],
3864
+ "name": "proposalExists",
3865
+ "outputs": [
3866
+ {
3867
+ "internalType": "bool",
3868
+ "name": "",
3869
+ "type": "bool"
3870
+ }
3871
+ ],
3872
+ "stateMutability": "view",
3873
+ "type": "function"
3874
+ },
3875
+ {
3876
+ "inputs": [
3877
+ {
3878
+ "internalType": "uint256",
3879
+ "name": "gameId",
3880
+ "type": "uint256"
3881
+ },
3882
+ {
3883
+ "internalType": "bytes32",
3884
+ "name": "proposalHash",
3885
+ "type": "bytes32"
3886
+ }
3887
+ ],
3888
+ "name": "proposalExistsInGame",
3889
+ "outputs": [
3890
+ {
3891
+ "internalType": "bool",
3892
+ "name": "",
3893
+ "type": "bool"
3894
+ }
3895
+ ],
3896
+ "stateMutability": "view",
3897
+ "type": "function"
3898
+ },
3899
+ {
3900
+ "inputs": [
3901
+ {
3902
+ "internalType": "uint256",
3903
+ "name": "gameId",
3904
+ "type": "uint256"
3905
+ },
3906
+ {
3907
+ "internalType": "uint256",
3908
+ "name": "turn",
3909
+ "type": "uint256"
3910
+ },
3911
+ {
3912
+ "internalType": "bytes32",
3913
+ "name": "proposalHash",
3914
+ "type": "bytes32"
3915
+ }
3916
+ ],
3917
+ "name": "proposalExistsInTurn",
3918
+ "outputs": [
3919
+ {
3920
+ "internalType": "bool",
3921
+ "name": "exists",
3922
+ "type": "bool"
3923
+ },
3924
+ {
3925
+ "internalType": "address[]",
3926
+ "name": "proposedBy",
3927
+ "type": "address[]"
3928
+ }
3929
+ ],
3930
+ "stateMutability": "view",
3931
+ "type": "function"
3932
+ },
3933
+ {
3934
+ "inputs": [],
3935
+ "name": "EnforcedPause",
3936
+ "type": "error"
3937
+ },
3938
+ {
3939
+ "inputs": [],
3940
+ "name": "ExpectedPause",
3941
+ "type": "error"
3942
+ },
3943
+ {
3944
+ "inputs": [],
3945
+ "name": "InvalidInitialization",
3946
+ "type": "error"
3947
+ },
3948
+ {
3949
+ "inputs": [],
3950
+ "name": "NotInitializing",
3951
+ "type": "error"
3952
+ },
3953
+ {
3954
+ "inputs": [],
3955
+ "name": "ReentrancyGuardReentrantCall",
3956
+ "type": "error"
3957
+ },
3958
+ {
3959
+ "anonymous": false,
3960
+ "inputs": [
3961
+ {
3962
+ "indexed": false,
3963
+ "internalType": "uint64",
3964
+ "name": "version",
3965
+ "type": "uint64"
3966
+ }
3967
+ ],
3968
+ "name": "Initialized",
3969
+ "type": "event"
3970
+ },
3971
+ {
3972
+ "anonymous": false,
3973
+ "inputs": [
3974
+ {
3975
+ "indexed": false,
3976
+ "internalType": "address",
3977
+ "name": "account",
3978
+ "type": "address"
3979
+ }
3980
+ ],
3981
+ "name": "Paused",
3982
+ "type": "event"
3983
+ },
3984
+ {
3985
+ "anonymous": false,
3986
+ "inputs": [
3987
+ {
3988
+ "indexed": true,
3989
+ "internalType": "address",
3990
+ "name": "rankifyInstance",
3991
+ "type": "address"
3992
+ },
3993
+ {
3994
+ "components": [
3995
+ {
3996
+ "internalType": "address",
3997
+ "name": "rewardToken",
3998
+ "type": "address"
3999
+ },
4000
+ {
4001
+ "internalType": "uint256",
4002
+ "name": "principalCost",
4003
+ "type": "uint256"
4004
+ },
4005
+ {
4006
+ "internalType": "uint96",
4007
+ "name": "principalTimeConstant",
4008
+ "type": "uint96"
4009
+ },
4010
+ {
4011
+ "internalType": "uint256",
4012
+ "name": "minimumParticipantsInCircle",
4013
+ "type": "uint256"
4014
+ },
4015
+ {
4016
+ "internalType": "address",
4017
+ "name": "paymentToken",
4018
+ "type": "address"
4019
+ },
4020
+ {
4021
+ "internalType": "address",
4022
+ "name": "beneficiary",
4023
+ "type": "address"
4024
+ },
4025
+ {
4026
+ "internalType": "address",
4027
+ "name": "derivedToken",
4028
+ "type": "address"
4029
+ },
4030
+ {
4031
+ "internalType": "address",
4032
+ "name": "proposalIntegrityVerifier",
4033
+ "type": "address"
4034
+ },
4035
+ {
4036
+ "internalType": "address",
4037
+ "name": "poseidon5",
4038
+ "type": "address"
4039
+ },
4040
+ {
4041
+ "internalType": "address",
4042
+ "name": "poseidon6",
4043
+ "type": "address"
4044
+ },
4045
+ {
4046
+ "internalType": "address",
4047
+ "name": "poseidon2",
4048
+ "type": "address"
4049
+ },
4050
+ {
4051
+ "internalType": "contract IMultipass",
4052
+ "name": "multipass",
4053
+ "type": "address"
4054
+ },
4055
+ {
4056
+ "internalType": "contract DistributableGovernanceERC20",
4057
+ "name": "ubiToken",
4058
+ "type": "address"
4059
+ },
4060
+ {
4061
+ "internalType": "address",
4062
+ "name": "pauser",
4063
+ "type": "address"
4064
+ },
4065
+ {
4066
+ "internalType": "uint256",
4067
+ "name": "dailyClaim",
4068
+ "type": "uint256"
4069
+ },
4070
+ {
4071
+ "internalType": "uint256",
4072
+ "name": "dailySupport",
4073
+ "type": "uint256"
4074
+ },
4075
+ {
4076
+ "internalType": "bytes32",
4077
+ "name": "domainName",
4078
+ "type": "bytes32"
4079
+ }
4080
+ ],
4081
+ "indexed": false,
4082
+ "internalType": "struct RankifyInstanceInit.contractInitializer",
4083
+ "name": "parameters",
4084
+ "type": "tuple"
4085
+ }
4086
+ ],
4087
+ "name": "RankifyInstanceInitialized",
4088
+ "type": "event"
2921
4089
  },
2922
4090
  {
4091
+ "anonymous": false,
2923
4092
  "inputs": [
2924
4093
  {
2925
- "internalType": "uint256",
2926
- "name": "gameId",
2927
- "type": "uint256"
2928
- },
2929
- {
2930
- "internalType": "uint256",
2931
- "name": "turn",
2932
- "type": "uint256"
2933
- },
2934
- {
2935
- "internalType": "bytes32",
2936
- "name": "proposalHash",
2937
- "type": "bytes32"
2938
- }
2939
- ],
2940
- "name": "getProposalTurnScore",
2941
- "outputs": [
2942
- {
2943
- "internalType": "uint256",
2944
- "name": "score",
2945
- "type": "uint256"
2946
- },
2947
- {
2948
- "internalType": "address[]",
2949
- "name": "proposedBy",
2950
- "type": "address[]"
4094
+ "indexed": false,
4095
+ "internalType": "address",
4096
+ "name": "account",
4097
+ "type": "address"
2951
4098
  }
2952
4099
  ],
2953
- "stateMutability": "view",
2954
- "type": "function"
4100
+ "name": "Unpaused",
4101
+ "type": "event"
2955
4102
  },
2956
4103
  {
2957
4104
  "inputs": [
2958
4105
  {
2959
- "internalType": "uint256",
2960
- "name": "gameId",
2961
- "type": "uint256"
2962
- },
2963
- {
2964
- "internalType": "uint256",
2965
- "name": "turn",
2966
- "type": "uint256"
2967
- }
2968
- ],
2969
- "name": "getProposalsTurnScores",
2970
- "outputs": [
2971
- {
2972
- "internalType": "bytes32[]",
2973
- "name": "proposalHashes",
2974
- "type": "bytes32[]"
4106
+ "internalType": "string",
4107
+ "name": "name",
4108
+ "type": "string"
2975
4109
  },
2976
4110
  {
2977
- "internalType": "uint256[]",
2978
- "name": "scores",
2979
- "type": "uint256[]"
4111
+ "internalType": "string",
4112
+ "name": "version",
4113
+ "type": "string"
2980
4114
  },
2981
4115
  {
2982
- "internalType": "address[][]",
2983
- "name": "proposedBy",
2984
- "type": "address[][]"
4116
+ "components": [
4117
+ {
4118
+ "internalType": "address",
4119
+ "name": "rewardToken",
4120
+ "type": "address"
4121
+ },
4122
+ {
4123
+ "internalType": "uint256",
4124
+ "name": "principalCost",
4125
+ "type": "uint256"
4126
+ },
4127
+ {
4128
+ "internalType": "uint96",
4129
+ "name": "principalTimeConstant",
4130
+ "type": "uint96"
4131
+ },
4132
+ {
4133
+ "internalType": "uint256",
4134
+ "name": "minimumParticipantsInCircle",
4135
+ "type": "uint256"
4136
+ },
4137
+ {
4138
+ "internalType": "address",
4139
+ "name": "paymentToken",
4140
+ "type": "address"
4141
+ },
4142
+ {
4143
+ "internalType": "address",
4144
+ "name": "beneficiary",
4145
+ "type": "address"
4146
+ },
4147
+ {
4148
+ "internalType": "address",
4149
+ "name": "derivedToken",
4150
+ "type": "address"
4151
+ },
4152
+ {
4153
+ "internalType": "address",
4154
+ "name": "proposalIntegrityVerifier",
4155
+ "type": "address"
4156
+ },
4157
+ {
4158
+ "internalType": "address",
4159
+ "name": "poseidon5",
4160
+ "type": "address"
4161
+ },
4162
+ {
4163
+ "internalType": "address",
4164
+ "name": "poseidon6",
4165
+ "type": "address"
4166
+ },
4167
+ {
4168
+ "internalType": "address",
4169
+ "name": "poseidon2",
4170
+ "type": "address"
4171
+ },
4172
+ {
4173
+ "internalType": "contract IMultipass",
4174
+ "name": "multipass",
4175
+ "type": "address"
4176
+ },
4177
+ {
4178
+ "internalType": "contract DistributableGovernanceERC20",
4179
+ "name": "ubiToken",
4180
+ "type": "address"
4181
+ },
4182
+ {
4183
+ "internalType": "address",
4184
+ "name": "pauser",
4185
+ "type": "address"
4186
+ },
4187
+ {
4188
+ "internalType": "uint256",
4189
+ "name": "dailyClaim",
4190
+ "type": "uint256"
4191
+ },
4192
+ {
4193
+ "internalType": "uint256",
4194
+ "name": "dailySupport",
4195
+ "type": "uint256"
4196
+ },
4197
+ {
4198
+ "internalType": "bytes32",
4199
+ "name": "domainName",
4200
+ "type": "bytes32"
4201
+ }
4202
+ ],
4203
+ "internalType": "struct RankifyInstanceInit.contractInitializer",
4204
+ "name": "initData",
4205
+ "type": "tuple"
2985
4206
  }
2986
4207
  ],
2987
- "stateMutability": "view",
4208
+ "name": "init",
4209
+ "outputs": [],
4210
+ "stateMutability": "nonpayable",
2988
4211
  "type": "function"
2989
4212
  },
2990
4213
  {
2991
- "inputs": [
2992
- {
2993
- "internalType": "bytes32",
2994
- "name": "proposalHash",
2995
- "type": "bytes32"
2996
- }
2997
- ],
2998
- "name": "proposalExists",
4214
+ "inputs": [],
4215
+ "name": "paused",
2999
4216
  "outputs": [
3000
4217
  {
3001
4218
  "internalType": "bool",
@@ -3009,60 +4226,74 @@ exports.RankifyDiamondInstanceAbi = [
3009
4226
  {
3010
4227
  "inputs": [
3011
4228
  {
3012
- "internalType": "uint256",
3013
- "name": "gameId",
3014
- "type": "uint256"
3015
- },
3016
- {
3017
- "internalType": "bytes32",
3018
- "name": "proposalHash",
3019
- "type": "bytes32"
3020
- }
3021
- ],
3022
- "name": "proposalExistsInGame",
3023
- "outputs": [
3024
- {
3025
- "internalType": "bool",
3026
- "name": "",
3027
- "type": "bool"
4229
+ "internalType": "bytes4",
4230
+ "name": "selector",
4231
+ "type": "bytes4"
3028
4232
  }
3029
4233
  ],
3030
- "stateMutability": "view",
3031
- "type": "function"
4234
+ "name": "functionDoesNotExist",
4235
+ "type": "error"
3032
4236
  },
3033
4237
  {
4238
+ "anonymous": false,
3034
4239
  "inputs": [
3035
4240
  {
3036
- "internalType": "uint256",
3037
- "name": "gameId",
3038
- "type": "uint256"
4241
+ "components": [
4242
+ {
4243
+ "internalType": "address",
4244
+ "name": "facetAddress",
4245
+ "type": "address"
4246
+ },
4247
+ {
4248
+ "internalType": "enum IDiamondCut.FacetCutAction",
4249
+ "name": "action",
4250
+ "type": "uint8"
4251
+ },
4252
+ {
4253
+ "internalType": "bytes4[]",
4254
+ "name": "functionSelectors",
4255
+ "type": "bytes4[]"
4256
+ }
4257
+ ],
4258
+ "indexed": false,
4259
+ "internalType": "struct IDiamondCut.FacetCut[]",
4260
+ "name": "_diamondCut",
4261
+ "type": "tuple[]"
3039
4262
  },
3040
4263
  {
3041
- "internalType": "uint256",
3042
- "name": "turn",
3043
- "type": "uint256"
4264
+ "indexed": false,
4265
+ "internalType": "address",
4266
+ "name": "_init",
4267
+ "type": "address"
3044
4268
  },
3045
4269
  {
3046
- "internalType": "bytes32",
3047
- "name": "proposalHash",
3048
- "type": "bytes32"
4270
+ "indexed": false,
4271
+ "internalType": "bytes",
4272
+ "name": "_calldata",
4273
+ "type": "bytes"
3049
4274
  }
3050
4275
  ],
3051
- "name": "proposalExistsInTurn",
3052
- "outputs": [
4276
+ "name": "DiamondCut",
4277
+ "type": "event"
4278
+ },
4279
+ {
4280
+ "anonymous": false,
4281
+ "inputs": [
3053
4282
  {
3054
- "internalType": "bool",
3055
- "name": "exists",
3056
- "type": "bool"
4283
+ "indexed": true,
4284
+ "internalType": "address",
4285
+ "name": "previousOwner",
4286
+ "type": "address"
3057
4287
  },
3058
4288
  {
3059
- "internalType": "address[]",
3060
- "name": "proposedBy",
3061
- "type": "address[]"
4289
+ "indexed": true,
4290
+ "internalType": "address",
4291
+ "name": "newOwner",
4292
+ "type": "address"
3062
4293
  }
3063
4294
  ],
3064
- "stateMutability": "view",
3065
- "type": "function"
4295
+ "name": "OwnershipTransferred",
4296
+ "type": "event"
3066
4297
  },
3067
4298
  {
3068
4299
  "inputs": [