-
Notifications
You must be signed in to change notification settings - Fork 66
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
100 massa web3 page #105
100 massa web3 page #105
Conversation
Can you fix the CI @julienbrs ? |
@gregLibert here is the first draft of the dev-doc for massa-web3. For now, I have implemented the "How to get started" section (in I also wasn't sure if I should include a reference to the GitHub code line for each operation (like this: |
done! |
I think the general structure is ok. If we go in that direction then we should make sure that the documentation is always synced with what is being done in the massa-web3 repo. I have some remarks regarding english but this can be addressed once we have a first version. Side note: we could use this plugin to generate the TS doc of our libraries. |
The utility section seems like a good idea indeed. |
You mean for the CI or as an example for users ? Not sure I understand exactly what you propose. |
We could put all the code examples that are in the docu-dev in an integration tests that would run in the CI. If the CI breaks we would know that we'll have to update the docu-dev. That kind of CI could for example run once per day. |
That would be quite nice indeed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are almost there.
Don't be afraid of all the comment. It's quite a nice work overall !
|
||
### Read operations | ||
|
||
Smart contract data can be read via the `readSmartContract` method. It executes a dry run Smart contract call and returns some data regarding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's probably a confusion with the executeReadOnly
method ?
|
||
Defined in [src/web3/SmartContractsClient.ts:169](https://github.com/massalabs/massa-web3/blob/41f5634/src/web3/SmartContractsClient.ts#L169) | ||
|
||
### Read a contract with an other contract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See remark for ExecuteReadOnly
|
||
### getProtofiles | ||
|
||
Get the proto file of the contracts from the Massa Blockchain. It takes an array of contract addresses as parameter and returns the array of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is something very specific to Massa. We need to give more context! Maybe somewhere else and cross reference.
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
If no executor is provided, the default wallet account from the provided WalletClient will be used. | ||
|
||
```typescript | ||
const opId: string = await web3Client.smartContracts().deploySmartContract( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a maxCoins
parameter as well now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may apply elsewhere as well!
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
Co-authored-by: Adrien LF <alf@massa.net>
…cu-dev into 100-massa-web3-page
I'm closing this PR to open a new one with the new direction decided for the massa-web3 docudev. |
No description provided.