parazyd
afc855457c
contract/money: Add missing doc anchor
2023-06-07 19:50:38 +02:00
parazyd
6df3990e8a
contract/money: Fix typos in some of the error enums.
2023-06-07 19:45:48 +02:00
parazyd
c9556a160c
contract/consensus: Introduce ConsensusUnstakeReqParams due to previous commit.
2023-06-07 19:45:48 +02:00
parazyd
74228af058
contract/consensus: Use Money's Input struct for the Consensus::Stake params.
2023-06-07 19:07:12 +02:00
parazyd
01b6b6b1d9
contract/consensus: Don't check signature in StakeV1, it's already checked in Money.
2023-06-07 19:06:10 +02:00
parazyd
8b5717c4f2
book: Document consensus Stake functionality.
2023-06-07 18:56:35 +02:00
parazyd
db3f3af6d1
contract/money: Enforce input spend_hook is zero for StakeV1.
2023-06-07 18:02:23 +02:00
parazyd
f61aa41fac
contract/consensus: Minor cleanups.
2023-06-07 16:38:57 +02:00
aggstam
4e521f2826
contract/consensus: use previous proposal/block hash in vrf input
2023-06-07 16:42:44 +03:00
aggstam
e436e6d069
consensus/state/SlotCheckpoint: renamed eta to previous eta and introduced fork hashes vector
2023-06-07 16:42:44 +03:00
aggstam
1035ca4ce5
contract/consensus: use vector instead of array for VRF input creation
2023-06-07 16:42:44 +03:00
aggstam
9bf0937d56
contract/consensus/proof: removed obselete proofs
2023-06-07 16:42:44 +03:00
parazyd
212d04bbc7
book: Document consensus GenesisStake functionality.
2023-06-07 14:42:56 +02:00
parazyd
95a2da019b
contract: Use native constants instead of wrapped ones for ZERO.
2023-06-07 14:25:57 +02:00
aggstam
e77f801a1f
.github/workflows/book.yml: updated dependencies
2023-06-07 02:44:35 +03:00
aggstam
463790ee83
.github/workflows/ci.yml: updated dependencies, contrib/docker/*: updated dependencies and minor cleanup
...
Only Dockerfile.alpine was tested, it works. Rest should also work. NFA, DYOR
2023-06-07 02:29:12 +03:00
aggstam
03a26f109c
contract/consensus/proposal: validate input coin is not on unstake set
2023-06-07 00:26:28 +03:00
aggstam
b6a58ef597
contract/consensus: introduce unstake request and unstake timelock
...
Staker will have to request to unstake their token. Once request pass, tokens are locked and they can't use them to participate in proposals or unstake them. After grace(lock) period has passed, they can normaly unstake them(move them to Money).
2023-06-06 23:51:36 +03:00
aggstam
9054780c28
util/time/TimeKeeper: changed slot epoch calculation(increment by 1)
2023-06-06 23:51:36 +03:00
aggstam
e2ad94dfff
contract/consensus: introduce stake timelock
...
With this check added, a staker is only able to propose after grace(lock) period has passed
2023-06-06 23:51:36 +03:00
Dastan-glitch
9c2f9630ef
event_graph: fix/add debug msgs
2023-06-06 22:41:19 +03:00
Dastan-glitch
5a3d609830
event_graph: remove InvItem id field
2023-06-06 22:34:30 +03:00
parazyd
3db33c07b4
event_graph: WIP integration test.
2023-06-06 19:53:06 +02:00
parazyd
5116377b00
Add some missing deps for fun
2023-06-06 18:11:04 +02:00
parazyd
08e92dbde3
util: Implement RingBuffer as exportable API
2023-06-06 16:09:30 +02:00
parazyd
0d6f9600bb
drk: Clippy lint
2023-06-06 16:05:47 +02:00
parazyd
bfc99c79ea
chore: Update crate dependencies.
2023-06-06 14:06:36 +02:00
parazyd
88865e2663
drk: Replace "play" with "rodio".
...
Fun police go away.
This removes the deps on pkgconfig and libmpg123, and should ease the
build process for non GNU/Linux operating systems.
2023-06-06 14:06:36 +02:00
aggstam
39be99644c
contract/*: created test-no-run target in Makefile
2023-06-06 14:44:18 +03:00
parazyd
09eb0e1147
sdk: Implement a macro for bs58 => pallas::Base and use it where applicable.
2023-06-06 13:16:36 +02:00
parazyd
16a14a7260
Makefile: Add test-no-run target to be able to only compile tests.
2023-06-06 13:03:41 +02:00
parazyd
bd13d9fa9b
book/development: Add note on codecov.
2023-06-06 13:03:41 +02:00
Andreas Doerr
2266d8be02
chore: Fix cargo doc warnings ( #174 )
...
Signed-off-by: adoerr <0xad@gmx.net >
2023-06-06 10:57:52 +00:00
aggstam
ced0fe179a
contract/consensus: chop chop
2023-06-05 23:51:31 +03:00
aggstam
ee54c27b67
contract/consensus: tests fixed
2023-06-05 23:35:31 +03:00
aggstam
7c186422c9
contract/consensus: removed ZERO suffixes on poseidon hashes
2023-06-05 23:27:47 +03:00
aggstam
128725cffc
[WIP] contract/consensus: fixed proof constrains
2023-06-05 22:47:33 +03:00
aggstam
2c6d392c83
[WIP] contract/consensus: create single proposal proof/call
2023-06-05 21:59:39 +03:00
aggstam
53682169cd
sdk: get_verifying_slot_epoch added
2023-06-05 21:59:39 +03:00
aggstam
b470804fbf
contract/consensus: use new ConsensusMint proof in ConsensusStake, minor cleanup
2023-06-05 21:59:39 +03:00
aggstam
1615ea1e75
contract/consensus: use new ConsensusBurn proof in ConsensusUnstake
2023-06-05 21:59:39 +03:00
aggstam
b9c817fce8
contract/consensus: use new ConsensusBurn proof in GenesisStake
2023-06-05 21:59:39 +03:00
aggstam
7ebe829caf
contract/consensus/proof: consensus burn and mint proofs added
2023-06-05 21:59:39 +03:00
parazyd
f306bc1f8d
consensus: Implement gas costs for ZkBinary
2023-06-05 19:20:02 +02:00
parazyd
1cb00112ae
zkas: Enforce a limit on the circuit namespace length
2023-06-05 19:19:24 +02:00
parazyd
54225ed4fd
runtime: Double the gas limit.
2023-06-05 19:16:49 +02:00
parazyd
9cf3fee6ac
runtime: Make all WASM opcodes cost 1 unit, clean up gas_info.
2023-06-05 17:31:19 +02:00
parazyd
85e548e709
drk: Clippy lint
2023-06-05 17:01:21 +02:00
Dastan-glitch
6a93ce2437
tests/network_transports: fix clippy lints
2023-06-05 04:37:35 +03:00
Dastan-glitch
bfa6fd9bd9
bin/darkirc: test script use seed and private channel
2023-06-05 02:04:37 +03:00