8000 Integrations documentation improvements by JohnGuilding · Pull Request #497 · getwax/bls-wallet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Integrations documentation improvements #497

Merged
merged 13 commits into from
Feb 4, 2023

Conversation

JohnGuilding
Copy link
Collaborator
@JohnGuilding JohnGuilding commented Feb 1, 2023

What is this PR doing?

Adding improvements to docs based on conversations with developers integrating bls-wallet in web3well.

Edit: Added #500 to this change as a quick win.

How can these changes be manually tested?

  • Visit each modified readme and inspect with cmd+shift+v

Does this PR resolve or contribute to any issues?

#437
#500

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@github-actions github-actions bot added aggregator Aggregator backend related aggregator-proxy Aggregator proxy related clients contracts Smart contract related documentation Improvements or additions to documentation extension Browser extension related labels Feb 1, 2023
@JohnGuilding JohnGuilding linked an issue Feb 1, 2023 that may be closed by this pull request
15 tasks
@JohnGuilding JohnGuilding marked this pull request as ready for review February 1, 2023 19:14
README.md Outdated

You can watch a full end-to-end demo of the project [here](https://www.youtube.com/watch?v=MOQ3sCLP56g)
A set of components to easily utilize Ethereum Layer 2 smart contract wallets that use [BLS signatures](https://en.wikipedia.org/wiki/BLS_digital_signature) to aggregate transactions, in order to reduce gas costs. Our smart contract wallet supports recovery, atomic multi-action transactions, sponsored transactions and user-controlled upgradeability.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Edited the intro here to give readers better context on what BLS Wallet is. Let me know if any disagreement/adjustments need making

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion: reverse the components you mention, namely putting 'reduce gas costs' first since that is the "why". The "How" is via bls sig aggregation on evm rollups.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some options with gas mentioned earlier in the sentence:

"A set of components to easily utilize Ethereum Layer 2 smart contract wallets, that reduce use gas costs by using BLS signatures to aggregate transactions."

"A set of components to easily utilize smart contract wallets that reduce gas costs on Ethereum Layers 2s, by using BLS signatures to aggregate transactions."

Copy link
Collaborator

Choose a reason for hiding this comment

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

eg. "A set of components to bring lower gas costs to evm rollups via ..."

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thoughts on where to put the part about/how to mention SCWs? Few options in full:

  1. A set of components to bring lower gas costs to EVM rollups via BLS signatures to aggregate transactions. Our smart contract wallet supports recovery, atomic multi-action transactions, sponsored transactions and user-controlled upgradeability.

  2. A set of components to reduce gas costs on EVM Optimistic rollups by using BLS signatures to aggregate transactions. Our smart contract wallet supports recovery, atomic multi-action transactions, sponsored transactions and user-controlled upgradeability.

  3. A set of components to reduce gas costs on EVM Optimistic rollups by using BLS signatures to aggregate transactions. This includes a smart contract wallet that supports recovery, atomic multi-action transactions, sponsored transactions and user-controlled upgradeability.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Tweaked one of yours: "A set of components to bring lower gas costs to EVM rollups via aggregated BLS signatures. Our smart contract wallet supports recovery, atomic multi-action operations, sponsored transactions and user-controlled upgradability."

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated cheers, thanks for catching the "upgradability" typo as well.

});
```

## Estimating and paying fees
Copy link
Collaborator Author
@JohnGuilding JohnGuilding 10000 Feb 1, 2023

Choose a reason for hiding this comment

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

@jacque006 This fees section includes the code examples you gave from the hackmd doc you shared. Let me know if this covers things well. I changed the examples slightly but let me know if you think they need additional changes.

Also more generally, if you feel like I've missed anything from your hackmd doc, feel free to add yourself or let me know and I'll make the changes.

Copy link
Collaborator
@jacque006 jacque006 left a comment

Choose a reason for hiding this comment

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

Couple small things that need changing, but overall a very good docs update. Nice work 👍

Might be good to get @jzaki 's input on some of the higher level language as well.

const bundle = wallet.sign({
nonce: await wallet.Nonce(),
actions: [
bundle, // ... do your transaction/actions here (approve, transfer, etc.)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a bit confusing, maybe instead:

Suggested change
bundle, // ... do your transaction/actions here (approve, transfer, etc.)
...actions, // ... do your actions here (approve, transfer, etc.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point, fixed

@JohnGuilding JohnGuilding force-pushed the integrations-documentation-improvements branch from d504b4c to c7b245f Compare February 3, 2023 14:54
@JohnGuilding
Copy link
Collaborator Author

@jacque006 everything should be updated. Also felt like a quick win so added #500 to these changes

@jacque006 jacque006 merged commit 8ef89fa into main Feb 4, 2023
@jacque006 jacque006 deleted the integrations-documentation-improvements branch February 4, 2023 02:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
aggregator Aggregator backend related aggregator-proxy Aggregator proxy related clients contracts Smart contract related documentation Improvements or additions to documentation extension Browser extension related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation improvements
3 participants
0