forked from worldcoin/world-id-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gas-snapshot
160 lines (160 loc) · 17 KB
/
.gas-snapshot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
BatchLookupTableConstruction:testCanConstructLookupTable(uint256) (runs: 256, μ: 407440, ~: 407440)
BatchLookupTableConstruction:testCannotConstructLookupTableWithInvalidBatchSize(uint256) (runs: 256, μ: 71199, ~: 71199)
BatchLookupTableOwnershipManagement:testCannotRenounceOwnershipIfNotOwner(address) (runs: 256, μ: 15629, ~: 15629)
BatchLookupTableOwnershipManagement:testCannotTransferOwnerIfNotOwner(address,address) (runs: 256, μ: 15900, ~: 15900)
BatchLookupTableOwnershipManagement:testHasOwner() (gas: 9792)
BatchLookupTableOwnershipManagement:testRenounceOwnership() (gas: 10350)
BatchLookupTableOwnershipManagement:testTransferOwner(address) (runs: 256, μ: 22410, ~: 22421)
VerifierLookupTableQuery:testCanAddVerifierWithValidBatchSize(uint256,address) (runs: 256, μ: 40280, ~: 40280)
VerifierLookupTableQuery:testCanAlwaysGetMaximumBatchSize(address) (runs: 256, μ: 8518, ~: 8518)
VerifierLookupTableQuery:testCanDisableVerifier(uint256) (runs: 256, μ: 29196, ~: 29196)
VerifierLookupTableQuery:testCanGetVerifierForExtantBatchSize() (gas: 12281)
VerifierLookupTableQuery:testCanUpdateVerifierWithValidBatchSize(address) (runs: 256, μ: 23958, ~: 23958)
VerifierLookupTableQuery:testCannotAddVerifierForBatchSizeThatAlreadyExists(uint256) (runs: 256, μ: 40446, ~: 40446)
VerifierLookupTableQuery:testCannotAddVerifierUnlessOwner(address) (runs: 256, μ: 17994, ~: 17994)
VerifierLookupTableQuery:testCannotAddVerifierWithInvalidBatchSize(uint256) (runs: 256, μ: 14416, ~: 14416)
VerifierLookupTableQuery:testCannotDisableVerifierForInvalidBatchSize(uint256) (runs: 256, μ: 12461, ~: 12461)
VerifierLookupTableQuery:testCannotDisableVerifierUnlessOwner(address) (runs: 256, μ: 17906, ~: 17906)
VerifierLookupTableQuery:testCannotGetVerifierForMissingBatchSize(uint256) (runs: 256, μ: 14261, ~: 14261)
VerifierLookupTableQuery:testCannotUpdateVerifierIfBatchSizeTooLarge(uint256,address) (runs: 256, μ: 14998, ~: 14998)
VerifierLookupTableQuery:testCannotUpdateVerifierIfNotOwner(address) (runs: 256, μ: 20157, ~: 20157)
VerifierLookupTableQuery:testCanotGetVerifierForInvalidBatchSize(uint256) (runs: 256, μ: 12286, ~: 12286)
WorldIDIdentityManagerCalculation:testCalculateIdentityRegistrationInputHashFromParametersOnKnownInput() (gas: 31550)
WorldIDIdentityManagerCalculation:testCanCalculateIdentityUpdateInputHash(uint256,uint256,uint32,uint32,uint256,uint256,uint256,uint256) (runs: 256, μ: 27562, ~: 27562)
WorldIDIdentityManagerCalculation:testCanCheckValueIsInReducedForm(uint256) (runs: 256, μ: 24333, ~: 24333)
WorldIDIdentityManagerCalculation:testCanCheckValueIsNotInReducedForm(uint256) (runs: 256, μ: 24361, ~: 24361)
WorldIDIdentityManagerCalculation:testCannotCalculateIdentityRegistrationInputHashIfNotViaProxy() (gas: 17817)
WorldIDIdentityManagerCalculation:testCannotCalculateIdentityUpdateHashIfNotViaProxy(uint256,uint256,uint32,uint32,uint256,uint256,uint256,uint256) (runs: 256, μ: 10344, ~: 10344)
WorldIDIdentityManagerCalculation:testCannotCheckValidIsInReducedFormIfNotViaProxy() (gas: 8601)
WorldIDIdentityManagerConstruction:testCanConstructIdentityManagerWithDelegate() (gas: 4889418)
WorldIDIdentityManagerConstruction:testCanConstructIdentityManagerWithNoDelegate() (gas: 100274)
WorldIDIdentityManagerDataQuery:testCanGetLatestRoot(uint256) (runs: 256, μ: 5114425, ~: 5115514)
WorldIDIdentityManagerDataQuery:testCannotGetLatestRootIfNotViaProxy() (gas: 8505)
WorldIDIdentityManagerDataQuery:testCannotQueryRootIfNotViaProxy() (gas: 10996)
WorldIDIdentityManagerDataQuery:testQueryCurrentRoot(uint128) (runs: 256, μ: 5131138, ~: 5131994)
WorldIDIdentityManagerDataQuery:testQueryExpiredRoot(uint128[8],uint32,uint128,uint128,uint128[]) (runs: 256, μ: 5277389, ~: 5237171)
WorldIDIdentityManagerDataQuery:testQueryInvalidRoot(uint256) (runs: 256, μ: 50039, ~: 50039)
WorldIDIdentityManagerDataQuery:testQueryOlderRoot(uint128[8],uint32,uint128,uint128,uint128[]) (runs: 256, μ: 5276577, ~: 5236359)
WorldIDIdentityManagerGettersSetters:testCanGetIdentityUpdateVerifierAddress() (gas: 15105)
WorldIDIdentityManagerGettersSetters:testCanGetRegisterIdentitiesVerifierAddress() (gas: 25480)
WorldIDIdentityManagerGettersSetters:testCanGetRootHistoryExpiry() (gas: 23311)
WorldIDIdentityManagerGettersSetters:testCanGetSemaphoreVerifierAddress() (gas: 15124)
WorldIDIdentityManagerGettersSetters:testCanSetIdentityUpdateVerifier() (gas: 220409)
WorldIDIdentityManagerGettersSetters:testCanSetRegisterIdentitiesVerifier() (gas: 220298)
WorldIDIdentityManagerGettersSetters:testCanSetRootHistoryExpiry(uint256) (runs: 256, μ: 33283, ~: 33283)
WorldIDIdentityManagerGettersSetters:testCanSetSemaphoreVerifier() (gas: 1011674)
WorldIDIdentityManagerGettersSetters:testCannotGetIdentityUpdateVerifierAddressUnlessViaProxy() (gas: 8540)
WorldIDIdentityManagerGettersSetters:testCannotGetRegisterIdentitiesVerifierAddressUnlessViaProxy() (gas: 8537)
WorldIDIdentityManagerGettersSetters:testCannotGetRootHistoryExpiryUnlessViaProxy() (gas: 8508)
WorldIDIdentityManagerGettersSetters:testCannotGetSemaphoreVerifierAddressUnlessViaProxy() (gas: 8603)
WorldIDIdentityManagerGettersSetters:testCannotSetIdentityUpdateVerifierUnlessOwner(address) (runs: 256, μ: 234180, ~: 234180)
WorldIDIdentityManagerGettersSetters:testCannotSetIdentityUpdateVerifierUnlessViaProxy() (gas: 198585)
WorldIDIdentityManagerGettersSetters:testCannotSetRegisterIdentitiesVerifierUnlessOwner(address) (runs: 256, μ: 234179, ~: 234179)
WorldIDIdentityManagerGettersSetters:testCannotSetRegisterIdentitiesVerifierUnlessViaProxy() (gas: 198477)
WorldIDIdentityManagerGettersSetters:testCannotSetRootHistoryExpiryToZero() (gas: 40846)
WorldIDIdentityManagerGettersSetters:testCannotSetRootHistoryExpiryUnlessOwner(address) (runs: 256, μ: 1025499, ~: 1025499)
WorldIDIdentityManagerGettersSetters:testCannotSetRootHistoryExpiryUnlessViaProxy(uint256) (runs: 256, μ: 8995, ~: 8995)
WorldIDIdentityManagerGettersSetters:testCannotSetSemaphoreVerifierAddressUnlessViaProxy() (gas: 989838)
WorldIDIdentityManagerGettersSetters:testCannotSetSemaphoreVerifierUnlessOwner(address) (runs: 256, μ: 1025565, ~: 1025565)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesAsNonManager(address) (runs: 256, μ: 72295, ~: 72295)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesIfIdentitiesIncorrect(uint256) (runs: 256, μ: 6403897, ~: 6403897)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesIfNotViaProxy() (gas: 40883)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesIfPostRootIncorrect(uint256) (runs: 256, μ: 6187583, ~: 6187583)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesIfStartIndexIncorrect(uint32) (runs: 256, μ: 6379610, ~: 6379610)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithIncorrectInputs(uint128[8],uint32,uint128,uint128,uint128[]) (runs: 256, μ: 5182337, ~: 5163184)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithInvalidIdentities(uint8,uint8) (runs: 256, μ: 148980, ~: 160082)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithOutdatedRoot(uint256,uint256) (runs: 256, μ: 5155570, ~: 5156426)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithUnreducedIdentities(uint128) (runs: 256, μ: 83139, ~: 83139)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithUnreducedPostRoot(uint128) (runs: 256, μ: 66045, ~: 66045)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithUnreducedPreRoot(uint128) (runs: 256, μ: 61404, ~: 61404)
WorldIDIdentityManagerIdentityRegistration:testCannotRegisterIdentitiesWithUnreducedStartIndex(uint256) (runs: 256, μ: 41422, ~: 41422)
WorldIDIdentityManagerIdentityRegistration:testRegisterIdentitiesWithCorrectInputs(uint128[8],uint32,uint128,uint128,uint128[]) (runs: 256, μ: 5248589, ~: 5209133)
WorldIDIdentityManagerIdentityRegistration:testRegisterIdentitiesWithCorrectInputsFromKnown() (gas: 6443473)
WorldIDIdentityManagerIdentityRegistration:testRegisterIdentitiesWithRunsOfZeroes(uint8,uint8) (runs: 256, μ: 253157, ~: 280457)
WorldIDIdentityManagerIdentityRemoval:testCannotRegisterIdentitiesWithOutdatedRoot(uint256,uint256,uint128[],uint128[8]) (runs: 256, μ: 5198190, ~: 5173584)
WorldIDIdentityManagerIdentityRemoval:testCannotRegisterIdentitiesWithUnreducedIdentities(uint128,uint256,uint128,uint128[],uint128[8]) (runs: 256, μ: 5223610, ~: 5168647)
WorldIDIdentityManagerIdentityRemoval:testCannotRemoveIdentitiesAsNonManager(address,uint128[],uint128[8]) (runs: 256, μ: 85878, ~: 73124)
WorldIDIdentityManagerIdentityRemoval:testCannotRemoveIdentitiesIfNewCommitmentIsNonZero(uint256,uint128,uint128[],uint128[8]) (runs: 256, μ: 68770, ~: 57532)
WorldIDIdentityManagerIdentityRemoval:testCannotRemoveIdentitiesWithIncorrectInputs(uint128[8],uint128,uint128,uint128[]) (runs: 256, μ: 5539289, ~: 5273700)
WorldIDIdentityManagerIdentityRemoval:testCannotUpdateIdentitiesIfNotViaProxy(uint128[],uint128[8]) (runs: 256, μ: 48784, ~: 37344)
WorldIDIdentityManagerIdentityRemoval:testCannotUpdateIdentitiesWithUnreducedPostRoot(uint128,uint128[],uint128[8]) (runs: 256, μ: 85878, ~: 70189)
WorldIDIdentityManagerIdentityRemoval:testCannotUpdateIdentitiesWithUnreducedPreRoot(uint128,uint128[],uint128[8]) (runs: 256, μ: 81280, ~: 65591)
WorldIDIdentityManagerIdentityRemoval:testRemoveIdentitiesWithCorrectInputs(uint128[8],uint128,uint128,uint128[]) (runs: 256, μ: 6231040, ~: 5373443)
WorldIDIdentityManagerIdentityUpdate:testCannotRegisterIdentitiesWithOutdatedRoot(uint256,uint256,uint128[],uint128[8]) (runs: 256, μ: 5193942, ~: 5173128)
WorldIDIdentityManagerIdentityUpdate:testCannotRegisterIdentitiesWithUnreducedIdentities(uint128,uint256,uint128,uint128[],uint128[8],bool) (runs: 256, μ: 5215592, ~: 5172930)
WorldIDIdentityManagerIdentityUpdate:testCannotUpdateIdentitiesAsNonManager(address,uint128[],uint128[8]) (runs: 256, μ: 88545, ~: 75010)
WorldIDIdentityManagerIdentityUpdate:testCannotUpdateIdentitiesIfNotViaProxy(uint128[],uint128[8]) (runs: 256, μ: 52848, ~: 40982)
WorldIDIdentityManagerIdentityUpdate:testCannotUpdateIdentitiesWithIncorrectInputs(uint128[8],uint128,uint128,uint128[]) (runs: 256, μ: 5555447, ~: 5230048)
WorldIDIdentityManagerIdentityUpdate:testCannotUpdateIdentitiesWithUnreducedPostRoot(uint128,uint128[],uint128[8]) (runs: 256, μ: 77614, ~: 67263)
WorldIDIdentityManagerIdentityUpdate:testCannotUpdateIdentitiesWithUnreducedPreRoot(uint128,uint128[],uint128[8]) (runs: 256, μ: 72949, ~: 62598)
WorldIDIdentityManagerIdentityUpdate:testUpdateIdentitiesWithCorrectInputs(uint128[8],uint128,uint128,uint128[]) (runs: 256, μ: 6001177, ~: 5334020)
WorldIDIdentityManagerInitialization:testCannotInitializeTheDelegate() (gas: 4598519)
WorldIDIdentityManagerInitialization:testInitialisation() (gas: 4894924)
WorldIDIdentityManagerInitialization:testInitializationOnlyOnce() (gas: 58034)
WorldIDIdentityManagerOwnershipManagement:testCannotRenounceOwnershipIfNotOwner(address) (runs: 256, μ: 45929, ~: 45929)
WorldIDIdentityManagerOwnershipManagement:testCannotTransferOwnerIfNotOwner(address,address) (runs: 256, μ: 46346, ~: 46346)
WorldIDIdentityManagerOwnershipManagement:testHasOwner() (gas: 20949)
WorldIDIdentityManagerOwnershipManagement:testRenounceOwnership() (gas: 24343)
WorldIDIdentityManagerOwnershipManagement:testTransferOwner(address) (runs: 256, μ: 36812, ~: 36812)
WorldIDIdentityManagerStateBridge:testCanDisableStateBridgeFunctionality() (gas: 6445867)
WorldIDIdentityManagerStateBridge:testCanEnableStateBridgeIfDisabled() (gas: 5107939)
WorldIDIdentityManagerStateBridge:testCanUpgradeStateBridgeProxy(address) (runs: 256, μ: 23923, ~: 23923)
WorldIDIdentityManagerStateBridge:testCannotDisableStateBridgeIfAlreadyDisabled() (gas: 23753)
WorldIDIdentityManagerStateBridge:testCannotEnableStateBridgeIfAlreadyEnabled() (gas: 18606)
WorldIDIdentityManagerStateBridge:testCannotUpdateStateBridgeAsNonOwner(address) (runs: 256, μ: 44290, ~: 44290)
WorldIDIdentityManagerStateBridge:testCannotUpgradeStateBridgeToZeroAddress() (gas: 16721)
WorldIDIdentityManagerUninit:testShouldNotCallCalculateInputHash() (gas: 4713510)
WorldIDIdentityManagerUninit:testShouldNotCallCheckValidRootWhileUninit() (gas: 4703750)
WorldIDIdentityManagerUninit:testShouldNotCallGetIdentityUpdateVerifierAddressWhileUninit() (gas: 4703544)
WorldIDIdentityManagerUninit:testShouldNotCallGetRootHistoryExpiryWhileUninit() (gas: 4703522)
WorldIDIdentityManagerUninit:testShouldNotCallGetSemaphoreVerifierAddressWhileUninit() (gas: 4703520)
WorldIDIdentityManagerUninit:testShouldNotCallIsInputInReducedFormWhileUninit() (gas: 4703749)
WorldIDIdentityManagerUninit:testShouldNotCallLatestRootWhileUninit() (gas: 4703609)
WorldIDIdentityManagerUninit:testShouldNotCallQueryRootWhileUninit() (gas: 4703785)
WorldIDIdentityManagerUninit:testShouldNotCallRegisterIdentitiesWhileUninit() (gas: 4731741)
WorldIDIdentityManagerUninit:testShouldNotCallRemoveIdentitiesWhileUninit(uint128[],uint128[8]) (runs: 256, μ: 4742432, ~: 4733439)
WorldIDIdentityManagerUninit:testShouldNotCallSetIdentityUpdateVerifierWhileUninit() (gas: 4893622)
WorldIDIdentityManagerUninit:testShouldNotCallSetRegisterIdentitiesVerifierWhileUninit() (gas: 4893589)
WorldIDIdentityManagerUninit:testShouldNotCallSetRootHistoryExpiryWhileUninit() (gas: 4703744)
WorldIDIdentityManagerUninit:testShouldNotCallSetSemaphoreVerifierWhileUninit() (gas: 5684562)
WorldIDIdentityManagerUninit:testShouldNotCallUpdateIdentitiesWhileUninit(uint128[],uint128[8]) (runs: 256, μ: 4747259, ~: 4736779)
WorldIDIdentityManagerUninit:testShouldNotCallgetRegisterIdentitiesVerifierAddressWhileUninit() (gas: 4703500)
WorldIDIdentityManagerUpdate:testCanUpgradeImplementationWithCall() (gas: 4721388)
WorldIDIdentityManagerUpdate:testCanUpgradeImplementationWithoutCall() (gas: 4707635)
WorldIDIdentityManagerUpdate:testCannotUpgradeUnlessManager(address) (runs: 256, μ: 4729960, ~: 4729960)
WorldIDIdentityManagerUpdate:testCannotUpgradeWithoutProxy() (gas: 4706956)
WorldIDRouterConstruction:testCanConstructRouterWithDelegate(address) (runs: 256, μ: 2561844, ~: 2561922)
WorldIDRouterConstruction:testCanConstructRouterWithNoDelegate() (gas: 100231)
WorldIDRouterDataQuery:testCanGetGroupCount() (gas: 23157)
WorldIDRouterDataQuery:testCannotGetGroupCountUnlessViaProxy() (gas: 8447)
WorldIDRouterOwnershipManagement:testCannotRenounceOwnershipIfNotOwner(address) (runs: 256, μ: 45763, ~: 45763)
WorldIDRouterOwnershipManagement:testCannotTransferOwnerIfNotOwner(address,address) (runs: 256, μ: 46173, ~: 46173)
WorldIDRouterOwnershipManagement:testHasOwner() (gas: 20879)
WorldIDRouterOwnershipManagement:testRenounceOwnership() (gas: 24159)
WorldIDRouterOwnershipManagement:testTransferOwner(address) (runs: 256, μ: 36590, ~: 36590)
WorldIDRouterRouting:testCanAddGroup(address) (runs: 256, μ: 62465, ~: 62465)
WorldIDRouterRouting:testCanDisableGroup(uint8,address) (runs: 256, μ: 4091894, ~: 1949389)
WorldIDRouterRouting:testCanGetRouteForValidGroup(uint8,address,address) (runs: 256, μ: 2278874, ~: 686030)
WorldIDRouterRouting:testCanUpdateGroup(uint8,address) (runs: 256, μ: 2017884, ~: 727237)
WorldIDRouterRouting:testCannotAddDuplicateGroup(address) (runs: 256, μ: 27381, ~: 27381)
WorldIDRouterRouting:testCannotAddGroupUnlessNumbersSequential(uint256,address) (runs: 256, μ: 30734, ~: 30734)
WorldIDRouterRouting:testCannotAddGroupUnlessOwner(address) (runs: 256, μ: 48597, ~: 48607)
WorldIDRouterRouting:testCannotAddGroupUnlessViaProxy(address) (runs: 256, μ: 8794, ~: 8794)
WorldIDRouterRouting:testCannotDisableGroupUnlessOwner(address) (runs: 256, μ: 46264, ~: 46274)
WorldIDRouterRouting:testCannotDisableGroupUnlessViaProxy(uint256) (runs: 256, μ: 8696, ~: 8696)
WorldIDRouterRouting:testCannotUpdateGroupUnlessOwner(address) (runs: 256, μ: 48543, ~: 48553)
WorldIDRouterRouting:testCannotUpdateGroupUnlessViaProxy(uint256,address) (runs: 256, μ: 8923, ~: 8923)
WorldIDRouterRouting:testShouldRevertOnDisabledGroup(uint8) (runs: 256, μ: 2494103, ~: 1146482)
WorldIDRouterRouting:testShouldRevertOnDisablingNonexistentGroup(uint256) (runs: 256, μ: 30478, ~: 30478)
WorldIDRouterRouting:testShouldRevertOnRouteRequestForMissingGroup(uint256) (runs: 256, μ: 27742, ~: 27742)
WorldIDRouterRouting:testShouldRevertOnUpdatingNonexistentGroup(uint256,address) (runs: 256, μ: 30261, ~: 30261)
WorldIDRouterRouting:testcannotGetRouteUnlessViaProxy(uint256) (runs: 256, μ: 8651, ~: 8651)
WorldIDRouterUninit:testCannotAddGroupWhileUninit(uint256,address) (runs: 256, μ: 2413459, ~: 2413459)
WorldIDRouterUninit:testCannotDisableGroupWhileUninit(uint256) (runs: 256, μ: 2413190, ~: 2413190)
WorldIDRouterUninit:testCannotGetGroupCountWhileUninit() (gas: 2412869)
WorldIDRouterUninit:testCannotGetRouteForWhileUninit(uint256) (runs: 256, μ: 2413146, ~: 2413146)
WorldIDRouterUninit:testCannotUpdateGroupWhileUninit(uint256,address) (runs: 256, μ: 2413461, ~: 2413461)
WorldIDRouterUpgrade:testCanUpgradeImplementationWithCall() (gas: 2437138)
WorldIDRouterUpgrade:testCanUpgradeImplementationWithoutCall() (gas: 2406273)
WorldIDRouterUpgrade:testCannotUpgradeUnlessManager(address) (runs: 256, μ: 2428832, ~: 2428832)
WorldIDRouterUpgrade:testCannotUpgradeWithoutProxy(address) (runs: 256, μ: 2395096, ~: 2395096)