x
fab18bcb61
cargo fmt
2023-12-18 12:30:09 +00:00
x
39499ac2d7
dao: cleanup by introducing the CoinParams -> Coin, Dao -> DaoBulla, and Proposal -> ProposalBulla paradigm. use consistently throughout the builders.
2023-12-18 12:23:34 +00:00
Dastan-glitch
7529e4a655
src/event_graph: use dag_get() method
2023-12-18 05:20:57 +03:00
aggstam
aac6b2c6c2
darkirc: update event_graph synced flag when we were already on latest tip
2023-12-14 11:45:33 +01:00
aggstam
b1821df428
darkirc: update event_graph synced flag when we skip sync
2023-12-14 11:45:32 +01:00
aggstam
cdaddfbfe2
event_graph: introduce layers to the DAG
...
Each event corresponds to a specific layer(height) in the dag, making identifying and preventing cycles way easier, as all parents must exist in previous layers. Additionally, propagation and sync gremlins have been eliminated, and proper validations added
2023-12-14 11:45:32 +01:00
parazyd
b48b58af03
chore: Clippy lints
2023-12-13 10:20:38 +01:00
parazyd
b23021e3a1
chore: Update crate dependencies
2023-12-13 10:14:43 +01:00
y
7c6f93c547
util-time: Add panic for overflow/underflow
...
Cause the timestamp functions with addition and subtraction to panic if
they would overflow. This helps to prevent logic issues. However, this
is potentially dangerous if the timestamp can be forced to overflow and
cause a panic; so, added TODOs as a note for future refactoring.
2023-12-11 10:46:26 -05:00
parazyd
b2c4000477
rpc/server: Print info log on client disconnect
2023-12-07 23:43:45 +01:00
y
0c469fb3b7
sdk-util: formatting
2023-12-07 16:03:37 -05:00
y
14661fb3f7
sdk-util: Add size limits on data; comment code
...
Change `data.len() as u32` to `u32::try_from`. This will return an error
in the case where the length of the data exceeds u32. (Using an `as`
conversion will cause the value to overflow and write the wrong amount
of data).
Add a new ContractError enum `DataTooLarge` to handle this case.
Add a similar check to the `parse_ret` auxiliary function to ensure the
ret i64 fits into the u32 type.
Add code comments to the utility functions to explain what they do.
2023-12-07 15:58:26 -05:00
y
8f735dd650
event_graph: Make error msg more clear
...
Change wording and code comment to make it clear that the requested
event comes from a peer, and not the local node
2023-12-07 15:13:50 -05:00
y
dbba9ac939
runtime: Use deserialize instead of Cursor
...
Modify the zkas_db_set function to use deserialize instead of Cursor.
This provides stronger validation on the data passed to the function
2023-12-07 12:20:16 -05:00
y
753d01b249
runtime/sdk: change return types from i32 to i64
2023-12-07 11:57:08 -05:00
y
facbc1fc38
runtime: cleanup db_contains_key, zkas_db_set
2023-12-07 10:39:38 -05:00
y
e02fd444cd
runtime: Cleanup db_get() and db_del()
2023-12-06 14:06:01 -05:00
y
ae9a904c3d
runtime: db_set cleanup
...
Also fix some typos in db_lookup
2023-12-06 11:40:00 -05:00
y
126915ce53
runtime: Resolve Cursor TODO in db_lookup
...
Also refactor the param `len` to `ptr_len` to be consistent with db_init
2023-12-06 10:54:49 -05:00
y
0d0f4e861d
runtime: cleanup db_lookup
...
- Add comments to make operations more clear
- Change logging structure to be more detailed
- Resolve TODO concerning duplicated DbHandles
2023-12-05 15:23:47 -05:00
parazyd
295c8dcff9
chore: Update crate dependencies
2023-12-04 19:58:59 +01:00
parazyd
0fc67d63b6
runtime: Clean up db/db_init()
2023-12-01 15:05:32 +01:00
parazyd
6da3a4b637
rpc: Avoid a panic in TryFrom<&JsonValue> for JsonResponse
2023-12-01 12:25:36 +01:00
aggstam
bb99e816f2
validator: removed RwLock over whole struct ptr and moved to inner stuff
2023-11-30 18:44:24 +02:00
ertosns
567b334b95
[contract/dao] impl daobulla try into for shareaddrs
2023-11-30 01:58:18 +02:00
ertosns
da8de1bcd8
[sdk/crypto] remove wif
2023-11-30 01:58:18 +02:00
ertosns
ebf902d10d
[sdk/crypto] added shareaddress
2023-11-30 01:58:18 +02:00
parazyd
a7129c1211
serial: Export AsyncWriteExt and AsyncReadExt from futures_lite
2023-11-26 16:08:43 +01:00
parazyd
50572d88eb
serial: Remove blake2b_simd references
2023-11-26 13:56:48 +01:00
ertosns
dc2d08ecc6
[sdk/crypto/wif] minor edit in test
2023-11-24 17:51:50 +02:00
parazyd
336cbbd173
sdk/wif: Use sha2 crate and abstract double sha256 function.
2023-11-24 16:44:26 +01:00
ertosns
be08d20acf
missing crate
2023-11-24 17:17:01 +02:00
ertosns
90ed9bfad7
add license
2023-11-24 17:17:01 +02:00
ertosns
9502408115
[sdk/crypto] WIF test
2023-11-24 17:17:01 +02:00
ertosns
b8fe8c0533
[sdk/src/crypto] added WIF
2023-11-24 17:17:01 +02:00
parazyd
59d7ed09fc
contract/deployooor: Clippy lint
2023-11-24 12:16:34 +01:00
parazyd
69cfa99860
contract/deployooor: Validate webassembly binary and search for needed symbols
2023-11-24 12:13:51 +01:00
parazyd
7e0ffd41cd
net/settings: Use Settings::default() in SettingsOpt
...
This simplifies making default changes since now have to be done only once.
2023-11-24 11:18:47 +01:00
y
c6d9e495e8
[runtime/vm_runtime] Clarify comment for call()
...
Make it clear that it is only possible to use a "ContractSection" method
when making a call to `call()`.
2023-11-23 10:24:21 -05:00
y
6cff3c3a12
[runtime/vm_runtime] Add even more documentation
2023-11-23 10:00:58 -05:00
y
4f29180d9e
[runtime/vm_runtime] Add more documentation
2023-11-22 14:05:01 -05:00
y
78196dbdd2
[runtime/merke] Document method merkle_add()
2023-11-22 11:43:41 -05:00
y
d4b8d45b74
[runtime/util] Document methods
2023-11-22 11:15:27 -05:00
y
fd643a8d08
[validator/validation] Improve comment wording
2023-11-22 10:48:44 -05:00
y
dd471e6b06
[validator/validation] Typo and comment formatting
2023-11-22 10:22:41 -05:00
aggstam
4d3984a611
validator: renamed testing_mode to pos_testing_mode
2023-11-22 00:26:22 +02:00
ertosns
6e830b386a
[src/runtime] add link to open issue unstable cursor_reamining
2023-11-22 00:25:04 +02:00
ertosns
0d05fe6ebe
[src/runtime] rename db_handle:u32
2023-11-22 00:25:04 +02:00
y
1ffcaba5aa
[validator/verication] Revert additional changes
...
Commit a0636984e4 is reverted a previous
commit. There were a few relevant variables that were mistakenly changed
in a previous commit and no longer pass clippy. This commit makes clippy
happy.
2023-11-21 17:16:01 -05:00
y
d70dc7da65
Revert "[validator/verification] Reject massive txs"
...
This reverts commit a0636984e4 .
2023-11-21 17:13:22 -05:00