pub trait ProgrammableTransactionBuilderExt {
// Required methods
fn update_af_oracle_pyth_feed_args(
&mut self,
_: ObjectArg,
_: ObjectArg,
_: Vec<(ObjectArg, ObjectArg)>,
) -> Result<UpdateAfOracleArguments, Error>;
fn update_af_oracle_pyth_feed(
&mut self,
_: ObjectId,
_: UpdateAfOracleArguments,
) -> Result<(), Error>;
}
Available on crate feature
ptb
only.Expand description
This is an extension trait for the following impl:
ⓘ
#[extension(pub trait ProgrammableTransactionBuilderExt)]
impl for ProgrammableTransactionBuilder
Required Methods§
Sourcefn update_af_oracle_pyth_feed_args(
&mut self,
_: ObjectArg,
_: ObjectArg,
_: Vec<(ObjectArg, ObjectArg)>,
) -> Result<UpdateAfOracleArguments, Error>
fn update_af_oracle_pyth_feed_args( &mut self, _: ObjectArg, _: ObjectArg, _: Vec<(ObjectArg, ObjectArg)>, ) -> Result<UpdateAfOracleArguments, Error>
Construct the PTB arguments to be used in update_af_oracle_pyth_feed
.
This is separate from update_af_oracle_pyth_feed
since the caller may want to use some of the
arguments created here in subsequent PTB calls.
Sourcefn update_af_oracle_pyth_feed(
&mut self,
_: ObjectId,
_: UpdateAfOracleArguments,
) -> Result<(), Error>
fn update_af_oracle_pyth_feed( &mut self, _: ObjectId, _: UpdateAfOracleArguments, ) -> Result<(), Error>
Add a PythWrapper update to the PTB being built.
Implementations on Foreign Types§
Source§impl ProgrammableTransactionBuilderExt for ProgrammableTransactionBuilder
impl ProgrammableTransactionBuilderExt for ProgrammableTransactionBuilder
Source§fn update_af_oracle_pyth_feed_args(
&mut self,
pyth_state: ObjectArg,
pyth_wrapper: ObjectArg,
pfs_to_source: Vec<(ObjectArg, ObjectArg)>,
) -> Result<UpdateAfOracleArguments, Error>
fn update_af_oracle_pyth_feed_args( &mut self, pyth_state: ObjectArg, pyth_wrapper: ObjectArg, pfs_to_source: Vec<(ObjectArg, ObjectArg)>, ) -> Result<UpdateAfOracleArguments, Error>
Construct the PTB arguments to be used in update_af_oracle_pyth_feed
.
This is separate from update_af_oracle_pyth_feed
since the caller may want to use some of the
arguments created here in subsequent PTB calls.
Source§fn update_af_oracle_pyth_feed(
&mut self,
pyth_wrapper_pkg: ObjectId,
arguments: UpdateAfOracleArguments,
) -> Result<(), Error>
fn update_af_oracle_pyth_feed( &mut self, pyth_wrapper_pkg: ObjectId, arguments: UpdateAfOracleArguments, ) -> Result<(), Error>
Add a PythWrapper update to the PTB being built.