Add path shortcuts to all paths in the system.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AccountRegistry } from '../../assets/js/eth_account_index';
|
||||
import { AccountRegistry } from '@src/assets/js/eth_account_index';
|
||||
// @ts-ignore
|
||||
import * as accountIndex from '../../assets/json/accountIndex.abi.json';
|
||||
import {environment} from '../../environments/environment';
|
||||
import * as accountIndex from '@src/assets/json/accountIndex.abi.json';
|
||||
import {environment} from '@src/environments/environment';
|
||||
const Web3 = require('web3');
|
||||
|
||||
const web3 = new Web3(environment.web3Provider);
|
||||
|
||||
@@ -2,9 +2,9 @@ export * from '@app/_helpers/custom.validator';
|
||||
export * from '@app/_helpers/error.interceptor';
|
||||
export * from '@app/_helpers/custom-error-state-matcher';
|
||||
export * from '@app/_helpers/pgp-key-store';
|
||||
export * from './mock-backend';
|
||||
export * from './array-sum';
|
||||
export * from './accountIndex';
|
||||
export * from './http-getter';
|
||||
export * from './pgp-signer';
|
||||
export * from '@app/_helpers/mock-backend';
|
||||
export * from '@app/_helpers/array-sum';
|
||||
export * from '@app/_helpers/accountIndex';
|
||||
export * from '@app/_helpers/http-getter';
|
||||
export * from '@app/_helpers/pgp-signer';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { PGPSigner } from './pgp-signer';
|
||||
let keystore;
|
||||
import { PGPSigner } from '@app/_helpers/pgp-signer';
|
||||
import {MutableKeyStore, MutablePgpKeyStore} from '@app/_helpers/pgp-key-store';
|
||||
const keystore: MutableKeyStore = new MutablePgpKeyStore();
|
||||
|
||||
describe('PgpSigner', () => {
|
||||
it('should create an instance', () => {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import {MutableKeyStore} from '@app/_helpers/pgp-key-store';
|
||||
|
||||
const openpgp = require('openpgp');
|
||||
|
||||
interface Signable {
|
||||
@@ -26,11 +28,11 @@ class PGPSigner implements Signer {
|
||||
algo = 'sha256';
|
||||
dgst: string;
|
||||
signature: Signature;
|
||||
keyStore;
|
||||
keyStore: MutableKeyStore;
|
||||
onsign: (signature: Signature) => void;
|
||||
onverify: (flag: boolean) => void;
|
||||
|
||||
constructor(keyStore) {
|
||||
constructor(keyStore: MutableKeyStore) {
|
||||
this.keyStore = keyStore;
|
||||
this.onsign = (signature: Signature) => {};
|
||||
this.onverify = (flag: boolean) => {};
|
||||
|
||||
Reference in New Issue
Block a user