Skip to content

Commit

Permalink
docs: api trait comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Aug 11, 2024
1 parent 3894297 commit a050ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ use sp_std::vec::Vec;

type ContractSchedule<T> = <T as pallet_contracts::Config>::Schedule;

/// Trait for the Pop API chain extension configuration.
pub trait Config:
frame_system::Config<RuntimeCall: GetDispatchInfo + Dispatchable<PostInfo = PostDispatchInfo>>
{
/// A query of runtime state.
type RuntimeRead: Decode;
/// Something to read runtime states
/// Something to read runtime states.
type StateReader: ReadState<Self>;
/// Allowlisted runtime calls and read state calls.
type AllowedApiCalls: Contains<Self::RuntimeCall> + Contains<Self::RuntimeRead>;
Expand Down

0 comments on commit a050ecf

Please sign in to comment.