-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: app data tutorials #21
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Amazing!
This PR: 1. Removes CI/CD tests 2. Adds project management / CLA workflows 3. Adds github issues / pull request templates 4. Updates the repo README
content/tutorial/01-simple-orders/02-app-data/02-create-order-app-data/README.md
Outdated
Show resolved
Hide resolved
content/tutorial/01-simple-orders/02-app-data/02-create-order-app-data/README.md
Show resolved
Hide resolved
content/tutorial/01-simple-orders/02-app-data/02-create-order-app-data/app-a/src/lib/run.ts
Show resolved
Hide resolved
"orderClass": "twap" | ||
}, | ||
"quote": { | ||
"slippageBips": "7500" |
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.
That's a big ape order!
content/tutorial/02-advanced-orders/01-eth-flow/01-create-eth-flow/README.md
Show resolved
Hide resolved
## Order meta data | ||
|
||
For analytics purposes, we can add some metadata to the order. | ||
The metadata is a JSON document that is stored in IPFS and referenced by the order. | ||
The metadata is optional, but it's recommended to add it. | ||
After order creation, the metadata will be displayed in [the Explorer](https://explorer.cow.fi/). |
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.
Should we link to the app-data tutorial here?
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.
Yep, will do that to de-dupe on the advanced orders!
// Slippage percent, it's 0 to 100 | ||
const quote = { slippageBips: '50' } |
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.
Actually, it's in basis points (bips) witch is percent/100, so from 0 to 10000.
50
-> 0.5%
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.
Am removing in-line comments in general (as exhaustive comments in the "walkthrough") so this will be taken care of with the advanced orders.
title: Merkle tree | ||
--- | ||
|
||
It's trees all the way down. |
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.
😆
Co-authored-by: Leandro <[email protected]>
This PR:
Notable exceptions: Due to size limitations for including libraries in the
common.zip
for IPFS, uploading the app data document to IPFS is not covered.Implementing this in a more coherent method within the
app-data
SDK would be better (and then with a subsequent tutorial).