@maci-protocol/contracts 0.0.0-ci.ec84efe → 0.0.0-ci.f3d71fd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/artifacts/@excubiae/contracts/contracts/checker/BaseChecker.sol/BaseChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarChecker.sol/AnonAadhaarChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarCheckerFactory.sol/AnonAadhaarCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarPolicy.sol/AnonAadhaarPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/AnonAadhaarPolicyFactory.sol/AnonAadhaarPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/anonAadhaar/IAnonAadhaar.sol/IAnonAadhaar.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASChecker.sol/EASChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASCheckerFactory.sol/EASCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASPolicy.sol/EASPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/EASPolicyFactory.sol/EASPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/eas/IEAS.sol/IEAS.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllChecker.sol/FreeForAllChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllCheckerFactory.sol/FreeForAllCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllPolicy.sol/FreeForAllPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/freeForAll/FreeForAllPolicyFactory.sol/FreeForAllPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportChecker.sol/GitcoinPassportChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportCheckerFactory.sol/GitcoinPassportCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportPolicy.sol/GitcoinPassportPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/GitcoinPassportPolicyFactory.sol/GitcoinPassportPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/gitcoin/IGitcoinPassportDecoder.sol/IGitcoinPassportDecoder.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsChecker.sol/HatsChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsCheckerFactory.sol/HatsCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsPolicy.sol/HatsPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/HatsPolicyFactory.sol/HatsPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/hats/IHats.sol/IHats.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofChecker.sol/MerkleProofChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofCheckerFactory.sol/MerkleProofCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofPolicy.sol/MerkleProofPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/merkle/MerkleProofPolicyFactory.sol/MerkleProofPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/ISemaphore.sol/ISemaphore.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphoreChecker.sol/SemaphoreChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphoreCheckerFactory.sol/SemaphoreCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphorePolicy.sol/SemaphorePolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/semaphore/SemaphorePolicyFactory.sol/SemaphorePolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenChecker.sol/TokenChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenCheckerFactory.sol/TokenCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenPolicy.sol/TokenPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/token/TokenPolicyFactory.sol/TokenPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassChecker.sol/ZupassChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassCheckerFactory.sol/ZupassCheckerFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassGroth16Verifier.sol/ZupassGroth16Verifier.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicy.sol/ZupassPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/extensions/zupass/ZupassPolicyFactory.sol/ZupassPolicyFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/interfaces/IBaseChecker.sol/IBaseChecker.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/interfaces/IBasePolicy.sol/IBasePolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/interfaces/IClone.sol/IClone.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/interfaces/IFactory.sol/IFactory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/interfaces/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/policy/BasePolicy.sol/BasePolicy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/policy/Policy.sol/Policy.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/proxy/Clone.sol/Clone.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/proxy/Factory.sol/Factory.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockAnonAadhaar.sol/MockAnonAadhaar.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockEAS.sol/MockEAS.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockGitcoinPassportDecoder.sol/MockGitcoinPassportDecoder.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockHatsProtocol.sol/MockHatsProtocol.dbg.json +1 -1
- package/build/artifacts/@excubiae/contracts/contracts/test/extensions/mocks/MockToken.sol/MockToken.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/cryptography/Hashes.sol/Hashes.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/cryptography/MerkleProof.sol/MerkleProof.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/build/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
- package/build/artifacts/build-info/{777c24253ad524cb0798696ba89b6ed0.json → 0cd87a88693acf210025091a28cf9d64.json} +1 -1
- package/build/artifacts/contracts/MACI.sol/MACI.dbg.json +1 -1
- package/build/artifacts/contracts/MessageProcessor.sol/MessageProcessor.dbg.json +1 -1
- package/build/artifacts/contracts/MessageProcessorFactory.sol/MessageProcessorFactory.dbg.json +1 -1
- package/build/artifacts/contracts/Poll.sol/Poll.dbg.json +1 -1
- package/build/artifacts/contracts/PollFactory.sol/PollFactory.dbg.json +1 -1
- package/build/artifacts/contracts/Tally.sol/Tally.dbg.json +1 -1
- package/build/artifacts/contracts/TallyFactory.sol/TallyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/VkRegistry.sol/VkRegistry.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/BabyJubJub.sol/CurveBabyJubJub.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/Hasher.sol/Hasher.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/Pairing.sol/Pairing.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/PoseidonT3.sol/PoseidonT3.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/PoseidonT4.sol/PoseidonT4.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/PoseidonT5.sol/PoseidonT5.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/PoseidonT6.sol/PoseidonT6.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/SnarkCommon.sol/SnarkCommon.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/SnarkConstants.sol/SnarkConstants.dbg.json +1 -1
- package/build/artifacts/contracts/crypto/Verifier.sol/Verifier.dbg.json +1 -1
- package/build/artifacts/contracts/initialVoiceCreditProxy/ConstantInitialVoiceCreditProxy.sol/ConstantInitialVoiceCreditProxy.dbg.json +1 -1
- package/build/artifacts/contracts/initialVoiceCreditProxy/ConstantInitialVoiceCreditProxyFactory.sol/ConstantInitialVoiceCreditProxyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IInitialVoiceCreditProxy.sol/IInitialVoiceCreditProxy.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMACI.sol/IMACI.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMPFactory.sol/IMessageProcessorFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IMessageProcessor.sol/IMessageProcessor.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPoll.sol/IPoll.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IPollFactory.sol/IPollFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ISemaphore.sol/ISemaphore.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ITally.sol/ITally.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/ITallyFactory.sol/ITallyFactory.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IVerifier.sol/IVerifier.dbg.json +1 -1
- package/build/artifacts/contracts/interfaces/IVkRegistry.sol/IVkRegistry.dbg.json +1 -1
- package/build/artifacts/contracts/mocks/MockERC20.sol/MockERC20.dbg.json +1 -1
- package/build/artifacts/contracts/mocks/MockSemaphore.sol/MockSemaphore.dbg.json +1 -1
- package/build/artifacts/contracts/mocks/MockTally.sol/MockTally.dbg.json +1 -1
- package/build/artifacts/contracts/mocks/MockVerifier.sol/MockVerifier.dbg.json +1 -1
- package/build/artifacts/contracts/mocks/Mocker.sol/Mocker.dbg.json +1 -1
- package/build/artifacts/contracts/trees/LazyIMT.sol/InternalLazyIMT.dbg.json +1 -1
- package/build/artifacts/contracts/trees/LeanIMT.sol/InternalLeanIMT.dbg.json +1 -1
- package/build/artifacts/contracts/utilities/DomainObjs.sol/DomainObjs.dbg.json +1 -1
- package/build/artifacts/contracts/utilities/Params.sol/Params.dbg.json +1 -1
- package/build/artifacts/contracts/utilities/Utilities.sol/Utilities.dbg.json +1 -1
- package/build/artifacts/solady/src/utils/LibClone.sol/LibClone.dbg.json +1 -1
- package/build/ts/index.d.ts +1 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/index.js +3 -2
- package/build/ts/index.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/build/typechain-types/contracts/index.d.ts +0 -2
- package/build/typechain-types/contracts/index.d.ts.map +1 -1
- package/build/typechain-types/factories/contracts/index.d.ts +0 -1
- package/build/typechain-types/factories/contracts/index.d.ts.map +1 -1
- package/build/typechain-types/factories/contracts/index.js +1 -2
- package/build/typechain-types/factories/contracts/index.js.map +1 -1
- package/build/typechain-types/index.d.ts +0 -2
- package/build/typechain-types/index.d.ts.map +1 -1
- package/build/typechain-types/index.js +2 -4
- package/build/typechain-types/index.js.map +1 -1
- package/package.json +6 -6
- package/build/artifacts/contracts/benchmarks/HasherBenchmarks.sol/HasherBenchmarks.dbg.json +0 -4
- package/build/artifacts/contracts/benchmarks/HasherBenchmarks.sol/HasherBenchmarks.json +0 -239
- package/build/typechain-types/contracts/benchmarks/HasherBenchmarks.d.ts +0 -154
- package/build/typechain-types/contracts/benchmarks/HasherBenchmarks.d.ts.map +0 -1
- package/build/typechain-types/contracts/benchmarks/HasherBenchmarks.js +0 -3
- package/build/typechain-types/contracts/benchmarks/HasherBenchmarks.js.map +0 -1
- package/build/typechain-types/contracts/benchmarks/index.d.ts +0 -2
- package/build/typechain-types/contracts/benchmarks/index.d.ts.map +0 -1
- package/build/typechain-types/contracts/benchmarks/index.js +0 -3
- package/build/typechain-types/contracts/benchmarks/index.js.map +0 -1
- package/build/typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.d.ts +0 -150
- package/build/typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.d.ts.map +0 -1
- package/build/typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.js +0 -223
- package/build/typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.js.map +0 -1
- package/build/typechain-types/factories/contracts/benchmarks/index.d.ts +0 -2
- package/build/typechain-types/factories/contracts/benchmarks/index.d.ts.map +0 -1
- package/build/typechain-types/factories/contracts/benchmarks/index.js +0 -9
- package/build/typechain-types/factories/contracts/benchmarks/index.js.map +0 -1
- package/contracts/benchmarks/HasherBenchmarks.sol +0 -23
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../typechain-types/contracts/benchmarks/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,150 +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 { HasherBenchmarks, HasherBenchmarksInterface } from "../../../contracts/benchmarks/HasherBenchmarks";
|
|
5
|
-
type HasherBenchmarksConstructorParams = [linkLibraryAddresses: HasherBenchmarksLibraryAddresses, signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
-
export declare class HasherBenchmarks__factory extends ContractFactory {
|
|
7
|
-
constructor(...args: HasherBenchmarksConstructorParams);
|
|
8
|
-
static linkBytecode(linkLibraryAddresses: HasherBenchmarksLibraryAddresses): string;
|
|
9
|
-
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
10
|
-
from?: string;
|
|
11
|
-
}): Promise<ContractDeployTransaction>;
|
|
12
|
-
deploy(overrides?: NonPayableOverrides & {
|
|
13
|
-
from?: string;
|
|
14
|
-
}): Promise<HasherBenchmarks & {
|
|
15
|
-
deploymentTransaction(): ContractTransactionResponse;
|
|
16
|
-
}>;
|
|
17
|
-
connect(runner: ContractRunner | null): HasherBenchmarks__factory;
|
|
18
|
-
static readonly bytecode = "0x6080604052348015600f57600080fd5b5061072b8061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639cfced971161005b5780639cfced97146100eb578063a1b0f257146100fe578063a3b4717c14610111578063bea140b31461012457600080fd5b80633dfb88b21461008d57806358bfc379146100b25780635bb93995146100c557806362a361bb146100d8575b600080fd5b6100a061009b3660046103a8565b610137565b60405190815260200160405180910390f35b6100a06100c0366004610410565b6101b8565b6100a06100d33660046104c1565b610252565b6100a06100e63660046104e3565b610277565b6100a06100f9366004610526565b6102b1565b6100a061010c3660046104c1565b6102eb565b6100a061011f366004610526565b6102fe565b6100a0610132366004610569565b610309565b60405163248f667760e01b815260009073__$ce9c2c925f157047e54fa833ec4e61409f$__9063248f6677906101719085906004016105ac565b602060405180830381865af415801561018e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b291906105dd565b92915050565b60007f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016002836040516020016101ee91906105f6565b60408051601f19818403018152908290526102089161062c565b602060405180830381855afa158015610225573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061024891906105dd565b6101b2919061065b565b600061025c610343565b8381526020810183905261026f81610277565b949350505050565b6040516314d2f97b60e11b815260009073__$6574937f64fc1d7710ec0e28b7a36713bb$__906329a5f2f69061017190859060040161067d565b604051630926f44b60e31b815260009073__$20527677031d76601747626a9845039fe4$__90634937a258906101719085906004016106a5565b60006102f78383610252565b9392505050565b60006101b2826102b1565b6040516304b98e1d60e31b815260009073__$dc01a9744591ab014bc46a3b7671cdaefb$__906325cc70e8906101719085906004016106cd565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156103a0576103a0610361565b604052919050565b6000608082840312156103ba57600080fd5b600083601f8401126103ca578081fd5b806103d56080610377565b905080915060808401858111156103eb57600080fd5b845b818110156104055780358452602093840193016103ed565b509095945050505050565b60006020828403121561042257600080fd5b813567ffffffffffffffff81111561043957600080fd5b8201601f8101841361044a57600080fd5b803567ffffffffffffffff81111561046457610464610361565b8060051b61047460208201610377565b9182526020818401810192908101908784111561049057600080fd5b6020850194505b838510156104b657843580835260209586019590935090910190610497565b979650505050505050565b600080604083850312156104d457600080fd5b50508035926020909101359150565b6000604082840312156104f557600080fd5b600083601f840112610505578081fd5b806105106040610377565b905080915060408401858111156103eb57600080fd5b600060a0828403121561053857600080fd5b600083601f840112610548578081fd5b8061055360a0610377565b905080915060a08401858111156103eb57600080fd5b60006060828403121561057b57600080fd5b600083601f84011261058b578081fd5b806105966060610377565b905080915060608401858111156103eb57600080fd5b60808101818360005b60048110156105d45781518352602092830192909101906001016105b5565b50505092915050565b6000602082840312156105ef57600080fd5b5051919050565b8151600090829060208501835b82811015610621578151845260209384019390910190600101610603565b509195945050505050565b6000825160005b8181101561064d5760208186018101518583015201610633565b506000920191825250919050565b60008261067857634e487b7160e01b600052601260045260246000fd5b500690565b60408101818360005b60028110156105d4578151835260209283019290910190600101610686565b60a08101818360005b60058110156105d45781518352602092830192909101906001016106ae565b60608101818360005b60038110156105d45781518352602092830192909101906001016106d656fea2646970667358221220cdbfd0b0dd9b29acfd8f52446b9c5e11e47431154c3df8dadbb5464c851a57ed64736f6c634300081c0033";
|
|
19
|
-
static readonly abi: readonly [{
|
|
20
|
-
readonly inputs: readonly [{
|
|
21
|
-
readonly internalType: "uint256[2]";
|
|
22
|
-
readonly name: "array";
|
|
23
|
-
readonly type: "uint256[2]";
|
|
24
|
-
}];
|
|
25
|
-
readonly name: "hash2";
|
|
26
|
-
readonly outputs: readonly [{
|
|
27
|
-
readonly internalType: "uint256";
|
|
28
|
-
readonly name: "result";
|
|
29
|
-
readonly type: "uint256";
|
|
30
|
-
}];
|
|
31
|
-
readonly stateMutability: "pure";
|
|
32
|
-
readonly type: "function";
|
|
33
|
-
}, {
|
|
34
|
-
readonly inputs: readonly [{
|
|
35
|
-
readonly internalType: "uint256[3]";
|
|
36
|
-
readonly name: "array";
|
|
37
|
-
readonly type: "uint256[3]";
|
|
38
|
-
}];
|
|
39
|
-
readonly name: "hash3";
|
|
40
|
-
readonly outputs: readonly [{
|
|
41
|
-
readonly internalType: "uint256";
|
|
42
|
-
readonly name: "result";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
}];
|
|
45
|
-
readonly stateMutability: "pure";
|
|
46
|
-
readonly type: "function";
|
|
47
|
-
}, {
|
|
48
|
-
readonly inputs: readonly [{
|
|
49
|
-
readonly internalType: "uint256[4]";
|
|
50
|
-
readonly name: "array";
|
|
51
|
-
readonly type: "uint256[4]";
|
|
52
|
-
}];
|
|
53
|
-
readonly name: "hash4";
|
|
54
|
-
readonly outputs: readonly [{
|
|
55
|
-
readonly internalType: "uint256";
|
|
56
|
-
readonly name: "result";
|
|
57
|
-
readonly type: "uint256";
|
|
58
|
-
}];
|
|
59
|
-
readonly stateMutability: "pure";
|
|
60
|
-
readonly type: "function";
|
|
61
|
-
}, {
|
|
62
|
-
readonly inputs: readonly [{
|
|
63
|
-
readonly internalType: "uint256[5]";
|
|
64
|
-
readonly name: "array";
|
|
65
|
-
readonly type: "uint256[5]";
|
|
66
|
-
}];
|
|
67
|
-
readonly name: "hash5";
|
|
68
|
-
readonly outputs: readonly [{
|
|
69
|
-
readonly internalType: "uint256";
|
|
70
|
-
readonly name: "result";
|
|
71
|
-
readonly type: "uint256";
|
|
72
|
-
}];
|
|
73
|
-
readonly stateMutability: "pure";
|
|
74
|
-
readonly type: "function";
|
|
75
|
-
}, {
|
|
76
|
-
readonly inputs: readonly [{
|
|
77
|
-
readonly internalType: "uint256[5]";
|
|
78
|
-
readonly name: "array";
|
|
79
|
-
readonly type: "uint256[5]";
|
|
80
|
-
}];
|
|
81
|
-
readonly name: "hash5Benchmark";
|
|
82
|
-
readonly outputs: readonly [{
|
|
83
|
-
readonly internalType: "uint256";
|
|
84
|
-
readonly name: "result";
|
|
85
|
-
readonly type: "uint256";
|
|
86
|
-
}];
|
|
87
|
-
readonly stateMutability: "pure";
|
|
88
|
-
readonly type: "function";
|
|
89
|
-
}, {
|
|
90
|
-
readonly inputs: readonly [{
|
|
91
|
-
readonly internalType: "uint256";
|
|
92
|
-
readonly name: "left";
|
|
93
|
-
readonly type: "uint256";
|
|
94
|
-
}, {
|
|
95
|
-
readonly internalType: "uint256";
|
|
96
|
-
readonly name: "right";
|
|
97
|
-
readonly type: "uint256";
|
|
98
|
-
}];
|
|
99
|
-
readonly name: "hashLeftRight";
|
|
100
|
-
readonly outputs: readonly [{
|
|
101
|
-
readonly internalType: "uint256";
|
|
102
|
-
readonly name: "result";
|
|
103
|
-
readonly type: "uint256";
|
|
104
|
-
}];
|
|
105
|
-
readonly stateMutability: "pure";
|
|
106
|
-
readonly type: "function";
|
|
107
|
-
}, {
|
|
108
|
-
readonly inputs: readonly [{
|
|
109
|
-
readonly internalType: "uint256";
|
|
110
|
-
readonly name: "_left";
|
|
111
|
-
readonly type: "uint256";
|
|
112
|
-
}, {
|
|
113
|
-
readonly internalType: "uint256";
|
|
114
|
-
readonly name: "_right";
|
|
115
|
-
readonly type: "uint256";
|
|
116
|
-
}];
|
|
117
|
-
readonly name: "hashLeftRightBenchmark";
|
|
118
|
-
readonly outputs: readonly [{
|
|
119
|
-
readonly internalType: "uint256";
|
|
120
|
-
readonly name: "result";
|
|
121
|
-
readonly type: "uint256";
|
|
122
|
-
}];
|
|
123
|
-
readonly stateMutability: "pure";
|
|
124
|
-
readonly type: "function";
|
|
125
|
-
}, {
|
|
126
|
-
readonly inputs: readonly [{
|
|
127
|
-
readonly internalType: "uint256[]";
|
|
128
|
-
readonly name: "array";
|
|
129
|
-
readonly type: "uint256[]";
|
|
130
|
-
}];
|
|
131
|
-
readonly name: "sha256Hash";
|
|
132
|
-
readonly outputs: readonly [{
|
|
133
|
-
readonly internalType: "uint256";
|
|
134
|
-
readonly name: "result";
|
|
135
|
-
readonly type: "uint256";
|
|
136
|
-
}];
|
|
137
|
-
readonly stateMutability: "pure";
|
|
138
|
-
readonly type: "function";
|
|
139
|
-
}];
|
|
140
|
-
static createInterface(): HasherBenchmarksInterface;
|
|
141
|
-
static connect(address: string, runner?: ContractRunner | null): HasherBenchmarks;
|
|
142
|
-
}
|
|
143
|
-
export interface HasherBenchmarksLibraryAddresses {
|
|
144
|
-
["contracts/crypto/PoseidonT5.sol:PoseidonT5"]: string;
|
|
145
|
-
["contracts/crypto/PoseidonT3.sol:PoseidonT3"]: string;
|
|
146
|
-
["contracts/crypto/PoseidonT6.sol:PoseidonT6"]: string;
|
|
147
|
-
["contracts/crypto/PoseidonT4.sol:PoseidonT4"]: string;
|
|
148
|
-
}
|
|
149
|
-
export {};
|
|
150
|
-
//# sourceMappingURL=HasherBenchmarks__factory.d.ts.map
|
package/build/typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HasherBenchmarks__factory.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/benchmarks/HasherBenchmarks__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,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,gDAAgD,CAAC;AA0KxD,KAAK,iCAAiC,GAClC,CAAC,oBAAoB,EAAE,gCAAgC,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,GACzE,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAYlD,qBAAa,yBAA0B,SAAQ,eAAe;gBAChD,GAAG,IAAI,EAAE,iCAAiC;IAatD,MAAM,CAAC,YAAY,CACjB,oBAAoB,EAAE,gCAAgC,GACrD,MAAM;IAkCA,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,gBAAgB,GAAG;QACjB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,yBAAyB;IAI1E,MAAM,CAAC,QAAQ,CAAC,QAAQ,4pHAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,yBAAyB;IAGnD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,gBAAgB;CAGpB;AAED,MAAM,WAAW,gCAAgC;IAC/C,CAAC,4CAA4C,CAAC,EAAE,MAAM,CAAC;IACvD,CAAC,4CAA4C,CAAC,EAAE,MAAM,CAAC;IACvD,CAAC,4CAA4C,CAAC,EAAE,MAAM,CAAC;IACvD,CAAC,4CAA4C,CAAC,EAAE,MAAM,CAAC;CACxD"}
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HasherBenchmarks__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
|
-
{
|
|
12
|
-
internalType: "uint256[2]",
|
|
13
|
-
name: "array",
|
|
14
|
-
type: "uint256[2]",
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
name: "hash2",
|
|
18
|
-
outputs: [
|
|
19
|
-
{
|
|
20
|
-
internalType: "uint256",
|
|
21
|
-
name: "result",
|
|
22
|
-
type: "uint256",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
stateMutability: "pure",
|
|
26
|
-
type: "function",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
inputs: [
|
|
30
|
-
{
|
|
31
|
-
internalType: "uint256[3]",
|
|
32
|
-
name: "array",
|
|
33
|
-
type: "uint256[3]",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
name: "hash3",
|
|
37
|
-
outputs: [
|
|
38
|
-
{
|
|
39
|
-
internalType: "uint256",
|
|
40
|
-
name: "result",
|
|
41
|
-
type: "uint256",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
stateMutability: "pure",
|
|
45
|
-
type: "function",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
inputs: [
|
|
49
|
-
{
|
|
50
|
-
internalType: "uint256[4]",
|
|
51
|
-
name: "array",
|
|
52
|
-
type: "uint256[4]",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
name: "hash4",
|
|
56
|
-
outputs: [
|
|
57
|
-
{
|
|
58
|
-
internalType: "uint256",
|
|
59
|
-
name: "result",
|
|
60
|
-
type: "uint256",
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
stateMutability: "pure",
|
|
64
|
-
type: "function",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
inputs: [
|
|
68
|
-
{
|
|
69
|
-
internalType: "uint256[5]",
|
|
70
|
-
name: "array",
|
|
71
|
-
type: "uint256[5]",
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
name: "hash5",
|
|
75
|
-
outputs: [
|
|
76
|
-
{
|
|
77
|
-
internalType: "uint256",
|
|
78
|
-
name: "result",
|
|
79
|
-
type: "uint256",
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
stateMutability: "pure",
|
|
83
|
-
type: "function",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
inputs: [
|
|
87
|
-
{
|
|
88
|
-
internalType: "uint256[5]",
|
|
89
|
-
name: "array",
|
|
90
|
-
type: "uint256[5]",
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
name: "hash5Benchmark",
|
|
94
|
-
outputs: [
|
|
95
|
-
{
|
|
96
|
-
internalType: "uint256",
|
|
97
|
-
name: "result",
|
|
98
|
-
type: "uint256",
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
stateMutability: "pure",
|
|
102
|
-
type: "function",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
inputs: [
|
|
106
|
-
{
|
|
107
|
-
internalType: "uint256",
|
|
108
|
-
name: "left",
|
|
109
|
-
type: "uint256",
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
internalType: "uint256",
|
|
113
|
-
name: "right",
|
|
114
|
-
type: "uint256",
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
name: "hashLeftRight",
|
|
118
|
-
outputs: [
|
|
119
|
-
{
|
|
120
|
-
internalType: "uint256",
|
|
121
|
-
name: "result",
|
|
122
|
-
type: "uint256",
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
stateMutability: "pure",
|
|
126
|
-
type: "function",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
inputs: [
|
|
130
|
-
{
|
|
131
|
-
internalType: "uint256",
|
|
132
|
-
name: "_left",
|
|
133
|
-
type: "uint256",
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
internalType: "uint256",
|
|
137
|
-
name: "_right",
|
|
138
|
-
type: "uint256",
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
name: "hashLeftRightBenchmark",
|
|
142
|
-
outputs: [
|
|
143
|
-
{
|
|
144
|
-
internalType: "uint256",
|
|
145
|
-
name: "result",
|
|
146
|
-
type: "uint256",
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
stateMutability: "pure",
|
|
150
|
-
type: "function",
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
inputs: [
|
|
154
|
-
{
|
|
155
|
-
internalType: "uint256[]",
|
|
156
|
-
name: "array",
|
|
157
|
-
type: "uint256[]",
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
name: "sha256Hash",
|
|
161
|
-
outputs: [
|
|
162
|
-
{
|
|
163
|
-
internalType: "uint256",
|
|
164
|
-
name: "result",
|
|
165
|
-
type: "uint256",
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
stateMutability: "pure",
|
|
169
|
-
type: "function",
|
|
170
|
-
},
|
|
171
|
-
];
|
|
172
|
-
const _bytecode = "0x6080604052348015600f57600080fd5b5061072b8061001f6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639cfced971161005b5780639cfced97146100eb578063a1b0f257146100fe578063a3b4717c14610111578063bea140b31461012457600080fd5b80633dfb88b21461008d57806358bfc379146100b25780635bb93995146100c557806362a361bb146100d8575b600080fd5b6100a061009b3660046103a8565b610137565b60405190815260200160405180910390f35b6100a06100c0366004610410565b6101b8565b6100a06100d33660046104c1565b610252565b6100a06100e63660046104e3565b610277565b6100a06100f9366004610526565b6102b1565b6100a061010c3660046104c1565b6102eb565b6100a061011f366004610526565b6102fe565b6100a0610132366004610569565b610309565b60405163248f667760e01b815260009073__$ce9c2c925f157047e54fa833ec4e61409f$__9063248f6677906101719085906004016105ac565b602060405180830381865af415801561018e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101b291906105dd565b92915050565b60007f30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f00000016002836040516020016101ee91906105f6565b60408051601f19818403018152908290526102089161062c565b602060405180830381855afa158015610225573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061024891906105dd565b6101b2919061065b565b600061025c610343565b8381526020810183905261026f81610277565b949350505050565b6040516314d2f97b60e11b815260009073__$6574937f64fc1d7710ec0e28b7a36713bb$__906329a5f2f69061017190859060040161067d565b604051630926f44b60e31b815260009073__$20527677031d76601747626a9845039fe4$__90634937a258906101719085906004016106a5565b60006102f78383610252565b9392505050565b60006101b2826102b1565b6040516304b98e1d60e31b815260009073__$dc01a9744591ab014bc46a3b7671cdaefb$__906325cc70e8906101719085906004016106cd565b60405180604001604052806002906020820280368337509192915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156103a0576103a0610361565b604052919050565b6000608082840312156103ba57600080fd5b600083601f8401126103ca578081fd5b806103d56080610377565b905080915060808401858111156103eb57600080fd5b845b818110156104055780358452602093840193016103ed565b509095945050505050565b60006020828403121561042257600080fd5b813567ffffffffffffffff81111561043957600080fd5b8201601f8101841361044a57600080fd5b803567ffffffffffffffff81111561046457610464610361565b8060051b61047460208201610377565b9182526020818401810192908101908784111561049057600080fd5b6020850194505b838510156104b657843580835260209586019590935090910190610497565b979650505050505050565b600080604083850312156104d457600080fd5b50508035926020909101359150565b6000604082840312156104f557600080fd5b600083601f840112610505578081fd5b806105106040610377565b905080915060408401858111156103eb57600080fd5b600060a0828403121561053857600080fd5b600083601f840112610548578081fd5b8061055360a0610377565b905080915060a08401858111156103eb57600080fd5b60006060828403121561057b57600080fd5b600083601f84011261058b578081fd5b806105966060610377565b905080915060608401858111156103eb57600080fd5b60808101818360005b60048110156105d45781518352602092830192909101906001016105b5565b50505092915050565b6000602082840312156105ef57600080fd5b5051919050565b8151600090829060208501835b82811015610621578151845260209384019390910190600101610603565b509195945050505050565b6000825160005b8181101561064d5760208186018101518583015201610633565b506000920191825250919050565b60008261067857634e487b7160e01b600052601260045260246000fd5b500690565b60408101818360005b60028110156105d4578151835260209283019290910190600101610686565b60a08101818360005b60058110156105d45781518352602092830192909101906001016106ae565b60608101818360005b60038110156105d45781518352602092830192909101906001016106d656fea2646970667358221220cdbfd0b0dd9b29acfd8f52446b9c5e11e47431154c3df8dadbb5464c851a57ed64736f6c634300081c0033";
|
|
173
|
-
const isSuperArgs = (xs) => {
|
|
174
|
-
return (typeof xs[0] === "string" ||
|
|
175
|
-
Array.isArray(xs[0]) ||
|
|
176
|
-
"_isInterface" in xs[0]);
|
|
177
|
-
};
|
|
178
|
-
class HasherBenchmarks__factory extends ethers_1.ContractFactory {
|
|
179
|
-
constructor(...args) {
|
|
180
|
-
if (isSuperArgs(args)) {
|
|
181
|
-
super(...args);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
const [linkLibraryAddresses, signer] = args;
|
|
185
|
-
super(_abi, HasherBenchmarks__factory.linkBytecode(linkLibraryAddresses), signer);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
static linkBytecode(linkLibraryAddresses) {
|
|
189
|
-
let linkedBytecode = _bytecode;
|
|
190
|
-
linkedBytecode = linkedBytecode.replace(new RegExp("__\\$ce9c2c925f157047e54fa833ec4e61409f\\$__", "g"), linkLibraryAddresses["contracts/crypto/PoseidonT5.sol:PoseidonT5"]
|
|
191
|
-
.replace(/^0x/, "")
|
|
192
|
-
.toLowerCase());
|
|
193
|
-
linkedBytecode = linkedBytecode.replace(new RegExp("__\\$6574937f64fc1d7710ec0e28b7a36713bb\\$__", "g"), linkLibraryAddresses["contracts/crypto/PoseidonT3.sol:PoseidonT3"]
|
|
194
|
-
.replace(/^0x/, "")
|
|
195
|
-
.toLowerCase());
|
|
196
|
-
linkedBytecode = linkedBytecode.replace(new RegExp("__\\$20527677031d76601747626a9845039fe4\\$__", "g"), linkLibraryAddresses["contracts/crypto/PoseidonT6.sol:PoseidonT6"]
|
|
197
|
-
.replace(/^0x/, "")
|
|
198
|
-
.toLowerCase());
|
|
199
|
-
linkedBytecode = linkedBytecode.replace(new RegExp("__\\$dc01a9744591ab014bc46a3b7671cdaefb\\$__", "g"), linkLibraryAddresses["contracts/crypto/PoseidonT4.sol:PoseidonT4"]
|
|
200
|
-
.replace(/^0x/, "")
|
|
201
|
-
.toLowerCase());
|
|
202
|
-
return linkedBytecode;
|
|
203
|
-
}
|
|
204
|
-
getDeployTransaction(overrides) {
|
|
205
|
-
return super.getDeployTransaction(overrides || {});
|
|
206
|
-
}
|
|
207
|
-
deploy(overrides) {
|
|
208
|
-
return super.deploy(overrides || {});
|
|
209
|
-
}
|
|
210
|
-
connect(runner) {
|
|
211
|
-
return super.connect(runner);
|
|
212
|
-
}
|
|
213
|
-
static createInterface() {
|
|
214
|
-
return new ethers_1.Interface(_abi);
|
|
215
|
-
}
|
|
216
|
-
static connect(address, runner) {
|
|
217
|
-
return new ethers_1.Contract(address, _abi, runner);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
exports.HasherBenchmarks__factory = HasherBenchmarks__factory;
|
|
221
|
-
HasherBenchmarks__factory.bytecode = _bytecode;
|
|
222
|
-
HasherBenchmarks__factory.abi = _abi;
|
|
223
|
-
//# sourceMappingURL=HasherBenchmarks__factory.js.map
|
package/build/typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HasherBenchmarks__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/benchmarks/HasherBenchmarks__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,YAAY;gBAC1B,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,YAAY;aACnB;SACF;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,YAAY;gBAC1B,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,YAAY;aACnB;SACF;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SAC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AO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAIlC,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA8B,CAAC;IAC5D,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA8B,CAAC;IAC1D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAgC,CAAC;IAC5E,CAAC;;AA5EH,8DA6EC;AAXiB,kCAAQ,GAAG,SAAS,CAAC;AACrB,6BAAG,GAAG,IAAI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/benchmarks/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HasherBenchmarks__factory = void 0;
|
|
4
|
-
/* Autogenerated file. Do not edit manually. */
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
var HasherBenchmarks__factory_1 = require("./HasherBenchmarks__factory");
|
|
8
|
-
Object.defineProperty(exports, "HasherBenchmarks__factory", { enumerable: true, get: function () { return HasherBenchmarks__factory_1.HasherBenchmarks__factory; } });
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/benchmarks/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.8.28;
|
|
3
|
-
|
|
4
|
-
import { Hasher } from "../crypto/Hasher.sol";
|
|
5
|
-
|
|
6
|
-
/// @title HasherBenchmarks
|
|
7
|
-
/// @notice A contract used to benchmark the poseidon hash function
|
|
8
|
-
contract HasherBenchmarks is Hasher {
|
|
9
|
-
/// @notice Benchmark the poseidon hash function with 5 inputs
|
|
10
|
-
/// @param array The array of inputs to hash
|
|
11
|
-
/// @return result The hash of the inputs
|
|
12
|
-
function hash5Benchmark(uint256[5] memory array) public pure returns (uint256 result) {
|
|
13
|
-
result = hash5(array);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/// @notice Benchmark the poseidon hash function with 2 inputs
|
|
17
|
-
/// @param _left The left input to hash
|
|
18
|
-
/// @param _right The right input to hash
|
|
19
|
-
/// @return result The hash of the two inputs
|
|
20
|
-
function hashLeftRightBenchmark(uint256 _left, uint256 _right) public pure returns (uint256 result) {
|
|
21
|
-
result = hashLeftRight(_left, _right);
|
|
22
|
-
}
|
|
23
|
-
}
|