Skip to content

Commit

Permalink
Generate api-augment 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
imstar15 committed Dec 15, 2022
1 parent c5cde9c commit fba413e
Show file tree
Hide file tree
Showing 13 changed files with 775 additions and 1,000 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oak.js",
"version": "0.1.2",
"version": "1.7.0",
"repository": "https://github.com/oak-foundation/oak.js",
"author": "OAK Team <[email protected]>",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-augment/edgeware.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/api-augment/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oak-network/api-augment",
"version": "0.0.12",
"version": "1.7.0",
"main": "./build/index.js",
"license": "Apache-2.0",
"scripts": {
Expand Down
18 changes: 15 additions & 3 deletions packages/api-augment/src/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '@polkadot/api-base/types/consts';
import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
import type { Option, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { Perbill, Permill, Weight } from '@polkadot/types/interfaces/runtime';
import type { Perbill, Percent, Permill } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportPalletId, FrameSupportWeightsRuntimeDbWeight, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, SpVersionRuntimeVersion, XcmV1MultiLocation } from '@polkadot/types/lookup';

export type __AugmentedConst<ApiType extends ApiTypes> = AugmentedConst<ApiType>;
Expand Down Expand Up @@ -284,6 +284,18 @@ declare module '@polkadot/api-base/types/consts' {
* Number of rounds candidate requests to decrease self-bond must wait to be executable
**/
candidateBondLessDelay: u32 & AugmentedConst<ApiType>;
/**
* Default number of blocks per round at genesis
**/
defaultBlocksPerRound: u32 & AugmentedConst<ApiType>;
/**
* Default commission due to collators, is `CollatorCommission` storage value in genesis
**/
defaultCollatorCommission: Perbill & AugmentedConst<ApiType>;
/**
* Default percent of inflation set aside for parachain bond account
**/
defaultParachainBondReservePercent: Percent & AugmentedConst<ApiType>;
/**
* Number of rounds that delegation less requests must wait before executable
**/
Expand Down Expand Up @@ -393,7 +405,7 @@ declare module '@polkadot/api-base/types/consts' {
* The maximum weight that may be scheduled per block for any dispatchables of less
* priority than `schedule::HARD_DEADLINE`.
**/
maximumWeight: Weight & AugmentedConst<ApiType>;
maximumWeight: u64 & AugmentedConst<ApiType>;
/**
* The maximum number of scheduled calls in the queue for a single block.
* Not strictly enforced, but used for weight estimation.
Expand Down Expand Up @@ -422,7 +434,7 @@ declare module '@polkadot/api-base/types/consts' {
**/
dbWeight: FrameSupportWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
/**
* The designated SS58 prefix of this chain.
* The designated SS85 prefix of this chain.
*
* This replaces the "ss58Format" property declared in the chain spec. Reason is
* that the runtime should know about the prefix in order to make use of it as
Expand Down
10 changes: 0 additions & 10 deletions packages/api-augment/src/interfaces/augment-api-errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -896,16 +896,6 @@ declare module '@polkadot/api-base/types/errors' {
**/
[key: string]: AugmentedError<ApiType>;
};
sudo: {
/**
* Sender must be the Sudo account
**/
RequireSudo: AugmentedError<ApiType>;
/**
* Generic error
**/
[key: string]: AugmentedError<ApiType>;
};
system: {
/**
* The origin filter prevent the call to be dispatched.
Expand Down
53 changes: 10 additions & 43 deletions packages/api-augment/src/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import '@polkadot/api-base/types/events';
import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
import type { ITuple } from '@polkadot/types-codec/types';
import type { AccountId32, H256, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, OrmlTraitsAssetRegistryAssetMetadata, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletMultisigTimepoint, PalletParachainStakingDelegationRequestsCancelledScheduledRequest, PalletParachainStakingDelegatorAdded, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, TuringRuntimeProxyType, XcmV1MultiAsset, XcmV1MultiLocation, XcmV1MultiassetMultiAssets, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';

export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
Expand Down Expand Up @@ -66,14 +66,7 @@ declare module '@polkadot/api-base/types/events' {
* Successfully transferred funds
**/
SuccessfullyTransferredFunds: AugmentedEvent<ApiType, [taskId: H256], { taskId: H256 }>;
/**
* Cancelled a task.
**/
TaskCancelled: AugmentedEvent<ApiType, [who: AccountId32, taskId: H256], { who: AccountId32, taskId: H256 }>;
/**
* A recurring task attempted but failed to be rescheduled
**/
TaskFailedToReschedule: AugmentedEvent<ApiType, [who: AccountId32, taskId: H256, error: SpRuntimeDispatchError], { who: AccountId32, taskId: H256, error: SpRuntimeDispatchError }>;
/**
* The task could not be run at the scheduled time.
**/
Expand All @@ -82,14 +75,6 @@ declare module '@polkadot/api-base/types/events' {
* A Task was not found.
**/
TaskNotFound: AugmentedEvent<ApiType, [who: AccountId32, taskId: H256], { who: AccountId32, taskId: H256 }>;
/**
* A recurring task was not rescheduled
**/
TaskNotRescheduled: AugmentedEvent<ApiType, [who: AccountId32, taskId: H256, error: SpRuntimeDispatchError], { who: AccountId32, taskId: H256, error: SpRuntimeDispatchError }>;
/**
* A recurring task was rescheduled
**/
TaskRescheduled: AugmentedEvent<ApiType, [who: AccountId32, taskId: H256], { who: AccountId32, taskId: H256 }>;
/**
* Schedule task success.
**/
Expand Down Expand Up @@ -348,19 +333,19 @@ declare module '@polkadot/api-base/types/events' {
/**
* Downward message is overweight and was placed in the overweight queue.
**/
OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: Weight], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: Weight }>;
OverweightEnqueued: AugmentedEvent<ApiType, [messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64], { messageId: U8aFixed, overweightIndex: u64, requiredWeight: u64 }>;
/**
* Downward message from the overweight queue was executed.
**/
OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: Weight], { overweightIndex: u64, weightUsed: Weight }>;
OverweightServiced: AugmentedEvent<ApiType, [overweightIndex: u64, weightUsed: u64], { overweightIndex: u64, weightUsed: u64 }>;
/**
* Downward message is unsupported version of XCM.
**/
UnsupportedVersion: AugmentedEvent<ApiType, [messageId: U8aFixed], { messageId: U8aFixed }>;
/**
* The weight limit for handling downward messages was reached.
**/
WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: Weight, requiredWeight: Weight], { messageId: U8aFixed, remainingWeight: Weight, requiredWeight: Weight }>;
WeightExhausted: AugmentedEvent<ApiType, [messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64], { messageId: U8aFixed, remainingWeight: u64, requiredWeight: u64 }>;
/**
* Generic event
**/
Expand Down Expand Up @@ -571,7 +556,7 @@ declare module '@polkadot/api-base/types/events' {
/**
* Downward messages were processed using the given weight.
**/
DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: Weight, dmqHead: H256], { weightUsed: Weight, dmqHead: H256 }>;
DownwardMessagesProcessed: AugmentedEvent<ApiType, [weightUsed: u64, dmqHead: H256], { weightUsed: u64, dmqHead: H256 }>;
/**
* Some downward messages have been received and will be processed.
**/
Expand Down Expand Up @@ -659,7 +644,7 @@ declare module '@polkadot/api-base/types/events' {
*
* \[ id, pallet index, call index, actual weight, max budgeted weight \]
**/
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, Weight, Weight]>;
NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;
/**
* A given location which had a version change subscription was dropped owing to an error
* migrating the location to our new XCM format.
Expand Down Expand Up @@ -797,24 +782,6 @@ declare module '@polkadot/api-base/types/events' {
**/
[key: string]: AugmentedEvent<ApiType>;
};
sudo: {
/**
* The \[sudoer\] just switched identity; the old key is supplied if one existed.
**/
KeyChanged: AugmentedEvent<ApiType, [oldSudoer: Option<AccountId32>], { oldSudoer: Option<AccountId32> }>;
/**
* A sudo just took place. \[result\]
**/
Sudid: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
/**
* A sudo just took place. \[result\]
**/
SudoAsDone: AugmentedEvent<ApiType, [sudoResult: Result<Null, SpRuntimeDispatchError>], { sudoResult: Result<Null, SpRuntimeDispatchError> }>;
/**
* Generic event
**/
[key: string]: AugmentedEvent<ApiType>;
};
system: {
/**
* `:code` was updated.
Expand Down Expand Up @@ -1152,19 +1119,19 @@ declare module '@polkadot/api-base/types/events' {
/**
* Some XCM failed.
**/
Fail: AugmentedEvent<ApiType, [messageHash: Option<H256>, error: XcmV2TraitsError, weight: Weight], { messageHash: Option<H256>, error: XcmV2TraitsError, weight: Weight }>;
Fail: AugmentedEvent<ApiType, [messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64], { messageHash: Option<H256>, error: XcmV2TraitsError, weight: u64 }>;
/**
* An XCM exceeded the individual message weight budget.
**/
OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: Weight], { sender: u32, sentAt: u32, index: u64, required: Weight }>;
OverweightEnqueued: AugmentedEvent<ApiType, [sender: u32, sentAt: u32, index: u64, required: u64], { sender: u32, sentAt: u32, index: u64, required: u64 }>;
/**
* An XCM from the overweight queue was executed with the given actual weight used.
**/
OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: Weight], { index: u64, used: Weight }>;
OverweightServiced: AugmentedEvent<ApiType, [index: u64, used: u64], { index: u64, used: u64 }>;
/**
* Some XCM was executed ok.
**/
Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: Weight], { messageHash: Option<H256>, weight: Weight }>;
Success: AugmentedEvent<ApiType, [messageHash: Option<H256>, weight: u64], { messageHash: Option<H256>, weight: u64 }>;
/**
* An upward message was sent to the relay chain.
**/
Expand Down
Loading

0 comments on commit fba413e

Please sign in to comment.