├── .gitattributes ├── .gitignore ├── .gitmodules ├── Circuit Design.md ├── DeGate Protocol Specification Document.md ├── README.md ├── Smart Contract Design.md ├── images ├── asset_merkle_tree.png ├── entire_merkle_tree.png └── logic_circuit.png ├── lerna.json ├── package.json └── packages ├── loopring_v3.js ├── README.md ├── globals.d.ts ├── index.ts ├── package-lock.json ├── package.json ├── src │ ├── babyjub.js │ ├── bitstream.ts │ ├── bitstreamEx.ts │ ├── compression.ts │ ├── constants.ts │ ├── eddsa.ts │ ├── exchange_v3.ts │ ├── explorer.ts │ ├── float.ts │ ├── logs.ts │ ├── main.ts │ ├── poseidon.js │ ├── protocol_v3.ts │ ├── request_processors │ │ ├── account_update_processor.ts │ │ ├── appkey_update_processor.ts │ │ ├── batch_spot_trade_processor.ts │ │ ├── deposit_processor.ts │ │ ├── order_cancel_processor.ts │ │ ├── spot_trade_processor.ts │ │ ├── transfer_processor.ts │ │ └── withdrawal_processor.ts │ ├── sparse_merkle_tree.ts │ └── types.ts └── tsconfig.json └── loopring_v3 ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── .solcover.js ├── .soliumignore ├── .soliumrc.json ├── .travis.yml ├── CMakeLists.txt ├── LICENSE ├── Makefile ├── README.md ├── circuit ├── .clang-format ├── CMakeLists.txt ├── Circuits │ ├── AccountUpdateCircuit.h │ ├── AppKeyUpdateCircuit.h │ ├── BaseTransactionCircuit.h │ ├── BatchSpotTradeCircuit.h │ ├── Circuit.h │ ├── DepositCircuit.h │ ├── NoopCircuit.h │ ├── OrderCancelCircuit.h │ ├── SpotTradeCircuit.h │ ├── TransferCircuit.h │ ├── UniversalCircuit.h │ └── WithdrawCircuit.h ├── Gadgets │ ├── AccountGadgets.h │ ├── BatchOrderGadgets.h │ ├── MatchingGadgets.h │ ├── MathGadgets.h │ ├── MerkleTree.h │ ├── OrderGadgets.h │ ├── SignatureGadgets.h │ └── StorageGadgets.h ├── ThirdParty │ ├── BigInt.hpp │ ├── BigIntHeader.hpp │ ├── catch.hpp │ ├── httplib.h │ └── json.hpp ├── Utils │ ├── Constants.h │ ├── Data.h │ └── Utils.h ├── buildCircuit.sh ├── cuda_prover │ ├── cuda_prover.cu │ └── multiexp │ │ ├── arith.cu │ │ ├── curves.cu │ │ ├── fixnum.cu │ │ ├── primitives.cu │ │ └── reduce.cu ├── docker │ ├── Dockerfile │ ├── entrypoint-host.sh │ └── entrypoint.sh ├── main.cpp ├── pom.xml ├── statements.md └── test │ ├── AccuntUpdateTests.cpp │ ├── FloatTests.cpp │ ├── MatchingTests.cpp │ ├── MathTests.cpp │ ├── MerkleTreeTests.cpp │ ├── OrderTests.cpp │ ├── SignatureTests.cpp │ ├── StorageTests.cpp │ ├── TestUtils.h │ ├── data │ ├── block.json │ ├── config.json │ └── protoBlock.json │ └── main.cpp ├── contracts-solpp ├── BlockVerifier.solpp ├── ExchangeData.solpp ├── ExchangeV3.solpp ├── IBlockVerifier.solpp └── IExchangeV3.solpp ├── contracts ├── Migrations.sol ├── aux │ ├── access │ │ ├── DelayedOwner.sol │ │ ├── DelayedTransaction.sol │ │ ├── IBlockReceiver.sol │ │ ├── IDelayedTransaction.sol │ │ ├── LoopringIOExchangeOwner.sol │ │ └── SelectorBasedAccessManager.sol │ ├── agents │ │ ├── AgentRegistry.sol │ │ ├── FastWithdrawalAgent.sol │ │ └── ForcedWithdrawalAgent.sol │ ├── compression │ │ ├── LzDecompressor.sol │ │ └── ZeroDecompressor.sol │ ├── fast-withdrawal │ │ └── FastWithdrawalLiquidityProvider.sol │ ├── fee-vault │ │ ├── IProtocolFeeVault.sol │ │ └── ProtocolFeeVault.sol │ ├── migrate │ │ └── MigrationToLoopringExchangeV2.sol │ └── token-sellers │ │ └── ITokenSeller.sol ├── core │ ├── iface │ │ ├── ExchangeData.sol │ │ ├── IAgentRegistry.sol │ │ ├── IBlockVerifier.sol │ │ ├── IDepositContract.sol │ │ ├── IExchangeV3.sol │ │ └── ILoopringV3.sol │ └── impl │ │ ├── BlockVerifier.sol │ │ ├── DefaultDepositContract.sol │ │ ├── ExchangeV3.sol │ │ ├── LoopringV3.sol │ │ ├── VerificationKeys.sol │ │ ├── libexchange │ │ ├── ExchangeAdmins.sol │ │ ├── ExchangeBalances.sol │ │ ├── ExchangeBlocks.sol │ │ ├── ExchangeDeposits.sol │ │ ├── ExchangeGenesis.sol │ │ ├── ExchangeMode.sol │ │ ├── ExchangeSignatures.sol │ │ ├── ExchangeTokens.sol │ │ └── ExchangeWithdrawals.sol │ │ └── libtransactions │ │ ├── AccountUpdateTransaction.sol │ │ ├── BlockReader.sol │ │ ├── DepositTransaction.sol │ │ └── WithdrawTransaction.sol ├── lib │ ├── AddressSet.sol │ ├── AddressUtil.sol │ ├── BurnableERC20.sol │ ├── Claimable.sol │ ├── Create2.sol │ ├── Drainable.sol │ ├── EIP712.sol │ ├── ERC1271.sol │ ├── ERC20.sol │ ├── ERC20SafeTransfer.sol │ ├── ERC20Token.sol │ ├── ERC2612.sol │ ├── FloatUtil.sol │ ├── MathUint.sol │ ├── MathUint248.sol │ ├── MathUint96.sol │ ├── Ownable.sol │ ├── OwnerManagable.sol │ ├── Poseidon.sol │ ├── ReentrancyGuard.sol │ ├── SignatureUtil.sol │ └── SimpleProxy.sol ├── test │ ├── DelayedOwnerContract.sol │ ├── DelayedTargetContract.sol │ ├── DummyToken.sol │ ├── LPERC20.sol │ ├── LRCToken.sol │ ├── LzDecompressorContract.sol │ ├── PoseidonContract.sol │ ├── TestAccountContract.sol │ ├── TransferContract.sol │ ├── ZeroDecompressorContract.sol │ └── tokens │ │ ├── GTO.sol │ │ ├── INDA.sol │ │ ├── INDB.sol │ │ ├── LRC.sol │ │ ├── RDN.sol │ │ ├── REP.sol │ │ ├── TEST.sol │ │ └── WETH.sol └── thirdparty │ ├── BytesUtil.sol │ ├── Cloneable.sol │ ├── MockContract.sol │ ├── SafeCast.sol │ ├── chainlink │ └── AggregatorInterface.sol │ ├── chi │ └── IChiToken.sol │ ├── opengsn2 │ ├── BaseRelayRecipient.sol │ ├── IKnowForwarderAddress.sol │ └── IRelayRecipient.sol │ ├── proxies │ ├── OwnedUpgradabilityProxy.sol │ ├── Proxy.sol │ └── UpgradabilityProxy.sol │ ├── timelock │ ├── SafeMath.sol │ └── Timelock.sol │ └── verifiers │ ├── BatchVerifier.sol │ └── Verifier.sol ├── deploy-contract-install.sh ├── deployment └── flatten-all.sh ├── docker ├── .gitignore ├── Dockerfile ├── build_image.sh └── docker_ganache.sh ├── ganache.sh ├── genAbi.js ├── genAbi.sh ├── globals.d.ts ├── install ├── migrations-scripts ├── 21_grantAccessSubmitblock.js ├── 22_registerCircuit.js ├── 23_reDeploy_BlockVerifier.js ├── 24_registerToken.js ├── 27_setDepositParams.js ├── 28_getExchangeData.js ├── 29_updateForceWithdrawFee.js └── 30_updateProtocolFeeSettings_delay.js ├── migrations ├── 1_initial_migration.js ├── 2_deploy_thirdparty.js ├── 3_deploy_tokens.js ├── 4_deploy_auxiliaries.js ├── 5_deploy_protocol_v3.js ├── 6_deploy_exchange_v3_libs.js ├── 8_deploy_exchange_v3.js └── 9_summary.js ├── operator ├── calculate.py ├── create_block.py ├── float.py ├── generate_keys.py ├── sparse_merkle_tree.py └── state.py ├── package-lock.json ├── package.json ├── security_audit ├── DeGate_Report_EN-final2023.pdf ├── DeGate_Report_EN-final20230912.pdf ├── Least Authority - DeGate DAO DeGate Smart Contracts Updated Final Audit Report.pdf ├── Least Authority - DeGate Technology DeGate zk-SNARK Circuit Final Audit Report.pdf ├── Least Authority - Loopring 3.6 Design + Implementation - Circuit Final Audit Report.pdf ├── Least Authority - Loopring 3.6 Design + Implementation - Smart Contracts Final Audit Report.pdf ├── LoopringV3_1_Report_CN.pdf ├── LoopringV3_1_Report_EN.pdf ├── LoopringV3_6_vs_V3_1.pdf └── Trailofbits - DeGate Final Audit Report.pdf ├── sol-preprocess.sh ├── test ├── all_16_vk.json ├── bitarray.ts ├── context.ts ├── expectThrow.ts ├── logs.ts ├── simulator.ts ├── testAppKeyUpdate.ts ├── testAutoMarket.ts ├── testBatchSpotTrade.ts ├── testBatchSpotTradeOther.ts ├── testBlockVerifier.ts ├── testClaimable.ts ├── testCompression.ts ├── testDebugTools.ts ├── testDefaultDepositContract.ts ├── testDelayedOwner.ts ├── testExchangeAccounts.ts ├── testExchangeAdmin.ts ├── testExchangeBlockPermutations.ts ├── testExchangeBlocks.ts ├── testExchangeContext.ts ├── testExchangeDepositByTransfer.ts ├── testExchangeDepositWithdraw.ts ├── testExchangeNonReentrant.ts ├── testExchangeRingSettlement.ts ├── testExchangeShutdown.ts ├── testExchangeTokens.ts ├── testExchangeTransfer.ts ├── testExchangeUtil.ts ├── testExchangeWithdraw.ts ├── testExchangeWithdrawalMode.ts ├── testLoopring.ts ├── testOperator.ts ├── testOrderCancel.ts ├── testOwnable.ts ├── testPoseidon.ts ├── testProtocolFeeBipsUpdate.ts ├── testProtocolFeeVault.ts ├── testSpotTrade.ts ├── testStorageID.ts ├── testTransfers.ts └── types.ts ├── truffle.js ├── trusted_setup_keys ├── all_100_vk.json ├── all_10_vk.json ├── all_150_vk.json ├── all_200_vk.json ├── all_250_vk.json ├── all_25_vk.json ├── all_300_vk.json ├── all_355_vk.json ├── all_50_vk.json └── all_5_vk.json ├── tsconfig.json ├── util ├── Artifacts.ts ├── Signature.ts ├── TimeTravel.ts ├── find_optimal_poseidon.py ├── generate_keys_contract.py └── generate_poseidon_EVM_code.py └── verify_all_contracts.sh /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/.gitmodules -------------------------------------------------------------------------------- /Circuit Design.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/Circuit Design.md -------------------------------------------------------------------------------- /DeGate Protocol Specification Document.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/DeGate Protocol Specification Document.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/README.md -------------------------------------------------------------------------------- /Smart Contract Design.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/Smart Contract Design.md -------------------------------------------------------------------------------- /images/asset_merkle_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/images/asset_merkle_tree.png -------------------------------------------------------------------------------- /images/entire_merkle_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/images/entire_merkle_tree.png -------------------------------------------------------------------------------- /images/logic_circuit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/images/logic_circuit.png -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/lerna.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/package.json -------------------------------------------------------------------------------- /packages/loopring_v3.js/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/README.md -------------------------------------------------------------------------------- /packages/loopring_v3.js/globals.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/globals.d.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/index.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/package-lock.json -------------------------------------------------------------------------------- /packages/loopring_v3.js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/package.json -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/babyjub.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/babyjub.js -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/bitstream.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/bitstream.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/bitstreamEx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/bitstreamEx.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/compression.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/compression.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/constants.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/eddsa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/eddsa.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/exchange_v3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/exchange_v3.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/explorer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/explorer.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/float.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/float.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/logs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/logs.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/main.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/poseidon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/poseidon.js -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/protocol_v3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/protocol_v3.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/account_update_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/account_update_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/appkey_update_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/appkey_update_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/batch_spot_trade_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/batch_spot_trade_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/deposit_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/deposit_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/order_cancel_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/order_cancel_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/spot_trade_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/spot_trade_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/transfer_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/transfer_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/request_processors/withdrawal_processor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/request_processors/withdrawal_processor.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/sparse_merkle_tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/sparse_merkle_tree.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/src/types.ts -------------------------------------------------------------------------------- /packages/loopring_v3.js/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3.js/tsconfig.json -------------------------------------------------------------------------------- /packages/loopring_v3/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/.eslintrc.js -------------------------------------------------------------------------------- /packages/loopring_v3/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/.gitignore -------------------------------------------------------------------------------- /packages/loopring_v3/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 120, 3 | } -------------------------------------------------------------------------------- /packages/loopring_v3/.solcover.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | skipFiles: ["lib/Poseidon.sol"] 3 | }; 4 | -------------------------------------------------------------------------------- /packages/loopring_v3/.soliumignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/.soliumignore -------------------------------------------------------------------------------- /packages/loopring_v3/.soliumrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/.soliumrc.json -------------------------------------------------------------------------------- /packages/loopring_v3/.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/.travis.yml -------------------------------------------------------------------------------- /packages/loopring_v3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/CMakeLists.txt -------------------------------------------------------------------------------- /packages/loopring_v3/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/LICENSE -------------------------------------------------------------------------------- /packages/loopring_v3/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/Makefile -------------------------------------------------------------------------------- /packages/loopring_v3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/README.md -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/.clang-format -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/CMakeLists.txt -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/AccountUpdateCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/AccountUpdateCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/AppKeyUpdateCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/AppKeyUpdateCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/BaseTransactionCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/BaseTransactionCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/BatchSpotTradeCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/BatchSpotTradeCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/Circuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/Circuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/DepositCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/DepositCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/NoopCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/NoopCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/OrderCancelCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/OrderCancelCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/SpotTradeCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/SpotTradeCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/TransferCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/TransferCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/UniversalCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/UniversalCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Circuits/WithdrawCircuit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Circuits/WithdrawCircuit.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/AccountGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/AccountGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/BatchOrderGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/BatchOrderGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/MatchingGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/MatchingGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/MathGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/MathGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/MerkleTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/MerkleTree.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/OrderGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/OrderGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/SignatureGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/SignatureGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Gadgets/StorageGadgets.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Gadgets/StorageGadgets.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/ThirdParty/BigInt.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/ThirdParty/BigInt.hpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/ThirdParty/BigIntHeader.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/ThirdParty/BigIntHeader.hpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/ThirdParty/catch.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/ThirdParty/catch.hpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/ThirdParty/httplib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/ThirdParty/httplib.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/ThirdParty/json.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/ThirdParty/json.hpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Utils/Constants.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Utils/Constants.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Utils/Data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Utils/Data.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/Utils/Utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/Utils/Utils.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/buildCircuit.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/buildCircuit.sh -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/cuda_prover/cuda_prover.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/cuda_prover/cuda_prover.cu -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/cuda_prover/multiexp/arith.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/cuda_prover/multiexp/arith.cu -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/cuda_prover/multiexp/curves.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/cuda_prover/multiexp/curves.cu -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/cuda_prover/multiexp/fixnum.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/cuda_prover/multiexp/fixnum.cu -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/cuda_prover/multiexp/primitives.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/cuda_prover/multiexp/primitives.cu -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/cuda_prover/multiexp/reduce.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/cuda_prover/multiexp/reduce.cu -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/docker/Dockerfile -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/docker/entrypoint-host.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/docker/entrypoint-host.sh -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/docker/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/docker/entrypoint.sh -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/main.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/pom.xml -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/statements.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/statements.md -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/AccuntUpdateTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/AccuntUpdateTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/FloatTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/FloatTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/MatchingTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/MatchingTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/MathTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/MathTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/MerkleTreeTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/MerkleTreeTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/OrderTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/OrderTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/SignatureTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/SignatureTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/StorageTests.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/StorageTests.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/TestUtils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/TestUtils.h -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/data/block.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/data/block.json -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/data/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/data/config.json -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/data/protoBlock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/data/protoBlock.json -------------------------------------------------------------------------------- /packages/loopring_v3/circuit/test/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/circuit/test/main.cpp -------------------------------------------------------------------------------- /packages/loopring_v3/contracts-solpp/BlockVerifier.solpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts-solpp/BlockVerifier.solpp -------------------------------------------------------------------------------- /packages/loopring_v3/contracts-solpp/ExchangeData.solpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts-solpp/ExchangeData.solpp -------------------------------------------------------------------------------- /packages/loopring_v3/contracts-solpp/ExchangeV3.solpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts-solpp/ExchangeV3.solpp -------------------------------------------------------------------------------- /packages/loopring_v3/contracts-solpp/IBlockVerifier.solpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts-solpp/IBlockVerifier.solpp -------------------------------------------------------------------------------- /packages/loopring_v3/contracts-solpp/IExchangeV3.solpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts-solpp/IExchangeV3.solpp -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/Migrations.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/access/DelayedOwner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/access/DelayedOwner.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/access/DelayedTransaction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/access/DelayedTransaction.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/access/IBlockReceiver.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/access/IBlockReceiver.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/access/IDelayedTransaction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/access/IDelayedTransaction.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/access/LoopringIOExchangeOwner.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/access/LoopringIOExchangeOwner.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/access/SelectorBasedAccessManager.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/access/SelectorBasedAccessManager.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/agents/AgentRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/agents/AgentRegistry.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/agents/FastWithdrawalAgent.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/agents/FastWithdrawalAgent.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/agents/ForcedWithdrawalAgent.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/agents/ForcedWithdrawalAgent.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/compression/LzDecompressor.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/compression/LzDecompressor.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/compression/ZeroDecompressor.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/compression/ZeroDecompressor.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/fast-withdrawal/FastWithdrawalLiquidityProvider.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/fast-withdrawal/FastWithdrawalLiquidityProvider.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/fee-vault/IProtocolFeeVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/fee-vault/IProtocolFeeVault.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/fee-vault/ProtocolFeeVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/fee-vault/ProtocolFeeVault.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/migrate/MigrationToLoopringExchangeV2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/migrate/MigrationToLoopringExchangeV2.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/aux/token-sellers/ITokenSeller.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/aux/token-sellers/ITokenSeller.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/iface/ExchangeData.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/iface/ExchangeData.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/iface/IAgentRegistry.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/iface/IAgentRegistry.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/iface/IBlockVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/iface/IBlockVerifier.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/iface/IDepositContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/iface/IDepositContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/iface/IExchangeV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/iface/IExchangeV3.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/iface/ILoopringV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/iface/ILoopringV3.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/BlockVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/BlockVerifier.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/DefaultDepositContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/DefaultDepositContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/ExchangeV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/ExchangeV3.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/LoopringV3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/LoopringV3.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/VerificationKeys.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/VerificationKeys.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeAdmins.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeAdmins.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeBalances.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeBalances.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeBlocks.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeBlocks.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeDeposits.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeDeposits.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeGenesis.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeGenesis.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeMode.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeMode.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeSignatures.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeSignatures.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeTokens.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeTokens.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libexchange/ExchangeWithdrawals.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libexchange/ExchangeWithdrawals.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libtransactions/AccountUpdateTransaction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libtransactions/AccountUpdateTransaction.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libtransactions/BlockReader.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libtransactions/BlockReader.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libtransactions/DepositTransaction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libtransactions/DepositTransaction.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/core/impl/libtransactions/WithdrawTransaction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/core/impl/libtransactions/WithdrawTransaction.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/AddressSet.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/AddressSet.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/AddressUtil.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/AddressUtil.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/BurnableERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/BurnableERC20.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/Claimable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/Claimable.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/Create2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/Create2.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/Drainable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/Drainable.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/EIP712.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/EIP712.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/ERC1271.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/ERC1271.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/ERC20.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/ERC20SafeTransfer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/ERC20SafeTransfer.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/ERC20Token.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/ERC20Token.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/ERC2612.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/ERC2612.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/FloatUtil.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/FloatUtil.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/MathUint.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/MathUint.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/MathUint248.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/MathUint248.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/MathUint96.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/MathUint96.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/Ownable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/Ownable.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/OwnerManagable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/OwnerManagable.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/Poseidon.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/Poseidon.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/ReentrancyGuard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/ReentrancyGuard.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/SignatureUtil.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/SignatureUtil.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/lib/SimpleProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/lib/SimpleProxy.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/DelayedOwnerContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/DelayedOwnerContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/DelayedTargetContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/DelayedTargetContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/DummyToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/DummyToken.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/LPERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/LPERC20.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/LRCToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/LRCToken.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/LzDecompressorContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/LzDecompressorContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/PoseidonContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/PoseidonContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/TestAccountContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/TestAccountContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/TransferContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/TransferContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/ZeroDecompressorContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/ZeroDecompressorContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/GTO.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/GTO.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/INDA.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/INDA.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/INDB.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/INDB.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/LRC.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/LRC.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/RDN.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/RDN.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/REP.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/REP.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/TEST.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/TEST.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/test/tokens/WETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/test/tokens/WETH.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/BytesUtil.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/BytesUtil.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/Cloneable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/Cloneable.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/MockContract.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/MockContract.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/SafeCast.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/SafeCast.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/chainlink/AggregatorInterface.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/chainlink/AggregatorInterface.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/chi/IChiToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/chi/IChiToken.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/opengsn2/BaseRelayRecipient.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/opengsn2/BaseRelayRecipient.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/opengsn2/IKnowForwarderAddress.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/opengsn2/IKnowForwarderAddress.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/opengsn2/IRelayRecipient.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/opengsn2/IRelayRecipient.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/proxies/OwnedUpgradabilityProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/proxies/OwnedUpgradabilityProxy.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/proxies/Proxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/proxies/Proxy.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/proxies/UpgradabilityProxy.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/proxies/UpgradabilityProxy.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/timelock/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/timelock/SafeMath.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/timelock/Timelock.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/timelock/Timelock.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/verifiers/BatchVerifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/verifiers/BatchVerifier.sol -------------------------------------------------------------------------------- /packages/loopring_v3/contracts/thirdparty/verifiers/Verifier.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/contracts/thirdparty/verifiers/Verifier.sol -------------------------------------------------------------------------------- /packages/loopring_v3/deploy-contract-install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/deploy-contract-install.sh -------------------------------------------------------------------------------- /packages/loopring_v3/deployment/flatten-all.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/deployment/flatten-all.sh -------------------------------------------------------------------------------- /packages/loopring_v3/docker/.gitignore: -------------------------------------------------------------------------------- 1 | contracts*.txt 2 | -------------------------------------------------------------------------------- /packages/loopring_v3/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/docker/Dockerfile -------------------------------------------------------------------------------- /packages/loopring_v3/docker/build_image.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/docker/build_image.sh -------------------------------------------------------------------------------- /packages/loopring_v3/docker/docker_ganache.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/docker/docker_ganache.sh -------------------------------------------------------------------------------- /packages/loopring_v3/ganache.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/ganache.sh -------------------------------------------------------------------------------- /packages/loopring_v3/genAbi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/genAbi.js -------------------------------------------------------------------------------- /packages/loopring_v3/genAbi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/genAbi.sh -------------------------------------------------------------------------------- /packages/loopring_v3/globals.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/globals.d.ts -------------------------------------------------------------------------------- /packages/loopring_v3/install: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/install -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/21_grantAccessSubmitblock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/21_grantAccessSubmitblock.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/22_registerCircuit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/22_registerCircuit.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/23_reDeploy_BlockVerifier.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/23_reDeploy_BlockVerifier.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/24_registerToken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/24_registerToken.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/27_setDepositParams.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/27_setDepositParams.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/28_getExchangeData.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/28_getExchangeData.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/29_updateForceWithdrawFee.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/29_updateForceWithdrawFee.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations-scripts/30_updateProtocolFeeSettings_delay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations-scripts/30_updateProtocolFeeSettings_delay.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/2_deploy_thirdparty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/2_deploy_thirdparty.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/3_deploy_tokens.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/3_deploy_tokens.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/4_deploy_auxiliaries.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/4_deploy_auxiliaries.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/5_deploy_protocol_v3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/5_deploy_protocol_v3.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/6_deploy_exchange_v3_libs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/6_deploy_exchange_v3_libs.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/8_deploy_exchange_v3.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/8_deploy_exchange_v3.js -------------------------------------------------------------------------------- /packages/loopring_v3/migrations/9_summary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/migrations/9_summary.js -------------------------------------------------------------------------------- /packages/loopring_v3/operator/calculate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/operator/calculate.py -------------------------------------------------------------------------------- /packages/loopring_v3/operator/create_block.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/operator/create_block.py -------------------------------------------------------------------------------- /packages/loopring_v3/operator/float.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/operator/float.py -------------------------------------------------------------------------------- /packages/loopring_v3/operator/generate_keys.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/operator/generate_keys.py -------------------------------------------------------------------------------- /packages/loopring_v3/operator/sparse_merkle_tree.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/operator/sparse_merkle_tree.py -------------------------------------------------------------------------------- /packages/loopring_v3/operator/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/operator/state.py -------------------------------------------------------------------------------- /packages/loopring_v3/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/package-lock.json -------------------------------------------------------------------------------- /packages/loopring_v3/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/package.json -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/DeGate_Report_EN-final2023.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/DeGate_Report_EN-final2023.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/DeGate_Report_EN-final20230912.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/DeGate_Report_EN-final20230912.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/Least Authority - DeGate DAO DeGate Smart Contracts Updated Final Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/Least Authority - DeGate DAO DeGate Smart Contracts Updated Final Audit Report.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/Least Authority - DeGate Technology DeGate zk-SNARK Circuit Final Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/Least Authority - DeGate Technology DeGate zk-SNARK Circuit Final Audit Report.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/Least Authority - Loopring 3.6 Design + Implementation - Circuit Final Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/Least Authority - Loopring 3.6 Design + Implementation - Circuit Final Audit Report.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/Least Authority - Loopring 3.6 Design + Implementation - Smart Contracts Final Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/Least Authority - Loopring 3.6 Design + Implementation - Smart Contracts Final Audit Report.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/LoopringV3_1_Report_CN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/LoopringV3_1_Report_CN.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/LoopringV3_1_Report_EN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/LoopringV3_1_Report_EN.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/LoopringV3_6_vs_V3_1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/LoopringV3_6_vs_V3_1.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/security_audit/Trailofbits - DeGate Final Audit Report.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/security_audit/Trailofbits - DeGate Final Audit Report.pdf -------------------------------------------------------------------------------- /packages/loopring_v3/sol-preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/sol-preprocess.sh -------------------------------------------------------------------------------- /packages/loopring_v3/test/all_16_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/all_16_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/test/bitarray.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/bitarray.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/context.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/expectThrow.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/expectThrow.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/logs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/logs.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/simulator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/simulator.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testAppKeyUpdate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testAppKeyUpdate.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testAutoMarket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testAutoMarket.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testBatchSpotTrade.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testBatchSpotTrade.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testBatchSpotTradeOther.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testBatchSpotTradeOther.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testBlockVerifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testBlockVerifier.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testClaimable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testClaimable.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testCompression.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testCompression.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testDebugTools.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testDebugTools.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testDefaultDepositContract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testDefaultDepositContract.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testDelayedOwner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testDelayedOwner.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeAccounts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeAccounts.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeAdmin.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeBlockPermutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeBlockPermutations.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeBlocks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeBlocks.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeContext.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeDepositByTransfer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeDepositByTransfer.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeDepositWithdraw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeDepositWithdraw.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeNonReentrant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeNonReentrant.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeRingSettlement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeRingSettlement.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeShutdown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeShutdown.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeTokens.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeTokens.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeTransfer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeTransfer.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeUtil.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeUtil.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeWithdraw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeWithdraw.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testExchangeWithdrawalMode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testExchangeWithdrawalMode.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testLoopring.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testLoopring.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testOperator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testOperator.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testOrderCancel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testOrderCancel.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testOwnable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testOwnable.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testPoseidon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testPoseidon.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testProtocolFeeBipsUpdate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testProtocolFeeBipsUpdate.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testProtocolFeeVault.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testProtocolFeeVault.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testSpotTrade.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testSpotTrade.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testStorageID.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testStorageID.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/testTransfers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/testTransfers.ts -------------------------------------------------------------------------------- /packages/loopring_v3/test/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/test/types.ts -------------------------------------------------------------------------------- /packages/loopring_v3/truffle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/truffle.js -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_100_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_100_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_10_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_10_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_150_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_150_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_200_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_200_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_250_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_250_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_25_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_25_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_300_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_300_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_355_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_355_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_50_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_50_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/trusted_setup_keys/all_5_vk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/trusted_setup_keys/all_5_vk.json -------------------------------------------------------------------------------- /packages/loopring_v3/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/tsconfig.json -------------------------------------------------------------------------------- /packages/loopring_v3/util/Artifacts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/util/Artifacts.ts -------------------------------------------------------------------------------- /packages/loopring_v3/util/Signature.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/util/Signature.ts -------------------------------------------------------------------------------- /packages/loopring_v3/util/TimeTravel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/util/TimeTravel.ts -------------------------------------------------------------------------------- /packages/loopring_v3/util/find_optimal_poseidon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/util/find_optimal_poseidon.py -------------------------------------------------------------------------------- /packages/loopring_v3/util/generate_keys_contract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/util/generate_keys_contract.py -------------------------------------------------------------------------------- /packages/loopring_v3/util/generate_poseidon_EVM_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/util/generate_poseidon_EVM_code.py -------------------------------------------------------------------------------- /packages/loopring_v3/verify_all_contracts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/degatedev/protocols/HEAD/packages/loopring_v3/verify_all_contracts.sh --------------------------------------------------------------------------------