Skip to content

Commit

Permalink
Auto-update creditcoin-js type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
gluwa-bot authored and atodorov committed Mar 16, 2023
1 parent 19e1f51 commit f1d3463
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 137 deletions.
2 changes: 1 addition & 1 deletion creditcoin-js/creditcoin.json

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions creditcoin-js/src/interfaces/augment-api-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ import type { BlockHash } from '@polkadot/types/interfaces/chain';
import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
import type { AccountId, Block, Header, Index, KeyTypeId, Moment } from '@polkadot/types/interfaces/runtime';
import type {
AccountId,
Balance,
Block,
Header,
Index,
KeyTypeId,
Moment,
Weight,
} from '@polkadot/types/interfaces/runtime';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
Expand Down Expand Up @@ -193,7 +202,7 @@ declare module '@polkadot/api-base/types/calls' {
**/
[key: string]: DecoratedCallBase<ApiType>;
};
/** 0x37c8bb1350a9a2a8/2 */
/** 0x37c8bb1350a9a2a8/3 */
transactionPaymentApi: {
/**
* The transaction fee details
Expand All @@ -215,6 +224,17 @@ declare module '@polkadot/api-base/types/calls' {
len: u32 | AnyNumber | Uint8Array,
) => Observable<RuntimeDispatchInfo>
>;
/**
* Query the output of the current LengthToFee given some input
**/
queryLengthToFee: AugmentedCall<ApiType, (length: u32 | AnyNumber | Uint8Array) => Observable<Balance>>;
/**
* Query the output of the current WeightToFee given some input
**/
queryWeightToFee: AugmentedCall<
ApiType,
(weight: Weight | { refTime?: any; proofSize?: any } | string | Uint8Array) => Observable<Balance>
>;
/**
* Generic call
**/
Expand Down
Loading

0 comments on commit f1d3463

Please sign in to comment.