Skip to content

Commit

Permalink
fix: integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed Sep 14, 2023
1 parent b738fb0 commit 1de5d16
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pallets/account/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,42 @@
// along with Astar. If not, see <http://www.gnu.org/licenses/>.

//! # Pallet Account
//!
//! A simple module for managing mappings (both ways) between different
//! address schemes
//!
//! - [`Config`]
//! - [`Call`]
//!
//! ## Overview
//!
//! The Accounts module provide functionality for native account holders to
//! connect their EVM accounts to have a unified experence across the different VMs.
//! - Connect EVM address you control
//! - Connect default evm address
//!
//! ## Interface
//!
//! * `claim_evm_account`: Creates the double mappings for the provided evm address with caller
//! account id given that no prior mapping exists for both and signature provided is valid.
//! * `claim_default_evm_account`: Creates the double mapping with default evm address given that
//! no prior mapping exists.
//!
//! ## Traits
//!
//! * `AddressManager`: Interface to access pallet's mappings with defaults
//! * `ClaimSignature`: Signature verification scheme for proving address ownership
//!
//! ## Implementations
//!
//! * [`StaticLookup`](sp_runtime::traits::StaticLookup): Lookup implementations for accepting H160
//! * [`AddressMapping`](pallet_evm::AddressMapping): Wrapper over `AddressManager` for evm address mapping
//! to account id.
//! * [`AccountMapping`](astar_primitives::ethereum_checked::AccountMapping): Wrapper over `AddressManager`
//! for account id mappings to h160.
//! * `KillAccountMapping`: [`OnKilledAccount`](frame_support::traits::OnKilledAccount) implementation to remove
//! the mappings from storage after account is reaped.
//! * `EIP712Signature`: EIP712 signature implementation for [`ClaimSignature`](crate::ClaimSignature)
#![cfg_attr(not(feature = "std"), no_std)]

Expand Down
1 change: 1 addition & 0 deletions tests/integration/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ impl ExtBuilder {

let mut ext = sp_io::TestExternalities::new(t);
ext.execute_with(|| System::set_block_number(1));
#[cfg(feature = "shibuya")]
ext.execute_with(|| claim_default_accounts(ALICE));
ext
}
Expand Down

0 comments on commit 1de5d16

Please sign in to comment.