Skip to content

Commit

Permalink
docs: change ref links to ours (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Expotential108 committed Jun 3, 2021
1 parent e0e370d commit 124bd4a
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 290 deletions.
237 changes: 0 additions & 237 deletions .circleci/config.yml

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# wasmvm

[![Tests](https://github.com/line/wasmvm/actions/workflows/tests.yml/badge.svg)](https://github.com/line/wasmvm/actions/workflows/tests.yml)

This repository is forked from [CosmWasm/wasmvm](https://github.com/CosmWasm/wasmvm)

This is a wrapper around the [CosmWasm VM](https://github.com/line/cosmwasm/tree/master/packages/vm).

It allows you to compile, initialize and execute CosmWasm smart contracts
from Go applications, in particular from [x/wasm](https://github.com/line/lbm-sdk/tree/v2/develop/x/wasm).

Expand Down
2 changes: 1 addition & 1 deletion api/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ func TestCustomReflectQuerier(t *testing.T) {
type QueryMsg struct {
Capitalized *CapitalizedQuery `json:"capitalized,omitempty"`
// There are more queries but we don't use them yet
// https://github.com/CosmWasm/cosmwasm/blob/v0.11.0-alpha3/contracts/reflect/src/msg.rs#L18-L28
// https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/contracts/reflect/src/msg.rs#L38-L57
}

type CapitalizedResponse struct {
Expand Down
4 changes: 2 additions & 2 deletions api/testdata/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Current contracts manually generated from commit `v0.14.0-beta1`
of https://github.com/CosmWasm/cosmwasm. Using
[these instructions](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/contracts/README.md#optimized-builds).
of https://github.com/line/cosmwasm. Using
[these instructions](https://github.com/line/cosmwasm/tree/v0.14.0-0.3.0/contracts/README.md#optimized-builds).
2 changes: 1 addition & 1 deletion api/testdata/download_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi
tag="$1"

for contract in hackatom queue reflect ibc_reflect ; do
url="https://github.com/CosmWasm/cosmwasm/releases/download/$tag/$contract.wasm"
url="https://github.com/line/cosmwasm/releases/download/$tag/$contract.wasm"
echo "Downloading $url ..."
wget -O "$contract.wasm" "$url"
done
42 changes: 1 addition & 41 deletions builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,4 @@ contains build scripts and a Docker image to create all dynamic libraries from o
host. In general this is set up for a Linux host, but any machine that can run Docker
can do the cross-compilation.

## Changelog

**Version 0005:**

- Update Rust to 1.50.0.

**Version 0004:**

- Update Rust to 1.49.0.
- Alpine: Update Go to 1.15

**Version 0003:**

- Avoid pre-fetching of dependences to decouple builders from source code.
- Bump `OSX_VERSION_MIN` to 10.10.
- Use `rust:1.47.0-buster` as base image for cross compilation to macOS

**Version 0002:**

- Update hardcoded library name from `libgo_cosmwasm` to `libwasmvm`.

**Version 0001:**

- First release of builders that is versioned separately of CosmWasm.
- Update Rust to nightly-2020-10-24.

## Usage

Create a local docker image, capable of cross-compling linux and macos dynamic libs:

```sh
(cd builders && make docker-images)
```

Then in the repo root, `make release-build` will use the above docker image and
copy the generated `{so,dylib}` files into `api` directory to be linked.

## Future Work

* Add support for cross-compiling to Windows as well.
* Publish docker images when they are stable
For more information visit [here](https://github.com/CosmWasm/wasmvm/tree/main/builders#readme).
6 changes: 3 additions & 3 deletions ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ func TestIBC(t *testing.T) {
}

// IBCInstantiateMsg is the Go version of
// https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/contracts/ibc-reflect/src/msg.rs#L9-L11
// https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/contracts/ibc-reflect/src/msg.rs#L9-L11
type IBCInstantiateMsg struct {
ReflectCodeID uint64 `json:"reflect_code_id"`
}

// IBCExecuteMsg is the Go version of
// https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/contracts/ibc-reflect/src/msg.rs#L15
// https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/contracts/ibc-reflect/src/msg.rs#L15
type IBCExecuteMsg struct {
InitCallback InitCallback `json:"init_callback"`
}

// InitCallback is the Go version of
// https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/contracts/ibc-reflect/src/msg.rs#L17-L22
// https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/contracts/ibc-reflect/src/msg.rs#L17-L22
type InitCallback struct {
ID string `json:"id"`
ContractAddr string `json:"contract_addr"`
Expand Down
4 changes: 2 additions & 2 deletions types/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ type IBCBasicResult struct {
}

// IBCBasicResponse defines the return value on a successful processing.
// This is the counterpart of [IbcBasicResponse](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/ibc.rs#L194-L216).
// This is the counterpart of [IbcBasicResponse](https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/packages/std/src/ibc.rs#L194-L216).
type IBCBasicResponse struct {
// Submessages are like Messages, but they guarantee a reply to the calling contract
// after their execution, and return both success and error rather than auto-failing on error
Expand Down Expand Up @@ -109,7 +109,7 @@ type IBCReceiveResult struct {
// Where the Acknowledgement bytes contain an encoded error message to be returned to
// the calling chain. (Returning IBCReceiveResult::Err will abort processing of this packet
// and not inform the calling chain).
// This is the counterpart of (IbcReceiveResponse)(https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/ibc.rs#L231-L254).
// This is the counterpart of (IbcReceiveResponse)(https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/packages/std/src/ibc.rs#L231-L254).
type IBCReceiveResponse struct {
// binary encoded data to be returned to calling chain as the acknowledgement
Acknowledgement []byte `json:"acknowledgement"`
Expand Down
2 changes: 1 addition & 1 deletion types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type ContractResult struct {
}

// Response defines the return value on a successful instantiate/execute/migrate.
// This is the counterpart of [Response](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/results/response.rs#L73-L88)
// This is the counterpart of [Response](https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/packages/std/src/results/response.rs#L73-L88)
type Response struct {
// Submessages are like Messages, but they guarantee a reply to the calling contract
// after their execution, and return both success and error rather than auto-failing on error
Expand Down
4 changes: 2 additions & 2 deletions types/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type AllBalancesResponse struct {
}

// IBCQuery defines a query request from the contract into the chain.
// This is the counterpart of [IbcQuery](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/ibc.rs#L61-L83).
// This is the counterpart of [IbcQuery](https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/packages/std/src/ibc.rs#L61-L83).
type IBCQuery struct {
PortID *PortIDQuery `json:"port_id,omitempty"`
ListChannels *ListChannelsQuery `json:"list_channels,omitempty"`
Expand All @@ -130,7 +130,7 @@ type PortIDResponse struct {
// ListChannelsQuery is an IBCQuery that lists all channels that are bound to a given port.
// If `PortID` is unset, this list all channels bound to the contract's port.
// Returns a `ListChannelsResponse`.
// This is the counterpart of [IbcQuery::ListChannels](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/ibc.rs#L70-L73).
// This is the counterpart of [IbcQuery::ListChannels](https://github.com/line/cosmwasm/blob/v0.14.0-0.3.0/packages/std/src/ibc.rs#L70-L73).
type ListChannelsQuery struct {
// optional argument
PortID string `json:"port_id,omitempty"`
Expand Down

0 comments on commit 124bd4a

Please sign in to comment.