RuntimeDbWeight
Composite 116 v393sp_weights::RuntimeDbWeight
About This Type
Structured type: RuntimeDbWeight.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (2)
SCALE Encoding
- Rule
- 2 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 2 fields = read: u64, write: u64
0x<field0><field1>field 0 read: u64field 1 write: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode RuntimeDbWeight
const value = registry.createType("RuntimeDbWeight", {
read: 1_000_000_000n,
write: 1_000_000_000n
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 116
- Kind
- Composite
- Path
- sp_weights::RuntimeDbWeight
- Runtime
- v393