bcs
Module0x0000…0002
- Move path
- 0x0000…0002::bcs
- Functions
- 3030 public, 0 entry
- Structs
- 1
- Friend modules
- None
bcs
- accumulator18
- accumulator_metadata2
- accumulator_settlement8
- address10
- address_alias5
- allowance40
- authenticator_state13
- bag10
- balance18
- bcs30
- bls1238143
- borrow4
- clock3
- coin54
- coin_registry43
- config11
- deny_list21
- derived_object3
- display14
- display_registry18
- dynamic_field19
- dynamic_object_field15
- ecdsa_k13
- ecdsa_r12
- ecvrf1
- ed255191
- event3
- forwarding_address1
- funds_accumulator12
- groth1610
- group_ops23
- hash2
- hex3
- hmac1
- kiosk41
- kiosk_extension14
- linked_table19
- math7
- nitro_attestation11
- object32
- object_bag11
- object_table10
- package26
- party5
- pay8
- poseidon2
- priority_queue8
- protocol_config1
- prover0
- random20
- rangeproofs3
- ristretto25518
- scratch18
- sui2
- table10
- table_vec12
- token45
- transfer16
- transfer_policy18
- tx_context19
- types1
- url4
- vdf4
- vec_map20
- vec_set11
- versioned7
- zklogin_verified_id9
- zklogin_verified_issuer6
Functions30
- public fun into_remainder_bytes(BCS): vector<u8>
- public fun new(vector<u8>): BCS
- public fun peel_address(&mut BCS): address
- public fun peel_bool(&mut BCS): bool
- public fun peel_enum_tag(&mut BCS): u32
- public fun peel_option_address(&mut BCS): Option<address>
- public fun peel_option_bool(&mut BCS): Option<bool>
- public fun peel_option_u128(&mut BCS): Option<u128>
- public fun peel_option_u16(&mut BCS): Option<u16>
- public fun peel_option_u256(&mut BCS): Option<u256>
- public fun peel_option_u32(&mut BCS): Option<u32>
- public fun peel_option_u64(&mut BCS): Option<u64>
- public fun peel_option_u8(&mut BCS): Option<u8>
- public fun peel_u128(&mut BCS): u128
- public fun peel_u16(&mut BCS): u16
- public fun peel_u256(&mut BCS): u256
- public fun peel_u32(&mut BCS): u32
- public fun peel_u64(&mut BCS): u64
- public fun peel_u8(&mut BCS): u8
- public fun peel_vec_address(&mut BCS): vector<address>
- public fun peel_vec_bool(&mut BCS): vector<bool>
- public fun peel_vec_length(&mut BCS): u64
- public fun peel_vec_u128(&mut BCS): vector<u128>
- public fun peel_vec_u16(&mut BCS): vector<u16>
- public fun peel_vec_u256(&mut BCS): vector<u256>
- public fun peel_vec_u32(&mut BCS): vector<u32>
- public fun peel_vec_u64(&mut BCS): vector<u64>
- public fun peel_vec_u8(&mut BCS): vector<u8>
- public fun peel_vec_vec_u8(&mut BCS): vector<vector<u8>>
- public fun to_bytes<T0>(&T0): vector<u8>
Structs1
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- BCScopydropstore
bytes vector<u8>
Constants12
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 0 | u64 | Abort code | peel_addresspeel_u8peel_u16peel_u32and 4 more |
| 1 | 1 | u64 | Abort code | peel_bool |
| 2 | 2 | u64 | Abort code | peel_vec_length |
| 3 | "" // interpreted as UTF8 string | vector<u8> | Value | peel_addresspeel_vec_u8 |
| 4 | 00 | vector<address> | Value | peel_vec_address |
| 5 | 00 | vector<bool> | Value | peel_vec_bool |
| 6 | 00 | vector<vector<u8>> | Value | peel_vec_vec_u8 |
| 7 | 00 | vector<u16> | Value | peel_vec_u16 |
| 8 | 00 | vector<u32> | Value | peel_vec_u32 |
| 9 | 00 | vector<u64> | Value | peel_vec_u64 |
| 10 | 00 | vector<u128> | Value | peel_vec_u128 |
| 11 | 00 | vector<u256> | Value | peel_vec_u256 |