@occa/sdk 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +238 -0
- package/LICENSE +21 -0
- package/README.md +102 -0
- package/dist/chunk-N7LNBSDD.js +658 -0
- package/dist/chunk-N7LNBSDD.js.map +1 -0
- package/dist/chunk-X6FBCGHU.js +97 -0
- package/dist/chunk-X6FBCGHU.js.map +1 -0
- package/dist/chunk-YCSBYRSH.js +75 -0
- package/dist/chunk-YCSBYRSH.js.map +1 -0
- package/dist/constants.cjs +121 -0
- package/dist/constants.cjs.map +1 -0
- package/dist/constants.d.cts +53 -0
- package/dist/constants.d.ts +53 -0
- package/dist/constants.js +51 -0
- package/dist/constants.js.map +1 -0
- package/dist/index.cjs +870 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +117 -0
- package/dist/index.js.map +1 -0
- package/dist/instructions.cjs +785 -0
- package/dist/instructions.cjs.map +1 -0
- package/dist/instructions.d.cts +442 -0
- package/dist/instructions.d.ts +442 -0
- package/dist/instructions.js +51 -0
- package/dist/instructions.js.map +1 -0
- package/dist/pda.cjs +146 -0
- package/dist/pda.cjs.map +1 -0
- package/dist/pda.d.cts +116 -0
- package/dist/pda.d.ts +116 -0
- package/dist/pda.js +24 -0
- package/dist/pda.js.map +1 -0
- package/package.json +80 -0
- package/src/constants.ts +93 -0
- package/src/idl/registry.json +1415 -0
- package/src/idl/treasury.json +1627 -0
- package/src/index.ts +18 -0
- package/src/instructions.ts +1171 -0
- package/src/pda.ts +199 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// occa-sdk — OCCA on-chain protocol SDK.
|
|
2
|
+
//
|
|
3
|
+
// Scope (v0.2): Registry program v3 — three account types:
|
|
4
|
+
// • CompanyAccount (tenant)
|
|
5
|
+
// • AgentIdentity (stable agent identity, non-transferable)
|
|
6
|
+
// • Deployment (binds identity ↔ company)
|
|
7
|
+
// 10 instructions covering create / update / status / retire / set
|
|
8
|
+
// receiving address. All state-changing ix are signed by the user
|
|
9
|
+
// wallet (`owner`); the operator wallet sponsors fees only.
|
|
10
|
+
//
|
|
11
|
+
// Future: Treasury, Trace Anchor, Marketplace, Reputation programs.
|
|
12
|
+
//
|
|
13
|
+
// Spec: occa/docs/identity-architecture.md
|
|
14
|
+
// occa/whitepaper.v0.9.md
|
|
15
|
+
|
|
16
|
+
export * from "./constants";
|
|
17
|
+
export * from "./pda";
|
|
18
|
+
export * from "./instructions";
|