mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-18 09:21:04 +00:00
add SPDX header to integration contracts
Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
pragma solidity ^0.8.20;
|
pragma solidity ^0.8.20;
|
||||||
|
|
||||||
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/token/ERC20/IERC20.sol
|
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/token/ERC20/IERC20.sol
|
||||||
@@ -9,7 +10,10 @@ interface IERC20 {
|
|||||||
|
|
||||||
function transfer(address recipient, uint amount) external returns (bool);
|
function transfer(address recipient, uint amount) external returns (bool);
|
||||||
|
|
||||||
function allowance(address owner, address spender) external view returns (uint);
|
function allowance(
|
||||||
|
address owner,
|
||||||
|
address spender
|
||||||
|
) external view returns (uint);
|
||||||
|
|
||||||
function approve(address spender, uint amount) external returns (bool);
|
function approve(address spender, uint amount) external returns (bool);
|
||||||
|
|
||||||
@@ -23,9 +27,6 @@ interface IERC20 {
|
|||||||
event Approval(address indexed owner, address indexed spender, uint value);
|
event Approval(address indexed owner, address indexed spender, uint value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
contract ERC20 is IERC20 {
|
contract ERC20 is IERC20 {
|
||||||
uint public totalSupply;
|
uint public totalSupply;
|
||||||
mapping(address => uint) public balanceOf;
|
mapping(address => uint) public balanceOf;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// Source:
|
// SPDX-License-Identifier: UNLICENSED
|
||||||
|
|
||||||
// https://medium.com/coinmonks/fibonacci-in-solidity-8477d907e22a
|
// https://medium.com/coinmonks/fibonacci-in-solidity-8477d907e22a
|
||||||
|
|
||||||
contract FibonacciRecursive {
|
contract FibonacciRecursive {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
contract MSize {
|
contract MSize {
|
||||||
uint[] public data;
|
uint[] public data;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
contract Value {
|
contract Value {
|
||||||
function value() public payable returns (uint ret) {
|
function value() public payable returns (uint ret) {
|
||||||
ret = msg.value;
|
ret = msg.value;
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
contract MStore8 {
|
contract MStore8 {
|
||||||
function mStore8(uint value) public pure returns (uint256 word) {
|
function mStore8(uint value) public pure returns (uint256 word) {
|
||||||
assembly {
|
assembly {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// SPDX-License-Identifier: BSD-2-Clause
|
||||||
pragma solidity ^0.8.4;
|
pragma solidity ^0.8.4;
|
||||||
|
|
||||||
contract SHA1 {
|
contract SHA1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user