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
light; sudo,dev,www-data | |
idimma; sudo | |
mayowa; dev,www-data | |
alice; sudo,dev | |
bob; dev,www-data | |
charlie; sudo | |
daniel; dev, www-data | |
eve; sudo, www-data | |
frank; dev | |
george; sudo,dev,www-data |
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
{ | |
"info": { | |
"_postman_id": "edcee698-68d0-4280-9929-78193919a01d", | |
"name": "platformatic collection", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "28174803" | |
}, | |
"item": [ | |
{ | |
"name": "movies Request", |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "./Token.sol"; | |
contract TokenFactory { | |
FoundationToken[] public tokens; | |
uint256 count; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract FoundationToken is ERC20 { | |
uint256 public initialAmount; | |
address public owner; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.17; | |
import { FlashLoanReceiverBase } from "./FlashLoanReceiverBase.sol"; | |
import { ILendingPool, ILendingPoolAddressesProvider, IERC20 } from "./Interfaces.sol"; | |
import { SafeMath } from "./Libraries.sol"; | |
/** | |
!!! | |
Never keep funds permanently on your FlashLoanReceiverBase contract as they could be |
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
pragma solidity ^0.8.17; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. | |
* | |
* This module is used through inheritance. It will make available the modifier | |
* `onlyOwner`, which can be aplied to your functions to restrict their use to | |
* the owner. |
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
// SPDX-License-Identifier: agpl-3.0 | |
pragma solidity 0.8.17; | |
pragma experimental ABIEncoderV2; | |
import { IERC20 } from "./Interfaces.sol"; | |
library SafeMath { | |
/** | |
* @dev Returns the addition of two unsigned integers, reverting on | |
* overflow. |
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
// SPDX-License-Identifier: agpl-3.0 | |
pragma solidity 0.8.17; | |
pragma experimental ABIEncoderV2; | |
import { DataTypes } from "./Libraries.sol"; | |
/** | |
* @dev Interface of the ERC20 standard as defined in the EIP. | |
*/ | |
interface IERC20 { |
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
// SPDX-License-Identifier: agpl-3.0 | |
pragma solidity 0.8.17; | |
import {IFlashLoanReceiver, ILendingPoolAddressesProvider, ILendingPool, IERC20 } from "./Interfaces.sol"; | |
import { SafeERC20, SafeMath } from "./Libraries.sol"; | |
abstract contract FlashLoanReceiverBase is IFlashLoanReceiver { | |
using SafeERC20 for IERC20; | |
using SafeMath for uint256; |