-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: merge upstream 1.0.0 #65
Conversation
Update to CosmWasm 1.0.0-soon
Upgrade to CosmWasm to 1.0.0-soon2
Upgrade cosmwasm to 1.0.0-beta
Final touches for 1.0.0
Deployer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Could you modify commit titles only "fix"? (it. is ok to use force push) |
Oops...I had forgotten to put together my commits, thx. |
api/callbacks.go
Outdated
// TODO figure out how to pass the text in its `Descriptor` field through all the FFI | ||
// TODO handle these cases on the Rust side in the first place | ||
// These three types are "thrown" (which is not a thing in Go 🙃) in panics from the gas module | ||
// (https://github.com/cosmos/cosmos-sdk/blob/v0.45.4/store/types/gas.go): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace link to ours (if needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
api/callbacks.go
Outdated
// - https://github.com/cosmos/cosmos-sdk/blob/v0.45.4/baseapp/baseapp.go#L607 | ||
// - https://github.com/cosmos/cosmos-sdk/blob/v0.45.4/baseapp/recovery.go#L50-L60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
api/callbacks.go
Outdated
// This turns the panic into a regular error with a helpful error message. | ||
// | ||
// The other two gas related panic types indicate programming errors and are handled along | ||
// with all other errors in https://github.com/cosmos/cosmos-sdk/blob/v0.45.4/baseapp/recovery.go#L66-L77. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
api/callbacks.go
Outdated
@@ -207,16 +226,16 @@ func cGet(ptr *C.db_t, gasMeter *C.gas_meter_t, usedGas *cu64, key C.U8SliceView | |||
// https://github.com/line/lfb-sdk/blob/786df84b8e0aaa0a1aff79ffbab0541e597ee004/store/types/store.go#L203 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"lfb-sdk" left here (Maybe not about this PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thx!
api/iterator_test.go
Outdated
@@ -10,6 +10,7 @@ import ( | |||
"github.com/stretchr/testify/require" | |||
|
|||
"github.com/line/wasmvm/types" | |||
dbm "github.com/tendermint/tm-db" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? We removed the dependency to dbm with #15. Can it remove the dependency in this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't need it, let's remove it from go.mod
.
|
||
.PHONY: docker-image-alpine | ||
docker-image-alpine: | ||
docker build . -t $(BUILDERS_PREFIX):alpine -f ./Dockerfile.alpine | ||
docker build --pull . -t $(BUILDERS_PREFIX):alpine -f ./Dockerfile.alpine | ||
|
||
.PHONY: docker-image-static | ||
docker-image-static: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it needed update this line and Dockefile.static itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
types/queries.go
Outdated
// StargateQuery is encoded the same way as abci_query, with path and protobuf encoded request data. | ||
// The format is defined in [ADR-21](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-021-protobuf-query-encoding.md). | ||
// The response is protobuf encoded data directly without a JSON response wrapper. | ||
// The caller is responsible for compiling the proper protobuf definitions for both requests and responses. | ||
type StargateQuery struct { | ||
// this is the fully qualified service path used for routing, | ||
// eg. custom/lfb_sdk.x.bank.v1.Query/QueryBalance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lfb -> lbm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, thx!
api/iterator_test.go
Outdated
@@ -10,6 +10,7 @@ import ( | |||
"github.com/stretchr/testify/require" | |||
|
|||
"github.com/line/wasmvm/types" | |||
dbm "github.com/tendermint/tm-db" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't need it, let's remove it from go.mod
.
@@ -9,7 +9,7 @@ jobs: | |||
- name: Install Rust | |||
uses: actions-rs/toolchain@v1 | |||
with: | |||
toolchain: 1.54.0 | |||
toolchain: 1.59.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it no problem?
I heard the appropriate rustc version is 1.57.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx! I changed to 1.57.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, the toolchain version of Dockerfiles is 1.60.0. If there are no reasons we cannot unify, we should do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust toolchain versions of Dockerfiles' are 1.60.0 and github workflows' are 1.57.0. If there are no reason we cannot unify, we should do.
Description
Closes #64
Types of changes
Checklist