Check against runtime for calls generation (#4990)

* Check against runtime for calls generation

* No default augmentation
This commit is contained in:
Jaco
2022-06-29 17:34:11 +03:00
committed by GitHub
parent 74e1442343
commit 9ea866815b
22 changed files with 603 additions and 78 deletions
@@ -2,8 +2,11 @@
/* eslint-disable */
import type { ApiTypes } from '@polkadot/api-base/types';
import type { Bytes, u32 } from '@polkadot/types-codec';
import type { AnyNumber } from '@polkadot/types-codec/types';
import type { AuthorityList, SetId } from '@polkadot/types/interfaces/grandpa';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Index } from '@polkadot/types/interfaces/runtime';
import type { Observable } from '@polkadot/types/types';
@@ -43,5 +46,19 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
transactionPaymentApi: {
/**
* The transaction fee details
**/
queryFeeDetails: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<FeeDetails>>;
/**
* The transaction info
**/
queryInfo: AugmentedCall<ApiType, (uxt: Bytes | string | Uint8Array, len: u32 | AnyNumber | Uint8Array) => Observable<RuntimeDispatchInfo>>;
/**
* Generic call
**/
[key: string]: DecoratedCallBase<ApiType>;
};
} // AugmentedCalls
} // declare module