Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host Functions #28

Open
bbyalcinkaya opened this issue Aug 20, 2024 · 0 comments
Open

Host Functions #28

bbyalcinkaya opened this issue Aug 20, 2024 · 0 comments

Comments

@bbyalcinkaya
Copy link
Member

bbyalcinkaya commented Aug 20, 2024

Host Function Implementation Progress

This issue tracks the progress of implementing all Soroban host functions.

context

int

  • obj_from_u64: i _
  • obj_to_u64: i 0
  • obj_from_i64: i 1
  • obj_to_i64: i 2
  • obj_from_u128_pieces: i 3
  • obj_to_u128_lo64: i 4
  • obj_to_u128_hi64: i 5
  • obj_from_i128_pieces: i 6
  • obj_to_i128_lo64: i 7
  • obj_to_i128_hi64: i 8
  • obj_from_u256_pieces: i 9
  • u256_val_from_be_bytes: i a
  • u256_val_to_be_bytes: i b
  • obj_to_u256_hi_hi: i c
  • obj_to_u256_hi_lo: i d
  • obj_to_u256_lo_hi: i e
  • obj_to_u256_lo_lo: i f
  • obj_from_i256_pieces: i g
  • i256_val_from_be_bytes: i h
  • i256_val_to_be_bytes: i i
  • obj_to_i256_hi_hi: i j
  • obj_to_i256_hi_lo: i k
  • obj_to_i256_lo_hi: i l
  • obj_to_i256_lo_lo: i m
  • u256_add: i n
  • u256_sub: i o
  • u256_mul: i p
  • u256_div: i q
  • u256_rem_euclid: i r
  • u256_pow: i s
  • u256_shl: i t
  • u256_shr: i u
  • i256_add: i v
  • i256_sub: i w
  • i256_mul: i x
  • i256_div: i y
  • i256_rem_euclid: i z
  • i256_pow: i A
  • i256_shl: i B
  • i256_shr: i C
  • timepoint_obj_from_u64: i D
  • timepoint_obj_to_u64: i E
  • duration_obj_from_u64: i F
  • duration_obj_to_u64: i G

map

  • map_new: m _
  • map_put: m 0
  • map_get: m 1
  • map_del: m 2
  • map_len: m 3
  • map_has: m 4
  • map_key_by_pos: m 5
  • map_val_by_pos: m 6
  • map_keys: m 7
  • map_values: m 8
  • map_new_from_linear_memory: m 9
  • map_unpack_to_linear_memory: m a

vec

ledger

call

buf

  • serialize_to_bytes: b _
  • deserialize_from_bytes: b 0
  • bytes_copy_to_linear_memory: b 1
  • bytes_copy_from_linear_memory: b 2
  • bytes_new_from_linear_memory: b 3
  • bytes_new: b 4
  • bytes_put: b 5
  • bytes_get: b 6
  • bytes_del: b 7
  • bytes_len: b 8
  • bytes_push: b 9
  • bytes_pop: b a
  • bytes_front: b b
  • bytes_back: b c
  • bytes_insert: b d
  • bytes_append: b e
  • bytes_slice: b f
  • string_copy_to_linear_memory: b g
  • symbol_copy_to_linear_memory: b h
  • string_new_from_linear_memory: b i
  • symbol_new_from_linear_memory: b j
  • string_len: b k
  • symbol_len: b l
  • symbol_index_in_linear_memory: b m

crypto

  • compute_hash_sha256: c _
  • verify_sig_ed25519: c 0
  • compute_hash_keccak256: c 1
  • recover_key_ecdsa_secp256k1: c 2
  • verify_sig_ecdsa_secp256r1: c 3

address

  • require_auth_for_args: a _
  • require_auth: a 0
  • strkey_to_address: a 1
  • address_to_strkey: a 2
  • authorize_as_curr_contract: a 3

test

  • dummy0: t _
  • protocol_gated_dummy: t 0

prng

  • prng_reseed: p _
  • prng_bytes_new: p 0
  • prng_u64_in_inclusive_range: p 1
  • prng_vec_shuffle: p 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant