Type Alias NominationPoolsEvent

NominationPoolsEvent: Enum<{
    Bonded: {
        bonded: bigint;
        joined: boolean;
        member: SS58String;
        pool_id: number;
    };
    Created: {
        depositor: SS58String;
        pool_id: number;
    };
    Destroyed: {
        pool_id: number;
    };
    MemberRemoved: {
        member: SS58String;
        pool_id: number;
    };
    MinBalanceDeficitAdjusted: {
        amount: bigint;
        pool_id: number;
    };
    MinBalanceExcessAdjusted: {
        amount: bigint;
        pool_id: number;
    };
    PaidOut: {
        member: SS58String;
        payout: bigint;
        pool_id: number;
    };
    PoolCommissionChangeRateUpdated: {
        change_rate: {
            max_increase: number;
            min_delay: number;
        };
        pool_id: number;
    };
    PoolCommissionClaimed: {
        commission: bigint;
        pool_id: number;
    };
    PoolCommissionClaimPermissionUpdated: {
        permission?: NominationPoolsCommissionClaimPermission;
        pool_id: number;
    };
    PoolCommissionUpdated: {
        current?: [number, SS58String];
        pool_id: number;
    };
    PoolMaxCommissionUpdated: {
        max_commission: number;
        pool_id: number;
    };
    PoolSlashed: {
        balance: bigint;
        pool_id: number;
    };
    RolesUpdated: {
        bouncer?: SS58String;
        nominator?: SS58String;
        root?: SS58String;
    };
    StateChanged: {
        new_state: NominationPoolsPoolState;
        pool_id: number;
    };
    Unbonded: {
        balance: bigint;
        era: number;
        member: SS58String;
        points: bigint;
        pool_id: number;
    };
    UnbondingPoolSlashed: {
        balance: bigint;
        era: number;
        pool_id: number;
    };
    Withdrawn: {
        balance: bigint;
        member: SS58String;
        points: bigint;
        pool_id: number;
    };
}>

Type declaration

  • Bonded: {
        bonded: bigint;
        joined: boolean;
        member: SS58String;
        pool_id: number;
    }

    A member has became bonded in a pool.

    • bonded: bigint
    • joined: boolean
    • member: SS58String
    • pool_id: number
  • Created: {
        depositor: SS58String;
        pool_id: number;
    }

    A pool has been created.

    • depositor: SS58String
    • pool_id: number
  • Destroyed: {
        pool_id: number;
    }

    A pool has been destroyed.

    • pool_id: number
  • MemberRemoved: {
        member: SS58String;
        pool_id: number;
    }

    A member has been removed from a pool.

    The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).

    • member: SS58String
    • pool_id: number
  • MinBalanceDeficitAdjusted: {
        amount: bigint;
        pool_id: number;
    }

    Topped up deficit in frozen ED of the reward pool.

    • amount: bigint
    • pool_id: number
  • MinBalanceExcessAdjusted: {
        amount: bigint;
        pool_id: number;
    }

    Claimed excess frozen ED of af the reward pool.

    • amount: bigint
    • pool_id: number
  • PaidOut: {
        member: SS58String;
        payout: bigint;
        pool_id: number;
    }

    A payout has been made to a member.

    • member: SS58String
    • payout: bigint
    • pool_id: number
  • PoolCommissionChangeRateUpdated: {
        change_rate: {
            max_increase: number;
            min_delay: number;
        };
        pool_id: number;
    }

    A pool's commission change_rate has been changed.

    • change_rate: {
          max_increase: number;
          min_delay: number;
      }
      • max_increase: number
      • min_delay: number
    • pool_id: number
  • PoolCommissionClaimed: {
        commission: bigint;
        pool_id: number;
    }

    Pool commission has been claimed.

    • commission: bigint
    • pool_id: number
  • PoolCommissionClaimPermissionUpdated: {
        permission?: NominationPoolsCommissionClaimPermission;
        pool_id: number;
    }

    Pool commission claim permission has been updated.

  • PoolCommissionUpdated: {
        current?: [number, SS58String];
        pool_id: number;
    }

    A pool's commission setting has been changed.

    • Optionalcurrent?: [number, SS58String]
    • pool_id: number
  • PoolMaxCommissionUpdated: {
        max_commission: number;
        pool_id: number;
    }

    A pool's maximum commission setting has been changed.

    • max_commission: number
    • pool_id: number
  • PoolSlashed: {
        balance: bigint;
        pool_id: number;
    }

    The active balance of pool pool_id has been slashed to balance.

    • balance: bigint
    • pool_id: number
  • RolesUpdated: {
        bouncer?: SS58String;
        nominator?: SS58String;
        root?: SS58String;
    }

    The roles of a pool have been updated to the given new roles. Note that the depositor can never change.

    • Optionalbouncer?: SS58String
    • Optionalnominator?: SS58String
    • Optionalroot?: SS58String
  • StateChanged: {
        new_state: NominationPoolsPoolState;
        pool_id: number;
    }

    The state of a pool has changed

  • Unbonded: {
        balance: bigint;
        era: number;
        member: SS58String;
        points: bigint;
        pool_id: number;
    }

    A member has unbonded from their pool.

    • balance is the corresponding balance of the number of points that has been requested to be unbonded (the argument of the unbond transaction) from the bonded pool.
    • points is the number of points that are issued as a result of balance being dissolved into the corresponding unbonding pool.
    • era is the era in which the balance will be unbonded. In the absence of slashing, these values will match. In the presence of slashing, the number of points that are issued in the unbonding pool will be less than the amount requested to be unbonded.
    • balance: bigint
    • era: number
    • member: SS58String
    • points: bigint
    • pool_id: number
  • UnbondingPoolSlashed: {
        balance: bigint;
        era: number;
        pool_id: number;
    }

    The unbond pool at era of pool pool_id has been slashed to balance.

    • balance: bigint
    • era: number
    • pool_id: number
  • Withdrawn: {
        balance: bigint;
        member: SS58String;
        points: bigint;
        pool_id: number;
    }

    A member has withdrawn from their pool.

    The given number of points have been dissolved in return of balance.

    Similar to Unbonded event, in the absence of slashing, the ratio of point to balance will be 1.

    • balance: bigint
    • member: SS58String
    • points: bigint
    • pool_id: number