pub struct ContractExt { /* private fields */ }
Implementations§
Source§impl ContractExt
impl ContractExt
pub fn create_address( self, address: AccountId, category: Category, risk_score: RiskScore, case_id: CaseId, ) -> Promise
pub fn update_address( self, address: AccountId, category: Category, risk_score: RiskScore, case_id: CaseId, ) -> Promise
pub fn confirm_address(self, address: AccountId) -> Promise
Source§impl ContractExt
impl ContractExt
pub fn get_address(self, address: &AccountId) -> Promise
pub fn get_addresses(self, take: u64, skip: u64) -> Promise
pub fn get_address_count(self) -> Promise
Source§impl ContractExt
impl ContractExt
pub fn create_asset( self, address: AccountId, id: U64, category: Category, risk_score: RiskScore, case_id: CaseId, ) -> Promise
pub fn update_asset( self, address: AccountId, id: U64, category: Category, risk_score: RiskScore, case_id: CaseId, ) -> Promise
pub fn confirm_asset(self, address: AccountId, id: U64) -> Promise
Source§impl ContractExt
impl ContractExt
Source§impl ContractExt
impl ContractExt
pub fn create_case(self, id: CaseId, name: String, url: String) -> Promise
pub fn update_case( self, id: CaseId, name: String, status: CaseStatus, url: String, ) -> Promise
Source§impl ContractExt
impl ContractExt
Source§impl ContractExt
impl ContractExt
pub fn update_stake_configuration( self, stake_configuration: StakeConfiguration, ) -> Promise
pub fn update_reward_configuration( self, reward_configuration: RewardConfiguration, ) -> Promise
pub fn get_stake_configuration(self) -> Promise
pub fn get_reward_configuration(self) -> Promise
Source§impl ContractExt
impl ContractExt
pub fn create_reporter( self, id: ReporterId, account_id: AccountId, name: String, role: Role, url: String, ) -> Promise
pub fn update_reporter( self, id: ReporterId, account_id: AccountId, name: String, role: Role, url: String, ) -> Promise
pub fn deactivate_reporter(self) -> Promise
pub fn unstake(self) -> Promise
Source§impl ContractExt
impl ContractExt
pub fn get_reporter(self, id: ReporterId) -> Promise
pub fn get_reporters(self, take: u64, skip: u64) -> Promise
pub fn get_reporter_count(self) -> Promise
pub fn get_reporter_by_account(self, account_id: AccountId) -> Promise
Source§impl ContractExt
impl ContractExt
pub fn after_transfer_stake( self, reporter_account: AccountId, amount: U128, ) -> Promise
Source§impl ContractExt
impl ContractExt
Source§impl ContractExt
impl ContractExt
pub fn with_attached_deposit(self, amount: NearToken) -> Self
pub fn with_static_gas(self, static_gas: Gas) -> Self
pub fn with_unused_gas_weight(self, gas_weight: u64) -> Self
Source§impl ContractExt
impl ContractExt
pub fn contract_source_metadata(self) -> Promise
Source§impl ContractExt
impl ContractExt
pub fn initialize(self) -> Promise
Auto Trait Implementations§
impl Freeze for ContractExt
impl RefUnwindSafe for ContractExt
impl Send for ContractExt
impl Sync for ContractExt
impl Unpin for ContractExt
impl UnwindSafe for ContractExt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more