Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
HybridAllocatorTest:test_addSigner_revert_CallerNotSigner(address) (runs: 1001, μ: 20911, ~: 20911)
HybridAllocatorTest:test_addSigner_revert_signerIsZero() (gas: 20241)
HybridAllocatorTest:test_addSigner_success(address) (runs: 1001, μ: 45667, ~: 45667)
HybridAllocatorTest:test_allocateAndRegister_checkClaimHashNoWitness() (gas: 154202)
HybridAllocatorTest:test_allocateAndRegister_checkClaimHashWitness() (gas: 156090)
HybridAllocatorTest:test_allocateAndRegister_checkNonceIncrements_erc20Token() (gas: 284180)
HybridAllocatorTest:test_allocateAndRegister_checkNonceIncrements_nativeToken() (gas: 225211)
HybridAllocatorTest:test_allocateAndRegister_revert_InvalidAllocatorIdERC20() (gas: 26257)
HybridAllocatorTest:test_allocateAndRegister_revert_InvalidAllocatorIdNative() (gas: 30701)
HybridAllocatorTest:test_allocateAndRegister_revert_InvalidIds() (gas: 18197)
HybridAllocatorTest:test_allocateAndRegister_revert_InvalidValue() (gas: 29761)
HybridAllocatorTest:test_allocateAndRegister_revert_invalidTokenOrder() (gas: 94072)
HybridAllocatorTest:test_allocateAndRegister_revert_tokensNotProvided() (gas: 89461)
HybridAllocatorTest:test_allocateAndRegister_revert_zeroNativeTokensAmount() (gas: 48144)
HybridAllocatorTest:test_allocateAndRegister_revert_zeroTokensAmount() (gas: 68951)
HybridAllocatorTest:test_allocateAndRegister_slot() (gas: 143295)
HybridAllocatorTest:test_allocateAndRegister_success_erc20Token() (gas: 205628)
HybridAllocatorTest:test_allocateAndRegister_success_erc20TokenWithEmptyAmountInput() (gas: 206220)
HybridAllocatorTest:test_allocateAndRegister_success_multipleTokens() (gas: 251098)
HybridAllocatorTest:test_allocateAndRegister_success_nativeToken() (gas: 149359)
HybridAllocatorTest:test_allocateAndRegister_success_nativeTokenWithEmptyAmountInput() (gas: 149596)
HybridAllocatorTest:test_attest_revert_Unsupported() (gas: 25278)
HybridAllocatorTest:test_attest_revert_transferFailed() (gas: 95132)
HybridAllocatorTest:test_authorizeClaim_registrationDeleted() (gas: 177084)
HybridAllocatorTest:test_authorizeClaim_revert_invalidCaller(address) (runs: 1001, μ: 184831, ~: 184831)
HybridAllocatorTest:test_authorizeClaim_success_offChain(uint88) (runs: 1001, μ: 243653, ~: 243656)
HybridAllocatorTest:test_authorizeClaim_success_onChain() (gas: 303687)
HybridAllocatorTest:test_checkAllocatorId() (gas: 6933)
HybridAllocatorTest:test_checkNonce() (gas: 8274)
HybridAllocatorTest:test_checkSignerCount() (gas: 8247)
HybridAllocatorTest:test_checkSigners(address) (runs: 1001, μ: 15788, ~: 15788)
HybridAllocatorTest:test_constructor_revert_signerIsAddressZero() (gas: 38960)
HybridAllocatorTest:test_executeAllocation_revert_InvalidBalanceChange_noDeposit() (gas: 139052)
HybridAllocatorTest:test_executeAllocation_revert_InvalidPreparation() (gas: 157553)
HybridAllocatorTest:test_executeAllocation_revert_InvalidPreparation_replaySameTx() (gas: 195147)
HybridAllocatorTest:test_executeAllocation_revert_InvalidRegistration() (gas: 145394)
HybridAllocatorTest:test_executeAllocation_success_viaCaller_singleERC20() (gas: 196565)
HybridAllocatorTest:test_isClaimAuthorized_invalidSignature() (gas: 50044)
HybridAllocatorTest:test_isClaimAuthorized_signerZeroAddress() (gas: 18471)
HybridAllocatorTest:test_isClaimAuthorized_unauthorized() (gas: 159921)
HybridAllocatorTest:test_isClaimAuthorized_withSigner_bytes64() (gas: 51647)
HybridAllocatorTest:test_isClaimAuthorized_withSigner_bytes65() (gas: 51953)
HybridAllocatorTest:test_permit2Allocation_emitsAllocatedEvent() (gas: 198190)
HybridAllocatorTest:test_permit2Allocation_fullClaimFlow() (gas: 210989)
HybridAllocatorTest:test_permit2Allocation_multipleERC20() (gas: 267781)
HybridAllocatorTest:test_permit2Allocation_revert_invalidNonceCommand() (gas: 35013)
HybridAllocatorTest:test_permit2Allocation_revert_invalidNonceSponsor() (gas: 24712)
HybridAllocatorTest:test_permit2Allocation_singleERC20() (gas: 198726)
HybridAllocatorTest:test_permit2Allocation_singleERC20_withWitness() (gas: 199395)
HybridAllocatorTest:test_prepareAllocation_returnsNonce_andDoesNotIncrement() (gas: 29989)
HybridAllocatorTest:test_removeSigner_revert_CallerNotSigner(address) (runs: 1001, μ: 20806, ~: 20806)
HybridAllocatorTest:test_removeSigner_revert_InvalidSigner(address) (runs: 1001, μ: 50324, ~: 50324)
HybridAllocatorTest:test_removeSigner_revert_LastSigner() (gas: 21940)
HybridAllocatorTest:test_removeSigner_success(address) (runs: 1001, μ: 43265, ~: 43265)
HybridAllocatorTest:test_removeSigner_success_deleteSelf(address) (runs: 1001, μ: 34246, ~: 34234)
HybridAllocatorTest:test_replaceSigner_revert_CallerNotSigner(address) (runs: 1001, μ: 19776, ~: 19776)
HybridAllocatorTest:test_replaceSigner_revert_signerIsZero() (gas: 20153)
HybridAllocatorTest:test_replaceSigner_success(address) (runs: 1001, μ: 39510, ~: 39510)
HybridAllocatorTest:test_revert_authorizeClaim_InvalidSignature(uint88) (runs: 1001, μ: 185859, ~: 185859)
26 changes: 26 additions & 0 deletions foundry.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"lib/forge-chronicles": {
"rev": "d1fb566915f23a01f08747264c56f8925f15751a"
},
"lib/forge-gas-snapshot": {
"rev": "cf34ad1ed0a1f323e77557b9bce420f3385f7400"
},
"lib/forge-std": {
"rev": "c7be2a3481f9e51230880bb0949072c7e3a4da82"
},
"lib/openzeppelin-contracts": {
"rev": "99eda2225c0246c265c902475c47ec0c6321f119"
},
"lib/solady": {
"rev": "834bbc4fd366ca8bce8c532a0e3b34eca6be709c"
},
"lib/the-compact": {
"branch": {
"name": "utility-lib",
"rev": "2506f439573138c64421a6a6d822318d3e9bca52"
}
},
"lib/tribunal": {
"rev": "21b6e8096d8d940789eeb63c5d281e490fd63025"
}
}
2 changes: 1 addition & 1 deletion lib/the-compact
6 changes: 6 additions & 0 deletions snapshots/AllocationRouterTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"depositRegisterAndAllocate_explicit_singleERC20": "224087",
"depositRegisterAndAllocate_simple_multipleERC20": "293495",
"depositRegisterAndAllocate_simple_nativeToken": "192416",
"depositRegisterAndAllocate_simple_singleERC20": "224644"
}
2 changes: 1 addition & 1 deletion snapshots/ERC7683Allocator_open.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"open_simpleOrder": "168837"
"open_simpleOrder": "168865"
}
2 changes: 1 addition & 1 deletion snapshots/ERC7683Allocator_openFor.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"openFor_simpleOrder_userHimself": "172263"
"openFor_simpleOrder_userHimself": "172309"
}
19 changes: 11 additions & 8 deletions snapshots/HybridAllocatorTest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"allocateAndRegister_erc20Token": "187659",
"allocateAndRegister_erc20Token_emptyAmountInput": "188569",
"allocateAndRegister_multipleTokens": "223595",
"allocateAndRegister_nativeToken": "139222",
"allocateAndRegister_nativeToken_emptyAmountInput": "139058",
"allocateAndRegister_second_erc20Token": "114865",
"allocateAndRegister_second_nativeToken": "104858",
"hybrid_execute_single": "174805"
"allocateAndRegister_erc20Token": "170490",
"allocateAndRegister_erc20Token_emptyAmountInput": "171400",
"allocateAndRegister_multipleTokens": "206420",
"allocateAndRegister_nativeToken": "122053",
"allocateAndRegister_nativeToken_emptyAmountInput": "121889",
"allocateAndRegister_second_erc20Token": "114796",
"allocateAndRegister_second_nativeToken": "104789",
"hybrid_execute_single": "157779",
"hybrid_permit2Allocation_multipleERC20": "253503",
"hybrid_permit2Allocation_singleERC20": "187123",
"hybrid_permit2Allocation_singleERC20_withWitness": "188140"
}
16 changes: 9 additions & 7 deletions snapshots/OnChainAllocatorTest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"allocateFor_success_withRegistration": "134193",
"allocate_and_delete_expired_allocation": "66373",
"allocate_erc20": "129644",
"allocate_native": "129404",
"allocate_second_erc20": "97656",
"onchain_execute_double": "346418",
"onchain_execute_single": "220035"
"allocateFor_success_withRegistration": "134199",
"allocate_and_delete_expired_allocation": "66401",
"allocate_erc20": "129672",
"allocate_native": "129432",
"allocate_second_erc20": "97684",
"onchain_execute_double": "346560",
"onchain_execute_single": "220180",
"onchain_permit2Allocation_multipleERC20": "365724",
"onchain_permit2Allocation_singleERC20": "232132"
}
Loading