git.delta.rocks / unique-network / refs/commits / f779788ead2c

difftreelog

chore fix cargo fmt

Grigoriy Simonov2022-07-22parent: #6024373.patch.diff
in: master

2 files changed

modifiedpallets/refungible/src/erc_token.rsdiffbeforeafterboth
46#[derive(ToLog)]46#[derive(ToLog)]
47pub enum ERC20Events {47pub enum ERC20Events {
48 /// @dev This event is emitted when the amount of tokens (value) is sent48 /// @dev This event is emitted when the amount of tokens (value) is sent
49 /// from the from address to the to address. In the case of minting new 49 /// from the from address to the to address. In the case of minting new
50 /// tokens, the transfer is usually from the 0 address while in the case50 /// tokens, the transfer is usually from the 0 address while in the case
51 /// of burning tokens the transfer is to 0.51 /// of burning tokens the transfer is to 0.
52 Transfer {52 Transfer {
68}68}
6969
70/// @title Standard ERC20 token70/// @title Standard ERC20 token
71/// 71///
72/// @dev Implementation of the basic standard token.72/// @dev Implementation of the basic standard token.
73/// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md73/// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
74#[solidity_interface(name = "ERC20", events(ERC20Events))]74#[solidity_interface(name = "ERC20", events(ERC20Events))]
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
96use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};96use pallet_evm::{account::CrossAccountId, Pallet as PalletEvm};
97use pallet_evm_coder_substrate::WithRecorder;97use pallet_evm_coder_substrate::WithRecorder;
98use pallet_common::{CommonCollectionOperations, Error as CommonError, Event as CommonEvent, Pallet as PalletCommon};98use pallet_common::{
99 CommonCollectionOperations, Error as CommonError, Event as CommonEvent, Pallet as PalletCommon,
100};
99use pallet_structure::Pallet as PalletStructure;101use pallet_structure::Pallet as PalletStructure;
100use scale_info::TypeInfo;102use scale_info::TypeInfo;
101use sp_core::H160;103use sp_core::H160;
102use sp_runtime::{ArithmeticError, DispatchError, DispatchResult, TransactionOutcome};104use sp_runtime::{ArithmeticError, DispatchError, DispatchResult, TransactionOutcome};
103use sp_std::{vec::Vec, vec, collections::btree_map::BTreeMap};105use sp_std::{vec::Vec, vec, collections::btree_map::BTreeMap};
104use up_data_structs::{106use up_data_structs::{
105 AccessMode, budget::Budget, CollectionId, CreateCollectionData, CreateRefungibleExData, CustomDataLimit, mapping::TokenAddressMapping, MAX_REFUNGIBLE_PIECES, TokenId,107 AccessMode, budget::Budget, CollectionId, CreateCollectionData, CreateRefungibleExData,
106 Property, PropertyKey, PropertyKeyPermission, PropertyPermission, PropertyScope, PropertyValue, TrySetProperty108 CustomDataLimit, mapping::TokenAddressMapping, MAX_REFUNGIBLE_PIECES, TokenId, Property,
109 PropertyKey, PropertyKeyPermission, PropertyPermission, PropertyScope, PropertyValue,
110 TrySetProperty,
107};111};
108112
109pub use pallet::*;113pub use pallet::*;