-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into shef-protonet-validator-network-ci
- Loading branch information
Showing
17 changed files
with
844 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// solhint-disable one-contract-per-file | ||
// solhint-disable no-empty-blocks | ||
// solhint-disable payable-fallback | ||
|
||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
// | ||
// Normal noop functions only with nonpayable, payable, view, and pure modifiers | ||
// | ||
interface NoopNoReceiveNoFallback { | ||
function noopNonpayable() external; | ||
function noopPayable() external payable; | ||
function noopView() external view; | ||
function noopPure() external pure; | ||
} | ||
contract NoopNoReceiveNoFallbackMock is NoopNoReceiveNoFallback { | ||
function noopNonpayable() external {} | ||
function noopPayable() external payable {} | ||
function noopView() external view {} | ||
function noopPure() external pure {} | ||
} | ||
|
||
// | ||
// Added receive function (always payable) | ||
// | ||
interface NoopReceiveNoFallback is NoopNoReceiveNoFallback { | ||
receive() external payable; | ||
} | ||
contract NoopReceiveNoFallbackMock is NoopReceiveNoFallback, NoopNoReceiveNoFallbackMock { | ||
receive() external payable {} | ||
} | ||
|
||
// | ||
// Added receive function and payable fallback | ||
// | ||
interface NoopReceivePayableFallback is NoopNoReceiveNoFallback { | ||
receive() external payable; | ||
fallback() external payable; | ||
} | ||
contract NoopReceivePayableFallbackMock is NoopReceivePayableFallback, NoopNoReceiveNoFallbackMock { | ||
receive() external payable {} | ||
fallback() external payable {} | ||
} | ||
|
||
// | ||
// Added receive function and non-payable fallback | ||
// | ||
interface NoopReceiveNonpayableFallback is NoopNoReceiveNoFallback { | ||
receive() external payable; | ||
fallback() external; | ||
} | ||
contract NoopReceiveNonpayableFallbackMock is NoopReceiveNonpayableFallback, NoopNoReceiveNoFallbackMock { | ||
receive() external payable {} | ||
fallback() external {} | ||
} | ||
|
||
// | ||
// Added payable fallback and no receive function | ||
// | ||
// solc-ignore-next-line missing-receive | ||
interface NoopNoReceivePayableFallback is NoopNoReceiveNoFallback { | ||
fallback() external payable; | ||
} | ||
// solc-ignore-next-line missing-receive | ||
contract NoopNoReceivePayableFallbackMock is NoopNoReceivePayableFallback, NoopNoReceiveNoFallbackMock { | ||
fallback() external payable {} | ||
} | ||
|
||
// | ||
// Added non-payable fallback and no receive function | ||
// | ||
interface NoopNoReceiveNonpayableFallback is NoopNoReceiveNoFallback { | ||
fallback() external; | ||
} | ||
contract NoopNoReceiveNonpayableFallbackMock is NoopNoReceiveNonpayableFallback, NoopNoReceiveNoFallbackMock { | ||
fallback() external {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.