├── .eslintignore ├── .eslintrc.js ├── .github └── workflows │ ├── lint.yml │ ├── publish.yml │ ├── solhint.yml │ └── test.yml ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── contracts ├── EventBasedPredictionMarket.sol ├── InsuranceArbitrator.sol ├── InternalOptimisticOracle.sol ├── OptimisticArbitrator.sol └── OptimisticDepositBox.sol ├── deploy ├── 001_deploy_optimistic_deposit_box.ts ├── 002_deploy_event_based_prediction_market.ts ├── 003_deploy_insurance_arbitrator.ts ├── 004_deploy_optimistic_arbitrator.ts └── 005_deploy_internal_optimistic_oracle.ts ├── hardhat.config.ts ├── index.ts ├── package.json ├── src └── DeploymentUtils.ts ├── test ├── EventBasedPredictionMarket │ ├── EventBasedPredictionMarket.Dispute.ts │ ├── EventBasedPredictionMarket.Lifecycle.ts │ ├── EventBasedPredictionMarket.Unresolved.ts │ └── helpers.ts ├── InsuranceArbitrator │ ├── InsuranceArbitrator.Claim.ts │ ├── InsuranceArbitrator.Issue.ts │ ├── InsuranceArbitrator.Settle.ts │ ├── constants.ts │ └── utils.ts ├── InternalOptimisticOracle │ ├── InternalOptimisticOracle.Edgecases.ts │ └── InternalOptimisticOracle.Lifecycle.ts ├── OptimisticArbitrator │ └── OptimisticArbitrator.Lifecycle.ts ├── OptimisticDepositBox │ ├── OptimisticDepositBox.Deposit.ts │ ├── OptimisticDepositBox.Proposal.ts │ ├── OptimisticDepositBox.Request.ts │ └── OptimisticDepositBox.Withdraw.ts ├── constants.ts ├── fixtures │ ├── EventBasedPredictionMarket.Fixture.ts │ ├── InsuranceArbitrator.Fixture.ts │ ├── InternalOptimisticOracle.Fixture.ts │ ├── OptimisticArbitrator.Fixture.ts │ ├── OptimisticDepositBox.Fixture.ts │ ├── UmaEcosystem.Fixture.ts │ ├── index.ts │ └── utils.ts └── utils.ts ├── tsconfig.json └── yarn.lock /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/solhint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.github/workflows/solhint.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | hardhat.config.ts 2 | cache 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/README.md -------------------------------------------------------------------------------- /contracts/EventBasedPredictionMarket.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/contracts/EventBasedPredictionMarket.sol -------------------------------------------------------------------------------- /contracts/InsuranceArbitrator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/contracts/InsuranceArbitrator.sol -------------------------------------------------------------------------------- /contracts/InternalOptimisticOracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/contracts/InternalOptimisticOracle.sol -------------------------------------------------------------------------------- /contracts/OptimisticArbitrator.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/contracts/OptimisticArbitrator.sol -------------------------------------------------------------------------------- /contracts/OptimisticDepositBox.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/contracts/OptimisticDepositBox.sol -------------------------------------------------------------------------------- /deploy/001_deploy_optimistic_deposit_box.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/deploy/001_deploy_optimistic_deposit_box.ts -------------------------------------------------------------------------------- /deploy/002_deploy_event_based_prediction_market.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/deploy/002_deploy_event_based_prediction_market.ts -------------------------------------------------------------------------------- /deploy/003_deploy_insurance_arbitrator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/deploy/003_deploy_insurance_arbitrator.ts -------------------------------------------------------------------------------- /deploy/004_deploy_optimistic_arbitrator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/deploy/004_deploy_optimistic_arbitrator.ts -------------------------------------------------------------------------------- /deploy/005_deploy_internal_optimistic_oracle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/deploy/005_deploy_internal_optimistic_oracle.ts -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | export * from "./typechain"; 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/package.json -------------------------------------------------------------------------------- /src/DeploymentUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/src/DeploymentUtils.ts -------------------------------------------------------------------------------- /test/EventBasedPredictionMarket/EventBasedPredictionMarket.Dispute.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/EventBasedPredictionMarket/EventBasedPredictionMarket.Dispute.ts -------------------------------------------------------------------------------- /test/EventBasedPredictionMarket/EventBasedPredictionMarket.Lifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/EventBasedPredictionMarket/EventBasedPredictionMarket.Lifecycle.ts -------------------------------------------------------------------------------- /test/EventBasedPredictionMarket/EventBasedPredictionMarket.Unresolved.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/EventBasedPredictionMarket/EventBasedPredictionMarket.Unresolved.ts -------------------------------------------------------------------------------- /test/EventBasedPredictionMarket/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/EventBasedPredictionMarket/helpers.ts -------------------------------------------------------------------------------- /test/InsuranceArbitrator/InsuranceArbitrator.Claim.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InsuranceArbitrator/InsuranceArbitrator.Claim.ts -------------------------------------------------------------------------------- /test/InsuranceArbitrator/InsuranceArbitrator.Issue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InsuranceArbitrator/InsuranceArbitrator.Issue.ts -------------------------------------------------------------------------------- /test/InsuranceArbitrator/InsuranceArbitrator.Settle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InsuranceArbitrator/InsuranceArbitrator.Settle.ts -------------------------------------------------------------------------------- /test/InsuranceArbitrator/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InsuranceArbitrator/constants.ts -------------------------------------------------------------------------------- /test/InsuranceArbitrator/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InsuranceArbitrator/utils.ts -------------------------------------------------------------------------------- /test/InternalOptimisticOracle/InternalOptimisticOracle.Edgecases.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InternalOptimisticOracle/InternalOptimisticOracle.Edgecases.ts -------------------------------------------------------------------------------- /test/InternalOptimisticOracle/InternalOptimisticOracle.Lifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/InternalOptimisticOracle/InternalOptimisticOracle.Lifecycle.ts -------------------------------------------------------------------------------- /test/OptimisticArbitrator/OptimisticArbitrator.Lifecycle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/OptimisticArbitrator/OptimisticArbitrator.Lifecycle.ts -------------------------------------------------------------------------------- /test/OptimisticDepositBox/OptimisticDepositBox.Deposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/OptimisticDepositBox/OptimisticDepositBox.Deposit.ts -------------------------------------------------------------------------------- /test/OptimisticDepositBox/OptimisticDepositBox.Proposal.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/OptimisticDepositBox/OptimisticDepositBox.Proposal.ts -------------------------------------------------------------------------------- /test/OptimisticDepositBox/OptimisticDepositBox.Request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/OptimisticDepositBox/OptimisticDepositBox.Request.ts -------------------------------------------------------------------------------- /test/OptimisticDepositBox/OptimisticDepositBox.Withdraw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/OptimisticDepositBox/OptimisticDepositBox.Withdraw.ts -------------------------------------------------------------------------------- /test/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/constants.ts -------------------------------------------------------------------------------- /test/fixtures/EventBasedPredictionMarket.Fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/EventBasedPredictionMarket.Fixture.ts -------------------------------------------------------------------------------- /test/fixtures/InsuranceArbitrator.Fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/InsuranceArbitrator.Fixture.ts -------------------------------------------------------------------------------- /test/fixtures/InternalOptimisticOracle.Fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/InternalOptimisticOracle.Fixture.ts -------------------------------------------------------------------------------- /test/fixtures/OptimisticArbitrator.Fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/OptimisticArbitrator.Fixture.ts -------------------------------------------------------------------------------- /test/fixtures/OptimisticDepositBox.Fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/OptimisticDepositBox.Fixture.ts -------------------------------------------------------------------------------- /test/fixtures/UmaEcosystem.Fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/UmaEcosystem.Fixture.ts -------------------------------------------------------------------------------- /test/fixtures/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/index.ts -------------------------------------------------------------------------------- /test/fixtures/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/fixtures/utils.ts -------------------------------------------------------------------------------- /test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/test/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/UMAprotocol/dev-quickstart/HEAD/yarn.lock --------------------------------------------------------------------------------