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

doc: brief doc on the type system #26

Merged
merged 4 commits into from
May 12, 2023
Merged

doc: brief doc on the type system #26

merged 4 commits into from
May 12, 2023

Conversation

prestwich
Copy link
Member

Adds a md doc to the abi crate describing the solidity type representation

@prestwich prestwich added the documentation Improvements or additions to documentation label May 10, 2023
@prestwich prestwich self-assigned this May 10, 2023
### Trait Layout

```
SolType
Copy link
Member Author

Choose a reason for hiding this comment

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

this is no longer true. SolError does not implement SolType

Copy link
Member Author

Choose a reason for hiding this comment

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

it should tho

Copy link
Member Author

Choose a reason for hiding this comment

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

nvm it should not

abi/type_system.md Outdated Show resolved Hide resolved
Comment on lines 109 to 116
- `SolType` - Provides type name and properties, and basic ABI coding
- `SolDataType` - Provides EIP-712 and `encodePacked`
- `SolError` - describes custom Error types with selector, and provides
specialized coding methods
- `SolCall` - describes function **arguments** with selector, and provides
specialized coding methods
- `SolEvent` - describes Event types with topic 0 and internal tuple, and
provides specialized coding methods
Copy link
Member

@DaniPopes DaniPopes May 10, 2023

Choose a reason for hiding this comment

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

Should we href types/traits to docs.rs?
https://docs.rs/ethers-abi-enc/latest/ethers_abi_enc/<item>.<Name>.html

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, when we've 100% finalized the traits

abi/type_system.md Outdated Show resolved Hide resolved
abi/type_system.md Outdated Show resolved Hide resolved
abi/type_system.md Outdated Show resolved Hide resolved
abi/type_system.md Outdated Show resolved Hide resolved
@DaniPopes DaniPopes merged commit 353652d into main May 12, 2023
@DaniPopes DaniPopes deleted the prestwich/sol-doc branch May 15, 2023 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants