Skip to content

Feat/initial token#1

Open
zcstarr wants to merge 106 commits intomainfrom
feat/initial-token
Open

Feat/initial token#1
zcstarr wants to merge 106 commits intomainfrom
feat/initial-token

Conversation

@zcstarr
Copy link
Copy Markdown
Contributor

@zcstarr zcstarr commented Jun 21, 2021

This is the working multi-token erc-1155 equivalent experimental branch to create a new MultiToken standard for Near

zcstarr added 30 commits June 21, 2021 09:54
this change will allow approval_ids to have 1-1 correspondence
with token_ids keeping the relationship valid for non grouped changes
out a few implementations for multi_transfer and call, leaving out
bulk calls. Additionally following commits will support handling
amount for fungible tokens.
intent.

in this wip I've split storage of nft and ft into separate entity
to make the usage more clear. There is a possibility to unify
this with a single data structure, but that makes allocation and
storage costs calculation a little messier.
token_ids need to be uniq per class type i.e.
nft vs ft token ids should not be shared.

adding token id here provides the ability to
restrict duplicate ids. This in turn simplifies
the front facing interface to focus on token
identifiers only without having to specify type
simplifying batch transfers
zcstarr added 26 commits July 28, 2021 09:55
save the supply storage usage to be factored into minting costs
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