Skip to content

Commit 6b2183f

Browse files
committed
merge conflicts
2 parents db2b1a0 + 6f3e5dd commit 6b2183f

File tree

2 files changed

+61
-6
lines changed

2 files changed

+61
-6
lines changed

PreMint.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ contract SRTToken is Ownable,StandardToken,WhiteListedContracts {
147147
using SafeMath for uint256;
148148

149149
string constant public name = 'SpringRole Pre Mint Token';
150-
string constant public symbol = 'SRT';
150+
string constant public symbol = 'SRPMT';
151151
uint constant public decimals = 18;
152152
uint256 public totalSupply;
153153

Vanity.sol

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,60 @@ contract Ownable {
5757

5858
}
5959

60+
/**
61+
* @title Pausable
62+
* @dev Base contract which allows children to implement an emergency stop mechanism.
63+
*/
64+
65+
contract Pausable is Ownable {
66+
event Pause();
67+
event Unpause();
68+
69+
bool public paused = false;
70+
71+
72+
/**
73+
* @dev Modifier to make a function callable only when the contract is not paused.
74+
*/
75+
modifier whenNotPaused() {
76+
require(!paused);
77+
_;
78+
}
79+
80+
/**
81+
* @dev Modifier to make a function callable only when the contract is paused.
82+
*/
83+
modifier whenPaused() {
84+
require(paused);
85+
_;
86+
}
87+
88+
/**
89+
* @dev called by the owner to pause, triggers stopped state
90+
*/
91+
function pause() onlyOwner whenNotPaused public {
92+
paused = true;
93+
Pause();
94+
}
95+
96+
/**
97+
* @dev called by the owner to unpause, returns to normal state
98+
*/
99+
function unpause() onlyOwner whenPaused public {
100+
paused = false;
101+
Unpause();
102+
}
103+
}
104+
60105

61106
/**
62107
* @title VanityURL
63-
* @dev The VanityURL contract provides functionality to reserve vanitry URLs.
64-
* Go to https://beta.springrole.com to reserve.
108+
* @dev The VanityURL contract provides functionality to reserve vanitry URLs.
109+
* Go to https://beta.springrole.com to reserve.
65110
*/
66111

67112

68-
contract VanityURL is Ownable {
113+
contract VanityURL is Ownable,Pausable {
69114

70115
// This declares a state variable that would store the contract address
71116
SRTToken public tokenAddress;
@@ -91,6 +136,16 @@ contract VanityURL is Ownable {
91136

92137
event VanityReserved(address _from, string _vanity_url);
93138

139+
/* function to update Token address */
140+
function updateTokenAddress (address _tokenAddress) onlyOwner public {
141+
tokenAddress = SRTToken(_tokenAddress);
142+
}
143+
144+
/* function to update transferTokenTo */
145+
function updateTokenTransferAddress (address _transferTokenTo) onlyOwner public {
146+
transferTokenTo = _transferTokenTo;
147+
}
148+
94149
/* function to add reserve keyword */
95150
function addReservedKeyword (string _keyword) onlyOwner public {
96151
reservedKeywords[_keyword] = 1;
@@ -120,7 +175,7 @@ contract VanityURL is Ownable {
120175
5. Transfer the token
121176
6. Update the mapping variables
122177
*/
123-
function reserve(string _vanity_url) public {
178+
function reserve(string _vanity_url) whenNotPaused public {
124179
require(checkForValidity(_vanity_url));
125180
require(vanity_address_mapping[_vanity_url] == address(0x0));
126181
require(bytes(address_vanity_mapping[msg.sender]).length == 0);
@@ -155,7 +210,7 @@ contract VanityURL is Ownable {
155210
5. Update the mapping variables
156211
*/
157212

158-
function changeVanityURL(string _vanity_url) public {
213+
function changeVanityURL(string _vanity_url) whenNotPaused public {
159214
require(bytes(address_vanity_mapping[msg.sender]).length != 0);
160215
require(checkForValidity(_vanity_url));
161216
require(vanity_address_mapping[_vanity_url] == address(0x0));

0 commit comments

Comments
 (0)