Skip to content

Commit

Permalink
some more refactors on crdts mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Sep 18, 2024
1 parent 1438a6a commit d2629e1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/canvas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "ts-node ./src/index.ts"
},
"dependencies": {
"@topology-foundation/crdt": "0.1.1",
"@topology-foundation/blueprints": "0.1.1",
"@topology-foundation/network": "0.1.1",
"@topology-foundation/node": "0.1.1",
"@topology-foundation/object": "0.1.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/asconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"options": {
"lib": {
"@topology-foundation/crdt": [
"../node_modules/@topology-foundation/crdt/src/index.asc.ts"
"./node_modules/@topology-foundation/blueprints/src/index.asc.ts"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/chat/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "topology-example-chat",
"version": "0.1.1",
"description": "Topology Protocol Chat Exmaple",
"description": "Topology Protocol Chat Example",
"main": "src/index.ts",
"repository": "https://github.com/topology-foundation/ts-topology.git",
"license": "MIT",
Expand All @@ -13,7 +13,7 @@
"start": "ts-node ./src/index.ts"
},
"dependencies": {
"@topology-foundation/crdt": "0.1.1",
"@topology-foundation/blueprints": "0.1.1",
"@topology-foundation/network": "0.1.1",
"@topology-foundation/node": "0.1.1",
"@topology-foundation/object": "0.1.1",
Expand Down
14 changes: 4 additions & 10 deletions packages/blueprints/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Conflict-free Replicated Data Types (CRDTs)
# Topology Blueprints

This package contains the CRDT implementations intended to use as builtins for the Topology Protocol.
This package contains the CRO blueprints intended to be used by other CROs.

## Usage

This package is intended to be used as a dependency for the Topology Protocol. However, you can use it as a standalone package. For that, you can install it using:

```bash
# yarn
yarn add @topology-foundation/crdt
yarn add @topology-foundation/blueprints

# npm
npm install @topology-foundation/crdt
npm install @topology-foundation/blueprints
```

### Build
Expand All @@ -29,9 +29,3 @@ To run the tests, you can run:
```bash
yarn test
```

## CRDTs Implementations
- [x] G-Counter
- [x] PN-Counter
- [x] G-Set
- [x] 2P-Set
2 changes: 1 addition & 1 deletion packages/object/asconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"options": {
"lib": {
"@topology-foundation/crdt": ["../crdt/src/index.asc.ts"]
"@topology-foundation/blueprints": ["../blueprints/src/index.asc.ts"]
}
}
}
4 changes: 2 additions & 2 deletions packages/object/src/wasm/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export async function compileWasm(path: string) {
return fs
.readFileSync(filename, "utf8")
.replace(
"@topology-foundation/crdt",
"@topology-foundation/crdt/src/index.asc",
"@topology-foundation/blueprints",
"@topology-foundation/blueprints/src/index.asc",
);
},
writeFile: (
Expand Down

0 comments on commit d2629e1

Please sign in to comment.