ddx-python 1.0.4__cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. ddx/.gitignore +1 -0
  2. ddx/__init__.py +58 -0
  3. ddx/_rust/__init__.pyi +2685 -0
  4. ddx/_rust/common/__init__.pyi +17 -0
  5. ddx/_rust/common/accounting.pyi +6 -0
  6. ddx/_rust/common/enums.pyi +3 -0
  7. ddx/_rust/common/requests/__init__.pyi +23 -0
  8. ddx/_rust/common/requests/intents.pyi +19 -0
  9. ddx/_rust/common/specs.pyi +17 -0
  10. ddx/_rust/common/state/__init__.pyi +41 -0
  11. ddx/_rust/common/state/keys.pyi +29 -0
  12. ddx/_rust/common/transactions.pyi +7 -0
  13. ddx/_rust/decimal.pyi +3 -0
  14. ddx/_rust/h256.pyi +3 -0
  15. ddx/_rust.abi3.so +0 -0
  16. ddx/app_config/ethereum/addresses.json +526 -0
  17. ddx/auditor/README.md +32 -0
  18. ddx/auditor/__init__.py +0 -0
  19. ddx/auditor/auditor_driver.py +1043 -0
  20. ddx/auditor/websocket_message.py +54 -0
  21. ddx/common/__init__.py +0 -0
  22. ddx/common/epoch_params.py +28 -0
  23. ddx/common/fill_context.py +141 -0
  24. ddx/common/logging.py +184 -0
  25. ddx/common/market_aware_account.py +259 -0
  26. ddx/common/market_specs.py +64 -0
  27. ddx/common/trade_mining_params.py +19 -0
  28. ddx/common/transaction_utils.py +85 -0
  29. ddx/common/transactions/__init__.py +0 -0
  30. ddx/common/transactions/advance_epoch.py +91 -0
  31. ddx/common/transactions/advance_settlement_epoch.py +63 -0
  32. ddx/common/transactions/all_price_checkpoints.py +84 -0
  33. ddx/common/transactions/cancel.py +76 -0
  34. ddx/common/transactions/cancel_all.py +88 -0
  35. ddx/common/transactions/complete_fill.py +103 -0
  36. ddx/common/transactions/disaster_recovery.py +96 -0
  37. ddx/common/transactions/event.py +48 -0
  38. ddx/common/transactions/fee_distribution.py +119 -0
  39. ddx/common/transactions/funding.py +292 -0
  40. ddx/common/transactions/futures_expiry.py +123 -0
  41. ddx/common/transactions/genesis.py +108 -0
  42. ddx/common/transactions/inner/__init__.py +0 -0
  43. ddx/common/transactions/inner/adl_outcome.py +25 -0
  44. ddx/common/transactions/inner/fill.py +232 -0
  45. ddx/common/transactions/inner/liquidated_position.py +41 -0
  46. ddx/common/transactions/inner/liquidation_entry.py +41 -0
  47. ddx/common/transactions/inner/liquidation_fill.py +118 -0
  48. ddx/common/transactions/inner/outcome.py +32 -0
  49. ddx/common/transactions/inner/trade_fill.py +292 -0
  50. ddx/common/transactions/insurance_fund_update.py +138 -0
  51. ddx/common/transactions/insurance_fund_withdraw.py +100 -0
  52. ddx/common/transactions/liquidation.py +353 -0
  53. ddx/common/transactions/partial_fill.py +125 -0
  54. ddx/common/transactions/pnl_realization.py +120 -0
  55. ddx/common/transactions/post.py +72 -0
  56. ddx/common/transactions/post_order.py +95 -0
  57. ddx/common/transactions/price_checkpoint.py +97 -0
  58. ddx/common/transactions/signer_registered.py +62 -0
  59. ddx/common/transactions/specs_update.py +61 -0
  60. ddx/common/transactions/strategy_update.py +158 -0
  61. ddx/common/transactions/tradable_product_update.py +98 -0
  62. ddx/common/transactions/trade_mining.py +147 -0
  63. ddx/common/transactions/trader_update.py +131 -0
  64. ddx/common/transactions/withdraw.py +90 -0
  65. ddx/common/transactions/withdraw_ddx.py +74 -0
  66. ddx/common/utils.py +176 -0
  67. ddx/config.py +17 -0
  68. ddx/derivadex_client.py +270 -0
  69. ddx/models/__init__.py +0 -0
  70. ddx/models/base.py +132 -0
  71. ddx/py.typed +0 -0
  72. ddx/realtime_client/__init__.py +2 -0
  73. ddx/realtime_client/config.py +2 -0
  74. ddx/realtime_client/models/__init__.py +611 -0
  75. ddx/realtime_client/realtime_client.py +646 -0
  76. ddx/rest_client/__init__.py +0 -0
  77. ddx/rest_client/clients/__init__.py +0 -0
  78. ddx/rest_client/clients/base_client.py +60 -0
  79. ddx/rest_client/clients/market_client.py +1243 -0
  80. ddx/rest_client/clients/on_chain_client.py +439 -0
  81. ddx/rest_client/clients/signed_client.py +292 -0
  82. ddx/rest_client/clients/system_client.py +843 -0
  83. ddx/rest_client/clients/trade_client.py +357 -0
  84. ddx/rest_client/constants/__init__.py +0 -0
  85. ddx/rest_client/constants/endpoints.py +66 -0
  86. ddx/rest_client/contracts/__init__.py +0 -0
  87. ddx/rest_client/contracts/checkpoint/__init__.py +560 -0
  88. ddx/rest_client/contracts/ddx/__init__.py +1949 -0
  89. ddx/rest_client/contracts/dummy_token/__init__.py +1014 -0
  90. ddx/rest_client/contracts/i_collateral/__init__.py +1414 -0
  91. ddx/rest_client/contracts/i_stake/__init__.py +696 -0
  92. ddx/rest_client/exceptions/__init__.py +0 -0
  93. ddx/rest_client/exceptions/exceptions.py +32 -0
  94. ddx/rest_client/http/__init__.py +0 -0
  95. ddx/rest_client/http/http_client.py +336 -0
  96. ddx/rest_client/models/__init__.py +0 -0
  97. ddx/rest_client/models/market.py +693 -0
  98. ddx/rest_client/models/signed.py +61 -0
  99. ddx/rest_client/models/system.py +311 -0
  100. ddx/rest_client/models/trade.py +185 -0
  101. ddx/rest_client/utils/__init__.py +0 -0
  102. ddx/rest_client/utils/encryption_utils.py +26 -0
  103. ddx/utils/__init__.py +0 -0
  104. ddx_python-1.0.4.dist-info/METADATA +63 -0
  105. ddx_python-1.0.4.dist-info/RECORD +106 -0
  106. ddx_python-1.0.4.dist-info/WHEEL +5 -0
@@ -0,0 +1,526 @@
1
+ {
2
+ "derivadex": {
3
+ "addresses": {
4
+ "ddxAddress": "0x3A880652F47bFaa771908C07Dd8673A787dAEd3A",
5
+ "ddxWalletCloneableAddress": "0xc1e9e37c8bc1ef53dc5843a14407ee8743edfb3a",
6
+ "derivaDEXAddress": "0x6fb8aa6fc6f27e591423009194529ae126660027",
7
+ "diFundTokenFactoryAddress": "0xe49478b6973e7c9e0236081c89c609643f4ff91c",
8
+ "governanceAddress": "0xbfd5a73bafc692190846e04fa7b3f22325b249c2",
9
+ "governanceDip12Address": "0xE69B6D4B28E6627d2C6f054615903Dc94BE00367",
10
+ "insuranceFundAddress": "0xccf3d6ed3e7db4c0274db2e1b921b87838ce656e",
11
+ "pauseAddress": "0x0c8813521196614c85c2fb121fb22f52dc94111a",
12
+ "traderAddress": "0xcb71303f4681aec73e137d096e0ef22464fe0d66",
13
+ "usdtAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
14
+ "ausdtAddress": "0x0000000000000000000000000000000000000000",
15
+ "cusdtAddress": "0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9",
16
+ "usdcAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
17
+ "ausdcAddress": "0x0000000000000000000000000000000000000000",
18
+ "cusdcAddress": "0x39aa39c021dfbae8fac545936693ac917d5e7563",
19
+ "husdAddress": "0xdf574c24545e5ffecb9a659c229253d4111d87e1",
20
+ "gusdAddress": "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
21
+ "gnosisSafeAddress": "0x6851d6fdfafd08c0295c392436245e5bc78b0185",
22
+ "gnosisSafeProxyFactoryAddress": "0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",
23
+ "createCallAddress": "0x8538FcBccba7f5303d2C679Fa5d7A629A8c9bf4A",
24
+ "gnosisSafeProxyAddress": "0xD29FC595d45b9E86684258F7aEf02e27234FD744",
25
+ "bannerAddress": "0x6eC321A81A56A1CfC7e853034954e74598e5DB4A",
26
+ "fundedInsuranceFundAddress": "0x5930cff9702f4e60e77d4f72178959b5afa514fa",
27
+ "fundedInsuranceFundDip12Address": "0xD7FB44b9075e94a0aef32bf221eEFe29C033Ec38",
28
+ "checkpointAddress": "0x7e9487aa950a68bacebcf8f6ff32ed30697516a6",
29
+ "registrationAddress": "0xf543cE429Ec47E0506f0562ee376C29c119D3554",
30
+ "initializeAppAddress": "0xc63ff25695211b60f814071e71a133b33f3a645a",
31
+ "specsAddress": "0x938954aa5d82217fca3042263db336edfff48402",
32
+ "collateralAddress": "0x948630073344ed10c584c713240845104b18ef4f",
33
+ "collateralDip12Address": "0x3E62216146389D92cE4d95ade8a8Ef39BE74B775",
34
+ "custodianAddress": "0xd7D28b9B5DD64C2E5Cf28546a9A058AC928B4f82",
35
+ "rejectAddress": "0xc2717f949810f452be9bcbee934e83b54c8990a0",
36
+ "stakeAddress": "0xf77b32657cc47af939fc329d919037ba8fbcde32",
37
+ "stakeDip12Address": "0x1BD4F1d6E2cAa90787162dA7812f1219ed44fA95",
38
+ "pilotResetAddress": "0x0000000000000000000000000000000000000000"
39
+ },
40
+ "chainId": 1,
41
+ "ethRpcUrl": "http://helios:8545"
42
+ },
43
+ "staging": {
44
+ "addresses": {
45
+ "ddxAddress": "0x83eb63404eb02401fa20b0f49202eb707d09071c",
46
+ "ddxWalletCloneableAddress": "0x7e02e558b8d108c34c421850ad60617599068ac7",
47
+ "derivaDEXAddress": "0x6c6d8ad1c7baae73d239f468fd1f87d64616394c",
48
+ "diFundTokenFactoryAddress": "0x53b458362b4f1561092b32771dbeef201bd1d36d",
49
+ "governanceAddress": "0x582aa15b8976489535361452f524bf736631eea2",
50
+ "governanceDip12Address": "0xc946e30a3b2565e423942fa8e9496c22247a0042",
51
+ "insuranceFundAddress": "0xf0bf97abc1d7a5a95b32c772cdf8e599f9b2e85c",
52
+ "pauseAddress": "0xad1e28da9bb2aba2d850e848fb4c5d21c8e5402d",
53
+ "traderAddress": "0x9fbec9507e034c56797ed97b090af0d100c17d4c",
54
+ "usdtAddress": "0x52d2abd45c685349fd425017808709332839243a",
55
+ "ausdtAddress": "0x0000000000000000000000000000000000000000",
56
+ "cusdtAddress": "0x0000000000000000000000000000000000000000",
57
+ "usdcAddress": "0xbf412a9189b07cdbe4427b3ceabb8cf98a89b971",
58
+ "cusdcAddress": "0x0000000000000000000000000000000000000000",
59
+ "ausdcAddress": "0x0000000000000000000000000000000000000000",
60
+ "husdAddress": "0x0000000000000000000000000000000000000000",
61
+ "gusdAddress": "0x0000000000000000000000000000000000000000",
62
+ "gnosisSafeAddress": "0x0000000000000000000000000000000000000000",
63
+ "gnosisSafeProxyFactoryAddress": "0x0000000000000000000000000000000000000000",
64
+ "gnosisSafeProxyAddress": "0x0000000000000000000000000000000000000000",
65
+ "createCallAddress": "0x0000000000000000000000000000000000000000",
66
+ "bannerAddress": "0xc5276ce4bd1ab729a8d71639dc6081c791e1e2f2",
67
+ "fundedInsuranceFundAddress": "0xd4d602d876dce4ac3a9e468515a7ef8c003c7867",
68
+ "fundedInsuranceFundDip12Address": "0x800f6c804c65a4f1af8d0a81de983466b49c26fb",
69
+ "checkpointAddress": "0xc21858f98d8e320c0d64d26cdcb7cb21f2d17dfa",
70
+ "registrationAddress": "0x4aaa8c267060b593b379b9f8e087aa7b82d0b367",
71
+ "initializeAppAddress": "0x852ac7aec44b000b3d482b2eddb6aab68d613566",
72
+ "specsAddress": "0xfec5bcf08f2c07f5c8aaef05e2e249009e021673",
73
+ "collateralAddress": "0x958ac8492e730257a4d41f1a941289c09e4ce781",
74
+ "collateralDip12Address": "0xcdf7360a699416547e35368824f685e749928103",
75
+ "custodianAddress": "0x72e8d929d4c6dd03f22ebb9fc8fded346abd208b",
76
+ "rejectAddress": "0x5effa527a7eba554172d8752559c7aa55aefbd56",
77
+ "stakeAddress": "0xfef43fad09f67ce11f6be374ffc211b1797a2f49",
78
+ "stakeDip12Address": "0xae018cdb548aac3913678188ec443f6ce309fd0b",
79
+ "pilotResetAddress": "0x3c557caa20bd0dd49f448346774db3d19f8aa86d"
80
+ },
81
+ "faucet": {
82
+ "address": "0x883D4d1735F49dBB2C06B1165f94791112749610",
83
+ "privateKey": "0xb167f856a8d9f5db9f2834ce22ef4df6436f91af704bd6aa86f2c8095aca41c0"
84
+ },
85
+ "fundedAccounts": [
86
+ "0xE1D50e4df88ABfea75557334D3eb8fCe52Daa58C",
87
+ "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
88
+ "0xc6a416857352bd4386a06fe13b18f523e0028ebd"
89
+ ],
90
+ "custodians": [
91
+ {
92
+ "address": "0xe1d50e4df88abfea75557334d3eb8fce52daa58c",
93
+ "privateKey": "0x04b08f8a971322eef619e5b09992816e474ae0eac0dd3c5792daed17c2ba1694"
94
+ },
95
+ {
96
+ "address": "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
97
+ "privateKey": "0x7e142d3ef37c4fe600b4f9522ad9b15b266882cfe34661ddee3c2e26d0d062c5"
98
+ },
99
+ {
100
+ "address": "0xc6a416857352bd4386a06fe13b18f523e0028ebd",
101
+ "privateKey": "0x7659d6af82a89170ed1c8b903a5718074d26b72eb1140501bc65a01a29c52761"
102
+ }
103
+ ],
104
+ "chainId": 11155111,
105
+ "ethRpcUrl": "http://helios:8545"
106
+ },
107
+ "testnet": {
108
+ "addresses": {
109
+ "ddxAddress": "0x5b1049d81e29bad0ae77392276e030161fc4a4c8",
110
+ "ddxWalletCloneableAddress": "0x0000000000000000000000000000000000000000",
111
+ "derivaDEXAddress": "0x5d1a3b4181d3cad422f404f28e9e972d0ba4dad6",
112
+ "diFundTokenFactoryAddress": "0x0000000000000000000000000000000000000000",
113
+ "governanceAddress": "0x159705706583ecdf5075d917070dd8d9b8e3b411",
114
+ "governanceDip12Address": "0x0000000000000000000000000000000000000000",
115
+ "insuranceFundAddress": "0x0000000000000000000000000000000000000000",
116
+ "pauseAddress": "0xca799e747c753db6e47cc9cd484e990eca56c085",
117
+ "traderAddress": "0x0000000000000000000000000000000000000000",
118
+ "usdtAddress": "0x0000000000000000000000000000000000000000",
119
+ "ausdtAddress": "0x0000000000000000000000000000000000000000",
120
+ "cusdtAddress": "0x0000000000000000000000000000000000000000",
121
+ "usdcAddress": "0x9623ea5645d21fb21f94e582c683c011a76bb9d2",
122
+ "cusdcAddress": "0x0000000000000000000000000000000000000000",
123
+ "ausdcAddress": "0x0000000000000000000000000000000000000000",
124
+ "husdAddress": "0x0000000000000000000000000000000000000000",
125
+ "gusdAddress": "0x0000000000000000000000000000000000000000",
126
+ "gnosisSafeAddress": "0x0000000000000000000000000000000000000000",
127
+ "gnosisSafeProxyFactoryAddress": "0x0000000000000000000000000000000000000000",
128
+ "gnosisSafeProxyAddress": "0x0000000000000000000000000000000000000000",
129
+ "createCallAddress": "0x0000000000000000000000000000000000000000",
130
+ "bannerAddress": "0x25eea7a456f27dfeeb0cff79570481ff78bfb250",
131
+ "fundedInsuranceFundAddress": "0x18c0e97248e2319a19049dc6084dead80eeb2840",
132
+ "fundedInsuranceFundDip12Address": "0x5930cff9702f4e60e77d4f72178959b5afa514fa",
133
+ "checkpointAddress": "0x407880a3a16533af966e230108be286218d52df3",
134
+ "registrationAddress": "0x0d669985bd2320b24704fb3e27bec23497cf1972",
135
+ "initializeAppAddress": "0x0000000000000000000000000000000000000000",
136
+ "specsAddress": "0x117059cec0ff159226f7d678bfc24ee7eff3548c",
137
+ "collateralAddress": "0xabdf54bc42684d1f33383f68f590175d6876d3de",
138
+ "collateralDip12Address": "0x0000000000000000000000000000000000000000",
139
+ "custodianAddress": "0x75afe26a55f59a838a20cc39acfd73bc8ca2c943",
140
+ "rejectAddress": "0xa4e0e5ca4e000b4caa2f8c09bc0726695dc4f127",
141
+ "stakeAddress": "0xe75f304e0976eb2912d1226102e273859e0ae114",
142
+ "stakeDip12Address": "0x0000000000000000000000000000000000000000",
143
+ "pilotResetAddress": "0x959095b52d7028c650c948759b4035c52f1a7ad7"
144
+ },
145
+ "faucet": {
146
+ "address": "0x883D4d1735F49dBB2C06B1165f94791112749610",
147
+ "privateKey": "0xb167f856a8d9f5db9f2834ce22ef4df6436f91af704bd6aa86f2c8095aca41c0"
148
+ },
149
+ "fundedAccounts": [
150
+ "0x3658E568173DFE6400fCaa1D6F085C644E22bE13",
151
+ "0x4DbaEb213F91B022D0f238a2510380BE149b091a",
152
+ "0xE2F3eC385F57e9Fe8fd2e6938D539BE86c2eDf0F",
153
+ "0xb724D8C629A163d0E1809fAB27420fdf7f72a02c",
154
+ "0x8D6F6EA2598e8b1dAC9C434a1FcD579f507Db18F",
155
+ "0x2EadF973FeB265129c04b9fcE6f730e48212F88A",
156
+ "0xE9F6FfDF8e0E649089d90CFDb1E7a312746C0927",
157
+ "0x0067A8a383157b761C004EB7fd15Efd724B0B915",
158
+ "0x43a5b78655584B9e71f4E00f3f638529B96283c0",
159
+ "0xaCcf7803C88B05846c46946D7B46418A9ADAd578",
160
+ "0x2F2661614526e03D7a394EB1F825CE94E4E112fb",
161
+ "0x7e8Ea10440a732884D5D15305218801DcF1a63A2",
162
+ "0x571e69a0bc2990a1f0b890afe7a95a81e9d69b12",
163
+ "0x571166AC9b8b90429BD1faA62203004C8Efa1BA1",
164
+ "0xb21b9adB5ec9123dB0F9a0A19CFA1cA2bbFD7938",
165
+ "0xE1D50e4df88ABfea75557334D3eb8fCe52Daa58C",
166
+ "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
167
+ "0xc6a416857352bd4386a06fe13b18f523e0028ebd"
168
+ ],
169
+ "custodians": [
170
+ {
171
+ "address": "0xe1d50e4df88abfea75557334d3eb8fce52daa58c",
172
+ "privateKey": "0x04b08f8a971322eef619e5b09992816e474ae0eac0dd3c5792daed17c2ba1694"
173
+ },
174
+ {
175
+ "address": "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
176
+ "privateKey": "0x7e142d3ef37c4fe600b4f9522ad9b15b266882cfe34661ddee3c2e26d0d062c5"
177
+ },
178
+ {
179
+ "address": "0xc6a416857352bd4386a06fe13b18f523e0028ebd",
180
+ "privateKey": "0x7659d6af82a89170ed1c8b903a5718074d26b72eb1140501bc65a01a29c52761"
181
+ }
182
+ ],
183
+ "chainId": 11155111,
184
+ "ethRpcUrl": "http://helios:8545"
185
+ },
186
+ "partner": {
187
+ "addresses": {
188
+ "ddxAddress": "0x0000000000000000000000000000000000000000",
189
+ "ddxWalletCloneableAddress": "0x0000000000000000000000000000000000000000",
190
+ "derivaDEXAddress": "0x0000000000000000000000000000000000000000",
191
+ "diFundTokenFactoryAddress": "0x0000000000000000000000000000000000000000",
192
+ "governanceAddress": "0x0000000000000000000000000000000000000000",
193
+ "insuranceFundAddress": "0x0000000000000000000000000000000000000000",
194
+ "pauseAddress": "0x0000000000000000000000000000000000000000",
195
+ "traderAddress": "0x0000000000000000000000000000000000000000",
196
+ "usdtAddress": "0x0000000000000000000000000000000000000000",
197
+ "ausdtAddress": "0x0000000000000000000000000000000000000000",
198
+ "cusdtAddress": "0x0000000000000000000000000000000000000000",
199
+ "usdcAddress": "0x0000000000000000000000000000000000000000",
200
+ "cusdcAddress": "0x0000000000000000000000000000000000000000",
201
+ "ausdcAddress": "0x0000000000000000000000000000000000000000",
202
+ "husdAddress": "0x0000000000000000000000000000000000000000",
203
+ "gusdAddress": "0x0000000000000000000000000000000000000000",
204
+ "gnosisSafeAddress": "0x0000000000000000000000000000000000000000",
205
+ "gnosisSafeProxyFactoryAddress": "0x0000000000000000000000000000000000000000",
206
+ "gnosisSafeProxyAddress": "0x0000000000000000000000000000000000000000",
207
+ "createCallAddress": "0x0000000000000000000000000000000000000000",
208
+ "bannerAddress": "0x0000000000000000000000000000000000000000",
209
+ "fundedInsuranceFundAddress": "0x0000000000000000000000000000000000000000",
210
+ "checkpointAddress": "0x0000000000000000000000000000000000000000",
211
+ "registrationAddress": "0x0000000000000000000000000000000000000000",
212
+ "specsAddress": "0x0000000000000000000000000000000000000000",
213
+ "collateralAddress": "0x0000000000000000000000000000000000000000",
214
+ "custodianAddress": "0x0000000000000000000000000000000000000000",
215
+ "rejectAddress": "0x0000000000000000000000000000000000000000",
216
+ "stakeAddress": "0x0000000000000000000000000000000000000000"
217
+ },
218
+ "faucet": {
219
+ "address": "0x883D4d1735F49dBB2C06B1165f94791112749610",
220
+ "privateKey": "0xb167f856a8d9f5db9f2834ce22ef4df6436f91af704bd6aa86f2c8095aca41c0"
221
+ },
222
+ "fundedAccounts": [
223
+ "0x3658E568173DFE6400fCaa1D6F085C644E22bE13",
224
+ "0x4DbaEb213F91B022D0f238a2510380BE149b091a",
225
+ "0xE2F3eC385F57e9Fe8fd2e6938D539BE86c2eDf0F",
226
+ "0xb724D8C629A163d0E1809fAB27420fdf7f72a02c",
227
+ "0x8D6F6EA2598e8b1dAC9C434a1FcD579f507Db18F",
228
+ "0x2EadF973FeB265129c04b9fcE6f730e48212F88A",
229
+ "0xE9F6FfDF8e0E649089d90CFDb1E7a312746C0927",
230
+ "0x0067A8a383157b761C004EB7fd15Efd724B0B915",
231
+ "0x43a5b78655584B9e71f4E00f3f638529B96283c0",
232
+ "0xaCcf7803C88B05846c46946D7B46418A9ADAd578",
233
+ "0x2F2661614526e03D7a394EB1F825CE94E4E112fb",
234
+ "0x7e8Ea10440a732884D5D15305218801DcF1a63A2",
235
+ "0x571e69a0bc2990a1f0b890afe7a95a81e9d69b12",
236
+ "0x571166AC9b8b90429BD1faA62203004C8Efa1BA1",
237
+ "0xb21b9adB5ec9123dB0F9a0A19CFA1cA2bbFD7938",
238
+ "0xE1D50e4df88ABfea75557334D3eb8fCe52Daa58C",
239
+ "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
240
+ "0xc6a416857352bd4386a06fe13b18f523e0028ebd"
241
+ ],
242
+ "custodians": [
243
+ {
244
+ "address": "0xe1d50e4df88abfea75557334d3eb8fce52daa58c",
245
+ "privateKey": "0x04b08f8a971322eef619e5b09992816e474ae0eac0dd3c5792daed17c2ba1694"
246
+ },
247
+ {
248
+ "address": "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
249
+ "privateKey": "0x7e142d3ef37c4fe600b4f9522ad9b15b266882cfe34661ddee3c2e26d0d062c5"
250
+ },
251
+ {
252
+ "address": "0xc6a416857352bd4386a06fe13b18f523e0028ebd",
253
+ "privateKey": "0x7659d6af82a89170ed1c8b903a5718074d26b72eb1140501bc65a01a29c52761"
254
+ }
255
+ ],
256
+ "chainId": 11155111,
257
+ "ethRpcUrl": "http://helios:8545"
258
+ },
259
+ "ap1": {
260
+ "addresses": {
261
+ "ddxAddress": "0x38df3afd1ae676ce143cae6857433380f73f6a1d",
262
+ "ddxWalletCloneableAddress": "0x0000000000000000000000000000000000000000",
263
+ "derivaDEXAddress": "0x1cd9d4b19a652d63146605f90be84bf9913c4281",
264
+ "diFundTokenFactoryAddress": "0x0000000000000000000000000000000000000000",
265
+ "governanceAddress": "0xa7855371960905067b238c712ae0669c43cb8224",
266
+ "insuranceFundAddress": "0x0000000000000000000000000000000000000000",
267
+ "pauseAddress": "0x1f7f45eee78a31c61354f6966e27f438ac0ddbfa",
268
+ "traderAddress": "0x0000000000000000000000000000000000000000",
269
+ "usdtAddress": "0x0000000000000000000000000000000000000000",
270
+ "ausdtAddress": "0x0000000000000000000000000000000000000000",
271
+ "cusdtAddress": "0x0000000000000000000000000000000000000000",
272
+ "usdcAddress": "0x8553402b7772b785235f2579615aa778c5dbf0ea",
273
+ "cusdcAddress": "0x0000000000000000000000000000000000000000",
274
+ "ausdcAddress": "0x0000000000000000000000000000000000000000",
275
+ "husdAddress": "0x0000000000000000000000000000000000000000",
276
+ "gusdAddress": "0x0000000000000000000000000000000000000000",
277
+ "gnosisSafeAddress": "0x0000000000000000000000000000000000000000",
278
+ "gnosisSafeProxyFactoryAddress": "0x0000000000000000000000000000000000000000",
279
+ "gnosisSafeProxyAddress": "0x0000000000000000000000000000000000000000",
280
+ "createCallAddress": "0x0000000000000000000000000000000000000000",
281
+ "bannerAddress": "0x11cf685af6cc8f1a97292bc57bd631e00d1eafbc",
282
+ "fundedInsuranceFundAddress": "0x90ec82bb5ae8d0b338c0d11c873382adcb3c887c",
283
+ "checkpointAddress": "0x0416b2e497330aa50278ec0654fffe7bf4d60f53",
284
+ "registrationAddress": "0xa66725850db211096dc32402fecd95a1bdbbc2c3",
285
+ "specsAddress": "0x044a524badd59558e2d8da1acd2a55f0d1d25d6f",
286
+ "collateralAddress": "0x723c21af4e4c82a02477d9945a0c675647a0c7f0",
287
+ "collateralKYCAddress": "0xa5745fdc9967bf509d2cca2fff589a537c5a615b",
288
+ "custodianAddress": "0x53a9864b9d3def96a78479e5451d492479120dfb",
289
+ "rejectAddress": "0x3d373c6247a6cbab809b345bfc0af1857c3f62a6",
290
+ "stakeAddress": "0xf16cb3af90b87f3dc621f95c44059d2f6e6a4fa1",
291
+ "stakeKYCAddress": "0xb31b72a1c0d07ec74ba70c96a74b06d1003da1ba"
292
+ },
293
+ "faucet": {
294
+ "address": "0x883D4d1735F49dBB2C06B1165f94791112749610",
295
+ "privateKey": "0xb167f856a8d9f5db9f2834ce22ef4df6436f91af704bd6aa86f2c8095aca41c0"
296
+ },
297
+ "fundedAccounts": [
298
+ "0x3658E568173DFE6400fCaa1D6F085C644E22bE13",
299
+ "0x4DbaEb213F91B022D0f238a2510380BE149b091a",
300
+ "0xE2F3eC385F57e9Fe8fd2e6938D539BE86c2eDf0F",
301
+ "0xb724D8C629A163d0E1809fAB27420fdf7f72a02c",
302
+ "0x8D6F6EA2598e8b1dAC9C434a1FcD579f507Db18F",
303
+ "0x2EadF973FeB265129c04b9fcE6f730e48212F88A",
304
+ "0xE9F6FfDF8e0E649089d90CFDb1E7a312746C0927",
305
+ "0x0067A8a383157b761C004EB7fd15Efd724B0B915",
306
+ "0x43a5b78655584B9e71f4E00f3f638529B96283c0",
307
+ "0xaCcf7803C88B05846c46946D7B46418A9ADAd578",
308
+ "0x2F2661614526e03D7a394EB1F825CE94E4E112fb",
309
+ "0x7e8Ea10440a732884D5D15305218801DcF1a63A2",
310
+ "0x571e69a0bc2990a1f0b890afe7a95a81e9d69b12",
311
+ "0x571166AC9b8b90429BD1faA62203004C8Efa1BA1",
312
+ "0xb21b9adB5ec9123dB0F9a0A19CFA1cA2bbFD7938",
313
+ "0xE1D50e4df88ABfea75557334D3eb8fCe52Daa58C",
314
+ "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
315
+ "0xc6a416857352bd4386a06fe13b18f523e0028ebd"
316
+ ],
317
+ "custodians": [
318
+ {
319
+ "address": "0xe1d50e4df88abfea75557334d3eb8fce52daa58c",
320
+ "privateKey": "0x04b08f8a971322eef619e5b09992816e474ae0eac0dd3c5792daed17c2ba1694"
321
+ },
322
+ {
323
+ "address": "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
324
+ "privateKey": "0x7e142d3ef37c4fe600b4f9522ad9b15b266882cfe34661ddee3c2e26d0d062c5"
325
+ },
326
+ {
327
+ "address": "0xc6a416857352bd4386a06fe13b18f523e0028ebd",
328
+ "privateKey": "0x7659d6af82a89170ed1c8b903a5718074d26b72eb1140501bc65a01a29c52761"
329
+ }
330
+ ],
331
+ "chainId": 11155111,
332
+ "ethRpcUrl": "http://helios:8545"
333
+ },
334
+ "ap2": {
335
+ "addresses": {
336
+ "ddxAddress": "0x0000000000000000000000000000000000000000",
337
+ "ddxWalletCloneableAddress": "0x0000000000000000000000000000000000000000",
338
+ "derivaDEXAddress": "0x0000000000000000000000000000000000000000",
339
+ "diFundTokenFactoryAddress": "0x0000000000000000000000000000000000000000",
340
+ "governanceAddress": "0x0000000000000000000000000000000000000000",
341
+ "insuranceFundAddress": "0x0000000000000000000000000000000000000000",
342
+ "pauseAddress": "0x0000000000000000000000000000000000000000",
343
+ "traderAddress": "0x0000000000000000000000000000000000000000",
344
+ "usdtAddress": "0x0000000000000000000000000000000000000000",
345
+ "ausdtAddress": "0x0000000000000000000000000000000000000000",
346
+ "cusdtAddress": "0x0000000000000000000000000000000000000000",
347
+ "usdcAddress": "0x0000000000000000000000000000000000000000",
348
+ "cusdcAddress": "0x0000000000000000000000000000000000000000",
349
+ "ausdcAddress": "0x0000000000000000000000000000000000000000",
350
+ "husdAddress": "0x0000000000000000000000000000000000000000",
351
+ "gusdAddress": "0x0000000000000000000000000000000000000000",
352
+ "gnosisSafeAddress": "0x0000000000000000000000000000000000000000",
353
+ "gnosisSafeProxyFactoryAddress": "0x0000000000000000000000000000000000000000",
354
+ "gnosisSafeProxyAddress": "0x0000000000000000000000000000000000000000",
355
+ "createCallAddress": "0x0000000000000000000000000000000000000000",
356
+ "bannerAddress": "0x0000000000000000000000000000000000000000",
357
+ "fundedInsuranceFundAddress": "0x0000000000000000000000000000000000000000",
358
+ "checkpointAddress": "0x0000000000000000000000000000000000000000",
359
+ "registrationAddress": "0x0000000000000000000000000000000000000000",
360
+ "custodianAddress": "0x0000000000000000000000000000000000000000",
361
+ "rejectAddress": "0x0000000000000000000000000000000000000000",
362
+ "specsAddress": "0x0000000000000000000000000000000000000000",
363
+ "collateralAddress": "0x0000000000000000000000000000000000000000",
364
+ "stakeAddress": "0x0000000000000000000000000000000000000000"
365
+ },
366
+ "faucet": {
367
+ "address": "0x883D4d1735F49dBB2C06B1165f94791112749610",
368
+ "privateKey": "0xb167f856a8d9f5db9f2834ce22ef4df6436f91af704bd6aa86f2c8095aca41c0"
369
+ },
370
+ "fundedAccounts": [
371
+ "0x3658E568173DFE6400fCaa1D6F085C644E22bE13",
372
+ "0x4DbaEb213F91B022D0f238a2510380BE149b091a",
373
+ "0xE2F3eC385F57e9Fe8fd2e6938D539BE86c2eDf0F",
374
+ "0xb724D8C629A163d0E1809fAB27420fdf7f72a02c",
375
+ "0x8D6F6EA2598e8b1dAC9C434a1FcD579f507Db18F",
376
+ "0x2EadF973FeB265129c04b9fcE6f730e48212F88A",
377
+ "0xE9F6FfDF8e0E649089d90CFDb1E7a312746C0927",
378
+ "0x0067A8a383157b761C004EB7fd15Efd724B0B915",
379
+ "0x43a5b78655584B9e71f4E00f3f638529B96283c0",
380
+ "0xaCcf7803C88B05846c46946D7B46418A9ADAd578",
381
+ "0x2F2661614526e03D7a394EB1F825CE94E4E112fb",
382
+ "0x7e8Ea10440a732884D5D15305218801DcF1a63A2",
383
+ "0x571e69a0bc2990a1f0b890afe7a95a81e9d69b12",
384
+ "0x571166AC9b8b90429BD1faA62203004C8Efa1BA1",
385
+ "0xb21b9adB5ec9123dB0F9a0A19CFA1cA2bbFD7938",
386
+ "0xE1D50e4df88ABfea75557334D3eb8fCe52Daa58C",
387
+ "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
388
+ "0xc6a416857352bd4386a06fe13b18f523e0028ebd"
389
+ ],
390
+ "custodians": [
391
+ {
392
+ "address": "0xe1d50e4df88abfea75557334d3eb8fce52daa58c",
393
+ "privateKey": "0x04b08f8a971322eef619e5b09992816e474ae0eac0dd3c5792daed17c2ba1694"
394
+ },
395
+ {
396
+ "address": "0xc1e5f9e5532ed65b27d3f8f0771b066158839c16",
397
+ "privateKey": "0x7e142d3ef37c4fe600b4f9522ad9b15b266882cfe34661ddee3c2e26d0d062c5"
398
+ },
399
+ {
400
+ "address": "0xc6a416857352bd4386a06fe13b18f523e0028ebd",
401
+ "privateKey": "0x7659d6af82a89170ed1c8b903a5718074d26b72eb1140501bc65a01a29c52761"
402
+ }
403
+ ],
404
+ "chainId": 11155111,
405
+ "ethRpcUrl": "http://helios:8545"
406
+ },
407
+ "geth": {
408
+ "addresses": {
409
+ "ddxAddress": "0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c",
410
+ "ddxWalletCloneableAddress": "0x1e2f9e10d02a6b8f8f69fcbf515e75039d2ea30d",
411
+ "derivaDEXAddress": "0x48bacb9266a570d521063ef5dd96e61686dbe788",
412
+ "diFundTokenFactoryAddress": "0x07f96aa816c1f244cbc6ef114bb2b023ba54a2eb",
413
+ "governanceAddress": "0x25b8fe1de9daf8ba351890744ff28cf7dfa8f5e3",
414
+ "governanceDip12Address": "0xf96b018e8de3a229dbaced8439df9e3034e263c1",
415
+ "insuranceFundAddress": "0xdc688d29394a3f1e6f1e5100862776691afaf3d2",
416
+ "pauseAddress": "0x6000eca38b8b5bba64986182fe2a69c57f6b5414",
417
+ "traderAddress": "0x7bf7bb74c43dc141293aff12a2d7de350e9b09e0",
418
+ "usdtAddress": "0x609acc8b356894a937fc58f3411f9528de96ecb1",
419
+ "ausdtAddress": "0x34d402f14d58e001d8efbe6585051bf9706aa064",
420
+ "cusdtAddress": "0x48bacb9266a570d521063ef5dd96e61686dbe788",
421
+ "usdcAddress": "0xd8ca39d276c05a370174ce872b7278fcf734afac",
422
+ "ausdcAddress": "0xdc688d29394a3f1e6f1e5100862776691afaf3d2",
423
+ "cusdcAddress": "0xe86bb98fcf9bff3512c74589b78fb168200cc546",
424
+ "husdAddress": "0x0000000000000000000000000000000000000000",
425
+ "gusdAddress": "0x3BB5e799f186032F7c2F6D80055c6cB7d22Bb3Ee",
426
+ "gnosisSafeAddress": "0xaE32496491b53841efb51829d6f886387708F99B",
427
+ "gnosisSafeProxyFactoryAddress": "0x50e55Af101C777bA7A1d560a774A82eF002ced9F",
428
+ "createCallAddress": "0x8538FcBccba7f5303d2C679Fa5d7A629A8c9bf4A",
429
+ "gnosisSafeProxyAddress": "0xBDf662e4A4F4b01Ab0c06A13f2Bb9DEB13bb5cFC",
430
+ "bannerAddress": "0x6dfff22588be9b3ef8cf0ad6dc9b84796f9fb45f",
431
+ "fundedInsuranceFundAddress": "0x8d61158a366019ac78db4149d75fff9dda51160d",
432
+ "fundedInsuranceFundDip12Address": "0xb69e673309512a9d726f87304c6984054f87a93b",
433
+ "registrationAddress": "0xb23672f74749bf7916ba6827c64111a4d6de7f11",
434
+ "checkpointAddress": "0x8d42e38980ce74736c21c059b2240df09958d3c8",
435
+ "specsAddress": "0x8726c7414ac023d23348326b47af3205185fd035",
436
+ "custodianAddress": "0xf22469f31527adc53284441bae1665a7b9214dba",
437
+ "rejectAddress": "0x7e3f4e1deb8d3a05d9d2da87d9521268d0ec3239",
438
+ "gasConsumerAddress": "0x1dc4c1cefef38a777b15aa20260a54e584b16c48",
439
+ "collateralAddress": "0xaa86dda78e9434aca114b6676fc742a18d15a1cc",
440
+ "collateralDip12Address": "0x0d8b0dd11f5d34ed41d556def5f841900d5b1c6b",
441
+ "initializeAppAddress": "0x371b13d97f4bf77d724e78c16b7dc74099f40e84",
442
+ "stakeAddress": "0x4d3d5c850dd5bd9d6f4adda3dd039a3c8054ca29",
443
+ "stakeDip12Address": "0xc4df27466183c0fe2a5924d6ea56e334deff146a",
444
+ "pilotResetAddress": "0x8a063452f7df2614db1bca3a85ef35da40cf0835"
445
+ },
446
+ "faucet": {
447
+ "address": "0xaCcf7803C88B05846c46946D7B46418A9ADAd578",
448
+ "privateKey": "0x84a8bb71450a1b82be2b1cdd25d079cbf23dc8054e94c47ad14510aa967f45de"
449
+ },
450
+ "custodians": [
451
+ {
452
+ "address": "0x5409ED021D9299bf6814279A6A1411A7e866A631",
453
+ "privateKey": "0xf2f48ee19680706196e2e339e5da3491186e0c4c5030670656b0e0164837257d"
454
+ },
455
+ {
456
+ "address": "0x6Ecbe1DB9EF729CBe972C83Fb886247691Fb6beb",
457
+ "privateKey": "0x5d862464fe9303452126c8bc94274b8c5f9874cbd219789b3eb2128075a76f72"
458
+ },
459
+ {
460
+ "address": "0xE36Ea790bc9d7AB70C55260C66D52b1eca985f84",
461
+ "privateKey": "0xdf02719c4df8b9b8ac7f551fcb5d9ef48fa27eef7a66453879f4d8fdc6e78fb1"
462
+ }
463
+ ],
464
+ "chainId": 100,
465
+ "ethRpcUrl": "http://ethereum:8545"
466
+ },
467
+ "snapshot": {
468
+ "addresses": {
469
+ "ddxAddress": "0x1dc4c1cefef38a777b15aa20260a54e584b16c48",
470
+ "ddxWalletCloneableAddress": "0xb7c9b454221e26880eb9c3101b3295ca7d8279ef",
471
+ "derivaDEXAddress": "0x1d7022f5b17d2f8b695918fb48fa1089c9f85401",
472
+ "diFundTokenFactoryAddress": "0x6000eca38b8b5bba64986182fe2a69c57f6b5414",
473
+ "governanceAddress": "0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c",
474
+ "governanceDip12Address": "0x0d8b0dd11f5d34ed41d556def5f841900d5b1c6b",
475
+ "insuranceFundAddress": "0x4112f5fc3f737e813ca8cc1a48d1da3dc8719435",
476
+ "pauseAddress": "0x7bf7bb74c43dc141293aff12a2d7de350e9b09e0",
477
+ "pilotResetAddress": "0x1941ff73d1154774d87521d2d0aaad5d19c8df60",
478
+ "traderAddress": "0x4d3d5c850dd5bd9d6f4adda3dd039a3c8054ca29",
479
+ "usdtAddress": "0x0b1ba0af832d7c05fd64161e0db78e85978e8082",
480
+ "ausdtAddress": "0x34d402f14d58e001d8efbe6585051bf9706aa064",
481
+ "cusdtAddress": "0x48bacb9266a570d521063ef5dd96e61686dbe788",
482
+ "usdcAddress": "0xb69e673309512a9d726f87304c6984054f87a93b",
483
+ "ausdcAddress": "0xdc688d29394a3f1e6f1e5100862776691afaf3d2",
484
+ "cusdcAddress": "0xe86bb98fcf9bff3512c74589b78fb168200cc546",
485
+ "husdAddress": "0x0000000000000000000000000000000000000000",
486
+ "gusdAddress": "0x3BB5e799f186032F7c2F6D80055c6cB7d22Bb3Ee",
487
+ "gnosisSafeAddress": "0xaE32496491b53841efb51829d6f886387708F99B",
488
+ "gnosisSafeProxyFactoryAddress": "0x50e55Af101C777bA7A1d560a774A82eF002ced9F",
489
+ "createCallAddress": "0x8538FcBccba7f5303d2C679Fa5d7A629A8c9bf4A",
490
+ "gnosisSafeProxyAddress": "0xBDf662e4A4F4b01Ab0c06A13f2Bb9DEB13bb5cFC",
491
+ "bannerAddress": "0x32eecaf51dfea9618e9bc94e9fbfddb1bbdcba15",
492
+ "fundedInsuranceFundAddress": "0x04b5dadd2c0d6a261bfafbc964e0cac48585def3",
493
+ "fundedInsuranceFundDip12Address": "0x8726c7414ac023d23348326b47af3205185fd035",
494
+ "registrationAddress": "0x74341e87b1c4db7d5ed95f92b37509f2525a7a90",
495
+ "initializeAppAddress": "0xb23672f74749bf7916ba6827c64111a4d6de7f11",
496
+ "checkpointAddress": "0x8ea76477cfaca8f7ea06477fd3c09a740ac6012a",
497
+ "specsAddress": "0xaa86dda78e9434aca114b6676fc742a18d15a1cc",
498
+ "collateralAddress": "0xa31e64ea55b9b6bbb9d6a676738e9a5b23149f84",
499
+ "collateralDip12Address": "0x038f9b392fb9a9676dbaddf78ea5fdbf6c7d9710",
500
+ "stakeAddress": "0x8d42e38980ce74736c21c059b2240df09958d3c8",
501
+ "stakeDip12Address": "0x371b13d97f4bf77d724e78c16b7dc74099f40e84",
502
+ "custodianAddress": "0x7e3f4e1deb8d3a05d9d2da87d9521268d0ec3239",
503
+ "rejectAddress": "0x6346e3a22d2ef8fee3b3c2171367490e52d81c52"
504
+ },
505
+ "faucet": {
506
+ "address": "0xaCcf7803C88B05846c46946D7B46418A9ADAd578",
507
+ "privateKey": "0x84a8bb71450a1b82be2b1cdd25d079cbf23dc8054e94c47ad14510aa967f45de"
508
+ },
509
+ "custodians": [
510
+ {
511
+ "address": "0x5409ED021D9299bf6814279A6A1411A7e866A631",
512
+ "privateKey": "0xf2f48ee19680706196e2e339e5da3491186e0c4c5030670656b0e0164837257d"
513
+ },
514
+ {
515
+ "address": "0x6Ecbe1DB9EF729CBe972C83Fb886247691Fb6beb",
516
+ "privateKey": "0x5d862464fe9303452126c8bc94274b8c5f9874cbd219789b3eb2128075a76f72"
517
+ },
518
+ {
519
+ "address": "0xE36Ea790bc9d7AB70C55260C66D52b1eca985f84",
520
+ "privateKey": "0xdf02719c4df8b9b8ac7f551fcb5d9ef48fa27eef7a66453879f4d8fdc6e78fb1"
521
+ }
522
+ ],
523
+ "chainId": 1337,
524
+ "ethRpcUrl": "http://ethereum:8545"
525
+ }
526
+ }
ddx/auditor/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # DerivaDEX Auditor
2
+
3
+ ## What it is
4
+ The Auditor is a standalone Python client that:
5
+ - Connects to the DerivaDEX Trader API
6
+ - Maintains a Sparse Merkle Tree of on-chain state
7
+ - Processes transaction‐log entries in order
8
+ - Validates state‐root hashes and proofs
9
+ - Exposes a local API/queue for downstream apps
10
+
11
+ ## Configuration
12
+ Set via environment variables or CLI flags:
13
+ ```text
14
+ WEB_SERVER_URL # base HTTP(S) URL of operator node
15
+ CONTRACT_DEPLOYMENT # deployment name, e.g. “geth”
16
+ BOOTSTRAP_STATE # path or JSON blob of genesis parameters
17
+ EPOCH_PARAMS # path or JSON of epoch timing & periods
18
+ TRADE_MINING_PARAMS # path or JSON of trade‐mining settings
19
+ COLLATERAL_TRANCHES # JSON array of [threshold,ratio] pairs
20
+ ```
21
+
22
+ ## Usage
23
+ ```bash
24
+ python auditor_driver.py \
25
+ --webserver-url $WEB_SERVER_URL \
26
+ --contract-deployment $CONTRACT_DEPLOYMENT \
27
+ --genesis-params $BOOTSTRAP_STATE \
28
+ --epoch-params $EPOCH_PARAMS \
29
+ --trade-mining-params $TRADE_MINING_PARAMS \
30
+ --collateral-tranches $COLLATERAL_TRANCHES
31
+ ```
32
+ Run `python auditor_driver.py --help` for all available flags.
File without changes