👩‍💻
Unlockd Developers Docs
Unlockd for Devs V2
Unlockd for Devs V2
  • Introduction
  • ⚙️Core
    • Unlockd
    • BaseCore
    • BaseCoreModule
  • ⚙️Modules
    • Installer
    • Manager
    • Action
    • SellNow
    • BuyNow
    • Market
    • Auction
  • 🆕Vault and Tokens
    • UTokenVault
    • BaseToken
    • ScaledToken
    • WethGateway
  • 🆕Adapters and Strategies
    • ReservoirAdapter
    • MaxApyStrategy
  • 🆕Storage
    • CoreStorage
    • UVaultStorage
  • 📔Deployed Contracts
    • Ethereum Sepolia
    • Ethereum Mainnet
  • 📫Unlockd Account (Wallet)
    • Introduction
    • Architecture
    • DelegationWalletFactory
    • DelegationWalletRegistry
    • DelegationOwner
    • GuardOwner
    • ProtocolOwner
    • TransactionGuard
    • DelegationRecipes
    • AllowedControllers
    • Deployed Contracts
      • Ethereum Sepolia (Testnet)
  • 🧰SDK
    • Typescript Package
    • SDK Docs
  • 🤝DEVELOPERS HELP
    • Best Practices
    • Security and Risk Management
    • Github
    • Bug Bounty - ACTIVE
Powered by GitBook
On this page
  • Key variables:
  • Key functions:
  • Parameters:
  • Returns:
  • Returns:
  • Parameters:
  1. Core

BaseCoreModule

BaseCoreModule.sol serves as the base contract for each module in the Unlockd Protocol. It inherits from BaseCore.sol and provides additional functionality specific to modules.

Key variables:

moduleId: The unique identifier of the module.

moduleVersion: The version of the module.

Key functions:

constructor(uint256 moduleId_, bytes32 moduleVersion_)

Initializes the contract with the module ID and version.

Parameters:

moduleId_: The ID of the module.

moduleVersion_: The version of the module.


function unpackTrailingParamMsgSender() 
internal pure returns (address msgSender)

Retrieves the original sender address from the calldata using assembly.

Returns:

The original sender's address.


function unpackTrailingParams() 
internal pure returns (
    address msgSender, 
    address proxyAddr
)

Retrieves the original sender address and proxy address from the calldata using assembly.

Returns:

msgSender: The original sender's address.

proxyAddr: The proxy address.


function _checkHasUnlockdWallet(
    address msgSender
) internal view 

Description: Checks if the sender has a valid Unlockd wallet by querying the wallet registry contract.

Parameters:

msgSender: The address of the sender to check.

PreviousBaseCoreNextInstaller

Last updated 1 year ago

⚙️