-
Notifications
You must be signed in to change notification settings - Fork 20
feat: sequence diagrams #200
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
Conversation
andreivladbrg
left a comment
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.
Nice work, I really like these sequence diagrams.
What if we move the Flow Actors with Actions diagrams to Access Control (similar to lockup)?
Also, what if we divide the sequence into one diagram per function? (current version quite long)
adjustRatePerSecond is missing. Additionally, in some places, you pass the stream ID in the function as param, while in others, you don't. I suggest removing the instances where it is passed and simplifying it to foo().
Regarding your comment: #186 (comment)
I still think we can add that diagram, but in the concepts/flow/statuses file, at the end, after the Q&A. the section can be called function calls based on the status
But we can remove the state updates. Wdyt?
|
just saw now, instead of |
e135be1 to
59fd4fc
Compare
|
Thank you for the review @andreivladbrg.
Agree I also realized that I could use sequence diagrams in Lockup access control as well. So, made that changes.
Yes agree. I will make it similar to how it is in Lockup.
Good catch, will add it.
Will make it consistent by removing it.
I will add it and then we can decide if it fits or not.
IMO diagrams are to explain product. My rationale was that there is no need to mimic the internal of the contracts. For example, people might be more comfortable with terms like uncovered debt and covered debt than snapshot debt or snapshot time. That is why I used those terminologies in the diagrams, also given that it will be moved to access control section. Please lmk if that makes sense. |
IMO it depends on where the diagrams are placed. If they are under the "Concepts" section (which should target non-developers as well), then yes, I agree they don’t need to mimic the internal contracts. However, since they are not, I believe we should focus on the developers and use the storage vars |
categorizes diagrams in Flow access control simplifies diagrams in Lockup access control defines ongoing debt in Flow overview fixes definition of snapshot debt in Flow overview adds abbreviations in Flow diagrams Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
Co-authored-by: Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
|
@andreivladbrg I have included all your suggestions and made some changes as well. Let me know how it looks now. |
andreivladbrg
left a comment
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 personally prefer the big diagram for the function status interactions instead of multiple smaller ones, but it’s fine this way as well.
so lgtm 👍
good job again! sequence diagrams are an improvement to the existing diagrams
|
Thanks for approving the PR. The reason I split that diagram into smaller chunks is because in your review, you suggested to split the I will merge the PR for now and we can refactor it later if we want so. |
chore: add robots.txt chore: png for open graph fix: envio endpoints refactor docs to accommodate upcoming Flow protocol delete contracts directory fix: broken links feat: create redirects from old site to new site feat: update header page autogen polish docs polish docs refactor: add overview in lockup concepts feat: add Flow overview use stream shapes, stream curves instead of stream types update .gitmodules spelling mistake docs: flow apps (#190) * style: change icon for technical references chore: remove medium and replace with blog.sablier in landing page build: gitmodules path fix * chore: update app screenshots for the vesting section refactor: reorganize the app menu refactor: make the vesting section lighter docs: document relation between flow, lockup and payments, vesting * feat: technical guides * feat: app payments section chore: update images in the apps sections fix: formatter script * refactor: re-organize the apis sections * feat: add flow placeholder for endpoints * fix: broken links refactor: sablier v2 to sablier lockup v1.x in api section fix: gas benchmark formatter docs: add notes for subgraph naming convention chore: update v1 subgraph endpoint feat: docs for Flow protocol (#189) * feat: autogen script for Flow refactor: rename autogen to autogen-lockup * fix hyperlink issue * flow status and nft * flow fees and governance * refactor: use package versioning when referring to lockups refactor: rename v1 to v1 legacy feat: add benchmark, deployments, errors, access control for flow * update diagrams placeholde * Flow custom deployments * feat: flow diagrams refactor: rename guides folders to examples * adds link to flow audits polishing references to legacy protocol * update flow references * rename previous versions to previous deployments fix broken links build: update bun lockfile refactor: reorder and restructure pages refactor: copyright changes refactor: rename categories Co-authored-by: Paul Razvan Berg <prberg@proton.me> Co-authored-by: Razvan Gabriel Apostu <razvan@sablier.com> refactor: use correct names for integration templates chore: img png to webp Co-authored-by: tukwan <7630720+tukwan@users.noreply.github.com> docs: adds note on versioning docs: update to webp images refactor: say token instead of asset small fixes feat: document flow subgraphs (#194) * refactor docs to accommodate upcoming Flow protocol * delete contracts directory * fix: broken links * feat: create redirects from old site to new site feat: update header page * autogen * polish docs * polish docs * refactor: add overview in lockup concepts * feat: add Flow overview * use stream shapes, stream curves instead of stream types * update .gitmodules * spelling mistake * docs: flow apps (#190) * style: change icon for technical references chore: remove medium and replace with blog.sablier in landing page build: gitmodules path fix * chore: update app screenshots for the vesting section refactor: reorganize the app menu refactor: make the vesting section lighter docs: document relation between flow, lockup and payments, vesting * feat: technical guides * feat: app payments section chore: update images in the apps sections fix: formatter script * refactor: re-organize the apis sections * feat: add flow placeholder for endpoints * fix: broken links * refactor: sablier v2 to sablier lockup v1.x in api section * fix: gas benchmark formatter * docs: add notes for subgraph naming convention * chore: update v1 subgraph endpoint * feat: docs for Flow protocol (#189) * feat: autogen script for Flow refactor: rename autogen to autogen-lockup * fix hyperlink issue * flow status and nft * flow fees and governance * refactor: use package versioning when referring to lockups refactor: rename v1 to v1 legacy feat: add benchmark, deployments, errors, access control for flow * update diagrams placeholde * Flow custom deployments * feat: flow diagrams refactor: rename guides folders to examples * adds link to flow audits polishing references to legacy protocol * update flow references * rename previous versions to previous deployments * fix broken links * build: update bun lockfile * refactor: reorder and restructure pages refactor: copyright changes refactor: rename categories * feat: add flow the graph api section * chore: add docs for flow envio * fix(api): envio queries fix(api): incorrect mentions of lockup inside flow * fix(static): remove pngs resulted from merge --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> Co-authored-by: Razvan Gabriel Apostu <razvan.gabriel.apostu@gmail.com> Co-authored-by: Paul Razvan Berg <prberg@proton.me> polish protocol mentions and remove old links Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> update Flow with latest commit refactor: rename asset to token refactor: release history Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> fix links use links from feat/flow branch of examples repo replaces jan with apr in lockup example docs: adds guide to pull vesting information (#202) * docs: adds guide to pull vesting information * refactor: polish vesting data guide * refactor: polish some more --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me> feat: sequence diagrams (#200) * feat: use sequence diagrams * add flow diagram about actors and their actions * adds sequence diagram in lockup access control * refactor: replace statuses with rps values * removes streamId from sequence diagrams categorizes diagrams in Flow access control simplifies diagrams in Lockup access control defines ongoing debt in Flow overview fixes definition of snapshot debt in Flow overview adds abbreviations in Flow diagrams Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> * adds function status interaction diagram Co-authored-by: Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> --------- Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> feat: envio endpoints fix link feat: add flow deployments addresses (#201) fix: flow and drops (#204) * refactor: drops to airdrops * fix: broke links in apps and api * chore: mention geofencing in a separate section * misisng common bracket * use heading 3 for geo fencing title --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> moves legacy v1 dir to the same level as lockup refactors content for legacy v1 fixes redirects Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> collapse examples category feat: add hook checklist rename v2-deployments to deployments chore: update flow subgraph endpoints chore: set branch to release in flow submodule feat(support): payment stream videos refactor: headings in local environment guide polish headings in local environment guides fix: logo in light mode docs: mention security researchers fix: fix CSS filter refactor: static img for GitHub icon chore: update csv columns refactor: update deployments and example hyperlink refactor: say "blob" instead of "tree" refactor: polish writing fix: fix periphery package fix: fix incorrect references refactor: alphabetical ordering refactor: improve writing refactor: reorder sections refactor: Sablier V1 to Sablier Legacy refactor: version Lockup and Flow fix redirects
chore: add robots.txt chore: png for open graph fix: envio endpoints refactor docs to accommodate upcoming Flow protocol delete contracts directory fix: broken links feat: create redirects from old site to new site feat: update header page autogen polish docs polish docs refactor: add overview in lockup concepts feat: add Flow overview use stream shapes, stream curves instead of stream types update .gitmodules spelling mistake docs: flow apps (#190) * style: change icon for technical references chore: remove medium and replace with blog.sablier in landing page build: gitmodules path fix * chore: update app screenshots for the vesting section refactor: reorganize the app menu refactor: make the vesting section lighter docs: document relation between flow, lockup and payments, vesting * feat: technical guides * feat: app payments section chore: update images in the apps sections fix: formatter script * refactor: re-organize the apis sections * feat: add flow placeholder for endpoints * fix: broken links refactor: sablier v2 to sablier lockup v1.x in api section fix: gas benchmark formatter docs: add notes for subgraph naming convention chore: update v1 subgraph endpoint feat: docs for Flow protocol (#189) * feat: autogen script for Flow refactor: rename autogen to autogen-lockup * fix hyperlink issue * flow status and nft * flow fees and governance * refactor: use package versioning when referring to lockups refactor: rename v1 to v1 legacy feat: add benchmark, deployments, errors, access control for flow * update diagrams placeholde * Flow custom deployments * feat: flow diagrams refactor: rename guides folders to examples * adds link to flow audits polishing references to legacy protocol * update flow references * rename previous versions to previous deployments fix broken links build: update bun lockfile refactor: reorder and restructure pages refactor: copyright changes refactor: rename categories Co-authored-by: Paul Razvan Berg <prberg@proton.me> Co-authored-by: Razvan Gabriel Apostu <razvan@sablier.com> refactor: use correct names for integration templates chore: img png to webp Co-authored-by: tukwan <7630720+tukwan@users.noreply.github.com> docs: adds note on versioning docs: update to webp images refactor: say token instead of asset small fixes feat: document flow subgraphs (#194) * refactor docs to accommodate upcoming Flow protocol * delete contracts directory * fix: broken links * feat: create redirects from old site to new site feat: update header page * autogen * polish docs * polish docs * refactor: add overview in lockup concepts * feat: add Flow overview * use stream shapes, stream curves instead of stream types * update .gitmodules * spelling mistake * docs: flow apps (#190) * style: change icon for technical references chore: remove medium and replace with blog.sablier in landing page build: gitmodules path fix * chore: update app screenshots for the vesting section refactor: reorganize the app menu refactor: make the vesting section lighter docs: document relation between flow, lockup and payments, vesting * feat: technical guides * feat: app payments section chore: update images in the apps sections fix: formatter script * refactor: re-organize the apis sections * feat: add flow placeholder for endpoints * fix: broken links * refactor: sablier v2 to sablier lockup v1.x in api section * fix: gas benchmark formatter * docs: add notes for subgraph naming convention * chore: update v1 subgraph endpoint * feat: docs for Flow protocol (#189) * feat: autogen script for Flow refactor: rename autogen to autogen-lockup * fix hyperlink issue * flow status and nft * flow fees and governance * refactor: use package versioning when referring to lockups refactor: rename v1 to v1 legacy feat: add benchmark, deployments, errors, access control for flow * update diagrams placeholde * Flow custom deployments * feat: flow diagrams refactor: rename guides folders to examples * adds link to flow audits polishing references to legacy protocol * update flow references * rename previous versions to previous deployments * fix broken links * build: update bun lockfile * refactor: reorder and restructure pages refactor: copyright changes refactor: rename categories * feat: add flow the graph api section * chore: add docs for flow envio * fix(api): envio queries fix(api): incorrect mentions of lockup inside flow * fix(static): remove pngs resulted from merge --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> Co-authored-by: Razvan Gabriel Apostu <razvan.gabriel.apostu@gmail.com> Co-authored-by: Paul Razvan Berg <prberg@proton.me> polish protocol mentions and remove old links Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> update Flow with latest commit refactor: rename asset to token refactor: release history Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> fix links use links from feat/flow branch of examples repo replaces jan with apr in lockup example docs: adds guide to pull vesting information (#202) * docs: adds guide to pull vesting information * refactor: polish vesting data guide * refactor: polish some more --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me> feat: sequence diagrams (#200) * feat: use sequence diagrams * add flow diagram about actors and their actions * adds sequence diagram in lockup access control * refactor: replace statuses with rps values * removes streamId from sequence diagrams categorizes diagrams in Flow access control simplifies diagrams in Lockup access control defines ongoing debt in Flow overview fixes definition of snapshot debt in Flow overview adds abbreviations in Flow diagrams Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> * adds function status interaction diagram Co-authored-by: Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> --------- Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> feat: envio endpoints fix link feat: add flow deployments addresses (#201) fix: flow and drops (#204) * refactor: drops to airdrops * fix: broke links in apps and api * chore: mention geofencing in a separate section * misisng common bracket * use heading 3 for geo fencing title --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> moves legacy v1 dir to the same level as lockup refactors content for legacy v1 fixes redirects Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> collapse examples category feat: add hook checklist rename v2-deployments to deployments chore: update flow subgraph endpoints chore: set branch to release in flow submodule feat(support): payment stream videos refactor: headings in local environment guide polish headings in local environment guides fix: logo in light mode docs: mention security researchers fix: fix CSS filter refactor: static img for GitHub icon chore: update csv columns refactor: update deployments and example hyperlink refactor: say "blob" instead of "tree" refactor: polish writing fix: fix periphery package fix: fix incorrect references refactor: alphabetical ordering refactor: improve writing refactor: reorder sections refactor: Sablier V1 to Sablier Legacy refactor: version Lockup and Flow fix redirects Co-authored-by: smol-ninja <shubhamy2015@gmail.com> Co-authored-by: Razvan Gabriel Apostu <razvan.gabriel.apostu@gmail.com> Co-authored-by: Paul Razvan Berg <prberg@proton.me> Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> Co-authored-by: tukwan <7630720+tukwan@users.noreply.github.com> Co-authored-by: Mircea Gavriliu <gavriliumircea@yahoo.ro>
chore: add robots.txt chore: png for open graph fix: envio endpoints refactor docs to accommodate upcoming Flow protocol delete contracts directory fix: broken links feat: create redirects from old site to new site feat: update header page autogen polish docs polish docs refactor: add overview in lockup concepts feat: add Flow overview use stream shapes, stream curves instead of stream types update .gitmodules spelling mistake docs: flow apps (#190) * style: change icon for technical references chore: remove medium and replace with blog.sablier in landing page build: gitmodules path fix * chore: update app screenshots for the vesting section refactor: reorganize the app menu refactor: make the vesting section lighter docs: document relation between flow, lockup and payments, vesting * feat: technical guides * feat: app payments section chore: update images in the apps sections fix: formatter script * refactor: re-organize the apis sections * feat: add flow placeholder for endpoints * fix: broken links refactor: sablier v2 to sablier lockup v1.x in api section fix: gas benchmark formatter docs: add notes for subgraph naming convention chore: update v1 subgraph endpoint feat: docs for Flow protocol (#189) * feat: autogen script for Flow refactor: rename autogen to autogen-lockup * fix hyperlink issue * flow status and nft * flow fees and governance * refactor: use package versioning when referring to lockups refactor: rename v1 to v1 legacy feat: add benchmark, deployments, errors, access control for flow * update diagrams placeholde * Flow custom deployments * feat: flow diagrams refactor: rename guides folders to examples * adds link to flow audits polishing references to legacy protocol * update flow references * rename previous versions to previous deployments fix broken links build: update bun lockfile refactor: reorder and restructure pages refactor: copyright changes refactor: rename categories Co-authored-by: Paul Razvan Berg <prberg@proton.me> Co-authored-by: Razvan Gabriel Apostu <razvan@sablier.com> refactor: use correct names for integration templates chore: img png to webp Co-authored-by: tukwan <7630720+tukwan@users.noreply.github.com> docs: adds note on versioning docs: update to webp images refactor: say token instead of asset small fixes feat: document flow subgraphs (#194) * refactor docs to accommodate upcoming Flow protocol * delete contracts directory * fix: broken links * feat: create redirects from old site to new site feat: update header page * autogen * polish docs * polish docs * refactor: add overview in lockup concepts * feat: add Flow overview * use stream shapes, stream curves instead of stream types * update .gitmodules * spelling mistake * docs: flow apps (#190) * style: change icon for technical references chore: remove medium and replace with blog.sablier in landing page build: gitmodules path fix * chore: update app screenshots for the vesting section refactor: reorganize the app menu refactor: make the vesting section lighter docs: document relation between flow, lockup and payments, vesting * feat: technical guides * feat: app payments section chore: update images in the apps sections fix: formatter script * refactor: re-organize the apis sections * feat: add flow placeholder for endpoints * fix: broken links * refactor: sablier v2 to sablier lockup v1.x in api section * fix: gas benchmark formatter * docs: add notes for subgraph naming convention * chore: update v1 subgraph endpoint * feat: docs for Flow protocol (#189) * feat: autogen script for Flow refactor: rename autogen to autogen-lockup * fix hyperlink issue * flow status and nft * flow fees and governance * refactor: use package versioning when referring to lockups refactor: rename v1 to v1 legacy feat: add benchmark, deployments, errors, access control for flow * update diagrams placeholde * Flow custom deployments * feat: flow diagrams refactor: rename guides folders to examples * adds link to flow audits polishing references to legacy protocol * update flow references * rename previous versions to previous deployments * fix broken links * build: update bun lockfile * refactor: reorder and restructure pages refactor: copyright changes refactor: rename categories * feat: add flow the graph api section * chore: add docs for flow envio * fix(api): envio queries fix(api): incorrect mentions of lockup inside flow * fix(static): remove pngs resulted from merge --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> Co-authored-by: Razvan Gabriel Apostu <razvan.gabriel.apostu@gmail.com> Co-authored-by: Paul Razvan Berg <prberg@proton.me> polish protocol mentions and remove old links Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> update Flow with latest commit refactor: rename asset to token refactor: release history Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> fix links use links from feat/flow branch of examples repo replaces jan with apr in lockup example docs: adds guide to pull vesting information (#202) * docs: adds guide to pull vesting information * refactor: polish vesting data guide * refactor: polish some more --------- Co-authored-by: Paul Razvan Berg <prberg@proton.me> feat: sequence diagrams (#200) * feat: use sequence diagrams * add flow diagram about actors and their actions * adds sequence diagram in lockup access control * refactor: replace statuses with rps values * removes streamId from sequence diagrams categorizes diagrams in Flow access control simplifies diagrams in Lockup access control defines ongoing debt in Flow overview fixes definition of snapshot debt in Flow overview adds abbreviations in Flow diagrams Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> * adds function status interaction diagram Co-authored-by: Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> --------- Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> feat: envio endpoints fix link feat: add flow deployments addresses (#201) fix: flow and drops (#204) * refactor: drops to airdrops * fix: broke links in apps and api * chore: mention geofencing in a separate section * misisng common bracket * use heading 3 for geo fencing title --------- Co-authored-by: smol-ninja <shubhamy2015@gmail.com> moves legacy v1 dir to the same level as lockup refactors content for legacy v1 fixes redirects Co-authored-by: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> collapse examples category feat: add hook checklist rename v2-deployments to deployments chore: update flow subgraph endpoints chore: set branch to release in flow submodule feat(support): payment stream videos refactor: headings in local environment guide polish headings in local environment guides fix: logo in light mode docs: mention security researchers fix: fix CSS filter refactor: static img for GitHub icon chore: update csv columns refactor: update deployments and example hyperlink refactor: say "blob" instead of "tree" refactor: polish writing fix: fix periphery package fix: fix incorrect references refactor: alphabetical ordering refactor: improve writing refactor: reorder sections refactor: Sablier V1 to Sablier Legacy refactor: version Lockup and Flow fix redirects Co-authored-by: smol-ninja <shubhamy2015@gmail.com> Co-authored-by: Razvan Gabriel Apostu <razvan.gabriel.apostu@gmail.com> Co-authored-by: Paul Razvan Berg <prberg@proton.me> Co-authored-by: andreivladbrg <andreivladbrg@gmail.com> Co-authored-by: tukwan <7630720+tukwan@users.noreply.github.com> Co-authored-by: Mircea Gavriliu <gavriliumircea@yahoo.ro> Co-authored-by: maxdesalle <max@sablier.finance>
Closes #72.
Changelog
Previews
Lockup
Flow