Commit Graph

638 Commits

Author SHA1 Message Date
parazyd
27fd3785f8 chore: Update crate dependencies and CI Rust version 2024-07-09 12:20:06 +02:00
skoupidi
cb029adc4d contract/dao/lib: typo lol 2024-07-01 18:37:57 +03:00
skoupidi
7b92070c7c contract/dao/lib: fixed blockwindow 2024-07-01 18:33:31 +03:00
skoupidi
3f31e393e1 contract/money/client/pow_reward: minor cleanup 2024-06-20 14:18:27 +03:00
skoupidi
6e59afaee3 contract/money/client/genesis_mint: allow optional different recipient 2024-06-20 14:18:27 +03:00
skoupidi
5313217f9f contract/money/client/genesis_mint: minor cleanup 2024-06-19 20:07:25 +03:00
skoupidi
82a56cd2c2 validator: properly handle gas limit checks 2024-06-19 12:00:21 +03:00
foo
302d482475 money/client/transfer: Fix integer truncation issues when dividing for half-split
- Fix issue where `half` was calculated incorrectly for odd values of
  `value`
- Fix issue where sending a `value` of 1 and `half_split` of true would
  result in two empty value transfers

Note that this is only a client issue. The wasm back-end would cause the
invalid transfer to fail as the tx outputs from the client would not
match the inputs
2024-06-09 17:53:21 +03:00
foo
4eba00236d clippy: add suggested clippy lints to top-level Cargo.toml and enable
clippy linting at the workspace level for all crates

Configure all workspaces to use lints from the top-level Cargo.toml
  file
Add example lints that the project could configure to improve security
  and reliability.
Configure lints to warn level. Using deny level makes other binaries
fail to compile if even one of them has a failure.
No lints are added in this commit. Future changes can enable and fix
lints
2024-06-09 10:35:09 -04:00
skoupidi
a755c30b75 contract/dao: renamed all day references to blockwindow 2024-06-05 16:33:38 +03:00
skoupidi
b5cb5a55b7 contract/dao: use actual runtime block target time not hardcoded one in blockwindow() 2024-06-05 14:20:17 +03:00
skoupidi
43f9fc8aa1 runtime: get_block_target() fn added, to retrieve current block time target(seconds) 2024-06-05 13:25:48 +03:00
skoupidi
6b5ae99724 drk/transfer: added new --half-split to split output coin into two equal halves 2024-06-04 15:35:27 +03:00
parazyd
80d103a2ba chore: Update crate dependencies 2024-06-04 10:24:28 +02:00
skoupidi
a0024ad508 drk: proposal exec functionalities added 2024-05-31 22:05:12 +03:00
skoupidi
cbb53aa8ec drk: refactored DAO votes functionalities 2024-05-30 17:54:28 +03:00
skoupidi
78eeefe1d5 DAO: changed nullifiers SMT logic to store a set of roots and updated propose entrypoint accordingly 2024-05-28 14:11:21 +03:00
parazyd
2e37330d0d chore: Update crate dependencies 2024-05-27 15:29:58 +02:00
skoupidi
96a8068ec3 drk: refactor to support SMT
Additionaly, some cleanup was done, minor bugz fixed and updated DAO Propose call with the new setup and added its fee call.
2024-05-25 18:29:40 +03:00
skoupidi
fb5865fce4 drk: provide liquidity to dao with transfer and token mint 2024-05-22 20:49:22 +03:00
skoupidi
10ea889e31 drk: dao records sympliefied and dao mint call fee added
Removed dao_id and use the dao name as the identifier. Cleaned up all dao record structures. Fixed dao mint call and added its fee.
2024-05-22 16:43:17 +03:00
skoupidi
e93b6cca95 contract/dao/{entrypoint, client}: replaced asserts with error returns and fixed log targets 2024-05-20 15:14:13 +03:00
skoupidi
0fb90b0978 contract/deployooor/client: replaced asserts with error returns and added log targets 2024-05-20 14:18:05 +03:00
skoupidi
5c126999a1 contract/money/client: replaced asserts with error returnes and added log targets 2024-05-20 14:11:11 +03:00
skoupidi
0243560e1f drk: added fee call to deployoOor calls 2024-05-17 20:18:04 +03:00
skoupidi
4661d797cd drk: attach-fee added and fixed otc swap 2024-05-17 20:04:42 +03:00
skoupidi
c3433efe2e drk: cleanup on swap aisle 2024-05-16 22:07:20 +03:00
skoupidi
c37618f354 drk: fixed token freezing and added its fee call 2024-05-16 14:14:14 +03:00
skoupidi
f52b4573e9 contract/money: switched auth_token_mint and token_mint execution order 2024-05-16 12:10:04 +03:00
skoupidi
8280857a00 contract/money: renamed TokenFreeze to AuthTokenFreeze and removed redundant proof 2024-05-15 20:48:48 +03:00
skoupidi
aa1c5d80d2 contract/money: shuffled functions enum 2024-05-15 19:47:15 +03:00
skoupidi
e3e8e3a8be contract/money: removed unused coin from auth token mint call 2024-05-15 18:13:27 +03:00
skoupidi
0008360eb2 contract/money: replaced entrypoints code asserts with errors 2024-05-15 15:37:27 +03:00
skoupidi
9e71055a9d drk: fixed token minting and added its fee call 2024-05-13 15:42:46 +03:00
skoupidi
73a159ef83 contract/money: properly integrate txs fees into block rewards 2024-05-02 19:01:07 +03:00
skoupidi
cd4655bb62 src/contract/money: delayed_tx test added 2024-05-01 17:42:24 +03:00
skoupidi
e956ee71f2 drk: bincode rpc retrieval fixed, transfer tx generation fixed 2024-04-29 16:40:00 +03:00
skoupidi
080417bb3f chore: replaced all MerkleTree::new(100) with MerkleTree::new(1) for consistency 2024-04-27 16:02:36 +03:00
skoupidi
80044e306f darkfid: fully configurable fees verification 2024-04-27 15:09:37 +03:00
skoupidi
12efdd87f3 darkfid: use proposals/consensus logic while syncing
Additionally, performed some cleanup on validator code and handled cleaning up fork mempool when finalizing a block
2024-04-18 18:43:57 +03:00
zero
2d9f5af6b5 test-harness: update pks/vks hashes 2024-04-10 11:00:51 +02:00
zero
441150bbad contracts: adjust k values to smallest possible 2024-04-10 10:37:02 +02:00
zero
e1b259c019 zkrunner: regenerate all proof witness json files 2024-04-10 10:04:29 +02:00
skoupidi
9f5e6aafc4 blockchain: changed block height from u64 to u32 2024-04-08 15:17:01 +03:00
skoupidi
1a0f997f28 contracts: simplyfied call index usize usage 2024-04-08 12:10:22 +03:00
skoupidi
d9304c15cd runtime: changed call_index from u32 to u8 2024-04-08 11:40:16 +03:00
skoupidi
930a511309 blockchain: major hashes cleanup 2024-04-04 22:00:51 +03:00
zero
b42cb611c5 runtime: review and update ACL perms for fns 2024-04-03 18:57:40 +02:00
zero
cb4ef9b1fe money: fix FIXME, add (tx_hash, call_idx) now the calls exist 2024-04-03 18:20:24 +02:00
zero
e0932c5c50 deployooor: fix instruction deserialization 2024-04-03 13:53:20 +02:00