@cypher-zk/sdk 0.6.0 → 0.7.0
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/dist/{client-B0EueahJ.d.ts → client-sr7mY_Wj.d.ts} +43 -12
- package/dist/{cypher-M5PH6UM5.json → cypher-G57ZWFM3.json} +17 -4
- package/dist/index.d.ts +8 -7
- package/dist/index.js +23 -12
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/idl/cypher.json +17 -4
- package/src/idl/cypher.ts +17 -4
package/dist/react/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { C as CypherClient, G as GlobalStateAccount, M as MarketAccount, E as EncryptedPositionAccount, R as ResolutionActionResult, A as AdminOverrideResolutionInputs, a as CancelMarketParams, b as ClaimResult, c as ClaimInputs, d as CreateMarketResult, e as CreateMarketParams, F as FinalizeResolutionInputs, f as FlagResolutionInputs, P as PlaceBetResult, g as PlaceBetInputs, h as ResolveMarketResult, i as ResolveMarketInputs, S as SubscribeOptions, j as CypherEvent } from '../client-
|
|
2
|
+
import { C as CypherClient, G as GlobalStateAccount, M as MarketAccount, E as EncryptedPositionAccount, R as ResolutionActionResult, A as AdminOverrideResolutionInputs, a as CancelMarketParams, b as ClaimResult, c as ClaimInputs, d as CreateMarketResult, e as CreateMarketParams, F as FinalizeResolutionInputs, f as FlagResolutionInputs, P as PlaceBetResult, g as PlaceBetInputs, h as ResolveMarketResult, i as ResolveMarketInputs, S as SubscribeOptions, j as CypherEvent } from '../client-sr7mY_Wj.js';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { UseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
|
|
5
5
|
import { PublicKey } from '@solana/web3.js';
|
package/package.json
CHANGED
package/src/idl/cypher.json
CHANGED
|
@@ -1577,6 +1577,10 @@
|
|
|
1577
1577
|
{
|
|
1578
1578
|
"name": "challenge_period",
|
|
1579
1579
|
"type": "i64"
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"name": "bond_amount",
|
|
1583
|
+
"type": "u64"
|
|
1580
1584
|
}
|
|
1581
1585
|
]
|
|
1582
1586
|
},
|
|
@@ -1746,6 +1750,10 @@
|
|
|
1746
1750
|
{
|
|
1747
1751
|
"name": "challenge_period",
|
|
1748
1752
|
"type": "i64"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "bond_amount",
|
|
1756
|
+
"type": "u64"
|
|
1749
1757
|
}
|
|
1750
1758
|
]
|
|
1751
1759
|
},
|
|
@@ -3895,26 +3903,31 @@
|
|
|
3895
3903
|
},
|
|
3896
3904
|
{
|
|
3897
3905
|
"code": 6037,
|
|
3906
|
+
"name": "BondTooSmall",
|
|
3907
|
+
"msg": "Creator bond is below the protocol minimum"
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"code": 6038,
|
|
3898
3911
|
"name": "NotPendingResolution",
|
|
3899
3912
|
"msg": "Market is not pending resolution"
|
|
3900
3913
|
},
|
|
3901
3914
|
{
|
|
3902
|
-
"code":
|
|
3915
|
+
"code": 6039,
|
|
3903
3916
|
"name": "ChallengePeriodNotElapsed",
|
|
3904
3917
|
"msg": "Challenge period has not elapsed yet"
|
|
3905
3918
|
},
|
|
3906
3919
|
{
|
|
3907
|
-
"code":
|
|
3920
|
+
"code": 6040,
|
|
3908
3921
|
"name": "ChallengePeriodElapsed",
|
|
3909
3922
|
"msg": "Challenge period has already elapsed"
|
|
3910
3923
|
},
|
|
3911
3924
|
{
|
|
3912
|
-
"code":
|
|
3925
|
+
"code": 6041,
|
|
3913
3926
|
"name": "MarketDisputed",
|
|
3914
3927
|
"msg": "Market resolution is disputed — admin must override"
|
|
3915
3928
|
},
|
|
3916
3929
|
{
|
|
3917
|
-
"code":
|
|
3930
|
+
"code": 6042,
|
|
3918
3931
|
"name": "MarketNotDisputed",
|
|
3919
3932
|
"msg": "Market resolution is not disputed"
|
|
3920
3933
|
}
|
package/src/idl/cypher.ts
CHANGED
|
@@ -1583,6 +1583,10 @@ export type Cypher = {
|
|
|
1583
1583
|
{
|
|
1584
1584
|
"name": "challengePeriod",
|
|
1585
1585
|
"type": "i64"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"name": "bondAmount",
|
|
1589
|
+
"type": "u64"
|
|
1586
1590
|
}
|
|
1587
1591
|
]
|
|
1588
1592
|
},
|
|
@@ -1752,6 +1756,10 @@ export type Cypher = {
|
|
|
1752
1756
|
{
|
|
1753
1757
|
"name": "challengePeriod",
|
|
1754
1758
|
"type": "i64"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "bondAmount",
|
|
1762
|
+
"type": "u64"
|
|
1755
1763
|
}
|
|
1756
1764
|
]
|
|
1757
1765
|
},
|
|
@@ -3901,26 +3909,31 @@ export type Cypher = {
|
|
|
3901
3909
|
},
|
|
3902
3910
|
{
|
|
3903
3911
|
"code": 6037,
|
|
3912
|
+
"name": "bondTooSmall",
|
|
3913
|
+
"msg": "Creator bond is below the protocol minimum"
|
|
3914
|
+
},
|
|
3915
|
+
{
|
|
3916
|
+
"code": 6038,
|
|
3904
3917
|
"name": "notPendingResolution",
|
|
3905
3918
|
"msg": "Market is not pending resolution"
|
|
3906
3919
|
},
|
|
3907
3920
|
{
|
|
3908
|
-
"code":
|
|
3921
|
+
"code": 6039,
|
|
3909
3922
|
"name": "challengePeriodNotElapsed",
|
|
3910
3923
|
"msg": "Challenge period has not elapsed yet"
|
|
3911
3924
|
},
|
|
3912
3925
|
{
|
|
3913
|
-
"code":
|
|
3926
|
+
"code": 6040,
|
|
3914
3927
|
"name": "challengePeriodElapsed",
|
|
3915
3928
|
"msg": "Challenge period has already elapsed"
|
|
3916
3929
|
},
|
|
3917
3930
|
{
|
|
3918
|
-
"code":
|
|
3931
|
+
"code": 6041,
|
|
3919
3932
|
"name": "marketDisputed",
|
|
3920
3933
|
"msg": "Market resolution is disputed — admin must override"
|
|
3921
3934
|
},
|
|
3922
3935
|
{
|
|
3923
|
-
"code":
|
|
3936
|
+
"code": 6042,
|
|
3924
3937
|
"name": "marketNotDisputed",
|
|
3925
3938
|
"msg": "Market resolution is not disputed"
|
|
3926
3939
|
}
|