mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 19:31:02 +00:00
b78c72cf9c
# Description
This PR removes redundant type definition from test definition config
implementations like
```
#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)]
impl frame_system::Config for Test {
type A = A;
...
}
```
This changes avoid redundancies in the code as the macro `derive_impl`
defines the relevant types. To implement the changes, it was a simple
fact of running tests and making sure that the tests would still run
while the definition would be removed.
Closes #3237
As a note, here is a brief account of things done from the Issue's
description statement
```
alliance migrate alliance, fast-unstake and bags list to use derive-impl #1636
asset-conversion DONE
asset-rate DONE
assets DONE
atomic-swap DONE
aura DONE
authority-discovery DONE
authorship migrate babe and authorship to use derive-impl #1790
babe migrate babe and authorship to use derive-impl #1790
bags-list migrate alliance, fast-unstake and bags list to use derive-impl #1636
balances DONE
beefy NOTHING TO DO --- also noted this error without failing tests Feb 13 13:49:08.941 ERROR runtime::timestamp: `pallet_timestamp::UnixTime::now` is called at genesis, invalid value returned: 0
beefy-mmr NOTHING TO DO
bounties DONE
child-bounties DONE
collective DONE
contracts DONE
conviction-voting DONE
core-fellowship NOTHING TO DO
democracy DONE
election-provider-multi-phase NOTHING TO DO
elections-phragmen DONE
executive NOTHING TO DO
fast-unstake migrate alliance, fast-unstake and bags list to use derive-impl #1636
glutton DONE
grandpa DONE
identity DONE
im-online NOTHING TO DO
indices Refactor indices pallet #1789
insecure-randomness-collective-flip DONE
lottery DONE
membership DONE
merkle-mountain-range NOTHING TO DO
message-queue DONE
multisig add frame_system::DefaultConfig to individual pallet DefaultConfigs substrate#14453
nft-fractionalization DONE
nfts DONE
nicks Refactor pallet-state-trie-migration to fungible::* traits #1801 NOT IN REPO
nis DONE
node-authorization DONE
nomination-pools NOTHING TO DO -- ONLY impl for Runtime
offences DELETED EVERYTHING -- IS THAT CORRECT??
preimage DONE
proxy add frame_system::DefaultConfig to individual pallet DefaultConfigs substrate#14453
ranked-collective NOTHING TO DO
recovery DONE
referenda DONE
remark DONE
root-offences DONE
root-testing NOTHING TO DO
salary NOTHING TO DO
scheduler DONE
scored-pool DONE
session DONE -- substrate/frame/session/benchmarking/src/mock.rs untouched
society NOTHING TO DO
staking DONE
staking-bags-benchmarks NOT IN REPO
state-trie-migration NOTHING TO DO
statement DONE
sudo DONE
system DONE
timestamp DONE
tips DONE
transaction-payment NOTHING TO DO
transaction-storage NOTHING TO DO
treasury DONE
try-runtime NOTHING TO DO -- no specific mention of 'for Test'
uniques DONE
utility DONE
vesting DONE
whitelist DONE
```
---------
Co-authored-by: command-bot <>
Co-authored-by: gupnik <nikhilgupta.iitk@gmail.com>
Uniques Module
A simple, secure module for dealing with non-fungible assets.
Overview
The Uniques module provides functionality for non-fungible tokens' management, including:
- Collection Creation
- Item Minting
- Item Transfers
- Item Trading methods
- Attributes Management
- Item Burning
To use it in your runtime, you need to implement
uniques::Config.
The supported dispatchable functions are documented in the
uniques::Call enum.
Terminology
- Collection creation: The creation of a new collection.
- Item minting: The action of creating a new item within a collection.
- Item transfer: The action of sending an item from one account to another.
- Item burning: The destruction of an item.
- Non-fungible token (NFT): An item for which each unit has unique characteristics. There is exactly one instance of such an item in existence and there is exactly one owning account.
Goals
The Uniques pallet in Substrate is designed to make the following possible:
- Allow accounts to permissionlessly create NFT collections.
- Allow a named (permissioned) account to mint and burn unique items within a collection.
- Move items between accounts permissionlessly.
- Allow a named (permissioned) account to freeze and unfreeze unique items within a collection or the entire collection.
- Allow the owner of an item to delegate the ability to transfer the item to some named third-party.
Interface
Permissionless dispatchables
create: Create a new collection by placing a deposit.transfer: Transfer an item to a new owner.redeposit: Update the deposit amount of an item, potentially freeing funds.approve_transfer: Name a delegate who may authorise a transfer.cancel_approval: Revert the effects of a previousapprove_transfer.
Permissioned dispatchables
destroy: Destroy a collection.mint: Mint a new item within a collection.burn: Burn an item within a collection.freeze: Prevent an individual item from being transferred.thaw: Revert the effects of a previousfreeze.freeze_collection: Prevent all items within a collection from being transferred.thaw_collection: Revert the effects of a previousfreeze_collection.transfer_ownership: Alter the owner of a collection, moving all associated deposits.set_team: Alter the permissioned accounts of a collection.
Metadata (permissioned) dispatchables
set_attribute: Set an attribute of an item or collection.clear_attribute: Remove an attribute of an item or collection.set_metadata: Set general metadata of an item.clear_metadata: Remove general metadata of an item.set_collection_metadata: Set general metadata of a collection.clear_collection_metadata: Remove general metadata of a collection.
Force (i.e. governance) dispatchables
force_create: Create a new collection.force_asset_status: Alter the underlying characteristics of a collection.
Please refer to the Call enum
and its associated variants for documentation on each function.
Related Modules
License: Apache-2.0