Explorar o código

content dir: add new_reward_account field to channel transfer requests

Mokhtar Naamani %!s(int64=4) %!d(string=hai) anos
pai
achega
25d8174b60
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 3 0
      runtime-modules/content/src/lib.rs
  2. 1 0
      types/src/content/index.ts

+ 3 - 0
runtime-modules/content/src/lib.rs

@@ -202,10 +202,12 @@ pub struct ChannelOwnershipTransferRequestRecord<
     CuratorGroupId,
     DAOId,
     Balance,
+    AccountId,
 > {
     channel_id: ChannelId,
     new_owner: ChannelOwner<MemberId, CuratorGroupId, DAOId>,
     payment: Balance,
+    new_reward_account: Option<AccountId>,
 }
 
 // ChannelOwnershipTransferRequest type alias for simplification.
@@ -215,6 +217,7 @@ pub type ChannelOwnershipTransferRequest<T> = ChannelOwnershipTransferRequestRec
     <T as ContentActorAuthenticator>::CuratorGroupId,
     <T as StorageOwnership>::DAOId,
     BalanceOf<T>,
+    <T as system::Trait>::AccountId,
 >;
 
 /// Information about channel being created.

+ 1 - 0
types/src/content/index.ts

@@ -55,6 +55,7 @@ export class ChannelOwnershipTransferRequest extends JoyStructDecorated({
   channel_id: ChannelId,
   new_owner: ChannelOwner,
   payment: u128,
+  new_reward_account: Option.with(AccountId),
 }) {}
 
 export class ChannelCategory extends JoyStructDecorated({