Clearing

Clearing is the source of truth for all the intermediary state of a fragment. All transfers are recorded in clearing.

message ClearingAccount {
    string TwilightAddress = 1;
    string BtcDepositAddress = 2;
    uint32 BtcDepositAddressIdentifier = 3; 
    string BtcWithdrawAddress = 4;
    uint32 BtcWithdrawAddressIdentifier = 5;
    repeated IndividualTwilightReserveAccountBalance ReserveAccountBalances = 6

Individual accounts have a separate mapping

message IndividualTwilightReserveAccountBalance {
    uint64 ReserveId = 1;
    uint64 Amount = 2;

Last updated