Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
708 B
Solidity
29 lines
708 B
Solidity
pragma solidity ^0.5.1;
|
|
|
|
// HACK: should be removed along with the hack-ey migration
|
|
// when https://github.com/trufflesuite/truffle/pull/1085 hits
|
|
import "canonical-weth/contracts/WETH9.sol";
|
|
|
|
|
|
contract Migrations {
|
|
address public owner;
|
|
uint public lastCompletedMigration;
|
|
|
|
modifier restricted() {
|
|
if (msg.sender == owner) _;
|
|
}
|
|
|
|
constructor() public {
|
|
owner = msg.sender;
|
|
}
|
|
|
|
function setCompleted(uint completed) public restricted {
|
|
lastCompletedMigration = completed;
|
|
}
|
|
|
|
function upgrade(address newAddress) public restricted {
|
|
Migrations upgraded = Migrations(newAddress);
|
|
upgraded.setCompleted(lastCompletedMigration);
|
|
}
|
|
}
|