mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
Companion for Substrate 12586 (#1808)
* companion for assets CreateOrigin
* more runtimes
* fix imports
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+267
-280
File diff suppressed because it is too large
Load Diff
@@ -247,6 +247,7 @@ impl pallet_assets::Config for Runtime {
|
|||||||
type Balance = Balance;
|
type Balance = Balance;
|
||||||
type AssetId = AssetId;
|
type AssetId = AssetId;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
|
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
|
||||||
type ForceOrigin = AssetsForceOrigin;
|
type ForceOrigin = AssetsForceOrigin;
|
||||||
type AssetDeposit = AssetDeposit;
|
type AssetDeposit = AssetDeposit;
|
||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ impl pallet_assets::Config for Runtime {
|
|||||||
type Balance = Balance;
|
type Balance = Balance;
|
||||||
type AssetId = AssetId;
|
type AssetId = AssetId;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
|
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
|
||||||
type ForceOrigin = AssetsForceOrigin;
|
type ForceOrigin = AssetsForceOrigin;
|
||||||
type AssetDeposit = AssetDeposit;
|
type AssetDeposit = AssetDeposit;
|
||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ impl pallet_assets::Config for Runtime {
|
|||||||
type Balance = Balance;
|
type Balance = Balance;
|
||||||
type AssetId = AssetId;
|
type AssetId = AssetId;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
|
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
|
||||||
type ForceOrigin = AssetsForceOrigin;
|
type ForceOrigin = AssetsForceOrigin;
|
||||||
type AssetDeposit = AssetDeposit;
|
type AssetDeposit = AssetDeposit;
|
||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ use frame_support::{
|
|||||||
construct_runtime,
|
construct_runtime,
|
||||||
dispatch::DispatchClass,
|
dispatch::DispatchClass,
|
||||||
parameter_types,
|
parameter_types,
|
||||||
traits::Everything,
|
traits::{AsEnsureOriginWithArg, Everything},
|
||||||
weights::{
|
weights::{
|
||||||
constants::WEIGHT_PER_SECOND, ConstantMultiplier, Weight, WeightToFeeCoefficient,
|
constants::WEIGHT_PER_SECOND, ConstantMultiplier, Weight, WeightToFeeCoefficient,
|
||||||
WeightToFeeCoefficients, WeightToFeePolynomial,
|
WeightToFeeCoefficients, WeightToFeePolynomial,
|
||||||
@@ -44,7 +44,7 @@ use frame_support::{
|
|||||||
};
|
};
|
||||||
use frame_system::{
|
use frame_system::{
|
||||||
limits::{BlockLength, BlockWeights},
|
limits::{BlockLength, BlockWeights},
|
||||||
EnsureRoot,
|
EnsureRoot, EnsureSigned,
|
||||||
};
|
};
|
||||||
use smallvec::smallvec;
|
use smallvec::smallvec;
|
||||||
use sp_api::impl_runtime_apis;
|
use sp_api::impl_runtime_apis;
|
||||||
@@ -398,6 +398,7 @@ impl pallet_assets::Config for Runtime {
|
|||||||
type Balance = Balance;
|
type Balance = Balance;
|
||||||
type AssetId = AssetId;
|
type AssetId = AssetId;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
|
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
|
||||||
type ForceOrigin = EnsureRoot<AccountId>;
|
type ForceOrigin = EnsureRoot<AccountId>;
|
||||||
type AssetDeposit = AssetDeposit;
|
type AssetDeposit = AssetDeposit;
|
||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ pub use frame_support::{
|
|||||||
construct_runtime,
|
construct_runtime,
|
||||||
dispatch::DispatchClass,
|
dispatch::DispatchClass,
|
||||||
match_types, parameter_types,
|
match_types, parameter_types,
|
||||||
traits::{EitherOfDiverse, Everything, IsInVec, Randomness},
|
traits::{AsEnsureOriginWithArg, EitherOfDiverse, Everything, IsInVec, Randomness},
|
||||||
weights::{
|
weights::{
|
||||||
constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
|
constants::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight, WEIGHT_PER_SECOND},
|
||||||
ConstantMultiplier, IdentityFee, Weight,
|
ConstantMultiplier, IdentityFee, Weight,
|
||||||
@@ -50,7 +50,7 @@ pub use frame_support::{
|
|||||||
};
|
};
|
||||||
use frame_system::{
|
use frame_system::{
|
||||||
limits::{BlockLength, BlockWeights},
|
limits::{BlockLength, BlockWeights},
|
||||||
EnsureRoot,
|
EnsureRoot, EnsureSigned,
|
||||||
};
|
};
|
||||||
pub use pallet_balances::Call as BalancesCall;
|
pub use pallet_balances::Call as BalancesCall;
|
||||||
pub use pallet_timestamp::Call as TimestampCall;
|
pub use pallet_timestamp::Call as TimestampCall;
|
||||||
@@ -497,6 +497,7 @@ impl pallet_assets::Config for Runtime {
|
|||||||
type Balance = u64;
|
type Balance = u64;
|
||||||
type AssetId = AssetId;
|
type AssetId = AssetId;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
|
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
|
||||||
type ForceOrigin = AdminOrigin;
|
type ForceOrigin = AdminOrigin;
|
||||||
type AssetDeposit = AssetDeposit;
|
type AssetDeposit = AssetDeposit;
|
||||||
type MetadataDepositBase = MetadataDepositBase;
|
type MetadataDepositBase = MetadataDepositBase;
|
||||||
|
|||||||
Reference in New Issue
Block a user