Function pallet_starknet::pallet::dispatchables::declare
source · pub fn declare<T: Config>(transaction: DeclareTransaction)
Expand description
The declare transaction is used to introduce new classes into the state of Starknet,
enabling other contracts to deploy instances of those classes or using them in a library
call. See https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#declare_transaction
.
Arguments
origin
- The origin of the transaction.transaction
- The Starknet transaction.
Returns
DispatchResult
- The result of the transaction.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::declare
.