Skip to content

Commit

Permalink
Refactor Ethereum folder
Browse files Browse the repository at this point in the history
  • Loading branch information
maxima-net committed Sep 6, 2022
1 parent f37fbdf commit 8b27d83
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 20 deletions.
3 changes: 1 addition & 2 deletions src/ethereum/atomexProtocol/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { EthereumWeb3AtomexProtocolMultiChain } from './ethereumWeb3AtomexProtocolMultiChain';
export { ERC20EthereumWeb3AtomexProtocolMultiChain } from './erc20EthereumWeb3AtomexProtocolMultiChain';
export { EthereumWeb3AtomexProtocolMultiChain, ERC20EthereumWeb3AtomexProtocolMultiChain } from './multiChain/index';
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { AtomexProtocolMultiChainApprovable, atomexProtocolMultiChainHelper } from '../../blockchain/atomexProtocolMultiChain';
import { AtomexProtocolMultiChainApprovable, atomexProtocolMultiChainHelper } from '../../../blockchain/atomexProtocolMultiChain';
import type {
AtomexBlockchainProvider,
AtomexProtocolMultiChainInitiateParameters,
AtomexProtocolMultiChainRedeemParameters,
AtomexProtocolMultiChainRefundParameters,
FeesInfo, Transaction, WalletsManager
} from '../../blockchain/index';
import type { AtomexNetwork } from '../../common/index';
import type { DeepReadonly } from '../../core/index';
import { Web3AtomexProtocolMultiChain } from '../../evm/index';
import type { PriceManager } from '../../exchange';
import type { ERC20EthereumWeb3AtomexProtocolMultiChainOptions } from '../models/index';
} from '../../../blockchain/index';
import type { AtomexNetwork } from '../../../common/index';
import type { DeepReadonly } from '../../../core/index';
import { Web3AtomexProtocolMultiChain } from '../../../evm/index';
import type { PriceManager } from '../../../exchange';
import type { ERC20EthereumWeb3AtomexProtocolMultiChainOptions } from '../../models/index';

export class ERC20EthereumWeb3AtomexProtocolMultiChain extends Web3AtomexProtocolMultiChain implements AtomexProtocolMultiChainApprovable {
readonly type = 'multi-chain-approvable';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { AtomexProtocolMultiChain, atomexProtocolMultiChainHelper } from '../../blockchain/atomexProtocolMultiChain';
import { AtomexProtocolMultiChain, atomexProtocolMultiChainHelper } from '../../../blockchain/atomexProtocolMultiChain';
import type {
AtomexBlockchainProvider,
AtomexProtocolMultiChainInitiateParameters,
AtomexProtocolMultiChainRedeemParameters,
AtomexProtocolMultiChainRefundParameters,
FeesInfo, Transaction, WalletsManager
} from '../../blockchain/index';
import type { AtomexNetwork } from '../../common/index';
import type { DeepReadonly } from '../../core/index';
import { Web3AtomexProtocolMultiChain } from '../../evm/index';
import type { PriceManager } from '../../exchange';
import type { EthereumWeb3AtomexProtocolMultiChainOptions } from '../models/index';
} from '../../../blockchain/index';
import type { AtomexNetwork } from '../../../common/index';
import type { DeepReadonly } from '../../../core/index';
import { Web3AtomexProtocolMultiChain } from '../../../evm/index';
import type { PriceManager } from '../../../exchange';
import type { EthereumWeb3AtomexProtocolMultiChainOptions } from '../../models/index';

export class EthereumWeb3AtomexProtocolMultiChain extends Web3AtomexProtocolMultiChain implements AtomexProtocolMultiChain {
readonly type = 'multi-chain';
Expand Down
2 changes: 2 additions & 0 deletions src/ethereum/atomexProtocol/multiChain/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { EthereumWeb3AtomexProtocolMultiChain } from './ethereumWeb3AtomexProtocolMultiChain';
export { ERC20EthereumWeb3AtomexProtocolMultiChain } from './erc20EthereumWeb3AtomexProtocolMultiChain';
6 changes: 4 additions & 2 deletions src/ethereum/config/atomexProtocol/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export { mainnetEthereumWeb3AtomexProtocolMultiChainOptions } from './mainnetMultiChainOptions';
export { testnetEthereumWeb3AtomexProtocolMultiChainOptions } from './testnetMultiChainOptions';
export {
mainnetEthereumWeb3AtomexProtocolMultiChainOptions,
testnetEthereumWeb3AtomexProtocolMultiChainOptions
} from './multiChain/index';
File renamed without changes.
2 changes: 2 additions & 0 deletions src/ethereum/config/atomexProtocol/multiChain/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { mainnetEthereumWeb3AtomexProtocolMultiChainOptions } from './mainnetMultiChainOptions';
export { testnetEthereumWeb3AtomexProtocolMultiChainOptions } from './testnetMultiChainOptions';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { EthereumWeb3AtomexProtocolMultiChainOptions } from '../../models/index';
import type { EthereumWeb3AtomexProtocolMultiChainOptions } from '../../../models/index';
import { ethereumWeb3AtomexProtocolMultiChainABI } from './base';

const mainnetNativeEthereumWeb3AtomexProtocolMultiChainOptions: EthereumWeb3AtomexProtocolMultiChainOptions = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { EthereumWeb3AtomexProtocolMultiChainOptions } from '../../models/index';
import type { EthereumWeb3AtomexProtocolMultiChainOptions } from '../../../models/index';
import { mainnetEthereumWeb3AtomexProtocolMultiChainOptions } from './mainnetMultiChainOptions';

const testnetNativeEthereumWeb3AtomexProtocolMultiChainOptions: EthereumWeb3AtomexProtocolMultiChainOptions = {
Expand Down

0 comments on commit 8b27d83

Please sign in to comment.