-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add/Update dapp-orca-basics
Docs
#1232
Conversation
Deploying documentation with Cloudflare Pages
|
6b2a88c
to
c1bf13a
Compare
dapp-orca-basics
Docs --WIP--dapp-orca-basics
Docs
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.
Left some comments :)
main/.vitepress/config.mjs
Outdated
}, | ||
{ | ||
text: 'Contract Walkthroughs', | ||
link: '/guides/orchestration/getting-started/contract-walkthroughs', | ||
link: '/guides/orchestration/contract-walkthrough', |
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.
link: '/guides/orchestration/contract-walkthrough', | |
link: '/guides/orchestration/contract-walkthroughs', |
for all sub-items too
] | ||
}, | ||
{ | ||
text: 'Example Orchestration DApp', |
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.
Ideally, like we discussed in today's sync, I would like this to be after key concepts but it doesn't have to be done in this PR. We would also need to rethink what to call that section because then Example Orchestration Dapp
wouldn't work imo
main/.vitepress/themeConfig/nav.js
Outdated
}, | ||
{ | ||
text: 'Contract Walkthroughs', | ||
items: [ | ||
{ | ||
text: 'Send Anywhere Example', | ||
link: '/guides/orchestration/getting-started/contract-walkthrough/send-anywhere', | ||
link: '/guides/orchestration/contract-walkthrough/send-anywhere', |
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.
/contract-walkthroughs/
all instances here too
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.
Changing the directory structure results in a different URL for the page. For retaining SEO juice, we need to add redirects from previous pages to new ones. You will have to add these entries to _redirects
file
@@ -13,7 +13,7 @@ The Orchestration API handles asynchronous tasks and complex workflows, includin | |||
|
|||
# Introduction to Orchestration API Flow | |||
|
|||
The following sequence diagram provides a comprehensive overview of the orchestration process within the Agoric platform. This example illustrates the interaction between various components, highlighting how the orchestration library (`OrchLib`) facilitates cross-chain operations. This is a good first example to understand the flow of the Orchestration API, showing the steps involved in creating and managing cross-chain transactions. | |||
The following sequence diagram provides a comprehensive overview of the Orchestration process within the Agoric platform. This example illustrates the interaction between various components, highlighting how the Orchestration library (`OrchLib`) facilitates cross-chain operations. This is a good first example to understand the flow of the Orchestration API, showing the steps involved in creating and managing cross-chain transactions. |
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 should create an issue to update all such outdated terms like OrchLib
1. [`orca.contract.js`](https://github.com/Agoric/dapp-orchestration-basics/blob/main/contract/src/orca.contract.js) | ||
2. [`orca.flows.js`](https://github.com/Agoric/dapp-orchestration-basics/blob/main/contract/src/orca.flows.js) | ||
|
||
## Walkthrough: `orca.contract.js` |
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.
## Walkthrough: `orca.contract.js` | |
## `orca.contract.js` |
redundant imo
harden(start); | ||
``` | ||
|
||
## Walkthrough `orca.flows.js` |
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.
## Walkthrough `orca.flows.js` | |
## `orca.flows.js` |
|
||
- **Creating Account and Funding Functions**: These functions are created using the `orchestrateAll` helper, which sets | ||
up the necessary flow logic for account creation and funding but the logic is implemented in `orca.flows.js` file | ||
([discussed below](#walkthrough-orcaflowsjs)). |
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.
([discussed below](#walkthrough-orcaflowsjs)). | |
([discussed below](#walkthrough-orcaflowsjs)). |
seems like a dead anchor but it has to be updated regardless if we update the h2s. THen it should become '#orca-flows-js' I believe
|
||
Here, we will walkthrough the components making up the user interface for the Orchestration dApp. | ||
|
||
## Orchestration.tsx |
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 would suggest using component name rather than filename for each of these (the component is called Orchestration
)
|
||
## Orchestration.tsx | ||
|
||
The `Orchestration.tsx` component serves as the main controller for the Orchestration dApp's user interface. It manages |
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.
Same here. We can hyperlink the component to this src file here in the body.
a06291f
to
bdfce2b
Compare
_redirects
Outdated
@@ -44,6 +44,11 @@ | |||
/guides/js-programming/ses/ses-guide.html https://github.com/endojs/endo/blob/HEAD/packages/ses/docs/guide.md | |||
/guides/js-programming/ses/ses-reference https://github.com/endojs/endo/blob/HEAD/packages/ses/docs/reference.md | |||
/guides/js-programming/ses/ses-reference.html https://github.com/endojs/endo/blob/HEAD/packages/ses/docs/reference.md | |||
/guides/orchestration/getting-started/key-concepts /guides/orchestration/key-concepts |
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 also need to add corresponding html entries
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.
oh yes
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 wonder if this can be automated - at least for changes in navbar/sidebar config files.
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.
Fixed. Have a careful look though, I have never added to _redirects
before.
|
||
- **Creating Account and Funding Functions**: These functions are created using the `orchestrateAll` helper, which sets | ||
up the necessary flow logic for account creation and funding but the logic is implemented in `orca.flows.js` file | ||
([discussed below](#orcaflowsjs)). |
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.
([discussed below](#orcaflowsjs)). | |
([discussed below](#orca-flows-js)). |
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.
For some reason, this was suggested by vscode.
bdfce2b
to
f6e494c
Compare
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.
Good work!
Somehow the "Contract Walkthroughs" page isn't highlighted in the sidebar so if you can debug and fix that, it would be great.
4a28808
to
57d847f
Compare
Thanks. Fixed. |
7ebbc5d
to
b54fdc8
Compare
docs: orca contract walkthrough
b54fdc8
to
21bdf09
Compare
The changes include:
getting-started
directory inorchestration
- that's one less instancegetting-started
in our docs now.contract-walkthroughs.md
is nowcontract-walkthrough/index.md
.I also capitalized Orchestration everywhere for the sake of uniformity.
Closes #1233