Use .js imports in src (#5526)
* Use .js imports in src * Adjust * Fix imports * Bump dev * Adjust with .js imports for typegen * Adjust * Adjust * Remove target override
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import * as typeDefinitions from './interfaces/definitions';
|
||||
import rpcDefinitions from './interfaces/jsonrpc';
|
||||
import * as typeDefinitions from './interfaces/definitions.js';
|
||||
import rpcDefinitions from './interfaces/jsonrpc.js';
|
||||
|
||||
export * from './codec';
|
||||
export * from './create';
|
||||
export * from './index.types';
|
||||
export * from './metadata';
|
||||
export * from './codec/index.js';
|
||||
export * from './create/index.js';
|
||||
export * from './index.types.js';
|
||||
export * from './metadata/index.js';
|
||||
|
||||
export { TypeDefInfo } from '@polkadot/types-create';
|
||||
|
||||
export { convertSiV0toV1 } from './metadata/PortableRegistry';
|
||||
export { packageInfo } from './packageInfo';
|
||||
export { unwrapStorageType } from './primitive/StorageKey';
|
||||
export { convertSiV0toV1 } from './metadata/PortableRegistry/index.js';
|
||||
export { packageInfo } from './packageInfo.js';
|
||||
export { unwrapStorageType } from './primitive/StorageKey.js';
|
||||
|
||||
export { typeDefinitions, rpcDefinitions };
|
||||
|
||||
@@ -5,11 +5,11 @@ import '@polkadot/types-augment';
|
||||
|
||||
import type { Bytes, Compact, Option, u32 } from '@polkadot/types-codec';
|
||||
import type { IOption, ITuple } from '@polkadot/types-codec/types';
|
||||
import type { AccountId, BlockAttestations, SessionKeys7 } from './interfaces';
|
||||
import type { AccountId, BlockAttestations, SessionKeys7 } from './interfaces/index.js';
|
||||
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from './create';
|
||||
import { TypeRegistry } from './create/index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { TypeDefInfo } from '@polkadot/types-create';
|
||||
|
||||
import { createClass, getTypeClass, TypeRegistry } from '.';
|
||||
import { createClass, getTypeClass, TypeRegistry } from './index.js';
|
||||
|
||||
describe('createClass', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Codec, CodecClass, Registry } from '@polkadot/types-codec/types';
|
||||
import type { DetectCodec } from '../types';
|
||||
import type { DetectCodec } from '../types/index.js';
|
||||
|
||||
import { createClassUnsafe } from '@polkadot/types-create';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { CodecSet, Int } from '@polkadot/types-codec';
|
||||
|
||||
import { createClass, TypeRegistry } from '.';
|
||||
import { createClass, TypeRegistry } from './index.js';
|
||||
|
||||
describe('createType', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Codec, Registry } from '@polkadot/types-codec/types';
|
||||
import type { DetectCodec } from '../types';
|
||||
import type { DetectCodec } from '../types/index.js';
|
||||
|
||||
import { createTypeUnsafe } from '@polkadot/types-create';
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
export * from '@polkadot/types-create';
|
||||
|
||||
export * from './createClass';
|
||||
export * from './createType';
|
||||
export * from './lazy';
|
||||
export * from './registry';
|
||||
export * from './createClass.js';
|
||||
export * from './createType.js';
|
||||
export * from './lazy.js';
|
||||
export * from './registry.js';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { SiLookupTypeId, SiVariant } from '../interfaces';
|
||||
import type { PortableRegistry } from '../metadata';
|
||||
import type { SiLookupTypeId, SiVariant } from '../interfaces/index.js';
|
||||
import type { PortableRegistry } from '../metadata/index.js';
|
||||
|
||||
import { lazyMethod } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { DoNotConstruct, Struct, Text, U32 } from '@polkadot/types-codec';
|
||||
import { isChildClass, u8aToU8a } from '@polkadot/util';
|
||||
import { keccakAsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
import { TypeRegistry } from '.';
|
||||
import { TypeRegistry } from './index.js';
|
||||
|
||||
describe('TypeRegistry', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -4,23 +4,23 @@
|
||||
import type { AnyString, Codec, CodecClass, IU8a, LookupString } from '@polkadot/types-codec/types';
|
||||
import type { CreateOptions, TypeDef } from '@polkadot/types-create/types';
|
||||
import type { ExtDef } from '../extrinsic/signedExtensions/types';
|
||||
import type { ChainProperties, DispatchErrorModule, DispatchErrorModuleU8, DispatchErrorModuleU8a, EventMetadataLatest, Hash, MetadataLatest, SiField, SiLookupTypeId, SiVariant, WeightV1, WeightV2 } from '../interfaces/types';
|
||||
import type { CallFunction, CodecHasher, Definitions, DetectCodec, RegisteredTypes, Registry, RegistryError, RegistryTypes } from '../types';
|
||||
import type { ChainProperties, DispatchErrorModule, DispatchErrorModuleU8, DispatchErrorModuleU8a, EventMetadataLatest, Hash, MetadataLatest, SiField, SiLookupTypeId, SiVariant, WeightV1, WeightV2 } from '../interfaces/types.js';
|
||||
import type { CallFunction, CodecHasher, Definitions, DetectCodec, RegisteredTypes, Registry, RegistryError, RegistryTypes } from '../types/index.js';
|
||||
|
||||
import { DoNotConstruct, Json, Raw } from '@polkadot/types-codec';
|
||||
import { constructTypeClass, createClassUnsafe, createTypeUnsafe } from '@polkadot/types-create';
|
||||
import { assertReturn, BN_ZERO, formatBalance, isBn, isFunction, isNumber, isString, isU8a, lazyMethod, logger, objectSpread, stringCamelCase, stringify } from '@polkadot/util';
|
||||
import { blake2AsU8a } from '@polkadot/util-crypto';
|
||||
|
||||
import { expandExtensionTypes, fallbackExtensions, findUnknownExtensions } from '../extrinsic/signedExtensions';
|
||||
import { GenericEventData } from '../generic/Event';
|
||||
import * as baseTypes from '../index.types';
|
||||
import * as definitions from '../interfaces/definitions';
|
||||
import { decorateConstants, filterCallsSome, filterEventsSome } from '../metadata/decorate';
|
||||
import { createCallFunction } from '../metadata/decorate/extrinsics';
|
||||
import { Metadata } from '../metadata/Metadata';
|
||||
import { PortableRegistry } from '../metadata/PortableRegistry';
|
||||
import { lazyVariants } from './lazy';
|
||||
import { expandExtensionTypes, fallbackExtensions, findUnknownExtensions } from '../extrinsic/signedExtensions/index.js';
|
||||
import { GenericEventData } from '../generic/Event.js';
|
||||
import * as baseTypes from '../index.types.js';
|
||||
import * as definitions from '../interfaces/definitions.js';
|
||||
import { createCallFunction } from '../metadata/decorate/extrinsics/index.js';
|
||||
import { decorateConstants, filterCallsSome, filterEventsSome } from '../metadata/decorate/index.js';
|
||||
import { Metadata } from '../metadata/Metadata.js';
|
||||
import { PortableRegistry } from '../metadata/PortableRegistry/index.js';
|
||||
import { lazyVariants } from './lazy.js';
|
||||
|
||||
const DEFAULT_FIRST_CALL_IDX = new Uint8Array(2);
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import others from './detectOther';
|
||||
import { packageInfo } from './packageInfo';
|
||||
import others from './detectOther.js';
|
||||
import { packageInfo } from './packageInfo.js';
|
||||
|
||||
detectPackage(packageInfo, null, others);
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
import { Raw } from '@polkadot/types-codec';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericEthereumAccountId as AccountId } from './AccountId';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericEthereumAccountId as AccountId } from './AccountId.js';
|
||||
|
||||
describe('EthereumAccountId', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericAccountIndex as AccountIndex } from '../generic';
|
||||
import { GenericEthereumAccountId as AccountId, GenericEthereumLookupSource as Address } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericAccountIndex as AccountIndex } from '../generic/index.js';
|
||||
import { GenericEthereumAccountId as AccountId, GenericEthereumLookupSource as Address } from './index.js';
|
||||
|
||||
describe('EthereumLookupSource', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -9,8 +9,8 @@ import { AbstractBase } from '@polkadot/types-codec';
|
||||
import { isBigInt, isBn, isHex, isNumber, isU8a, u8aConcat, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { GenericAccountIndex } from '../generic/AccountIndex';
|
||||
import { GenericEthereumAccountId } from './AccountId';
|
||||
import { GenericAccountIndex } from '../generic/AccountIndex.js';
|
||||
import { GenericEthereumAccountId } from './AccountId.js';
|
||||
|
||||
// eslint-disable-next-line no-use-before-define
|
||||
type AnyAddress = bigint | BN | GenericEthereumLookupSource | GenericEthereumAccountId | GenericAccountIndex | number[] | Uint8Array | number | string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { GenericEthereumAccountId } from './AccountId';
|
||||
export { GenericEthereumLookupSource } from './LookupSource';
|
||||
export { GenericEthereumAccountId } from './AccountId.js';
|
||||
export { GenericEthereumLookupSource } from './LookupSource.js';
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Metadata } from '../metadata';
|
||||
import { fallbackExtensions } from './signedExtensions';
|
||||
import { GenericExtrinsic as Extrinsic } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { Metadata } from '../metadata/index.js';
|
||||
import { fallbackExtensions } from './signedExtensions/index.js';
|
||||
import { GenericExtrinsic as Extrinsic } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
|
||||
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, IMethod, Inspect } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata';
|
||||
import type { Address, Call, CodecHash } from '../interfaces/runtime';
|
||||
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
import type { ExtrinsicValueV4 } from './v4/Extrinsic';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicUnknown, ExtrinsicV4, Sr25519Signature } from '../interfaces/extrinsics/index.js';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js';
|
||||
import type { Address, Call, CodecHash } from '../interfaces/runtime/index.js';
|
||||
import type { CallBase, ExtrinsicPayloadValue, ICompact, IExtrinsic, IKeyringPair, INumber, Registry, SignatureOptions } from '../types/index.js';
|
||||
import type { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
||||
import type { ExtrinsicValueV4 } from './v4/Extrinsic.js';
|
||||
|
||||
import { AbstractBase } from '@polkadot/types-codec';
|
||||
import { compactAddLength, compactFromU8a, compactToU8a, isHex, isU8a, objectProperty, objectSpread, u8aConcat, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { EXTRINSIC_VERSION as LATEST_EXTRINSIC_VERSION } from './v4/Extrinsic';
|
||||
import { BIT_SIGNED, BIT_UNSIGNED, DEFAULT_VERSION, UNMASK_VERSION } from './constants';
|
||||
import { EXTRINSIC_VERSION as LATEST_EXTRINSIC_VERSION } from './v4/Extrinsic.js';
|
||||
import { BIT_SIGNED, BIT_UNSIGNED, DEFAULT_VERSION, UNMASK_VERSION } from './constants.js';
|
||||
|
||||
interface CreateOptions {
|
||||
version?: number;
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericExtrinsicEra as ExtrinsicEra } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericExtrinsicEra as ExtrinsicEra } from './index.js';
|
||||
|
||||
describe('ExtrinsicEra', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
import type { AnyU8a, Registry } from '@polkadot/types-codec/types';
|
||||
import type { BN } from '@polkadot/util';
|
||||
import type { IExtrinsicEra, INumber } from '../types';
|
||||
import type { IExtrinsicEra, INumber } from '../types/index.js';
|
||||
|
||||
import { Enum, Raw, Tuple, U64 } from '@polkadot/types-codec';
|
||||
import { bnToBn, formatNumber, hexToU8a, isHex, isObject, isU8a, u8aToBn, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
import { IMMORTAL_ERA } from './constants';
|
||||
import { IMMORTAL_ERA } from './constants.js';
|
||||
|
||||
type MortalEraValue = [INumber, INumber];
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericExtrinsicPayload as ExtrinsicPayload } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericExtrinsicPayload as ExtrinsicPayload } from './index.js';
|
||||
|
||||
describe('ExtrinsicPayload', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
|
||||
import type { AnyJson, BareOpts, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../interfaces/chain';
|
||||
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber } from '../types';
|
||||
import type { BlockHash } from '../interfaces/chain/index.js';
|
||||
import type { ExtrinsicPayloadV4 } from '../interfaces/extrinsics/index.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber } from '../types/index.js';
|
||||
|
||||
import { AbstractBase, Bytes } from '@polkadot/types-codec';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { DEFAULT_VERSION } from './constants';
|
||||
import { GenericExtrinsicEra } from './ExtrinsicEra';
|
||||
import { DEFAULT_VERSION } from './constants.js';
|
||||
import { GenericExtrinsicEra } from './ExtrinsicEra.js';
|
||||
|
||||
interface ExtrinsicPayloadOptions {
|
||||
version?: number;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { ExtrinsicPayloadOptions } from './types';
|
||||
import type { ExtrinsicPayloadOptions } from './types.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { ExtrinsicOptions } from './types';
|
||||
import type { ExtrinsicOptions } from './types.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
|
||||
import { UNMASK_VERSION } from './constants';
|
||||
import { UNMASK_VERSION } from './constants.js';
|
||||
|
||||
/**
|
||||
* @name GenericExtrinsicUnknown
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Metadata } from '../metadata';
|
||||
import { GenericSignerPayload as SignerPayload } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { Metadata } from '../metadata/index.js';
|
||||
import { GenericSignerPayload as SignerPayload } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Address, BlockHash, Call, ExtrinsicEra, Hash } from '../interfaces';
|
||||
import type { Codec, ICompact, INumber, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types';
|
||||
import type { Codec, ICompact, INumber, IRuntimeVersion, ISignerPayload, SignerPayloadJSON, SignerPayloadRaw } from '../types/index.js';
|
||||
|
||||
import { Option, Struct, Text, Vec } from '@polkadot/types-codec';
|
||||
import { objectProperty, objectSpread, u8aToHex } from '@polkadot/util';
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { GenericExtrinsic } from './Extrinsic';
|
||||
export { GenericExtrinsicEra, MortalEra as GenericMortalEra, ImmortalEra as GenericImmortalEra } from './ExtrinsicEra';
|
||||
export { GenericExtrinsicPayload } from './ExtrinsicPayload';
|
||||
export { GenericExtrinsicPayloadUnknown } from './ExtrinsicPayloadUnknown';
|
||||
export { GenericExtrinsicUnknown } from './ExtrinsicUnknown';
|
||||
export { GenericSignerPayload } from './SignerPayload';
|
||||
export { GenericExtrinsic } from './Extrinsic.js';
|
||||
export { GenericExtrinsicEra, MortalEra as GenericMortalEra, ImmortalEra as GenericImmortalEra } from './ExtrinsicEra.js';
|
||||
export { GenericExtrinsicPayload } from './ExtrinsicPayload.js';
|
||||
export { GenericExtrinsicPayloadUnknown } from './ExtrinsicPayloadUnknown.js';
|
||||
export { GenericExtrinsicUnknown } from './ExtrinsicUnknown.js';
|
||||
export { GenericSignerPayload } from './SignerPayload.js';
|
||||
|
||||
export * from './v4';
|
||||
export * from './v4/index.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExtInfo } from './types';
|
||||
import type { ExtInfo } from './types.js';
|
||||
|
||||
export const emptyCheck: ExtInfo = {
|
||||
extrinsic: {},
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExtDef, ExtInfo, ExtTypes } from './types';
|
||||
import type { ExtDef, ExtInfo, ExtTypes } from './types.js';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { polkadot } from './polkadot';
|
||||
import { shell } from './shell';
|
||||
import { statemint } from './statemint';
|
||||
import { substrate } from './substrate';
|
||||
import { polkadot } from './polkadot.js';
|
||||
import { shell } from './shell.js';
|
||||
import { statemint } from './statemint.js';
|
||||
import { substrate } from './substrate.js';
|
||||
|
||||
// A mapping of the known signed extensions to the extra fields that they
|
||||
// contain. Unlike in the actual extensions, we define the extra fields not
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExtDef } from './types';
|
||||
import type { ExtDef } from './types.js';
|
||||
|
||||
import { emptyCheck } from './emptyCheck';
|
||||
import { emptyCheck } from './emptyCheck.js';
|
||||
|
||||
export const polkadot: ExtDef = {
|
||||
LimitParathreadCommits: emptyCheck,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExtDef } from './types';
|
||||
import type { ExtDef } from './types.js';
|
||||
|
||||
import { emptyCheck } from './emptyCheck';
|
||||
import { emptyCheck } from './emptyCheck.js';
|
||||
|
||||
export const shell: ExtDef = {
|
||||
DisallowSigned: emptyCheck
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExtDef } from './types';
|
||||
import type { ExtDef } from './types.js';
|
||||
|
||||
export const statemint: ExtDef = {
|
||||
ChargeAssetTxPayment: {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { ExtDef, ExtInfo } from './types';
|
||||
import type { ExtDef, ExtInfo } from './types.js';
|
||||
|
||||
import { emptyCheck } from './emptyCheck';
|
||||
import { emptyCheck } from './emptyCheck.js';
|
||||
|
||||
const CheckMortality: ExtInfo = {
|
||||
extrinsic: {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { IKeyringPair } from '../types';
|
||||
import type { IKeyringPair } from '../types/index.js';
|
||||
|
||||
// a helper function for both types of payloads, Raw and metadata-known
|
||||
export function sign (registry: Registry, signerPair: IKeyringPair, u8a: Uint8Array, options?: SignOptions): Uint8Array {
|
||||
|
||||
@@ -7,9 +7,9 @@ import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
import { BN } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata';
|
||||
import { GenericExtrinsicV4 as Extrinsic } from '.';
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
|
||||
import { GenericExtrinsicV4 as Extrinsic } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { ExtrinsicSignatureV4 } from '../../interfaces/extrinsics';
|
||||
import type { Address, Call } from '../../interfaces/runtime';
|
||||
import type { ExtrinsicPayloadValue, IExtrinsicImpl, IKeyringPair, Registry, SignatureOptions } from '../../types';
|
||||
import type { ExtrinsicOptions } from '../types';
|
||||
import type { ExtrinsicPayloadValue, IExtrinsicImpl, IKeyringPair, Registry, SignatureOptions } from '../../types/index.js';
|
||||
import type { ExtrinsicOptions } from '../types.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
import { isU8a } from '@polkadot/util';
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
import rpcMetadata from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata';
|
||||
import { GenericExtrinsicPayloadV4 as ExtrinsicPayload } from '.';
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
import { decorateExtrinsics, Metadata } from '../../metadata/index.js';
|
||||
import { GenericExtrinsicPayloadV4 as ExtrinsicPayload } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, rpcMetadata);
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
import type { SignOptions } from '@polkadot/keyring/types';
|
||||
import type { Inspect, Registry } from '@polkadot/types-codec/types';
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { BlockHash } from '../../interfaces/chain';
|
||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types';
|
||||
import type { BlockHash } from '../../interfaces/chain/index.js';
|
||||
import type { ExtrinsicEra } from '../../interfaces/extrinsics/index.js';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IKeyringPair, INumber, IOption } from '../../types/index.js';
|
||||
|
||||
import { Bytes, Enum, Struct } from '@polkadot/types-codec';
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
import { sign } from '../util';
|
||||
import { sign } from '../util.js';
|
||||
|
||||
/**
|
||||
* @name GenericExtrinsicPayloadV4
|
||||
|
||||
@@ -7,9 +7,9 @@ import { createTestPairs } from '@polkadot/keyring/testingPairs';
|
||||
import metadataStatic from '@polkadot/types-support/metadata/static-substrate';
|
||||
import { BN_ZERO } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
import { Metadata } from '../../metadata';
|
||||
import { GenericExtrinsicSignatureV4 as ExtrinsicSignature } from '.';
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
import { Metadata } from '../../metadata/index.js';
|
||||
import { GenericExtrinsicSignatureV4 as ExtrinsicSignature } from './index.js';
|
||||
|
||||
const signOptions = {
|
||||
blockHash: '0x1234567890123456789012345678901234567890123456789012345678901234',
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { EcdsaSignature, Ed25519Signature, ExtrinsicEra, ExtrinsicSignature, Sr25519Signature } from '../../interfaces/extrinsics';
|
||||
import type { Address, Call } from '../../interfaces/runtime';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair, INumber, Registry, SignatureOptions } from '../../types';
|
||||
import type { ExtrinsicSignatureOptions } from '../types';
|
||||
import type { ExtrinsicPayloadValue, ICompact, IExtrinsicSignature, IKeyringPair, INumber, Registry, SignatureOptions } from '../../types/index.js';
|
||||
import type { ExtrinsicSignatureOptions } from '../types.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
import { isU8a, isUndefined, objectProperties, objectSpread, stringify, u8aToHex } from '@polkadot/util';
|
||||
|
||||
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants';
|
||||
import { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload';
|
||||
import { EMPTY_U8A, IMMORTAL_ERA } from '../constants.js';
|
||||
import { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload.js';
|
||||
|
||||
// Ensure we have enough data for all types of signatures
|
||||
const FAKE_SIGNATURE = new Uint8Array(256).fill(1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { GenericExtrinsicV4 } from './Extrinsic';
|
||||
export { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload';
|
||||
export { GenericExtrinsicSignatureV4 } from './ExtrinsicSignature';
|
||||
export { GenericExtrinsicV4 } from './Extrinsic.js';
|
||||
export { GenericExtrinsicPayloadV4 } from './ExtrinsicPayload.js';
|
||||
export { GenericExtrinsicSignatureV4 } from './ExtrinsicSignature.js';
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import { Raw } from '@polkadot/types-codec';
|
||||
import jsonVec from '@polkadot/types-support/json/AccountIdVec.001.json' assert { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
|
||||
describe('AccountId', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
import { BN } from '@polkadot/util';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericAccountIndex as AccountIndex } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericAccountIndex as AccountIndex } from './index.js';
|
||||
|
||||
describe('AccountIndex', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
/* eslint-disable sort-keys */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import type { BlockValue } from './Block';
|
||||
import type { BlockValue } from './Block.js';
|
||||
|
||||
import block00300 from '@polkadot/types-support/json/SignedBlock.003.00.json' assert { type: 'json' };
|
||||
import metadataStatic from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Metadata } from '../metadata';
|
||||
import { GenericBlock as Block } from './Block';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { Metadata } from '../metadata/index.js';
|
||||
import { GenericBlock as Block } from './Block.js';
|
||||
|
||||
interface BlockJson {
|
||||
result: {
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
import type { Vec } from '@polkadot/types-codec';
|
||||
import type { AnyNumber, AnyU8a, IU8a, Registry } from '@polkadot/types-codec/types';
|
||||
import type { GenericExtrinsic } from '../extrinsic/Extrinsic';
|
||||
import type { Digest, DigestItem, Header } from '../interfaces/runtime';
|
||||
import type { GenericExtrinsic } from '../extrinsic/Extrinsic.js';
|
||||
import type { Digest, DigestItem, Header } from '../interfaces/runtime/index.js';
|
||||
|
||||
import { Struct } from '@polkadot/types-codec';
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
|
||||
import metadataStatic from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { Metadata } from '../metadata';
|
||||
import { GenericCall as Call } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { Metadata } from '../metadata/index.js';
|
||||
import { GenericCall as Call } from './index.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
const metadata = new Metadata(registry, metadataStatic);
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AnyJson, AnyTuple, AnyU8a, ArgsDef, Codec, IMethod, Registry } from '@polkadot/types-codec/types';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata';
|
||||
import type { CallBase, CallFunction, InterfaceTypes } from '../types';
|
||||
import type { FunctionMetadataLatest } from '../interfaces/metadata/index.js';
|
||||
import type { CallBase, CallFunction, InterfaceTypes } from '../types/index.js';
|
||||
|
||||
import { Struct, U8aFixed } from '@polkadot/types-codec';
|
||||
import { isHex, isObject, isU8a, objectSpread, u8aToU8a } from '@polkadot/util';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
|
||||
describe('ChainProperties', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Registry } from '@polkadot/types-codec/types';
|
||||
import type { Codec } from '../types';
|
||||
import type { Codec } from '../types/index.js';
|
||||
|
||||
import { Json, Option, Text, u32, Vec } from '@polkadot/types-codec';
|
||||
import { isFunction, isNull, isUndefined } from '@polkadot/util';
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { CID_AURA, GenericConsensusEngineId as ConsensusEngineId } from './ConsensusEngineId';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { CID_AURA, GenericConsensusEngineId as ConsensusEngineId } from './ConsensusEngineId.js';
|
||||
|
||||
describe('ConsensusEngineId', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
|
||||
import type { AnyJson, Codec, CodecClass } from '@polkadot/types-codec/types';
|
||||
import type { TypeDef } from '@polkadot/types-create/types';
|
||||
import type { EventMetadataLatest } from '../interfaces/metadata';
|
||||
import type { EventId } from '../interfaces/system';
|
||||
import type { IEvent, IEventData, InterfaceTypes, Registry } from '../types';
|
||||
import type { EventMetadataLatest } from '../interfaces/metadata/index.js';
|
||||
import type { EventId } from '../interfaces/system/index.js';
|
||||
import type { IEvent, IEventData, InterfaceTypes, Registry } from '../types/index.js';
|
||||
|
||||
import { Null, Struct, Tuple } from '@polkadot/types-codec';
|
||||
import { objectProperties, objectSpread } from '@polkadot/util';
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookupSource } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericAccountId as AccountId, GenericAccountIndex as AccountIndex, GenericLookupSource as LookupSource } from './index.js';
|
||||
|
||||
describe('LookupSource', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -9,8 +9,8 @@ import { AbstractBase } from '@polkadot/types-codec';
|
||||
import { isBigInt, isBn, isHex, isNumber, isU8a, u8aConcat, u8aToBn, u8aToHex, u8aToU8a } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { GenericAccountId } from './AccountId';
|
||||
import { GenericAccountIndex } from './AccountIndex';
|
||||
import { GenericAccountId } from './AccountId.js';
|
||||
import { GenericAccountIndex } from './AccountIndex.js';
|
||||
|
||||
// eslint-disable-next-line no-use-before-define
|
||||
type AnyAddress = bigint | BN | GenericLookupSource | GenericAccountId | GenericAccountIndex | number[] | Uint8Array | number | string;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
|
||||
describe('MultiAddress', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -7,8 +7,8 @@ import { Enum } from '@polkadot/types-codec';
|
||||
import { isBn, isNumber, isString, isU8a } from '@polkadot/util';
|
||||
import { decodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
import { GenericAccountId } from './AccountId';
|
||||
import { GenericAccountIndex } from './AccountIndex';
|
||||
import { GenericAccountId } from './AccountId.js';
|
||||
import { GenericAccountIndex } from './AccountIndex.js';
|
||||
|
||||
function decodeU8a (registry: Registry, u8a: Uint8Array): unknown {
|
||||
if ([0, 32].includes(u8a.length)) {
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create';
|
||||
import { GenericVote } from '.';
|
||||
import { TypeRegistry } from '../create/index.js';
|
||||
import { GenericVote } from './index.js';
|
||||
|
||||
describe('GenericVote', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { AnyJson, Registry } from '@polkadot/types-codec/types';
|
||||
import type { Conviction } from '../interfaces/democracy';
|
||||
import type { AllConvictions } from '../interfaces/democracy/definitions';
|
||||
import type { ArrayElementType } from '../types';
|
||||
import type { AllConvictions } from '../interfaces/democracy/definitions.js';
|
||||
import type { Conviction } from '../interfaces/democracy/index.js';
|
||||
import type { ArrayElementType } from '../types/index.js';
|
||||
|
||||
import { Bool, U8aFixed } from '@polkadot/types-codec';
|
||||
import { isBoolean, isNumber, isU8a, isUndefined } from '@polkadot/util';
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from '../ethereum';
|
||||
export * from '../ethereum/index.js';
|
||||
|
||||
export { GenericAccountId, GenericAccountId as GenericAccountId32, GenericAccountId33 } from './AccountId';
|
||||
export { GenericAccountIndex } from './AccountIndex';
|
||||
export { GenericBlock } from './Block';
|
||||
export { GenericCall } from './Call';
|
||||
export { GenericChainProperties } from './ChainProperties';
|
||||
export { GenericConsensusEngineId } from './ConsensusEngineId';
|
||||
export { GenericEvent, GenericEventData } from './Event';
|
||||
export { GenericLookupSource } from './LookupSource';
|
||||
export { GenericMultiAddress, GenericMultiAddress as GenericAddress } from './MultiAddress';
|
||||
export { GenericVote } from './Vote';
|
||||
export { GenericAccountId, GenericAccountId as GenericAccountId32, GenericAccountId33 } from './AccountId.js';
|
||||
export { GenericAccountIndex } from './AccountIndex.js';
|
||||
export { GenericBlock } from './Block.js';
|
||||
export { GenericCall } from './Call.js';
|
||||
export { GenericChainProperties } from './ChainProperties.js';
|
||||
export { GenericConsensusEngineId } from './ConsensusEngineId.js';
|
||||
export { GenericEvent, GenericEventData } from './Event.js';
|
||||
export { GenericLookupSource } from './LookupSource.js';
|
||||
export { GenericMultiAddress, GenericMultiAddress as GenericAddress } from './MultiAddress.js';
|
||||
export { GenericVote } from './Vote.js';
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { Codec } from './types';
|
||||
import type { Codec } from './types/index.js';
|
||||
|
||||
import metadataStatic from '@polkadot/types-support/metadata/static-substrate';
|
||||
|
||||
import * as definitions from './interfaces/definitions';
|
||||
import { TypeRegistry } from './create';
|
||||
import * as exported from './index.types';
|
||||
import { Metadata } from './metadata';
|
||||
import { TypeRegistry } from './create/index.js';
|
||||
import * as definitions from './interfaces/definitions.js';
|
||||
import { Metadata } from './metadata/index.js';
|
||||
import * as exported from './index.types.js';
|
||||
|
||||
// NOTE This is not a shortcut to implementing types incorrectly. This is here
|
||||
// specifically for the types that _should_ throw in the constrtuctor, i.e
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import './detectPackage';
|
||||
import './detectPackage.js';
|
||||
|
||||
export * from './bundle';
|
||||
export * from './bundle.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export * from './extrinsic';
|
||||
export * from './generic';
|
||||
export * from './primitive';
|
||||
export * from './extrinsic/index.js';
|
||||
export * from './generic/index.js';
|
||||
export * from './primitive/index.js';
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
/// <reference types="@polkadot/dev/node/test/node" />
|
||||
|
||||
import { TypeRegistry } from '../create/registry';
|
||||
import { getAliasTypes } from './alias';
|
||||
import { TypeRegistry } from '../create/registry.js';
|
||||
import { getAliasTypes } from './alias.js';
|
||||
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types-known authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideModuleType, Registry } from '../types';
|
||||
import type { OverrideModuleType, Registry } from '../types/index.js';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
AuraApi: [
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
|
||||
import type { ExtrinsicStatus } from './types';
|
||||
import type { ExtrinsicStatus } from './types.js';
|
||||
|
||||
import rpc from '@polkadot/types-support/json/ExtrinsicStatus.001.json' assert { type: 'json' };
|
||||
|
||||
import { TypeRegistry } from '../../create';
|
||||
import { TypeRegistry } from '../../create/index.js';
|
||||
|
||||
describe('ExtrinsicStatus', (): void => {
|
||||
const registry = new TypeRegistry();
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { rpc } from './rpc.js';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsRpc } from '../../types';
|
||||
import type { DefinitionsRpc } from '../../types/index.js';
|
||||
|
||||
export const rpc: DefinitionsRpc = {
|
||||
hasKey: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { runtime } from './runtime';
|
||||
import { rpc } from './rpc.js';
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsRpc } from '../../types';
|
||||
import type { DefinitionsRpc } from '../../types/index.js';
|
||||
|
||||
export const rpc: DefinitionsRpc = {
|
||||
epochAuthorship: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionCall, DefinitionsCall } from '../../types';
|
||||
import type { DefinitionCall, DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { runtime } from './runtime';
|
||||
import { rpc } from './rpc.js';
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsRpc } from '../../types';
|
||||
import type { DefinitionsRpc } from '../../types/index.js';
|
||||
|
||||
export const rpc: DefinitionsRpc = {
|
||||
getFinalizedHead: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
BeefyApi: [
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall } from '../../types';
|
||||
import type { DefinitionsCall } from '../../types/index.js';
|
||||
|
||||
export const runtime: DefinitionsCall = {
|
||||
Benchmark: [
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { runtime } from './runtime';
|
||||
import { runtime } from './runtime.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsCall, DefinitionsCallEntry } from '../../types';
|
||||
import type { DefinitionsCall, DefinitionsCallEntry } from '../../types/index.js';
|
||||
|
||||
import { objectSpread } from '@polkadot/util';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { rpc } from './rpc.js';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsRpc } from '../../types';
|
||||
import type { DefinitionsRpc } from '../../types/index.js';
|
||||
|
||||
export const rpc: DefinitionsRpc = {
|
||||
getBlock: {
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
import { rpc } from './rpc';
|
||||
import { rpc } from './rpc.js';
|
||||
|
||||
export default {
|
||||
rpc,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
export * from './types';
|
||||
export * from './types.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright 2017-2023 @polkadot/types authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { DefinitionsRpc } from '../../types';
|
||||
import type { DefinitionsRpc } from '../../types/index.js';
|
||||
|
||||
export const rpc: DefinitionsRpc = {
|
||||
getKeys: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// order important in structs... :)
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
import type { Definitions } from '../../types';
|
||||
import type { Definitions } from '../../types/index.js';
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user