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

Function create_subscriber

subscriptions/programs/subscriptions/src/lib.rs:64–69  ·  view source on GitHub ↗

* create subscriber */

(
        ctx: Context<CreateSubscriber>,
        subscriber_bump: u8,
    )

Source from the content-addressed store, hash-verified

62 * create subscriber
63 */
64 pub fn create_subscriber<'info>(
65 ctx: Context<CreateSubscriber>,
66 subscriber_bump: u8,
67 ) -> Result<()> {
68 ctx.accounts.process(subscriber_bump)
69 }
70
71 /*
72 * subscribe from a subscription

Callers

nothing calls this directly

Calls 1

processMethod · 0.45

Tested by

no test coverage detected