Browse Source

Merge pull request #1521 from Lezek123/babylon-types-2nd-update

@joystream/types: Add back ProposalDetails enum variants
Mokhtar Naamani 4 years ago
parent
commit
e0d954daf8

File diff suppressed because it is too large
+ 1 - 1
types/augment-codec/all.ts


File diff suppressed because it is too large
+ 0 - 0
types/augment-codec/augment-types.ts


+ 5 - 0
types/augment/all/defs.json

@@ -603,6 +603,8 @@
             "RuntimeUpgrade": "Bytes",
             "SetElectionParameters": "ElectionParameters",
             "Spending": "(Balance,AccountId)",
+            "SetLead": "Option<SetLeadParams>",
+            "SetContentWorkingGroupMintCapacity": "u128",
             "EvictStorageProvider": "GenericAccountId",
             "SetValidatorCount": "u32",
             "SetStorageRoleParameters": "RoleParameters",
@@ -622,6 +624,8 @@
             "RuntimeUpgrade": "Bytes",
             "SetElectionParameters": "ElectionParameters",
             "Spending": "(Balance,AccountId)",
+            "SetLead": "Option<SetLeadParams>",
+            "SetContentWorkingGroupMintCapacity": "u128",
             "EvictStorageProvider": "GenericAccountId",
             "SetValidatorCount": "u32",
             "SetStorageRoleParameters": "RoleParameters",
@@ -723,6 +727,7 @@
             "ExecutionFailed": "ExecutionFailed"
         }
     },
+    "SetLeadParams": "(MemberId,GenericAccountId)",
     "Nonce": "u64",
     "EntityId": "u64",
     "ClassId": "u64",

+ 11 - 0
types/augment/all/types.ts

@@ -879,6 +879,10 @@ export interface ProposalDetails extends Enum {
   readonly asSetElectionParameters: ElectionParameters;
   readonly isSpending: boolean;
   readonly asSpending: ITuple<[Balance, AccountId]>;
+  readonly isSetLead: boolean;
+  readonly asSetLead: Option<SetLeadParams>;
+  readonly isSetContentWorkingGroupMintCapacity: boolean;
+  readonly asSetContentWorkingGroupMintCapacity: u128;
   readonly isEvictStorageProvider: boolean;
   readonly asEvictStorageProvider: GenericAccountId;
   readonly isSetValidatorCount: boolean;
@@ -913,6 +917,10 @@ export interface ProposalDetailsOf extends Enum {
   readonly asSetElectionParameters: ElectionParameters;
   readonly isSpending: boolean;
   readonly asSpending: ITuple<[Balance, AccountId]>;
+  readonly isSetLead: boolean;
+  readonly asSetLead: Option<SetLeadParams>;
+  readonly isSetContentWorkingGroupMintCapacity: boolean;
+  readonly asSetContentWorkingGroupMintCapacity: u128;
   readonly isEvictStorageProvider: boolean;
   readonly asEvictStorageProvider: GenericAccountId;
   readonly isSetValidatorCount: boolean;
@@ -1084,6 +1092,9 @@ export interface ServiceProviderRecord extends Struct {
   readonly expires_at: u32;
 }
 
+/** @name SetLeadParams */
+export interface SetLeadParams extends ITuple<[MemberId, GenericAccountId]> {}
+
 /** @name SideEffect */
 export interface SideEffect extends Option<ITuple<[EntityId, EntityReferenceCounterSideEffect]>> {}
 

File diff suppressed because it is too large
+ 0 - 0
types/augment/augment-types.ts


+ 7 - 0
types/src/proposals.ts

@@ -153,6 +153,10 @@ export class ProposalId extends u32 {}
 
 export class SpendingParams extends Tuple.with(['Balance', 'AccountId']) {}
 
+export class SetLeadParams extends Tuple.with([MemberId, AccountId]) {}
+
+export class SetLead extends Option.with(SetLeadParams) {}
+
 export class Proposal
   // FIXME: Snake case for consistency?
   extends JoyStructDecorated({
@@ -250,6 +254,8 @@ export class ProposalDetails extends JoyEnum({
   RuntimeUpgrade: Bytes,
   SetElectionParameters: ElectionParameters,
   Spending: SpendingParams,
+  SetLead: SetLead,
+  SetContentWorkingGroupMintCapacity: u128,
   EvictStorageProvider: AccountId,
   SetValidatorCount: u32,
   SetStorageRoleParameters: RoleParameters,
@@ -285,6 +291,7 @@ export const proposalsTypes = {
   ProposalDecisionStatus,
   ExecutionFailed,
   Approved,
+  SetLeadParams,
 }
 
 export default proposalsTypes

Some files were not shown because too many files changed in this diff