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

Add ibc support #167

Merged
merged 19 commits into from
Jan 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ default = []
backtraces = []

[dependencies]
cosmwasm-std = { git = "https://github.com/CosmWasm/cosmwasm", rev = "24c357a19a52", features = ["iterator"]}
cosmwasm-vm = { git = "https://github.com/CosmWasm/cosmwasm", rev = "24c357a19a52", features = ["iterator"] }
cosmwasm-std = { git = "https://github.com/CosmWasm/cosmwasm", rev = "220e39c8", features = ["iterator","staking","stargate"]}
cosmwasm-vm = { git = "https://github.com/CosmWasm/cosmwasm", rev = "220e39c8", features = ["iterator","staking","stargate"] }
errno = "0.2"
serde_json = "1.0"
thiserror = "1.0"
Expand Down
76 changes: 74 additions & 2 deletions api/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,86 @@ Buffer handle(cache_t *cache,
uint64_t *gas_used,
Buffer *err);

Buffer ibc_channel_close(cache_t *cache,
Buffer code_id,
Buffer env,
Buffer msg,
DB db,
GoApi api,
GoQuerier querier,
uint64_t gas_limit,
bool print_debug,
uint64_t *gas_used,
Buffer *err);

Buffer ibc_channel_connect(cache_t *cache,
Buffer code_id,
Buffer env,
Buffer msg,
DB db,
GoApi api,
GoQuerier querier,
uint64_t gas_limit,
bool print_debug,
uint64_t *gas_used,
Buffer *err);

Buffer ibc_channel_open(cache_t *cache,
Buffer code_id,
Buffer env,
Buffer msg,
DB db,
GoApi api,
GoQuerier querier,
uint64_t gas_limit,
bool print_debug,
uint64_t *gas_used,
Buffer *err);

Buffer ibc_packet_ack(cache_t *cache,
Buffer code_id,
Buffer env,
Buffer msg,
DB db,
GoApi api,
GoQuerier querier,
uint64_t gas_limit,
bool print_debug,
uint64_t *gas_used,
Buffer *err);

Buffer ibc_packet_receive(cache_t *cache,
Buffer code_id,
Buffer env,
Buffer msg,
DB db,
GoApi api,
GoQuerier querier,
uint64_t gas_limit,
bool print_debug,
uint64_t *gas_used,
Buffer *err);

Buffer ibc_packet_timeout(cache_t *cache,
Buffer code_id,
Buffer env,
Buffer msg,
DB db,
GoApi api,
GoQuerier querier,
uint64_t gas_limit,
bool print_debug,
webmaster128 marked this conversation as resolved.
Show resolved Hide resolved
uint64_t *gas_used,
Buffer *err);

cache_t *init_cache(Buffer data_dir,
Buffer supported_features,
uint32_t cache_size,
uint32_t instance_memory_limit,
Buffer *err);

Buffer instantiate(cache_t *cache,
Buffer contract_id,
Buffer code_id,
ethanfrey marked this conversation as resolved.
Show resolved Hide resolved
Buffer env,
Buffer info,
Buffer msg,
Expand All @@ -164,7 +236,7 @@ Buffer instantiate(cache_t *cache,
Buffer *err);

Buffer migrate(cache_t *cache,
Buffer contract_id,
Buffer code_id,
Buffer env,
Buffer info,
Buffer msg,
Expand Down
Loading