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 - 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.
- Access
KeyInfo - Similar to an
AccessKey, but also has thePublicKeyassociated with it. - Account
Details - Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
- Account
Details Patch - Details of an Account or Contract. This is an non-exhaustive list of items that the account stores in the blockchain state.
- Account
Id - Utility Account Identifier.
- Chunk
- Chunk
Header - 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. - Crypto
Hash - CryptoHash is type for storing the hash of a specific block.
- Function
Call Permission - 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
- Gas units used in the execution of transactions. For a more in depth description of how and where it can be used, visit Gas.
- GasMeter
- Allows you to meter the amount of gas consumed by transaction(s).
Note: This only works with transactions that resolve to
crate::result::ExecutionFinalResultExample - InMemory
Signer - Public
Key - Public key of an account on chain. Usually created along with a
SecretKeyto form a keypair associated to the account. - Secret
Key - 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 - UncToken
Enums§
- Access
KeyPermission - Defines permissions for AccessKey
- Finality
- Finality of a transaction or block in which transaction is included in. For more info go to the UNC finality docs.
- KeyType
- Key types supported for either a
SecretKeyorPublicKey
Type Aliases§
- Block
Height - Height of a specific block
- Nonce
- Nonce is a unit used to determine the order of transactions in the pool.
- ShardId
- Shard index, from 0 to NUM_SHARDS - 1.