Customize the Wholesale CBDC Application

You can change the default token and the transaction types that are used by the wholesale CBDC application.

CBDC Token

The default token in the application is USD. To change the default token, complete the following steps.

  1. In the global variables section, update the following parameters in the configuration variable object.
    currencySymbol
    The symbol that represents the currency. The default value is the dollar sign ($).
    tokenId
    The token ID that represents the currency. The default value is USD.
  2. In the CurrencyCodeDetails business object, update the following parameters.
    currencyDesc
    The description of the currency. The default value is US Dollar.
    currencyName
    The token ID that represents the currency. The default value is USD.
  3. Update currency symbol in the CSS files.
    1. Navigate to Web Apps and then expand the Resources section.
    2. Open the Resources/css/app.css file.
    3. Update the value of the token-content variable on line 10 of the file. The default value is the dollar sign ($), as shown in the following example.
      :root {
          --token-content: "$";
      }

Transaction Types

The TransactionTypes business object maps the transaction types in the chaincode to the transaction types in the application. For example, the REQUEST_MINT transaction in the chaincode is mapped to the Creation Requested transaction in the application. You can update the value fields in this business object to change the mappings, as shown in the following table.

TransactionType value Description Use Case
CREDIT Credit Tokens are credited to the specified account. A CBDC Creator successfully requests minting tokens and the system credits the tokens to their account.
DEBIT Debit Tokens are debited from the specified account. A CBDC Creator transfers tokens to the CBDC Issuer.
REQUEST_MINT Creation Requested A request to mint tokens is submitted for approval. A CBDC Creator submits a request to mint tokens.
APPROVE_MINT Creation Approved A mint request is approved A CBDC Manager approves a mint request.
REJECT_MINT Creation Rejected A mint request is rejected. A CBDC Manager rejects a mint request.
REQUEST_BURN Retirement Requested A request to burn tokens is submitted for approval. A CBDC Retirer submits a request to burn tokens.
APPROVE_BURN Retirement Approved A burn request is approved. A CBDC Manager approves a burn request.
REJECT_BURN Retirement Rejected A burn request is rejected. A CBDC Manager rejects a burn request.
EXECUTEHOLD Issuance Approved An issuance request is approved. A CBDC Manager approves an issuance request.
RELEASEHOLD Issuance Rejected An issuance request is rejected. A CBDC Manager rejects an issuance request.
ONHOLD Request Issuance A request to issue tokens is submitted for approval. A CBDC Issuer submits a request to issue tokens to an FI Officer.