cocktail/vodka_certificate

Functions

register_stake_certificate(
  certificates: List<Certificate>,
  credential: Credential,
) -> Bool

Check if a certain stake registration certificate exists in certificates.

let is_stake_registerd = register_stake_certificate(certificates, stake_credential)

unregister_stake_certificate(
  certificates: List<Certificate>,
  credential: Credential,
) -> Bool

Check if a certain stake unregistration certificate exists in certificates.

let is_stake_unregisterd = unregister_stake_certificate(certificates, stake_credential)

register_drep_certificate(
  certificates: List<Certificate>,
  credential: Credential,
  deposit: Lovelace,
) -> Bool

Check if a certain drep registration with specified deposit certificate exists in certificates.

let is_drep_registerd = register_drep_certificate(certificates, stake_credential, deposit)

unregister_drep_certificate(
  certificates: List<Certificate>,
  credential: Credential,
  refund: Lovelace,
) -> Bool

Check if a certain drep unregistration with specified refund certificate exists in certificates.

let is_drep_unregisterd = unregister_drep_certificate(certificates, stake_credential, refund)

delegate_stake_certificate(
  certificates: List<Certificate>,
  credential: Credential,
  stake_pool: StakePoolId,
) -> Bool

Check if a certain stake delegation to a specificed pool certificate exists in certificates.

let is_stake_delegated = delegate_stake_certificate(certificates, stake_credential, stake_pool)

delegate_vote_certificate(
  certificates: List<Certificate>,
  credential: Credential,
  delegate_representative: DelegateRepresentative,
) -> Bool

Check if a certain voting power delegation to a specificed drep certificate exists in certificates.

let is_vote_delegated = delegate_vote_certificate(certificates, stake_credential, delegate_representative)

delegate_stake_and_vote_certificate(
  certificates: List<Certificate>,
  credential: Credential,
  stake_pool: StakePoolId,
  delegate_representative: DelegateRepresentative,
) -> Bool

Check if a certain delegation to a specificed pool and drep certificate exists in certificates.

let is_stake_and_vote_delegated = delegate_stake_and_vote_certificate(certificates, stake_credential, stake_pool, delegate_representative)
Search Document