Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines EIP7291, which proposes Purpose Bound Money (PBM), a mechanism that uses ERC20-compatible digital money tokens and ERC1155-compatible smart contracts to execute payments automatically when transaction conditions are met.

The following explanation translates, summarizes, and supplements the material linked below.

I also cover various other EIPs.

Overview

This proposal defines smart contract interfaces extending the ERC1155 standard to implement Purpose Bound Money (PBM).

For more on ERC1155, see the following article.

https://chaldene.net/erc1155

PBM consists of a PBM wrapper and the digital money token it wraps. These digital money tokens include stablecoins, central bank digital currencies, and tokenized vaults, and serve as a store of value (sov). The digital money token (sovToken) should therefore have the following properties.

  • A good store of value.
  • A suitable unit of account.
  • A medium of exchange.

Token wrapping is the process of wrapping a digital asset or token in another form so it can be used in a new environment or platform. Specifically, it involves reissuing the original token as a new token that can operate on another blockchain or smart contract system while retaining its functionality or value.

For example, Bitcoin (BTC) cannot be used directly on Ethereum in its original form. However, wrapping BTC into an ERC20 token that Ethereum smart contracts can use makes it available within the Ethereum digital ecosystem. This wrapped form of Bitcoin is commonly called Wrapped Bitcoin (WBTC) and can be used in a variety of digital services and applications on Ethereum.

The process generally involves the following steps.

  • Deposit
    • The user sends the original token (e.g., BTC) to a designated address known as a wrapper.
  • Issuance
    • The wrapper issues new tokens (e.g., WBTC) corresponding to the tokens deposited by the user.
    • The new tokens represent the value of the original tokens and are usable on the new platform.
  • Exchange and use
    • The wrapped tokens can be freely traded or used in the new blockchain environment.

The wrapping process typically involves a trusted custodian or smart contract that safeguards the deposited original tokens and handles the issuance and management of wrapped tokens. This improves interoperability between blockchains and enables a wider range of uses for various assets.

PBM is designed as a bearer instrument with embedded programming logic that can be transferred between two parties without an intermediary. The system combines the following two concepts.

  • Programmable payments
    • Payments execute automatically when predefined conditions are met.
  • Programmable money
    • Rules embedded in the medium of exchange itself can define or constrain how it is used.

Once the conditions are met, the sovToken is unwrapped and becomes freely usable again. PBM can be thought of as a digital cash voucher that restricts how the payer spends it without imposing those restrictions on merchants. PBM unwraps stablecoins at the point of payment. This resembles a physical cash voucher limited to purchases from merchants designated by its issuer. A merchant that accepts the voucher can exchange it with the issuer for fiat currency.

Cash vouchers

A cash voucher is a payment instrument with a predetermined monetary value. It is often used as a gift, but can also be part of a promotion or rewards program. It provides purchasing power equivalent to a prepaid amount and often takes the form of a coupon or card usable only at designated stores or service providers.

Characteristics and uses of cash vouchers

  • Prepayment

    • The user prepays the face value when purchasing the voucher.
    • For example, a cash voucher worth ¥1,000 can be exchanged for ¥1,000 worth of goods or services.
  • Usage restrictions

    • Vouchers can only be used at certain stores, restaurants, online platforms, or other designated locations.
    • They may also have an expiration date.
  • No cash withdrawal

    • Cash vouchers cannot be withdrawn as cash.
    • The voucher's value can only be used to purchase goods or services.
  • Gifts and rewards

    • Vouchers are often given as gifts, allowing recipients to choose and purchase goods using the voucher.
    • Companies may also offer them as employee incentives or customer rewards.
Benefits and limitations
  • Benefits
    • Users can obtain goods or services without making a direct monetary payment, while gift givers can offer recipients the flexibility to choose the items they want.
  • Limitations
    • Restrictions on where and when vouchers can be used may inconvenience some users.

Digital cash vouchers

A digital cash voucher is a digital payment instrument similar to a physical cash voucher or gift card. It is typically preloaded with a specified amount and restricted to certain merchants or service providers. Consumers can use digital cash vouchers to buy goods and services online or in physical stores.

Digital cash vouchers have the following characteristics.

  • Prepaid value
    • Users pay a predetermined amount when purchasing a voucher.
  • Usage restrictions
    • Vouchers are generally usable only at particular stores or services.
  • Digital format
    • They are managed as electronic codes or digital tokens rather than physical cards or paper.

In the context of Purpose Bound Money (PBM), the instrument functions as a digital cash voucher and has the characteristics of digital currency restricted to a particular purpose. Consumers can use PBM only under specified conditions, while merchants can accept it and redeem it for the underlying currency (such as fiat currency or stablecoins). PBM is thus designed for specific transactions, but once payment is complete, those restrictions no longer apply to the merchant.

The proposal defines the following modular architecture.

  • An ERC20-compatible sovToken as digital money.
  • An ERC1155-compatible smart contract as the PBM wrapper.
  • An address list smart contract implementing PBM logic.
  • A PBM token manager smart contract managing token registration and retrieval.

Together, these components enable efficient, flexible management and operation of PBM, making it easier for developers and participants to incorporate their own functionality and rules.

For more on ERC20, see the following article.

https://chaldene.net/erc20

Motivation

The proposal aims to prevent technology fragmentation and the resulting lack of interoperability. Making the Purpose Bound Money (PBM) specification open allows new participants to access existing market standards easily and at no cost. This enables interoperability across platforms, wallets, payment systems, and payment rails. It reduces barriers to entry, encourages a vibrant payments ecosystem, and helps prevent the emergence of closed environments and monopolies. Ultimately, this is expected to lead to more efficient, affordable services and a better user experience.

By establishing a common industry standard, the proposal aims to help new market entrants integrate with the existing ecosystem without facing technical barriers. Improved interoperability enables different digital payment solutions to work together smoothly, increasing the efficiency and convenience of digital payments overall. In the long term, this offers users better choices and experiences.

Specification

Definitions

sovToken

A sovToken is an ERC20 or ERC20-compatible digital currency (such as ERC777 or ERC1363) that serves as a store of value, namely the collateral backing PBM tokens. It is the underlying asset that provides transaction security and stability of value.

For more on ERC777, see the following article.

[ERC777] Understanding the Standard Token Contract Interface

For more on ERC1363, see the following article.

[ERC1363] Executing Additional Functions After ERC20 transfer or approve

PBM Wrapper

A PBM Wrapper is an ERC1155-compliant smart contract that wraps a sovToken and specifies one or more conditions that must be satisfied. These conditions are called PBM business logic and are explained in the PBM architecture section. The PBM wrapper can be modular, incorporating core, plugin, and hook components. The PBM wrapper smart contract, together with the selected hook smart contracts, unwraps the sovToken before the conditions are met.

PBM Token

A PBM Token is the combination of a sovToken and its PBM wrapper, represented as an ERC1155 token. A PBM token is designed to become usable only when specified conditions are satisfied.

PBM Creator

The PBM Creator defines the PBM wrapper's conditions and creates PBM tokens. This entity establishes the usage conditions and purpose of the tokens, controlling when they can be used.

PBM Wallet

A PBM Wallet is a crypto wallet for holding and managing PBM tokens, either an EOA (Externally Owned Account) controlled by a private key or a smart contract wallet.

Merchant / Redeemer

A Merchant / Redeemer is broadly defined as the recipient or endpoint for which the PBM is ultimately intended or purpose-bound. Merchant identities are specified either within the PBM wrapper smart contract or in a separate PBM address list smart contract registered as a PBM hook.

Overview

PBM wrapping and unwrapping

  • Wrapping
    • To wrap a token means to restrict it according to specific conditions defined by the PBM business logic.
    • This ensures that the token is used only for its intended purpose or under the specified conditions.
  • Unwrapping
    • Unwrapping a token is the process of removing those restrictions and releasing it when the conditions of the PBM business logic are met.
    • The token can then be used as ordinary currency.

PBM token structure

  • Valid PBM tokens
    • A valid PBM token consists of an underlying sovToken (an ERC20-compatible token) and a PBM wrapper.
  • Wrapping timing
    • The sovToken can be wrapped when the PBM token is created or at any subsequent time.
  • Checking transaction conditions
    • The PBM wrapper must provide a mechanism allowing all parties to verify that the necessary conditions are satisfied before unwrapping the token.
    • This may be implemented within the PBM wrapper or in a separate PBM hook smart contract.
  • Managing allowlists and blocklists
    • Before unwrapping, the recipient address of the sovToken must be included in the merchant/redeemer allowlist and must not appear on the prohibited-address blocklist.
  • Token destruction
    • Once a PBM token has been completely unwrapped and used, it must be burned.

Other requirements

  • Expiration
    • PBM tokens should have an expiration date set by the PBM creator.
    • If no expiration is needed, the expiration should be set to infinity.

Extending the specification

This proposal defines the basic PBM specification, on top of which other specifications may be implemented. Additional extensions can thus expand PBM functionality and its range of applications.

This overview provides a basic framework for how PBM works and how it operates according to business logic. PBM tokens can consequently be restricted to specific purposes and are expected to provide a powerful tool for secure and efficient digital transactions.

PBM architecture

This EIP (Ethereum Improvement Proposal) proposes a modular Purpose Bound Money (PBM) architecture. It comprises three distinct components: the core, plugins, and hooks. The following sections examine the role and functionality of each.

1. Core components

The core contains the basic functionality and verification checks that every PBM should have. These include:

  • sovToken and PBM wrapper: Contains basic logic, such as allowlisting merchant/redeemer addresses, unwrapping upon transfer to an allowlisted address, and minting and burning PBM.
  • Token manager: Enables token registration and retrieval.

The PBM wrapper may also include logic for interfacing with plugins and hooks.

2. Plugin components

Plugins implement additional functionality required by a particular PBM. This might include:

  • External API calls: To determine whether particular PBM conditions have been met.
  • Tracking PBM usage patterns: To understand how and under what circumstances PBM is used.

3. Hook components

Hooks implement additional verification checks required by certain PBM instruments. These include:

  • Expiration checks
  • Daily spending limits
  • Restrictions on goods and services

Example

Suppose a PBM creator wants to allow only up to 50% of PBM series A to be spent at supermarkets, while PBM series B has no such restriction. The creator can implement a plugin smart contract that tracks supermarket spending and a hook that verifies that a user has spent less than 50% of the issued PBM series A at supermarkets. The same general-purpose PBM wrapper and sovToken can then be used for both series A and B. Series A additionally registers plugin and hook modules for data tracking and verification.

The PBM architecture is thus highly flexible and provides a customizable structure for different business needs and regulatory requirements. It can improve transaction transparency and efficiency while adapting to a variety of scenarios and market conditions.

Auditability

PBM wrappers should make their smart contract logic readily accessible and verifiable to improve transaction transparency and verifiability. This enables automated verification and asynchronous user verification, and allows transaction participants and allowlisted third parties to provide attestations. This can be achieved through the following means.

  • Interfaces and event emission
    • These allow transaction history, token types, and token balances to be inspected in detail.
    • This is particularly useful for audits, enabling accurate tracking of the operations performed.
  • Source code verification and publication
    • The smart contract source code should be verified and publicly available on a blockchain explorer.
    • This demonstrates that the published code corresponds to the actual deployed logic and has not been altered.

Fungibility

A PBM wrapper should be capable of wrapping different kinds of compatible sovTokens (e.g., USDC and XSGD). The sovTokens wrapped by the same PBM wrapper may be fungible with each other. The standard does not prescribe a specific implementation. Developers therefore have flexibility in designing how different sovTokens are wrapped and how fungibility is handled. This is important for broadening PBM's use and its ability to adapt to different markets and scenarios.

PBM token details

This section describes the detailed structure of Purpose Bound Money (PBM) tokens based on the ERC1155 multi-token standard. ERC1155 is a flexible token standard that can manage multiple token types within a single smart contract. Using this standard, each PBM token ID corresponds to a unique, configurable token type.

PBM token structure (PBMToken)

The PBMToken struct holds the details required for each PBM token ID.

Code
ts
pragma solidity ^0.8.0;

abstract contract IPBMRC1_TokenManager {
    /// @dev Mapping of each ERC-1155 tokenId to its corresponding PBM Token details.
    mapping (uint256 => PBMToken) internal tokenTypes ;

    /// @notice A PBM token MUST include compulsory state variables (name, faceValue, expiry, and uri) to adhere to this standard.
    /// @dev Represents all the details corresponding to a PBM tokenId.
    struct PBMToken {
        // Name of the token.
        string name;

        // Value of the underlying wrapped ERC20-compatible sovToken. Additional information on the `faceValue` can be specified by
        // adding the optional variables: `currencySymbol` or `tokenSymbol` as indicated below
        uint256 faceValue;

        // Time after which the token will be rendered useless (expressed in Unix Epoch time).
        uint256 expiry;

        // Metadata URI for ERC-1155 display purposes.
        string uri;

        // OPTIONAL: Indicates if the PBM token can be transferred to a non merchant/redeemer wallet.
        bool isTransferable;

        // OPTIONAL: Determines whether the PBM will be burned or revoked upon expiry, under certain predefined conditions, or at the owner's discretion.
        bool burnable;

        // OPTIONAL: Number of decimal places for the token.
        uint8 decimals;

        // OPTIONAL: The address of the creator of this PBM type on this smart contract. This field is optional because the creator is msg.sender by default.
        address creator;

        // OPTIONAL: The smart contract address of the sovToken.
        address tokenAddress;

        // OPTIONAL: The running balance of the PBM Token type that has been minted.
        uint256 totalSupply;

        // OPTIONAL: An ISO4217 three-character alphabetic code may be needed for the faceValue in multicurrency PBM use cases.
        string currencySymbol;

        // OPTIONAL: An abbreviation for the PBM token name may be assigned.
        string tokenSymbol;

        // Add other optional state variables below...
    }
}
  • name
    • Token name.
  • faceValue
    • Value of the wrapped ERC20-compatible sovToken.
    • Optional variables providing additional information, such as currencySymbol or tokenSymbol, can be added to this value.
  • expiry
    • Time at which the token becomes invalid, expressed as a Unix epoch timestamp.
  • uri
    • Metadata URI for ERC1155 display purposes.
  • isTransferable (optional)
    • Whether the PBM token can be transferred (transfer) to a wallet other than a merchant's.
  • burnable (optional)
    • Whether the token can be burned (burn) upon expiration, under certain predefined conditions, or by its owner.
  • decimals (optional)
    • Number of decimal places for the token.
  • creator (optional)
    • Address of the creator of this PBM type.
    • By default, msg.sender (the message sender) is considered the creator.
  • tokenAddress (optional)
    • Smart contract address of the sovToken.
  • totalSupply (optional)
    • Total issued supply of this PBM token type.
  • currencySymbol (optional)
    • Three-letter ISO4217 currency code associated with the face value, if required for multi-currency PBM use cases.
  • tokenSymbol (optional)
    • Abbreviated name of the PBM token.

Token immutability

Once defined, token details must remain immutable. This is important for token reliability and audit accuracy. Keeping token characteristics unchanged allows users and auditors to trust the consistency and accuracy of the token information.

Future proposals and extensibility

Additional optional state variables may be defined in the future as needed. This enables PBM tokens to be customized for a broader range of needs and used across different markets and applications.

Functions are defined for creating and managing Purpose Bound Money (PBM) token types. These enable flexible management and extension of PBM tokens.

Creating a new PBM token type

The createPBMTokenType function creates a new PBM token type. The function accepts the following parameters.

  • _name
    • Token name.
  • _faceValue
    • Value of the ERC20-compatible sovToken to be wrapped.
  • _tokenExpiry
    • Time at which the token becomes invalid, expressed as a Unix epoch timestamp.
  • _tokenURI
    • Metadata URI for ERC1155 display purposes.

The function creates a new token type and returns its token ID. It also emits the NewPBMTypeCreated event each time a new token type is created.

ts
function createPBMTokenType(
    string memory _name,
    uint256 _faceValue,
    uint256 _tokenExpiry,
    string memory _tokenURI
) external virtual returns (uint256 tokenId_);

The NewPBMTypeCreated event

This event indicates that a new PBM token type has been created.

  • tokenId
    • Unique identifier of the newly created PBM token type.
  • tokenName
    • Name of the newly created PBM token type.
  • amount
    • Initial supply of the newly created PBM token type.
  • expiry
    • Expiration of the newly created PBM token type.
  • creator
    • Address of the account that created the new PBM token type.
ts
event NewPBMTypeCreated(uint256 tokenId, string tokenName, uint256 amount, uint256 expiry, address creator);

Retrieving PBM token type details

The getTokenDetails function retrieves the details of the PBM token associated with the specified tokenId.

ts
function getTokenDetails(uint256 tokenId) external virtual view returns(PBMToken memory pbmToken_);

PBM address list

Code
ts
pragma solidity ^0.8.0;

/// @title PBM Address list Interface.
/// @notice The PBM address list stores and manages whitelisted merchants/redeemers and blacklisted address for the PBMs
interface IPBMAddressList {

    /// @notice Checks if the address is one of the blacklisted addresses
    /// @param _address The address to query
    /// @return bool_ True if address is blacklisted, else false
    function isBlacklisted(address _address) external returns (bool bool_) ;

    /// @notice Checks if the address is one of the whitelisted merchant/redeemer addresses
    /// @param _address The address to query
    /// @return bool_ True if the address is in merchant/redeemer whitelist and is NOT a blacklisted address, otherwise false.
    function isMerchant(address _address) external returns (bool bool_) ;

    /// @notice Event emitted when the Merchant/Redeemer List is edited
    /// @param action Tags "add" or "remove" for action type
    /// @param addresses An array of merchant wallet addresses that was just added or removed from Merchant/Redeemer whitelist
    /// @param metadata Optional comments or notes about the added or removed addresses.
    event MerchantList(string action, address[] addresses, string metadata);

    /// @notice Event emitted when the Blacklist is edited
    /// @param action Tags "add" or "remove" for action type
    /// @param addresses An array of wallet addresses that was just added or removed from address blacklist
    /// @param metadata Optional comments or notes about the added or removed addresses.
    event Blacklist(string action, address[] addresses, string metadata);
}

PBMRC1 base interface

Code
ts
pragma solidity ^0.8.0;

/// LIST OF EVENTS TO BE EMITTED
/// A database or explorer may listen to events and be able to provide indexed and categorized searches
/// @title PBM Specification interface
/// @notice The PBM (purpose bound money) allows us to add logical requirements on the use of sovTokens.
/// The PBM acts as wrapper around the sovTokens and implements the necessary business logic.
/// @dev PBM deployer must assign an overall owner to the smart contract. If fine grain access controls are required, EIP-5982 can be used on top of ERC173
interface IPBMRC1 is IERC173, IERC5679Ext1155 {

    /// @notice Initialise the contract by specifying an underlying ERC20-compatible token address,
    /// contract expiry, and the PBM address list.
    /// @param _sovToken The address of the underlying sovToken.
    /// @param _expiry The contract-wide expiry timestamp (in Unix epoch time).
    /// @param _pbmWrapperLogic This address should point to a smart contract that contains conditions governing a PBM;
    /// such as purpose-bound conditions (ie: an address list determining whether a PBM is permitted to be transferred to or to be unwrapped)
    /// and other relevant business logic, effectively implementing an inversion of control.
    function initialise(address _sovToken, uint256 _expiry, address _pbmWrapperLogic) external;

    /// @notice Returns the Uniform Resource Identifier (URI) metadata information for the PBM with the corresponding tokenId
    /// @dev URIs are defined in RFC 3986.
    /// The URI MUST point to a JSON file that conforms to the "ERC-1155 Metadata URI JSON Schema".
    /// Developer may choose to adhere to the ERC1155Metadata_URI extension interface if necessary.
    /// The URI is not expected to be immutable.
    /// @param tokenId The id for the PBM in query
    /// @return Returns the metadata URI string for the PBM
    function uri(uint256 tokenId) external  view returns (string memory);

    /**
        @notice Creates a PBM copy ( ERC1155 NFT ) of an existing PBM token type.
        @dev See {IERC5679Ext1155} on further implementation notes
        @param receiver The wallet address to which the created PBMs need to be transferred to
        @param tokenId The identifier of the PBM token type to be copied.
        @param amount The number of the PBMs that are to be created
        @param data Additional data with no specified format, based on eip-5750

        This function will transfer the underlying token from the caller into the PBM smart contract.
        IMPT: Before minting, the caller should approve the contract address to spend sovTokens on behalf of the caller.
            This can be done by calling the `approve` or `increaseMinterAllowance` functions of the ERC-20 contract and specifying `_spender` to be the PBM contract address.
            Ref : https://eips.ethereum.org/EIPS/eip-20

        WARNING: Any contracts that externally call these safeMint() and safeMintBatch() functions should implement some sort of reentrancy guard procedure
        (such as OpenZeppelin's ReentrancyGuard) or a Checks-effects-interactions pattern.

        As per ERC-5679 standard: When the token is being minted, the transfer events MUST be emitted as if the token in the `amount` for EIP-1155
        and `tokenId` being _id for EIP-1155 were transferred from address 0x0 to the recipient address identified by receiver.
        The total supply MUST increase accordingly.

        MUST Emits {TokenWrap} event as the underlying sovToken is wrapped by PBM wrapper smart contract during minting.

        Requirements:
        - contract must not be paused
        - tokens must not be expired
        - `tokenId` should be a valid id that has already been created
        - caller should have the necessary amount of the sovTokens required to mint
        - caller should have approved the PBM contract to spend the sovTokens
        - receiver should not be blacklisted
     */
    function safeMint(address receiver, uint256 tokenId, uint256 amount, bytes calldata data) external;

    /**
        @notice Creates multiple PBM copies (ERC1155 NFT) of an existing PBM token type.
        @dev See {IERC5679Ext1155}.
        @param receiver The wallet address to which the created PBMs need to be transferred to
        @param tokenIds The identifier of the PBM token type
        @param amounts The number of the PBMs that are to be created
        @param data Additional data with no specified format, based on eip-5750

        This function will transfer the underlying token from the caller into the PBM smart contract.
        IMPT: Before minting, the caller should approve the contract address to spend sovTokens on behalf of the caller.
            This can be done by calling the `approve` or `increaseMinterAllowance` functions of the ERC-20 contract and specifying `_spender` to be the PBM contract address.
            Ref : https://eips.ethereum.org/EIPS/eip-20

        WARNING: Any contracts that externally call these safeMint() and safeMintBatch() functions should implement some sort of reentrancy guard procedure
        (such as OpenZeppelin's ReentrancyGuard) or a Checks-effects-interactions pattern.

        As per ERC-5679 standard: When the token is being minted, the transfer events MUST be emitted as if the token in the `amount` for EIP-1155
        and `tokenId` being _id for EIP-1155 were transferred from address 0x0 to the recipient address identified by receiver.
        The total supply MUST increase accordingly.

        MUST Emits {TokenWrap} event as the underlying sovToken is wrapped by PBM wrapper smart contract during minting.

        Requirements:
        - contract must not be paused
        - tokens must not be expired
        - `tokenIds` should all be valid ids that have already been created
        - `tokenIds` and `amounts` list need to have the same number of values
        - caller should have the necessary amount of the sovTokens required to mint
        - caller should have approved the PBM contract to spend the sovTokens
        - receiver should not be blacklisted
     */
    function safeMintBatch(address receiver, uint256[] calldata tokenIds, uint256[] calldata amounts, bytes calldata data) external;

    /**
        @notice Burns a PBM token. Upon burning of the tokens, the underlying wrapped token (if any) should be handled.
        @dev Destroys `amount` tokens of token type `tokenId` from `from`
        @dev See {IERC5679Ext1155}

        @param from The originating wallet address of the PBMs to be burned
        @param tokenId The identifier of the PBM token type
        @param amount The amount of the PBMs that are to be burned
        @param data Additional data with no specified format, based on eip-5750

        MUST Emits {TransferSingle} event.
        MUST Emits {TokenUnwrapForPBMBurn} event if the underlying wrapped token is moved out of the PBM smart contract.

        Requirements:
        - `from` cannot be the zero address.
        - `from` must have at least `amount` tokens of token type `tokenId`.

     */
    function burn(address from, uint256 tokenId, uint256 amount, bytes calldata data) external;

    /**
        @notice Burns multiple PBM token. Upon burning of the tokens, the underlying wrapped token (if any) should be handled.
        @dev Destroys `amount` tokens of token type `tokenId` from `from`
        @dev See {IERC5679Ext1155}

        @param from The originating wallet address of the PBMs to be burned
        @param tokenIds The identifier of the PBM token types
        @param amounts The amount of the PBMs that are to be burned for each tokenId in _tokenIds
        @param data Additional data with no specified format, based on eip-5750

        Must Emits {TransferSingle} event.
        Must Emits {TokenUnwrapForPBMBurn} event if the underlying wrapped token is moved out of the PBM smart contract.

        Requirements:
        - `from` cannot be the zero address.
        - `from` must have at least amount specified in `_amounts` of the corresponding token type tokenId in `_tokenIds` array.
     */
    function burnBatch(address from, uint256[] calldata tokenIds, uint256[] calldata amounts, bytes calldata data) external;

    /// @notice Transfers the PBM(NFT) from one wallet to another.
    /// @dev This function extends the ERC-1155 standard in order to allow the PBM token to be freely transferred between wallet addresses due to
    /// widespread support accross wallet providers. Specific conditions and restrictions on whether a pbm can be moved across addresses can be incorporated in this function.
    /// Unwrap logic MAY also be placed within this function to be called.
    /// @param from The account from which the PBM (NFT) is moving from
    /// @param to The account which is receiving the PBM (NFT)
    /// @param id The identifier of the PBM token type
    /// @param amount The number of (quantity) the PBM type that are to be transferred of the PBM type
    /// @param data To record any data associated with the transaction, can be left blank if none
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes memory data) external;

    /// @notice Transfers the PBM(NFT)(s) from one wallet to another.
    /// @dev This function extends the ERC-1155 standard in order to allow the PBM token to be freely transferred between wallet addresses due to
    /// widespread support accross wallet providers.  Specific conditions and restrictions on whether a pbm can be moved across addresses can be incorporated in this function.
    /// Unwrap logic MAY also be placed within this function to be called.
    /// If the receiving wallet is a whitelisted /redeemer wallet address, the PBM(NFT)(s) will be burnt and the underlying sovTokens will be transferred to the merchant/redeemer wallet instead.
    /// @param from The account from which the PBM (NFT)(s) is moving from
    /// @param to The account which is receiving the PBM (NFT)(s)
    /// @param ids The identifiers of the different PBM token type
    /// @param amounts The number of (quantity) the different PBM types that are to be created
    /// @param data To record any data associated with the transaction, can be left blank if none.
    function safeBatchTransferFrom(address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) external;

    /// @notice Unwraps the underlying ERC-20 compatible tokens to an intended end point (ie: merchant/redeemer) upon fulfilling the required PBM conditions.
    /// @dev Add implementation specific logic for the conditions under which a PBM processes and transfers the underlying tokens here.
    /// e.g. If the receving wallet is a whitelisted merchant/redeemer wallet address, the PBM (NFT) MUST be burnt and the underlying sovTokens
    /// will unwrapped to be transferred to the merchant/redeemer wallet.
    /// MUST emit the event {TokenUnwrapForTarget} on success
    /// @param from The account currently holding the PBM
    /// @param to The account receiving the PBM (NFT)
    /// @param tokenId The identifier of the PBM token type
    /// @param amount The quantity of the PBM type involved in this transaction
    /// @param data Additional data without a specified format, based on EIP-5750
    function unwrap(address from, address to, uint256 tokenId, uint256 amount, bytes memory data) internal;

    /// @notice Allows the creator of a PBM token type to retrieve all locked-up underlying sovTokens within that PBM.
    /// @dev Ensure that only the creator of the PBM token type or the contract owner can call this function.
    /// Validate the token state and existence, handle PBM token burning if necessary, safely transfer the remaining sovTokens to the originator,
    /// MUST emit {PBMrevokeWithdraw} upon a successful revoke.
    /// @param tokenId The identifier of the PBM token type
    /// Requirements:
    /// - `tokenId` should be a valid identifier for an existing PBM token type.
    /// - The caller must be either the creator of the token type or the smart contract owner.
    function revokePBM(uint256 tokenId) external;

    /// @notice Emitted when a PBM type creator withdraws the underlying sovTokens from all the remaining expired PBMs
    /// @param beneficiary the address ( PBM type creator ) which receives the sovToken
    /// @param PBMTokenId The identifiers of the different PBM token type
    /// @param sovToken The address of the underlying sovToken
    /// @param sovTokenValue The number of underlying sovTokens transferred
    event PBMrevokeWithdraw(address beneficiary, uint256 PBMTokenId, address sovToken, uint256 sovTokenValue);

    /// @notice Emitted when the underlying tokens are unwrapped and transferred to a specific purpose-bound address.
    /// This event signifies the end of the PBM lifecycle, as all necessary conditions have been met to release the underlying tokens to the recipient (whitelisted merchant/redeemer with non-blacklisted wallet address).
    /// If there are multiple different underlying tokens involved in a single unwrap operation, this event should be emitted for each underlying token.
    /// @param from The address from which the PBM tokens are being unwrapped.
    /// @param to The purpose-bound address receiving the unwrapped underlying tokens.
    /// @param tokenIds An array containing the identifiers of the unwrapped PBM token types.
    /// @param amounts An array containing the quantities of the corresponding unwrapped PBM tokens.
    /// @param sovToken The address of the underlying sovToken.
    /// @param sovTokenValue The amount of unwrapped underlying sovTokens transferred.
    event TokenUnwrapForTarget(address from, address to, uint256[] tokenIds, uint256[] amounts, address sovToken, uint256 sovTokenValue);

    /// @notice Emitted when PBM tokens are burned, resulting in the unwrapping of the underlying tokens for the designated recipient.
    /// This event is required if there is an unwrapping of the underlying tokens during the PBM (NFT) burning process.
    /// If there are multiple different underlying tokens involved in a single unwrap operation, this event should be emitted for each underlying token.
    /// @param from The address from which the PBM tokens are being burned.
    /// @param to The address receiving the unwrapped underlying tokens.
    /// @param tokenIds An array containing the identifiers of the burned PBM token types.
    /// @param amounts An array containing the quantities of the corresponding burned PBM tokens.
    /// @param sovToken The address of the underlying sovToken.
    /// @param sovTokenValue The amount of unwrapped underlying sovTokens transferred.
    event TokenUnwrapForPBMBurn(address from, address to, uint256[] tokenIds, uint256[] amounts, address sovToken, uint256 sovTokenValue);

    /// Indicates the wrapping of an token into the PBM smart contract.
    /// @notice Emitted when underlying tokens are wrapped within the PBM smart contract.
    /// If there are multiple different underlying tokens involved in a single wrap operation, this event should be emitted for each underlying token.
    /// This event signifies the beginning of the PBM lifecycle, as tokens are now managed by the conditions within the PBM contract.
    /// @param from The address initiating the token wrapping process, and
    /// @param tokenIds An array containing the identifiers of the token types being wrapped.
    /// @param amounts An array containing the quantities of the corresponding wrapped tokens.
    /// @param sovToken The address of the underlying sovToken.
    /// @param sovTokenValue The amount of wrapped underlying sovTokens transferred.
    event TokenWrap(address from, uint256[] tokenIds, uint256[] amounts,address sovToken, uint256 sovTokenValue);
}

The Solidity code above defines an interface (IPBMAddressList) for managing address lists associated with Purpose Bound Money (PBM) tokens. The interface provides functions and events for managing both an allowlist of permitted addresses and a blocklist of prohibited addresses, helping ensure appropriate use and management of PBM tokens.

isBlacklisted

Checks whether a given address is on the blocklist.

  • Parameters
    • _address
      • Address to check.
  • Return value
    • bool_
      • Returns true if the address is on the blocklist and false otherwise.

isMerchant

Checks whether a given address is on the merchant allowlist and is not on the blocklist.

  • Parameters
    • _address
      • Address to check.
  • Return value
    • bool_
      • Returns true if the address is on the allowlist and not on the blocklist, and false otherwise.

MerchantList

Event emitted when the merchant list is modified. It provides notification when addresses are added to or removed from the list.

  • Parameters
    • action
      • Type of action performed ("add" or "remove").
    • addresses
      • Array of merchant wallet addresses added or removed.
    • metadata
      • Optional comments or notes about the additions or removals.

Blacklist

Event emitted when the blocklist is modified. It provides notification when addresses are added to or removed from the list.

  • Parameters
    • action
      • Type of action performed ("add" or "remove").
    • addresses
      • Array of wallet addresses added or removed.
    • metadata
      • Optional comments or notes about the additions or removals.

Usage

Implementing this interface allows flexible management of the address lists that control PBM token unwrapping. Functions such as isBlacklisted and isMerchant are used to determine whether a particular address is eligible to participate in a transaction. These checks help ensure safe circulation of PBM tokens and prevent fraud or inappropriate use.

Extensions

PBMRC1 - Token Receiver

Code
ts
pragma solidity ^0.8.0;

/// @notice Smart contracts MUST implement the ERC-165 `supportsInterface` function and signify support for the `PBMRC1_TokenReceiver` interface to accept callbacks.
/// It is optional for a receiving smart contract to implement the `PBMRC1_TokenReceiver` interface
/// @dev WARNING: Reentrancy guard procedure, Non delegate call, or the check-effects-interaction pattern must be adhere to when calling an external smart contract.
/// The interface functions MUST only be called at the end of the `unwrap` function.
interface PBMRC1_TokenReceiver {
    /**
        @notice Handles the callback from a PBM smart contract upon unwrapping
        @dev An PBM smart contract MUST call this function on the token recipient contract, at the end of a `unwrap` if the
        receiver smart contract supports type(PBMRC1_TokenReceiver).interfaceId
        @param _operator  The address which initiated the transfer (either the address which previously owned the token or the address authorised to make transfers on the owner's behalf) (i.e. msg.sender)
        @param _from      The address which previously owned the token
        @param _id        The ID of the token being unwrapped
        @param _value     The amount of tokens being transferred
        @param _data      Additional data with no specified format
        @return           `bytes4(keccak256("onPBMRC1Unwrap(address,address,uint256,uint256,bytes)"))`
    */
    function onPBMRC1Unwrap(address _operator, address _from, uint256 _id, uint256 _value, bytes calldata _data) external returns(bytes4);

    /**
        @notice Handles the callback from a PBM smart contract upon unwrapping a batch of tokens
        @dev An PBM smart contract MUST call this function on the token recipient contract, at the end of a `unwrap` if the
        receiver smart contract supports type(PBMRC1_TokenReceiver).interfaceId

        @param _operator  The address which initiated the transfer (either the address which previously owned the token or the address authorised to make transfers on the owner's behalf) (i.e. msg.sender)
        @param _from      The address which previously owned the token
        @param _id        The ID of the token being unwrapped
        @param _value     The amount of tokens being transferred
        @param _data      Additional data with no specified format
        @return           `bytes4(keccak256("onPBMRC1BatchUnwrap(address,address,uint256,uint256,bytes)"))`
    */
    function onPBMRC1BatchUnwrap(address _operator, address _from, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data) external returns(bytes4);
}

The Solidity interface IPBMRC1 shown above provides basic functionality for Purpose Bound Money (PBM) tokens. It defines the structure of a smart contract for managing money bound to a particular purpose and shows how additional logical constraints can be applied while PBM tokens comply with the ERC1155 multi-token standard.

The initialise function

Initializes the contract. It takes the address of the underlying ERC20-compatible token, the overall expiration time of the contract, and the address of a smart contract containing the PBM wrapper logic.

  • Parameters
    • _sovToken
      • Address of the underlying sovToken.
    • _expiry
      • Overall contract expiration time (Unix epoch timestamp).
    • _pbmWrapperLogic
      • Address of the smart contract managing PBM conditions.
The uri function

Provides a metadata URI for a specified token ID. It must point to a JSON file complying with the ERC1155 metadata URI JSON schema.

The safeMint and safeMintBatch functions

Create new PBM tokens and transfer them to the specified receiver address. These functions issue new PBM tokens while wrapping the underlying tokens in the PBM smart contract.

  • Requirements
    • The contract must not be paused.
    • The token must not have expired.
    • The issuer must have approved the PBM contract to spend sovTokens.
    • The receiver must not be on the blocklist.
The burn and burnBatch functions

Destroy PBM tokens. The wrapped underlying tokens should be handled appropriately during this process.

  • Requirements
    • The from address must not be the zero address.
    • from must hold at least the specified amount of tokens.
The safeTransferFrom and safeBatchTransferFrom functions

These functions transfer PBM tokens from one wallet to another. These functions enable PBM tokens to move between wallets while respecting specified conditions and restrictions.

The unwrap function

Unwraps the underlying ERC20-compatible tokens to a specified endpoint, such as an allowlisted merchant, when the required PBM conditions are satisfied.

TokenUnwrapForTarget, TokenUnwrapForPBMBurn, and TokenWrap

These events occur during token wrapping and unwrapping and are important for tracking token movements.

PBMRC2 - Non-preloaded PBM interface

Code
ts
pragma solidity ^0.8.0;

/**
 *  @dev This interface extends IPBMRC1, adding functions for working with non-preloaded PBMs.
 *  Non-preloaded PBMs are minted as empty containers without any underlying tokens of value,
 *  allowing the loading of the underlying token to happen at a later stage.
 */
interface PBMRC2_NonPreloadedPBM is IPBMRC1 {

  /// @notice This function extends IPBMRC1 to mint PBM tokens as empty containers without underlying tokens of value.
  /// @dev The loading of the underlying token of value can be done by calling the `load` function. The function parameters should be identical to IPBMRC1
  function safeMint(address receiver, uint256 tokenId, uint256 amount, bytes calldata data) external;

  /// @notice This function extends IPBMRC1 to mint PBM tokens as empty containers without underlying tokens of value.
  /// @dev The loading of the underlying token of value can be done by calling the `load` function. The function parameters should be identical to IPBMRC1
  function safeMintBatch(address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;

  /// @notice Wrap an amount of sovTokens into the PBM
  /// @dev function will pull sovTokens from msg.sender
  /// Approval must be given to the PBM smart contract in order to for the pbm to pull money from msg.sender
  /// underlying data structure must record how much the msg.sender has been loaded into the PBM.
  /// Emits {TokenLoad} event.
  /// @param amount    The amount of sovTokens to be loaded
  function load(uint256 amount) external;

  /// @notice Retrieves the balance of the underlying sovToken associated with a specific PBM token type and user address.
  /// This function provides a way to check the amount of the underlying token that a user has loaded into a particular PBM token.
  /// @param user The address of the user whose underlying token balance is being queried.
  /// @return The balance of the underlying sovToken associated with the specified PBM token type and user address.
  function underlyingBalanceOf(address user) external view returns (uint256);

  /// @notice Unloads all of the underlying token belonging to the caller from the PBM smart contract.
  /// @dev The underlying token that belongs to the caller (msg.sender) will be removed and transferred
  /// back to the caller.
  /// Emits {TokenUnload} event.
  /// @param amount The quantity of the corresponding tokens to be unloaded.
  /// Amount should not exceed the amount that the caller has originally loaded into the PBM smart contract.
  function unload(uint256 amount) external;

  /// @notice Emitted when an underlying token is loaded into a PBM
  /// @param caller Address by which sovToken is taken from.
  /// @param to Address by which the token is loaded and assigned to
  /// @param amount The quantity of tokens to be loaded
  /// @param sovToken The address of the underlying sovToken.
  /// @param sovTokenValue The amount of underlying sovTokens loaded
  event TokenLoad(address caller, address to, uint256 amount, address sovToken, uint256 sovTokenValue);

  /// @notice Emitted when an underlying token is unloaded from a PBM.
  /// This event indicates the process of releasing the underlying token from the PBM smart contract.
  /// @param caller The address initiating the token unloading process.
  /// @param from The address from which the token is being unloaded and removed from.
  /// @param amount The quantity of the corresponding unloaded tokens.
  /// @param sovToken The address of the underlying sovToken.
  /// @param sovTokenValue The amount of unloaded underlying sovTokens transferred.
  event TokenUnload(address caller, address from, uint256 amount, address sovToken, uint256 sovTokenValue);
}

The PBMRC2_NonPreloadedPBM interface provides additional functionality for Purpose Bound Money (PBM) tokens. It implements non-preloaded PBM by allowing PBM tokens to be issued without an initial balance and offering the option of loading valuable underlying tokens (sovTokens) into them later. PBM can therefore be issued as an empty container initially, with sovTokens loaded at a later time of the user's choosing.

safeMint and safeMintBatch

These functions extend the IPBMRC1 interface to issue PBM tokens as empty containers with no value. The underlying tokens are loaded later by calling the load function.

load

Loads a specified amount of sovTokens into PBM. This operation requires prior approval to withdraw sovTokens from msg.sender into the PBM smart contract. The amount of tokens loaded is recorded in an internal data structure.

underlyingBalanceOf

Checks the amount of sovTokens that a particular user has loaded into a specific PBM token type. This makes it possible to determine how many sovTokens the user has contributed to PBM.

unload

Unloads (withdraws) underlying tokens from PBM owned by msg.sender and sends them back to msg.sender. The amount unloaded must not exceed the amount originally loaded.

TokenLoad

Event emitted when sovTokens are loaded into PBM. It records the source and destination of the loaded tokens, the amount loaded, and details of the associated sovToken.

TokenUnload

Event emitted when sovTokens are unloaded from PBM. It records the address initiating the unload, the address from which the tokens are unloaded, the amount unloaded, and details of the associated sovToken.

Rationale

Why must sovTokens be ERC20-compatible?

Monetary functionality and stability

Because PBM is intended to function as money, the underlying token needs to be fungible and have a stable value. At the time of writing, major stablecoins on the market were primarily based on the ERC20 interface.

Broad support

ERC20 or ERC20-compatible tokens are the most widely supported by existing wallets, DeFi applications, and protocol designs such as ERC4337. In practice, they have become the de facto standard for fungible tokens.

For more on ERC4337, see the following article.

[ERC4337] Implementing Account Abstraction Without Changing the Protocol

Comparison with other standards

  • ERC721
    • A standard for non-fungible tokens (NFTs), which cannot serve as currency in the intended sense.
  • ERC1155
    • Although this standard can also be used for fungible tokens, it was not adopted because few ERC1155-based stablecoins existed on the market.
    • It also lacks built-in support for decimal places, although this is not a critical problem.

Why must the PBM wrapper be ERC1155-compatible?

  • Multi-token support

    • ERC1155 can support multiple token types in a single contract.
    • This is particularly useful for PBM use cases because one contract can issue tokens with different face values, expiration dates, and business logic.
  • Batch transfer support

    • ERC1155 supports batch transfer operations, which can help save gas when airdropping tokens to many recipient addresses.
  • Semi-fungible token support

    • Support for semi-fungible tokens is particularly useful for PBM because expired tokens may be converted into collectibles.
  • Visualization in wallet UIs

    • ERC1155 provides a way to visually represent PBM tokens in wallet interfaces.
    • This makes it easier for existing wallet providers to support these standards and reduces the cost of developing custom user interfaces and the time to market.

The preceding discussion explains why Purpose Bound Money (PBM) requires allowlists and blocklists for particular destination addresses. Because PBM is money bound to a purpose, it should be unwrapped only when all defined conditions are satisfied. The following sections explain this in more detail.

Why is an allowlist necessary?

Enforcing the intended purpose

Because PBM is purpose-bound money, unwrapping is permitted only to destinations included in a predefined allowlist. This ensures that PBM is used in accordance with its intended purpose.

Integrating dynamic conditions

Developers can also configure the allowlist to be determined dynamically at runtime. Examples include conditions based on whether a wallet address holds a particular NFT or on information supplied by an oracle.

Why is a blocklist necessary?

Security and regulatory compliance

A blocklist is needed to exclude prohibited accounts for various reasons, such as account re-registration, complaints, or account suspension, withdrawal, or expulsion on legal grounds.

Why use both an allowlist and a blocklist?

  • Gas efficiency and practicality
    • Using only an allowlist might achieve the same result, but redeploying the allowlist on-chain to prohibit one participant would be inefficient in terms of gas.
    • Implementing purpose-bound money with only a blocklist is also impractical, because it would require listing every excluded address and updating the list whenever a new account is created.

Why is a destination necessary?

  • Core proposal
    • At the heart of the proposal is the requirement that PBM can be unwrapped only when transferred to a preapproved destination.
    • PBM can be transferred freely, but the parties that can receive the underlying sovTokens through unwrapping must be restricted to distinguish PBM from ordinary stablecoins.

What does business logic include?

This section describes how business logic is generally structured and how it applies to the Purpose Bound Money (PBM) system. Business logic is divided primarily into core logic, plugin logic, and hook logic.

Core logic

  • Basic functionality and verification checks
    • This includes mandatory functionality and validation checks and should be part of the PBM wrapper contract.
    • This logic ensures that PBM satisfies its basic requirements and forms the foundation of the system.

Plugin logic

  • Additional functionality
    • Extends the core logic by adding functionality.
    • Examples include custom data collection and additional management features.
    • Plugin logic is contained in separate smart contract modules registered by the PBM wrapper contract.

Hook logic

  • Additional validation checks
    • Implements additional validation checks that apply only to a particular subset of PBM instruments.
    • Like plugins, hooks are often contained in separate smart contract modules.

Contents of PBM business logic

It includes access control logic, PBM unwrapping logic, and API logic for integration with non-blockchain IT systems, among other things. PBM is intended for a wide range of use cases, including government spending tokens, shopping vouchers, prepaid tokens, reward point tokens, purpose-bound donation tokens, and school allowance tokens. Each use case requires different business logic.

Business logic is therefore deliberately left undefined to give implementers maximum flexibility. This approach makes PBM systems adaptable to different requirements and circumstances.

Why this transaction model was chosen

The standard adopts a push transaction model, in which the sender initiates the transaction. This is because modern wallets can support the required PBM logic by incorporating unwrap logic into the ERC1155 safeTransfer function. Giving the sender active control over the transaction helps ensure that transactions are executed safely and as intended.

Customizability

ERC1155 PBM tokens are mapped to a data structure called PBMToken, which implementers can freely customize according to their business logic. This enables efficient management of multiple token types within a single smart contract, with multiple conditional unwrap rules for each token type. It also reduces gas costs because there is no need to deploy multiple smart contracts for each token type.

Metadata management

The PBM standard avoids incorporating metadata directly. Associated metadata can be created as needed using a separate metadata extension interface, such as ERC721Metadata from ERC721. OpenSea's metadata standards are a useful implementation reference.

Extensibility

With future extensibility in mind, developers are encouraged to read and adopt the specification for general extensibility of method behavior (ERC5750). Because the PBM architecture is deliberately modular, this improves the customizability and reusability of smart contracts.

For more on ERC5750, see the following article.

[ERC5750] Extending Method Behavior With Additional Argument Data

Access control and execution conditions

This EIP makes no assumptions about access control or the conditions under which a function may execute. The PBM creator is responsible for determining the various roles involved in each PBM business flow.

Compatibility

The interface is designed to be compatible with ERC1155.

Implementation

The implementation is available on the following page.

Security

Public information and gas limits

All elements used in a smart contract are publicly observable, including local variables and state variables marked private. Loops without a fixed iteration count must be used with care because of gas limits.

Authentication and delegate calls

Use msg.sender rather than tx.origin for authentication checks. When library code is used through a delegatecall, it must be stateless. This prevents malicious actors from altering the contract's state through delegatecall.

Transaction safety

Commitment schemes are recommended to prevent malicious actors from front-running transactions. Do not use block.timestamp as a source of entropy or randomness.

Signatures and replay attacks

Off-chain message signing is a useful technique, but the same signature could be misused to execute a function multiple times. To prevent this, messages should be signed with a nonce and the contract address included.

Risk of PBM token abuse

Concerns include double spending through reentrancy attacks, cloning PBM tokens, creating invalid PBM tokens, and counterfeiting their face value by wrapping worthless sovTokens.

Contract consistency and audits

If the contract is paused, or a user's token transfer is restricted due to suspected fraudulent activity or an erroneous transfer, corresponding restrictions should also apply to the user's PBM token unwrap requests. Security audits and testing are needed to verify that unwrap logic behaves as expected and to prevent reentrancy and other call-chain attacks when complex business logic calls external smart contracts.

PBM token burning and access control

Token burn operations should generally be restricted to allowlisted merchants or PBM owners. This enables appropriate handling of tokens before and after expiration.

These security considerations play an important role in designing and implementing PBM systems and provide a foundation for secure operation.

Citation

Orchid-Dev (@proj-orchid-straitsx), Victor Liew (@alcedo), Wong Tse Jian (@wongtsejian), Jacob Shan (@Jacobshan429), Chin Sin Ong (@chinsinong), "ERC-7291: Purpose bound money [DRAFT]," Ethereum Improvement Proposals, no. 7291, June 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7291.

Conclusion

This article examined EIP7291, which proposes Purpose Bound Money (PBM), a mechanism using ERC20-compatible digital money tokens and ERC1155-compatible smart contracts to execute payments automatically when transaction conditions are met. I hope it was helpful.

If you have any questions, feel free to contact me via Twitter DM using the link below.

Twitter @cardene777

I also share information on the following platforms, so feel free to explore those as well.

https://chaldene.net/