pub fn thread_create( ctx: Context<'_, ThreadCreate<'_>>, amount: u64, id: ThreadId, trigger: Trigger, paused: Option<bool>, instruction: Option<SerializableInstruction>, priority_fee: Option<u64>, ) -> Result<()>