@maci-protocol/contracts 0.0.0-ci.fdde0de → 0.0.0-ci.ffb9e52

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 (177) hide show
  1. package/build/artifacts/@excubiae/contracts/contracts/checker/BaseChecker.sol/BaseChecker.dbg.json +1 -1
  2. package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarChecker.sol/AnonAadhaarChecker.dbg.json +1 -1
  3. package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarCheckerFactory.sol/AnonAadhaarCheckerFactory.dbg.json +1 -1
  4. package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarPolicy.sol/AnonAadhaarPolicy.dbg.json +1 -1
  5. package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarPolicyFactory.sol/AnonAadhaarPolicyFactory.dbg.json +1 -1
  6. package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/IAnonAadhaar.sol/IAnonAadhaar.dbg.json +1 -1
  7. package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASChecker.sol/EASChecker.dbg.json +1 -1
  8. package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASCheckerFactory.sol/EASCheckerFactory.dbg.json +1 -1
  9. package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASPolicy.sol/EASPolicy.dbg.json +1 -1
  10. package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASPolicyFactory.sol/EASPolicyFactory.dbg.json +1 -1
  11. package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/IEAS.sol/IEAS.dbg.json +1 -1
  12. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20/ERC20Checker.sol/ERC20Checker.dbg.json +1 -1
  13. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20/ERC20CheckerFactory.sol/ERC20CheckerFactory.dbg.json +1 -1
  14. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20/ERC20Policy.sol/ERC20Policy.dbg.json +1 -1
  15. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20/ERC20PolicyFactory.sol/ERC20PolicyFactory.dbg.json +1 -1
  16. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20votes/ERC20VotesChecker.sol/ERC20VotesChecker.dbg.json +1 -1
  17. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20votes/ERC20VotesCheckerFactory.sol/ERC20VotesCheckerFactory.dbg.json +1 -1
  18. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20votes/ERC20VotesPolicy.sol/ERC20VotesPolicy.dbg.json +1 -1
  19. package/build/artifacts/@excubiae/contracts/contracts/extensions/erc20votes/ERC20VotesPolicyFactory.sol/ERC20VotesPolicyFactory.dbg.json +1 -1
  20. package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllChecker.sol/FreeForAllChecker.dbg.json +1 -1
  21. package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllCheckerFactory.sol/FreeForAllCheckerFactory.dbg.json +1 -1
  22. package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllPolicy.sol/FreeForAllPolicy.dbg.json +1 -1
  23. package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllPolicyFactory.sol/FreeForAllPolicyFactory.dbg.json +1 -1
  24. package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportChecker.sol/GitcoinPassportChecker.dbg.json +1 -1
  25. package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportCheckerFactory.sol/GitcoinPassportCheckerFactory.dbg.json +1 -1
  26. package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportPolicy.sol/GitcoinPassportPolicy.dbg.json +1 -1
  27. package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportPolicyFactory.sol/GitcoinPassportPolicyFactory.dbg.json +1 -1
  28. package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/IGitcoinPassportDecoder.sol/IGitcoinPassportDecoder.dbg.json +1 -1
  29. package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsChecker.sol/HatsChecker.dbg.json +1 -1
  30. package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsCheckerFactory.sol/HatsCheckerFactory.dbg.json +1 -1
  31. package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsPolicy.sol/HatsPolicy.dbg.json +1 -1
  32. package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsPolicyFactory.sol/HatsPolicyFactory.dbg.json +1 -1
  33. package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/IHats.sol/IHats.dbg.json +1 -1
  34. package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofChecker.sol/MerkleProofChecker.dbg.json +1 -1
  35. package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofCheckerFactory.sol/MerkleProofCheckerFactory.dbg.json +1 -1
  36. package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofPolicy.sol/MerkleProofPolicy.dbg.json +1 -1
  37. package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofPolicyFactory.sol/MerkleProofPolicyFactory.dbg.json +1 -1
  38. package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/ISemaphore.sol/ISemaphore.dbg.json +1 -1
  39. package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphoreChecker.sol/SemaphoreChecker.dbg.json +1 -1
  40. package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphoreCheckerFactory.sol/SemaphoreCheckerFactory.dbg.json +1 -1
  41. package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphorePolicy.sol/SemaphorePolicy.dbg.json +1 -1
  42. package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphorePolicyFactory.sol/SemaphorePolicyFactory.dbg.json +1 -1
  43. package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenChecker.sol/TokenChecker.dbg.json +1 -1
  44. package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenCheckerFactory.sol/TokenCheckerFactory.dbg.json +1 -1
  45. package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenPolicy.sol/TokenPolicy.dbg.json +1 -1
  46. package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenPolicyFactory.sol/TokenPolicyFactory.dbg.json +1 -1
  47. package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassChecker.sol/ZupassChecker.dbg.json +1 -1
  48. package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassCheckerFactory.sol/ZupassCheckerFactory.dbg.json +1 -1
  49. package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassGroth16Verifier.sol/ZupassGroth16Verifier.dbg.json +1 -1
  50. package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy.sol/ZupassPolicy.dbg.json +1 -1
  51. package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicyFactory.sol/ZupassPolicyFactory.dbg.json +1 -1
  52. package/build/artifacts/@excubiae/contracts/contracts/interfaces/IBaseChecker.sol/IBaseChecker.dbg.json +1 -1
  53. package/build/artifacts/@excubiae/contracts/contracts/interfaces/IBasePolicy.sol/IBasePolicy.dbg.json +1 -1
  54. package/build/artifacts/@excubiae/contracts/contracts/interfaces/IClone.sol/IClone.dbg.json +1 -1
  55. package/build/artifacts/@excubiae/contracts/contracts/interfaces/IFactory.sol/IFactory.dbg.json +1 -1
  56. package/build/artifacts/@excubiae/contracts/contracts/interfaces/IPolicy.sol/IPolicy.dbg.json +1 -1
  57. package/build/artifacts/@excubiae/contracts/contracts/policy/BasePolicy.sol/BasePolicy.dbg.json +1 -1
  58. package/build/artifacts/@excubiae/contracts/contracts/policy/Policy.sol/Policy.dbg.json +1 -1
  59. package/build/artifacts/@excubiae/contracts/contracts/proxy/Clone.sol/Clone.dbg.json +1 -1
  60. package/build/artifacts/@excubiae/contracts/contracts/proxy/Factory.sol/Factory.dbg.json +1 -1
  61. package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockAnonAadhaar.sol/MockAnonAadhaar.dbg.json +1 -1
  62. package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockEAS.sol/MockEAS.dbg.json +1 -1
  63. package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockGitcoinPassportDecoder.sol/MockGitcoinPassportDecoder.dbg.json +1 -1
  64. package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol.sol/MockHatsProtocol.dbg.json +1 -1
  65. package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockToken.sol/MockToken.dbg.json +1 -1
  66. package/build/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
  67. package/build/artifacts/@openzeppelin/contracts/governance/utils/IVotes.sol/IVotes.dbg.json +1 -1
  68. package/build/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.dbg.json +1 -1
  69. package/build/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.dbg.json +1 -1
  70. package/build/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.dbg.json +1 -1
  71. package/build/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  72. package/build/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  73. package/build/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  74. package/build/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.dbg.json +1 -1
  75. package/build/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.dbg.json +1 -1
  76. package/build/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.dbg.json +1 -1
  77. package/build/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.dbg.json +1 -1
  78. package/build/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.dbg.json +1 -1
  79. package/build/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  80. package/build/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.dbg.json +1 -1
  81. package/build/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
  82. package/build/artifacts/@openzeppelin/contracts/utils/cryptography/Hashes.sol/Hashes.dbg.json +1 -1
  83. package/build/artifacts/@openzeppelin/contracts/utils/cryptography/MerkleProof.sol/MerkleProof.dbg.json +1 -1
  84. package/build/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +1 -1
  85. package/build/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +1 -1
  86. package/build/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +1 -1
  87. package/build/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
  88. package/build/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
  89. package/build/artifacts/build-info/{7186b3e55c44d2bb2951e13e1bdc91fc.json → 6371f9711b736db1530606bc0a6a869d.json} +1 -1
  90. package/build/artifacts/contracts/MACI.sol/MACI.dbg.json +1 -1
  91. package/build/artifacts/contracts/MessageProcessor.sol/MessageProcessor.dbg.json +1 -1
  92. package/build/artifacts/contracts/MessageProcessorFactory.sol/MessageProcessorFactory.dbg.json +1 -1
  93. package/build/artifacts/contracts/Poll.sol/Poll.dbg.json +1 -1
  94. package/build/artifacts/contracts/PollFactory.sol/PollFactory.dbg.json +1 -1
  95. package/build/artifacts/contracts/Tally.sol/Tally.dbg.json +1 -1
  96. package/build/artifacts/contracts/Tally.sol/Tally.json +41 -34
  97. package/build/artifacts/contracts/TallyFactory.sol/TallyFactory.dbg.json +1 -1
  98. package/build/artifacts/contracts/TallyFactory.sol/TallyFactory.json +6 -6
  99. package/build/artifacts/contracts/VerifyingKeysRegistry.sol/VerifyingKeysRegistry.dbg.json +1 -1
  100. package/build/artifacts/contracts/crypto/BabyJubJub.sol/CurveBabyJubJub.dbg.json +1 -1
  101. package/build/artifacts/contracts/crypto/Hasher.sol/Hasher.dbg.json +1 -1
  102. package/build/artifacts/contracts/crypto/Pairing.sol/Pairing.dbg.json +1 -1
  103. package/build/artifacts/contracts/crypto/PoseidonT3.sol/PoseidonT3.dbg.json +1 -1
  104. package/build/artifacts/contracts/crypto/PoseidonT4.sol/PoseidonT4.dbg.json +1 -1
  105. package/build/artifacts/contracts/crypto/PoseidonT5.sol/PoseidonT5.dbg.json +1 -1
  106. package/build/artifacts/contracts/crypto/PoseidonT6.sol/PoseidonT6.dbg.json +1 -1
  107. package/build/artifacts/contracts/crypto/SnarkCommon.sol/SnarkCommon.dbg.json +1 -1
  108. package/build/artifacts/contracts/crypto/SnarkConstants.sol/SnarkConstants.dbg.json +1 -1
  109. package/build/artifacts/contracts/crypto/Verifier.sol/Verifier.dbg.json +1 -1
  110. package/build/artifacts/contracts/initialVoiceCreditProxy/ConstantInitialVoiceCreditProxy.sol/ConstantInitialVoiceCreditProxy.dbg.json +1 -1
  111. package/build/artifacts/contracts/initialVoiceCreditProxy/ConstantInitialVoiceCreditProxyFactory.sol/ConstantInitialVoiceCreditProxyFactory.dbg.json +1 -1
  112. package/build/artifacts/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxy.sol/ERC20VotesInitialVoiceCreditProxy.dbg.json +1 -1
  113. package/build/artifacts/contracts/initialVoiceCreditProxy/ERC20VotesInitialVoiceCreditProxyFactory.sol/ERC20VotesInitialVoiceCreditProxyFactory.dbg.json +1 -1
  114. package/build/artifacts/contracts/interfaces/IInitialVoiceCreditProxy.sol/IInitialVoiceCreditProxy.dbg.json +1 -1
  115. package/build/artifacts/contracts/interfaces/IMACI.sol/IMACI.dbg.json +1 -1
  116. package/build/artifacts/contracts/interfaces/IMessageProcessor.sol/IMessageProcessor.dbg.json +1 -1
  117. package/build/artifacts/contracts/interfaces/IMessageProcessorFactory.sol/IMessageProcessorFactory.dbg.json +1 -1
  118. package/build/artifacts/contracts/interfaces/IPoll.sol/IPoll.dbg.json +1 -1
  119. package/build/artifacts/contracts/interfaces/IPollFactory.sol/IPollFactory.dbg.json +1 -1
  120. package/build/artifacts/contracts/interfaces/ISemaphore.sol/ISemaphore.dbg.json +1 -1
  121. package/build/artifacts/contracts/interfaces/ITally.sol/ITally.dbg.json +1 -1
  122. package/build/artifacts/contracts/interfaces/ITally.sol/ITally.json +298 -2
  123. package/build/artifacts/contracts/interfaces/ITallyFactory.sol/ITallyFactory.dbg.json +1 -1
  124. package/build/artifacts/contracts/interfaces/IVerifier.sol/IVerifier.dbg.json +1 -1
  125. package/build/artifacts/contracts/interfaces/IVerifyingKeysRegistry.sol/IVerifyingKeysRegistry.dbg.json +1 -1
  126. package/build/artifacts/contracts/mocks/MockERC20.sol/MockERC20.dbg.json +1 -1
  127. package/build/artifacts/contracts/mocks/MockERC20Votes.sol/MockERC20Votes.dbg.json +1 -1
  128. package/build/artifacts/contracts/mocks/MockSemaphore.sol/MockSemaphore.dbg.json +1 -1
  129. package/build/artifacts/contracts/mocks/MockVerifier.sol/MockVerifier.dbg.json +1 -1
  130. package/build/artifacts/contracts/mocks/Mocker.sol/Mocker.dbg.json +1 -1
  131. package/build/artifacts/contracts/trees/LazyIMT.sol/InternalLazyIMT.dbg.json +1 -1
  132. package/build/artifacts/contracts/trees/LeanIMT.sol/InternalLeanIMT.dbg.json +1 -1
  133. package/build/artifacts/contracts/utilities/DomainObjs.sol/DomainObjs.dbg.json +1 -1
  134. package/build/artifacts/contracts/utilities/Params.sol/Params.dbg.json +1 -1
  135. package/build/artifacts/contracts/utilities/Utilities.sol/Utilities.dbg.json +1 -1
  136. package/build/artifacts/solady/src/utils/LibClone.sol/LibClone.dbg.json +1 -1
  137. package/build/tsconfig.build.tsbuildinfo +1 -1
  138. package/build/typechain-types/contracts/Tally.d.ts +21 -19
  139. package/build/typechain-types/contracts/Tally.d.ts.map +1 -1
  140. package/build/typechain-types/contracts/interfaces/ITally.d.ts +171 -1
  141. package/build/typechain-types/contracts/interfaces/ITally.d.ts.map +1 -1
  142. package/build/typechain-types/contracts/mocks/index.d.ts +0 -1
  143. package/build/typechain-types/contracts/mocks/index.d.ts.map +1 -1
  144. package/build/typechain-types/factories/contracts/TallyFactory__factory.d.ts +1 -1
  145. package/build/typechain-types/factories/contracts/TallyFactory__factory.d.ts.map +1 -1
  146. package/build/typechain-types/factories/contracts/TallyFactory__factory.js +1 -1
  147. package/build/typechain-types/factories/contracts/TallyFactory__factory.js.map +1 -1
  148. package/build/typechain-types/factories/contracts/Tally__factory.d.ts +24 -19
  149. package/build/typechain-types/factories/contracts/Tally__factory.d.ts.map +1 -1
  150. package/build/typechain-types/factories/contracts/Tally__factory.js +32 -25
  151. package/build/typechain-types/factories/contracts/Tally__factory.js.map +1 -1
  152. package/build/typechain-types/factories/contracts/interfaces/ITally__factory.d.ts +230 -2
  153. package/build/typechain-types/factories/contracts/interfaces/ITally__factory.d.ts.map +1 -1
  154. package/build/typechain-types/factories/contracts/interfaces/ITally__factory.js +298 -2
  155. package/build/typechain-types/factories/contracts/interfaces/ITally__factory.js.map +1 -1
  156. package/build/typechain-types/factories/contracts/mocks/index.d.ts +0 -1
  157. package/build/typechain-types/factories/contracts/mocks/index.d.ts.map +1 -1
  158. package/build/typechain-types/factories/contracts/mocks/index.js +1 -3
  159. package/build/typechain-types/factories/contracts/mocks/index.js.map +1 -1
  160. package/build/typechain-types/index.d.ts +0 -2
  161. package/build/typechain-types/index.d.ts.map +1 -1
  162. package/build/typechain-types/index.js +1 -3
  163. package/build/typechain-types/index.js.map +1 -1
  164. package/contracts/Tally.sol +15 -52
  165. package/contracts/interfaces/ITally.sol +93 -3
  166. package/package.json +6 -6
  167. package/build/artifacts/contracts/mocks/MockTally.sol/MockTally.dbg.json +0 -4
  168. package/build/artifacts/contracts/mocks/MockTally.sol/MockTally.json +0 -114
  169. package/build/typechain-types/contracts/mocks/MockTally.d.ts +0 -80
  170. package/build/typechain-types/contracts/mocks/MockTally.d.ts.map +0 -1
  171. package/build/typechain-types/contracts/mocks/MockTally.js +0 -3
  172. package/build/typechain-types/contracts/mocks/MockTally.js.map +0 -1
  173. package/build/typechain-types/factories/contracts/mocks/MockTally__factory.d.ts +0 -103
  174. package/build/typechain-types/factories/contracts/mocks/MockTally__factory.d.ts.map +0 -1
  175. package/build/typechain-types/factories/contracts/mocks/MockTally__factory.js +0 -143
  176. package/build/typechain-types/factories/contracts/mocks/MockTally__factory.js.map +0 -1
  177. package/contracts/mocks/MockTally.sol +0 -37
@@ -1,103 +0,0 @@
1
- import { ContractFactory, ContractTransactionResponse } from "ethers";
2
- import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
3
- import type { NonPayableOverrides } from "../../../common";
4
- import type { MockTally, MockTallyInterface } from "../../../contracts/mocks/MockTally";
5
- type MockTallyConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
- export declare class MockTally__factory extends ContractFactory {
7
- constructor(...args: MockTallyConstructorParams);
8
- getDeployTransaction(overrides?: NonPayableOverrides & {
9
- from?: string;
10
- }): Promise<ContractDeployTransaction>;
11
- deploy(overrides?: NonPayableOverrides & {
12
- from?: string;
13
- }): Promise<MockTally & {
14
- deploymentTransaction(): ContractTransactionResponse;
15
- }>;
16
- connect(runner: ContractRunner | null): MockTally__factory;
17
- static readonly bytecode = "0x60806040526000805460ff19166001179055348015601c57600080fd5b506101fc8061002c6000396000f3fe608060405234801561001057600080fd5b506004361061004b5760003560e01c80626abc8f1461005057806310bc5f511461008457806358dd748f146100a0578063990c8f79146100b9575b600080fd5b61007061005e3660046100dc565b60005460ff1698975050505050505050565b604051901515815260200160405180910390f35b610070610092366004610194565b60005460ff16949350505050565b6100b76000805460ff19811660ff90911615179055565b005b6000546100709060ff1681565b803560ff811681146100d757600080fd5b919050565b60008060008060008060008060e0898b0312156100f857600080fd5b8835975060208901359650604089013567ffffffffffffffff81111561011d57600080fd5b8901601f81018b1361012e57600080fd5b803567ffffffffffffffff81111561014557600080fd5b8b60208260051b840101111561015a57600080fd5b602091909101965094506060890135935061017760808a016100c6565b979a969950949793969295929450505060a08201359160c0013590565b600080600080608085870312156101aa57600080fd5b505082359460208401359450604084013593606001359250905056fea2646970667358221220b9a257f4f4997c1938a023d16a1818da512a830527f48d11e6f0c3fcace3147664736f6c634300081c0033";
18
- static readonly abi: readonly [{
19
- readonly inputs: readonly [];
20
- readonly name: "flipReturnValue";
21
- readonly outputs: readonly [];
22
- readonly stateMutability: "nonpayable";
23
- readonly type: "function";
24
- }, {
25
- readonly inputs: readonly [];
26
- readonly name: "returnValue";
27
- readonly outputs: readonly [{
28
- readonly internalType: "bool";
29
- readonly name: "";
30
- readonly type: "bool";
31
- }];
32
- readonly stateMutability: "view";
33
- readonly type: "function";
34
- }, {
35
- readonly inputs: readonly [{
36
- readonly internalType: "uint256";
37
- readonly name: "_voteOptionIndex";
38
- readonly type: "uint256";
39
- }, {
40
- readonly internalType: "uint256";
41
- readonly name: "_spent";
42
- readonly type: "uint256";
43
- }, {
44
- readonly internalType: "uint256[][]";
45
- readonly name: "_spentProof";
46
- readonly type: "uint256[][]";
47
- }, {
48
- readonly internalType: "uint256";
49
- readonly name: "_spentSalt";
50
- readonly type: "uint256";
51
- }, {
52
- readonly internalType: "uint8";
53
- readonly name: "_voteOptionTreeDepth";
54
- readonly type: "uint8";
55
- }, {
56
- readonly internalType: "uint256";
57
- readonly name: "_spentVoiceCreditsHash";
58
- readonly type: "uint256";
59
- }, {
60
- readonly internalType: "uint256";
61
- readonly name: "_resultCommitment";
62
- readonly type: "uint256";
63
- }];
64
- readonly name: "verifyPerVoteOptionSpentVoiceCredits";
65
- readonly outputs: readonly [{
66
- readonly internalType: "bool";
67
- readonly name: "";
68
- readonly type: "bool";
69
- }];
70
- readonly stateMutability: "view";
71
- readonly type: "function";
72
- }, {
73
- readonly inputs: readonly [{
74
- readonly internalType: "uint256";
75
- readonly name: "_totalSpent";
76
- readonly type: "uint256";
77
- }, {
78
- readonly internalType: "uint256";
79
- readonly name: "_totalSpentSalt";
80
- readonly type: "uint256";
81
- }, {
82
- readonly internalType: "uint256";
83
- readonly name: "_resultCommitment";
84
- readonly type: "uint256";
85
- }, {
86
- readonly internalType: "uint256";
87
- readonly name: "_perVoteOptionSpentVoiceCreditsHash";
88
- readonly type: "uint256";
89
- }];
90
- readonly name: "verifySpentVoiceCredits";
91
- readonly outputs: readonly [{
92
- readonly internalType: "bool";
93
- readonly name: "";
94
- readonly type: "bool";
95
- }];
96
- readonly stateMutability: "view";
97
- readonly type: "function";
98
- }];
99
- static createInterface(): MockTallyInterface;
100
- static connect(address: string, runner?: ContractRunner | null): MockTally;
101
- }
102
- export {};
103
- //# sourceMappingURL=MockTally__factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MockTally__factory.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/mocks/MockTally__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EACnB,MAAM,oCAAoC,CAAC;AA+G5C,KAAK,0BAA0B,GAC3B,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,kBAAmB,SAAQ,eAAe;gBACzC,GAAG,IAAI,EAAE,0BAA0B;IAQtC,oBAAoB,CAC3B,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACzB,OAAO,CAC7C,SAAS,GAAG;QACV,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,kBAAkB;IAInE,MAAM,CAAC,QAAQ,CAAC,QAAQ,wlCAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,kBAAkB;IAG5C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS;CAG3E"}
@@ -1,143 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MockTally__factory = void 0;
4
- /* Autogenerated file. Do not edit manually. */
5
- /* tslint:disable */
6
- /* eslint-disable */
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- inputs: [],
11
- name: "flipReturnValue",
12
- outputs: [],
13
- stateMutability: "nonpayable",
14
- type: "function",
15
- },
16
- {
17
- inputs: [],
18
- name: "returnValue",
19
- outputs: [
20
- {
21
- internalType: "bool",
22
- name: "",
23
- type: "bool",
24
- },
25
- ],
26
- stateMutability: "view",
27
- type: "function",
28
- },
29
- {
30
- inputs: [
31
- {
32
- internalType: "uint256",
33
- name: "_voteOptionIndex",
34
- type: "uint256",
35
- },
36
- {
37
- internalType: "uint256",
38
- name: "_spent",
39
- type: "uint256",
40
- },
41
- {
42
- internalType: "uint256[][]",
43
- name: "_spentProof",
44
- type: "uint256[][]",
45
- },
46
- {
47
- internalType: "uint256",
48
- name: "_spentSalt",
49
- type: "uint256",
50
- },
51
- {
52
- internalType: "uint8",
53
- name: "_voteOptionTreeDepth",
54
- type: "uint8",
55
- },
56
- {
57
- internalType: "uint256",
58
- name: "_spentVoiceCreditsHash",
59
- type: "uint256",
60
- },
61
- {
62
- internalType: "uint256",
63
- name: "_resultCommitment",
64
- type: "uint256",
65
- },
66
- ],
67
- name: "verifyPerVoteOptionSpentVoiceCredits",
68
- outputs: [
69
- {
70
- internalType: "bool",
71
- name: "",
72
- type: "bool",
73
- },
74
- ],
75
- stateMutability: "view",
76
- type: "function",
77
- },
78
- {
79
- inputs: [
80
- {
81
- internalType: "uint256",
82
- name: "_totalSpent",
83
- type: "uint256",
84
- },
85
- {
86
- internalType: "uint256",
87
- name: "_totalSpentSalt",
88
- type: "uint256",
89
- },
90
- {
91
- internalType: "uint256",
92
- name: "_resultCommitment",
93
- type: "uint256",
94
- },
95
- {
96
- internalType: "uint256",
97
- name: "_perVoteOptionSpentVoiceCreditsHash",
98
- type: "uint256",
99
- },
100
- ],
101
- name: "verifySpentVoiceCredits",
102
- outputs: [
103
- {
104
- internalType: "bool",
105
- name: "",
106
- type: "bool",
107
- },
108
- ],
109
- stateMutability: "view",
110
- type: "function",
111
- },
112
- ];
113
- const _bytecode = "0x60806040526000805460ff19166001179055348015601c57600080fd5b506101fc8061002c6000396000f3fe608060405234801561001057600080fd5b506004361061004b5760003560e01c80626abc8f1461005057806310bc5f511461008457806358dd748f146100a0578063990c8f79146100b9575b600080fd5b61007061005e3660046100dc565b60005460ff1698975050505050505050565b604051901515815260200160405180910390f35b610070610092366004610194565b60005460ff16949350505050565b6100b76000805460ff19811660ff90911615179055565b005b6000546100709060ff1681565b803560ff811681146100d757600080fd5b919050565b60008060008060008060008060e0898b0312156100f857600080fd5b8835975060208901359650604089013567ffffffffffffffff81111561011d57600080fd5b8901601f81018b1361012e57600080fd5b803567ffffffffffffffff81111561014557600080fd5b8b60208260051b840101111561015a57600080fd5b602091909101965094506060890135935061017760808a016100c6565b979a969950949793969295929450505060a08201359160c0013590565b600080600080608085870312156101aa57600080fd5b505082359460208401359450604084013593606001359250905056fea2646970667358221220b9a257f4f4997c1938a023d16a1818da512a830527f48d11e6f0c3fcace3147664736f6c634300081c0033";
114
- const isSuperArgs = (xs) => xs.length > 1;
115
- class MockTally__factory extends ethers_1.ContractFactory {
116
- constructor(...args) {
117
- if (isSuperArgs(args)) {
118
- super(...args);
119
- }
120
- else {
121
- super(_abi, _bytecode, args[0]);
122
- }
123
- }
124
- getDeployTransaction(overrides) {
125
- return super.getDeployTransaction(overrides || {});
126
- }
127
- deploy(overrides) {
128
- return super.deploy(overrides || {});
129
- }
130
- connect(runner) {
131
- return super.connect(runner);
132
- }
133
- static createInterface() {
134
- return new ethers_1.Interface(_abi);
135
- }
136
- static connect(address, runner) {
137
- return new ethers_1.Contract(address, _abi, runner);
138
- }
139
- }
140
- exports.MockTally__factory = MockTally__factory;
141
- MockTally__factory.bytecode = _bytecode;
142
- MockTally__factory.abi = _abi;
143
- //# sourceMappingURL=MockTally__factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MockTally__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/mocks/MockTally__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE;YAC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E,CAAC;;AAhCH,gDAiCC;AARiB,2BAAQ,GAAG,SAAS,CAAC;AACrB,sBAAG,GAAG,IAAI,CAAC"}
@@ -1,37 +0,0 @@
1
- // SPDX-License-Identifier: MIT
2
- pragma solidity ^0.8.28;
3
-
4
- import { ITally } from "../interfaces/ITally.sol";
5
-
6
- contract MockTally is ITally {
7
- bool public returnValue = true;
8
-
9
- /// @notice Flip the return value
10
- /// @dev used for mock testing
11
- function flipReturnValue() external {
12
- returnValue = !returnValue;
13
- }
14
-
15
- /// @inheritdoc ITally
16
- function verifyPerVoteOptionSpentVoiceCredits(
17
- uint256 _voteOptionIndex,
18
- uint256 _spent,
19
- uint256[][] calldata _spentProof,
20
- uint256 _spentSalt,
21
- uint8 _voteOptionTreeDepth,
22
- uint256 _spentVoiceCreditsHash,
23
- uint256 _resultCommitment
24
- ) external view returns (bool) {
25
- return returnValue;
26
- }
27
-
28
- /// @inheritdoc ITally
29
- function verifySpentVoiceCredits(
30
- uint256 _totalSpent,
31
- uint256 _totalSpentSalt,
32
- uint256 _resultCommitment,
33
- uint256 _perVoteOptionSpentVoiceCreditsHash
34
- ) external view returns (bool) {
35
- return returnValue;
36
- }
37
- }