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(cosmwasm): cosmwasm contracts #1436

Merged
merged 57 commits into from
Sep 28, 2022
Merged

feat(cosmwasm): cosmwasm contracts #1436

merged 57 commits into from
Sep 28, 2022

Conversation

aeryz
Copy link
Contributor

@aeryz aeryz commented Aug 10, 2022

  • Add interpreter contract which is the actual xcvm interpreter
    instance.

  • Add asset registry which stores the mapping of cw20 token instances.
    Interpreters will query this contract to get the token instance, then
    call that cw20 token instance by themselves(not through the asset
    registry).

  • Add cosmwasm-contracts profile which contains the necessary options
    for cosmwasm production builds. Cosmwasm contracts should be built by
    using this profile.

  • Patch serde_json_wasm. Original serde_json_wasm does not support
    (de)serialization of BTreeMap. This produces Unreachable
    instruction which makes the contract crash. However our version does
    support this.

EDIT

  • We decided on accepting CosmosMsg instead of WasmMsg::Execute in the Call instruction. This way, we don't restrict users to just be able to execute contracts but do anything that cosmwasm supports. So this will be added to this PR as well.
  • Support CosmosMsg in Call instruction

Signed-off-by: aeryz [email protected]

Issue

https://app.clickup.com/t/2mezh62

Description

See commit message.

Checklist

  • I have updated the cargo docs to reflect changes made by this PR (if applicable)
  • I have updated the book/ to reflect changes made by this PR (if applicable)

@aeryz aeryz requested a review from a team as a code owner August 10, 2022 09:00
@aeryz aeryz requested a review from a team August 10, 2022 09:00
@vercel
Copy link

vercel bot commented Aug 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
pablo-staging ✅ Ready (Inspect) Visit Preview Aug 13, 2022 at 7:23PM (UTC)
pablo-storybook ✅ Ready (Inspect) Visit Preview Aug 13, 2022 at 7:23PM (UTC)
picasso-staging ✅ Ready (Inspect) Visit Preview Aug 13, 2022 at 7:23PM (UTC)
picasso-storybook ✅ Ready (Inspect) Visit Preview Aug 13, 2022 at 7:23PM (UTC)

@aeryz aeryz force-pushed the aeryz/cosmwasm-contracts branch from 7614ee6 to 84e17a2 Compare August 10, 2022 09:01
@vercel vercel bot temporarily deployed to Preview – picasso-storybook August 10, 2022 09:31 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-storybook August 10, 2022 09:39 Inactive
@vercel vercel bot temporarily deployed to Preview – picasso-staging August 10, 2022 09:43 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-staging August 10, 2022 09:43 Inactive
@vercel vercel bot temporarily deployed to Preview – picasso-storybook August 10, 2022 14:33 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-storybook August 10, 2022 14:33 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-staging August 10, 2022 14:33 Inactive
@vercel vercel bot temporarily deployed to Preview – picasso-staging August 10, 2022 14:37 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-storybook August 11, 2022 08:04 Inactive
@vercel vercel bot temporarily deployed to Preview – picasso-storybook August 11, 2022 08:07 Inactive
@vercel vercel bot temporarily deployed to Preview – picasso-staging August 11, 2022 08:07 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-staging August 11, 2022 08:11 Inactive
@vercel vercel bot temporarily deployed to Preview – picasso-storybook August 13, 2022 19:18 Inactive
@vercel vercel bot temporarily deployed to Preview – pablo-storybook August 13, 2022 19:22 Inactive
@aeryz aeryz force-pushed the aeryz/cosmwasm-contracts branch from c3a5a5d to 3fa6a1a Compare September 26, 2022 16:26
Copy link
Contributor

@hussein-aitlahcen hussein-aitlahcen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

scripts/style.sh Outdated Show resolved Hide resolved
@aeryz aeryz force-pushed the aeryz/cosmwasm-contracts branch from 3fa6a1a to d76c690 Compare September 28, 2022 01:35
@aeryz aeryz force-pushed the aeryz/cosmwasm-contracts branch from d76c690 to 97a5fc3 Compare September 28, 2022 13:29
mergify bot added a commit that referenced this pull request Sep 28, 2022
@mergify mergify bot merged commit cf58099 into main Sep 28, 2022
@mergify mergify bot deleted the aeryz/cosmwasm-contracts branch September 28, 2022 19:34
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.

7 participants