Skip to content

Commit

Permalink
Merge pull request #98 from aboutcircles/beta
Browse files Browse the repository at this point in the history
pull from beta into rc-v1.0.1-bytecode-optimization
  • Loading branch information
roleengineer authored Nov 14, 2024
2 parents aaa8a77 + a7136aa commit c141b46
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
CirclesTest:testCalculateIssuance() (gas: 3729002)
CirclesTest:testConsecutiveClaimablePeriods() (gas: 375082)
CirclesTest:testDemurragedTransfer() (gas: 229055)
CompositeMintGroupsTest:testCompositeGroupMint() (gas: 212459)
DemurrageTest:testDemurrageFactor() (gas: 79139)
DemurrageTest:testFuzzStablePointIssuance(int192) (runs: 256, μ: 63114, ~: 63250)
DemurrageTest:testInversionGammaBeta64x64_100years() (gas: 958541)
DemurrageTest:testInversionGammaBeta64x64_100years_withExtension() (gas: 1083080)
DemurrageTest:testInversionGammaBeta64x64_100years_withExtension_comparison() (gas: 1703713)
DemurrageTest:testInversionGammaBeta64x64_20years() (gas: 221562)
DemurrageTest:testRepeatedDemurrage() (gas: 15264702)
ERC20LiftTest:testERC20Demurrage() (gas: 133270)
ERC20LiftTest:testERC20Wrap() (gas: 954629)
ERC20LiftTest:testWrapAndUnwrapInflationaryERC20() (gas: 89881)
GroupMintTest:testRegisterGroup() (gas: 165153)
HubPathTransferTest:testOperateFlowMatrixConsentedFlow() (gas: 265369)
MigrationTest:testConversionMigrationV1ToTimeCircles() (gas: 18365)
MintGroupCirclesTest:testDirectSelfGroupMintFails() (gas: 341135)
MintGroupCirclesTest:testGroupMint() (gas: 340165)
MintGroupCirclesTest:testGroupMintFail() (gas: 23302)
MintGroupCirclesTest:testGroupMintMany() (gas: 858065)
MintGroupCirclesTest:testGroupMintMultiCollateral() (gas: 755126)
MintGroupCirclesTest:testSequentialGroupMint() (gas: 511760)
NamesTest:testBase58Conversion() (gas: 78904)
NamesTest:testCustomName() (gas: 40809)
NamesTest:testInvalidCustomNames() (gas: 20017)
NamesTest:testMetadataDigest() (gas: 35073)
NamesTest:testShortName() (gas: 102230)
NamesTest:testShortNameWithNonce() (gas: 73360)
NamesTest:testShortNameWithPadding() (gas: 71662)
V1MintStatusUpdateTest:testMigrationFromV1DuringBootstrap() (gas: 2542748)
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test

on:
push:
branches: [ master, develop ]
branches: [ master, develop, beta, candidate/stable ]
pull_request:
branches: [ master, develop ]
branches: [ master, develop, beta, candidate/stable ]
workflow_dispatch:

env:
Expand Down Expand Up @@ -42,3 +42,13 @@ jobs:
run: |
forge test -vvv
id: test

- name: Print compiled non-test contract sizes
run: |
forge build --skip test --sizes
id: build-sizes

- name: Print gas difference against a pre-existing snapshot
run: |
forge snapshot --diff
id: gas-diff
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ out/
# docs


# gas snapshot files
.gas-snapshot

# Ignores development broadcast logs
!/broadcast
Expand Down
1 change: 1 addition & 0 deletions test/hub/MockDeployment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import "../lift/MockERC20Lift.sol";
import "./MockHub.sol";

contract MockDeployment {
bool public IS_TEST = true;
// State variables

MockHub public hub;
Expand Down
1 change: 1 addition & 0 deletions test/hub/MockHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity >=0.8.24;
import "../../src/hub/Hub.sol";

contract MockHub is Hub {
bool public IS_TEST = true;
// Constructor

constructor(uint256 _inflationDayZero, uint256 _bootstrapTime)
Expand Down
1 change: 1 addition & 0 deletions test/hub/MockPathTransferHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import "../../src/migration/IHub.sol";
import "../../src/names/INameRegistry.sol";

contract MockPathTransferHub is Hub {
bool public IS_TEST = true;
// Constructor

constructor(uint256 _inflationDayZero, uint256 _bootstrapTime)
Expand Down

0 comments on commit c141b46

Please sign in to comment.