Skip to content

Instantly share code, notes, and snippets.

@melekblockchain
Created October 25, 2019 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melekblockchain/165960fef13be9737cd14186bd732b07 to your computer and use it in GitHub Desktop.
Save melekblockchain/165960fef13be9737cd14186bd732b07 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&gist=
/**
* Rupiah Token Smart Contract
* Copyright (C) 2019 PT. Rupiah Token Indonesia <https://www.rupiahtoken.com/>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* This file incorporates work covered byt the following copyright and
* permission notice:
*
* OpenZeppelin <https://github.com/OpenZeppelin/openzeppelin-solidity/>
* Copyright (c) 2016 Smart Contract Solutions, Inc.
* Modified for Rupiah Token by FengkieJ 2019.
*
* centre-tokens <https://github.com/centrehq/centre-tokens>
* Copyright CENTRE SECZ 2018.
* Modified for Rupiah Token by FengkieJ 2019.
*
* ZeppelinOS (zos) <https://github.com/zeppelinos/zos>
* Copyright (c) 2018 ZeppelinOS Global Limited.
*
* 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.
*/
pragma solidity 0.4.25;
import "./ERC20RupiahTokenV1.sol";
/**
* @title ERC20RupiahTokenV2
* @dev Version 2 for ERC20RupiahToken
* For demo purpose of zos upgradeability
*/
contract ERC20RupiahTokenV2 is ERC20RupiahToken {
string constant public shouldBeAString = "Upgraded to V2";
string public shouldBeEmptyString = "Upgraded to V2";
/**
* @dev Function to test new added functionality to the implementation.
* @param success string to return
* @return string memory from the input
*/
function getUpgradeTest(string memory success) public pure returns (string memory) {
return success;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment