Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c9630d7c
Commit
c9630d7c
authored
Jul 21, 2023
by
Andreas Bigger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump patch versions for styling changes.
parent
a7bd0b11
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
18 deletions
+14
-18
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+6
-6
AttestationStation.sol
...bedrock/contracts/periphery/op-nft/AttestationStation.sol
+2
-2
Optimist.sol
...contracts-bedrock/contracts/periphery/op-nft/Optimist.sol
+2
-2
OptimistAllowlist.sol
...-bedrock/contracts/periphery/op-nft/OptimistAllowlist.sol
+2
-2
OptimistInviter.sol
...ts-bedrock/contracts/periphery/op-nft/OptimistInviter.sol
+2
-2
Optimist.t.sol
packages/contracts-bedrock/contracts/test/Optimist.t.sol
+0
-1
OptimistAllowlist.t.sol
.../contracts-bedrock/contracts/test/OptimistAllowlist.t.sol
+0
-2
OptimistInviter.t.sol
...es/contracts-bedrock/contracts/test/OptimistInviter.t.sol
+0
-1
No files found.
packages/contracts-bedrock/.gas-snapshot
View file @
c9630d7c
...
@@ -13,9 +13,9 @@ AssetReceiverTest:test_withdrawETH_succeeds() (gas: 28344)
...
@@ -13,9 +13,9 @@ AssetReceiverTest:test_withdrawETH_succeeds() (gas: 28344)
AssetReceiverTest:test_withdrawETH_unauthorized_reverts() (gas: 10680)
AssetReceiverTest:test_withdrawETH_unauthorized_reverts() (gas: 10680)
AssetReceiverTest:test_withdrawETHwithAmount_succeeds() (gas: 28241)
AssetReceiverTest:test_withdrawETHwithAmount_succeeds() (gas: 28241)
AssetReceiverTest:test_withdrawETHwithAmount_unauthorized_reverts() (gas: 10738)
AssetReceiverTest:test_withdrawETHwithAmount_unauthorized_reverts() (gas: 10738)
AttestationStationTest:test_attest_bulk_succeeds() (gas: 70374
9
)
AttestationStationTest:test_attest_bulk_succeeds() (gas: 70374
0
)
AttestationStationTest:test_attest_individual_succeeds() (gas: 6320
87
)
AttestationStationTest:test_attest_individual_succeeds() (gas: 6320
78
)
AttestationStationTest:test_attest_single_succeeds() (gas: 6513
25
)
AttestationStationTest:test_attest_single_succeeds() (gas: 6513
16
)
Bytes_slice_Test:test_slice_acrossMultipleWords_works() (gas: 9413)
Bytes_slice_Test:test_slice_acrossMultipleWords_works() (gas: 9413)
Bytes_slice_Test:test_slice_acrossWords_works() (gas: 1430)
Bytes_slice_Test:test_slice_acrossWords_works() (gas: 1430)
Bytes_slice_Test:test_slice_fromNonZeroIdx_works() (gas: 17240)
Bytes_slice_Test:test_slice_fromNonZeroIdx_works() (gas: 17240)
...
@@ -386,7 +386,7 @@ OptimismPortal_Test:test_receive_succeeds() (gas: 127513)
...
@@ -386,7 +386,7 @@ OptimismPortal_Test:test_receive_succeeds() (gas: 127513)
OptimismPortal_Test:test_simple_isOutputFinalized_succeeds() (gas: 32971)
OptimismPortal_Test:test_simple_isOutputFinalized_succeeds() (gas: 32971)
OptimismPortal_Test:test_unpause_onlyGuardian_reverts() (gas: 46098)
OptimismPortal_Test:test_unpause_onlyGuardian_reverts() (gas: 46098)
OptimismPortal_Test:test_unpause_succeeds() (gas: 31756)
OptimismPortal_Test:test_unpause_succeeds() (gas: 31756)
OptimistAllowlistTest:test_constructor_succeeds() (gas:
20476
)
OptimistAllowlistTest:test_constructor_succeeds() (gas:
16407
)
OptimistAllowlistTest:test_isAllowedToMint_fromAllowlistAttestorWithFalsyValue_fails() (gas: 49842)
OptimistAllowlistTest:test_isAllowedToMint_fromAllowlistAttestorWithFalsyValue_fails() (gas: 49842)
OptimistAllowlistTest:test_isAllowedToMint_fromAllowlistAttestor_succeeds() (gas: 49304)
OptimistAllowlistTest:test_isAllowedToMint_fromAllowlistAttestor_succeeds() (gas: 49304)
OptimistAllowlistTest:test_isAllowedToMint_fromCoinbaseQuestAttestorWithFalsyValue_fails() (gas: 49544)
OptimistAllowlistTest:test_isAllowedToMint_fromCoinbaseQuestAttestorWithFalsyValue_fails() (gas: 49544)
...
@@ -414,12 +414,12 @@ OptimistInviterTest:test_commitInvite_committingForYourself_succeeds() (gas: 138
...
@@ -414,12 +414,12 @@ OptimistInviterTest:test_commitInvite_committingForYourself_succeeds() (gas: 138
OptimistInviterTest:test_commitInvite_committingSameHashTwice_reverts() (gas: 142056)
OptimistInviterTest:test_commitInvite_committingSameHashTwice_reverts() (gas: 142056)
OptimistInviterTest:test_grantInvites_adminAddingInvites_succeeds() (gas: 190757)
OptimistInviterTest:test_grantInvites_adminAddingInvites_succeeds() (gas: 190757)
OptimistInviterTest:test_grantInvites_nonAdminAddingInvites_reverts() (gas: 14026)
OptimistInviterTest:test_grantInvites_nonAdminAddingInvites_reverts() (gas: 14026)
OptimistInviterTest:test_initialize_succeeds() (gas: 1
4724
)
OptimistInviterTest:test_initialize_succeeds() (gas: 1
0573
)
OptimistTest:test_approve_soulbound_reverts() (gas: 70487)
OptimistTest:test_approve_soulbound_reverts() (gas: 70487)
OptimistTest:test_baseURI_returnsCorrectBaseURI_succeeds() (gas: 124568)
OptimistTest:test_baseURI_returnsCorrectBaseURI_succeeds() (gas: 124568)
OptimistTest:test_burn_byNonOwner_reverts() (gas: 73197)
OptimistTest:test_burn_byNonOwner_reverts() (gas: 73197)
OptimistTest:test_burn_byOwner_succeeds() (gas: 54487)
OptimistTest:test_burn_byOwner_succeeds() (gas: 54487)
OptimistTest:test_initialize_succeeds() (gas: 2
4977
)
OptimistTest:test_initialize_succeeds() (gas: 2
0840
)
OptimistTest:test_mint_afterAllowlistAttestation_succeeds() (gas: 121465)
OptimistTest:test_mint_afterAllowlistAttestation_succeeds() (gas: 121465)
OptimistTest:test_mint_afterCoinbaseQuestAttestation_succeeds() (gas: 130362)
OptimistTest:test_mint_afterCoinbaseQuestAttestation_succeeds() (gas: 130362)
OptimistTest:test_mint_afterInviteClaimed_succeeds() (gas: 311331)
OptimistTest:test_mint_afterInviteClaimed_succeeds() (gas: 311331)
...
...
packages/contracts-bedrock/contracts/periphery/op-nft/AttestationStation.sol
View file @
c9630d7c
...
@@ -33,8 +33,8 @@ contract AttestationStation is Semver {
...
@@ -33,8 +33,8 @@ contract AttestationStation is Semver {
bytes val
bytes val
);
);
/// @custom:semver 1.1.
0
/// @custom:semver 1.1.
1
constructor() Semver(1, 1,
0
) {}
constructor() Semver(1, 1,
1
) {}
/// @notice Allows anyone to create an attestation.
/// @notice Allows anyone to create an attestation.
/// @param _about Address that the attestation is about.
/// @param _about Address that the attestation is about.
...
...
packages/contracts-bedrock/contracts/periphery/op-nft/Optimist.sol
View file @
c9630d7c
...
@@ -26,7 +26,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
...
@@ -26,7 +26,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
/// @notice Address of the OptimistAllowlist contract.
/// @notice Address of the OptimistAllowlist contract.
OptimistAllowlist public immutable OPTIMIST_ALLOWLIST;
OptimistAllowlist public immutable OPTIMIST_ALLOWLIST;
/// @custom:semver 2.0.
0
/// @custom:semver 2.0.
1
/// @param _name Token name.
/// @param _name Token name.
/// @param _symbol Token symbol.
/// @param _symbol Token symbol.
/// @param _baseURIAttestor Address of the baseURI attestor.
/// @param _baseURIAttestor Address of the baseURI attestor.
...
@@ -38,7 +38,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
...
@@ -38,7 +38,7 @@ contract Optimist is ERC721BurnableUpgradeable, Semver {
address _baseURIAttestor,
address _baseURIAttestor,
AttestationStation _attestationStation,
AttestationStation _attestationStation,
OptimistAllowlist _optimistAllowlist
OptimistAllowlist _optimistAllowlist
) Semver(2, 0,
0
) {
) Semver(2, 0,
1
) {
BASE_URI_ATTESTOR = _baseURIAttestor;
BASE_URI_ATTESTOR = _baseURIAttestor;
ATTESTATION_STATION = _attestationStation;
ATTESTATION_STATION = _attestationStation;
OPTIMIST_ALLOWLIST = _optimistAllowlist;
OPTIMIST_ALLOWLIST = _optimistAllowlist;
...
...
packages/contracts-bedrock/contracts/periphery/op-nft/OptimistAllowlist.sol
View file @
c9630d7c
...
@@ -31,7 +31,7 @@ contract OptimistAllowlist is Semver {
...
@@ -31,7 +31,7 @@ contract OptimistAllowlist is Semver {
/// attestations.
/// attestations.
address public immutable OPTIMIST_INVITER;
address public immutable OPTIMIST_INVITER;
/// @custom:semver 1.0.
0
/// @custom:semver 1.0.
1
/// @param _attestationStation Address of the AttestationStation contract.
/// @param _attestationStation Address of the AttestationStation contract.
/// @param _allowlistAttestor Address of the allowlist attestor.
/// @param _allowlistAttestor Address of the allowlist attestor.
/// @param _coinbaseQuestAttestor Address of the Coinbase Quest attestor.
/// @param _coinbaseQuestAttestor Address of the Coinbase Quest attestor.
...
@@ -41,7 +41,7 @@ contract OptimistAllowlist is Semver {
...
@@ -41,7 +41,7 @@ contract OptimistAllowlist is Semver {
address _allowlistAttestor,
address _allowlistAttestor,
address _coinbaseQuestAttestor,
address _coinbaseQuestAttestor,
address _optimistInviter
address _optimistInviter
) Semver(1, 0,
0
) {
) Semver(1, 0,
1
) {
ATTESTATION_STATION = _attestationStation;
ATTESTATION_STATION = _attestationStation;
ALLOWLIST_ATTESTOR = _allowlistAttestor;
ALLOWLIST_ATTESTOR = _allowlistAttestor;
COINBASE_QUEST_ATTESTOR = _coinbaseQuestAttestor;
COINBASE_QUEST_ATTESTOR = _coinbaseQuestAttestor;
...
...
packages/contracts-bedrock/contracts/periphery/op-nft/OptimistInviter.sol
View file @
c9630d7c
...
@@ -90,10 +90,10 @@ contract OptimistInviter is Semver, EIP712Upgradeable {
...
@@ -90,10 +90,10 @@ contract OptimistInviter is Semver, EIP712Upgradeable {
/// @notice Maps from addresses to number of invites they have.
/// @notice Maps from addresses to number of invites they have.
mapping(address => uint256) public inviteCounts;
mapping(address => uint256) public inviteCounts;
/// @custom:semver 1.0.
0
/// @custom:semver 1.0.
1
/// @param _inviteGranter Address of the invite granter.
/// @param _inviteGranter Address of the invite granter.
/// @param _attestationStation Address of the AttestationStation contract.
/// @param _attestationStation Address of the AttestationStation contract.
constructor(address _inviteGranter, AttestationStation _attestationStation) Semver(1, 0,
0
) {
constructor(address _inviteGranter, AttestationStation _attestationStation) Semver(1, 0,
1
) {
INVITE_GRANTER = _inviteGranter;
INVITE_GRANTER = _inviteGranter;
ATTESTATION_STATION = _attestationStation;
ATTESTATION_STATION = _attestationStation;
}
}
...
...
packages/contracts-bedrock/contracts/test/Optimist.t.sol
View file @
c9630d7c
...
@@ -242,7 +242,6 @@ contract OptimistTest is Optimist_Initializer {
...
@@ -242,7 +242,6 @@ contract OptimistTest is Optimist_Initializer {
// expect attestationStation to be set
// expect attestationStation to be set
assertEq(address(optimist.ATTESTATION_STATION()), address(attestationStation));
assertEq(address(optimist.ATTESTATION_STATION()), address(attestationStation));
assertEq(optimist.BASE_URI_ATTESTOR(), carol_baseURIAttestor);
assertEq(optimist.BASE_URI_ATTESTOR(), carol_baseURIAttestor);
assertEq(optimist.version(), "2.0.0");
}
}
/// @notice Bob should be able to mint an NFT if he is allowlisted
/// @notice Bob should be able to mint an NFT if he is allowlisted
...
...
packages/contracts-bedrock/contracts/test/OptimistAllowlist.t.sol
View file @
c9630d7c
...
@@ -142,8 +142,6 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
...
@@ -142,8 +142,6 @@ contract OptimistAllowlistTest is OptimistAllowlist_Initializer {
assertEq(optimistAllowlist.ALLOWLIST_ATTESTOR(), alice_allowlistAttestor);
assertEq(optimistAllowlist.ALLOWLIST_ATTESTOR(), alice_allowlistAttestor);
assertEq(optimistAllowlist.COINBASE_QUEST_ATTESTOR(), sally_coinbaseQuestAttestor);
assertEq(optimistAllowlist.COINBASE_QUEST_ATTESTOR(), sally_coinbaseQuestAttestor);
assertEq(address(optimistAllowlist.OPTIMIST_INVITER()), address(optimistInviter));
assertEq(address(optimistAllowlist.OPTIMIST_INVITER()), address(optimistInviter));
assertEq(optimistAllowlist.version(), "1.0.0");
}
}
/// @notice Base case, a account without any relevant attestations should not be able to mint.
/// @notice Base case, a account without any relevant attestations should not be able to mint.
...
...
packages/contracts-bedrock/contracts/test/OptimistInviter.t.sol
View file @
c9630d7c
...
@@ -245,7 +245,6 @@ contract OptimistInviterTest is OptimistInviter_Initializer {
...
@@ -245,7 +245,6 @@ contract OptimistInviterTest is OptimistInviter_Initializer {
// expect attestationStation to be set
// expect attestationStation to be set
assertEq(address(optimistInviter.ATTESTATION_STATION()), address(attestationStation));
assertEq(address(optimistInviter.ATTESTATION_STATION()), address(attestationStation));
assertEq(optimistInviter.INVITE_GRANTER(), alice_inviteGranter);
assertEq(optimistInviter.INVITE_GRANTER(), alice_inviteGranter);
assertEq(optimistInviter.version(), "1.0.0");
}
}
/// @notice Alice the admin should be able to give Bob, Sally, and Carol 3 invites, and the
/// @notice Alice the admin should be able to give Bob, Sally, and Carol 3 invites, and the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment