pub trait AttestersWriteApi<Account, Error> {
    // Required methods
    fn request_sfx_attestation_commit(
        target: TargetId,
        sfx_id: H256,
        maybe_gmp_payload: Option<H256>
    ) -> Result<(), Error>;
    fn request_sfx_attestation_revert(
        target: TargetId,
        sfx_id: H256
    ) -> Result<(), Error>;
    fn request_ban_attesters_attestation(
        ban_attesters: &Account
    ) -> Result<(), Error>;
    fn request_next_committee_attestation() -> Vec<(TargetId, u32)>;
}

Required Methods§

source

fn request_sfx_attestation_commit( target: TargetId, sfx_id: H256, maybe_gmp_payload: Option<H256> ) -> Result<(), Error>

source

fn request_sfx_attestation_revert( target: TargetId, sfx_id: H256 ) -> Result<(), Error>

source

fn request_ban_attesters_attestation( ban_attesters: &Account ) -> Result<(), Error>

source

fn request_next_committee_attestation() -> Vec<(TargetId, u32)>

Implementors§

source§

impl<Account, Balance, Error> AttestersWriteApi<Account, Error> for AttestersReadApiEmptyMock<Account, Balance, Error>