Opaque{Metadata, Multiaddr, PeerId} -> WrapperOpaque<Bytes> (#5038)
* Opaque{Metadata, Multiaddr, PeerId} -> WrapperOpaque<Bytes>
* Adjust
* Adjust
This commit is contained in:
@@ -24,8 +24,8 @@ export default {
|
||||
sessionIndex: 'SessionIndex',
|
||||
authorityIndex: 'AuthIndex'
|
||||
},
|
||||
OpaqueMultiaddr: 'Bytes',
|
||||
OpaquePeerId: 'Bytes',
|
||||
OpaqueMultiaddr: 'WrapperOpaque<Bytes>',
|
||||
OpaquePeerId: 'WrapperOpaque<Bytes>',
|
||||
OpaqueNetworkState: {
|
||||
peerId: 'OpaquePeerId',
|
||||
externalAddresses: 'Vec<OpaqueMultiaddr>'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
|
||||
/* eslint-disable */
|
||||
|
||||
import type { Bytes, Struct, Vec, u32 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Struct, Vec, WrapperOpaque, u32 } from '@polkadot/types-codec';
|
||||
import type { Signature } from '@polkadot/types/interfaces/extrinsics';
|
||||
import type { BlockNumber } from '@polkadot/types/interfaces/runtime';
|
||||
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
||||
@@ -30,7 +30,7 @@ export interface HeartbeatTo244 extends Struct {
|
||||
}
|
||||
|
||||
/** @name OpaqueMultiaddr */
|
||||
export interface OpaqueMultiaddr extends Bytes {}
|
||||
export interface OpaqueMultiaddr extends WrapperOpaque<Bytes> {}
|
||||
|
||||
/** @name OpaqueNetworkState */
|
||||
export interface OpaqueNetworkState extends Struct {
|
||||
@@ -39,6 +39,6 @@ export interface OpaqueNetworkState extends Struct {
|
||||
}
|
||||
|
||||
/** @name OpaquePeerId */
|
||||
export interface OpaquePeerId extends Bytes {}
|
||||
export interface OpaquePeerId extends WrapperOpaque<Bytes> {}
|
||||
|
||||
export type PHANTOM_IMONLINE = 'imOnline';
|
||||
|
||||
@@ -44,7 +44,7 @@ export default {
|
||||
StorageHasher: 'StorageHasherV14',
|
||||
|
||||
// additional types
|
||||
OpaqueMetadata: 'Bytes',
|
||||
OpaqueMetadata: 'WrapperOpaque<Bytes>',
|
||||
|
||||
// the enum containing all the mappings
|
||||
MetadataAll: {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import type { PortableRegistry } from '@polkadot/types';
|
||||
import type { Bytes, Enum, Option, Struct, Text, Type, Vec, bool, u8 } from '@polkadot/types-codec';
|
||||
import type { Bytes, Enum, Option, Struct, Text, Type, Vec, WrapperOpaque, bool, u8 } from '@polkadot/types-codec';
|
||||
import type { Si1Field, Si1LookupTypeId, Si1Type, SiLookupTypeId } from '@polkadot/types/interfaces/scaleInfo';
|
||||
|
||||
/** @name ErrorMetadataLatest */
|
||||
@@ -276,7 +276,7 @@ export interface ModuleMetadataV9 extends Struct {
|
||||
}
|
||||
|
||||
/** @name OpaqueMetadata */
|
||||
export interface OpaqueMetadata extends Bytes {}
|
||||
export interface OpaqueMetadata extends WrapperOpaque<Bytes> {}
|
||||
|
||||
/** @name PalletCallMetadataLatest */
|
||||
export interface PalletCallMetadataLatest extends PalletCallMetadataV14 {}
|
||||
|
||||
@@ -55,6 +55,10 @@ const PATHS_ALIAS = splitNamespace([
|
||||
'*_democracy::vote::Vote',
|
||||
'*_conviction_voting::vote::Vote',
|
||||
'*_identity::types::Data',
|
||||
// these are opaque Vec<u8> wrappers
|
||||
'sp_core::OpaqueMetadata',
|
||||
'sp_core::OpaquePeerId',
|
||||
'sp_core::offchain::OpaqueMultiaddr',
|
||||
// shorten some well-known types
|
||||
'primitive_types::*',
|
||||
'sp_arithmetic::per_things::*',
|
||||
|
||||
Reference in New Issue
Block a user