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
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
08e92dbde3
util: Implement RingBuffer as exportable API
2023-06-06 16:09:30 +02:00
parazyd
bfc99c79ea
chore: Update crate dependencies.
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
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
Dastan-glitch
7fa24f42e9
event_graph: rebroadcast received events
2023-06-05 01:04:09 +03:00
Dastan-glitch
6782f8e9f6
event_graph: remove unused UnreadEvents struct
2023-06-04 03:54:20 +03:00
parazyd
f73856ecac
drk: Store bs58 encoded transaction history in the wallet
2023-06-01 15:57:54 +02:00
parazyd
c129ab4cb3
runtime: Add sanity_check function for checking WASM bincode.
2023-05-30 11:38:18 +02:00
parazyd
1a540c67e0
Derive TokenID with a derivation prefix.
2023-05-30 09:34:38 +02:00
parazyd
356c661a08
sdk/contract_id: Fix rustdoc typos
2023-05-30 00:54:19 +02:00
parazyd
93f3c70e0c
sdk/contract_id: Add a derivation prefix for deriving ContractID.
2023-05-30 00:29:13 +02:00
parazyd
89666c0849
runtime: Add TODO on using sled-overlay for deploy()
2023-05-30 00:29:13 +02:00
parazyd
a8c469c89d
contract/money: Fix DB_VERSION tree name.
2023-05-30 00:29:13 +02:00
parazyd
d59d3cd21a
contract/deployooor: Initial impl of non-native smart contract deployment.
...
This supports (Re)Deployment of smart contracts, and additionally making
them immutable after they have been deployed.
2023-05-30 00:29:13 +02:00
parazyd
558b0d330e
event_graph: Simplofy EventId::hash
2023-05-28 08:24:59 +02:00
Dastan-glitch
1481612c2f
event_graph: use blake3 instead of ripemd for hashing events
2023-05-28 04:51:11 +03:00
parazyd
f4932072c6
zkvm: Implement cond_select opcode.
2023-05-27 15:35:48 +02:00
aggstam
87eb662e27
src/contract/consensus-money: Added TODO placeholders for value > 0 opcode
2023-05-26 18:19:07 +03:00
parazyd
7364fdd15e
tx: Enable parallelism when hashing transactions with blake3.
...
txs are usually >128KiB so this could be beneficial.
2023-05-26 09:46:04 +02:00
parazyd
bc9b25bf1f
error: Correct error string for wasm failed exit
2023-05-24 13:13:25 +02:00
parazyd
a326a67901
zkas: Add basic debug prints
2023-05-24 13:09:54 +02:00
parazyd
bd45042ef3
contract/money: Prepend "Token" to Money::{Mint,Freeze} namespace.
...
Mint and Freeze are too ambiguous.
2023-05-24 12:04:07 +02:00
Dastan-glitch
de9ad09e5b
event_graph: remove read_confirms and unread_events
2023-05-23 23:49:37 +03:00
parazyd
6cddfac05f
Replace num_cpus crate with stdlib alternative.
2023-05-19 09:59:55 +02:00
aggstam
4f9e3c902e
contract/consensus/tests: further simplyfied execution
2023-05-18 20:52:18 +03:00
aggstam
4d7617ad59
contract/consensus: GenesisStake contract call added
2023-05-18 20:12:04 +03:00