delphi-kit 0.1.0__tar.gz → 0.1.1__tar.gz
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.
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/PKG-INFO +1 -1
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/pyproject.toml +1 -1
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/pyproject.toml.orig +1 -1
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/__init__.py +1 -1
- delphi_kit-0.1.1/src/delphi_kit/abi/LmsrGatewayV1.json +1 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/chain.py +1 -1
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/client.py +1 -1
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/networks.py +2 -2
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/README.md +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/abi/DelphiFactory.json +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/abi/DpmGateway.json +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/abi/DpmGatewayLegacy.json +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/abi/LmsrGateway.json +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/abi/LmsrMarket.json +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/abi/__init__.py +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/cli.py +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/limits.py +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/mcp_server.py +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/models.py +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/py.typed +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/search.py +0 -0
- {delphi_kit-0.1.0 → delphi_kit-0.1.1}/src/delphi_kit/watch.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: delphi-kit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Read and trade Delphi prediction markets from Python and AI agents, with no API key: every market type, quotes, trades, positions, search, alerts and an MCP server.
|
|
5
5
|
Keywords: delphi,gensyn,prediction-markets,mcp,agents,web3
|
|
6
6
|
License-Expression: MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "delphi-kit"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.1"
|
|
4
4
|
description = "Read and trade Delphi prediction markets from Python and AI agents, with no API key: every market type, quotes, trades, positions, search, alerts and an MCP server."
|
|
5
5
|
requires-python = ">=3.10"
|
|
6
6
|
readme = "README.md"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "delphi-kit"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.1"
|
|
4
4
|
description = "Read and trade Delphi prediction markets from Python and AI agents, with no API key: every market type, quotes, trades, positions, search, alerts and an MCP server."
|
|
5
5
|
requires-python = ">=3.10"
|
|
6
6
|
readme = "README.md"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"inputs": [{"internalType": "contract IERC20Metadata", "name": "token_", "type": "address"}, {"internalType": "address", "name": "owner_", "type": "address"}], "stateMutability": "nonpayable", "type": "constructor"}, {"inputs": [{"internalType": "uint256", "name": "allowance", "type": "uint256"}, {"internalType": "uint256", "name": "maxTokensIn", "type": "uint256"}], "name": "AllowanceTooLow", "type": "error"}, {"inputs": [], "name": "BuyTooSmall", "type": "error"}, {"inputs": [{"internalType": "address", "name": "caller", "type": "address"}], "name": "CallerIsNotOracleRelayer", "type": "error"}, {"inputs": [{"internalType": "address", "name": "delphiFactory", "type": "address"}], "name": "DelphiFactoryIsNotContract", "type": "error"}, {"inputs": [], "name": "DelphiFactoryIsZeroAddress", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "expInput", "type": "uint256"}, {"internalType": "uint256", "name": "maxExpInput", "type": "uint256"}], "name": "ExpInputTooBig", "type": "error"}, {"inputs": [], "name": "GatewayNotInitialized", "type": "error"}, {"inputs": [{"internalType": "address", "name": "initializer", "type": "address"}, {"internalType": "address", "name": "deployer", "type": "address"}], "name": "InitializerNotDeployer", "type": "error"}, {"inputs": [], "name": "InvalidExponent", "type": "error"}, {"inputs": [], "name": "InvalidInitialization", "type": "error"}, {"inputs": [], "name": "LnInputTooSmall", "type": "error"}, {"inputs": [], "name": "MarketNotOpen", "type": "error"}, {"inputs": [{"internalType": "address", "name": "marketProxy", "type": "address"}], "name": "MarketProxyNotDeployedByFactory", "type": "error"}, {"inputs": [], "name": "NotInitializing", "type": "error"}, {"inputs": [{"internalType": "address", "name": "oracleRelayer", "type": "address"}], "name": "OracleRelayerIsNotAContract", "type": "error"}, {"inputs": [], "name": "OracleRelayerIsZeroAddress", "type": "error"}, {"inputs": [], "name": "OracleRelayerNotSet", "type": "error"}, {"inputs": [], "name": "OutOfBounds", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "newSupply", "type": "uint256"}, {"internalType": "uint256", "name": "minDelta", "type": "uint256"}], "name": "OutcomeNewSupplyBelowMinDelta", "type": "error"}, {"inputs": [{"internalType": "address", "name": "owner", "type": "address"}], "name": "OwnableInvalidOwner", "type": "error"}, {"inputs": [{"internalType": "address", "name": "account", "type": "address"}], "name": "OwnableUnauthorizedAccount", "type": "error"}, {"inputs": [], "name": "RatioTooSmall", "type": "error"}, {"inputs": [{"internalType": "int256", "name": "value", "type": "int256"}], "name": "SafeCastOverflowedIntToUint", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "value", "type": "uint256"}], "name": "SafeCastOverflowedUintToInt", "type": "error"}, {"inputs": [], "name": "SellTooSmall", "type": "error"}, {"inputs": [{"internalType": "address", "name": "marketProxy", "type": "address"}], "name": "SettlementAlreadyLocked", "type": "error"}, {"inputs": [], "name": "SettlementNotLocked", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "sharesIn", "type": "uint256"}, {"internalType": "uint256", "name": "minDelta", "type": "uint256"}], "name": "SharesInBelowMinDelta", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "sharesIn", "type": "uint256"}, {"internalType": "uint256", "name": "supply", "type": "uint256"}], "name": "SharesInExceedSupply", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "sharesOut", "type": "uint256"}, {"internalType": "uint256", "name": "minDelta", "type": "uint256"}], "name": "SharesOutBelowMinDelta", "type": "error"}, {"inputs": [{"internalType": "uint8", "name": "decimals", "type": "uint8"}], "name": "TokenDecimalsAreTooHigh", "type": "error"}, {"inputs": [{"internalType": "uint8", "name": "decimals", "type": "uint8"}], "name": "TokenDecimalsAreTooLow", "type": "error"}, {"inputs": [{"internalType": "address", "name": "token", "type": "address"}], "name": "TokenIsNotAContract", "type": "error"}, {"inputs": [], "name": "TokenIsZeroAddress", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "tokensIn", "type": "uint256"}, {"internalType": "uint256", "name": "minTokensIn", "type": "uint256"}], "name": "TokensInBelowMinTokensDelta", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "tokensIn", "type": "uint256"}, {"internalType": "uint256", "name": "maxTokensIn", "type": "uint256"}], "name": "TokensInExceedMaxTokensIn", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "tokensOut", "type": "uint256"}, {"internalType": "uint256", "name": "minTokensOut", "type": "uint256"}], "name": "TokensOutBelowMinTokensDelta", "type": "error"}, {"inputs": [{"internalType": "uint256", "name": "tokensOut", "type": "uint256"}, {"internalType": "uint256", "name": "minTokensOut", "type": "uint256"}], "name": "TokensOutBelowMinTokensOut", "type": "error"}, {"inputs": [], "name": "ZeroSharesIn", "type": "error"}, {"inputs": [], "name": "ZeroSharesOut", "type": "error"}, {"inputs": [], "name": "ZeroTokensIn", "type": "error"}, {"inputs": [], "name": "ZeroTokensOut", "type": "error"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"indexed": true, "internalType": "address", "name": "buyer", "type": "address"}, {"indexed": true, "internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "tokensIn", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "sharesOut", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "name": "GatewayBuy", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"indexed": true, "internalType": "address", "name": "liquidator", "type": "address"}, {"indexed": false, "internalType": "uint256[]", "name": "outcomeIndices", "type": "uint256[]"}, {"indexed": false, "internalType": "uint256[]", "name": "sharesIn", "type": "uint256[]"}, {"indexed": false, "internalType": "uint256", "name": "totalTokensOut", "type": "uint256"}], "name": "GatewayLiquidation", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "marketProxy", "type": "address"}], "name": "GatewayMarketFailed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "marketProxy", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "winningOutcomeIdx", "type": "uint256"}], "name": "GatewayMarketSettled", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"indexed": true, "internalType": "address", "name": "redeemer", "type": "address"}, {"indexed": false, "internalType": "uint256", "name": "sharesIn", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "tokensOut", "type": "uint256"}], "name": "GatewayRedemption", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"indexed": true, "internalType": "address", "name": "seller", "type": "address"}, {"indexed": true, "internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "sharesIn", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "tokensOut", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"indexed": false, "internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "name": "GatewaySell", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "internalType": "uint64", "name": "version", "type": "uint64"}], "name": "Initialized", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "marketProxy", "type": "address"}, {"indexed": true, "internalType": "address", "name": "keeper", "type": "address"}], "name": "MarketResolutionRequested", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "previousRelayer", "type": "address"}, {"indexed": true, "internalType": "address", "name": "newRelayer", "type": "address"}], "name": "OracleRelayerSet", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "previousOwner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "newOwner", "type": "address"}], "name": "OwnershipTransferStarted", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "internalType": "address", "name": "previousOwner", "type": "address"}, {"indexed": true, "internalType": "address", "name": "newOwner", "type": "address"}], "name": "OwnershipTransferred", "type": "event"}, {"inputs": [], "name": "MIN_SHARES_DELTA", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "MIN_TOKENS_DELTA", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "TOKEN", "outputs": [{"internalType": "contract IERC20Metadata", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "TOKEN_DECIMAL_SCALER", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "address", "name": "spender", "type": "address"}, {"internalType": "uint256", "name": "id", "type": "uint256"}], "name": "allowance", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "address", "name": "owner", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}], "name": "balanceOf", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "address[]", "name": "owners", "type": "address[]"}, {"internalType": "uint256[]", "name": "outcomeIndices", "type": "uint256[]"}], "name": "batchBalanceOf", "outputs": [{"internalType": "uint256[]", "name": "", "type": "uint256[]"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"internalType": "uint256", "name": "sharesOut", "type": "uint256"}, {"internalType": "uint256", "name": "maxTokensIn", "type": "uint256"}], "name": "buyExactOut", "outputs": [{"internalType": "uint256", "name": "tokensIn", "type": "uint256"}, {"internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"internalType": "uint256", "name": "sharesOut", "type": "uint256"}, {"internalType": "uint256", "name": "maxTokensIn", "type": "uint256"}, {"internalType": "uint256", "name": "deadline", "type": "uint256"}, {"internalType": "uint8", "name": "v", "type": "uint8"}, {"internalType": "bytes32", "name": "r", "type": "bytes32"}, {"internalType": "bytes32", "name": "s", "type": "bytes32"}], "name": "buyExactOutWithPermit", "outputs": [{"internalType": "uint256", "name": "tokensIn", "type": "uint256"}, {"internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "delphiFactory", "outputs": [{"internalType": "contract IDelphiFactory", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "marketProxy", "type": "address"}], "name": "failMarket", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "getMarket", "outputs": [{"components": [{"components": [{"internalType": "uint256", "name": "outcomeCount", "type": "uint256"}, {"internalType": "uint256", "name": "b", "type": "uint256"}, {"internalType": "uint256", "name": "tradingFee", "type": "uint256"}, {"internalType": "uint256", "name": "tradingDeadline", "type": "uint256"}, {"internalType": "uint256", "name": "settlementDeadline", "type": "uint256"}], "internalType": "struct ILmsrMarketTypes.MarketConfig", "name": "config", "type": "tuple"}, {"internalType": "uint256", "name": "pool", "type": "uint256"}, {"internalType": "uint256", "name": "tradingFees", "type": "uint256"}, {"internalType": "uint256", "name": "expSum", "type": "uint256"}, {"internalType": "uint256", "name": "winningOutcomeIdx", "type": "uint256"}], "internalType": "struct ILmsrMarketTypes.Market", "name": "", "type": "tuple"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract IDelphiFactory", "name": "delphiFactory_", "type": "address"}], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "address", "name": "operator", "type": "address"}, {"internalType": "address", "name": "spender", "type": "address"}], "name": "isOperator", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256[]", "name": "outcomeIndices", "type": "uint256[]"}], "name": "liquidate", "outputs": [{"internalType": "uint256[]", "name": "sharesIn", "type": "uint256[]"}, {"internalType": "uint256", "name": "totalTokensOut", "type": "uint256"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "marketCreator", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "marketMetadata", "outputs": [{"components": [{"internalType": "string", "name": "uri", "type": "string"}, {"internalType": "bytes32", "name": "uriContentHash", "type": "bytes32"}], "internalType": "struct IDelphiMarket.VerifiableUri", "name": "", "type": "tuple"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "marketStatus", "outputs": [{"internalType": "enum ILmsrMarketTypes.MarketStatus", "name": "", "type": "uint8"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "maxB", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "maxOutcomeCount", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "maxSettlementWindow", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "maxTradingFee", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "maxTradingWindow", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "minB", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "minOutcomeCount", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "minSettlementWindow", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "minTradingFee", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "minTradingWindow", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "oracleRelayer", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "outcomeSuppliesSum", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "owner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [], "name": "pendingOwner", "outputs": [{"internalType": "address", "name": "", "type": "address"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"internalType": "uint256", "name": "sharesOut", "type": "uint256"}], "name": "quoteBuyExactOut", "outputs": [{"internalType": "uint256", "name": "tokensIn", "type": "uint256"}, {"internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"internalType": "uint256", "name": "sharesIn", "type": "uint256"}], "name": "quoteSellExactIn", "outputs": [{"internalType": "uint256", "name": "tokensOut", "type": "uint256"}, {"internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "redeem", "outputs": [{"internalType": "uint256", "name": "sharesIn", "type": "uint256"}, {"internalType": "uint256", "name": "tokensOut", "type": "uint256"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "marketProxy", "type": "address"}], "name": "resolveMarket", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}, {"internalType": "uint256", "name": "sharesIn", "type": "uint256"}, {"internalType": "uint256", "name": "minTokensOut", "type": "uint256"}], "name": "sellExactIn", "outputs": [{"internalType": "uint256", "name": "tokensOut", "type": "uint256"}, {"internalType": "uint256", "name": "outcomeNewExp", "type": "uint256"}, {"internalType": "uint256", "name": "newExpSum", "type": "uint256"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "oracleRelayer_", "type": "address"}], "name": "setOracleRelayer", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "winningOutcomeIdx", "type": "uint256"}, {"internalType": "address", "name": "oracleFeeRecipient", "type": "address"}], "name": "settleMarket", "outputs": [{"internalType": "uint256", "name": "losingPayout", "type": "uint256"}, {"internalType": "uint256", "name": "tradingFeesRecipientTradingFeesCut", "type": "uint256"}, {"internalType": "uint256", "name": "marketCreatorTradingFeesCut", "type": "uint256"}], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "address", "name": "marketProxy", "type": "address"}], "name": "settlementLocked", "outputs": [{"internalType": "bool", "name": "", "type": "bool"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256[]", "name": "outcomeIndices", "type": "uint256[]"}], "name": "spotImpliedProbabilities", "outputs": [{"internalType": "uint256[]", "name": "", "type": "uint256[]"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}], "name": "spotImpliedProbability", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}], "name": "spotPrice", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256[]", "name": "outcomeIndices", "type": "uint256[]"}], "name": "spotPrices", "outputs": [{"internalType": "uint256[]", "name": "", "type": "uint256[]"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256[]", "name": "outcomeIndices", "type": "uint256[]"}], "name": "totalSupplies", "outputs": [{"internalType": "uint256[]", "name": "", "type": "uint256[]"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}, {"internalType": "uint256", "name": "outcomeIdx", "type": "uint256"}], "name": "totalSupply", "outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}], "stateMutability": "view", "type": "function"}, {"inputs": [{"internalType": "address", "name": "newOwner", "type": "address"}], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function"}, {"inputs": [{"internalType": "contract ILmsrMarket", "name": "marketProxy", "type": "address"}], "name": "trySweep", "outputs": [], "stateMutability": "nonpayable", "type": "function"}]
|
|
@@ -33,7 +33,7 @@ MULTICALL3_ABI = [
|
|
|
33
33
|
{"name": "success", "type": "bool"}, {"name": "returnData", "type": "bytes"}]}]},
|
|
34
34
|
]
|
|
35
35
|
|
|
36
|
-
ABI_FILE = {"lmsr": "LmsrGateway.json", "dpm": "DpmGateway.json", "dpm_legacy": "DpmGatewayLegacy.json",
|
|
36
|
+
ABI_FILE = {"lmsr": "LmsrGateway.json", "lmsr_v1": "LmsrGatewayV1.json", "dpm": "DpmGateway.json", "dpm_legacy": "DpmGatewayLegacy.json",
|
|
37
37
|
"factory": "DelphiFactory.json", "lmsr_market": "LmsrMarket.json"}
|
|
38
38
|
|
|
39
39
|
|
|
@@ -183,7 +183,7 @@ class Delphi:
|
|
|
183
183
|
out.append(Market(
|
|
184
184
|
address=checksum(a),
|
|
185
185
|
deployment=dep.name,
|
|
186
|
-
mechanism="lmsr" if dep.kind
|
|
186
|
+
mechanism="lmsr" if dep.kind.startswith("lmsr") else "dpm",
|
|
187
187
|
status=STATUSES[st] if isinstance(st, int) else "unknown",
|
|
188
188
|
question=(meta or {}).get("question"),
|
|
189
189
|
outcomes=outcomes if len(outcomes) == n else (outcomes or [f"Outcome {j}" for j in range(n)]),
|
|
@@ -15,7 +15,7 @@ from dataclasses import dataclass, field
|
|
|
15
15
|
@dataclass(frozen=True)
|
|
16
16
|
class Deployment:
|
|
17
17
|
name: str # short label, e.g. "lmsr"
|
|
18
|
-
kind: str # "lmsr" | "dpm" | "dpm_legacy" (selects the ABI)
|
|
18
|
+
kind: str # "lmsr" | "lmsr_v1" | "dpm" | "dpm_legacy" (selects the ABI)
|
|
19
19
|
factory: str
|
|
20
20
|
gateway: str
|
|
21
21
|
note: str = ""
|
|
@@ -84,7 +84,7 @@ NETWORKS: dict[str, Network] = {
|
|
|
84
84
|
explorer_url="https://gensyn-testnet.explorer.alchemy.com",
|
|
85
85
|
app_url="https://agent-competition.gensyn.ai",
|
|
86
86
|
deployments=(
|
|
87
|
-
Deployment("lmsr", "
|
|
87
|
+
Deployment("lmsr", "lmsr_v1", "0xEa9D0a78d0209916e88e363B8FDa3e23206Ff49b",
|
|
88
88
|
"0x097599c9D966fF496284b892A8F13BF885b258ef", "Agent competition."),
|
|
89
89
|
),
|
|
90
90
|
),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|