This commit is contained in:
Jaco
2023-04-01 11:32:52 +03:00
committed by GitHub
parent 3f3c5a753f
commit 211c487297
22 changed files with 177 additions and 176 deletions
@@ -7,11 +7,11 @@ import type { AccountId, RawAuraPreDigest, RawBabePreDigestCompat } from '../int
import { Bytes, U8aFixed, u32 } from '@polkadot/types-codec';
import { BN, bnToU8a, isNumber, stringToU8a, u8aToHex, u8aToString } from '@polkadot/util';
export const CID_AURA = stringToU8a('aura');
export const CID_BABE = stringToU8a('BABE');
export const CID_GRPA = stringToU8a('FRNK');
export const CID_POW = stringToU8a('pow_');
export const CID_NMBS = stringToU8a('nmbs');
export const CID_AURA = /*#__PURE__*/ stringToU8a('aura');
export const CID_BABE = /*#__PURE__*/ stringToU8a('BABE');
export const CID_GRPA = /*#__PURE__*/ stringToU8a('FRNK');
export const CID_POW = /*#__PURE__*/ stringToU8a('pow_');
export const CID_NMBS = /*#__PURE__*/ stringToU8a('nmbs');
function getAuraAuthor (registry: Registry, bytes: Bytes, sessionValidators: AccountId[]): AccountId {
return sessionValidators[
+3 -2
View File
@@ -15,5 +15,6 @@ function convert (fn: (n: Name) => string): (n: Named) => string {
return ({ name }: Named) => fn(name);
}
export const objectNameToCamel = convert(stringCamelCase);
export const objectNameToString = convert((n) => n.toString());
export const objectNameToCamel = /*#__PURE__*/ convert(stringCamelCase);
export const objectNameToString = /*#__PURE__*/ convert((n) => n.toString());