Skip to content

Commit

Permalink
Removed old utils
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcontracts committed Jun 9, 2019
1 parent cee1477 commit 93609a4
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 221 deletions.
2 changes: 1 addition & 1 deletion packages/utils/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Internal Imports */
import { getNullString } from './misc'
import { getNullString } from './utils'

export const NULL_ADDRESS = getNullString(32)
export const NULL_HASH = getNullString(64)
2 changes: 0 additions & 2 deletions packages/utils/src/data-types/index.ts

This file was deleted.

51 changes: 0 additions & 51 deletions packages/utils/src/data-types/state-object.ts

This file was deleted.

77 changes: 0 additions & 77 deletions packages/utils/src/data-types/state-update.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/utils/src/eth/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './ethereum'
export * from './misc'
export * from './utils'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ethers } from 'ethers'

/* Internal Imports */
import { add0x } from '../misc'
import { add0x } from '../utils'

export const abi = new ethers.utils.AbiCoder()

Expand Down
6 changes: 2 additions & 4 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export * from './eth'
export * from './data-types'
export * from './utils'
export * from './constants'
export * from './misc'
export * from './eth'
export * from './sum-tree'
export * from './interfaces'
37 changes: 0 additions & 37 deletions packages/utils/src/interfaces/data-types.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/utils/src/interfaces/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/utils/src/sum-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import BigNum = require('bn.js')

/* Internal Imports */
import { keccak256 } from './eth'
import { reverse } from './misc'
import { reverse } from './utils'
import { NULL_HASH } from './constants'

export interface ImplicitBounds {
Expand Down
File renamed without changes.
20 changes: 0 additions & 20 deletions packages/utils/test/data-types/state-object.spec.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/utils/test/data-types/state-update.spec.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '../setup'

/* Internal Imports */
import { keccak256 } from '../../src/eth'
import { keccak256 } from '../../src/eth/utils'

describe('Ethereum Utils', () => {
describe('keccak256', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './setup'

/* Internal Imports */
import { sleep, remove0x, add0x, getNullString, isObject } from '../src/misc'
import { sleep, remove0x, add0x, getNullString, isObject } from '../src/utils'

describe('Miscellanous Utils', () => {
describe('sleep', () => {
Expand Down

0 comments on commit 93609a4

Please sign in to comment.