Skip to content

Commit

Permalink
augment-api
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Oct 17, 2023
1 parent 08714aa commit 1573957
Show file tree
Hide file tree
Showing 5 changed files with 417 additions and 368 deletions.
11 changes: 10 additions & 1 deletion typescript-api/src/dancebox/interfaces/augment-api-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import "@polkadot/api-base/types/events";

import type { ApiTypes, AugmentedEvent } from "@polkadot/api-base/types";
import type { Bytes, Null, Option, Result, U8aFixed, Vec, u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
import type { AccountId32, H256 } from "@polkadot/types/interfaces/runtime";
import type {
DanceboxRuntimeProxyType,
Expand Down Expand Up @@ -116,6 +116,15 @@ declare module "@polkadot/api-base/types/events" {
/** Generic event */
[key: string]: AugmentedEvent<ApiType>;
};
collatorAssignment: {
NewPendingAssignment: AugmentedEvent<
ApiType,
[randomSeed: U8aFixed, fullRotation: bool, targetSession: u32],
{ randomSeed: U8aFixed; fullRotation: bool; targetSession: u32 }
>;
/** Generic event */
[key: string]: AugmentedEvent<ApiType>;
};
cumulusXcm: {
/** Downward message executed with the given outcome. [ id, outcome ] */
ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, StagingXcmV3TraitsOutcome]>;
Expand Down
5 changes: 5 additions & 0 deletions typescript-api/src/dancebox/interfaces/augment-api-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ declare module "@polkadot/api-base/types/submittable" {
(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
[u32]
>;
/** See [`Pallet::set_full_rotation_period`]. */
setFullRotationPeriod: AugmentedSubmittable<
(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
[u32]
>;
/** See [`Pallet::set_max_collators`]. */
setMaxCollators: AugmentedSubmittable<
(updated: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>,
Expand Down
Loading

0 comments on commit 1573957

Please sign in to comment.