-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontext7.json
More file actions
41 lines (41 loc) · 1.95 KB
/
Copy pathcontext7.json
File metadata and controls
41 lines (41 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"$schema": "https://context7.com/schema/context7.json",
"projectTitle": "StakeWise V3 SDK",
"description": "Official TypeScript SDK for StakeWise V3 liquid staking on Ethereum and Gnosis. Typed access to vaults, osToken (osETH/osGNO), boost leverage, rewards via subgraph and on-chain calls.",
"url": "https://context7.com/stakewise/v3-sdk",
"public_key": "pk_wpaUy9UwJWjviJip1LFYx",
"branch": "main",
"folders": ["documentation", "src/services"],
"excludeFolders": [
"scripts",
"dist",
"node_modules",
"changelog",
"documentation/_drafts"
],
"excludeFiles": [
"_category_.json",
"README.md",
"package.json",
"tsconfig.json",
"pnpm-lock.yaml",
"rollup.config.js",
"jest.config.ts",
"codegen.ts",
"hardhat.config.js",
"eslint.config.mjs",
"LICENSE",
"CHANGELOG.md"
],
"rules": [
"Init: `new StakeWiseSDK({ network, provider })` for read+write, or `{ network, endpoints: { web3: rpcUrl } }` for read-only.",
"After every write, `await sdk.utils.waitForSubgraph({ hash })` before refetching reads. Subgraph indexing lags transaction confirmation.",
"Writes have 3 forms: default sends a tx, `.encode(args)` returns `{data,to,value}` for multisig, `.estimateGas(args)` returns bigint. `sdk.vault.multicall<T>` lacks `.encode`/`.estimateGas`.",
"`Network.Mainnet=1` (osETH), `Network.Gnosis=100` (osGNO), `Network.Hoodi=560048`. SDK instances are immutable per network; recreate to switch.",
"V3 uses `osToken` (osETH/osGNO). `sETH2`/`rETH2` are V2, never reference in V3 code.",
"Reads return `AbortPromise<T>`; call `.abort()` to cancel. `.then`/`.catch` are silently suppressed after abort.",
"Contracts outside `sdk.contracts`: import top-level `createContract<T>(address, abi, sdk.provider)` from `@stakewise/v3-sdk`.",
"Batch independent reads with `Promise.all` / `AbortPromise.all`. Never parallelise writes; wallets serialise signing."
],
"previousVersions": []
}