rating: Floating-point rating between 0 and 5, but by multiples of.
account_id: The account you want to rate.Queries most recent timestamps for both accounts rating each other. This requires both accounts to be registered on the contract.b_to_a: | Nanosecond timestamp for when last the account b rated a, null if never.a_to_b: | Nanosecond timestamp for when last the account a rated b, null if never.Queries the rating status of a single account. This requires the account to be registered on the contract.received: How many ratings this account has received from other accounts.given: How many ratings this account has given out.rating: Floating-point rating of the account from 0 to 5.Registered accounts are automatically given 2 points on the rating system. Accounts cannot be rated or queried if they haven't first registered. Registers the signer of the transaction on the smart contract.
#Nose dive black mirror wiki free#
Free to call (this function call requires no transfer of funds).While those without it are view methods and can be called without needing a transaction. Contract APIįunctions with &mut self are change methods, requiring the caller to sign a transactio. The contract in contract/src/lib.rs provides methods to register one's own account, vote a registered account, view account state, etc.įront end isn't implemented yet, but given that all the integration tests checkout, UI is a non-issue. Inspired by Black Mirror's NoseDive episode. NEAR smart contract implementing a rating system between NEAR accounts.