@@ -71,59 +71,26 @@ pub mod pallet {
7171	#[ pallet:: event]  
7272	#[ pallet:: generate_deposit( pub ( super )  fn  deposit_event) ]  
7373	pub  enum  Event < T :  Config >  { 
74- 		DelegateeAdded  { 
75- 			account :  T :: AccountId , 
76- 		} , 
77- 		DelegateeRemoved  { 
78- 			account :  T :: AccountId , 
79- 		} , 
74+ 		DelegateeAdded  {  account :  T :: AccountId  } , 
75+ 		DelegateeRemoved  {  account :  T :: AccountId  } , 
8076		// TODO: do we need account as event parameter? This needs to be decided by F/E 
81- 		CreateIdentityRequested  { 
82- 			shard :  ShardIdentifier , 
83- 		} , 
84- 		RemoveIdentityRequested  { 
85- 			shard :  ShardIdentifier , 
86- 		} , 
87- 		VerifyIdentityRequested  { 
88- 			shard :  ShardIdentifier , 
89- 		} , 
90- 		SetUserShieldingKeyRequested  { 
91- 			shard :  ShardIdentifier , 
92- 		} , 
77+ 		CreateIdentityRequested  {  shard :  ShardIdentifier  } , 
78+ 		RemoveIdentityRequested  {  shard :  ShardIdentifier  } , 
79+ 		VerifyIdentityRequested  {  shard :  ShardIdentifier  } , 
80+ 		SetUserShieldingKeyRequested  {  shard :  ShardIdentifier  } , 
9381		// event that should be triggered by TEECallOrigin 
9482		// these events keep the `account` as public to be consistent with VCMP and better 
9583		// indexing see https://github.com/litentry/litentry-parachain/issues/1313 
96- 		UserShieldingKeySet  { 
97- 			account :  T :: AccountId , 
98- 		} , 
99- 		IdentityCreated  { 
100- 			account :  T :: AccountId , 
101- 			identity :  AesOutput , 
102- 			code :  AesOutput , 
103- 			id_graph :  AesOutput , 
104- 		} , 
105- 		IdentityRemoved  { 
106- 			account :  T :: AccountId , 
107- 			identity :  AesOutput , 
108- 			id_graph :  AesOutput , 
109- 		} , 
110- 		IdentityVerified  { 
111- 			account :  T :: AccountId , 
112- 			identity :  AesOutput , 
113- 			id_graph :  AesOutput , 
114- 		} , 
84+ 		UserShieldingKeySet  {  account :  T :: AccountId  } , 
85+ 		IdentityCreated  {  account :  T :: AccountId ,  identity :  AesOutput ,  code :  AesOutput  } , 
86+ 		IdentityRemoved  {  account :  T :: AccountId ,  identity :  AesOutput  } , 
87+ 		IdentityVerified  {  account :  T :: AccountId ,  identity :  AesOutput ,  id_graph :  AesOutput  } , 
11588		// event errors caused by processing in TEE 
11689		// copied from core_primitives::IMPError, we use events instead of pallet::errors, 
11790		// see https://github.com/litentry/litentry-parachain/issues/1275 
118- 		DecodeHexFailed  { 
119- 			reason :  ErrorString , 
120- 		} , 
121- 		HttpRequestFailed  { 
122- 			reason :  ErrorString , 
123- 		} , 
124- 		StfError  { 
125- 			reason :  ErrorString , 
126- 		} , 
91+ 		DecodeHexFailed  {  reason :  ErrorString  } , 
92+ 		HttpRequestFailed  {  reason :  ErrorString  } , 
93+ 		StfError  {  reason :  ErrorString  } , 
12794		CreateIdentityHandlingFailed , 
12895		RemoveIdentityHandlingFailed , 
12996		VerifyIdentityHandlingFailed , 
@@ -262,10 +229,9 @@ pub mod pallet {
262229			account :  T :: AccountId , 
263230			identity :  AesOutput , 
264231			code :  AesOutput , 
265- 			id_graph :  AesOutput , 
266232		)  -> DispatchResultWithPostInfo  { 
267233			let  _ = T :: TEECallOrigin :: ensure_origin ( origin) ?; 
268- 			Self :: deposit_event ( Event :: IdentityCreated  {  account,  identity,  code,  id_graph  } ) ; 
234+ 			Self :: deposit_event ( Event :: IdentityCreated  {  account,  identity,  code } ) ; 
269235			Ok ( Pays :: No . into ( ) ) 
270236		} 
271237
@@ -275,10 +241,9 @@ pub mod pallet {
275241			origin :  OriginFor < T > , 
276242			account :  T :: AccountId , 
277243			identity :  AesOutput , 
278- 			id_graph :  AesOutput , 
279244		)  -> DispatchResultWithPostInfo  { 
280245			let  _ = T :: TEECallOrigin :: ensure_origin ( origin) ?; 
281- 			Self :: deposit_event ( Event :: IdentityRemoved  {  account,  identity,  id_graph  } ) ; 
246+ 			Self :: deposit_event ( Event :: IdentityRemoved  {  account,  identity } ) ; 
282247			Ok ( Pays :: No . into ( ) ) 
283248		} 
284249
0 commit comments