This file contains hidden or 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
const fs = require("fs"); | |
const solc = require('solc') | |
let Web3 = require('web3'); | |
let web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')); | |
var input = { | |
'strings.sol': fs.readFileSync('strings.sol', 'utf8'), | |
'StringLib.sol': fs.readFileSync('StringLib.sol', 'utf8'), |
This file contains hidden or 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.4.4; | |
/** | |
* The dispatcher is a minimal 'shim' that dispatches calls to a targeted | |
* contract. Calls are made using 'delegatecall', meaning all storage and value | |
* is kept on the dispatcher. As a result, when the target is updated, the new | |
* contract inherits all the stored data and value from the old contract. | |
*/ | |
import './Upgradeable.sol'; | |
contract Dispatcher is Upgradeable { |
OlderNewer