Skip to content

Commit ad9cddf

Browse files
committed
chore: rename npm package
1 parent 0f93fd0 commit ad9cddf

File tree

7 files changed

+299
-287
lines changed

7 files changed

+299
-287
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# 🚀 Golem Base
1+
# 🚀 GolemDB
22

3-
This is part of the [Golem Base](https://github.com/Golem-Base) project, which is which is designed as a Layer2 Network deployed on Ethereum, acting as a gateway to various Layer 3 Database Chains (DB-Chains).
3+
This is part of the [GolemDB](https://github.com/Golem-Base) project, which is which is designed as a Layer2 Network deployed on Ethereum, acting as a gateway to various Layer 3 Database Chains (DB-Chains).
44

5-
> **For an overview of Golem Base, check out our [Litepaper](https://golem-base.io/wp-content/uploads/2025/03/GolemBase-Litepaper.pdf).**
5+
> **For an overview of GolemDB, check out our [Litepaper](https://golem-base.io/wp-content/uploads/2025/03/GolemDB-Litepaper.pdf).**
66
7-
# 🌌GolemBase SDK for TypeScript
7+
# 🌌GolemDB SDK for TypeScript
88

9-
This SDK allows you to use [GolemBase](https://github.com/Golem-Base) from TypeScript. It is available [on NPM](https://www.npmjs.com/package/golem-base-sdk).
9+
This SDK allows you to use [GolemDB](https://github.com/Golem-Base) from TypeScript. It is available [on NPM](https://www.npmjs.com/package/golemdb-sdk).
1010

1111
We also publish [generated documentation](https://golem-base.github.io/typescript-sdk/).
1212

@@ -58,7 +58,7 @@ npm install --save-dev typescript
5858
And now add the golem TypeScript SDK to your package by typing:
5959

6060
```
61-
npm i golem-base-sdk
61+
npm i golemdb-sdk
6262
```
6363

6464
Now update your package.json file, changing the `type` member to `"type": "module",` and adding the two script lines for `build` and `start`. (Be sure to add a comma after the first script line called test. Also, you can leave the `name` member set to whatever it is. And the order of the members doesn't matter.)
@@ -82,7 +82,7 @@ Now update your package.json file, changing the `type` member to `"type": "modul
8282
"typescript": "^5.8.3"
8383
},
8484
"dependencies": {
85-
"golem-base-sdk": "^0.1.8"
85+
"golemdb-sdk": "^0.1.8"
8686
}
8787
}
8888

@@ -121,9 +121,9 @@ This is a basic TypeScript application that:
121121

122122
1. Imports several items from the SDK (called "golem-base-sdk") including:
123123

124-
* `createClient`: A function that creates a client to interact with GolemBase
125-
* `type GolemBaseClient`: A type that represents the base client for interacting with Golem
126-
* `type GolemBaseCreate`: A type representing a create transaction in GolemBase
124+
* `createClient`: A function that creates a client to interact with GolemDB
125+
* `type GolemDBClient`: A type that represents the base client for interacting with Golem
126+
* `type GolemDBCreate`: A type representing a create transaction in GolemDB
127127
* `Annotation`: A type representing an annotation with a key and a value, used for efficient lookups
128128

129129
2. Reads the private key from a wallet, which it locates through the `xdg-portable` module.
@@ -144,7 +144,7 @@ The `main` function demonstrates how to create, modify, and delete entities:
144144
* One with data `"bar"` and a time to live of `2`, and a numeric annotation of `2`
145145
* One with data `"qux"` and a time to live of `50`, and a numeric annotation also of `2`
146146

147-
Notice that the type of each is GolemBaseCreate.
147+
Notice that the type of each is GolemDBCreate.
148148

149149
4. It then calls client.createEntities to create the entities within Golem. Notice that this returns a promise of an array of items, each of which contain an `entityKey` and an `expirationBlock`.
150150

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<title>GolemBase in the browser</title>
5-
<script src="https://unpkg.com/golem-base-sdk/dist/golem-base-sdk.min.js"></script>
5+
<script src="https://unpkg.com/golemdb-sdk/dist/golemdb-sdk.min.js"></script>
66
<!--
77
We cannot re-export this from our bundle since we need the browser version
88
which is slightly different.

example/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
Annotation,
1616
Tagged,
1717
type AccountData,
18-
} from "golem-base-sdk"
18+
} from "golemdb-sdk"
1919

2020
// Path to a golembase wallet
2121
const walletPath = join(xdg.config(), 'golembase', 'wallet.json');

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"build": "tsc"
1313
},
1414
"dependencies": {
15-
"@types/node": "^22.15.21",
16-
"golem-base-sdk": "link:..",
15+
"@types/node": "^22.18.0",
16+
"golemdb-sdk": "link:..",
1717
"tslog": "^4.9.3",
1818
"xdg-portable": "^10.6.0"
1919
}

example/pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,26 @@
2323
"license": "GPL-3.0-only",
2424
"packageManager": "[email protected]",
2525
"dependencies": {
26-
"@types/node": "^22.15.32",
26+
"@types/node": "^22.18.0",
2727
"ethers": "^6.15.0",
2828
"tslog": "^4.9.3",
29-
"viem": "^2.31.3"
29+
"viem": "^2.37.1"
3030
},
3131
"devDependencies": {
3232
"@rollup/plugin-commonjs": "^28.0.6",
3333
"@rollup/plugin-node-resolve": "^16.0.1",
3434
"@rollup/plugin-terser": "^0.4.4",
35-
"@rollup/plugin-typescript": "^12.1.3",
35+
"@rollup/plugin-typescript": "^12.1.4",
3636
"@types/chai": "^5.2.2",
3737
"@types/mocha": "^10.0.10",
38-
"chai": "^5.2.0",
38+
"chai": "^5.3.3",
3939
"glob": "^11.0.3",
40-
"mocha": "^11.6.0",
41-
"rollup": "^4.43.0",
40+
"mocha": "^11.7.2",
41+
"rollup": "^4.50.0",
4242
"rollup-plugin-polyfill-node": "^0.13.0",
4343
"ts-mocha": "^11.1.0",
4444
"tslib": "^2.8.1",
45-
"typedoc": "^0.28.5",
45+
"typedoc": "^0.28.12",
4646
"xdg-portable": "^10.6.0"
4747
},
4848
"scripts": {

0 commit comments

Comments
 (0)