@oddmaki-protocol/sdk 0.1.0 → 0.1.3

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 CHANGED
@@ -1,17 +1,19 @@
1
1
  # OddMaki SDK
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@oddmaki-protocol/sdk)](https://www.npmjs.com/package/@oddmaki-protocol/sdk)
4
+
3
5
  TypeScript SDK for the [OddMaki Protocol](https://github.com/oddmaki/oddmaki-core) — a fully on-chain prediction market factory on Base. Built on [viem](https://viem.sh/).
4
6
 
5
7
  ## Install
6
8
 
7
9
  ```bash
8
- pnpm add @oddmaki/sdk viem
10
+ pnpm add @oddmaki-protocol/sdk viem
9
11
  ```
10
12
 
11
13
  ## Quick Start
12
14
 
13
15
  ```typescript
14
- import { createOddMakiClient } from "@oddmaki/sdk";
16
+ import { createOddMakiClient } from "@oddmaki-protocol/sdk";
15
17
 
16
18
  const client = createOddMakiClient({
17
19
  walletClient, // viem WalletClient
@@ -79,7 +81,7 @@ const leaders = await client.public.getLeaderboard("totalVolume", "desc");
79
81
  ## Utilities
80
82
 
81
83
  ```typescript
82
- import { priceToTick, tickToPrice, parseAmount } from "@oddmaki/sdk";
84
+ import { priceToTick, tickToPrice, parseAmount } from "@oddmaki-protocol/sdk";
83
85
 
84
86
  priceToTick("0.80"); // 80n
85
87
  tickToPrice(80n); // "0.80"