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.
- In the global variables section, update the following parameters in the configuration variable object.
- In the
CurrencyCodeDetails
business object, update the following parameters. - Update currency symbol in the CSS files.
- Navigate to Web Apps and then expand the Resources section.
- Open the
Resources/css/app.css
file. - 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. |