@agg-build/sdk 4.15.0 → 4.15.2

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/index.d.mts CHANGED
@@ -693,6 +693,8 @@ type VenueMarket = {
693
693
  title?: string | null | undefined;
694
694
  externalIdentifier?: string | null | undefined;
695
695
  winner?: boolean | null | undefined;
696
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
697
+ payoutPerShare?: number | null | undefined;
696
698
  /** Counterpart outcomes on matched sibling markets — only populated
697
699
  * on the parent (queried) market's outcomes. Each entry is a
698
700
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -749,6 +751,8 @@ type VenueMarket = {
749
751
  venueMarketId: string;
750
752
  label: string;
751
753
  winner?: boolean | null | undefined;
754
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
755
+ payoutPerShare?: number | null | undefined;
752
756
  }[] | undefined;
753
757
  volume?: number | null | undefined;
754
758
  venueEvent?: {
@@ -939,6 +943,8 @@ type VenueMarketOutcome = {
939
943
  title?: string | null | undefined;
940
944
  externalIdentifier?: string | null | undefined;
941
945
  winner?: boolean | null | undefined;
946
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
947
+ payoutPerShare?: number | null | undefined;
942
948
  /** Counterpart outcomes on matched sibling markets — only populated on
943
949
  * the parent (queried) market's outcomes. */
944
950
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
@@ -3024,6 +3030,10 @@ interface PlaceOrderParams {
3024
3030
  externalId: string;
3025
3031
  /** Slippage cap in bps. Defaults to 500 (5%). Set explicitly on sells. */
3026
3032
  slipCapBps?: number;
3033
+ /** Restrict funding to these chain IDs. Omit to allow every funded chain. */
3034
+ allowedSourceChainIds?: number[];
3035
+ /** USD budgets capped by refreshed wallet balances; omitted chains cannot fund. */
3036
+ chainBalances?: Record<string, number>;
3027
3037
  }
3028
3038
  interface PlaceOrderResponse {
3029
3039
  orderId: string;
package/dist/index.d.ts CHANGED
@@ -693,6 +693,8 @@ type VenueMarket = {
693
693
  title?: string | null | undefined;
694
694
  externalIdentifier?: string | null | undefined;
695
695
  winner?: boolean | null | undefined;
696
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
697
+ payoutPerShare?: number | null | undefined;
696
698
  /** Counterpart outcomes on matched sibling markets — only populated
697
699
  * on the parent (queried) market's outcomes. Each entry is a
698
700
  * `{ venueMarketId, venueMarketOutcomeId }` ref into the same
@@ -749,6 +751,8 @@ type VenueMarket = {
749
751
  venueMarketId: string;
750
752
  label: string;
751
753
  winner?: boolean | null | undefined;
754
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
755
+ payoutPerShare?: number | null | undefined;
752
756
  }[] | undefined;
753
757
  volume?: number | null | undefined;
754
758
  venueEvent?: {
@@ -939,6 +943,8 @@ type VenueMarketOutcome = {
939
943
  title?: string | null | undefined;
940
944
  externalIdentifier?: string | null | undefined;
941
945
  winner?: boolean | null | undefined;
946
+ /** Per-share USDC payout of this outcome in [0, 1] once settled; source of truth over `winner` when set. */
947
+ payoutPerShare?: number | null | undefined;
942
948
  /** Counterpart outcomes on matched sibling markets — only populated on
943
949
  * the parent (queried) market's outcomes. */
944
950
  matchedVenueMarketOutcomes?: MatchedVenueMarketOutcomeRef[];
@@ -3024,6 +3030,10 @@ interface PlaceOrderParams {
3024
3030
  externalId: string;
3025
3031
  /** Slippage cap in bps. Defaults to 500 (5%). Set explicitly on sells. */
3026
3032
  slipCapBps?: number;
3033
+ /** Restrict funding to these chain IDs. Omit to allow every funded chain. */
3034
+ allowedSourceChainIds?: number[];
3035
+ /** USD budgets capped by refreshed wallet balances; omitted chains cannot fund. */
3036
+ chainBalances?: Record<string, number>;
3027
3037
  }
3028
3038
  interface PlaceOrderResponse {
3029
3039
  orderId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/sdk",
3
- "version": "4.15.0",
3
+ "version": "4.15.2",
4
4
  "description": "Vanilla TypeScript client for the AGG prediction market aggregator (auth, markets, orderbooks, charts, trading, managed execution, WebSockets). Works in browsers, Node.js, and React Native.",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",