1 2 3 4 5 6 7 8 9 10 11 12 13
#![cfg_attr(not(feature = "std"), no_std, no_main)] use ink::prelude::vec::Vec; #[ink::trait_definition] pub trait IRandomOracle { #[ink(message)] fn get_random_value_for_round(&self, round: Vec<u8>) -> Vec<u8>; // #[ink(message)] // fn get_last_round(&self) -> Vec<u8>; }