Skip to content

Commit

Permalink
Add licenses (#175)
Browse files Browse the repository at this point in the history
* Add licenses

* Fix license combination

---------

Co-authored-by: Jorge Soares <[email protected]>
  • Loading branch information
dnkolegov and jsoares authored Aug 3, 2023
1 parent 740892d commit 87ba7ca
Show file tree
Hide file tree
Showing 54 changed files with 76 additions and 52 deletions.
5 changes: 5 additions & 0 deletions LICENSE-APACHE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
19 changes: 19 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2 changes: 1 addition & 1 deletion scripts/Deployer.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import { EMPTY_BYTES } from "../src/constants/Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/GatewayDiamond.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {GatewayActorStorage} from "./lib/LibGatewayActorStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/SubnetActorDiamond.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetActorStorage} from "./lib/LibSubnetActorStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/SubnetRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetActorDiamond} from "./SubnetActorDiamond.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/constants/Constants.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

address constant BURNT_FUNDS_ACTOR = address(99);
Expand Down
2 changes: 1 addition & 1 deletion src/enums/ConsensusType.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

/// @title Subnet Consensus Type enum
Expand Down
2 changes: 1 addition & 1 deletion src/enums/IPCMsgType.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

/// @title IPC Message type enum
Expand Down
2 changes: 1 addition & 1 deletion src/enums/Status.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

/// @title Subnet Status enum
Expand Down
2 changes: 1 addition & 1 deletion src/enums/VoteExecutionStatus.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

enum VoteExecutionStatus {
Expand Down
2 changes: 1 addition & 1 deletion src/errors/IPCErrors.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

error AlreadyInitialized();
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/GatewayGetterFacet.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {Status} from "../enums/Status.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/GatewayManagerFacet.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {GatewayActorModifiers} from "../lib/LibGatewayActorStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/gateway/GatewayRouterFacet.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {GatewayActorModifiers} from "../lib/LibGatewayActorStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IDiamond.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

interface IDiamond {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IDiamondCut.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {IDiamond} from "./IDiamond.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IGateway.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {BottomUpCheckpoint, TopDownCheckpoint, CrossMsg} from "../structs/Checkpoint.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ISubnetActor.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {BottomUpCheckpoint} from "../structs/Checkpoint.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/AccountHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {ADDRESS_CODEHASH} from "../constants/Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/CheckpointHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {EMPTY_HASH} from "../constants/Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/CrossMsgHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {METHOD_SEND, EMPTY_BYTES, BURNT_FUNDS_ACTOR} from "../constants/Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/EpochVoteSubmissionHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {EMPTY_HASH} from "../constants/Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ExecutableQueueHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {ExecutableQueue} from "../structs/ExecutableQueue.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/FvmAddressHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {FvmAddress, DelegatedAddress} from "../structs/FvmAddress.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LibDiamond.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {IDiamondCut} from "../interfaces/IDiamondCut.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LibGateway.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {IGateway} from "../interfaces/IGateway.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LibGatewayActorStorage.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {VoteExecutionStatus} from "../enums/VoteExecutionStatus.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LibReentrancyGuard.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

/// @title Reentrancy Guard
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LibSubnetActorStorage.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {ConsensusType} from "../enums/ConsensusType.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/LibVoting.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {VoteExecutionStatus} from "../enums/VoteExecutionStatus.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/StorableMsgHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetID} from "../structs/Subnet.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/lib/SubnetIDHelper.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetID} from "../structs/Subnet.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/structs/Checkpoint.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetID, IPCAddress} from "./Subnet.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/structs/EpochVoteSubmission.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {BottomUpCheckpoint, TopDownCheckpoint} from "./Checkpoint.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/structs/ExecutableQueue.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

struct ExecutableQueue {
Expand Down
2 changes: 1 addition & 1 deletion src/structs/FvmAddress.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

/*
Expand Down
2 changes: 1 addition & 1 deletion src/structs/Subnet.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetID} from "./Subnet.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/structs/Validator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {FvmAddress} from "../structs/FvmAddress.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/subnet/SubnetActorGetterFacet.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {FvmAddress} from "../structs/FvmAddress.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/subnet/SubnetActorManagerFacet.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {SubnetActorModifiers} from "../lib/LibSubnetActorStorage.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/AccountHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/CheckpointHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/CrossMsgHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/EpochVoteSubmissionHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/ExecutableQueueHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/FvmAddressHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/GatewayDiamond.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/LibVoting.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/StorableMsgHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/SubnetActorDiamond.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/SubnetIDHelper.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/SubnetRegistry.t.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import {EMPTY_BYTES} from "../src/constants/Constants.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/TestUtils.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: UNLICENSED
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.8.19;

import "forge-std/Test.sol";
Expand Down

0 comments on commit 87ba7ca

Please sign in to comment.