Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
0b71dcde
Commit
0b71dcde
authored
Feb 10, 2017
by
Jorge Izquierdo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename GrantableToken to VestedToken
parent
f305382e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
VestedTokenMock.sol
contracts/test-helpers/VestedTokenMock.sol
+3
-3
VestedToken.sol
contracts/token/VestedToken.sol
+1
-1
VestedToken.js
test/VestedToken.js
+2
-2
No files found.
contracts/test-helpers/
Grantable
TokenMock.sol
→
contracts/test-helpers/
Vested
TokenMock.sol
View file @
0b71dcde
pragma solidity ^0.4.4;
import '../token/
Grantable
Token.sol';
import '../token/
Vested
Token.sol';
// mock class using StandardToken
contract
GrantableTokenMock is Grantable
Token {
function
Grantable
TokenMock(address initialAccount, uint initialBalance) {
contract
VestedTokenMock is Vested
Token {
function
Vested
TokenMock(address initialAccount, uint initialBalance) {
balances[initialAccount] = initialBalance;
totalSupply = initialBalance;
}
...
...
contracts/token/
Grantable
Token.sol
→
contracts/token/
Vested
Token.sol
View file @
0b71dcde
...
...
@@ -2,7 +2,7 @@ pragma solidity ^0.4.8;
import "./StandardToken.sol";
contract
Grantable
Token is StandardToken {
contract
Vested
Token is StandardToken {
struct TokenGrant {
address granter;
uint256 value;
...
...
test/
Grantable
Token.js
→
test/
Vested
Token.js
View file @
0b71dcde
const
assertJump
=
require
(
'./helpers/assertJump'
);
const
timer
=
require
(
'./helpers/timer'
);
contract
(
'
Grantable
Token'
,
function
(
accounts
)
{
contract
(
'
Vested
Token'
,
function
(
accounts
)
{
let
token
=
null
let
now
=
0
...
...
@@ -11,7 +11,7 @@ contract('GrantableToken', function(accounts) {
const
receiver
=
accounts
[
1
]
beforeEach
(
async
()
=>
{
token
=
await
Grantable
TokenMock
.
new
(
granter
,
100
);
token
=
await
Vested
TokenMock
.
new
(
granter
,
100
);
now
=
+
new
Date
()
/
1000
;
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment