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/rmrk2.0 #43

Merged
merged 107 commits into from
Jan 17, 2023
Merged

feat/rmrk2.0 #43

merged 107 commits into from
Jan 17, 2023

Conversation

KngZhi
Copy link
Contributor

@KngZhi KngZhi commented Aug 18, 2022

this PR is related with #42

current progress

  • Implement interactions only v2 has.
  • Check Existing Interactions
  • backward compatible with version1.0's interaction
  • Ability to create this v2 interactions
    • create Interaction Event
    • createCollection, createNFT
    • create Base
  • tsdoc for provide example.

@KngZhi
Copy link
Contributor Author

KngZhi commented Aug 21, 2022

@vikiival mind make a review for submitted code, to make sure things going on the right path and code style :)

Also made very specific type for every interaction, since v2 standard has more than value field, and wants to import on Rubick later

@vikiival vikiival self-requested a review August 21, 2022 14:28
@vikiival
Copy link
Member

Mark as unread, will check tomorrow!

@KngZhi
Copy link
Contributor Author

KngZhi commented Aug 21, 2022

Mark as unread, will check tomorrow!

😉

@KngZhi
Copy link
Contributor Author

KngZhi commented Aug 23, 2022

hey, @vikiival mind making a review?

@vikiival
Copy link
Member

hey, @vikiival mind making a review?

Yup on it :)

Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

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

Nice draft!

Please move all the logic and types to folder src/rmrk/v2

@@ -9,7 +9,8 @@ export const isRemark = (text: string): boolean => {
export const splitBySquare = (text: string): string[] => text.split(SQUARE)

export const isValidInteraction = (interaction: string, throwable = true): boolean => {
const value = (Object.values(Interaction) as string[]).includes(interaction)
const availableInteractions: string[] = [...Object.values(Interaction), ...Object.values(InteractionV2)]
Copy link
Member

Choose a reason for hiding this comment

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

Merge the object into constants

minimark/src/rmrk/types.ts Outdated Show resolved Hide resolved
minimark/src/rmrk/types.ts Outdated Show resolved Hide resolved
minimark/src/rmrk/types.ts Outdated Show resolved Hide resolved
@vikiival
Copy link
Member

  • Not sure if tests are correct 👀

@antoine-dowgo
Copy link

@vikiival @KngZhi What is the status of this PR pls? I want to see my NFTs on Kodadot ^^

@vikiival
Copy link
Member

vikiival commented Nov 9, 2022

Heylo,

I am integrating that into kodadot/rubick but I would be super haply if you can help us to make code review or so

@joelamouche
Copy link

@vikiival Okay please give me some instructions on how to run this locally and I will test it

@vikiival
Copy link
Member

vikiival commented Dec 8, 2022

@vikiival Okay please give me some instructions on how to run this locally and I will test it

  1. Clone this repo
  2. gh pr checkout 43
  3. cd minimark
  4. pnpm i
  5. pnpm build

I can publish suite to that would behave as express server. So we can test if it creates correct data.

  • @joelamouche is it possible to get somehow remarks that were stored on-chain for substraknights? It would help us with unit tests since you know the best what should be the correct output

@joelamouche
Copy link

gh pr checkout 43

this command doesnt work for me so I guess I will clone KngZhi's repo I think

I can publish suite to that would behave as express server. So we can test if it creates correct data.

Yes please publish all the ressources to test this and explain as if I was a 5yo

is it possible to get somehow remarks that were stored on-chain for substraknights

yes I will try to get this. Can you point me to the unit tests pls?

@vikiival vikiival linked an issue Dec 16, 2022 that may be closed by this pull request
@vikiival vikiival mentioned this pull request Dec 16, 2022
9 tasks
@vikiival vikiival linked an issue Dec 16, 2022 that may be closed by this pull request
9 tasks
@vikiival vikiival changed the base branch from main to remarkable-charon January 17, 2023 17:01
@vikiival
Copy link
Member

rest of the work will continue in branch remarkable-charon

@vikiival vikiival merged commit 59edda7 into kodadot:remarkable-charon Jan 17, 2023
@vikiival
Copy link
Member

#91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

ReMarkable NFTs V2 Export Minimark as subpackages
5 participants