Skip to content

Commit

Permalink
Merge branch 'release/2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Feb 23, 2024
2 parents 7573aa0 + 08a032d commit 4094e65
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 31 deletions.
2 changes: 1 addition & 1 deletion cmd/demo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math"
"os"

wasmvm "github.com/CosmWasm/wasmvm"
wasmvm "github.com/CosmWasm/wasmvm/v2"
)

const (
Expand Down
9 changes: 1 addition & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/CosmWasm/wasmvm
module github.com/CosmWasm/wasmvm/v2

go 1.21

Expand All @@ -15,10 +15,3 @@ require (
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

retract (
// see https://github.com/CosmWasm/wasmvm/issues/459
v1.4.0
// originally published without the CWA-2023-004 fix
v1.2.5
)
4 changes: 2 additions & 2 deletions ibc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmvm/internal/api"
"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/internal/api"
"github.com/CosmWasm/wasmvm/v2/types"
)

const IBC_TEST_CONTRACT = "./testdata/ibc_reflect.wasm"
Expand Down
2 changes: 1 addition & 1 deletion internal/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

func TestValidateAddressFailure(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/api/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
"runtime/debug"
"unsafe"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

// Note: we have to include all exports in the same file (at least since they both import bindings.h),
Expand Down
2 changes: 1 addition & 1 deletion internal/api/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sync"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

// frame stores all Iterators for one contract call
Expand Down
4 changes: 2 additions & 2 deletions internal/api/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmvm/internal/api/testdb"
"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/internal/api/testdb"
"github.com/CosmWasm/wasmvm/v2/types"
)

type queueData struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/api/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"golang.org/x/sys/unix"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

// Value types
Expand Down
2 changes: 1 addition & 1 deletion internal/api/lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

const (
Expand Down
Binary file modified internal/api/libwasmvm.aarch64.so
Binary file not shown.
Binary file modified internal/api/libwasmvm.dylib
Binary file not shown.
Binary file modified internal/api/libwasmvm.x86_64.so
Binary file not shown.
2 changes: 1 addition & 1 deletion internal/api/mock_failure.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"fmt"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

/***** Mock types.GoAPI ****/
Expand Down
4 changes: 2 additions & 2 deletions internal/api/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmvm/internal/api/testdb"
"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/internal/api/testdb"
"github.com/CosmWasm/wasmvm/v2/types"
)

/** helper constructors **/
Expand Down
2 changes: 1 addition & 1 deletion internal/api/testdb/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package testdb
import (
"errors"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"encoding/json"
"fmt"

"github.com/CosmWasm/wasmvm/internal/api"
"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/internal/api"
"github.com/CosmWasm/wasmvm/v2/types"
)

// VM is the main entry point to this library.
Expand Down
2 changes: 1 addition & 1 deletion lib_no_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"crypto/sha256"
"fmt"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
)

// Checksum represents a hash of the Wasm bytecode that serves as an ID. Must be generated from this library.
Expand Down
2 changes: 1 addition & 1 deletion lib_no_cgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cosmwasm
import (
"testing"

"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/types"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions lib_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmvm/internal/api"
"github.com/CosmWasm/wasmvm/types"
"github.com/CosmWasm/wasmvm/v2/internal/api"
"github.com/CosmWasm/wasmvm/v2/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion libwasmvm/Cargo.lock

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

2 changes: 1 addition & 1 deletion libwasmvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmvm"
version = "2.0.0-rc.0"
version = "2.0.0-rc.2"
publish = false
authors = ["Ethan Frey <[email protected]>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion version_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package cosmwasm

import (
"github.com/CosmWasm/wasmvm/internal/api"
"github.com/CosmWasm/wasmvm/v2/internal/api"
)

func libwasmvmVersionImpl() (string, error) {
Expand Down

0 comments on commit 4094e65

Please sign in to comment.