pub struct ClarityTransactionConnection<'a> { /* private fields */ }
Expand description

Interface for Clarity VM interactions within a given transaction.

commit the transaction to the block with .commit() rollback the transaction by dropping this struct.

Implementations

Do something to the underlying DB that involves writing.

What’s our total (block-wide) resource use so far?

Analyze a provided smart contract, but do not write the analysis to the AnalysisDatabase

Save a contract analysis output to the AnalysisDatabase An error here would indicate that something has gone terribly wrong in the processing of a contract insert. the caller should likely abort the whole block or panic

Execute a STX transfer in the current block. Will throw an error if it tries to spend STX that the ‘from’ principal doesn’t have.

Execute a contract call in the current block. If an error occurs while processing the transaction, it’s modifications will be rolled back. abort_call_back is called with an AssetMap and a ClarityDatabase reference, if abort_call_back returns true, all modifications from this transaction will be rolled back. otherwise, they will be committed (though they may later be rolled back if the block itself is rolled back).

Initialize a contract in the current block. If an error occurs while processing the initialization, it’s modifications will be rolled back. abort_call_back is called with an AssetMap and a ClarityDatabase reference, if abort_call_back returns true, all modifications from this transaction will be rolled back. otherwise, they will be committed (though they may later be rolled back if the block itself is rolled back).

Commit the changes from the edit log. panics if there is more than one open savepoint

Trait Implementations

Do something with ownership of the underlying DB that involves only reading.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more