Skip to content

Commit

Permalink
[explorer] fix: lint problem #1184
Browse files Browse the repository at this point in the history
* [explorer] build: update submodule

* [explorer] task: fix lint
  • Loading branch information
AnthonyLaw committed May 16, 2023
1 parent ccc1a56 commit ad32723
Show file tree
Hide file tree
Showing 35 changed files with 105 additions and 105 deletions.
10 changes: 5 additions & 5 deletions __tests__/TestHelper.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
NetworkType,
Account,
NamespaceId,
SHA3Hasher,
Crypto,
Mosaic,
UInt64,
MosaicId,
NamespaceId,
NetworkType,
SHA3Hasher,
TransactionInfo,
TransactionType,
TransactionInfo
UInt64
} from 'symbol-sdk';

const generateRandomHash = (length = 32) => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/controls/ButtonCopy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CopyButton from '../../../src/components/controls/CopyButton.vue';
import helper from '../../../src/helper';
import UI from '../../../src/store/ui';
import { createLocalVue, shallowMount } from '@vue/test-utils';
import { stub, restore } from 'sinon';
import { restore, stub } from 'sinon';
import Vuex from 'vuex';

const setupStoreMount = () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/fileds/AddressField.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CopyButton from '../../../src/components/controls/CopyButton.vue';
import AddressField from '../../../src/components/fields/AddressField.vue';
import { keyRedirects } from '../../../src/config';
import UI from '../../../src/store/ui';
import { createLocalVue, shallowMount, RouterLinkStub } from '@vue/test-utils';
import { RouterLinkStub, createLocalVue, shallowMount } from '@vue/test-utils';
import Vuex from 'vuex';

const setupStoreMount = () => {
Expand Down
4 changes: 2 additions & 2 deletions __tests__/helper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import TestHelper from './TestHelper';
import Helper from '../src/helper';
import { MosaicService, NamespaceService } from '../src/infrastructure';
import http from '../src/infrastructure/http';
import { stub, restore } from 'sinon';
import { Mosaic, MosaicId, UInt64, NamespaceId, NamespaceName } from 'symbol-sdk';
import { restore, stub } from 'sinon';
import { Mosaic, MosaicId, NamespaceId, NamespaceName, UInt64 } from 'symbol-sdk';
import { register, unregister } from 'timezone-mock';

const mockTestMosaic = {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/infrastructure/AccountService.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AccountService, ChainService, NamespaceService, NodeService } from '../../src/infrastructure';
import TestHelper from '../TestHelper';
import { restore, stub } from 'sinon';
import { Mosaic, UInt64, MosaicId, Account, NetworkType } from 'symbol-sdk';
import { Account, Mosaic, MosaicId, NetworkType, UInt64 } from 'symbol-sdk';

describe('Account Service', () => {
describe('getAccountInfo', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/infrastructure/BlockService.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Helper from '../../src/helper';
import { BlockService, AccountService, NodeService, ReceiptService } from '../../src/infrastructure';
import { AccountService, BlockService, NodeService, ReceiptService } from '../../src/infrastructure';
import TestHelper from '../TestHelper';
import { restore, stub } from 'sinon';

Expand Down
6 changes: 3 additions & 3 deletions __tests__/infrastructure/CreateReceiptTransaction.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import Helper from '../../src/helper';
import { ReceiptExtractor } from '../../src/infrastructure';
import http from '../../src/infrastructure/http';
import TestHelper from '../TestHelper';
import { stub, restore } from 'sinon';
import { restore, stub } from 'sinon';
import {
MosaicId,
NamespaceId,
UInt64,
NamespaceName,
ReceiptType,
MosaicId
UInt64
} from 'symbol-sdk';

describe('ReceiptExtractor', () => {
Expand Down
12 changes: 6 additions & 6 deletions __tests__/infrastructure/CreateTransaction.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import Helper from '../../src/helper';
import { CreateTransaction, NamespaceService } from '../../src/infrastructure';
import http from '../../src/infrastructure/http';
import TestHelper from '../TestHelper';
import { stub, restore } from 'sinon';
import { restore, stub } from 'sinon';
import {
NetworkType,
Account,
NamespaceId,
UInt64,
MosaicId,
Convert,
Mosaic,
NamespaceName
MosaicId,
NamespaceId,
NamespaceName,
NetworkType,
UInt64
} from 'symbol-sdk';

/* Mock metadata transaction dto */
Expand Down
2 changes: 1 addition & 1 deletion __tests__/infrastructure/MosaicService.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MosaicService, NamespaceService, ReceiptService } from '../../src/infrastructure';
import TestHelper from '../TestHelper';
import { restore, stub } from 'sinon';
import { MosaicNonce, MosaicId } from 'symbol-sdk';
import { MosaicId, MosaicNonce } from 'symbol-sdk';

describe('Mosaic Service', () => {
let getMosaic = {};
Expand Down
2 changes: 1 addition & 1 deletion __tests__/infrastructure/NamespaceService.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NamespaceService, ChainService } from '../../src/infrastructure';
import { ChainService, NamespaceService } from '../../src/infrastructure';
import TestHelper from '../TestHelper';
import { restore, stub } from 'sinon';

Expand Down
2 changes: 1 addition & 1 deletion __tests__/infrastructure/RestrictionService.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RestrictionService } from '../../src/infrastructure';
import TestHelper from '../TestHelper';
import { MosaicId, UInt64, MosaicRestrictionType } from 'symbol-sdk';
import { MosaicId, MosaicRestrictionType, UInt64 } from 'symbol-sdk';

// Arrange:
jest.mock('../../src/infrastructure/http', () => {
Expand Down
4 changes: 2 additions & 2 deletions __tests__/infrastructure/TransactionService.spec.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Helper from '../../src/helper';
import { TransactionService, LockService } from '../../src/infrastructure';
import { LockService, TransactionService } from '../../src/infrastructure';
import http from '../../src/infrastructure/http';
import TestHelper from '../TestHelper';
import { restore, stub } from 'sinon';
import { MosaicId, UInt64, TransactionGroup } from 'symbol-sdk';
import { MosaicId, TransactionGroup, UInt64 } from 'symbol-sdk';

describe('Transaction Service', () => {
afterEach(restore);
Expand Down
2 changes: 1 addition & 1 deletion __tests__/store/ui.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AccountService, MosaicService, NamespaceService } from '../../src/infrastructure';
import ui from '../../src/store/ui';
import { stub, restore } from 'sinon';
import { restore, stub } from 'sinon';

describe('store/ui', () => {
describe('action search', () => {
Expand Down
2 changes: 1 addition & 1 deletion _symbol
Submodule _symbol updated 578 files
26 changes: 13 additions & 13 deletions src/config/constants.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import {
TransactionType,
MosaicSupplyChangeAction,
NamespaceRegistrationType,
AccountKeyTypeFlags,
AccountType,
AddressRestrictionFlag,
AliasAction,
BlockType,
LinkAction,
AccountType,
AccountKeyTypeFlags,
LockHashAlgorithm,
NetworkType,
LockStatus,
MetadataType,
ReceiptType,
ResolutionType,
AddressRestrictionFlag,
MosaicRestrictionFlag,
OperationRestrictionFlag,
MosaicRestrictionEntryType,
MosaicRestrictionFlag,
MosaicRestrictionType,
LockStatus,
BlockType
MosaicSupplyChangeAction,
NamespaceRegistrationType,
NetworkType,
OperationRestrictionFlag,
ReceiptType,
ResolutionType,
TransactionType
} from 'symbol-sdk';

class Constants {
Expand Down
10 changes: 5 additions & 5 deletions src/config/filters.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Constants from '../config/constants';
import {
TransactionType,
TransactionGroup,
AliasType,
NamespaceRegistrationType,
AccountOrderBy,
AliasType,
MetadataType,
MosaicRestrictionEntryType,
ReceiptType
NamespaceRegistrationType,
ReceiptType,
TransactionGroup,
TransactionType
} from 'symbol-sdk';

const customTransactionReceiptFilter = {
Expand Down
10 changes: 5 additions & 5 deletions src/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@

import { Constants } from './config';
import {
NamespaceService,
MosaicService,
NamespaceService,
ReceiptService
} from './infrastructure';
import http from './infrastructure/http';
import moment from 'moment';
import {
NetworkType,
Address,
MosaicId,
NamespaceId,
Address,
NetworkType,
NodeVersion,
UInt64,
TransactionType
TransactionType,
UInt64
} from 'symbol-sdk';
const Url = require('url-parse');

Expand Down
18 changes: 9 additions & 9 deletions src/infrastructure/AccountService.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ import http from './http';
import { Constants } from '../config';
import helper from '../helper';
import {
NamespaceService,
TransactionService,
ChainService,
MetadataService,
LockService,
MetadataService,
MosaicService,
NamespaceService,
ReceiptService,
MosaicService
TransactionService
} from '../infrastructure';
import nem from 'nem-sdk';
import {
Address,
TransactionType,
TransactionGroup,
Order,
BlockOrderBy,
ReceiptType,
Mosaic,
MosaicId
MosaicId,
Order,
ReceiptType,
TransactionGroup,
TransactionType
} from 'symbol-sdk';

class AccountService {
Expand Down
10 changes: 5 additions & 5 deletions src/infrastructure/AnnouncerService.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
import http from './http';
import helper from '../helper';
import {
AggregateTransaction,
Account,
Address,
AggregateTransaction,
Deadline,
HashLockTransaction,
PublicAccount,
Listener,
MosaicId,
Mosaic,
RepositoryFactoryHttp,
MosaicId,
MultisigAccountModificationTransaction,
PublicAccount,
RepositoryFactoryHttp,
TransactionService,
Deadline,
UInt64
} from 'symbol-sdk';

Expand Down
14 changes: 7 additions & 7 deletions src/infrastructure/BlockService.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ import http from './http';
import { Constants } from '../config';
import helper from '../helper';
import {
TransactionService,
ReceiptService,
AccountService,
NodeService
NodeService,
ReceiptService,
TransactionService
} from '../infrastructure';
import { sha3_256 as sha3256 } from 'js-sha3';
import { MerkleTree } from 'merkletreejs';
import { take, toArray } from 'rxjs/operators';
import {
UInt64,
TransactionGroup,
Order,
BlockOrderBy,
BlockType,
ReceiptType
Order,
ReceiptType,
TransactionGroup,
UInt64
} from 'symbol-sdk';

class BlockService {
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/CreateTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import http from './http';
import { Constants } from '../config';
import helper from '../helper';
import { NamespaceService } from '../infrastructure';
import { Address, Mosaic, MosaicId, Convert } from 'symbol-sdk';
import { Address, Convert, Mosaic, MosaicId } from 'symbol-sdk';

class CreateTransaction {
static transferTransaction = async (
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/MosaicService.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import http from './http';
import { Constants } from '../config';
import helper from '../helper';
import {
NamespaceService,
MetadataService,
NamespaceService,
ReceiptService
} from '../infrastructure';
import { Address, MosaicId, Order, ReceiptType, UInt64 } from 'symbol-sdk';
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/NamespaceService.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
MetadataService,
ReceiptService
} from '../infrastructure';
import { Order, NamespaceId, UInt64, ReceiptType, Address } from 'symbol-sdk';
import { Address, NamespaceId, Order, ReceiptType, UInt64 } from 'symbol-sdk';

class NamespaceService {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/infrastructure/ReceiptExtractor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Constants from '../config/constants';
import helper from '../helper';
import { Mosaic, ReceiptType, MosaicId } from 'symbol-sdk';
import { Mosaic, MosaicId, ReceiptType } from 'symbol-sdk';

class ReceiptExtractor {
static balanceChangeReceipt = async transactionStatement => {
Expand Down
4 changes: 2 additions & 2 deletions src/infrastructure/RestrictionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import helper from '../helper';
import {
Address,
AddressRestrictionFlag,
MosaicRestrictionFlag,
OperationRestrictionFlag,
MosaicAddressRestriction,
MosaicGlobalRestriction,
MosaicRestrictionEntryType,
MosaicRestrictionFlag,
OperationRestrictionFlag,
Order
} from 'symbol-sdk';

Expand Down
10 changes: 5 additions & 5 deletions src/infrastructure/TransactionService.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
import http from './http';
import Constants from '../config/constants';
import helper from '../helper';
import { LockService, CreateTransaction } from '../infrastructure';
import { CreateTransaction, LockService } from '../infrastructure';
import { toArray } from 'rxjs/operators';
import {
TransactionType,
Address,
TransactionInfo,
AggregateTransactionInfo,
TransactionGroup,
Mosaic,
Order,
Mosaic
TransactionGroup,
TransactionInfo,
TransactionType
} from 'symbol-sdk';

class TransactionService {
Expand Down
Loading

0 comments on commit ad32723

Please sign in to comment.