pub use crate::ServiceMethod;
type CallbackType = u32;
#[crate::service(
name = "i-auth",
actions = "AuthActions",
wrapper = "AuthWrapper",
structs = "auth_action_structs",
dispatch = false,
pub_constant = false,
psibase_mod = "crate"
)]
#[allow(non_snake_case, unused_variables)]
pub mod auth_interface {
use crate::services::transact::ServiceMethod;
pub const READ_ONLY_FLAG: u32 = 0x8000_0000;
pub const FIRST_AUTH_FLAG: u32 = 0x4000_0000;
pub const REQUEST_MASK: u32 = 0x0000_00ff;
pub const TOP_ACTION_REQ: u32 = 0x01;
pub const RUN_AS_REQUESTER_REQ: u32 = 0x02;
pub const RUN_AS_MATCHED_REQ: u32 = 0x03;
pub const RUN_AS_MATCHED_EXPANDED_REQ: u32 = 0x04;
pub const RUN_AS_OTHER_REQ: u32 = 0x05;
#[action]
fn checkAuthSys(
flags: u32,
requester: crate::AccountNumber,
action: crate::Action,
allowedActions: Vec<crate::services::transact::ServiceMethod>,
claims: Vec<crate::Claim>,
) -> bool {
unimplemented!()
}
#[action]
fn canAuthUserSys(user: crate::AccountNumber) {
unimplemented!()
}
#[action]
fn getDlgsSys(
sender: crate::AccountNumber,
method: Option<ServiceMethod>,
) -> Vec<crate::AccountNumber> {
unimplemented!()
}
#[action]
fn isAuthSys(
sender: crate::AccountNumber,
authorizers: Vec<crate::AccountNumber>,
method: Option<ServiceMethod>,
) -> bool {
unimplemented!()
}
#[action]
fn isRejectSys(
sender: crate::AccountNumber,
rejecters: Vec<crate::AccountNumber>,
method: Option<ServiceMethod>,
) -> bool {
unimplemented!()
}
}
#[crate::service(name = "transact", dispatch = false, psibase_mod = "crate")]
#[allow(non_snake_case, unused_variables)]
mod service {
use super::CallbackType;
use crate::{Action, Checksum256, Hex, Transaction};
use fracpack::Nested;
#[action]
fn startBoot(bootTransactions: Vec<crate::Checksum256>) {
unimplemented!();
}
#[action]
fn finishBoot() {
unimplemented!()
}
#[action]
fn startBlock() {
unimplemented!()
}
#[action]
fn execTrx(trx: Nested<Transaction>, speculative: bool) {
unimplemented!()
}
#[action]
fn kvNotify(
service: crate::AccountNumber,
db: crate::DbId,
keyLen: u32,
oldValueLen: u32,
newValueLen: u32,
) {
unimplemented!()
}
#[action]
fn setSnapTime(seconds: u32) {
unimplemented!()
}
#[action]
fn addCallback(type_: CallbackType, objective: bool, act: Action) {
unimplemented!()
}
#[action]
fn removeCallback(type_: CallbackType, objective: bool, act: Action) {
unimplemented!()
}
#[action]
fn regEvIdx(service: crate::AccountNumber) {
unimplemented!()
}
#[action]
fn runAs(
action: crate::Action,
allowedActions: Vec<crate::services::transact::ServiceMethod>,
) -> Hex<Vec<u8>> {
unimplemented!()
}
#[action]
fn checkFirstAuth(id: Checksum256, transaction: Transaction) -> bool {
unimplemented!()
}
#[action]
fn resMonitoring(enable: bool) {
unimplemented!()
}
#[action]
fn isResMonitoring() -> bool {
unimplemented!()
}
#[action]
fn skipBilling(numWrites: u32) {
unimplemented!()
}
#[action]
fn endSkipBilling() {
unimplemented!()
}
#[action]
fn systemWrite(numBytes: u64) {
unimplemented!()
}
#[action]
fn getTransaction() -> crate::Transaction {
unimplemented!()
}
#[action]
fn isTransaction() -> bool {
unimplemented!()
}
#[action]
fn currentBlock() -> crate::BlockHeader {
unimplemented!()
}
#[action]
fn headBlock() -> crate::BlockHeader {
unimplemented!()
}
#[action]
fn headBlockTime() -> crate::TimePointSec {
unimplemented!()
}
#[action]
fn headTapos() -> (u8, u32) {
unimplemented!();
}
#[event(history, public)]
fn blockStart(blockNum: crate::BlockNum, blockTime: crate::BlockTime) {
unimplemented!()
}
}
#[test]
fn verify_schema() {
crate::assert_schema_matches_package::<Wrapper>();
}