Skip to content

Chore/2024 - #17

Open
vikiival wants to merge 34 commits into
mainfrom
chore/2024
Open

Chore/2024#17
vikiival wants to merge 34 commits into
mainfrom
chore/2024

Conversation

@vikiival

@vikiival vikiival commented Sep 5, 2024

Copy link
Copy Markdown
Owner

This commit adds a new file, `add.ts`, under the `src/mappings/registry` directory. The `add.ts` file contains a function `toMap` that creates a mapping for creating collections. It takes in parameters such as name, symbol, max, issuer, meta, and type, and returns a partial `CollectionEntity` object.

Additionally, this commit defines a constant `OPERATION` and a base URI for the contracts. It also exports a `ContractsMap` object that maps a contract address to a collection map, and a `contractList` array that contains the keys of the `ContractsMap` object.

Lastly, this commit adds a `forceCollectionCreate` function that takes in a collection name and returns a `CE` object if the collection exists in the `ContractsMap`. It also sets the `baseUri` property of the returned object based on the collection name.

This commit is related to the recent user commits and follows the established commit message conventions in the repository.
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