utils
Module0x9911…a9ec
- Move path
- 0x859e…b7cb::utils
- Functions
- 1818 public, 0 entry
- Structs
- 2
- Friend modules
- None
Functions18
- public fun assert_package_publisher<T0>(&Publisher)
- public fun assert_publisher<T0>(&Publisher)
- public fun assert_same_module<T0, T1>()
- public fun assert_same_module_as_witness<T0, T1>()
- public fun bps(): u16
- public fun from_vec_to_map<T0: copy + drop, T1: drop>(vector<T0>, vector<T1>): VecMap<T0, T1>
- public fun get_package_module_type<T0>(): (String, String, String)
- public fun get_package_module_type_raw(String): (String, String, String)
- public fun insert_vec_in_table<T0: store>(&mut TableVec<T0>,vector<T0>)
- public fun insert_vec_in_vec_set<T0: copy + drop + store>(&mut VecSet<T0>,vector<T0>)
- public fun originbyte_docs_url(): String
- public fun sum_vector(vector<u64>): u64
- public fun table_from_vec_map<T0: copy + drop + store, T1: store>(VecMap<T0, T1>): Table<T0, T1>
- public fun table_vec_from_vec<T0: store>(vector<T0>): TableVec<T0>
- public fun vec_map_entries<T0: copy + drop, T1: copy>(&VecMap<T0, T1>): vector<T1>
- public fun vec_set_from_vec<T0: copy + drop + store>(&vector<T0>): VecSet<T0>
Structs2
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- Marker<phantom T0>copydropstore
dummy_field bool
Constants8
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 1 | u64 | Abort code | from_vec_to_map |
| 1 | 2 | u64 | Abort code | assert_publisherassert_package_publisher |
| 2 | 3 | u64 | Abort code | assert_same_moduleassert_same_module_as_witness |
| 3 | 4 | u64 | Abort code | assert_same_moduleassert_same_module_as_witness |
| 4 | 5 | u64 | Abort code | assert_same_module_as_witness |
| 5 | "::" // interpreted as UTF8 string | vector<u8> | Value | get_package_module_type_raw |
| 6 | "Witness" // interpreted as UTF8 string | vector<u8> | Value | assert_same_module_as_witness |
| 7 | "https://docs.originbyte.io" // interpreted as UTF8 string | vector<u8> | Value | originbyte_docs_url |