PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@substrate/txwrapper-registry/lib
Просмотр файла: index.d.ts
import { TypeRegistry } from '@polkadot/types';
import { OverrideBundleType } from '@polkadot/types/types';
import { ChainProperties, GetRegistryOptsCore } from '@substrate/txwrapper-core';
/**
* Known chain properties based on the substrate ss58 registry.
* Chain properties are derived from the substrate ss58 registry:
* https://raw.githubusercontent.com/paritytech/substrate/master/ss58-registry.json
*
* Alternatively, chain properties can be dynamically fetched through the
* `system_properties` RPC call.
*/
export declare const knownChainProperties: Record<string, ChainProperties>;
/**
* Options for `getRegistry`.
*/
export interface GetRegistryOpts extends GetRegistryOptsCore {
specName: keyof typeof knownChainProperties;
/**
* Optionally specify the chain properties if they are not included in
* https://raw.githubusercontent.com/paritytech/substrate/master/ss58-registry.json
* (and thus not included in `knownChainProperties`)
*/
properties?: ChainProperties;
}
/**
* Create a registry with `knownTypes` via env variables.
* ie: STX_TYPES_BUNDLE; STX_TYPES_CHAIN
*/
export declare function createRegistry(typesBundle?: OverrideBundleType): TypeRegistry;
/**
* Create a registry based on specName, chainName, specVersion and metadataRPC. This should work for
* Polkadot, Kusama, Westend and any chain which has up-to-date types in @polkadot/apps-config.
*
* @param GetRegistryOptions specName, chainName, specVersion, and metadataRpc of the current runtime
*/
export declare function getRegistry({ specName, chainName, specVersion, metadataRpc, properties, asCallsOnlyArg, typesBundle, additionalTypes, }: GetRegistryOpts): TypeRegistry;
Выполнить команду
Для локальной разработки. Не используйте в интернете!