ddx-python 0.2.0__tar.gz → 0.2.1__tar.gz

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 (87) hide show
  1. {ddx_python-0.2.0 → ddx_python-0.2.1}/Cargo.lock +49 -60
  2. {ddx_python-0.2.0 → ddx_python-0.2.1}/Cargo.toml +1 -1
  3. {ddx_python-0.2.0 → ddx_python-0.2.1}/PKG-INFO +1 -1
  4. ddx_python-0.2.1/ddx-common/Cargo.toml +137 -0
  5. ddx_python-0.2.1/ddx-common/macros/Cargo.toml +20 -0
  6. ddx_python-0.2.1/ddx-common/macros/src/lib.rs +644 -0
  7. ddx_python-0.2.1/ddx-common/pkg/ddx_common.d.ts +64 -0
  8. ddx_python-0.2.1/ddx-common/src/constants.rs +294 -0
  9. ddx_python-0.2.1/ddx-common/src/crypto.rs +607 -0
  10. ddx_python-0.2.1/ddx-common/src/error.rs +108 -0
  11. ddx_python-0.2.1/ddx-common/src/execution/accounting.rs +290 -0
  12. ddx_python-0.2.1/ddx-common/src/execution/error.rs +153 -0
  13. ddx_python-0.2.1/ddx-common/src/execution/mod.rs +7 -0
  14. ddx_python-0.2.1/ddx-common/src/execution/test_utils.rs +701 -0
  15. ddx_python-0.2.1/ddx-common/src/execution/validation.rs +3115 -0
  16. ddx_python-0.2.1/ddx-common/src/ffi.rs +229 -0
  17. ddx_python-0.2.1/ddx-common/src/global.rs +163 -0
  18. ddx_python-0.2.1/ddx-common/src/lib.rs +34 -0
  19. ddx_python-0.2.1/ddx-common/src/specs/constants.rs +13 -0
  20. ddx_python-0.2.1/ddx-common/src/specs/eval.rs +989 -0
  21. ddx_python-0.2.1/ddx-common/src/specs/float_parser.rs +46 -0
  22. ddx_python-0.2.1/ddx-common/src/specs/index_fund.rs +91 -0
  23. ddx_python-0.2.1/ddx-common/src/specs/str_parser.rs +155 -0
  24. ddx_python-0.2.1/ddx-common/src/specs/types.rs +385 -0
  25. ddx_python-0.2.1/ddx-common/src/specs.rs +658 -0
  26. ddx_python-0.2.1/ddx-common/src/tree/README.md +179 -0
  27. ddx_python-0.2.1/ddx-common/src/tree/mod.rs +59 -0
  28. ddx_python-0.2.1/ddx-common/src/tree/shared_smt.rs +831 -0
  29. ddx_python-0.2.1/ddx-common/src/tree/shared_store.rs +102 -0
  30. ddx_python-0.2.1/ddx-common/src/trusted_settings.rs +26 -0
  31. ddx_python-0.2.1/ddx-common/src/types/accounting/balance.rs +244 -0
  32. ddx_python-0.2.1/ddx-common/src/types/accounting.rs +876 -0
  33. ddx_python-0.2.1/ddx-common/src/types/checkpoint.rs +134 -0
  34. ddx_python-0.2.1/ddx-common/src/types/clock.rs +6 -0
  35. ddx_python-0.2.1/ddx-common/src/types/contract.rs +23 -0
  36. ddx_python-0.2.1/ddx-common/src/types/contract_events.rs +615 -0
  37. ddx_python-0.2.1/ddx-common/src/types/ethereum.rs +753 -0
  38. ddx_python-0.2.1/ddx-common/src/types/execution.rs +43 -0
  39. ddx_python-0.2.1/ddx-common/src/types/identifiers.rs +1246 -0
  40. ddx_python-0.2.1/ddx-common/src/types/mod.rs +96 -0
  41. ddx_python-0.2.1/ddx-common/src/types/primitives/numbers.rs +733 -0
  42. ddx_python-0.2.1/ddx-common/src/types/primitives.rs +1854 -0
  43. ddx_python-0.2.1/ddx-common/src/types/request.rs +1313 -0
  44. ddx_python-0.2.1/ddx-common/src/types/state/exported.rs +1520 -0
  45. ddx_python-0.2.1/ddx-common/src/types/state/trader.rs +640 -0
  46. ddx_python-0.2.1/ddx-common/src/types/state.rs +1484 -0
  47. ddx_python-0.2.1/ddx-common/src/types/transaction.rs +1790 -0
  48. ddx_python-0.2.1/ddx-common/src/util/backoff.rs +13 -0
  49. ddx_python-0.2.1/ddx-common/src/util/convert.rs +6 -0
  50. ddx_python-0.2.1/ddx-common/src/util/eip712.rs +355 -0
  51. ddx_python-0.2.1/ddx-common/src/util/enclave.rs +43 -0
  52. ddx_python-0.2.1/ddx-common/src/util/env.rs +123 -0
  53. ddx_python-0.2.1/ddx-common/src/util/mem.rs +18 -0
  54. ddx_python-0.2.1/ddx-common/src/util/mod.rs +49 -0
  55. ddx_python-0.2.1/ddx-common/src/util/serde.rs +417 -0
  56. ddx_python-0.2.1/ddx-common/src/util/tokenize.rs +659 -0
  57. ddx_python-0.2.1/ddx-python/Cargo.toml +15 -0
  58. ddx_python-0.2.1/ddx-python/src/ddx_common.rs +147 -0
  59. ddx_python-0.2.1/ddx-python/src/decimal.rs +30 -0
  60. ddx_python-0.2.1/ddx-python/src/h256.rs +30 -0
  61. ddx_python-0.2.1/ddx-python/src/lib.rs +31 -0
  62. ddx_python-0.2.0/ddx-python/Cargo.toml +0 -12
  63. ddx_python-0.2.0/ddx-python/src/decimal.rs +0 -262
  64. ddx_python-0.2.0/ddx-python/src/lib.rs +0 -19
  65. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/README.md +0 -0
  66. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/__init__.py +0 -0
  67. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Add_000_001.csv +0 -0
  68. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Add_100_100.csv +0 -0
  69. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Add_111_111.csv +0 -0
  70. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Div_100_100.csv +0 -0
  71. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Div_101_010.csv +0 -0
  72. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Div_110_000.csv +0 -0
  73. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Div_111_110.csv +0 -0
  74. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Div_111_111.csv +0 -0
  75. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Mul_001_000.csv +0 -0
  76. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Mul_010_111.csv +0 -0
  77. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Mul_100_101.csv +0 -0
  78. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Mul_110_001.csv +0 -0
  79. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Mul_111_111.csv +0 -0
  80. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Rem_101_101.csv +0 -0
  81. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Rem_111_000.csv +0 -0
  82. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Rem_111_110.csv +0 -0
  83. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Sub_101_110.csv +0 -0
  84. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Sub_110_011.csv +0 -0
  85. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal/Sub_111_111.csv +0 -0
  86. {ddx_python-0.2.0 → ddx_python-0.2.1}/ddx-python/tests/decimal_test.py +0 -0
  87. {ddx_python-0.2.0 → ddx_python-0.2.1}/pyproject.toml +0 -0
@@ -485,20 +485,6 @@ dependencies = [
485
485
  "syn 2.0.53",
486
486
  ]
487
487
 
488
- [[package]]
489
- name = "async-tungstenite"
490
- version = "0.14.0"
491
- source = "registry+https://github.com/rust-lang/crates.io-index"
492
- checksum = "8645e929ec7964448a901db9da30cd2ae8c7fecf4d6176af427837531dbbb63b"
493
- dependencies = [
494
- "futures-io",
495
- "futures-util",
496
- "log",
497
- "pin-project-lite",
498
- "tokio",
499
- "tungstenite 0.13.0",
500
- ]
501
-
502
488
  [[package]]
503
489
  name = "atomic"
504
490
  version = "0.5.3"
@@ -1404,6 +1390,7 @@ dependencies = [
1404
1390
  "base64 0.13.1",
1405
1391
  "base64-url",
1406
1392
  "byte-unit",
1393
+ "cfg-if 1.0.0",
1407
1394
  "chrono",
1408
1395
  "clap 4.5.4",
1409
1396
  "console-subscriber",
@@ -1413,6 +1400,7 @@ dependencies = [
1413
1400
  "ddx-common-macros",
1414
1401
  "ddx-ethereum",
1415
1402
  "deadpool-postgres",
1403
+ "derive_builder",
1416
1404
  "dirs",
1417
1405
  "env_logger 0.7.1",
1418
1406
  "ethabi",
@@ -1469,7 +1457,6 @@ version = "0.8.0"
1469
1457
  dependencies = [
1470
1458
  "anyhow",
1471
1459
  "async-std",
1472
- "async-tungstenite",
1473
1460
  "backoff",
1474
1461
  "ddx-common",
1475
1462
  "futures-util",
@@ -1491,7 +1478,9 @@ dependencies = [
1491
1478
  "backoff",
1492
1479
  "bitvec 0.20.4",
1493
1480
  "bytes",
1481
+ "cfg-if 1.0.0",
1494
1482
  "chrono",
1483
+ "clap 4.5.4",
1495
1484
  "ddx-common",
1496
1485
  "ddx-common-macros",
1497
1486
  "derive_builder",
@@ -1501,12 +1490,15 @@ dependencies = [
1501
1490
  "ethereum-types",
1502
1491
  "gjson",
1503
1492
  "hash-db",
1493
+ "heapless",
1504
1494
  "lazy_static",
1505
1495
  "libsecp256k1",
1506
1496
  "log",
1507
1497
  "nom",
1508
1498
  "plain_hasher",
1509
1499
  "postgres-types",
1500
+ "pyo3",
1501
+ "pythonize",
1510
1502
  "quickcheck",
1511
1503
  "rand",
1512
1504
  "regex",
@@ -1536,6 +1528,7 @@ dependencies = [
1536
1528
  name = "ddx-common-macros"
1537
1529
  version = "0.8.0"
1538
1530
  dependencies = [
1531
+ "heapless",
1539
1532
  "proc-macro2",
1540
1533
  "quote",
1541
1534
  "rust_decimal",
@@ -1620,10 +1613,10 @@ dependencies = [
1620
1613
 
1621
1614
  [[package]]
1622
1615
  name = "ddx-python"
1623
- version = "0.2.0"
1616
+ version = "0.2.1"
1624
1617
  dependencies = [
1618
+ "ddx-common",
1625
1619
  "pyo3",
1626
- "rust_decimal",
1627
1620
  ]
1628
1621
 
1629
1622
  [[package]]
@@ -1666,6 +1659,7 @@ dependencies = [
1666
1659
  "serde_json",
1667
1660
  "sparse-merkle-tree",
1668
1661
  "tiny-keccak 1.5.0",
1662
+ "tokio",
1669
1663
  "tracing",
1670
1664
  "tracing-subscriber",
1671
1665
  ]
@@ -2432,6 +2426,15 @@ version = "0.15.2"
2432
2426
  source = "registry+https://github.com/rust-lang/crates.io-index"
2433
2427
  checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a"
2434
2428
 
2429
+ [[package]]
2430
+ name = "hash32"
2431
+ version = "0.3.1"
2432
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2433
+ checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606"
2434
+ dependencies = [
2435
+ "byteorder",
2436
+ ]
2437
+
2435
2438
  [[package]]
2436
2439
  name = "hashbrown"
2437
2440
  version = "0.12.3"
@@ -2492,6 +2495,17 @@ dependencies = [
2492
2495
  "http",
2493
2496
  ]
2494
2497
 
2498
+ [[package]]
2499
+ name = "heapless"
2500
+ version = "0.8.0"
2501
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2502
+ checksum = "0bfb9eb618601c89945a70e254898da93b13be0388091d42117462b265bb3fad"
2503
+ dependencies = [
2504
+ "hash32",
2505
+ "serde",
2506
+ "stable_deref_trait",
2507
+ ]
2508
+
2495
2509
  [[package]]
2496
2510
  name = "heck"
2497
2511
  version = "0.4.1"
@@ -2824,15 +2838,6 @@ dependencies = [
2824
2838
  "str_stack",
2825
2839
  ]
2826
2840
 
2827
- [[package]]
2828
- name = "input_buffer"
2829
- version = "0.4.0"
2830
- source = "registry+https://github.com/rust-lang/crates.io-index"
2831
- checksum = "f97967975f448f1a7ddb12b0bc41069d09ed6a1c161a92687e057325db35d413"
2832
- dependencies = [
2833
- "bytes",
2834
- ]
2835
-
2836
2841
  [[package]]
2837
2842
  name = "instant"
2838
2843
  version = "0.1.12"
@@ -2850,6 +2855,12 @@ dependencies = [
2850
2855
  "memoffset",
2851
2856
  ]
2852
2857
 
2858
+ [[package]]
2859
+ name = "inventory"
2860
+ version = "0.3.15"
2861
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2862
+ checksum = "f958d3d68f4167080a18141e10381e7634563984a537f2a49a30fd8e53ac5767"
2863
+
2853
2864
  [[package]]
2854
2865
  name = "io-lifetimes"
2855
2866
  version = "1.0.11"
@@ -4059,6 +4070,7 @@ checksum = "53bdbb96d49157e65d45cc287af5f32ffadd5f4761438b527b055fb0d4bb8233"
4059
4070
  dependencies = [
4060
4071
  "cfg-if 1.0.0",
4061
4072
  "indoc",
4073
+ "inventory",
4062
4074
  "libc",
4063
4075
  "memoffset",
4064
4076
  "parking_lot",
@@ -4114,6 +4126,16 @@ dependencies = [
4114
4126
  "syn 2.0.53",
4115
4127
  ]
4116
4128
 
4129
+ [[package]]
4130
+ name = "pythonize"
4131
+ version = "0.20.0"
4132
+ source = "registry+https://github.com/rust-lang/crates.io-index"
4133
+ checksum = "ffd1c3ef39c725d63db5f9bc455461bafd80540cb7824c61afb823501921a850"
4134
+ dependencies = [
4135
+ "pyo3",
4136
+ "serde",
4137
+ ]
4138
+
4117
4139
  [[package]]
4118
4140
  name = "quanta"
4119
4141
  version = "0.12.2"
@@ -4963,19 +4985,6 @@ dependencies = [
4963
4985
  "sgx_uprotected_fs",
4964
4986
  ]
4965
4987
 
4966
- [[package]]
4967
- name = "sha-1"
4968
- version = "0.9.8"
4969
- source = "registry+https://github.com/rust-lang/crates.io-index"
4970
- checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6"
4971
- dependencies = [
4972
- "block-buffer 0.9.0",
4973
- "cfg-if 1.0.0",
4974
- "cpufeatures",
4975
- "digest 0.9.0",
4976
- "opaque-debug",
4977
- ]
4978
-
4979
4988
  [[package]]
4980
4989
  name = "sha1"
4981
4990
  version = "0.10.6"
@@ -5593,7 +5602,7 @@ dependencies = [
5593
5602
  "futures-util",
5594
5603
  "log",
5595
5604
  "tokio",
5596
- "tungstenite 0.18.0",
5605
+ "tungstenite",
5597
5606
  ]
5598
5607
 
5599
5608
  [[package]]
@@ -5816,26 +5825,6 @@ version = "0.2.5"
5816
5825
  source = "registry+https://github.com/rust-lang/crates.io-index"
5817
5826
  checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
5818
5827
 
5819
- [[package]]
5820
- name = "tungstenite"
5821
- version = "0.13.0"
5822
- source = "registry+https://github.com/rust-lang/crates.io-index"
5823
- checksum = "5fe8dada8c1a3aeca77d6b51a4f1314e0f4b8e438b7b1b71e3ddaca8080e4093"
5824
- dependencies = [
5825
- "base64 0.13.1",
5826
- "byteorder",
5827
- "bytes",
5828
- "http",
5829
- "httparse",
5830
- "input_buffer",
5831
- "log",
5832
- "rand",
5833
- "sha-1",
5834
- "thiserror",
5835
- "url",
5836
- "utf-8",
5837
- ]
5838
-
5839
5828
  [[package]]
5840
5829
  name = "tungstenite"
5841
5830
  version = "0.18.0"
@@ -1,5 +1,5 @@
1
1
  [workspace]
2
- members = ["ddx-python"]
2
+ members = ["ddx-common", "ddx-python"]
3
3
 
4
4
  exclude = ["third-party"]
5
5
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ddx_python
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -0,0 +1,137 @@
1
+ [package]
2
+ name = "ddx-common"
3
+ version = "0.8.0"
4
+ edition = "2021"
5
+
6
+ [features]
7
+ alpha1 = []
8
+ benchmark = []
9
+ python = [
10
+ "pyo3",
11
+ "ethabi/serde",
12
+ "rust_decimal/maths",
13
+ "pythonize",
14
+ ]
15
+ test_harness = []
16
+ default = ["database", "arbitrary"] # Requires the std by default
17
+ arbitrary = ["quickcheck"]
18
+ database = ["postgres-types", "bytes"]
19
+ index_fund = []
20
+ multi_strategies = []
21
+
22
+ [dependencies]
23
+ ddx-common-macros = { path = "./macros" }
24
+ # Types, encoding and serialization
25
+ serde-big-array = "0.3.2"
26
+ ethereum-types = { version = "0.14.1", default-features = false, features = [
27
+ "serialize",
28
+ ] }
29
+ ethabi = { version = "18.0.0", default-features = false }
30
+ hash-db = { version = "0.15.2", default-features = false }
31
+ plain_hasher = { version = "0.2.3", default-features = false }
32
+ rlp = { version = "0.5.1", default-features = false }
33
+ # Using the no_std mode of serde which should also work in the enclave without a custom port
34
+ serde = { version = "1.0", features = ["derive"] }
35
+ serde_json = { version = "1.0" }
36
+ serde_repr = { version = "0.1", default-features = false }
37
+ rustc-hex = { version = "2.1.0", default-features = false }
38
+ rust_decimal = { version = "1.34", features = ["serde"] }
39
+ postgres-types = { version = "0.2", features = [
40
+ "derive",
41
+ "with-serde_json-1",
42
+ ], optional = true }
43
+ triehash = { version = "0.8", default-features = false }
44
+
45
+ # Exception management
46
+ anyhow = { version = "1", default-features = false }
47
+ thiserror = { version = "1" }
48
+
49
+ # Logging
50
+ log = { version = "0.4.11", default-features = false }
51
+ # TODO: Deprecate usage of the log facade in favor of tracing
52
+ tracing = { version = "0.1", features = [
53
+ "attributes",
54
+ ], default-features = false }
55
+
56
+ # Utils
57
+ sparse-merkle-tree = { git = "https://github.com/jjyr/sparse-merkle-tree.git", rev = "b7932906aa2da6059c8ed19c93821fa78d271f73", default-features = false }
58
+ lazy_static = { version = "1.4.0", default-features = false, features = [
59
+ "spin_no_std",
60
+ ] }
61
+ bytes = { version = "1.0", default-features = false, optional = true }
62
+ arrayvec = { version = "0.5.0", default-features = false }
63
+ bitvec = { version = "0.20.4", default-features = false, features = ["alloc"] }
64
+ cfg-if = "1.0.0"
65
+ derive_builder = "0.20.0"
66
+ heapless = { version = "0.8.0", features = [ "serde" ] }
67
+ clap = "4.5.4"
68
+
69
+ # Cryptography
70
+ aes-gcm = { version = "0.9.3", default-features = false, features = [
71
+ "alloc",
72
+ "aes",
73
+ ] }
74
+ libsecp256k1 = { version = "0.7.1", default-features = false }
75
+ # Versions of digest and typenum must be aligned with libsecp256k1
76
+ digest = { version = "0.9", default-features = false }
77
+ typenum = "1.13.0"
78
+ tiny-keccak = { version = "1.4" }
79
+
80
+ # Development and testing
81
+ quickcheck = { version = "1.0.3", optional = true }
82
+
83
+ # Specs related
84
+ chrono = { version = "0.4" }
85
+ gjson = { version = "0.8" }
86
+ nom = "7.1"
87
+ dyn-fmt = { version = "0.3", default-features = false }
88
+ regex = { version = "1.3.1" }
89
+
90
+ # Python types (should be in the python feature)
91
+ pyo3 = { version = "0.20.3", optional = true, features = ["multiple-pymethods"] }
92
+ pythonize = { version = "0.20.0", optional = true }
93
+
94
+ [dev-dependencies]
95
+ ddx-common = { path = ".", features = ["test_harness"] }
96
+ rand = "0.8.5"
97
+ serde_cbor = "0.11.2"
98
+ tracing-subscriber = { version = "0.3", features = [
99
+ "env-filter",
100
+ "json",
101
+ "time",
102
+ "registry",
103
+ ] }
104
+ tracing-log = "0.1.3"
105
+ time = "0.3.17"
106
+
107
+ [target.'cfg(all(not(target_vendor = "teaclave"), not(target_family = "wasm")))'.dependencies]
108
+ anyhow = { version = "1" }
109
+ backoff = { version = "0.4.0" }
110
+ ethabi = { version = "18.0.0", default-features = false, features = ["std"] }
111
+ log = { version = "0.4.11", default-features = false, features = ["std"] }
112
+ # Wasm types (should be in the wasm feature)
113
+ wasm-bindgen = { version = "0.2" }
114
+ rust_decimal = { version = "1.34", features = ["serde", "db-postgres"] }
115
+ # SGX
116
+ sgx_types = { git = "https://gitlab.com/dexlabs/incubator-teaclave-sgx-sdk", branch = "v2.0.0-sgx-emm" }
117
+ libsecp256k1 = { version = "0.7.1", default-features = false, features = [
118
+ "hmac",
119
+ ] }
120
+
121
+ [target.'cfg(target_vendor = "teaclave")'.dependencies]
122
+ anyhow = { version = "1" }
123
+ log = { version = "0.4.11", default-features = false, features = ["std"] }
124
+ ethabi = { version = "18.0.0", default-features = false, features = ["std"] }
125
+ aes-gcm = { version = "0.9.3", default-features = false, features = [
126
+ "alloc",
127
+ "aes",
128
+ "force-soft",
129
+ ] }
130
+ # SGX
131
+ sgx_crypto = { git = "https://gitlab.com/dexlabs/incubator-teaclave-sgx-sdk", branch = "v2.0.0-sgx-emm" }
132
+
133
+ [target.'cfg(target_family = "wasm")'.dependencies]
134
+ wasm-bindgen = { version = "0.2" }
135
+ libsecp256k1 = { version = "0.7.1", default-features = false, features = [
136
+ "hmac",
137
+ ] }
@@ -0,0 +1,20 @@
1
+ [package]
2
+ name = "ddx-common-macros"
3
+ version = "0.8.0"
4
+ edition = "2021"
5
+
6
+ [dependencies]
7
+ syn = { version = "1.0.48", features = [
8
+ "extra-traits",
9
+ "full",
10
+ "fold",
11
+ "parsing",
12
+ ] }
13
+ quote = "1.0.7"
14
+ proc-macro2 = "1.0.24"
15
+ rust_decimal = { version = "1.34", features = ["serde"] }
16
+ serde_json = { version = "1.0" }
17
+ heapless = { version = "0.8.0" }
18
+
19
+ [lib]
20
+ proc-macro = true