Module utility_workspaces::types
source · Expand description
Types used in the workspaces crate. A lot of these are types are copied over from unc_primitives since those APIs are not yet stable. Once they are, we can directly reference them here, so no changes on the library consumer side is needed. Just keep using these types defined here as-is.
Structs§
- Access key provides limited access to an account. Each access key belongs to some account and is identified by a unique (within the account) public key. One account may have large number of access keys. Access keys allow to act on behalf of the account by restricting transactions that can be issued.
- Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
- Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
- Utility Account Identifier.
- The header belonging to a
Chunk. This is a non-exhaustive list of members belonging to a Chunk, where newer fields can be added in the future. - CryptoHash is type for storing the hash of a specific block.
- Grants limited permission to make transactions with FunctionCallActions The permission can limit the allowed balance to be spent on the prepaid gas. It also restrict the account ID of the receiver for this function call. It also can restrict the method name for the allowed function calls.
- Gas units used in the execution of transactions. For a more in depth description of how and where it can be used, visit Gas.
- Allows you to meter the amount of gas consumed by transaction(s). Note: This only works with transactions that resolve to
crate::result::ExecutionFinalResultExample - Public key of an account on chain. Usually created along with a
SecretKeyto form a keypair associated to the account. - Secret key of an account on chain. Usually created along with a
PublicKeyto form a keypair associated to the account. To generate a new keypair, use one of the creation methods found here, such asSecretKey::from_seed
Enums§
- Defines permissions for AccessKey
- Finality of a transaction or block in which transaction is included in. For more info go to the Utility finality docs.
Type Aliases§
- Height of a specific block
- Nonce is a unit used to determine the order of transactions in the pool.
- Shard index, from 0 to NUM_SHARDS - 1.