code.vegaprotocol.io/vega@v0.79.0/core/banking/README.md (about)

     1  banking
     2  =======
     3  
     4  This package provide an engine which is an abstraction on top of the Collateral engined and the External Resource checker.
     5  
     6  One method will be provided for each type of ChainEvent dealing with Collateral and for each asset supported, as of now:
     7  - Asset_Allowlisted
     8  - Asset_Deposited
     9  - Asset_Withdrawn
    10  
    11  Once one of these methods called, the banking will setup into the external resource checker some validation to be done,
    12  e.g: Asset_Deposited validation for an erc20 token requires to look at the eth event logs to confirm that the deposit
    13  really did happen.
    14  
    15  After the validation is confirmed, the engine will finalize the processing of the ChainEvent by calling the appropriate
    16  function on the Collateral engine.