Skip to content

Commit

Permalink
Update rsk-contract-parser path
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorizzo committed Jan 29, 2021
1 parent 7382455 commit 0dafc1e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 21 deletions.
27 changes: 12 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"homepage": "https://github.com/rsksmart/rsk-explorer-api",
"dependencies": {
"@rsksmart/nod3": "^0.4.1",
"@rsksmart/rsk-contract-parser": "0.0.9",
"@rsksmart/rsk-js-cli": "^1.0.0",
"@rsksmart/rsk-utils": "^1.1.0",
"bignumber.js": "^7.2.1",
Expand All @@ -36,7 +37,6 @@
"grpc": "^1.24.3",
"mongodb": "^3.6.1",
"rlp": "^2.2.5",
"rsk-contract-parser": "git+https://github.com/rsksmart/rsk-contract-parser.git",
"rsk-openapi-ui": "git+https://[email protected]/rsksmart/rsk-openapi-ui.git",
"socket.io": "^2.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/dbPatches/tokenAccountBalances.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import dataSource from '../lib/dataSource.js'
import nod3 from '../lib/nod3Connect'
import ContractParser from 'rsk-contract-parser'
import ContractParser from '@rsksmart/rsk-contract-parser'
import { add0x } from '@rsksmart/rsk-utils'

const parser = new ContractParser({ nod3 })
Expand Down
2 changes: 1 addition & 1 deletion src/services/classes/Address.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BcThing } from './BcThing'
import { isBlockObject, isNullData, isAddress, isValidBlockNumber } from '../../lib/utils'
import { fields, addrTypes } from '../../lib/types'
import Contract from './Contract'
import { BcSearch } from 'rsk-contract-parser'
import { BcSearch } from '@rsksmart/rsk-contract-parser'
import { createTxObject } from './Tx'
import { InternalTx, checkInternalTransactionData } from './InternalTx'
import { isZeroAddress } from '@rsksmart/rsk-utils'
Expand Down
2 changes: 1 addition & 1 deletion src/services/classes/BcStats.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BlocksBase } from '../../lib/BlocksBase'
import getCirculatingSupply from '../../api/lib/getCirculatingSupply'
import getActiveAccounts from '../../api/lib/getActiveAccounts'
import { Contract, abi as ABI } from 'rsk-contract-parser'
import { Contract, abi as ABI } from '@rsksmart/rsk-contract-parser'
import { serialize } from '../../lib/utils'

export class BcStats extends BlocksBase {
Expand Down
2 changes: 1 addition & 1 deletion src/services/classes/Contract.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BcThing } from './BcThing'
import ContractParser from 'rsk-contract-parser'
import ContractParser from '@rsksmart/rsk-contract-parser'
import { tokensInterfaces } from '../../lib/types'
import TokenAddress from './TokenAddress'
import { hasValue } from '../../lib/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/services/classes/UpdateTokenAccountBalances.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import { add0x } from '@rsksmart/rsk-utils'
import ContractParser from 'rsk-contract-parser'
import ContractParser from '@rsksmart/rsk-contract-parser'

export async function updateTokenAccountBalances (block, { nod3, collections, log }) {
const parser = new ContractParser({ nod3 })
Expand Down

0 comments on commit 0dafc1e

Please sign in to comment.