mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 04:41:04 +00:00
Extra requirements for claimants (#1091)
* Introduce mandatory statement signing into claims * Introduce SignedExtension * Tests passing * Bump runtime version * Bump version, fix test * Test for validate * Another couple of tests * Enable PrevalidateAttests on Polkadot * Enable PrevalidateAttests on Polkadot * Fix build * Fixes * More fixes * Fix bench tests * Fix & test Preclaim clobbering. * Fix for errant claim logic * Add test * Update tests, always use Vec as input * mint_claim can add signature, some_benchmarks * Add claim with statement test * finish benchmarks * put the correct number of claims with benchmarks * fix compiler warning * Update weights * Weight comments for validation Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -79,12 +79,14 @@ pub use runtime_primitives::OpaqueExtrinsic as UncheckedExtrinsic;
|
||||
/// Custom validity errors used in Polkadot while validating transactions.
|
||||
#[repr(u8)]
|
||||
pub enum ValidityError {
|
||||
/// The ethereum signature is invalid.
|
||||
/// The Ethereum signature is invalid.
|
||||
InvalidEthereumSignature = 0,
|
||||
/// The signer has no claim.
|
||||
SignerHasNoClaim = 1,
|
||||
/// No permission to execute the call.
|
||||
NoPermission = 2,
|
||||
/// An invalid statement was made for a claim.
|
||||
InvalidStatement = 3,
|
||||
}
|
||||
|
||||
impl From<ValidityError> for u8 {
|
||||
|
||||
Reference in New Issue
Block a user