Skip to content

Commit

Permalink
remove SignV5Options
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Sep 20, 2024
1 parent 2c3e285 commit 72de8df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions packages/types/src/extrinsic/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { SignOptions } from '@polkadot/keyring/types';
import type { AnyNumber } from '@polkadot/types-codec/types';

export interface ExtrinsicOptions {
Expand All @@ -24,7 +23,3 @@ export interface ExtrinsicExtraValue {
}

export type SubVersionV5 = 'signed' | 'bare' | 'general';

export interface SignV5Options extends SignOptions {
subVersionV5?: SubVersionV5;
}
4 changes: 2 additions & 2 deletions packages/types/src/extrinsic/v5/ExtrinsicPayload.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { SignOptions } from '@polkadot/keyring/types';
import type { Hash, MultiLocation } from '@polkadot/types/interfaces';
import type { Bytes } from '@polkadot/types-codec';
import type { Inspect, Registry } from '@polkadot/types-codec/types';
import type { HexString } from '@polkadot/util/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 type { SignV5Options } from '../types.js';

import { Enum, Struct } from '@polkadot/types-codec';
import { objectSpread } from '@polkadot/util';
Expand All @@ -20,7 +20,7 @@ import { objectSpread } from '@polkadot/util';
* variable length based on the contents included
*/
export class GenericExtrinsicPayloadV5 extends Struct {
#signOptions: SignV5Options;
#signOptions: SignOptions;

constructor (registry: Registry, value?: ExtrinsicPayloadValue | Uint8Array | HexString) {
super(registry, objectSpread(
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/types/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2017-2024 @polkadot/types authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { SignOptions } from '@polkadot/keyring/types';
import type { AnyTuple, Codec, IMethod as IMethodBase, INumber, IText } from '@polkadot/types-codec/types';
import type { SignV5Options } from '../extrinsic/types.js';
import type { FunctionMetadataLatest, StorageEntryMetadataLatest } from '../interfaces/metadata/index.js';
import type { Registry } from './registry.js';

Expand All @@ -17,7 +17,7 @@ export interface IKeyringPair {
readonly addressRaw: Uint8Array;
readonly publicKey: Uint8Array;

sign: (data: Uint8Array, options?: SignV5Options) => Uint8Array;
sign: (data: Uint8Array, options?: SignOptions) => Uint8Array;
}

export interface IRuntimeVersionBase {
Expand Down

0 comments on commit 72de8df

Please sign in to comment.