@oddmaki-protocol/sdk 0.6.0 → 1.1.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/index.d.mts CHANGED
@@ -9572,6 +9572,7 @@ declare function createOddMakiClient(params: {
9572
9572
  account?: Account;
9573
9573
  transport?: any;
9574
9574
  chain?: any;
9575
+ subgraphEndpoint?: string;
9575
9576
  }): OddMakiClient;
9576
9577
 
9577
9578
  declare const CONTRACT_ADDRESSES: {
@@ -9579,45 +9580,55 @@ declare const CONTRACT_ADDRESSES: {
9579
9580
  readonly diamond: Address;
9580
9581
  readonly conditionalTokens: Address;
9581
9582
  readonly usdc: Address;
9582
- readonly subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest";
9583
+ readonly subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base-sepolia/version/latest";
9583
9584
  };
9585
+ readonly 8453: {
9586
+ readonly diamond: Address;
9587
+ readonly conditionalTokens: Address;
9588
+ readonly usdc: Address;
9589
+ readonly subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base/version/latest";
9590
+ };
9591
+ };
9592
+ declare const SUBGRAPH_IDS: {
9593
+ readonly 8453: "QmPaESDtwZvtYPx8vvAU3nHE7kZBZ121XQCiPxM4bQauGh";
9584
9594
  };
9595
+ declare function buildSubgraphGatewayUrl(chainId: number, apiKey: string): string | undefined;
9585
9596
  declare const DEFAULT_CHAIN: {
9586
9597
  blockExplorers: {
9587
9598
  readonly default: {
9588
9599
  readonly name: "Basescan";
9589
- readonly url: "https://sepolia.basescan.org";
9590
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
9600
+ readonly url: "https://basescan.org";
9601
+ readonly apiUrl: "https://api.basescan.org/api";
9591
9602
  };
9592
9603
  };
9593
9604
  blockTime: 2000;
9594
9605
  contracts: {
9595
9606
  readonly disputeGameFactory: {
9596
- readonly 11155111: {
9597
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
9607
+ readonly 1: {
9608
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
9598
9609
  };
9599
9610
  };
9600
9611
  readonly l2OutputOracle: {
9601
- readonly 11155111: {
9602
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
9612
+ readonly 1: {
9613
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
9603
9614
  };
9604
9615
  };
9616
+ readonly multicall3: {
9617
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
9618
+ readonly blockCreated: 5022;
9619
+ };
9605
9620
  readonly portal: {
9606
- readonly 11155111: {
9607
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
9608
- readonly blockCreated: 4446677;
9621
+ readonly 1: {
9622
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
9623
+ readonly blockCreated: 17482143;
9609
9624
  };
9610
9625
  };
9611
9626
  readonly l1StandardBridge: {
9612
- readonly 11155111: {
9613
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
9614
- readonly blockCreated: 4446677;
9627
+ readonly 1: {
9628
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
9629
+ readonly blockCreated: 17482143;
9615
9630
  };
9616
9631
  };
9617
- readonly multicall3: {
9618
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
9619
- readonly blockCreated: 1059647;
9620
- };
9621
9632
  readonly gasPriceOracle: {
9622
9633
  readonly address: "0x420000000000000000000000000000000000000F";
9623
9634
  };
@@ -9638,21 +9649,21 @@ declare const DEFAULT_CHAIN: {
9638
9649
  };
9639
9650
  };
9640
9651
  ensTlds?: readonly string[] | undefined;
9641
- id: 84532;
9642
- name: "Base Sepolia";
9652
+ id: 8453;
9653
+ name: "Base";
9643
9654
  nativeCurrency: {
9644
- readonly name: "Sepolia Ether";
9655
+ readonly name: "Ether";
9645
9656
  readonly symbol: "ETH";
9646
9657
  readonly decimals: 18;
9647
9658
  };
9648
9659
  experimental_preconfirmationTime?: number | undefined | undefined;
9649
9660
  rpcUrls: {
9650
9661
  readonly default: {
9651
- readonly http: readonly ["https://sepolia.base.org"];
9662
+ readonly http: readonly ["https://mainnet.base.org"];
9652
9663
  };
9653
9664
  };
9654
- sourceId: 11155111;
9655
- testnet: true;
9665
+ sourceId: 1;
9666
+ testnet?: boolean | undefined | undefined;
9656
9667
  custom?: Record<string, unknown> | undefined;
9657
9668
  fees?: viem.ChainFees<undefined> | undefined;
9658
9669
  formatters: {
@@ -9889,7 +9900,6 @@ declare const DEFAULT_CHAIN: {
9889
9900
  serializers: {
9890
9901
  readonly transaction: typeof viem_chains.serializeTransactionOpStack;
9891
9902
  };
9892
- readonly network: "base-sepolia";
9893
9903
  };
9894
9904
 
9895
9905
  /**
@@ -17318,4 +17328,4 @@ declare function parseMetadata<T extends {
17318
17328
 
17319
17329
  declare const version = "0.1.0";
17320
17330
 
17321
- export { AccessControlFacet as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet as BatchOrdersFacetABI, CONTRACT_ADDRESSES, type ChancePercentInput, ConditionalTokens as ConditionalTokensABI, DEFAULT_CHAIN, ERC20 as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet as LimitOrdersFacetABI, MarketGroupFacet as MarketGroupFacetABI, type MarketMetadata, MarketModule, MarketOrdersFacet as MarketOrdersFacetABI, type MarketQuestion, MarketsFacet as MarketsFacetABI, MatchingFacet as MatchingFacetABI, MetadataFacet as MetadataFacetABI, NegRiskFacet as NegRiskFacetABI, OddMakiClient, type OddMakiClientConfig, type OddMakiConfig, OrderBookFacet as OrderBookFacetABI, PROTOCOL_FEES, type PriceMarketData, PriceMarketFacet as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet as ProtocolFacetABI, PublicModule, PythResolutionFacet as PythResolutionFacetABI, type PythUpdate, ResolutionFacet as ResolutionFacetABI, SubgraphClient, type SubgraphMarketPriceData, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet as TagsFacetABI, TokenModule, type TopOfBookEntry, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle as UmaOracleABI, VALID_TICK_SIZES, VaultFacet as VaultFacetABI, VenueFacet as VenueFacetABI, type VenueMetadata, VenueModule, WhitelistAccessControl as WhitelistAccessControlABI, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
17331
+ export { AccessControlFacet as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet as BatchOrdersFacetABI, CONTRACT_ADDRESSES, type ChancePercentInput, ConditionalTokens as ConditionalTokensABI, DEFAULT_CHAIN, ERC20 as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet as LimitOrdersFacetABI, MarketGroupFacet as MarketGroupFacetABI, type MarketMetadata, MarketModule, MarketOrdersFacet as MarketOrdersFacetABI, type MarketQuestion, MarketsFacet as MarketsFacetABI, MatchingFacet as MatchingFacetABI, MetadataFacet as MetadataFacetABI, NegRiskFacet as NegRiskFacetABI, OddMakiClient, type OddMakiClientConfig, type OddMakiConfig, OrderBookFacet as OrderBookFacetABI, PROTOCOL_FEES, type PriceMarketData, PriceMarketFacet as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet as ProtocolFacetABI, PublicModule, PythResolutionFacet as PythResolutionFacetABI, type PythUpdate, ResolutionFacet as ResolutionFacetABI, SUBGRAPH_IDS, SubgraphClient, type SubgraphMarketPriceData, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet as TagsFacetABI, TokenModule, type TopOfBookEntry, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle as UmaOracleABI, VALID_TICK_SIZES, VaultFacet as VaultFacetABI, VenueFacet as VenueFacetABI, type VenueMetadata, VenueModule, WhitelistAccessControl as WhitelistAccessControlABI, buildSubgraphGatewayUrl, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
package/dist/index.d.ts CHANGED
@@ -9572,6 +9572,7 @@ declare function createOddMakiClient(params: {
9572
9572
  account?: Account;
9573
9573
  transport?: any;
9574
9574
  chain?: any;
9575
+ subgraphEndpoint?: string;
9575
9576
  }): OddMakiClient;
9576
9577
 
9577
9578
  declare const CONTRACT_ADDRESSES: {
@@ -9579,45 +9580,55 @@ declare const CONTRACT_ADDRESSES: {
9579
9580
  readonly diamond: Address;
9580
9581
  readonly conditionalTokens: Address;
9581
9582
  readonly usdc: Address;
9582
- readonly subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest";
9583
+ readonly subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base-sepolia/version/latest";
9583
9584
  };
9585
+ readonly 8453: {
9586
+ readonly diamond: Address;
9587
+ readonly conditionalTokens: Address;
9588
+ readonly usdc: Address;
9589
+ readonly subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base/version/latest";
9590
+ };
9591
+ };
9592
+ declare const SUBGRAPH_IDS: {
9593
+ readonly 8453: "QmPaESDtwZvtYPx8vvAU3nHE7kZBZ121XQCiPxM4bQauGh";
9584
9594
  };
9595
+ declare function buildSubgraphGatewayUrl(chainId: number, apiKey: string): string | undefined;
9585
9596
  declare const DEFAULT_CHAIN: {
9586
9597
  blockExplorers: {
9587
9598
  readonly default: {
9588
9599
  readonly name: "Basescan";
9589
- readonly url: "https://sepolia.basescan.org";
9590
- readonly apiUrl: "https://api-sepolia.basescan.org/api";
9600
+ readonly url: "https://basescan.org";
9601
+ readonly apiUrl: "https://api.basescan.org/api";
9591
9602
  };
9592
9603
  };
9593
9604
  blockTime: 2000;
9594
9605
  contracts: {
9595
9606
  readonly disputeGameFactory: {
9596
- readonly 11155111: {
9597
- readonly address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1";
9607
+ readonly 1: {
9608
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
9598
9609
  };
9599
9610
  };
9600
9611
  readonly l2OutputOracle: {
9601
- readonly 11155111: {
9602
- readonly address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254";
9612
+ readonly 1: {
9613
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
9603
9614
  };
9604
9615
  };
9616
+ readonly multicall3: {
9617
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
9618
+ readonly blockCreated: 5022;
9619
+ };
9605
9620
  readonly portal: {
9606
- readonly 11155111: {
9607
- readonly address: "0x49f53e41452c74589e85ca1677426ba426459e85";
9608
- readonly blockCreated: 4446677;
9621
+ readonly 1: {
9622
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
9623
+ readonly blockCreated: 17482143;
9609
9624
  };
9610
9625
  };
9611
9626
  readonly l1StandardBridge: {
9612
- readonly 11155111: {
9613
- readonly address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120";
9614
- readonly blockCreated: 4446677;
9627
+ readonly 1: {
9628
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
9629
+ readonly blockCreated: 17482143;
9615
9630
  };
9616
9631
  };
9617
- readonly multicall3: {
9618
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
9619
- readonly blockCreated: 1059647;
9620
- };
9621
9632
  readonly gasPriceOracle: {
9622
9633
  readonly address: "0x420000000000000000000000000000000000000F";
9623
9634
  };
@@ -9638,21 +9649,21 @@ declare const DEFAULT_CHAIN: {
9638
9649
  };
9639
9650
  };
9640
9651
  ensTlds?: readonly string[] | undefined;
9641
- id: 84532;
9642
- name: "Base Sepolia";
9652
+ id: 8453;
9653
+ name: "Base";
9643
9654
  nativeCurrency: {
9644
- readonly name: "Sepolia Ether";
9655
+ readonly name: "Ether";
9645
9656
  readonly symbol: "ETH";
9646
9657
  readonly decimals: 18;
9647
9658
  };
9648
9659
  experimental_preconfirmationTime?: number | undefined | undefined;
9649
9660
  rpcUrls: {
9650
9661
  readonly default: {
9651
- readonly http: readonly ["https://sepolia.base.org"];
9662
+ readonly http: readonly ["https://mainnet.base.org"];
9652
9663
  };
9653
9664
  };
9654
- sourceId: 11155111;
9655
- testnet: true;
9665
+ sourceId: 1;
9666
+ testnet?: boolean | undefined | undefined;
9656
9667
  custom?: Record<string, unknown> | undefined;
9657
9668
  fees?: viem.ChainFees<undefined> | undefined;
9658
9669
  formatters: {
@@ -9889,7 +9900,6 @@ declare const DEFAULT_CHAIN: {
9889
9900
  serializers: {
9890
9901
  readonly transaction: typeof viem_chains.serializeTransactionOpStack;
9891
9902
  };
9892
- readonly network: "base-sepolia";
9893
9903
  };
9894
9904
 
9895
9905
  /**
@@ -17318,4 +17328,4 @@ declare function parseMetadata<T extends {
17318
17328
 
17319
17329
  declare const version = "0.1.0";
17320
17330
 
17321
- export { AccessControlFacet as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet as BatchOrdersFacetABI, CONTRACT_ADDRESSES, type ChancePercentInput, ConditionalTokens as ConditionalTokensABI, DEFAULT_CHAIN, ERC20 as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet as LimitOrdersFacetABI, MarketGroupFacet as MarketGroupFacetABI, type MarketMetadata, MarketModule, MarketOrdersFacet as MarketOrdersFacetABI, type MarketQuestion, MarketsFacet as MarketsFacetABI, MatchingFacet as MatchingFacetABI, MetadataFacet as MetadataFacetABI, NegRiskFacet as NegRiskFacetABI, OddMakiClient, type OddMakiClientConfig, type OddMakiConfig, OrderBookFacet as OrderBookFacetABI, PROTOCOL_FEES, type PriceMarketData, PriceMarketFacet as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet as ProtocolFacetABI, PublicModule, PythResolutionFacet as PythResolutionFacetABI, type PythUpdate, ResolutionFacet as ResolutionFacetABI, SubgraphClient, type SubgraphMarketPriceData, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet as TagsFacetABI, TokenModule, type TopOfBookEntry, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle as UmaOracleABI, VALID_TICK_SIZES, VaultFacet as VaultFacetABI, VenueFacet as VenueFacetABI, type VenueMetadata, VenueModule, WhitelistAccessControl as WhitelistAccessControlABI, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
17331
+ export { AccessControlFacet as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet as BatchOrdersFacetABI, CONTRACT_ADDRESSES, type ChancePercentInput, ConditionalTokens as ConditionalTokensABI, DEFAULT_CHAIN, ERC20 as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet as LimitOrdersFacetABI, MarketGroupFacet as MarketGroupFacetABI, type MarketMetadata, MarketModule, MarketOrdersFacet as MarketOrdersFacetABI, type MarketQuestion, MarketsFacet as MarketsFacetABI, MatchingFacet as MatchingFacetABI, MetadataFacet as MetadataFacetABI, NegRiskFacet as NegRiskFacetABI, OddMakiClient, type OddMakiClientConfig, type OddMakiConfig, OrderBookFacet as OrderBookFacetABI, PROTOCOL_FEES, type PriceMarketData, PriceMarketFacet as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet as ProtocolFacetABI, PublicModule, PythResolutionFacet as PythResolutionFacetABI, type PythUpdate, ResolutionFacet as ResolutionFacetABI, SUBGRAPH_IDS, SubgraphClient, type SubgraphMarketPriceData, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet as TagsFacetABI, TokenModule, type TopOfBookEntry, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle as UmaOracleABI, VALID_TICK_SIZES, VaultFacet as VaultFacetABI, VenueFacet as VenueFacetABI, type VenueMetadata, VenueModule, WhitelistAccessControl as WhitelistAccessControlABI, buildSubgraphGatewayUrl, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
package/dist/index.js CHANGED
@@ -10,10 +10,23 @@ var CONTRACT_ADDRESSES = {
10
10
  diamond: "0x31a4126aec35b36d46dd371eb0f0d5b71e1c2292",
11
11
  conditionalTokens: "0x7364747372Ac4a175B5326f5B2C9CB1C271d32e8",
12
12
  usdc: "0x1d3caa0156e8e573814b78766ba7958d7e11488b",
13
- subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki/version/latest"
13
+ subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base-sepolia/version/latest"
14
+ },
15
+ [chains.base.id]: {
16
+ diamond: "0x025d086a62d93e24f3cb3f161612ca8e9530127d",
17
+ conditionalTokens: "0x3e2ae408ca03f27849edff32d107c7b8ea5c87b4",
18
+ usdc: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
19
+ subgraph: "https://api.studio.thegraph.com/query/1716020/oddmaki-base/version/latest"
14
20
  }
15
21
  };
16
- var DEFAULT_CHAIN = chains.baseSepolia;
22
+ var SUBGRAPH_IDS = {
23
+ [chains.base.id]: "QmPaESDtwZvtYPx8vvAU3nHE7kZBZ121XQCiPxM4bQauGh"
24
+ };
25
+ function buildSubgraphGatewayUrl(chainId, apiKey) {
26
+ const id = SUBGRAPH_IDS[chainId];
27
+ return id ? `https://gateway.thegraph.com/api/${apiKey}/subgraphs/id/${id}` : void 0;
28
+ }
29
+ var DEFAULT_CHAIN = chains.base;
17
30
  var SubgraphClient = class {
18
31
  constructor(endpoint) {
19
32
  this.client = new graphqlRequest.GraphQLClient(endpoint);
@@ -11267,7 +11280,7 @@ function createOddMakiClient(params) {
11267
11280
  transport,
11268
11281
  diamondAddress: addresses.diamond,
11269
11282
  conditionalTokensAddress: addresses.conditionalTokens,
11270
- subgraphEndpoint: addresses.subgraph,
11283
+ subgraphEndpoint: params.subgraphEndpoint ?? addresses.subgraph,
11271
11284
  publicClient,
11272
11285
  walletClient
11273
11286
  };
@@ -11296,8 +11309,8 @@ function resolveIPFSUri(uri, gateway) {
11296
11309
  if (!uri) return "";
11297
11310
  const gw = gateway || DEFAULT_IPFS_GATEWAY;
11298
11311
  if (uri.startsWith("ipfs://")) {
11299
- const base = gw.endsWith("/") ? gw : `${gw}/`;
11300
- const gateway2 = base.includes("/ipfs/") ? base : `${base}ipfs/`;
11312
+ const base2 = gw.endsWith("/") ? gw : `${gw}/`;
11313
+ const gateway2 = base2.includes("/ipfs/") ? base2 : `${base2}ipfs/`;
11301
11314
  return `${gateway2}${uri.slice(7)}`;
11302
11315
  }
11303
11316
  return uri;
@@ -11370,6 +11383,7 @@ exports.ProtocolFacetABI = ProtocolFacet_default;
11370
11383
  exports.PublicModule = PublicModule;
11371
11384
  exports.PythResolutionFacetABI = PythResolutionFacet_default;
11372
11385
  exports.ResolutionFacetABI = ResolutionFacet_default;
11386
+ exports.SUBGRAPH_IDS = SUBGRAPH_IDS;
11373
11387
  exports.SubgraphClient = SubgraphClient;
11374
11388
  exports.TICK_SIZE_FINE = TICK_SIZE_FINE;
11375
11389
  exports.TICK_SIZE_STANDARD = TICK_SIZE_STANDARD;
@@ -11384,6 +11398,7 @@ exports.VaultFacetABI = VaultFacet_default;
11384
11398
  exports.VenueFacetABI = VenueFacet_default;
11385
11399
  exports.VenueModule = VenueModule;
11386
11400
  exports.WhitelistAccessControlABI = WhitelistAccessControl_default;
11401
+ exports.buildSubgraphGatewayUrl = buildSubgraphGatewayUrl;
11387
11402
  exports.calculateChancePercent = calculateChancePercent;
11388
11403
  exports.clearDecimalsCache = clearDecimalsCache;
11389
11404
  exports.createExpiry = createExpiry;