@@ -32,7 +32,7 @@ const IColony = artifacts.require("IColony");
32
32
const IMetaColony = artifacts . require ( "IMetaColony" ) ;
33
33
const IColonyNetwork = artifacts . require ( "IColonyNetwork" ) ;
34
34
const ITokenLocking = artifacts . require ( "ITokenLocking" ) ;
35
- const DSToken = artifacts . require ( "DSToken " ) ;
35
+ const Token = artifacts . require ( "Token " ) ;
36
36
const DSRoles = artifacts . require ( "DSRoles" ) ;
37
37
38
38
const contractLoader = new TruffleLoader ( {
@@ -75,7 +75,7 @@ contract("Colony Reward Payouts", accounts => {
75
75
await colony . setRewardInverse ( 100 ) ;
76
76
77
77
const otherTokenArgs = getTokenArgs ( ) ;
78
- otherToken = await DSToken . new ( otherTokenArgs [ 0 ] ) ;
78
+ otherToken = await Token . new ( otherTokenArgs ) ;
79
79
80
80
await fundColonyWithTokens ( colony , otherToken , initialFunding ) ;
81
81
await colony . mintTokens ( initialFunding . muln ( 100 ) . divn ( 99 ) ) ; // Tke in to account 1% being siphoned off for rewards
@@ -144,7 +144,7 @@ contract("Colony Reward Payouts", accounts => {
144
144
145
145
it ( "should not be able to create reward payout if passed reputation is not from the correct colony" , async ( ) => {
146
146
const tokenArgs = getTokenArgs ( ) ;
147
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
147
+ const newToken = await Token . new ( tokenArgs ) ;
148
148
const { logs } = await colonyNetwork . createColony ( newToken . address ) ;
149
149
const { colonyAddress } = logs [ 0 ] . args ;
150
150
const newColony = await IColony . at ( colonyAddress ) ;
@@ -262,7 +262,7 @@ contract("Colony Reward Payouts", accounts => {
262
262
263
263
it ( "should not be able to start a reward payout if no one holds colony tokens" , async ( ) => {
264
264
const tokenArgs = getTokenArgs ( ) ;
265
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
265
+ const newToken = await Token . new ( tokenArgs ) ;
266
266
const { logs } = await colonyNetwork . createColony ( newToken . address ) ;
267
267
const { colonyAddress } = logs [ 0 ] . args ;
268
268
const newColony = await IColony . at ( colonyAddress ) ;
@@ -298,7 +298,7 @@ contract("Colony Reward Payouts", accounts => {
298
298
299
299
it ( "should be able to collect rewards from multiple payouts of different token" , async ( ) => {
300
300
const tokenArgs = getTokenArgs ( ) ;
301
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
301
+ const newToken = await Token . new ( tokenArgs ) ;
302
302
await fundColonyWithTokens ( colony , newToken , initialFunding ) ;
303
303
304
304
const tx1 = await colony . startNextRewardPayout ( newToken . address , ...colonyWideReputationProof ) ;
@@ -313,7 +313,7 @@ contract("Colony Reward Payouts", accounts => {
313
313
314
314
it ( "should not be able to claim payout if colony-wide reputation is 0" , async ( ) => {
315
315
const tokenArgs = getTokenArgs ( ) ;
316
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
316
+ const newToken = await Token . new ( tokenArgs ) ;
317
317
const { logs } = await colonyNetwork . createColony ( newToken . address ) ;
318
318
const { colonyAddress } = logs [ 0 ] . args ;
319
319
const newColony = await IColony . at ( colonyAddress ) ;
@@ -456,7 +456,7 @@ contract("Colony Reward Payouts", accounts => {
456
456
457
457
it ( "should not be able to claim funds if previous payout is not claimed" , async ( ) => {
458
458
const tokenArgs = getTokenArgs ( ) ;
459
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
459
+ const newToken = await Token . new ( tokenArgs ) ;
460
460
await fundColonyWithTokens ( colony , newToken , initialFunding ) ;
461
461
462
462
await colony . startNextRewardPayout ( otherToken . address , ...colonyWideReputationProof ) ;
@@ -559,7 +559,7 @@ contract("Colony Reward Payouts", accounts => {
559
559
it ( "should be able to collect payout from two colonies at the same time" , async ( ) => {
560
560
// Setting up a new token and two colonies
561
561
const tokenArgs = getTokenArgs ( ) ;
562
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
562
+ const newToken = await Token . new ( tokenArgs ) ;
563
563
564
564
let { logs } = await colonyNetwork . createColony ( newToken . address ) ;
565
565
let { colonyAddress } = logs [ 0 ] . args ;
@@ -676,7 +676,7 @@ contract("Colony Reward Payouts", accounts => {
676
676
it ( "should not be able to claim reward payout from a colony that didn't create it" , async ( ) => {
677
677
// Setting up a new token and two colonies
678
678
const tokenArgs = getTokenArgs ( ) ;
679
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
679
+ const newToken = await Token . new ( tokenArgs ) ;
680
680
681
681
let { logs } = await colonyNetwork . createColony ( newToken . address ) ;
682
682
let { colonyAddress } = logs [ 0 ] . args ;
@@ -815,14 +815,14 @@ contract("Colony Reward Payouts", accounts => {
815
815
total reputation/tokens: ${ data . totalReputation . toString ( ) } ` , async ( ) => {
816
816
// Setting up a new token and colony
817
817
const tokenArgs = getTokenArgs ( ) ;
818
- const newToken = await DSToken . new ( tokenArgs [ 1 ] ) ;
818
+ const newToken = await Token . new ( tokenArgs ) ;
819
819
let { logs } = await colonyNetwork . createColony ( newToken . address ) ;
820
820
const { colonyAddress } = logs [ 0 ] . args ;
821
821
await newToken . setOwner ( colonyAddress ) ;
822
822
const newColony = await IColony . at ( colonyAddress ) ;
823
823
824
824
const payoutTokenArgs = getTokenArgs ( ) ;
825
- const payoutToken = await DSToken . new ( payoutTokenArgs [ 0 ] ) ;
825
+ const payoutToken = await Token . new ( payoutTokenArgs ) ;
826
826
await fundColonyWithTokens ( newColony , payoutToken , data . totalAmountOfPayoutTokens ) ;
827
827
// Issuing colony's internal tokens so they can be given to users in `bootstrapColony`
828
828
await newColony . mintTokens ( data . totalReputation ) ;
0 commit comments