mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Initial validator sets pallet (#187)
* Initial work on a Validator Sets pallet * Update Validator Set docs per current discussions * Update validator-sets primitives and storage handling * Add validator set pallets to deny.toml * Remove Curve from primitives Since we aren't reusing keys across coins, there's no reason for it to be on-chain (as previously planned). * Update documentation on Validator Sets * Use Twox64Concat instead of Identity Ensures an even distribution of keys. While xxhash is breakable, these keys aren't manipulatable by users. * Add math ops on Amount and define a coin as 1e8 * Add validator-sets to the runtime and remove contracts Also removes the randomness pallet which was only required by the contracts runtime. Does not remove the contracts folder yet so they can still be referred to while validator-sets is under development. Does remove them from Cargo.toml. * Add vote function to validator-sets * Remove contracts folder * Create an event for the Validator Sets pallet * Remove old contracts crates from deny.toml * Remove line from staking branch * Remove staking from runtime * Correct VS Config in runtime * cargo update * Resolve a few PR comments on terminology * Create a serai-primitives crate Move types such as Amount/Coin out of validator-sets. Will be expanded in the future. * Fixes for last commit * Don't reserve set 0 * Further fixes * Add files meant for last commit * Remove Staking transfer
This commit is contained in:
@@ -5,29 +5,10 @@ for various connected networks, offering secure decentralized custody of foreign
|
||||
assets to applications built on it.
|
||||
|
||||
Serai is exemplified by Serai DEX, an automated-market-maker (AMM) decentralized
|
||||
exchange, allowing swapping BTC, ETH, USDC, DAI, and XMR. It is the premier
|
||||
exchange, allowing swapping Bitcoin, Ether, DAI, and Monero. It is the premier
|
||||
application of Serai.
|
||||
|
||||
### Substrate
|
||||
|
||||
Serai is based on [Substrate](https://docs.substrate.io), a blockchain framework
|
||||
offering a robust infrastructure.
|
||||
|
||||
### Smart Contracts
|
||||
|
||||
Serai offers WASM-based smart contracts. All applications are built over these
|
||||
contracts, enabling composable interactions within a mutual layer. These
|
||||
contracts are primarily written in [ink!](https://ink.substrate.io/), a
|
||||
framework for building contracts in Rust.
|
||||
|
||||
Initially, smart contract deployment will not be enabled. Solely Serai DEX will
|
||||
be available, due to the variety of economic considerations around securing the
|
||||
multisig. Serai may expand in the future with more explicitly added
|
||||
applications, each with tailored economic models, or may enable arbitrary
|
||||
contract deployment. At this time, we solely plan for Serai DEX's availabiliy.
|
||||
|
||||
### Application Calls
|
||||
|
||||
Applications, such as Serai DEX, may be called via calling their relevant smart
|
||||
contracts. At a low level, this is done via specifying the address of the
|
||||
contract being interacted with, along with SCALE-encoded calldata.
|
||||
|
||||
Reference in New Issue
Block a user