@octane-rgs/sdk 0.1.0 → 0.1.1
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/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# @octane/
|
|
1
|
+
# @octane-rgs/sdk
|
|
2
2
|
|
|
3
3
|
Type-safe SDK for integrating games with Octane RGS.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @octane/
|
|
8
|
+
npm install @octane-rgs/sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { OctaneRgsClient } from "@octane/
|
|
14
|
+
import { OctaneRgsClient } from "@octane-rgs/sdk";
|
|
15
15
|
|
|
16
16
|
const rgs = new OctaneRgsClient({
|
|
17
17
|
baseUrl: "https://your-rgs.example.com",
|
|
@@ -116,7 +116,7 @@ const result = await rgs.settle({
|
|
|
116
116
|
When registering your operator with Octane RGS, implement the `OperatorAdapterConfig` interface:
|
|
117
117
|
|
|
118
118
|
```typescript
|
|
119
|
-
import type { OperatorAdapterConfig } from "@octane/
|
|
119
|
+
import type { OperatorAdapterConfig } from "@octane-rgs/sdk";
|
|
120
120
|
|
|
121
121
|
const myAdapter: OperatorAdapterConfig = {
|
|
122
122
|
async authorizePlayer(authPayload) { /* verify player with your system */ },
|
|
@@ -134,7 +134,7 @@ const myAdapter: OperatorAdapterConfig = {
|
|
|
134
134
|
All methods throw `RgsError` on failure:
|
|
135
135
|
|
|
136
136
|
```typescript
|
|
137
|
-
import { RgsError } from "@octane/
|
|
137
|
+
import { RgsError } from "@octane-rgs/sdk";
|
|
138
138
|
|
|
139
139
|
try {
|
|
140
140
|
await rgs.placeBet({ ... });
|