@peeramid-labs/sdk 3.14.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 (350) hide show
  1. package/README.md +42 -1
  2. package/cli/abis/ArguableVotingTournament.js +15 -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 +3275 -1863
  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 +99 -68
  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/ScoreGetterFacet.js +195 -0
  23. package/cli/abis/ScoreGetterFacet.js.map +1 -0
  24. package/cli/abis/UBI.js +775 -0
  25. package/cli/abis/UBI.js.map +1 -0
  26. package/cli/abis/index.js +21 -1
  27. package/cli/abis/index.js.map +1 -1
  28. package/cli/abis/superinterface.js +192 -7
  29. package/cli/abis/superinterface.js.map +1 -1
  30. package/cli/cli/commands/blockchain/mine.js +0 -2
  31. package/cli/cli/commands/blockchain/mine.js.map +1 -1
  32. package/cli/cli/commands/fellowship/game/create.js +49 -2
  33. package/cli/cli/commands/fellowship/game/create.js.map +1 -1
  34. package/cli/cli/commands/fellowship/game/end-proposing.js +2 -2
  35. package/cli/cli/commands/fellowship/game/end-proposing.js.map +1 -1
  36. package/cli/cli/commands/fellowship/game/end-voting.js +2 -2
  37. package/cli/cli/commands/fellowship/game/end-voting.js.map +1 -1
  38. package/cli/cli/commands/fellowship/game/join.js +2 -1
  39. package/cli/cli/commands/fellowship/game/join.js.map +1 -1
  40. package/cli/cli/commands/fellowship/game/start.js +0 -17
  41. package/cli/cli/commands/fellowship/game/start.js.map +1 -1
  42. package/cli/cli/commands/fellowship/game/vote.js +2 -1
  43. package/cli/cli/commands/fellowship/game/vote.js.map +1 -1
  44. package/cli/cli/commands/fellowship/gameMaster/add.js +52 -0
  45. package/cli/cli/commands/fellowship/gameMaster/add.js.map +1 -0
  46. package/cli/cli/commands/fellowship/gameMaster/index.js +7 -0
  47. package/cli/cli/commands/fellowship/gameMaster/index.js.map +1 -0
  48. package/cli/cli/commands/fellowship/index.js +3 -1
  49. package/cli/cli/commands/fellowship/index.js.map +1 -1
  50. package/cli/cli/commands/instances/list.js +6 -0
  51. package/cli/cli/commands/instances/list.js.map +1 -1
  52. package/cli/cli/commands/multipass/contract.js +26 -0
  53. package/cli/cli/commands/multipass/contract.js.map +1 -1
  54. package/cli/cli/commands/multipass/domain.js +44 -1
  55. package/cli/cli/commands/multipass/domain.js.map +1 -1
  56. package/cli/cli/commands/multipass/domains.js +16 -2
  57. package/cli/cli/commands/multipass/domains.js.map +1 -1
  58. package/cli/cli/playbooks/demo-script.js +192 -0
  59. package/cli/cli/playbooks/demo-script.js.map +1 -0
  60. package/cli/cli/playbooks/demoScript.js +190 -0
  61. package/cli/cli/playbooks/demoScript.js.map +1 -0
  62. package/cli/cli/playbooks/initGameMaster.js +50 -0
  63. package/cli/cli/playbooks/initGameMaster.js.map +1 -0
  64. package/cli/cli/playbooks/playbookRunner.js +80 -0
  65. package/cli/cli/playbooks/playbookRunner.js.map +1 -0
  66. package/cli/cli/playbooks/push-game-to-next-phase.js +162 -0
  67. package/cli/cli/playbooks/push-game-to-next-phase.js.map +1 -0
  68. package/cli/cli/playbooks/utils.js +210 -0
  69. package/cli/cli/playbooks/utils.js.map +1 -0
  70. package/cli/cli/utils.js +47 -0
  71. package/cli/cli/utils.js.map +1 -1
  72. package/cli/multipass/MultipassBase.js +38 -70
  73. package/cli/multipass/MultipassBase.js.map +1 -1
  74. package/cli/multipass/Owner.js +34 -16
  75. package/cli/multipass/Owner.js.map +1 -1
  76. package/cli/rankify/GameMaster.js +1 -1
  77. package/cli/rankify/GameMaster.js.map +1 -1
  78. package/cli/rankify/InstanceAdmininstrative.js +70 -0
  79. package/cli/rankify/InstanceAdmininstrative.js.map +1 -0
  80. package/cli/rankify/InstanceBase.js +168 -2
  81. package/cli/rankify/InstanceBase.js.map +1 -1
  82. package/cli/rankify/Player.js +45 -3
  83. package/cli/rankify/Player.js.map +1 -1
  84. package/cli/types.js +7 -1
  85. package/cli/types.js.map +1 -1
  86. package/cli/utils/EnvioGraphQLClient.js +527 -0
  87. package/cli/utils/EnvioGraphQLClient.js.map +1 -1
  88. package/cli/utils/artifacts.js +23 -2
  89. package/cli/utils/artifacts.js.map +1 -1
  90. package/cli/utils/chainMapping.js +1 -1
  91. package/cli/utils/chainMapping.js.map +1 -1
  92. package/docs/classes/EnvioGraphQLClient.md +390 -22
  93. package/docs/classes/GameMaster.md +19 -0
  94. package/docs/classes/InstanceBase.md +179 -4
  95. package/docs/classes/InstancePlayer.md +214 -13
  96. package/docs/classes/InstanceUBI.md +1591 -0
  97. package/docs/classes/Multipass.md +31 -4
  98. package/docs/classes/MultipassBase.md +26 -3
  99. package/docs/docs/classes/EnvioGraphQLClient.md +390 -22
  100. package/docs/docs/classes/GameMaster.md +19 -0
  101. package/docs/docs/classes/InstanceBase.md +179 -4
  102. package/docs/docs/classes/InstancePlayer.md +214 -13
  103. package/docs/docs/classes/InstanceUBI.md +1591 -0
  104. package/docs/docs/classes/Multipass.md +31 -4
  105. package/docs/docs/classes/MultipassBase.md +26 -3
  106. package/docs/docs/enums/ContractTypes.md +27 -0
  107. package/docs/docs/index.md +25 -8
  108. package/docs/docs/interfaces/ContractCondition.md +41 -0
  109. package/docs/docs/interfaces/DailyProposal.md +36 -0
  110. package/docs/docs/interfaces/EnvioGraphQLClientConfig.md +9 -0
  111. package/docs/docs/interfaces/JoinRequirementsInput.md +20 -0
  112. package/docs/docs/interfaces/ProposalGlobalStats.md +29 -0
  113. package/docs/docs/interfaces/TransactionProperties.md +20 -0
  114. package/docs/docs/interfaces/UBIParams.md +29 -0
  115. package/docs/docs/interfaces/UserState.md +22 -0
  116. package/docs/docs/interfaces/VoteElement.md +22 -0
  117. package/docs/docs/interfaces/configSmartRequirement.md +34 -0
  118. package/docs/docs/interfaces/numericConditon.md +41 -0
  119. package/docs/enums/ContractTypes.md +27 -0
  120. package/docs/index.md +25 -8
  121. package/docs/interfaces/ContractCondition.md +41 -0
  122. package/docs/interfaces/DailyProposal.md +36 -0
  123. package/docs/interfaces/EnvioGraphQLClientConfig.md +9 -0
  124. package/docs/interfaces/JoinRequirementsInput.md +20 -0
  125. package/docs/interfaces/ProposalGlobalStats.md +29 -0
  126. package/docs/interfaces/TransactionProperties.md +20 -0
  127. package/docs/interfaces/UBIParams.md +29 -0
  128. package/docs/interfaces/UserState.md +22 -0
  129. package/docs/interfaces/VoteElement.md +22 -0
  130. package/docs/interfaces/configSmartRequirement.md +34 -0
  131. package/docs/interfaces/numericConditon.md +41 -0
  132. package/lib.commonjs/abis/ArguableVotingTournament.d.ts +12 -0
  133. package/lib.commonjs/abis/ArguableVotingTournament.d.ts.map +1 -1
  134. package/lib.commonjs/abis/ArguableVotingTournament.js +15 -0
  135. package/lib.commonjs/abis/ArguableVotingTournament.js.map +1 -1
  136. package/lib.commonjs/abis/MAODistribution.d.ts +12 -0
  137. package/lib.commonjs/abis/MAODistribution.d.ts.map +1 -1
  138. package/lib.commonjs/abis/MAODistribution.js +16 -0
  139. package/lib.commonjs/abis/MAODistribution.js.map +1 -1
  140. package/lib.commonjs/abis/MockShortStrings.d.ts +25 -0
  141. package/lib.commonjs/abis/MockShortStrings.d.ts.map +1 -0
  142. package/lib.commonjs/abis/MockShortStrings.js +37 -0
  143. package/lib.commonjs/abis/MockShortStrings.js.map +1 -0
  144. package/lib.commonjs/abis/Multipass.d.ts +5 -1
  145. package/lib.commonjs/abis/Multipass.d.ts.map +1 -1
  146. package/lib.commonjs/abis/Multipass.js +7 -1
  147. package/lib.commonjs/abis/Multipass.js.map +1 -1
  148. package/lib.commonjs/abis/PausableUpgradeable.d.ts +59 -0
  149. package/lib.commonjs/abis/PausableUpgradeable.d.ts.map +1 -0
  150. package/lib.commonjs/abis/PausableUpgradeable.js +79 -0
  151. package/lib.commonjs/abis/PausableUpgradeable.js.map +1 -0
  152. package/lib.commonjs/abis/RankToken.d.ts +30 -0
  153. package/lib.commonjs/abis/RankToken.d.ts.map +1 -1
  154. package/lib.commonjs/abis/RankToken.js +38 -0
  155. package/lib.commonjs/abis/RankToken.js.map +1 -1
  156. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts +2499 -1401
  157. package/lib.commonjs/abis/RankifyDiamondInstance.d.ts.map +1 -1
  158. package/lib.commonjs/abis/RankifyDiamondInstance.js +3275 -1863
  159. package/lib.commonjs/abis/RankifyDiamondInstance.js.map +1 -1
  160. package/lib.commonjs/abis/RankifyInstanceInit.d.ts +150 -0
  161. package/lib.commonjs/abis/RankifyInstanceInit.d.ts.map +1 -1
  162. package/lib.commonjs/abis/RankifyInstanceInit.js +190 -0
  163. package/lib.commonjs/abis/RankifyInstanceInit.js.map +1 -1
  164. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts +81 -56
  165. package/lib.commonjs/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  166. package/lib.commonjs/abis/RankifyInstanceMainFacet.js +99 -68
  167. package/lib.commonjs/abis/RankifyInstanceMainFacet.js.map +1 -1
  168. package/lib.commonjs/abis/RankifyOwnersFacet.d.ts +57 -0
  169. package/lib.commonjs/abis/RankifyOwnersFacet.d.ts.map +1 -0
  170. package/lib.commonjs/abis/RankifyOwnersFacet.js +78 -0
  171. package/lib.commonjs/abis/RankifyOwnersFacet.js.map +1 -0
  172. package/lib.commonjs/abis/ScoreGetterFacet.d.ts +145 -0
  173. package/lib.commonjs/abis/ScoreGetterFacet.d.ts.map +1 -0
  174. package/lib.commonjs/abis/ScoreGetterFacet.js +195 -0
  175. package/lib.commonjs/abis/ScoreGetterFacet.js.map +1 -0
  176. package/lib.commonjs/abis/UBI.d.ts +601 -0
  177. package/lib.commonjs/abis/UBI.d.ts.map +1 -0
  178. package/lib.commonjs/abis/UBI.js +775 -0
  179. package/lib.commonjs/abis/UBI.js.map +1 -0
  180. package/lib.commonjs/abis/index.d.ts +3746 -1533
  181. package/lib.commonjs/abis/index.d.ts.map +1 -1
  182. package/lib.commonjs/abis/index.js +21 -1
  183. package/lib.commonjs/abis/index.js.map +1 -1
  184. package/lib.commonjs/abis/superinterface.d.ts +1 -1
  185. package/lib.commonjs/abis/superinterface.d.ts.map +1 -1
  186. package/lib.commonjs/abis/superinterface.js +192 -7
  187. package/lib.commonjs/abis/superinterface.js.map +1 -1
  188. package/lib.commonjs/index.d.ts +2 -0
  189. package/lib.commonjs/index.d.ts.map +1 -1
  190. package/lib.commonjs/index.js +3 -1
  191. package/lib.commonjs/index.js.map +1 -1
  192. package/lib.commonjs/multipass/MultipassBase.d.ts +18 -4
  193. package/lib.commonjs/multipass/MultipassBase.d.ts.map +1 -1
  194. package/lib.commonjs/multipass/MultipassBase.js +39 -71
  195. package/lib.commonjs/multipass/MultipassBase.js.map +1 -1
  196. package/lib.commonjs/multipass/Owner.d.ts +22 -8
  197. package/lib.commonjs/multipass/Owner.d.ts.map +1 -1
  198. package/lib.commonjs/multipass/Owner.js +34 -16
  199. package/lib.commonjs/multipass/Owner.js.map +1 -1
  200. package/lib.commonjs/multipass/Registrar.d.ts +3 -1
  201. package/lib.commonjs/multipass/Registrar.d.ts.map +1 -1
  202. package/lib.commonjs/multipass/Registrar.js +2 -2
  203. package/lib.commonjs/multipass/Registrar.js.map +1 -1
  204. package/lib.commonjs/rankify/GameMaster.d.ts +5 -1
  205. package/lib.commonjs/rankify/GameMaster.d.ts.map +1 -1
  206. package/lib.commonjs/rankify/GameMaster.js +1 -1
  207. package/lib.commonjs/rankify/GameMaster.js.map +1 -1
  208. package/lib.commonjs/rankify/InstanceAdmininstrative.d.ts +34 -0
  209. package/lib.commonjs/rankify/InstanceAdmininstrative.d.ts.map +1 -0
  210. package/lib.commonjs/rankify/InstanceAdmininstrative.js +74 -0
  211. package/lib.commonjs/rankify/InstanceAdmininstrative.js.map +1 -0
  212. package/lib.commonjs/rankify/InstanceBase.d.ts +63 -2
  213. package/lib.commonjs/rankify/InstanceBase.d.ts.map +1 -1
  214. package/lib.commonjs/rankify/InstanceBase.js +168 -2
  215. package/lib.commonjs/rankify/InstanceBase.js.map +1 -1
  216. package/lib.commonjs/rankify/Player.d.ts +5 -35
  217. package/lib.commonjs/rankify/Player.d.ts.map +1 -1
  218. package/lib.commonjs/rankify/Player.js +45 -3
  219. package/lib.commonjs/rankify/Player.js.map +1 -1
  220. package/lib.commonjs/types.d.ts +33 -0
  221. package/lib.commonjs/types.d.ts.map +1 -1
  222. package/lib.commonjs/types.js +7 -1
  223. package/lib.commonjs/types.js.map +1 -1
  224. package/lib.commonjs/ubi/InstanceUBI.d.ts +548 -0
  225. package/lib.commonjs/ubi/InstanceUBI.d.ts.map +1 -0
  226. package/lib.commonjs/ubi/InstanceUBI.js +728 -0
  227. package/lib.commonjs/ubi/InstanceUBI.js.map +1 -0
  228. package/lib.commonjs/utils/EnvioGraphQLClient.d.ts +295 -0
  229. package/lib.commonjs/utils/EnvioGraphQLClient.d.ts.map +1 -1
  230. package/lib.commonjs/utils/EnvioGraphQLClient.js +527 -0
  231. package/lib.commonjs/utils/EnvioGraphQLClient.js.map +1 -1
  232. package/lib.commonjs/utils/artifacts.d.ts.map +1 -1
  233. package/lib.commonjs/utils/artifacts.js +23 -2
  234. package/lib.commonjs/utils/artifacts.js.map +1 -1
  235. package/lib.commonjs/utils/chainMapping.js +1 -1
  236. package/lib.commonjs/utils/chainMapping.js.map +1 -1
  237. package/lib.commonjs/utils/mockUtils.d.ts +3 -0
  238. package/lib.commonjs/utils/mockUtils.d.ts.map +1 -1
  239. package/lib.commonjs/utils/mockUtils.js +3 -0
  240. package/lib.commonjs/utils/mockUtils.js.map +1 -1
  241. package/lib.esm/abis/ArguableVotingTournament.d.ts +12 -0
  242. package/lib.esm/abis/ArguableVotingTournament.d.ts.map +1 -1
  243. package/lib.esm/abis/ArguableVotingTournament.js +15 -0
  244. package/lib.esm/abis/ArguableVotingTournament.js.map +1 -1
  245. package/lib.esm/abis/MAODistribution.d.ts +12 -0
  246. package/lib.esm/abis/MAODistribution.d.ts.map +1 -1
  247. package/lib.esm/abis/MAODistribution.js +16 -0
  248. package/lib.esm/abis/MAODistribution.js.map +1 -1
  249. package/lib.esm/abis/MockShortStrings.d.ts +25 -0
  250. package/lib.esm/abis/MockShortStrings.d.ts.map +1 -0
  251. package/lib.esm/abis/MockShortStrings.js +34 -0
  252. package/lib.esm/abis/MockShortStrings.js.map +1 -0
  253. package/lib.esm/abis/Multipass.d.ts +5 -1
  254. package/lib.esm/abis/Multipass.d.ts.map +1 -1
  255. package/lib.esm/abis/Multipass.js +7 -1
  256. package/lib.esm/abis/Multipass.js.map +1 -1
  257. package/lib.esm/abis/PausableUpgradeable.d.ts +59 -0
  258. package/lib.esm/abis/PausableUpgradeable.d.ts.map +1 -0
  259. package/lib.esm/abis/PausableUpgradeable.js +76 -0
  260. package/lib.esm/abis/PausableUpgradeable.js.map +1 -0
  261. package/lib.esm/abis/RankToken.d.ts +30 -0
  262. package/lib.esm/abis/RankToken.d.ts.map +1 -1
  263. package/lib.esm/abis/RankToken.js +38 -0
  264. package/lib.esm/abis/RankToken.js.map +1 -1
  265. package/lib.esm/abis/RankifyDiamondInstance.d.ts +2499 -1401
  266. package/lib.esm/abis/RankifyDiamondInstance.d.ts.map +1 -1
  267. package/lib.esm/abis/RankifyDiamondInstance.js +3275 -1863
  268. package/lib.esm/abis/RankifyDiamondInstance.js.map +1 -1
  269. package/lib.esm/abis/RankifyInstanceInit.d.ts +150 -0
  270. package/lib.esm/abis/RankifyInstanceInit.d.ts.map +1 -1
  271. package/lib.esm/abis/RankifyInstanceInit.js +190 -0
  272. package/lib.esm/abis/RankifyInstanceInit.js.map +1 -1
  273. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts +81 -56
  274. package/lib.esm/abis/RankifyInstanceMainFacet.d.ts.map +1 -1
  275. package/lib.esm/abis/RankifyInstanceMainFacet.js +99 -68
  276. package/lib.esm/abis/RankifyInstanceMainFacet.js.map +1 -1
  277. package/lib.esm/abis/RankifyOwnersFacet.d.ts +57 -0
  278. package/lib.esm/abis/RankifyOwnersFacet.d.ts.map +1 -0
  279. package/lib.esm/abis/RankifyOwnersFacet.js +75 -0
  280. package/lib.esm/abis/RankifyOwnersFacet.js.map +1 -0
  281. package/lib.esm/abis/ScoreGetterFacet.d.ts +145 -0
  282. package/lib.esm/abis/ScoreGetterFacet.d.ts.map +1 -0
  283. package/lib.esm/abis/ScoreGetterFacet.js +192 -0
  284. package/lib.esm/abis/ScoreGetterFacet.js.map +1 -0
  285. package/lib.esm/abis/UBI.d.ts +601 -0
  286. package/lib.esm/abis/UBI.d.ts.map +1 -0
  287. package/lib.esm/abis/UBI.js +772 -0
  288. package/lib.esm/abis/UBI.js.map +1 -0
  289. package/lib.esm/abis/index.d.ts +3746 -1533
  290. package/lib.esm/abis/index.d.ts.map +1 -1
  291. package/lib.esm/abis/index.js +15 -0
  292. package/lib.esm/abis/index.js.map +1 -1
  293. package/lib.esm/abis/superinterface.d.ts +1 -1
  294. package/lib.esm/abis/superinterface.d.ts.map +1 -1
  295. package/lib.esm/abis/superinterface.js +192 -7
  296. package/lib.esm/abis/superinterface.js.map +1 -1
  297. package/lib.esm/index.d.ts +2 -0
  298. package/lib.esm/index.d.ts.map +1 -1
  299. package/lib.esm/index.js +1 -0
  300. package/lib.esm/index.js.map +1 -1
  301. package/lib.esm/multipass/MultipassBase.d.ts +18 -4
  302. package/lib.esm/multipass/MultipassBase.d.ts.map +1 -1
  303. package/lib.esm/multipass/MultipassBase.js +40 -72
  304. package/lib.esm/multipass/MultipassBase.js.map +1 -1
  305. package/lib.esm/multipass/Owner.d.ts +22 -8
  306. package/lib.esm/multipass/Owner.d.ts.map +1 -1
  307. package/lib.esm/multipass/Owner.js +34 -16
  308. package/lib.esm/multipass/Owner.js.map +1 -1
  309. package/lib.esm/multipass/Registrar.d.ts +3 -1
  310. package/lib.esm/multipass/Registrar.d.ts.map +1 -1
  311. package/lib.esm/multipass/Registrar.js +2 -2
  312. package/lib.esm/multipass/Registrar.js.map +1 -1
  313. package/lib.esm/rankify/GameMaster.d.ts +5 -1
  314. package/lib.esm/rankify/GameMaster.d.ts.map +1 -1
  315. package/lib.esm/rankify/GameMaster.js +1 -1
  316. package/lib.esm/rankify/GameMaster.js.map +1 -1
  317. package/lib.esm/rankify/InstanceAdmininstrative.d.ts +34 -0
  318. package/lib.esm/rankify/InstanceAdmininstrative.d.ts.map +1 -0
  319. package/lib.esm/rankify/InstanceAdmininstrative.js +70 -0
  320. package/lib.esm/rankify/InstanceAdmininstrative.js.map +1 -0
  321. package/lib.esm/rankify/InstanceBase.d.ts +63 -2
  322. package/lib.esm/rankify/InstanceBase.d.ts.map +1 -1
  323. package/lib.esm/rankify/InstanceBase.js +168 -2
  324. package/lib.esm/rankify/InstanceBase.js.map +1 -1
  325. package/lib.esm/rankify/Player.d.ts +5 -35
  326. package/lib.esm/rankify/Player.d.ts.map +1 -1
  327. package/lib.esm/rankify/Player.js +45 -3
  328. package/lib.esm/rankify/Player.js.map +1 -1
  329. package/lib.esm/types.d.ts +33 -0
  330. package/lib.esm/types.d.ts.map +1 -1
  331. package/lib.esm/types.js +6 -0
  332. package/lib.esm/types.js.map +1 -1
  333. package/lib.esm/ubi/InstanceUBI.d.ts +548 -0
  334. package/lib.esm/ubi/InstanceUBI.d.ts.map +1 -0
  335. package/lib.esm/ubi/InstanceUBI.js +722 -0
  336. package/lib.esm/ubi/InstanceUBI.js.map +1 -0
  337. package/lib.esm/utils/EnvioGraphQLClient.d.ts +295 -0
  338. package/lib.esm/utils/EnvioGraphQLClient.d.ts.map +1 -1
  339. package/lib.esm/utils/EnvioGraphQLClient.js +527 -0
  340. package/lib.esm/utils/EnvioGraphQLClient.js.map +1 -1
  341. package/lib.esm/utils/artifacts.d.ts.map +1 -1
  342. package/lib.esm/utils/artifacts.js +23 -2
  343. package/lib.esm/utils/artifacts.js.map +1 -1
  344. package/lib.esm/utils/chainMapping.js +1 -1
  345. package/lib.esm/utils/chainMapping.js.map +1 -1
  346. package/lib.esm/utils/mockUtils.d.ts +3 -0
  347. package/lib.esm/utils/mockUtils.d.ts.map +1 -1
  348. package/lib.esm/utils/mockUtils.js +3 -0
  349. package/lib.esm/utils/mockUtils.js.map +1 -1
  350. package/package.json +7 -7
@@ -9,6 +9,8 @@ Provides core functionality for managing game state and interactions
9
9
 
10
10
  ↳ [`InstancePlayer`](InstancePlayer.md)
11
11
 
12
+ ↳ [`InstanceUBI`](InstanceUBI.md)
13
+
12
14
  ## Table of contents
13
15
 
14
16
  ### Constructors
@@ -42,6 +44,7 @@ Provides core functionality for managing game state and interactions
42
44
  - [getCurrentTurn](InstanceBase.md#getcurrentturn)
43
45
  - [getPlayers](InstanceBase.md#getplayers)
44
46
  - [getGameState](InstanceBase.md#getgamestate)
47
+ - [isWhitelistedGM](InstanceBase.md#iswhitelistedgm)
45
48
  - [getGameStateDetails](InstanceBase.md#getgamestatedetails)
46
49
  - [getGameStates](InstanceBase.md#getgamestates)
47
50
  - [getEIP712Domain](InstanceBase.md#geteip712domain)
@@ -51,6 +54,13 @@ Provides core functionality for managing game state and interactions
51
54
  - [isGameMetadata](InstanceBase.md#isgamemetadata)
52
55
  - [isPlayerInGame](InstanceBase.md#isplayeringame)
53
56
  - [getGameMetadata](InstanceBase.md#getgamemetadata)
57
+ - [getProposalGameScore](InstanceBase.md#getproposalgamescore)
58
+ - [getProposalTurnScore](InstanceBase.md#getproposalturnscore)
59
+ - [getProposalsTurnScores](InstanceBase.md#getproposalsturnscores)
60
+ - [proposalExistsInTurn](InstanceBase.md#proposalexistsinturn)
61
+ - [proposalExistsInGame](InstanceBase.md#proposalexistsingame)
62
+ - [proposalExists](InstanceBase.md#proposalexists)
63
+ - [getProposalTotalScore](InstanceBase.md#getproposaltotalscore)
54
64
 
55
65
  ## Constructors
56
66
 
@@ -320,13 +330,15 @@ ___
320
330
 
321
331
  ### getContractState
322
332
 
323
- ▸ **getContractState**(): `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `derivedToken`: \`0x$\{string}\` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon6`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
333
+ ▸ **getContractState**(): `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `derivedToken`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
324
334
 
325
335
  Retrieves the contract state.
326
336
 
327
337
  #### Returns
328
338
 
329
- `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `derivedToken`: \`0x$\{string}\` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon6`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
339
+ `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `derivedToken`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
340
+
341
+ InstanceState object (maintains backward compatibility)
330
342
 
331
343
  ___
332
344
 
@@ -350,7 +362,7 @@ ___
350
362
 
351
363
  ### getProposalScoresList
352
364
 
353
- ▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
365
+ ▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `chainId`: `number` = event.chainId; `contractAddress`: \`0x$\{string}\` }[]\>
354
366
 
355
367
  Retrieves the list of proposal scores for a specific game.
356
368
 
@@ -362,7 +374,7 @@ Retrieves the list of proposal scores for a specific game.
362
374
 
363
375
  #### Returns
364
376
 
365
- `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
377
+ `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `chainId`: `number` = event.chainId; `contractAddress`: \`0x$\{string}\` }[]\>
366
378
 
367
379
  A Promise that resolves to the list of proposal scores.
368
380
 
@@ -424,6 +436,22 @@ ___
424
436
 
425
437
  ___
426
438
 
439
+ ### isWhitelistedGM
440
+
441
+ ▸ **isWhitelistedGM**(`address`): `Promise`\<`boolean`\>
442
+
443
+ #### Parameters
444
+
445
+ | Name | Type |
446
+ | :------ | :------ |
447
+ | `address` | \`0x$\{string}\` |
448
+
449
+ #### Returns
450
+
451
+ `Promise`\<`boolean`\>
452
+
453
+ ___
454
+
427
455
  ### getGameStateDetails
428
456
 
429
457
  ▸ **getGameStateDetails**(`gameId`): `Promise`\<`GameState`\>
@@ -587,3 +615,150 @@ ___
587
615
  #### Returns
588
616
 
589
617
  `Promise`\<[`GameMetadata`](../interfaces/GameMetadata.md)\<[`FellowshipMetadata`](../index.md#fellowshipmetadata)\>\>
618
+
619
+ ___
620
+
621
+ ### getProposalGameScore
622
+
623
+ ▸ **getProposalGameScore**(`gameId`, `proposalHash`): `Promise`\<`bigint`\>
624
+
625
+ Get the score of a proposal in a specific game
626
+
627
+ #### Parameters
628
+
629
+ | Name | Type | Description |
630
+ | :------ | :------ | :------ |
631
+ | `gameId` | `bigint` | The ID of the game |
632
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
633
+
634
+ #### Returns
635
+
636
+ `Promise`\<`bigint`\>
637
+
638
+ The score of the proposal
639
+
640
+ ___
641
+
642
+ ### getProposalTurnScore
643
+
644
+ ▸ **getProposalTurnScore**(`gameId`, `turn`, `proposalHash`): `Promise`\<\{ `score`: `bigint` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
645
+
646
+ Get the score of a proposal in a specific turn
647
+
648
+ #### Parameters
649
+
650
+ | Name | Type | Description |
651
+ | :------ | :------ | :------ |
652
+ | `gameId` | `bigint` | The ID of the game |
653
+ | `turn` | `bigint` | The turn number |
654
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
655
+
656
+ #### Returns
657
+
658
+ `Promise`\<\{ `score`: `bigint` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
659
+
660
+ Object with score and proposedBy array
661
+
662
+ ___
663
+
664
+ ### getProposalsTurnScores
665
+
666
+ ▸ **getProposalsTurnScores**(`gameId`, `turn`): `Promise`\<\{ `proposalHashes`: readonly \`0x$\{string}\`[] ; `scores`: readonly `bigint`[] ; `proposedBy`: readonly readonly \`0x$\{string}\`[][] }\>
667
+
668
+ Get the scores of all proposals in a specific turn
669
+
670
+ #### Parameters
671
+
672
+ | Name | Type | Description |
673
+ | :------ | :------ | :------ |
674
+ | `gameId` | `bigint` | The ID of the game |
675
+ | `turn` | `bigint` | The turn number |
676
+
677
+ #### Returns
678
+
679
+ `Promise`\<\{ `proposalHashes`: readonly \`0x$\{string}\`[] ; `scores`: readonly `bigint`[] ; `proposedBy`: readonly readonly \`0x$\{string}\`[][] }\>
680
+
681
+ Object with proposalHashes, scores, and proposedBy arrays
682
+
683
+ ___
684
+
685
+ ### proposalExistsInTurn
686
+
687
+ ▸ **proposalExistsInTurn**(`gameId`, `turn`, `proposalHash`): `Promise`\<\{ `exists`: `boolean` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
688
+
689
+ Check if a proposal exists in a specific turn
690
+
691
+ #### Parameters
692
+
693
+ | Name | Type | Description |
694
+ | :------ | :------ | :------ |
695
+ | `gameId` | `bigint` | The ID of the game |
696
+ | `turn` | `bigint` | The turn number |
697
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
698
+
699
+ #### Returns
700
+
701
+ `Promise`\<\{ `exists`: `boolean` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
702
+
703
+ Object with exists boolean and proposedBy array
704
+
705
+ ___
706
+
707
+ ### proposalExistsInGame
708
+
709
+ ▸ **proposalExistsInGame**(`gameId`, `proposalHash`): `Promise`\<`boolean`\>
710
+
711
+ Check if a proposal exists in a specific game
712
+
713
+ #### Parameters
714
+
715
+ | Name | Type | Description |
716
+ | :------ | :------ | :------ |
717
+ | `gameId` | `bigint` | The ID of the game |
718
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
719
+
720
+ #### Returns
721
+
722
+ `Promise`\<`boolean`\>
723
+
724
+ Boolean indicating if the proposal exists
725
+
726
+ ___
727
+
728
+ ### proposalExists
729
+
730
+ ▸ **proposalExists**(`proposalHash`): `Promise`\<`boolean`\>
731
+
732
+ Check if a proposal exists in the instance
733
+
734
+ #### Parameters
735
+
736
+ | Name | Type | Description |
737
+ | :------ | :------ | :------ |
738
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
739
+
740
+ #### Returns
741
+
742
+ `Promise`\<`boolean`\>
743
+
744
+ Boolean indicating if the proposal exists
745
+
746
+ ___
747
+
748
+ ### getProposalTotalScore
749
+
750
+ ▸ **getProposalTotalScore**(`proposalHash`): `Promise`\<`bigint`\>
751
+
752
+ Get the total aggregated score of a proposal across all games
753
+
754
+ #### Parameters
755
+
756
+ | Name | Type | Description |
757
+ | :------ | :------ | :------ |
758
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
759
+
760
+ #### Returns
761
+
762
+ `Promise`\<`bigint`\>
763
+
764
+ The total score of the proposal
@@ -44,6 +44,7 @@ Provides core functionality for managing game state and interactions
44
44
  - [getCurrentTurn](InstancePlayer.md#getcurrentturn)
45
45
  - [getPlayers](InstancePlayer.md#getplayers)
46
46
  - [getGameState](InstancePlayer.md#getgamestate)
47
+ - [isWhitelistedGM](InstancePlayer.md#iswhitelistedgm)
47
48
  - [getGameStateDetails](InstancePlayer.md#getgamestatedetails)
48
49
  - [getGameStates](InstancePlayer.md#getgamestates)
49
50
  - [getEIP712Domain](InstancePlayer.md#geteip712domain)
@@ -53,6 +54,13 @@ Provides core functionality for managing game state and interactions
53
54
  - [isGameMetadata](InstancePlayer.md#isgamemetadata)
54
55
  - [isPlayerInGame](InstancePlayer.md#isplayeringame)
55
56
  - [getGameMetadata](InstancePlayer.md#getgamemetadata)
57
+ - [getProposalGameScore](InstancePlayer.md#getproposalgamescore)
58
+ - [getProposalTurnScore](InstancePlayer.md#getproposalturnscore)
59
+ - [getProposalsTurnScores](InstancePlayer.md#getproposalsturnscores)
60
+ - [proposalExistsInTurn](InstancePlayer.md#proposalexistsinturn)
61
+ - [proposalExistsInGame](InstancePlayer.md#proposalexistsingame)
62
+ - [proposalExists](InstancePlayer.md#proposalexists)
63
+ - [getProposalTotalScore](InstancePlayer.md#getproposaltotalscore)
56
64
  - [approveTokensIfNeeded](InstancePlayer.md#approvetokensifneeded)
57
65
  - [createGame](InstancePlayer.md#creategame)
58
66
  - [createAndOpenGame](InstancePlayer.md#createandopengame)
@@ -413,13 +421,15 @@ ___
413
421
 
414
422
  ### getContractState
415
423
 
416
- ▸ **getContractState**(): `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `derivedToken`: \`0x$\{string}\` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon6`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
424
+ ▸ **getContractState**(): `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `derivedToken`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
417
425
 
418
426
  Retrieves the contract state.
419
427
 
420
428
  #### Returns
421
429
 
422
- `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `derivedToken`: \`0x$\{string}\` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon6`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
430
+ `Promise`\<\{ `numGames`: `bigint` ; `contractInitialized`: `boolean` ; `commonParams`: \{ `principalCost`: `bigint` ; `principalTimeConstant`: `bigint` ; `gamePaymentToken`: \`0x$\{string}\` ; `rankTokenAddress`: \`0x$\{string}\` ; `beneficiary`: \`0x$\{string}\` ; `derivedToken`: \`0x$\{string}\` ; `minimumParticipantsInCircle`: `bigint` ; `proposalIntegrityVerifier`: \`0x$\{string}\` ; `poseidon5`: \`0x$\{string}\` ; `poseidon2`: \`0x$\{string}\` } }\>
431
+
432
+ InstanceState object (maintains backward compatibility)
423
433
 
424
434
  #### Inherited from
425
435
 
@@ -451,7 +461,7 @@ ___
451
461
 
452
462
  ### getProposalScoresList
453
463
 
454
- ▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
464
+ ▸ **getProposalScoresList**(`gameId`): `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `chainId`: `number` = event.chainId; `contractAddress`: \`0x$\{string}\` }[]\>
455
465
 
456
466
  Retrieves the list of proposal scores for a specific game.
457
467
 
@@ -463,7 +473,7 @@ Retrieves the list of proposal scores for a specific game.
463
473
 
464
474
  #### Returns
465
475
 
466
- `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `contractAddress`: \`0x$\{string}\` }[]\>
476
+ `Promise`\<\{ `id`: `string` ; `proposalHash`: `string` ; `proposal`: `string` ; `blockTimestamp`: `string` ; `srcAddress`: `string` ; `gameId`: `bigint` ; `turn`: `bigint` ; `roundNumber`: `bigint` ; `score`: `bigint` ; `blockNumber`: `bigint` ; `chainId`: `number` = event.chainId; `contractAddress`: \`0x$\{string}\` }[]\>
467
477
 
468
478
  A Promise that resolves to the list of proposal scores.
469
479
 
@@ -541,6 +551,26 @@ ___
541
551
 
542
552
  ___
543
553
 
554
+ ### isWhitelistedGM
555
+
556
+ ▸ **isWhitelistedGM**(`address`): `Promise`\<`boolean`\>
557
+
558
+ #### Parameters
559
+
560
+ | Name | Type |
561
+ | :------ | :------ |
562
+ | `address` | \`0x$\{string}\` |
563
+
564
+ #### Returns
565
+
566
+ `Promise`\<`boolean`\>
567
+
568
+ #### Inherited from
569
+
570
+ [InstanceBase](InstanceBase.md).[isWhitelistedGM](InstanceBase.md#iswhitelistedgm)
571
+
572
+ ___
573
+
544
574
  ### getGameStateDetails
545
575
 
546
576
  ▸ **getGameStateDetails**(`gameId`): `Promise`\<`GameState`\>
@@ -743,6 +773,181 @@ ___
743
773
 
744
774
  ___
745
775
 
776
+ ### getProposalGameScore
777
+
778
+ ▸ **getProposalGameScore**(`gameId`, `proposalHash`): `Promise`\<`bigint`\>
779
+
780
+ Get the score of a proposal in a specific game
781
+
782
+ #### Parameters
783
+
784
+ | Name | Type | Description |
785
+ | :------ | :------ | :------ |
786
+ | `gameId` | `bigint` | The ID of the game |
787
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
788
+
789
+ #### Returns
790
+
791
+ `Promise`\<`bigint`\>
792
+
793
+ The score of the proposal
794
+
795
+ #### Inherited from
796
+
797
+ [InstanceBase](InstanceBase.md).[getProposalGameScore](InstanceBase.md#getproposalgamescore)
798
+
799
+ ___
800
+
801
+ ### getProposalTurnScore
802
+
803
+ ▸ **getProposalTurnScore**(`gameId`, `turn`, `proposalHash`): `Promise`\<\{ `score`: `bigint` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
804
+
805
+ Get the score of a proposal in a specific turn
806
+
807
+ #### Parameters
808
+
809
+ | Name | Type | Description |
810
+ | :------ | :------ | :------ |
811
+ | `gameId` | `bigint` | The ID of the game |
812
+ | `turn` | `bigint` | The turn number |
813
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
814
+
815
+ #### Returns
816
+
817
+ `Promise`\<\{ `score`: `bigint` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
818
+
819
+ Object with score and proposedBy array
820
+
821
+ #### Inherited from
822
+
823
+ [InstanceBase](InstanceBase.md).[getProposalTurnScore](InstanceBase.md#getproposalturnscore)
824
+
825
+ ___
826
+
827
+ ### getProposalsTurnScores
828
+
829
+ ▸ **getProposalsTurnScores**(`gameId`, `turn`): `Promise`\<\{ `proposalHashes`: readonly \`0x$\{string}\`[] ; `scores`: readonly `bigint`[] ; `proposedBy`: readonly readonly \`0x$\{string}\`[][] }\>
830
+
831
+ Get the scores of all proposals in a specific turn
832
+
833
+ #### Parameters
834
+
835
+ | Name | Type | Description |
836
+ | :------ | :------ | :------ |
837
+ | `gameId` | `bigint` | The ID of the game |
838
+ | `turn` | `bigint` | The turn number |
839
+
840
+ #### Returns
841
+
842
+ `Promise`\<\{ `proposalHashes`: readonly \`0x$\{string}\`[] ; `scores`: readonly `bigint`[] ; `proposedBy`: readonly readonly \`0x$\{string}\`[][] }\>
843
+
844
+ Object with proposalHashes, scores, and proposedBy arrays
845
+
846
+ #### Inherited from
847
+
848
+ [InstanceBase](InstanceBase.md).[getProposalsTurnScores](InstanceBase.md#getproposalsturnscores)
849
+
850
+ ___
851
+
852
+ ### proposalExistsInTurn
853
+
854
+ ▸ **proposalExistsInTurn**(`gameId`, `turn`, `proposalHash`): `Promise`\<\{ `exists`: `boolean` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
855
+
856
+ Check if a proposal exists in a specific turn
857
+
858
+ #### Parameters
859
+
860
+ | Name | Type | Description |
861
+ | :------ | :------ | :------ |
862
+ | `gameId` | `bigint` | The ID of the game |
863
+ | `turn` | `bigint` | The turn number |
864
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
865
+
866
+ #### Returns
867
+
868
+ `Promise`\<\{ `exists`: `boolean` ; `proposedBy`: readonly \`0x$\{string}\`[] }\>
869
+
870
+ Object with exists boolean and proposedBy array
871
+
872
+ #### Inherited from
873
+
874
+ [InstanceBase](InstanceBase.md).[proposalExistsInTurn](InstanceBase.md#proposalexistsinturn)
875
+
876
+ ___
877
+
878
+ ### proposalExistsInGame
879
+
880
+ ▸ **proposalExistsInGame**(`gameId`, `proposalHash`): `Promise`\<`boolean`\>
881
+
882
+ Check if a proposal exists in a specific game
883
+
884
+ #### Parameters
885
+
886
+ | Name | Type | Description |
887
+ | :------ | :------ | :------ |
888
+ | `gameId` | `bigint` | The ID of the game |
889
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
890
+
891
+ #### Returns
892
+
893
+ `Promise`\<`boolean`\>
894
+
895
+ Boolean indicating if the proposal exists
896
+
897
+ #### Inherited from
898
+
899
+ [InstanceBase](InstanceBase.md).[proposalExistsInGame](InstanceBase.md#proposalexistsingame)
900
+
901
+ ___
902
+
903
+ ### proposalExists
904
+
905
+ ▸ **proposalExists**(`proposalHash`): `Promise`\<`boolean`\>
906
+
907
+ Check if a proposal exists in the instance
908
+
909
+ #### Parameters
910
+
911
+ | Name | Type | Description |
912
+ | :------ | :------ | :------ |
913
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
914
+
915
+ #### Returns
916
+
917
+ `Promise`\<`boolean`\>
918
+
919
+ Boolean indicating if the proposal exists
920
+
921
+ #### Inherited from
922
+
923
+ [InstanceBase](InstanceBase.md).[proposalExists](InstanceBase.md#proposalexists)
924
+
925
+ ___
926
+
927
+ ### getProposalTotalScore
928
+
929
+ ▸ **getProposalTotalScore**(`proposalHash`): `Promise`\<`bigint`\>
930
+
931
+ Get the total aggregated score of a proposal across all games
932
+
933
+ #### Parameters
934
+
935
+ | Name | Type | Description |
936
+ | :------ | :------ | :------ |
937
+ | `proposalHash` | \`0x$\{string}\` | The hash of the proposal |
938
+
939
+ #### Returns
940
+
941
+ `Promise`\<`bigint`\>
942
+
943
+ The total score of the proposal
944
+
945
+ #### Inherited from
946
+
947
+ [InstanceBase](InstanceBase.md).[getProposalTotalScore](InstanceBase.md#getproposaltotalscore)
948
+
949
+ ___
950
+
746
951
  ### approveTokensIfNeeded
747
952
 
748
953
  ▸ **approveTokensIfNeeded**(`value`, `overrideArtifact?`): `Promise`\<`void`\>
@@ -810,7 +1015,7 @@ ___
810
1015
 
811
1016
  ### createAndOpenGame
812
1017
 
813
- ▸ **createAndOpenGame**(`params`, `requirements`): `Promise`\<`bigint`\>
1018
+ ▸ **createAndOpenGame**(`params`, `requirements`, `overrideArtifact?`): `Promise`\<`bigint`\>
814
1019
 
815
1020
  Create and open a game in one transaction
816
1021
 
@@ -831,14 +1036,10 @@ Create and open a game in one transaction
831
1036
  | `params.timeToJoin` | `bigint` | - |
832
1037
  | `params.votePhaseDuration` | `bigint` | - |
833
1038
  | `params.proposingPhaseDuration` | `bigint` | - |
834
- | `requirements` | `Object` | Game requirements |
835
- | `requirements.ethValues` | `Object` | - |
836
- | `requirements.ethValues.have` | `bigint` | - |
837
- | `requirements.ethValues.lock` | `bigint` | - |
838
- | `requirements.ethValues.burn` | `bigint` | - |
839
- | `requirements.ethValues.pay` | `bigint` | - |
840
- | `requirements.ethValues.bet` | `bigint` | - |
841
- | `requirements.contracts` | readonly \{ `contractAddress`: \`0x$\{string}\` ; `contractId`: `bigint` ; `contractType`: `number` ; `contractRequirement`: \{ `have`: \{ `data`: \`0x$\{string}\` ; `amount`: `bigint` } ; `lock`: \{ `data`: \`0x$\{string}\` ; `amount`: `bigint` } ; `burn`: \{ `data`: \`0x$\{string}\` ; `amount`: `bigint` } ; `pay`: \{ `data`: \`0x$\{string}\` ; `amount`: `bigint` } ; `bet`: \{ `data`: \`0x$\{string}\` ; `amount`: `bigint` } } }[] | - |
1039
+ | `requirements` | [`JoinRequirementsInput`](../interfaces/JoinRequirementsInput.md) | Game requirements |
1040
+ | `overrideArtifact?` | `Object` | Optional override artifact for token approval on unsupported chains |
1041
+ | `overrideArtifact.address` | \`0x$\{string}\` | - |
1042
+ | `overrideArtifact.pathOverride` | `string` | - |
842
1043
 
843
1044
  #### Returns
844
1045