MCPcopy Create free account
hub / github.com/cutupdev/Solana-RWA-Smart-Contract / register_asset

Function register_asset

programs/rwa-tokenization/src/lib.rs:25–27  ·  view source on GitHub ↗

Register a new real-world asset

(ctx: Context<RegisterAsset>, args: RegisterAssetArgs)

Source from the content-addressed store, hash-verified

23
24 /// Register a new real-world asset
25 pub fn register_asset(ctx: Context<RegisterAsset>, args: RegisterAssetArgs) -> Result<()> {
26 ctx.accounts.process(args)
27 }
28
29 /// Tokenize a registered asset (mint tokens representing ownership)
30 pub fn tokenize_asset(ctx: Context<TokenizeAsset>, total_supply: u64) -> Result<()> {

Callers

nothing calls this directly

Calls 1

processMethod · 0.45

Tested by

no test coverage detected