├── .devcontainer └── devcontainer.json ├── .eslintrc.js ├── .gas-snapshot ├── .gitattributes ├── .github ├── CODEOWNERS ├── pull_request_template.md └── workflows │ ├── add-action-project.yml │ ├── ci.yml │ ├── cla.yml │ ├── gas.yml │ ├── lint.yml │ ├── publish.yml │ ├── review-check.yml │ └── test.yml ├── .gitignore ├── .gitmodules ├── .prettierignore ├── .prettierrc.js ├── .solcover.js ├── .solhint.json ├── .solhintignore ├── .vscode └── settings.json ├── COPYRIGHT.md ├── LICENSE ├── README.md ├── audits ├── GnosisProtocolV2May2021.pdf └── [Cowswap_10122021]SCAudit_Report_2.pdf ├── balancer ├── Authorizer.json ├── Vault.json ├── networks.json └── test │ └── MockPool.json ├── bench ├── balancer.ts ├── compare.sh ├── fixture.ts ├── index.ts ├── single.ts ├── trace │ ├── gas.ts │ ├── hook │ │ ├── index.ts │ │ └── register.ts │ └── index.ts └── uniswap │ ├── fixture.ts │ └── index.ts ├── deployments ├── arbitrumOne │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── avalanche │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── base │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── bsc │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── goerli │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── mainnet │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── optimism │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── polygon │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── rinkeby │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── sepolia │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json └── xdai │ ├── .chainId │ ├── GPv2AllowListAuthentication.json │ ├── GPv2AllowListAuthentication_Implementation.json │ ├── GPv2AllowListAuthentication_Proxy.json │ └── GPv2Settlement.json ├── foundry.toml ├── hardhat.config.ts ├── networks.json ├── package.json ├── script ├── .solhint.json ├── TransferOwnership.s.sol ├── interfaces │ └── ERC173.sol └── lib │ └── NetworksJson.sol ├── src ├── contracts │ ├── GPv2AllowListAuthentication.sol │ ├── GPv2Settlement.sol │ ├── GPv2VaultRelayer.sol │ ├── interfaces │ │ ├── GPv2Authentication.sol │ │ ├── GPv2EIP1271.sol │ │ ├── IERC20.sol │ │ └── IVault.sol │ ├── libraries │ │ ├── GPv2EIP1967.sol │ │ ├── GPv2Interaction.sol │ │ ├── GPv2Order.sol │ │ ├── GPv2SafeERC20.sol │ │ ├── GPv2Trade.sol │ │ ├── GPv2Transfer.sol │ │ ├── SafeCast.sol │ │ └── SafeMath.sol │ ├── mixins │ │ ├── GPv2Signing.sol │ │ ├── Initializable.sol │ │ ├── ReentrancyGuard.sol │ │ └── StorageAccessible.sol │ ├── reader │ │ ├── AllowListStorageReader.sol │ │ └── SettlementStorageReader.sol │ └── test ├── deploy │ ├── 001_authenticator.ts │ ├── 002_settlement.ts │ └── 999_networks.ts └── ts │ ├── deploy.ts │ ├── index.ts │ ├── interaction.ts │ ├── order.ts │ ├── proxy.ts │ ├── settlement.ts │ ├── sign.ts │ ├── swap.ts │ ├── types │ └── ethers.ts │ └── vault.ts ├── test ├── .eslintrc.js ├── .solhint.json ├── GPv2AllowListAuthenticator │ ├── AddSolver.t.sol │ ├── Helper.sol │ ├── InitializeManager.t.sol │ ├── IsSolver.sol │ ├── RemoveSolver.t.sol │ └── SetManager.t.sol ├── GPv2Interaction │ ├── Execute.t.sol │ ├── Helper.sol │ └── Selector.sol ├── GPv2Order │ ├── ExtractOrderUidParams.t.sol │ ├── Helper.sol │ ├── Order.t.sol │ └── PackOrderUidParams.t.sol ├── GPv2SafeERC20 │ ├── Helper.sol │ ├── Transfer.t.sol │ └── TransferFrom.sol ├── GPv2Settlement │ ├── ComputeTradeExecutions.ExecutedAmounts.t.sol │ ├── ComputeTradeExecutions.ExecutedFees.t.sol │ ├── ComputeTradeExecutions.FilledAmounts.t.sol │ ├── ComputeTradeExecutions.t.sol │ ├── DeploymentParams.t.sol │ ├── ExecuteInteractions.t.sol │ ├── FilledAmount.t.sol │ ├── Helper.sol │ ├── InvalidateOrder.t.sol │ ├── OrderRefunds.t.sol │ ├── Receive.t.sol │ ├── Settle │ │ ├── Reentrancy.t.sol │ │ └── Settle.t.sol │ └── Swap │ │ ├── Balances.t.sol │ │ ├── Swap.t.sol │ │ └── Variants.t.sol ├── GPv2Signing │ ├── CalldataManipulation.t.sol │ ├── DomainSeparator.t.sol │ ├── Helper.sol │ ├── RecoverOrderFromTrade.t.sol │ ├── RecoverOrderSigner.t.sol │ └── SetPreSignature.t.sol ├── GPv2Trade │ ├── ExtractFlags.t.sol │ ├── ExtractOrder.t.sol │ └── Helper.sol ├── GPv2Transfer │ ├── FastTransferFromAccount.t.sol │ ├── Helper.sol │ ├── TransferFromAccounts.t.sol │ └── TransferToAccounts.t.sol ├── GPv2VaultRelayer │ ├── BatchSwapWithFee.FeeTransfer.t.sol │ ├── BatchSwapWithFee.t.sol │ ├── Helper.sol │ └── TransferFromAccounts.t.sol ├── balancer.ts ├── decoding.test.ts ├── e2e │ ├── 0xTrade.test.ts │ ├── balancerSwap.test.ts │ ├── burnFees.test.ts │ ├── buyEth.test.ts │ ├── contractOrdersWithGnosisSafe.test.ts │ ├── deployment.test.ts │ ├── fixture.ts │ ├── internalBalances.test.ts │ ├── nonStandardErc20.test.ts │ ├── offchainAllowances.test.ts │ ├── smartOrder.test.ts │ ├── uniswapTrade.test.ts │ ├── upgradeAuthenticator.test.ts │ ├── wineOilMarket.test.ts │ └── zero-ex │ │ ├── index.ts │ │ └── v2 │ │ └── index.ts ├── encoding.ts ├── libraries │ ├── Bytecode.sol │ ├── Bytes.sol │ ├── Eip712.sol │ ├── Order.sol │ ├── Settlement.sol │ ├── Sign.sol │ ├── Trade.sol │ └── encoders │ │ ├── SettlementEncoder.sol │ │ ├── SwapEncoder.sol │ │ └── TokenRegistry.sol ├── reader │ ├── AllowListStorageReader.t.sol │ ├── SettlementStorageReader.sol │ ├── StorageAccessible.t.sol │ ├── StorageAccessibleWrapper.sol │ ├── StorageReadable.t.sol │ └── ViewStorageAccessible.t.sol ├── script │ ├── TransferOwnership.t.sol │ └── lib │ │ └── NetworksJson.t.sol └── src │ ├── ERC20PresetPermit.sol │ ├── GPv2AllowListAuthenticationV2.sol │ ├── NonStandardERC20.sol │ ├── SmartSellOrder.sol │ └── vendor │ └── ChiToken.sol ├── tsconfig.json ├── tsconfig.lib.commonjs.json ├── tsconfig.lib.esm.json └── yarn.lock /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.devcontainer/devcontainer.json -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gas-snapshot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.gas-snapshot -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @cowprotocol/contracts 2 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/add-action-project.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/add-action-project.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/cla.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/cla.yml -------------------------------------------------------------------------------- /.github/workflows/gas.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/gas.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/review-check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/review-check.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.gitmodules -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | src/contracts/test/vendor/ 2 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.prettierrc.js -------------------------------------------------------------------------------- /.solcover.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | skipFiles: ["test/"], 3 | }; 4 | -------------------------------------------------------------------------------- /.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.solhint.json -------------------------------------------------------------------------------- /.solhintignore: -------------------------------------------------------------------------------- 1 | src/contracts/test 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /COPYRIGHT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/COPYRIGHT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/README.md -------------------------------------------------------------------------------- /audits/GnosisProtocolV2May2021.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/audits/GnosisProtocolV2May2021.pdf -------------------------------------------------------------------------------- /audits/[Cowswap_10122021]SCAudit_Report_2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/audits/[Cowswap_10122021]SCAudit_Report_2.pdf -------------------------------------------------------------------------------- /balancer/Authorizer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/balancer/Authorizer.json -------------------------------------------------------------------------------- /balancer/Vault.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/balancer/Vault.json -------------------------------------------------------------------------------- /balancer/networks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/balancer/networks.json -------------------------------------------------------------------------------- /balancer/test/MockPool.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/balancer/test/MockPool.json -------------------------------------------------------------------------------- /bench/balancer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/balancer.ts -------------------------------------------------------------------------------- /bench/compare.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/compare.sh -------------------------------------------------------------------------------- /bench/fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/fixture.ts -------------------------------------------------------------------------------- /bench/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/index.ts -------------------------------------------------------------------------------- /bench/single.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/single.ts -------------------------------------------------------------------------------- /bench/trace/gas.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/trace/gas.ts -------------------------------------------------------------------------------- /bench/trace/hook/index.ts: -------------------------------------------------------------------------------- 1 | export { getLastTrace } from "./register"; 2 | -------------------------------------------------------------------------------- /bench/trace/hook/register.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/trace/hook/register.ts -------------------------------------------------------------------------------- /bench/trace/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/trace/index.ts -------------------------------------------------------------------------------- /bench/uniswap/fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/uniswap/fixture.ts -------------------------------------------------------------------------------- /bench/uniswap/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/bench/uniswap/index.ts -------------------------------------------------------------------------------- /deployments/arbitrumOne/.chainId: -------------------------------------------------------------------------------- 1 | 42161 -------------------------------------------------------------------------------- /deployments/arbitrumOne/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/arbitrumOne/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/arbitrumOne/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/arbitrumOne/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/arbitrumOne/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/arbitrumOne/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/arbitrumOne/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/arbitrumOne/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/avalanche/.chainId: -------------------------------------------------------------------------------- 1 | 43114 -------------------------------------------------------------------------------- /deployments/avalanche/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/avalanche/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/avalanche/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/avalanche/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/avalanche/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/avalanche/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/avalanche/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/avalanche/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/base/.chainId: -------------------------------------------------------------------------------- 1 | 8453 -------------------------------------------------------------------------------- /deployments/base/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/base/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/base/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/base/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/base/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/base/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/base/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/base/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/bsc/.chainId: -------------------------------------------------------------------------------- 1 | 56 -------------------------------------------------------------------------------- /deployments/bsc/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/bsc/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/bsc/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/bsc/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/bsc/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/bsc/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/bsc/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/bsc/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/goerli/.chainId: -------------------------------------------------------------------------------- 1 | 5 -------------------------------------------------------------------------------- /deployments/goerli/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/goerli/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/goerli/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/goerli/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/goerli/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/goerli/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/goerli/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/goerli/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/mainnet/.chainId: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /deployments/mainnet/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/mainnet/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/mainnet/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/mainnet/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/mainnet/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/mainnet/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/mainnet/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/mainnet/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/optimism/.chainId: -------------------------------------------------------------------------------- 1 | 10 -------------------------------------------------------------------------------- /deployments/optimism/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/optimism/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/optimism/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/optimism/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/optimism/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/optimism/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/optimism/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/optimism/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/polygon/.chainId: -------------------------------------------------------------------------------- 1 | 137 -------------------------------------------------------------------------------- /deployments/polygon/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/polygon/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/polygon/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/polygon/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/polygon/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/polygon/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/polygon/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/polygon/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/rinkeby/.chainId: -------------------------------------------------------------------------------- 1 | 4 -------------------------------------------------------------------------------- /deployments/rinkeby/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/rinkeby/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/rinkeby/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/rinkeby/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/rinkeby/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/rinkeby/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/rinkeby/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/rinkeby/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/sepolia/.chainId: -------------------------------------------------------------------------------- 1 | 11155111 -------------------------------------------------------------------------------- /deployments/sepolia/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/sepolia/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/sepolia/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/sepolia/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/sepolia/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/sepolia/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/sepolia/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/sepolia/GPv2Settlement.json -------------------------------------------------------------------------------- /deployments/xdai/.chainId: -------------------------------------------------------------------------------- 1 | 100 -------------------------------------------------------------------------------- /deployments/xdai/GPv2AllowListAuthentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/xdai/GPv2AllowListAuthentication.json -------------------------------------------------------------------------------- /deployments/xdai/GPv2AllowListAuthentication_Implementation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/xdai/GPv2AllowListAuthentication_Implementation.json -------------------------------------------------------------------------------- /deployments/xdai/GPv2AllowListAuthentication_Proxy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/xdai/GPv2AllowListAuthentication_Proxy.json -------------------------------------------------------------------------------- /deployments/xdai/GPv2Settlement.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/deployments/xdai/GPv2Settlement.json -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/foundry.toml -------------------------------------------------------------------------------- /hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/hardhat.config.ts -------------------------------------------------------------------------------- /networks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/networks.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/package.json -------------------------------------------------------------------------------- /script/.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/script/.solhint.json -------------------------------------------------------------------------------- /script/TransferOwnership.s.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/script/TransferOwnership.s.sol -------------------------------------------------------------------------------- /script/interfaces/ERC173.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/script/interfaces/ERC173.sol -------------------------------------------------------------------------------- /script/lib/NetworksJson.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/script/lib/NetworksJson.sol -------------------------------------------------------------------------------- /src/contracts/GPv2AllowListAuthentication.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/GPv2AllowListAuthentication.sol -------------------------------------------------------------------------------- /src/contracts/GPv2Settlement.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/GPv2Settlement.sol -------------------------------------------------------------------------------- /src/contracts/GPv2VaultRelayer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/GPv2VaultRelayer.sol -------------------------------------------------------------------------------- /src/contracts/interfaces/GPv2Authentication.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/interfaces/GPv2Authentication.sol -------------------------------------------------------------------------------- /src/contracts/interfaces/GPv2EIP1271.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/interfaces/GPv2EIP1271.sol -------------------------------------------------------------------------------- /src/contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /src/contracts/interfaces/IVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/interfaces/IVault.sol -------------------------------------------------------------------------------- /src/contracts/libraries/GPv2EIP1967.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/GPv2EIP1967.sol -------------------------------------------------------------------------------- /src/contracts/libraries/GPv2Interaction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/GPv2Interaction.sol -------------------------------------------------------------------------------- /src/contracts/libraries/GPv2Order.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/GPv2Order.sol -------------------------------------------------------------------------------- /src/contracts/libraries/GPv2SafeERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/GPv2SafeERC20.sol -------------------------------------------------------------------------------- /src/contracts/libraries/GPv2Trade.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/GPv2Trade.sol -------------------------------------------------------------------------------- /src/contracts/libraries/GPv2Transfer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/GPv2Transfer.sol -------------------------------------------------------------------------------- /src/contracts/libraries/SafeCast.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/SafeCast.sol -------------------------------------------------------------------------------- /src/contracts/libraries/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/libraries/SafeMath.sol -------------------------------------------------------------------------------- /src/contracts/mixins/GPv2Signing.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/mixins/GPv2Signing.sol -------------------------------------------------------------------------------- /src/contracts/mixins/Initializable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/mixins/Initializable.sol -------------------------------------------------------------------------------- /src/contracts/mixins/ReentrancyGuard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/mixins/ReentrancyGuard.sol -------------------------------------------------------------------------------- /src/contracts/mixins/StorageAccessible.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/mixins/StorageAccessible.sol -------------------------------------------------------------------------------- /src/contracts/reader/AllowListStorageReader.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/reader/AllowListStorageReader.sol -------------------------------------------------------------------------------- /src/contracts/reader/SettlementStorageReader.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/contracts/reader/SettlementStorageReader.sol -------------------------------------------------------------------------------- /src/contracts/test: -------------------------------------------------------------------------------- 1 | ../../test/src -------------------------------------------------------------------------------- /src/deploy/001_authenticator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/deploy/001_authenticator.ts -------------------------------------------------------------------------------- /src/deploy/002_settlement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/deploy/002_settlement.ts -------------------------------------------------------------------------------- /src/deploy/999_networks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/deploy/999_networks.ts -------------------------------------------------------------------------------- /src/ts/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/deploy.ts -------------------------------------------------------------------------------- /src/ts/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/index.ts -------------------------------------------------------------------------------- /src/ts/interaction.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/interaction.ts -------------------------------------------------------------------------------- /src/ts/order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/order.ts -------------------------------------------------------------------------------- /src/ts/proxy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/proxy.ts -------------------------------------------------------------------------------- /src/ts/settlement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/settlement.ts -------------------------------------------------------------------------------- /src/ts/sign.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/sign.ts -------------------------------------------------------------------------------- /src/ts/swap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/swap.ts -------------------------------------------------------------------------------- /src/ts/types/ethers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/types/ethers.ts -------------------------------------------------------------------------------- /src/ts/vault.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/src/ts/vault.ts -------------------------------------------------------------------------------- /test/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/.eslintrc.js -------------------------------------------------------------------------------- /test/.solhint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/.solhint.json -------------------------------------------------------------------------------- /test/GPv2AllowListAuthenticator/AddSolver.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2AllowListAuthenticator/AddSolver.t.sol -------------------------------------------------------------------------------- /test/GPv2AllowListAuthenticator/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2AllowListAuthenticator/Helper.sol -------------------------------------------------------------------------------- /test/GPv2AllowListAuthenticator/InitializeManager.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2AllowListAuthenticator/InitializeManager.t.sol -------------------------------------------------------------------------------- /test/GPv2AllowListAuthenticator/IsSolver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2AllowListAuthenticator/IsSolver.sol -------------------------------------------------------------------------------- /test/GPv2AllowListAuthenticator/RemoveSolver.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2AllowListAuthenticator/RemoveSolver.t.sol -------------------------------------------------------------------------------- /test/GPv2AllowListAuthenticator/SetManager.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2AllowListAuthenticator/SetManager.t.sol -------------------------------------------------------------------------------- /test/GPv2Interaction/Execute.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Interaction/Execute.t.sol -------------------------------------------------------------------------------- /test/GPv2Interaction/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Interaction/Helper.sol -------------------------------------------------------------------------------- /test/GPv2Interaction/Selector.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Interaction/Selector.sol -------------------------------------------------------------------------------- /test/GPv2Order/ExtractOrderUidParams.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Order/ExtractOrderUidParams.t.sol -------------------------------------------------------------------------------- /test/GPv2Order/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Order/Helper.sol -------------------------------------------------------------------------------- /test/GPv2Order/Order.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Order/Order.t.sol -------------------------------------------------------------------------------- /test/GPv2Order/PackOrderUidParams.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Order/PackOrderUidParams.t.sol -------------------------------------------------------------------------------- /test/GPv2SafeERC20/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2SafeERC20/Helper.sol -------------------------------------------------------------------------------- /test/GPv2SafeERC20/Transfer.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2SafeERC20/Transfer.t.sol -------------------------------------------------------------------------------- /test/GPv2SafeERC20/TransferFrom.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2SafeERC20/TransferFrom.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/ComputeTradeExecutions.ExecutedAmounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/ComputeTradeExecutions.ExecutedAmounts.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/ComputeTradeExecutions.ExecutedFees.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/ComputeTradeExecutions.ExecutedFees.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/ComputeTradeExecutions.FilledAmounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/ComputeTradeExecutions.FilledAmounts.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/ComputeTradeExecutions.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/ComputeTradeExecutions.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/DeploymentParams.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/DeploymentParams.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/ExecuteInteractions.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/ExecuteInteractions.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/FilledAmount.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/FilledAmount.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Helper.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/InvalidateOrder.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/InvalidateOrder.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/OrderRefunds.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/OrderRefunds.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Receive.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Receive.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Settle/Reentrancy.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Settle/Reentrancy.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Settle/Settle.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Settle/Settle.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Swap/Balances.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Swap/Balances.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Swap/Swap.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Swap/Swap.t.sol -------------------------------------------------------------------------------- /test/GPv2Settlement/Swap/Variants.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Settlement/Swap/Variants.t.sol -------------------------------------------------------------------------------- /test/GPv2Signing/CalldataManipulation.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Signing/CalldataManipulation.t.sol -------------------------------------------------------------------------------- /test/GPv2Signing/DomainSeparator.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Signing/DomainSeparator.t.sol -------------------------------------------------------------------------------- /test/GPv2Signing/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Signing/Helper.sol -------------------------------------------------------------------------------- /test/GPv2Signing/RecoverOrderFromTrade.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Signing/RecoverOrderFromTrade.t.sol -------------------------------------------------------------------------------- /test/GPv2Signing/RecoverOrderSigner.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Signing/RecoverOrderSigner.t.sol -------------------------------------------------------------------------------- /test/GPv2Signing/SetPreSignature.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Signing/SetPreSignature.t.sol -------------------------------------------------------------------------------- /test/GPv2Trade/ExtractFlags.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Trade/ExtractFlags.t.sol -------------------------------------------------------------------------------- /test/GPv2Trade/ExtractOrder.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Trade/ExtractOrder.t.sol -------------------------------------------------------------------------------- /test/GPv2Trade/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Trade/Helper.sol -------------------------------------------------------------------------------- /test/GPv2Transfer/FastTransferFromAccount.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Transfer/FastTransferFromAccount.t.sol -------------------------------------------------------------------------------- /test/GPv2Transfer/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Transfer/Helper.sol -------------------------------------------------------------------------------- /test/GPv2Transfer/TransferFromAccounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Transfer/TransferFromAccounts.t.sol -------------------------------------------------------------------------------- /test/GPv2Transfer/TransferToAccounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2Transfer/TransferToAccounts.t.sol -------------------------------------------------------------------------------- /test/GPv2VaultRelayer/BatchSwapWithFee.FeeTransfer.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2VaultRelayer/BatchSwapWithFee.FeeTransfer.t.sol -------------------------------------------------------------------------------- /test/GPv2VaultRelayer/BatchSwapWithFee.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2VaultRelayer/BatchSwapWithFee.t.sol -------------------------------------------------------------------------------- /test/GPv2VaultRelayer/Helper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2VaultRelayer/Helper.sol -------------------------------------------------------------------------------- /test/GPv2VaultRelayer/TransferFromAccounts.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/GPv2VaultRelayer/TransferFromAccounts.t.sol -------------------------------------------------------------------------------- /test/balancer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/balancer.ts -------------------------------------------------------------------------------- /test/decoding.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/decoding.test.ts -------------------------------------------------------------------------------- /test/e2e/0xTrade.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/0xTrade.test.ts -------------------------------------------------------------------------------- /test/e2e/balancerSwap.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/balancerSwap.test.ts -------------------------------------------------------------------------------- /test/e2e/burnFees.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/burnFees.test.ts -------------------------------------------------------------------------------- /test/e2e/buyEth.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/buyEth.test.ts -------------------------------------------------------------------------------- /test/e2e/contractOrdersWithGnosisSafe.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/contractOrdersWithGnosisSafe.test.ts -------------------------------------------------------------------------------- /test/e2e/deployment.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/deployment.test.ts -------------------------------------------------------------------------------- /test/e2e/fixture.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/fixture.ts -------------------------------------------------------------------------------- /test/e2e/internalBalances.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/internalBalances.test.ts -------------------------------------------------------------------------------- /test/e2e/nonStandardErc20.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/nonStandardErc20.test.ts -------------------------------------------------------------------------------- /test/e2e/offchainAllowances.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/offchainAllowances.test.ts -------------------------------------------------------------------------------- /test/e2e/smartOrder.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/smartOrder.test.ts -------------------------------------------------------------------------------- /test/e2e/uniswapTrade.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/uniswapTrade.test.ts -------------------------------------------------------------------------------- /test/e2e/upgradeAuthenticator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/upgradeAuthenticator.test.ts -------------------------------------------------------------------------------- /test/e2e/wineOilMarket.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/wineOilMarket.test.ts -------------------------------------------------------------------------------- /test/e2e/zero-ex/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/zero-ex/index.ts -------------------------------------------------------------------------------- /test/e2e/zero-ex/v2/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/e2e/zero-ex/v2/index.ts -------------------------------------------------------------------------------- /test/encoding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/encoding.ts -------------------------------------------------------------------------------- /test/libraries/Bytecode.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Bytecode.sol -------------------------------------------------------------------------------- /test/libraries/Bytes.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Bytes.sol -------------------------------------------------------------------------------- /test/libraries/Eip712.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Eip712.sol -------------------------------------------------------------------------------- /test/libraries/Order.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Order.sol -------------------------------------------------------------------------------- /test/libraries/Settlement.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Settlement.sol -------------------------------------------------------------------------------- /test/libraries/Sign.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Sign.sol -------------------------------------------------------------------------------- /test/libraries/Trade.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/Trade.sol -------------------------------------------------------------------------------- /test/libraries/encoders/SettlementEncoder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/encoders/SettlementEncoder.sol -------------------------------------------------------------------------------- /test/libraries/encoders/SwapEncoder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/encoders/SwapEncoder.sol -------------------------------------------------------------------------------- /test/libraries/encoders/TokenRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/libraries/encoders/TokenRegistry.sol -------------------------------------------------------------------------------- /test/reader/AllowListStorageReader.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/reader/AllowListStorageReader.t.sol -------------------------------------------------------------------------------- /test/reader/SettlementStorageReader.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/reader/SettlementStorageReader.sol -------------------------------------------------------------------------------- /test/reader/StorageAccessible.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/reader/StorageAccessible.t.sol -------------------------------------------------------------------------------- /test/reader/StorageAccessibleWrapper.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/reader/StorageAccessibleWrapper.sol -------------------------------------------------------------------------------- /test/reader/StorageReadable.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/reader/StorageReadable.t.sol -------------------------------------------------------------------------------- /test/reader/ViewStorageAccessible.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/reader/ViewStorageAccessible.t.sol -------------------------------------------------------------------------------- /test/script/TransferOwnership.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/script/TransferOwnership.t.sol -------------------------------------------------------------------------------- /test/script/lib/NetworksJson.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/script/lib/NetworksJson.t.sol -------------------------------------------------------------------------------- /test/src/ERC20PresetPermit.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/src/ERC20PresetPermit.sol -------------------------------------------------------------------------------- /test/src/GPv2AllowListAuthenticationV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/src/GPv2AllowListAuthenticationV2.sol -------------------------------------------------------------------------------- /test/src/NonStandardERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/src/NonStandardERC20.sol -------------------------------------------------------------------------------- /test/src/SmartSellOrder.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/src/SmartSellOrder.sol -------------------------------------------------------------------------------- /test/src/vendor/ChiToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/test/src/vendor/ChiToken.sol -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.lib.commonjs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/tsconfig.lib.commonjs.json -------------------------------------------------------------------------------- /tsconfig.lib.esm.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/tsconfig.lib.esm.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowprotocol/contracts/HEAD/yarn.lock --------------------------------------------------------------------------------