AddressState is the state stored for the given address.

interface VaultAddressState {
    amount: Uint8Array;
    bucket: longnum;
    withdraw_policy: VaultWithdrawPolicy;
}

Properties

amount: Uint8Array

CurrentAmount specifies the amount already withdrawn in the current interval.

bucket: longnum

CurrentBucket specifies the interval we are currently doing accounting for.

withdraw_policy: VaultWithdrawPolicy

WithdrawPolicy is the active withdraw policy.