Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

url

Module0x34a2…c82c
Move path
0xbc3d…e5f9::url
Functions
77 public, 0 entry
Structs
0
Friend modules
None
url

Bytecode94 lines

The on-chain disassembly. Offsets are bytecode positions within each function.

// Move bytecode v6
module bc3df36be17f27ac98e3c839b2589db8475fa07b20657b08e8891e3aaf5ee5f9.url {
use 859eb18bd5b5e8cc32deb6dfb1c39941008ab3c6e27f0b8ce2364be7102bb7cb::utils;
use 0000000000000000000000000000000000000000000000000000000000000002::dynamic_field;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::url as 1url;
 
public has_domain(Arg0: &UID): bool {
B0:
0MoveLoc[0](Arg0: &UID)
1Call utils::marker<Url>(): Marker<Url>
2Call dynamic_field::exists_with_type<Marker<Url>, Url>(&UID, Marker<Url>): bool
3Ret
}
 
public borrow_domain(Arg0: &UID): &Url {
B0:
0CopyLoc[0](Arg0: &UID)
1Call assert_url(&UID)
2MoveLoc[0](Arg0: &UID)
3Call utils::marker<Url>(): Marker<Url>
4Call dynamic_field::borrow<Marker<Url>, Url>(&UID, Marker<Url>): &Url
5Ret
}
 
public borrow_domain_mut(Arg0: &mut UID): &mut Url {
B0:
0CopyLoc[0](Arg0: &mut UID)
1FreezeRef
2Call assert_url(&UID)
3MoveLoc[0](Arg0: &mut UID)
4Call utils::marker<Url>(): Marker<Url>
5Call dynamic_field::borrow_mut<Marker<Url>, Url>(&mut UID, Marker<Url>): &mut Url
6Ret
}
 
public add_domain(Arg0: &mut UID, Arg1: Url) {
B0:
0CopyLoc[0](Arg0: &mut UID)
1FreezeRef
2Call assert_no_url(&UID)
3MoveLoc[0](Arg0: &mut UID)
4Call utils::marker<Url>(): Marker<Url>
5MoveLoc[1](Arg1: Url)
6Call dynamic_field::add<Marker<Url>, Url>(&mut UID, Marker<Url>, Url)
7Ret
}
 
public remove_domain(Arg0: &mut UID): Url {
B0:
0CopyLoc[0](Arg0: &mut UID)
1FreezeRef
2Call assert_url(&UID)
3MoveLoc[0](Arg0: &mut UID)
4Call utils::marker<Url>(): Marker<Url>
5Call dynamic_field::remove<Marker<Url>, Url>(&mut UID, Marker<Url>): Url
6Ret
}
 
public assert_url(Arg0: &UID) {
B0:
0MoveLoc[0](Arg0: &UID)
1Call has_domain(&UID): bool
2BrFalse(4)
B1:
3Branch(6)
B2:
4LdConst[0](u64: 1)
5Abort
B3:
6Ret
}
 
public assert_no_url(Arg0: &UID) {
B0:
0MoveLoc[0](Arg0: &UID)
1Call has_domain(&UID): bool
2Not
3BrFalse(5)
B1:
4Branch(7)
B2:
5LdConst[1](u64: 2)
6Abort
B3:
7Ret
}
 
Constants [
0 => u64: 1
1 => u64: 2
]
}