@agg-build/sdk 4.13.1 → 4.15.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/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
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[];
|
|
@@ -2993,6 +2999,8 @@ interface PlaceLimitOrderParams {
|
|
|
2993
2999
|
signingAddress?: string;
|
|
2994
3000
|
/** Same bridge approval mode as market fills; defaults to sponsored. */
|
|
2995
3001
|
approveMode?: ExecuteManagedParams["approveMode"];
|
|
3002
|
+
/** Self-custody buys only: other wallets linked to this account whose balances may bridge in to fund the order. Requires signingAddress. */
|
|
3003
|
+
fundingAddresses?: string[];
|
|
2996
3004
|
}
|
|
2997
3005
|
interface PlaceLimitOrderResponse {
|
|
2998
3006
|
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[];
|
|
@@ -2993,6 +2999,8 @@ interface PlaceLimitOrderParams {
|
|
|
2993
2999
|
signingAddress?: string;
|
|
2994
3000
|
/** Same bridge approval mode as market fills; defaults to sponsored. */
|
|
2995
3001
|
approveMode?: ExecuteManagedParams["approveMode"];
|
|
3002
|
+
/** Self-custody buys only: other wallets linked to this account whose balances may bridge in to fund the order. Requires signingAddress. */
|
|
3003
|
+
fundingAddresses?: string[];
|
|
2996
3004
|
}
|
|
2997
3005
|
interface PlaceLimitOrderResponse {
|
|
2998
3006
|
orderId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.1",
|
|
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",
|