mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-04-24 15:47:57 +00:00
chore: update to version 16.5.9, align with pezkuwichain brand and fix tests
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/api-base/types/calls';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedCall<ApiType extends ApiTypes> = AugmentedCall<ApiType>;
|
||||
export type __DecoratedCallBase<ApiType extends ApiTypes> = DecoratedCallBase<ApiType>;
|
||||
|
||||
declare module '@pezkuwi/api-base/types/calls' {
|
||||
interface AugmentedCalls<ApiType extends ApiTypes> {
|
||||
{{#each modules}}
|
||||
/** {{{sectionHash}}}/{{{sectionVersion}}} */
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: AugmentedCall<ApiType, ({{{args}}}) => Observable<{{{type}}}>>;
|
||||
{{/each}}
|
||||
{{#unless @root.isStrict}}
|
||||
/**
|
||||
* Generic call
|
||||
**/
|
||||
[key: string]: DecoratedCallBase<ApiType>;
|
||||
{{/unless}}
|
||||
};
|
||||
{{/each}}
|
||||
} // AugmentedCalls
|
||||
} // declare module
|
||||
@@ -0,0 +1,28 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/api-base/types/consts';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
|
||||
|
||||
declare module '@pezkuwi/api-base/types/consts' {
|
||||
interface AugmentedConsts<ApiType extends ApiTypes> {
|
||||
{{#each modules}}
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: {{{type}}} & AugmentedConst<ApiType>;
|
||||
{{/each}}
|
||||
{{#unless @root.isStrict}}
|
||||
/**
|
||||
* Generic const
|
||||
**/
|
||||
[key: string]: Codec;
|
||||
{{/unless}}
|
||||
};
|
||||
{{/each}}
|
||||
} // AugmentedConsts
|
||||
} // declare module
|
||||
@@ -0,0 +1,7 @@
|
||||
{{#if docs.length}}
|
||||
/**
|
||||
{{#each docs}}
|
||||
* {{#trim}}{{{this}}}{{/trim}}
|
||||
{{/each}}
|
||||
**/
|
||||
{{/if}}
|
||||
@@ -0,0 +1,28 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/api-base/types/errors';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedError<ApiType extends ApiTypes> = AugmentedError<ApiType>;
|
||||
|
||||
declare module '@pezkuwi/api-base/types/errors' {
|
||||
interface AugmentedErrors<ApiType extends ApiTypes> {
|
||||
{{#each modules}}
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: AugmentedError<ApiType>;
|
||||
{{/each}}
|
||||
{{#unless @root.isStrict}}
|
||||
/**
|
||||
* Generic error
|
||||
**/
|
||||
[key: string]: AugmentedError<ApiType>;
|
||||
{{/unless}}
|
||||
};
|
||||
{{/each}}
|
||||
} // AugmentedErrors
|
||||
} // declare module
|
||||
@@ -0,0 +1,28 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/api-base/types/events';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
||||
|
||||
declare module '@pezkuwi/api-base/types/events' {
|
||||
interface AugmentedEvents<ApiType extends ApiTypes> {
|
||||
{{#each modules}}
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: AugmentedEvent<ApiType, {{{type}}}>;
|
||||
{{/each}}
|
||||
{{#unless @root.isStrict}}
|
||||
/**
|
||||
* Generic event
|
||||
**/
|
||||
[key: string]: AugmentedEvent<ApiType>;
|
||||
{{/unless}}
|
||||
};
|
||||
{{/each}}
|
||||
} // AugmentedEvents
|
||||
} // declare module
|
||||
@@ -0,0 +1,2 @@
|
||||
// Auto-generated via `yarn polkadot-types-from-{{headerType}}`, do not edit
|
||||
/* eslint-disable */
|
||||
@@ -0,0 +1,15 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/types/types/registry';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
declare module '@pezkuwi/types/types/registry' {
|
||||
interface InterfaceTypes {
|
||||
{{#each items}}
|
||||
{{{this}}}: {{{this}}};
|
||||
{{/each}}
|
||||
} // InterfaceTypes
|
||||
} // declare module
|
||||
@@ -0,0 +1,12 @@
|
||||
{{> header }}
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
{{#each defs}}
|
||||
{{> docs}}
|
||||
{{#each defs}}
|
||||
{{{this}}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
{{> header }}
|
||||
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
rpc: {},
|
||||
types: {
|
||||
{{#each defs}}
|
||||
{{> docs}}
|
||||
{{#each defs}}
|
||||
{{{this}}}
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
{{> header }}
|
||||
|
||||
export * from './types.js';
|
||||
@@ -0,0 +1,14 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/types/lookup';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
declare module '@pezkuwi/types/lookup' {
|
||||
{{#each items}}
|
||||
{{{this}}}
|
||||
|
||||
{{/each}}
|
||||
} // declare module
|
||||
@@ -0,0 +1,29 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/api-base/types/storage';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
||||
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
||||
|
||||
declare module '@pezkuwi/api-base/types/storage' {
|
||||
interface AugmentedQueries<ApiType extends ApiTypes> {
|
||||
{{#each modules}}
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: {{{entryType}}}<ApiType, ({{{params}}}) => Observable<{{{returnType}}}>, [{{{args}}}]>{{#unless @root.isStrict}} & QueryableStorageEntry<ApiType, [{{{args}}}]>{{/unless}};
|
||||
{{/each}}
|
||||
{{#unless @root.isStrict}}
|
||||
/**
|
||||
* Generic query
|
||||
**/
|
||||
[key: string]: QueryableStorageEntry<ApiType>;
|
||||
{{/unless}}
|
||||
};
|
||||
{{/each}}
|
||||
} // AugmentedQueries
|
||||
} // declare module
|
||||
@@ -0,0 +1,22 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/rpc-core/types/jsonrpc';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedRpc = AugmentedRpc<() => unknown>;
|
||||
|
||||
declare module '@pezkuwi/rpc-core/types/jsonrpc' {
|
||||
interface RpcInterface {
|
||||
{{#each modules}}
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: AugmentedRpc<{{#if generic}}<{{{generic}}}>{{/if}}({{{args}}}) => Observable<{{{type}}}>>;
|
||||
{{/each}}
|
||||
};
|
||||
{{/each}}
|
||||
} // RpcInterface
|
||||
} // declare module
|
||||
@@ -0,0 +1,3 @@
|
||||
{{> header }}
|
||||
|
||||
export * from './types.js';
|
||||
@@ -0,0 +1,10 @@
|
||||
{{> header }}
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
{{#each items}}
|
||||
{{{this}}}
|
||||
|
||||
{{/each}}
|
||||
|
||||
export type PHANTOM_{{#upper}}{{{name}}}{{/upper}} = '{{{name}}}';
|
||||
@@ -0,0 +1,7 @@
|
||||
{{> header }}
|
||||
|
||||
{{#each items}}
|
||||
export * from './{{{this}}}/types.js';
|
||||
{{/each}}
|
||||
|
||||
export type PHANTOM_GENERATED = 'generated';
|
||||
@@ -0,0 +1,30 @@
|
||||
{{> header }}
|
||||
|
||||
// import type lookup before we augment - in some environments
|
||||
// this is required to allow for ambient/previous definitions
|
||||
import '@pezkuwi/api-base/types/submittable';
|
||||
|
||||
{{{ importsAll }}}
|
||||
|
||||
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
||||
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
||||
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
||||
|
||||
declare module '@pezkuwi/api-base/types/submittable' {
|
||||
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
||||
{{#each modules}}
|
||||
{{{name}}}: {
|
||||
{{#each items}}
|
||||
{{> docs}}
|
||||
{{{name}}}: AugmentedSubmittable<({{{params}}}) => SubmittableExtrinsic<ApiType>, [{{{args}}}]>;
|
||||
{{/each}}
|
||||
{{#unless @root.isStrict}}
|
||||
/**
|
||||
* Generic tx
|
||||
**/
|
||||
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
||||
{{/unless}}
|
||||
};
|
||||
{{/each}}
|
||||
} // AugmentedSubmittables
|
||||
} // declare module
|
||||
Reference in New Issue
Block a user