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

feat!: add cosmwasmAPIGenerator to keeper #41

Merged
merged 18 commits into from
May 8, 2023

Conversation

da1suk8
Copy link
Member

@da1suk8 da1suk8 commented Apr 28, 2023

Description

closes: #38

In #36, x/wasm keeper was implemented as a dependency on x/wasmplus.
This meant that x/wasm could not run alone.

We added cosmwasmAPIGenerator to keeper in order to add dynamiclink functionality as a default function of x/wasm.
This allows the methods of cosmwasmAPIGenerator to determine which API to use.

In other words, it is now possible to change the behavior of the APIs within x/wasm and x/wasmplus.

cosmwasmAPIImpl and cosmwasmAPIGeneratorImpl coexist and the logic is difficult to understand, so I will address this in issue #42

Motivation and context

Because x/wasm was an implementation that depended on x/wasmplus,
we wanted to eliminate the dependency and change the contents of the API for x/wasm and x/wasmplus, respectively.

How has this been tested?

make build
make test

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@da1suk8 da1suk8 self-assigned this Apr 28, 2023
@da1suk8 da1suk8 marked this pull request as ready for review April 28, 2023 02:38
@da1suk8 da1suk8 requested a review from zemyblue April 28, 2023 02:38
loloicci
loloicci previously approved these changes Apr 28, 2023
Kynea0b
Kynea0b previously approved these changes May 1, 2023
dudong2
dudong2 previously approved these changes May 2, 2023
x/wasm/keeper/api.go Show resolved Hide resolved
x/wasm/keeper/api.go Outdated Show resolved Hide resolved
x/wasm/keeper/exported_events.go Outdated Show resolved Hide resolved
x/wasm/keeper/events.go Show resolved Hide resolved
da1suk8 added 3 commits May 8, 2023 11:35
remove unnecessary variables
NewWasmStore is needed as the default function of dynamic link,
so it was moved to the wasm directory and changed so that it does not depend on wasmplus.
add description
@da1suk8 da1suk8 dismissed stale reviews from Kynea0b and loloicci via 3854ccb May 8, 2023 03:13
@da1suk8 da1suk8 merged commit 74de5b2 into Finschia:dynamic_link May 8, 2023
@da1suk8 da1suk8 deleted the feat/add_cosmwasmGoAPI branch May 8, 2023 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants