Skip to content

Remove references to SpacetimeDB 0.6 #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ If this tutorial is the end of a series, or ends with a reasonably complete app,
If the tutorial involved writing code, add a link to the complete code. This should be somewhere on GitHub, either as its own repo, or as an example project within an existing repo. Ensure the linked folder has a README.md file which includes:
- The name of the tutorial project.
- How to run or interact with the tutorial project, whatever that means (e.g. publish to testnet and then `spacetime call`).
- How to run or interact with the tutorial project, whatever that means (e.g. publish to maincloud and then `spacetime call`).
- Links to external dependencies (e.g. for client projects, the module which it runs against).
- A back-link to the tutorial that builds this project.
Expand Down
34 changes: 0 additions & 34 deletions docs/deploying/testnet.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/http/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ If the top-level domain is registered, but the identity provided in the `Authori
} }
```

> Spacetime top-level domains are an upcoming feature, and are not fully implemented in SpacetimeDB 0.6. For now, database names should not contain slashes.

## `/database/ping GET`

Does nothing and returns no data. Clients can send requests to this endpoint to determine whether they are able to connect to SpacetimeDB.
Expand All @@ -131,8 +129,6 @@ Does nothing and returns no data. Clients can send requests to this endpoint to

Register a new Spacetime top-level domain. A TLD is the part of a database name before the first `/`. For example, in the name `tyler/bitcraft`, the TLD is `tyler`. Each top-level domain is owned by at most one identity, and only the owner can publish databases with that TLD.

> Spacetime top-level domains are an upcoming feature, and are not fully implemented in SpacetimeDB 0.6. For now, database names should not contain slashes.

Accessible through the CLI as `spacetime dns register-tld <tld>`.

#### Query Parameters
Expand Down Expand Up @@ -226,8 +222,6 @@ If the top-level domain for the requested name is registered, but the identity p
} }
```

> Spacetime top-level domains are an upcoming feature, and are not fully implemented in SpacetimeDB 0.6. For now, database names should not contain slashes.

## `/database/delete/:address POST`

Delete a database.
Expand Down
43 changes: 1 addition & 42 deletions docs/http/energy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ The HTTP endpoints in `/energy` allow clients to query identities' energy balanc
| Route | Description |
| ------------------------------------------------ | --------------------------------------------------------- |
| [`/energy/:identity GET`](#energyidentity-get) | Get the remaining energy balance for the user `identity`. |
| [`/energy/:identity POST`](#energyidentity-post) | Set the energy balance for the user `identity`. |

## `/energy/:identity GET`

Get the energy balance of an identity.

Accessible through the CLI as `spacetime energy status <identity>`.
Accessible through the CLI as [`spacetime energy balance`](/docs/cli-reference#spacetime-energy-balance).

#### Parameters

Expand All @@ -34,43 +33,3 @@ Returns JSON in the form:
| Field | Value |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `balance` | The identity's energy balance, as a decimal integer. Note that energy balances may be negative, and will frequently be too large to store in a 64-bit integer. |

## `/energy/:identity POST`

Set the energy balance for an identity.

Note that in the SpacetimeDB 0.6 Testnet, this endpoint always returns code 401, `UNAUTHORIZED`. Testnet energy balances cannot be refilled.

Accessible through the CLI as `spacetime energy set-balance <balance> <identity>`.

#### Parameters

| Name | Value |
| ----------- | ----------------------- |
| `:identity` | The Spacetime identity. |

#### Query Parameters

| Name | Value |
| --------- | ------------------------------------------ |
| `balance` | A decimal integer; the new balance to set. |

#### Required Headers

| Name | Value |
| --------------- | --------------------------------------------------------------- |
| `Authorization` | A Spacetime token [encoded as Basic authorization](/docs/http). |

#### Returns

Returns JSON in the form:

```typescript
{
"balance": number
}
```

| Field | Value |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `balance` | The identity's new energy balance, as a decimal integer. Note that energy balances may be negative, and will frequently be too large to store in a 64-bit integer. |
2 changes: 1 addition & 1 deletion docs/modules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In the following sections, we'll cover the basics of server modules and how to c

### Rust

As of SpacetimeDB 0.6, Rust is the only fully supported language for server modules. Rust is a great option for server modules because it is fast, safe, and has a small runtime.
Rust is the only fully supported language for server modules. Rust is a great option for server modules because it is fast, safe, and has a small runtime.

- [Rust Module Reference](/docs/modules/rust)
- [Rust Module Quickstart Guide](/docs/modules/rust/quickstart)
Expand Down
2 changes: 0 additions & 2 deletions docs/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ const nav = {
section('Intro'),
page('Overview', 'index', 'index.md'), // TODO(BREAKING): For consistency & clarity, 'index' slug should be renamed 'intro'?
page('Getting Started', 'getting-started', 'getting-started.md'),
section('Deploying'),
page('Testnet', 'deploying/testnet', 'deploying/testnet.md'),
section('Migration Guides'),
page('v0.12', 'migration/v0.12', 'migration/v0.12.md'),
section('Unity Tutorial - Basic Multiplayer'),
Expand Down
3 changes: 0 additions & 3 deletions nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ const nav: Nav = {
page('Overview', 'index', 'index.md'), // TODO(BREAKING): For consistency & clarity, 'index' slug should be renamed 'intro'?
page('Getting Started', 'getting-started', 'getting-started.md'),

section('Deploying'),
page('Testnet', 'deploying/testnet', 'deploying/testnet.md'),

section('Migration Guides'),
page('v0.12', 'migration/v0.12', 'migration/v0.12.md'),

Expand Down