Command Line Interface
Using Fida from the Command Line
For the purpose of deploying policy contracts on the network we plan to develop software in the form of a cli
(command-line interface). The fida cli
has two parts: an on-chain
component written in Haskell
and an off-chain
component written in Purescript
.
Of the three main actors involved: the policy broker, policy owner, and investors; the policy broker, possessing special permissions, can, for instance, trigger state transitions of the policy or mark it as discoverable on the chain. All actors, when using the cli
, are required to provide access to their wallets in the form of script input parameters. The cli
is capable of crafting a transaction, signing it using the provided key, and sending it to the chain.
Investors, utilizing the cli
, can search the blockchain for a Fida Policy available for funding and contribute to the funding by purchasing a Fida Card Policy through the issuance of an appropriate transaction. On the other hand, the policy owner can monitor the progress of the funding phase using the cli
by querying the blockchain for specific policy information or obtaining a list of all policies in which they are the owner. Once the policy is fully funded, the policy broker, upon contacting the client, triggers a Fida Policy state transition, and the policy becomes "on risk" from that point onward.
The commands on the cli
match the labeled transition methods which would move the policy contracts and investor contracts. You can read more about Policy Management and Claims Management in their respective sections.
Last updated