├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierignore ├── .prettierrc.js ├── LICENSE ├── README.md ├── abis ├── ConditionalTokens.json ├── ERC20.json ├── ERC20Detailed.json ├── Exchange.json ├── FixedProductMarketMaker.json ├── FixedProductMarketMakerFactory.json ├── NegRiskAdapter.json ├── ProxyWalletFactory.json ├── RelayHub.json ├── SafeProxyFactory.json └── UmaSportsOracle.json ├── activity-subgraph ├── schema.graphql ├── src │ ├── ConditionalTokensMapping.ts │ ├── FixedProductMarketMakerFactoryMapping.ts │ └── NegRiskAdapterMapping.ts └── subgraph.template.yaml ├── common ├── constants.template.ts ├── index.ts └── utils │ ├── computeCreate2Address.ts │ ├── computeProxyWalletAddress.ts │ ├── ctf-utils.ts │ ├── getConditionId.ts │ ├── getEventKey.ts │ ├── getNegRiskConditionId.ts │ ├── getNegRiskPositionId.ts │ ├── getNegRiskQuestionId.ts │ ├── getPositionId.ts │ ├── getUserPositionEntityId.ts │ └── indexSetContains.ts ├── docker-compose.yml ├── fpmm-subgraph ├── README.md ├── schema.graphql ├── src │ ├── ConditionalTokensMapping.ts │ ├── FixedProductMarketMakerFactoryMapping.ts │ ├── FixedProductMarketMakerMapping.ts │ ├── empty.ts │ └── utils │ │ ├── collateralTokens.ts │ │ ├── constants.ts │ │ ├── fpmm-utils.ts │ │ ├── maths.ts │ │ ├── nth-root.ts │ │ └── time.ts └── subgraph.template.yaml ├── matchstick.yaml ├── networks.yaml ├── oi-subgraph ├── README.md ├── schema.graphql ├── src │ ├── ConditionalTokensMapping.ts │ ├── NegRiskAdapterMapping.ts │ └── oi-utils.ts └── subgraph.template.yaml ├── orderbook-subgraph ├── README.md ├── schema.graphql ├── src │ ├── ExchangeMapping.ts │ └── utils │ │ ├── constants.ts │ │ └── order-book-utils.ts └── subgraph.template.yaml ├── package.json ├── pnl-subgraph ├── notes.md ├── schema.graphql ├── src │ ├── ConditionalTokensMapping.ts │ ├── ExchangeMapping.ts │ ├── FixedProductMarketMakerFactoryMapping.ts │ ├── FixedProductMarketMakerMapping.ts │ ├── NegRiskAdapterMapping.ts │ └── utils │ │ ├── computeFpmmPrice.ts │ │ ├── computeNegRiskYesPrice.ts │ │ ├── createCondition.ts │ │ ├── loadCondition.ts │ │ ├── loadOrCreateUserPosition.ts │ │ ├── parseFundingAddedSendback.ts │ │ ├── parseOrderFilled.ts │ │ ├── updateUserPositionWithBuy.ts │ │ └── updateUserPositionWithSell.ts └── subgraph.template.yaml ├── sports-oracle-subgraph ├── README.md ├── schema.graphql ├── src │ ├── UmaSportsOracleMapping.ts │ ├── constants.ts │ └── utils.ts └── subgraph.template.yaml ├── templatify.ts ├── tests ├── .test_schema.graphql ├── .test_subgraph.yaml ├── addressComparison.test.ts ├── computeCreate2Address.test.ts ├── computeNegRiskYesPrice.test.ts ├── computePositionId.test.ts ├── computeProxyWalletAddress.test.ts ├── fpmmPrices.test.ts ├── generateProxyWalletBytecode.test.ts ├── getCollectionId.test.ts ├── getNegRiskPositionId.test.ts ├── getNegRiskQuestionId.ts ├── getPositionId.test.ts ├── indexSetContains.test.ts ├── math.test.ts ├── sample.test.ts └── toString.test.ts ├── tsconfig.json ├── wallet-subgraph ├── schema.graphql ├── src │ ├── RelayHub.ts │ ├── SafeProxyFactory.ts │ └── USDC.ts └── subgraph.template.yaml └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- 1 | src/types -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | subgraph.template.yaml 2 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/README.md -------------------------------------------------------------------------------- /abis/ConditionalTokens.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/ConditionalTokens.json -------------------------------------------------------------------------------- /abis/ERC20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/ERC20.json -------------------------------------------------------------------------------- /abis/ERC20Detailed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/ERC20Detailed.json -------------------------------------------------------------------------------- /abis/Exchange.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/Exchange.json -------------------------------------------------------------------------------- /abis/FixedProductMarketMaker.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/FixedProductMarketMaker.json -------------------------------------------------------------------------------- /abis/FixedProductMarketMakerFactory.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/FixedProductMarketMakerFactory.json -------------------------------------------------------------------------------- /abis/NegRiskAdapter.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/NegRiskAdapter.json -------------------------------------------------------------------------------- /abis/ProxyWalletFactory.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/ProxyWalletFactory.json -------------------------------------------------------------------------------- /abis/RelayHub.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/RelayHub.json -------------------------------------------------------------------------------- /abis/SafeProxyFactory.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/SafeProxyFactory.json -------------------------------------------------------------------------------- /abis/UmaSportsOracle.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/abis/UmaSportsOracle.json -------------------------------------------------------------------------------- /activity-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/activity-subgraph/schema.graphql -------------------------------------------------------------------------------- /activity-subgraph/src/ConditionalTokensMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/activity-subgraph/src/ConditionalTokensMapping.ts -------------------------------------------------------------------------------- /activity-subgraph/src/FixedProductMarketMakerFactoryMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/activity-subgraph/src/FixedProductMarketMakerFactoryMapping.ts -------------------------------------------------------------------------------- /activity-subgraph/src/NegRiskAdapterMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/activity-subgraph/src/NegRiskAdapterMapping.ts -------------------------------------------------------------------------------- /activity-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/activity-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /common/constants.template.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/constants.template.ts -------------------------------------------------------------------------------- /common/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/index.ts -------------------------------------------------------------------------------- /common/utils/computeCreate2Address.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/computeCreate2Address.ts -------------------------------------------------------------------------------- /common/utils/computeProxyWalletAddress.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/computeProxyWalletAddress.ts -------------------------------------------------------------------------------- /common/utils/ctf-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/ctf-utils.ts -------------------------------------------------------------------------------- /common/utils/getConditionId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getConditionId.ts -------------------------------------------------------------------------------- /common/utils/getEventKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getEventKey.ts -------------------------------------------------------------------------------- /common/utils/getNegRiskConditionId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getNegRiskConditionId.ts -------------------------------------------------------------------------------- /common/utils/getNegRiskPositionId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getNegRiskPositionId.ts -------------------------------------------------------------------------------- /common/utils/getNegRiskQuestionId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getNegRiskQuestionId.ts -------------------------------------------------------------------------------- /common/utils/getPositionId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getPositionId.ts -------------------------------------------------------------------------------- /common/utils/getUserPositionEntityId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/getUserPositionEntityId.ts -------------------------------------------------------------------------------- /common/utils/indexSetContains.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/common/utils/indexSetContains.ts -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /fpmm-subgraph/README.md: -------------------------------------------------------------------------------- 1 | # fpmm subgraph 2 | -------------------------------------------------------------------------------- /fpmm-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/schema.graphql -------------------------------------------------------------------------------- /fpmm-subgraph/src/ConditionalTokensMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/ConditionalTokensMapping.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/FixedProductMarketMakerFactoryMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/FixedProductMarketMakerFactoryMapping.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/FixedProductMarketMakerMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/FixedProductMarketMakerMapping.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/empty.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fpmm-subgraph/src/utils/collateralTokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/utils/collateralTokens.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/utils/constants.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/utils/fpmm-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/utils/fpmm-utils.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/utils/maths.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/utils/maths.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/utils/nth-root.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/utils/nth-root.ts -------------------------------------------------------------------------------- /fpmm-subgraph/src/utils/time.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/src/utils/time.ts -------------------------------------------------------------------------------- /fpmm-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/fpmm-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /matchstick.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/matchstick.yaml -------------------------------------------------------------------------------- /networks.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/networks.yaml -------------------------------------------------------------------------------- /oi-subgraph/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/oi-subgraph/README.md -------------------------------------------------------------------------------- /oi-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/oi-subgraph/schema.graphql -------------------------------------------------------------------------------- /oi-subgraph/src/ConditionalTokensMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/oi-subgraph/src/ConditionalTokensMapping.ts -------------------------------------------------------------------------------- /oi-subgraph/src/NegRiskAdapterMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/oi-subgraph/src/NegRiskAdapterMapping.ts -------------------------------------------------------------------------------- /oi-subgraph/src/oi-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/oi-subgraph/src/oi-utils.ts -------------------------------------------------------------------------------- /oi-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/oi-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /orderbook-subgraph/README.md: -------------------------------------------------------------------------------- 1 | # orderbook subgraph 2 | 3 | -------------------------------------------------------------------------------- /orderbook-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/orderbook-subgraph/schema.graphql -------------------------------------------------------------------------------- /orderbook-subgraph/src/ExchangeMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/orderbook-subgraph/src/ExchangeMapping.ts -------------------------------------------------------------------------------- /orderbook-subgraph/src/utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/orderbook-subgraph/src/utils/constants.ts -------------------------------------------------------------------------------- /orderbook-subgraph/src/utils/order-book-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/orderbook-subgraph/src/utils/order-book-utils.ts -------------------------------------------------------------------------------- /orderbook-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/orderbook-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/package.json -------------------------------------------------------------------------------- /pnl-subgraph/notes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/notes.md -------------------------------------------------------------------------------- /pnl-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/schema.graphql -------------------------------------------------------------------------------- /pnl-subgraph/src/ConditionalTokensMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/ConditionalTokensMapping.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/ExchangeMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/ExchangeMapping.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/FixedProductMarketMakerFactoryMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/FixedProductMarketMakerFactoryMapping.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/FixedProductMarketMakerMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/FixedProductMarketMakerMapping.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/NegRiskAdapterMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/NegRiskAdapterMapping.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/computeFpmmPrice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/computeFpmmPrice.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/computeNegRiskYesPrice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/computeNegRiskYesPrice.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/createCondition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/createCondition.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/loadCondition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/loadCondition.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/loadOrCreateUserPosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/loadOrCreateUserPosition.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/parseFundingAddedSendback.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/parseFundingAddedSendback.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/parseOrderFilled.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/parseOrderFilled.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/updateUserPositionWithBuy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/updateUserPositionWithBuy.ts -------------------------------------------------------------------------------- /pnl-subgraph/src/utils/updateUserPositionWithSell.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/src/utils/updateUserPositionWithSell.ts -------------------------------------------------------------------------------- /pnl-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/pnl-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /sports-oracle-subgraph/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/sports-oracle-subgraph/README.md -------------------------------------------------------------------------------- /sports-oracle-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/sports-oracle-subgraph/schema.graphql -------------------------------------------------------------------------------- /sports-oracle-subgraph/src/UmaSportsOracleMapping.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/sports-oracle-subgraph/src/UmaSportsOracleMapping.ts -------------------------------------------------------------------------------- /sports-oracle-subgraph/src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/sports-oracle-subgraph/src/constants.ts -------------------------------------------------------------------------------- /sports-oracle-subgraph/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/sports-oracle-subgraph/src/utils.ts -------------------------------------------------------------------------------- /sports-oracle-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/sports-oracle-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /templatify.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/templatify.ts -------------------------------------------------------------------------------- /tests/.test_schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/.test_schema.graphql -------------------------------------------------------------------------------- /tests/.test_subgraph.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/.test_subgraph.yaml -------------------------------------------------------------------------------- /tests/addressComparison.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/addressComparison.test.ts -------------------------------------------------------------------------------- /tests/computeCreate2Address.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/computeCreate2Address.test.ts -------------------------------------------------------------------------------- /tests/computeNegRiskYesPrice.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/computeNegRiskYesPrice.test.ts -------------------------------------------------------------------------------- /tests/computePositionId.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/computePositionId.test.ts -------------------------------------------------------------------------------- /tests/computeProxyWalletAddress.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/computeProxyWalletAddress.test.ts -------------------------------------------------------------------------------- /tests/fpmmPrices.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/fpmmPrices.test.ts -------------------------------------------------------------------------------- /tests/generateProxyWalletBytecode.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/generateProxyWalletBytecode.test.ts -------------------------------------------------------------------------------- /tests/getCollectionId.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/getCollectionId.test.ts -------------------------------------------------------------------------------- /tests/getNegRiskPositionId.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/getNegRiskPositionId.test.ts -------------------------------------------------------------------------------- /tests/getNegRiskQuestionId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/getNegRiskQuestionId.ts -------------------------------------------------------------------------------- /tests/getPositionId.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/getPositionId.test.ts -------------------------------------------------------------------------------- /tests/indexSetContains.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/indexSetContains.test.ts -------------------------------------------------------------------------------- /tests/math.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/math.test.ts -------------------------------------------------------------------------------- /tests/sample.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/sample.test.ts -------------------------------------------------------------------------------- /tests/toString.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tests/toString.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/tsconfig.json -------------------------------------------------------------------------------- /wallet-subgraph/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/wallet-subgraph/schema.graphql -------------------------------------------------------------------------------- /wallet-subgraph/src/RelayHub.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/wallet-subgraph/src/RelayHub.ts -------------------------------------------------------------------------------- /wallet-subgraph/src/SafeProxyFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/wallet-subgraph/src/SafeProxyFactory.ts -------------------------------------------------------------------------------- /wallet-subgraph/src/USDC.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/wallet-subgraph/src/USDC.ts -------------------------------------------------------------------------------- /wallet-subgraph/subgraph.template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/wallet-subgraph/subgraph.template.yaml -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Polymarket/polymarket-subgraph/HEAD/yarn.lock --------------------------------------------------------------------------------