Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Oct 30, 2024
1 parent ca03d4d commit d69fa9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions types/src/auth.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
//! TODO:
use cosmrs::crypto::PublicKey;

/// Params defines the parameters for the auth module.
#[derive(Debug)]
pub struct AuthParams {
/// Maximum number of memo characters
pub max_memo_characters: u64,
/// Maximum nubmer of signatures
pub tx_sig_limit: u64,
/// Cost per transaction byte
pub tx_size_cost_per_byte: u64,
/// Cost to verify ed25519 signature
pub sig_verify_cost_ed25519: u64,
/// Cost to verify secp255k1 signature
pub sig_verify_cost_secp256k1: u64,
}

// BaseAccount defines a base account type. It contains all the necessary fields
// for basic account functionality. Any custom account type should extend this
// type for additional functionality (e.g. vesting).
#[derive(Debug)]
pub struct BaseAccount {
/// hex encoded hash address of the account
pub address: String,
/// Public key associated with the account
pub pub_key: PublicKey,
/// TODO:
pub account_number: u64,
/// TODO:
pub sequence: u64,
}
3 changes: 3 additions & 0 deletions types/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ pub struct Blob {
pub index: Option<u64>,
}

/// Params defines the parameters for the blob module.
#[derive(Debug)]
pub struct BlobParams {
/// Gas cost per blob byte
pub gas_per_blob_byte: u32,
/// Max square size
pub gov_max_square_size: u64,
}

Expand Down

0 comments on commit d69fa9b

Please sign in to comment.