rain-sdk-v2 1.0.10 → 1.0.12

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.
@@ -22,7 +22,7 @@ export const ENV_CONFIG = {
22
22
  oracle_fixed_fee_per_option: 1000000n, // $1 in 6 decimals
23
23
  },
24
24
  rain: {
25
- address: "0x25118290e6A5f4139381D072181157035864099d",
25
+ address: "0x43976a124e6834b541840Ce741243dAD3dd538DA",
26
26
  symbol: "RAIN",
27
27
  decimals: 18,
28
28
  oracle_fixed_fee_per_option: 1000000000000000000n, // $1 in 18 decimals
@@ -41,7 +41,7 @@ export const ENV_CONFIG = {
41
41
  oracle_fixed_fee_per_option: 1000000n,
42
42
  },
43
43
  rain: {
44
- address: "0x43976a124e6834b541840Ce741243dAD3dd538DA",
44
+ address: "0x25118290e6A5f4139381D072181157035864099d",
45
45
  symbol: "RAIN",
46
46
  decimals: 18,
47
47
  oracle_fixed_fee_per_option: 1000000000000000000n,
@@ -11,8 +11,8 @@ export function validateCreateMarketParams(params) {
11
11
  throw new Error("question is required");
12
12
  if (!marketDescription)
13
13
  throw new Error("description is required");
14
- if (!Array.isArray(marketOptions) || marketOptions.length < 2 || marketOptions.length > 26) {
15
- throw new Error("options must be between 2 and 26");
14
+ if (!Array.isArray(marketOptions) || marketOptions.length < 1 || marketOptions.length > 50) {
15
+ throw new Error("options must be between 1 and 50");
16
16
  }
17
17
  if (marketOptions.some(opt => !opt?.toString().trim())) {
18
18
  throw new Error("options cannot contain empty values");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rain-sdk-v2",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "description": "Rain SDK V2 — TypeScript SDK for Rain prediction markets on Arbitrum. Market creation, trading, liquidity, order book, split/merge, dispute, and smart account support.",
6
6
  "main": "dist/index.js",