Skip to content

Conversation

@delaaxe
Copy link
Contributor

@delaaxe delaaxe commented Nov 21, 2022

Adds CAIPs for StarkNet.

@bumblefudge
Copy link
Collaborator

bumblefudge commented Dec 2, 2022

Hey @delaaxe :

I think it would help to add a starknet/readme.md file that does a little ELI5 on all of the bare-minimum Cairo-specific assumptions which would be footguns for, say, a completely uninitiated Solidity or Solana dev. In many namespaces, I simply write that readme.md myself on the back of a few hours of reading around in Improvement Proposals and VM core docs, but I have to confess I could not exactly define what a felt is in "just tell me the bare minimum I need to know" terms, even after reading all the following carefully and repeatedly:

Think of it this way-- dapp and wallet devs need to be able to implement a namespace without necessarily learning Cairo well enough to read, much less write, a real-world Cairo contract. They need the assumptions and risks of addressing a contract, asset, or entity on starknet spelled out for them, which is what the ideal namespace does.

@bumblefudge
Copy link
Collaborator

More generally, you might think of CAIP10s and CAIP19s as "export formats" for addresses and assets in the system-- if there is a standardized and deterministic way to represent modulo-P/felt addresses and assets in modulo-2^256/"EVM-mode", that might be preferable to a lossful or arbitrary transformation of canonic representations

Co-authored-by: Bumblefudge <jcaballero@centre.io>
delaaxe and others added 2 commits December 4, 2022 16:25
Co-authored-by: iliav-starkware <104758112+iliav-starkware@users.noreply.github.com>
@delaaxe
Copy link
Contributor Author

delaaxe commented Dec 5, 2022

@bumblefudge I added a readme

@bumblefudge bumblefudge merged commit 13139de into ChainAgnostic:main Jan 17, 2023
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.

4 participants