runtimeverification / runtimeverification/komet

Host Functions

Open
#28 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
35
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Host Function Implementation Progress

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

context

  • log_from_linear_memory: x _
  • obj_cmp: x 0
    • #52
  • contract_event: x 1
  • get_ledger_version: x 2
  • get_ledger_sequence: x 3
    • #16
  • get_ledger_timestamp: x 4
    • #43
  • fail_with_error: x 5
    • #26
  • get_ledger_network_id: x 6
  • get_current_contract_address: x 7
    • #27
  • get_max_live_until_ledger: x 8

int

  • obj_from_u64: i _
    • #10
  • obj_to_u64: i 0
    • #10
  • obj_from_i64: i 1
    • #45
  • obj_to_i64: i 2
    • #10
  • obj_from_u128_pieces: i 3
    • #12
  • obj_to_u128_lo64: i 4
    • #12
  • obj_to_u128_hi64: i 5
    • #12
  • obj_from_i128_pieces: i 6
    • #45
  • obj_to_i128_lo64: i 7
    • #45
  • obj_to_i128_hi64: i 8
    • #45
  • 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 _
    • #48
  • map_put: m 0
    • #48
  • map_get: m 1
    • #48
  • map_del: m 2
    • #48
  • map_len: m 3
    • #48
  • map_has: m 4
    • #48
  • map_key_by_pos: m 5
    • #54
  • map_val_by_pos: m 6
    • #54
  • map_keys: m 7
    • #54
  • map_values: m 8
    • #54
  • map_new_from_linear_memory: m 9
    • #15
  • map_unpack_to_linear_memory: m a
    • #15

vec

  • vec_new: v _
    • #23
  • vec_put: v 0
    • #62
  • vec_get: v 1
    • #43
  • vec_del: v 2
    • #62
  • vec_len: v 3
    • #43
  • vec_push_front: v 4
    • #62
  • vec_pop_front: v 5
    • #62
  • vec_push_back: v 6
    • #43
  • vec_pop_back: v 7
    • #62
  • vec_front: v 8
    • #62
  • vec_back: v 9
    • #62
  • vec_insert: v a
    • #62
  • vec_append: v b
    • #62
  • vec_slice: v c
    • #62
  • vec_first_index_of: v d
  • vec_last_index_of: v e
  • vec_binary_search: v f
  • vec_new_from_linear_memory: v g
    • #13
  • vec_unpack_to_linear_memory: v h
    • #13

ledger

  • put_contract_data: l _
    • #18
  • has_contract_data: l 0
    • #18
  • get_contract_data: l 1
    • #18
  • del_contract_data: l 2
    • #43
  • create_contract: l 3
  • create_asset_contract: l 4
  • upload_wasm: l 5
  • update_current_contract_wasm: l 6
    • #47
  • extend_contract_data_ttl: l 7
    • #47
  • extend_current_contract_instance_and_code_ttl: l 8
    • #24
  • extend_contract_instance_and_code_ttl: l 9
  • get_contract_id: l a
  • get_asset_contract_id: l b
  • extend_contract_instance_ttl: l c
  • extend_contract_code_ttl: l d

call

  • call: d _
    • #27
  • try_call: d 0
    • #65

buf

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

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by choosing one unchecked host function from the checklist and locating its implementation entry point; done means that function is implemented and its checklist item can be marked complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.