Minka Ledger Docs
How To Guides

How to apply a layout

DateResponsibleChanges
October 24, 2024@Luis FidelisInitial version

CLI allows users to apply layouts to a ledger.

Applying a layout with CLI

Bellow is an example of how to apply a layout using the Minka CLI.

Ensure that you are connected to a server and have an active ledger set in the context before proceeding.

$ minka layout apply
? Select Layout: Cross Ledger Payments
? Select main signer: <signer>
 
✅ Layout applied successfully:
Ledger: testing-layout
Layout: Cross Ledger Payments
Layout changelog:
  Signer
    + tesla (added)
    + minka (added)
    + ach (added)
  Circle
    + bank (added)
    + ach (added)
	Circle Members (signer => circle)
    + tesla => bank (added)
    + minka => bank (added)
    + ach => ach (added)
	Policy
    + default (added)
    + p2p-intent (added)
    + alias-directory (added)
	Schema
    + p2p (added)
    + intent (added)
    + tel-alias (added)
    + bank-wallet (added)
	Symbol
    + usd (added)
    + dop (added)
	Wallet
		+ ach (added)
		+ tesla (added)
		+ minka (added)
	Intent
		+ issue_money_usd_ach (added)
		+ issue_money_dop_ach (added)
		+ issue_money_usd_tesla (added)
		+ issue_money_dop_tesla (added)
		+ issue_money_usd_minka (added)
		+ issue_money_dop_minka (added)

Applying a layout with variables

Certain layouts may include variables represented using the syntax {{ inputs.<variableName> }}. This feature enables the creation of generic models that can be customized with minor variations.

In such cases, the CLI will prompt you to provide the necessary values for these variables, transforming the layout as needed before applying it to the ledger.

$ minka layout apply
? Select Layout: RTP Bank Domain
? Domain name: example.io
? Bank name: Example Bank
? Bank BIC: EXAMPLE BANK
 
✅ Layout applied successfully:
Ledger: testing-layout
Layout: RTP Bank Domain
Layout changelog:
  Wallets
	  + example.io
 
	Circles
	  + owner@example.io (added)
	  + admin@example.io (added)
	  + security@example.io (added)
	  + operation@example.io (added)
	  + support@example.io (added)
	  + bridge@example.io (added)
	
	Policies
	  + studio-navigation@example.io (added)
	  + owner@example.io (added)
	  + admin@example.io (added)
	  + security@example.io (added)
	  + operation@example.io (added)
	  + support@example.io (added)
	  + bridge@example.io (added)
	  + reporting-bridge@example.io (added)
  
	Domains
	  + example.io (added)

On this page