pub fn thread_create(
    amount: u64,
    authority: Pubkey,
    id: Vec<u8>,
    instructions: Vec<SerializableInstruction>,
    payer: Pubkey,
    thread: Pubkey,
    trigger: Trigger
) -> Instruction