Forráskód Böngészése

feat: move mock solidity contracts to mocks/ folder

Matt Condon 7 éve
szülő
commit
227a335399
40 módosított fájl, 21 hozzáadás és 21 törlés
  1. 1 1
      test/BasicToken.test.js
  2. 2 2
      test/Bounty.test.js
  3. 1 1
      test/BurnableToken.test.js
  4. 1 1
      test/CanReclaimToken.test.js
  5. 1 1
      test/CappedCrowdsale.test.js
  6. 1 1
      test/DayLimit.test.js
  7. 1 1
      test/DetailedERC20.test.js
  8. 1 1
      test/FinalizableCrowdsale.test.js
  9. 2 2
      test/HasNoEther.test.js
  10. 1 1
      test/HasNoTokens.test.js
  11. 1 1
      test/LimitBalance.test.js
  12. 1 1
      test/Pausable.test.js
  13. 1 1
      test/PausableToken.test.js
  14. 1 1
      test/PullPayment.test.js
  15. 1 1
      test/RefundableCrowdsale.test.js
  16. 1 1
      test/SafeERC20.test.js
  17. 1 1
      test/SafeMath.test.js
  18. 1 1
      test/StandardToken.test.js
  19. 1 1
      test/TokenDestructible.test.js
  20. 0 0
      test/mocks/BasicTokenMock.sol
  21. 0 0
      test/mocks/BurnableTokenMock.sol
  22. 0 0
      test/mocks/CappedCrowdsaleImpl.sol
  23. 0 0
      test/mocks/DayLimitMock.sol
  24. 0 0
      test/mocks/DetailedERC20Mock.sol
  25. 0 0
      test/mocks/ERC23TokenMock.sol
  26. 0 0
      test/mocks/FinalizableCrowdsaleImpl.sol
  27. 0 0
      test/mocks/ForceEther.sol
  28. 0 0
      test/mocks/HasNoEtherTest.sol
  29. 0 0
      test/mocks/InsecureTargetBounty.sol
  30. 0 0
      test/mocks/LimitBalanceMock.sol
  31. 0 0
      test/mocks/PausableMock.sol
  32. 0 0
      test/mocks/PausableTokenMock.sol
  33. 0 0
      test/mocks/PullPaymentMock.sol
  34. 0 0
      test/mocks/ReentrancyAttack.sol
  35. 0 0
      test/mocks/ReentrancyMock.sol
  36. 0 0
      test/mocks/RefundableCrowdsaleImpl.sol
  37. 0 0
      test/mocks/SafeERC20Helper.sol
  38. 0 0
      test/mocks/SafeMathMock.sol
  39. 0 0
      test/mocks/SecureTargetBounty.sol
  40. 0 0
      test/mocks/StandardTokenMock.sol

+ 1 - 1
test/BasicToken.test.js

@@ -1,6 +1,6 @@
 const assertRevert = require('./helpers/assertRevert');
 
-var BasicTokenMock = artifacts.require('./helpers/BasicTokenMock.sol');
+var BasicTokenMock = artifacts.require('./mocks/BasicTokenMock.sol');
 
 contract('BasicToken', function (accounts) {
   it('should return the correct totalSupply after construction', async function () {

+ 2 - 2
test/Bounty.test.js

@@ -6,8 +6,8 @@ let sendReward = function (sender, receiver, value) {
     value: value,
   });
 };
-var SecureTargetBounty = artifacts.require('helpers/SecureTargetBounty.sol');
-var InsecureTargetBounty = artifacts.require('helpers/InsecureTargetBounty.sol');
+var SecureTargetBounty = artifacts.require('mocks/SecureTargetBounty.sol');
+var InsecureTargetBounty = artifacts.require('mocks/InsecureTargetBounty.sol');
 
 function awaitEvent (event, handler) {
   return new Promise((resolve, reject) => {

+ 1 - 1
test/BurnableToken.test.js

@@ -1,6 +1,6 @@
 
 const EVMRevert = require('./helpers/EVMRevert.js');
-const BurnableTokenMock = artifacts.require('./helpers/BurnableTokenMock.sol');
+const BurnableTokenMock = artifacts.require('./mocks/BurnableTokenMock.sol');
 const BigNumber = web3.BigNumber;
 
 require('chai')

+ 1 - 1
test/CanReclaimToken.test.js

@@ -2,7 +2,7 @@
 import expectThrow from './helpers/expectThrow';
 import toPromise from './helpers/toPromise';
 const CanReclaimToken = artifacts.require('../contracts/ownership/CanReclaimToken.sol');
-const BasicTokenMock = artifacts.require('./helpers/BasicTokenMock.sol');
+const BasicTokenMock = artifacts.require('./mocks/BasicTokenMock.sol');
 
 contract('CanReclaimToken', function (accounts) {
   let token = null;

+ 1 - 1
test/CappedCrowdsale.test.js

@@ -11,7 +11,7 @@ require('chai')
   .use(require('chai-bignumber')(BigNumber))
   .should();
 
-const CappedCrowdsale = artifacts.require('./helpers/CappedCrowdsaleImpl.sol');
+const CappedCrowdsale = artifacts.require('./mocks/CappedCrowdsaleImpl.sol');
 const MintableToken = artifacts.require('MintableToken');
 
 contract('CappedCrowdsale', function ([_, wallet]) {

+ 1 - 1
test/DayLimit.test.js

@@ -3,7 +3,7 @@ const assertRevert = require('./helpers/assertRevert');
 import latestTime from './helpers/latestTime';
 import { increaseTimeTo, duration } from './helpers/increaseTime';
 
-var DayLimitMock = artifacts.require('./helpers/DayLimitMock.sol');
+var DayLimitMock = artifacts.require('./mocks/DayLimitMock.sol');
 
 contract('DayLimit', function (accounts) {
   let dayLimit;

+ 1 - 1
test/DetailedERC20.test.js

@@ -5,7 +5,7 @@ require('chai')
   .use(require('chai-bignumber')(BigNumber))
   .should();
 
-const DetailedERC20Mock = artifacts.require('./helpers/DetailedERC20Mock.sol');
+const DetailedERC20Mock = artifacts.require('./mocks/DetailedERC20Mock.sol');
 
 contract('DetailedERC20', accounts => {
   let detailedERC20 = null;

+ 1 - 1
test/FinalizableCrowdsale.test.js

@@ -10,7 +10,7 @@ const should = require('chai')
   .use(require('chai-bignumber')(BigNumber))
   .should();
 
-const FinalizableCrowdsale = artifacts.require('./helpers/FinalizableCrowdsaleImpl.sol');
+const FinalizableCrowdsale = artifacts.require('./mocks/FinalizableCrowdsaleImpl.sol');
 const MintableToken = artifacts.require('MintableToken');
 
 contract('FinalizableCrowdsale', function ([_, owner, wallet, thirdparty]) {

+ 2 - 2
test/HasNoEther.test.js

@@ -2,8 +2,8 @@
 import expectThrow from './helpers/expectThrow';
 import toPromise from './helpers/toPromise';
 const HasNoEther = artifacts.require('../contracts/lifecycle/HasNoEther.sol');
-const HasNoEtherTest = artifacts.require('../helpers/HasNoEtherTest.sol');
-const ForceEther = artifacts.require('../helpers/ForceEther.sol');
+const HasNoEtherTest = artifacts.require('../mocks/HasNoEtherTest.sol');
+const ForceEther = artifacts.require('../mocks/ForceEther.sol');
 
 contract('HasNoEther', function (accounts) {
   const amount = web3.toWei('1', 'ether');

+ 1 - 1
test/HasNoTokens.test.js

@@ -2,7 +2,7 @@
 import expectThrow from './helpers/expectThrow';
 import toPromise from './helpers/toPromise';
 const HasNoTokens = artifacts.require('../contracts/lifecycle/HasNoTokens.sol');
-const ERC23TokenMock = artifacts.require('./helpers/ERC23TokenMock.sol');
+const ERC23TokenMock = artifacts.require('./mocks/ERC23TokenMock.sol');
 
 contract('HasNoTokens', function (accounts) {
   let hasNoTokens = null;

+ 1 - 1
test/LimitBalance.test.js

@@ -1,5 +1,5 @@
 
-var LimitBalanceMock = artifacts.require('helpers/LimitBalanceMock.sol');
+var LimitBalanceMock = artifacts.require('mocks/LimitBalanceMock.sol');
 const assertRevert = require('./helpers/assertRevert');
 
 contract('LimitBalance', function (accounts) {

+ 1 - 1
test/Pausable.test.js

@@ -1,6 +1,6 @@
 
 const assertRevert = require('./helpers/assertRevert');
-const PausableMock = artifacts.require('helpers/PausableMock.sol');
+const PausableMock = artifacts.require('mocks/PausableMock.sol');
 
 contract('Pausable', function (accounts) {
   it('can perform normal process in non-pause', async function () {

+ 1 - 1
test/PausableToken.test.js

@@ -1,7 +1,7 @@
 'user strict';
 
 const assertRevert = require('./helpers/assertRevert');
-var PausableTokenMock = artifacts.require('./helpers/PausableTokenMock.sol');
+var PausableTokenMock = artifacts.require('./mocks/PausableTokenMock.sol');
 
 contract('PausableToken', function (accounts) {
   let token;

+ 1 - 1
test/PullPayment.test.js

@@ -1,4 +1,4 @@
-var PullPaymentMock = artifacts.require('./helpers/PullPaymentMock.sol');
+var PullPaymentMock = artifacts.require('./mocks/PullPaymentMock.sol');
 
 contract('PullPayment', function (accounts) {
   let ppce;

+ 1 - 1
test/RefundableCrowdsale.test.js

@@ -11,7 +11,7 @@ require('chai')
   .use(require('chai-bignumber')(BigNumber))
   .should();
 
-const RefundableCrowdsale = artifacts.require('./helpers/RefundableCrowdsaleImpl.sol');
+const RefundableCrowdsale = artifacts.require('./mocks/RefundableCrowdsaleImpl.sol');
 
 contract('RefundableCrowdsale', function ([_, owner, wallet, investor]) {
   const rate = new BigNumber(1000);

+ 1 - 1
test/SafeERC20.test.js

@@ -4,7 +4,7 @@ require('chai')
   .use(require('chai-as-promised'))
   .should();
 
-const SafeERC20Helper = artifacts.require('./helpers/SafeERC20Helper.sol');
+const SafeERC20Helper = artifacts.require('./mocks/SafeERC20Helper.sol');
 
 contract('SafeERC20', function () {
   beforeEach(async function () {

+ 1 - 1
test/SafeMath.test.js

@@ -1,6 +1,6 @@
 const assertRevert = require('./helpers/assertRevert');
 const assertJump = require('./helpers/assertJump');
-var SafeMathMock = artifacts.require('./helpers/SafeMathMock.sol');
+var SafeMathMock = artifacts.require('./mocks/SafeMathMock.sol');
 
 contract('SafeMath', function (accounts) {
   let safeMath;

+ 1 - 1
test/StandardToken.test.js

@@ -1,7 +1,7 @@
 
 const assertRevert = require('./helpers/assertRevert');
 const expectThrow = require('./helpers/expectThrow');
-var StandardTokenMock = artifacts.require('./helpers/StandardTokenMock.sol');
+var StandardTokenMock = artifacts.require('./mocks/StandardTokenMock.sol');
 
 contract('StandardToken', function (accounts) {
   let token;

+ 1 - 1
test/TokenDestructible.test.js

@@ -1,6 +1,6 @@
 
 var TokenDestructible = artifacts.require('../contracts/lifecycle/TokenDestructible.sol');
-var StandardTokenMock = artifacts.require('./helpers/StandardTokenMock.sol');
+var StandardTokenMock = artifacts.require('./mocks/StandardTokenMock.sol');
 require('./helpers/transactionMined.js');
 
 contract('TokenDestructible', function (accounts) {

+ 0 - 0
test/helpers/BasicTokenMock.sol → test/mocks/BasicTokenMock.sol


+ 0 - 0
test/helpers/BurnableTokenMock.sol → test/mocks/BurnableTokenMock.sol


+ 0 - 0
test/helpers/CappedCrowdsaleImpl.sol → test/mocks/CappedCrowdsaleImpl.sol


+ 0 - 0
test/helpers/DayLimitMock.sol → test/mocks/DayLimitMock.sol


+ 0 - 0
test/helpers/DetailedERC20Mock.sol → test/mocks/DetailedERC20Mock.sol


+ 0 - 0
test/helpers/ERC23TokenMock.sol → test/mocks/ERC23TokenMock.sol


+ 0 - 0
test/helpers/FinalizableCrowdsaleImpl.sol → test/mocks/FinalizableCrowdsaleImpl.sol


+ 0 - 0
test/helpers/ForceEther.sol → test/mocks/ForceEther.sol


+ 0 - 0
test/helpers/HasNoEtherTest.sol → test/mocks/HasNoEtherTest.sol


+ 0 - 0
test/helpers/InsecureTargetBounty.sol → test/mocks/InsecureTargetBounty.sol


+ 0 - 0
test/helpers/LimitBalanceMock.sol → test/mocks/LimitBalanceMock.sol


+ 0 - 0
test/helpers/PausableMock.sol → test/mocks/PausableMock.sol


+ 0 - 0
test/helpers/PausableTokenMock.sol → test/mocks/PausableTokenMock.sol


+ 0 - 0
test/helpers/PullPaymentMock.sol → test/mocks/PullPaymentMock.sol


+ 0 - 0
test/helpers/ReentrancyAttack.sol → test/mocks/ReentrancyAttack.sol


+ 0 - 0
test/helpers/ReentrancyMock.sol → test/mocks/ReentrancyMock.sol


+ 0 - 0
test/helpers/RefundableCrowdsaleImpl.sol → test/mocks/RefundableCrowdsaleImpl.sol


+ 0 - 0
test/helpers/SafeERC20Helper.sol → test/mocks/SafeERC20Helper.sol


+ 0 - 0
test/helpers/SafeMathMock.sol → test/mocks/SafeMathMock.sol


+ 0 - 0
test/helpers/SecureTargetBounty.sol → test/mocks/SecureTargetBounty.sol


+ 0 - 0
test/helpers/StandardTokenMock.sol → test/mocks/StandardTokenMock.sol