Params

Trait Params 

Source
pub trait Params<T: Config> {
    // Provided methods
    fn inject_account_nonce(&mut self, _nonce: u64) { ... }
    fn inject_block(&mut self, _number: u64, _hash: HashFor<T>) { ... }
}
Expand description

The parameters (ie ExtrinsicParams::Params) can also have data injected into them, allowing Subxt to retrieve data from the chain and amend the parameters with it when online.

Provided Methods§

Source

fn inject_account_nonce(&mut self, _nonce: u64)

Set the account nonce.

Source

fn inject_block(&mut self, _number: u64, _hash: HashFor<T>)

Set the current block.

Implementations on Foreign Types§

Source§

impl<Conf: Config, A: Params<Conf>> Params<Conf> for (A,)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>> Params<Conf> for (A, B)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>> Params<Conf> for (A, B, C)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>> Params<Conf> for (A, B, C, D)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>> Params<Conf> for (A, B, C, D, E)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>> Params<Conf> for (A, B, C, D, E, F)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>, U: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>, U: Params<Conf>, V: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>, U: Params<Conf>, V: Params<Conf>, W: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>, U: Params<Conf>, V: Params<Conf>, W: Params<Conf>, X: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>, U: Params<Conf>, V: Params<Conf>, W: Params<Conf>, X: Params<Conf>, Y: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<Conf: Config, A: Params<Conf>, B: Params<Conf>, C: Params<Conf>, D: Params<Conf>, E: Params<Conf>, F: Params<Conf>, G: Params<Conf>, H: Params<Conf>, I: Params<Conf>, J: Params<Conf>, K: Params<Conf>, L: Params<Conf>, M: Params<Conf>, N: Params<Conf>, O: Params<Conf>, P: Params<Conf>, Q: Params<Conf>, R: Params<Conf>, S: Params<Conf>, T: Params<Conf>, U: Params<Conf>, V: Params<Conf>, W: Params<Conf>, X: Params<Conf>, Y: Params<Conf>, Z: Params<Conf>> Params<Conf> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)

Source§

fn inject_account_nonce(&mut self, nonce: u64)

Source§

fn inject_block(&mut self, number: u64, hash: HashFor<Conf>)

Source§

impl<T: Config> Params<T> for ()

Implementors§