-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #418 from consensusnetworks/develop
Promote develop to master
- Loading branch information
Showing
334 changed files
with
20,661 additions
and
19,697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,11 @@ | ||
[submodule "scripts/ledger/resources/app-bitcoin"] | ||
path = scripts/ledger/resources/app-bitcoin | ||
url = https://github.com/LedgerHQ/app-bitcoin-new.git | ||
[submodule "scripts/ledger/resources/app-ethereum"] | ||
path = scripts/ledger/resources/app-ethereum | ||
url = https://github.com/LedgerHQ/app-ethereum.git | ||
[submodule "scripts/ledger/resources/app-solana"] | ||
path = scripts/ledger/resources/app-solana | ||
url = https://github.com/LedgerHQ/app-solana.git | ||
[submodule "scripts/ledger/resources/speculos"] | ||
path = scripts/ledger/resources/speculos | ||
url = https://github.com/LedgerHQ/speculos.git | ||
[submodule "scripts/trezor/resources/trezor-user-env"] | ||
path = scripts/trezor/resources/trezor-user-env | ||
url = https://github.com/trezor/trezor-user-env.git | ||
[submodule "contracts/ethereum/scripts/resources/ssv-network"] | ||
path = contracts/ethereum/scripts/resources/ssv-network | ||
url = https://github.com/bloxapp/ssv-network.git | ||
branch = contract-v3 | ||
[submodule "contracts/ethereum/lib/forge-std"] | ||
path = contracts/ethereum/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "services/oracle/scripts/resources/rockx-dkg-cli"] | ||
path = services/oracle/scripts/resources/rockx-dkg-cli | ||
url = https://github.com/RockX-SG/rockx-dkg-cli.git | ||
branch = main | ||
[submodule "contracts/ethereum/lib/ssv-network"] | ||
path = contracts/ethereum/lib/ssv-network | ||
url = https://github.com/bloxapp/ssv-network.git | ||
branch = jato-v2 | ||
[submodule "services/oracle/lib/dkg"] | ||
path = services/oracle/lib/dkg | ||
url = https://github.com/consensusnetworks/ssv-dkg.git | ||
branch = feature/operator-env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cache | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { withMermaid } from 'vitepress-plugin-mermaid' | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default withMermaid({ | ||
title: "Casimir Docs", | ||
head: [['link', { rel: 'icon', href: '/favicon.ico' }]], | ||
rewrites: { | ||
'index.md': 'introduction/what-is-casimir.md', | ||
}, | ||
cleanUrls: true, | ||
markdown: { | ||
math: true | ||
}, | ||
srcDir: 'src', | ||
outDir: './dist', | ||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
logo: '/casimir.svg', | ||
search: { | ||
provider: 'local' | ||
}, | ||
sidebar: [ | ||
{ | ||
text: 'Introduction', | ||
base: '/introduction', | ||
items: [ | ||
{ text: 'What is Casimir?', link: '/what-is-casimir' }, | ||
{ text: 'Architecture', link: '/architecture' } | ||
] | ||
}, | ||
{ | ||
text: 'Guide', | ||
base: '/guide', | ||
items: [ | ||
{ text: 'Accounts', link: '/accounts' }, | ||
{ text: 'Staking', link: '/staking' }, | ||
{ text: 'Operating', link: '/operating' } | ||
] | ||
}, | ||
{ | ||
text: 'Reference', | ||
base: '/reference', | ||
items: [ | ||
{ text: 'Contract Addresses', link: '/contract-addresses' }, | ||
{ text: 'Solidity API', link: '/solidity-api' } | ||
] | ||
}, | ||
{ | ||
text: 'Troubleshooting', | ||
base: '/troubleshooting', | ||
items: [ | ||
{ text: 'Operator Issues', link: '/operator-issues' }, | ||
{ text: 'Wallet Issues', link: '/wallet-issues' } | ||
] | ||
} | ||
], | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/consensusnetworks/casimir' } | ||
] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# @casimir/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "@casimir/docs", | ||
"private": "true", | ||
"scripts": { | ||
"dev": "npx vitepress dev", | ||
"docgen": "npx esno -r dotenv/config ./scripts/docgen.ts", | ||
"build": "npx vitepress build", | ||
"preview": "npx vitepress preview", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.38", | ||
"dotenv": "^16.3.1", | ||
"esno": "0.17.0", | ||
"markdown-it-mathjax3": "^4.3.2", | ||
"mermaid": "^10.5.1", | ||
"vitepress": "^1.0.0-rc.23", | ||
"vitepress-plugin-mermaid": "^2.0.15" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { run } from '@casimir/shell' | ||
|
||
void async function () { | ||
const outputDir = `${process.cwd()}/src/reference` | ||
const templateDir = `${process.cwd()}/templates/solidity` | ||
await run(`DOCS_OUTPUT_DIR=${outputDir} DOCS_TEMPLATE_DIR=${templateDir} npm run docgen --workspace @casimir/ethereum`) | ||
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
::: warning | ||
🚧 This page is incomplete. | ||
::: | ||
|
||
# Accounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
::: warning | ||
🚧 This page is incomplete. | ||
::: | ||
|
||
# Operating | ||
|
||
Operators owners will need to [set up an SSV node with RockX](https://github.com/consensusnetworks/ssv-dkg) and register with Casimir. The operators page in the Casimir app guides an owner through the process and provides an easy interface for registration and operator management. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
::: warning | ||
🚧 This page is incomplete. | ||
::: | ||
|
||
# Staking | ||
|
||
Users can deposit any amount of ETH to the manager contract. Their deposits are staked to validators run by SSV operators (see [Operators](#operators)). Rewards are auto-compounded into stake and users can withdraw their principal plus any earned proportion of new stake (or a partial amount of their choice) at any time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
::: warning | ||
🚧 This page is incomplete. | ||
::: | ||
|
||
# What is Casimir? | ||
|
||
Casimir is a platform... TODO | ||
|
||
## Casimir Ethereum Staking | ||
|
||
Currlently stakers either need to solo-stake (and have least 32 Ether), or they need to pool their assets in a liquid staking protocol (LSD). While the former choice is a reliably secure choice for Ether holders (if they have solid infrastructure), the latter, LSDs, often present an inherent counterparty risk to the user because of their centralized control of staking node operators (see [The Risks of LSD](https://notes.ethereum.org/@djrtwo/risks-of-lsd)). | ||
|
||
Casimir is designed to offer users the experience and security of solo-staking while pooling their assets. The Casimir contracts seamlessly connect stakers with any amount of Ether to a permissionless registry of high-performing node operators. Casimir aims to minimize counterparty risk for users and improve decentralization in Ethereum staking: | ||
|
||
- Validators duties are performed by registered (collateralized) operators running distributed validator technology (DVT) | ||
- Keys are created and reshared using distributed key generation (DKG) | ||
- Balance and status reports are reported by a decentralized oracle network (DON) |
Oops, something went wrong.