1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

move smart contract classes to /contracts

This commit is contained in:
Miquel A. Cabot 2022-06-02 21:55:24 +02:00
parent 79612f60c4
commit 433999ef40
17 changed files with 27 additions and 29 deletions

View File

@ -14,8 +14,8 @@ import {
estimateGas,
ZERO_ADDRESS,
ConfigHelper
} from '../utils'
import { Config } from '../config/index.js'
} from '../../utils'
import { Config } from '../../config'
import {
ProviderFees,
FreCreationParams,
@ -23,7 +23,7 @@ import {
PoolCreationParams,
DispenserCreationParams,
ConsumeMarketFee
} from '../@types/index.js'
} from '../../@types'
interface Template {
templateAddress: string

8
src/contracts/index.ts Normal file
View File

@ -0,0 +1,8 @@
export * from './factories/NFTFactory'
export * from './pools/Dispenser'
export * from './pools/FixedRateExchange'
export * from './pools/Pool'
export * from './pools/Router'
export * from './pools/SideStaking'
export * from './tokens/Datatoken'
export * from './tokens/NFT'

View File

@ -11,7 +11,7 @@ import {
estimateGas,
ConfigHelper
} from '../../utils/'
import { Datatoken } from '../../tokens'
import { Datatoken } from '..'
import { Config } from '../../config/index.js'
export interface DispenserToken {

View File

@ -3,9 +3,14 @@ import Web3 from 'web3'
import { TransactionReceipt } from 'web3-core'
import { AbiItem } from 'web3-utils'
import defaultRouter from '@oceanprotocol/contracts/artifacts/contracts/pools/FactoryRouter.sol/FactoryRouter.json'
import { getFairGasPrice, setContractDefaults, ConfigHelper, estimateGas } from '../utils'
import { Operation } from '../@types/Router'
import { Config } from '../config/index.js'
import {
getFairGasPrice,
setContractDefaults,
ConfigHelper,
estimateGas
} from '../../utils'
import { Operation } from '../../@types/Router'
import { Config } from '../../config/index.js'
/**
* Provides an interface for FactoryRouter contract

View File

@ -13,16 +13,16 @@ import {
estimateGas,
ZERO_ADDRESS,
ConfigHelper
} from '../utils'
} from '../../utils'
import {
ConsumeMarketFee,
FreOrderParams,
FreCreationParams,
ProviderFees,
PublishingMarketFee
} from '../@types'
} from '../../@types'
import { Nft } from './NFT'
import { Config } from '../config/index.js'
import { Config } from '../../config'
/**
* ERC20 ROLES

View File

@ -9,11 +9,10 @@ import {
setContractDefaults,
estimateGas,
ConfigHelper
} from '../utils'
} from '../../utils'
import { Contract } from 'web3-eth-contract'
import { MetadataProof } from '../../src/@types'
import { Config } from '../config/index.js'
import { MetadataAndTokenURI } from '../@types'
import { MetadataProof, MetadataAndTokenURI } from '../../@types'
import { Config } from '../../config'
/**
* ERC721 ROLES

View File

@ -1 +0,0 @@
export * from './NFTFactory'

View File

@ -1,7 +1,5 @@
export * from './@types'
export * from './services'
export * from './pools'
export * from './tokens'
export * from './factories'
export * from './contracts'
export * from './config'
export * from './utils'

View File

@ -1 +0,0 @@
export * from './Pool'

View File

@ -1 +0,0 @@
export * from './Dispenser'

View File

@ -1 +0,0 @@
export * from './FixedRateExchange'

View File

@ -1,5 +0,0 @@
export * from './balancer'
export * from './dispenser'
export * from './fixedRate'
export * from './ssContracts'
export * from './Router'

View File

@ -1 +0,0 @@
export * from './SideStaking'

View File

@ -1,2 +0,0 @@
export * from './Datatoken'
export * from './NFT'