MCPcopy Index your code
hub / github.com/StrataFoundation/strata

github.com/StrataFoundation/strata @v3.11.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.11.2 ↗ · + Follow
1,716 symbols 5,289 edges 503 files 99 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Strata

What is strata? Check out our Hello World

View the live documentation here

This series of smart contracts serves to standardizing and indexing all social tokens.

Docs are located in packages/docs

Development

We recommend using localnet for working on Strata.

Install Submodules

Pull the deps

git submodule init
git submodule update

Lerna Setup

Strata uses Lerna to make it easier to develope on our JS SDKs.

npx lerna bootstrap

Build the deps

anchor run build-deps

To watch for changes,

yarn idl // generated idl changes
yarn watch // code changes

Build the Strata packages

yarn build

Test

anchor test --provider.cluster localnet

Bootstrap the Open Collective

If you wish to use this on devnet, first the open collective needs to be created. This has already been run for devent, but putting it here for the sake of completeness

env ANCHOR_WALLET=~/.config/solana/id.json ANCHOR_PROVIDER_URL=https://api.devnet.solana.com yarn run bootstrap

Contribution

Thank you for your interest in contributing to Strata! All contributions are welcome no matter how big or small. This includes (but is not limited to) filing issues, adding documentation, fixing bugs, creating examples, and implementing features.

If you'd like to contribute, please claim an issue by commenting, forking, and opening a pull request, even if empty. This allows the maintainers to track who is working on what issue as to not overlap work.

For simple documentation changes, feel free to just open a pull request.

If you're considering larger changes or self motivated features, please file an issue and engage with the maintainers in Discord.

Extension points exported contracts — how you extend this code

ICurveConfig (Interface)
(no doc) [6 implementers]
packages/spl-token-bonding/src/index.ts
OrArithError (Interface)
(no doc) [3 implementers]
programs/spl-token-bonding/src/util.rs
ISymKeyStorage (Interface)
(no doc) [2 implementers]
packages/chat/src/index.ts
IDelegateWalletStorage (Interface)
(no doc) [2 implementers]
packages/chat-ui/src/hooks/useDelegateWallet.ts
IProtocolFees (Interface)
(no doc)
packages/marketplace-sdk/src/index.ts
INotificationProps (Interface)
(no doc)
packages/react/src/components/Notification.tsx
IArweaveResult (Interface)
(no doc)
packages/spl-utils/src/arweave.ts
IFungibleParentEntangler (Interface)
(no doc)
packages/fungible-entangler/src/index.ts

Core symbols most depended-on inside this repo

log
called by 118
programs/spl-token-bonding/src/precise_number.rs
toString
called by 75
packages/spl-utils/src/anchorError.ts
get
called by 57
packages/spl-utils/src/accountFetchCache/accountFetchCache.ts
pow
called by 56
programs/spl-token-bonding/src/precise_number.rs
register
called by 53
packages/docs/src/theme/Root/variables.tsx
getTokenBonding
called by 47
packages/spl-token-bonding/src/index.ts
toNumber
called by 41
packages/spl-utils/src/utils.ts
expectAtaBalance
called by 41
tests/utils/token.ts

Shape

Function 906
Method 389
Interface 213
Class 186
Enum 22

Languages

TypeScript80%
Rust20%

Modules by API surface

packages/chat/src/index.ts109 symbols
packages/spl-token-bonding/src/index.ts81 symbols
packages/spl-token-collective/src/index.ts62 symbols
packages/fungible-entangler/src/index.ts48 symbols
programs/spl-token-bonding/src/precise_number.rs43 symbols
packages/spl-utils/src/splTokenMetadata.ts37 symbols
packages/spl-token-bonding/src/curves.ts36 symbols
packages/marketplace-sdk/src/index.ts36 symbols
packages/spl-token-bonding/src/pricing.ts24 symbols
packages/spl-utils/src/accountFetchCache/accountFetchCache.ts22 symbols
packages/accelerator/src/index.ts21 symbols
programs/spl-token-collective/src/account.rs18 symbols

For agents

$ claude mcp add strata \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact