Function getAllBalancesToBeTransferred

  • Gets the balances to be transferred for a given transfer with increments.

    Type Parameters

    Parameters

    Returns BalanceArray<bigint>

    Example

    For a transfer with balances: [{ badgeIds: [{ start: 1n, end: 1n }], amount: 1n }], incrementIdsBy: 1n, toAddressesLength: 1000
    We return [{ badgeIds: [{ start: 1n, end: 1000n }], amount: 1n }] because we transfer x1 badge to 1000 addresses
    and increment the badgeIds by 1 each time.


    This is really inefficient and should be optimized for large N.