MCPcopy Create free account
hub / github.com/clockwork-xyz/clockwork / reset

Function reset

cli/src/processor/thread.rs:104–117  ·  view source on GitHub ↗
(client: &Client, id: String)

Source from the content-addressed store, hash-verified

102}
103
104pub fn reset(client: &Client, id: String) -> Result<(), CliError> {
105 let thread_pubkey = Thread::pubkey(client.payer_pubkey(), id.into_bytes());
106 let ix = Instruction {
107 program_id: clockwork_thread_program::ID,
108 accounts: clockwork_thread_program::accounts::ThreadReset {
109 authority: client.payer_pubkey(),
110 thread: thread_pubkey
111 }.to_account_metas(Some(false)),
112 data: clockwork_thread_program::instruction::ThreadReset {}.data(),
113 };
114 client.send_and_confirm(&[ix], &[client.payer()]).unwrap();
115 get(client, thread_pubkey)?;
116 Ok(())
117}
118
119pub fn update(
120 client: &Client,

Callers 1

processFunction · 0.85

Calls 4

payer_pubkeyMethod · 0.80
send_and_confirmMethod · 0.80
payerMethod · 0.80
getFunction · 0.70

Tested by

no test coverage detected