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

examples: native objects in state #17

Draft
wants to merge 1 commit into
base: feat/native_types
Choose a base branch
from

Conversation

joe-p
Copy link
Contributor

@joe-p joe-p commented Mar 10, 2025

This PR contains the changes to the marketplace contract that we would ideally want to see possible for TEALScript migration ease and familiarity with TypeScript devs. The main blocker for this is not supporting serialization of objects for usage in state (either as key or value). We currently get errors like the following:

contracts/marketplace.algo.ts:300:5 error: Not Supported: Serializing object to bytes
                                            this.listings(key).value = {
                                            ^~~~~~~~~~~~~~~~~~
contracts/marketplace.algo.ts:32:3 error: lib.d.ts::object is not a valid type for storage
                                           listings = BoxMap<ListingKey, ListingValue>({ keyPrefix: "listings" });

Blocked by algorandfoundation/puya-ts#129

This contract currently does not compile due to lack of object support
in storage
@joe-p joe-p marked this pull request as draft March 10, 2025 18:18
@joe-p joe-p changed the title examples: native objects examples: native objects in state Mar 10, 2025
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.

1 participant