Bump dev (w/ eslint adjustments) (#750)

This commit is contained in:
Jaco
2023-04-10 10:21:15 +03:00
committed by GitHub
parent 0957599bdb
commit c81c08271b
13 changed files with 80 additions and 139 deletions
+2 -2
View File
@@ -5,6 +5,6 @@ import { Keyring } from './Keyring.js';
export { packageInfo } from './packageInfo.js';
const keyring = new Keyring();
export const keyring = new Keyring();
export { Keyring, keyring };
export { Keyring };
+12 -18
View File
@@ -15,26 +15,20 @@ function toHex (address: string): string {
);
}
const accountKey = (address: string): string =>
`${ACCOUNT_PREFIX}${toHex(address)}`;
export function accountKey (address: string): string {
return `${ACCOUNT_PREFIX}${toHex(address)}`;
}
const addressKey = (address: string): string =>
`${ADDRESS_PREFIX}${toHex(address)}`;
export function addressKey (address: string): string {
return `${ADDRESS_PREFIX}${toHex(address)}`;
}
const contractKey = (address: string): string =>
`${CONTRACT_PREFIX}${toHex(address)}`;
export function contractKey (address: string): string {
return `${CONTRACT_PREFIX}${toHex(address)}`;
}
const accountRegex = new RegExp(`^${ACCOUNT_PREFIX}0x[0-9a-f]*`, '');
export const accountRegex = new RegExp(`^${ACCOUNT_PREFIX}0x[0-9a-f]*`, '');
const addressRegex = new RegExp(`^${ADDRESS_PREFIX}0x[0-9a-f]*`, '');
export const addressRegex = new RegExp(`^${ADDRESS_PREFIX}0x[0-9a-f]*`, '');
const contractRegex = new RegExp(`^${CONTRACT_PREFIX}0x[0-9a-f]*`, '');
export {
accountKey,
accountRegex,
addressKey,
addressRegex,
contractKey,
contractRegex
};
export const contractRegex = new RegExp(`^${CONTRACT_PREFIX}0x[0-9a-f]*`, '');
@@ -4,4 +4,4 @@
import { accountKey } from '../defaults.js';
import { genericSubject } from './genericSubject.js';
export const accounts = genericSubject(accountKey, true);
export const accounts = /*#__PURE__*/ genericSubject(accountKey, true);
@@ -4,4 +4,4 @@
import { addressKey } from '../defaults.js';
import { genericSubject } from './genericSubject.js';
export const addresses = genericSubject(addressKey);
export const addresses = /*#__PURE__*/ genericSubject(addressKey);
@@ -4,4 +4,4 @@
import { contractKey } from '../defaults.js';
import { genericSubject } from './genericSubject.js';
export const contracts = genericSubject(contractKey);
export const contracts = /*#__PURE__*/ genericSubject(contractKey);
+1 -1
View File
@@ -15,7 +15,7 @@ interface Result {
contracts: SubjectInfo;
}
export const obervableAll = combineLatest([
export const obervableAll = /*#__PURE__*/ combineLatest([
accounts.subject,
addresses.subject,
contracts.subject