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

Method new

pyth_feed/programs/pyth_feed/src/state/feed.rs:39–44  ·  view source on GitHub ↗
(&mut self, authority: Pubkey, pyth_price_feed: Pubkey)

Source from the content-addressed store, hash-verified

37
38impl FeedAccount for Account<'_, Feed> {
39 fn new(&mut self, authority: Pubkey, pyth_price_feed: Pubkey) -> Result<()> {
40 self.authority = authority;
41 self.pyth_price_feed = pyth_price_feed;
42 self.publish_time = 0;
43 Ok(())
44 }
45}

Callers 1

handlerFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected