Add path shortcuts to all paths in the system.

This commit is contained in:
Spencer Ofwiti
2021-02-17 15:49:04 +03:00
parent 63c5a63d81
commit 0e07e4ccdc
72 changed files with 4169 additions and 874 deletions

View File

@@ -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);

View File

@@ -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';

View File

@@ -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', () => {

View File

@@ -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) => {};