Vendor Registry Contract

Learning vendor management

Vendor Registry Contract

Stores and manages verified learning vendors on-chain.

Contract ID: CCZ6T6NYCDNI26VGTPXKKWQDR7JCIZZ24LCEG4MMYHZJAG6BPWIVAU2L

View on Stellar Expert

Functions

register_vendor()

Registers a new vendor. Admin only.

pub fn register_vendor(
    env: Env,
    vendor: Address,
    name: Symbol,
    category: VendorCategory,
) -> u32

get_vendor()

Returns vendor details by address.

pub fn get_vendor(env: Env, vendor: Address) -> Option<Vendor>

get_vendor_count()

Returns the total number of registered vendors.

pub fn get_vendor_count(env: Env) -> u32

Vendor Categories

pub enum VendorCategory {
    School,
    Bootcamp,
    Electronics,
    OnlineCourse,
    DevTools,
}